Inspiration

A network capture can contain both the clue that explains a bug and information that should never enter a ticket or a cloud prompt. Removing everything sensitive can also remove what makes the bug understandable.

Consider a request for one workspace that receives a response from another. Replacing both workspace IDs with the same placeholder hides the mismatch. The report becomes less useful precisely when someone tries to make it safer to share.

TraceFold makes that tradeoff visible before sharing. It is built for developers preparing network evidence for another engineer or an AI service.

What it does

The workflow has three steps:

  1. Select evidence. Import a HAR network capture or try the labeled synthetic example. Select the useful requests and the supported relationships that matter to the incident.
  2. Review sharing. Compare original and shared values side by side. Remove fields, retain appropriate public values, or apply consistent aliases. Recognized credentials are locked to Remove. Inspect the exact shared packet before approving it.
  3. Build the handoff. Approval immediately creates a local report. Optionally request an AI explanation, then download Markdown and portable evidence JSON.

In the example, distinct aliases keep the requested and returned workspace IDs different. Turn on Try collapsing aliases and the relationship is marked lost: approval is blocked. Restore the aliases and the selected evidence survives again.

The contribution is checking whether selected diagnostic relationships survive a proposed privacy transformation. A sanitized-looking packet is not automatically treated as diagnostically useful.

How I built it

TraceFold is a TypeScript/React web app built with Vite and deployed on Firebase Hosting. A bounded Web Worker parses captures. Browser code handles field policies, alias namespaces, and supported relationship checks.

Approval is tied to the exact packet digest. Editing the packet invalidates that approval and the previous report. Missing timestamps and truncated values cannot establish source relationships. Reopened shared packets do not inherit certification against an absent original capture.

Firebase AI Logic provides two distinct AI paths:

  • Private contextual review: ONLY_ON_DEVICE examines selected non-credential fields and proposes existing field IDs for human review. This path has no private-content cloud fallback.
  • Approved explanation: PREFER_ON_DEVICE, or the explicit cloud action, receives only the approved shared packet. The app validates the SDK's actual inference source and rejects report references that do not exist in the evidence.

Firebase App Check with reCAPTCHA Enterprise protects model access. The original capture is not supplied to cloud report generation. Local review and deterministic export remain usable without AI.

Challenges I ran into

The hardest problem was making evidence loss visible. An identifier alias can preserve an important mismatch; a single shared placeholder can erase it. Missing or incomplete source data must remain unchecked rather than becoming a reassuring badge.

Hardware support was another constraint. The development laptop could not run the local model. Actual Firebase device-only execution was therefore verified and recorded on supported hosted Chrome hardware. Cloud execution was verified separately, and every accepted AI result carries its actual execution source.

Accomplishments that I'm proud of

  • A complete path from local capture review to an approved, downloadable handoff.
  • A concrete counterexample where collapsing identifiers blocks approval because selected evidence is lost.
  • Real Firebase ON_DEVICE review and IN_CLOUD report generation, including actual footage in the demonstration video.
  • Sixteen core regression tests and thirteen hosted browser workflow checks, covering approval invalidation, exports, malformed inputs, missing evidence, credential exclusion, and responsive layouts.
  • Public Apache-2.0 source, setup instructions, asset attribution, and verification records.

The examples and controlled evaluation cases are synthetic. The published comparison does not establish superiority over consistent aliasing or measured benefit on customer incidents.

What I learned

Privacy and diagnostic usefulness have to be reviewed together. Model availability is not proof of inference, and a valid model response is not proof of root cause. The useful boundary is explicit: inspect the evidence, approve the exact packet, and keep observations separate from hypotheses.

What's next for TraceFold

Test the workflow with independent developers, measure investigation outcomes on consented real incidents, and expand HAR-format and relationship coverage. Those studies are future work, not claimed adoption.

Build period and disclosure

TraceFold was created during this hackathon's submission period. Work includes the parser, transformation and relationship checks, approval system, Firebase integration, three-step interface, exports, tests, deployment, documentation, and demonstration video.

AI assistance was used for research, implementation, testing, documentation, and video production. The video uses synthetic narration and actual app recordings; shortened waiting is labeled. Standard libraries, icons, and fonts are attributed in the repository. Previous personal projects informed interaction design; their application code was not incorporated.

Try the app: https://tracefold-3447.web.app Usage guide: https://tracefold-3447.web.app/#guide Source and evidence: https://github.com/kathir-iTech/TraceFold

Open https://tracefold-3447.web.app in Chrome. No account is needed for local review and export.

Start with the synthetic example: the requested and returned workspace aliases differ. Enable Try collapsing aliases to see the lost-evidence warning and blocked approval; disable it to restore the comparison.

Open Review sharing, inspect the exact packet, confirm review, and click Approve & continue. Download the report and evidence JSON. Reimport the JSON through Import HAR to see that original-source preservation is not recertified.

Optional private AI requires supported Chrome hardware and a downloaded model. Cloud explanation requires connectivity, browser attestation, and available free quota.

Real device execution: https://github.com/kathir-iTech/TraceFold/actions/runs/46143348762

Full guide: https://tracefold-3447.web.app/#guide

Built With

Share this project:

Updates

Submission history