Skip to content

feat(trace): export conversation trace bundles - #2912

Merged
esokullu merged 2 commits into
webbrain-one:mainfrom
alectimison-maker:fix/trace-format-version-guard
Aug 24, 2026
Merged

feat(trace): export conversation trace bundles#2912
esokullu merged 2 commits into
webbrain-one:mainfrom
alectimison-maker:fix/trace-format-version-guard

Conversation

@alectimison-maker

Copy link
Copy Markdown
Contributor

Summary

  • Extend the Traces page JSON export to include all persisted runs in the selected conversation.
  • Keep standalone exports compatible with the existing { run, events } shape and use { session, runs } for conversation exports under webbrain-trace/1.
  • Reuse the existing session index and screenshot loading path for every exported run.
  • Apply lossless credential redaction to each sensitive run in a session bundle while preserving ordinary run content.
  • Keep Chrome and Firefox behavior mirrored and document the export shapes, filenames, and privacy expectations.

Compatibility

  • No trace event or storage schema changes.
  • Existing standalone JSON consumers retain their current envelope.
  • The export remains local and does not upload data.

Validation

  • node test/run.js — 2041 passed, 0 failed
  • npm run test:toolbar-guard — 33 passed
  • npm run test:security — 60/60 checks passed

@vercel

vercel Bot commented Aug 24, 2026

Copy link
Copy Markdown

@alectimison-maker is attempting to deploy a commit to the esokullu's projects Team on Vercel.

A member of the Team first needs to authorize it.

@esokullu

Copy link
Copy Markdown
Collaborator

Addressed the latest review findings in a0b2d1380:

  • trace-to-atif.mjs now accepts session { session, runs } bundles and converts them into one ordered multi-turn ATIF v1.7 trajectory with contiguous steps, source-run metadata, aggregated metrics, and collision-safe tool-call IDs.
  • Session export now confirms conversation scope and run count, warns when any included sibling is a lossless/sensitive-debug run, and labels the export action as conversation-scoped.
  • Session loading bypasses the default 500-run cap, and run/event read failures abort the export instead of producing a partial-looking JSON file.

Verification: npm test passes (33 toolbar guard tests, 2,042 main tests, offline relevance benchmark, and 60 security checks).

@esokullu
esokullu merged commit b323430 into webbrain-one:main Aug 24, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants