Skip to content

Add compact chat completion trace fetcher#716

Merged
jahooma merged 1 commit into
mainfrom
jahooma/simplify-trace-files
May 21, 2026
Merged

Add compact chat completion trace fetcher#716
jahooma merged 1 commit into
mainfrom
jahooma/simplify-trace-files

Conversation

@jahooma
Copy link
Copy Markdown
Contributor

@jahooma jahooma commented May 21, 2026

Summary

Adds a script for fetching recent chat completion traces from BigQuery and reconstructing each root/main-agent conversation into a compact trace file.
Each trace file contains only the trace session id and one messages array, while index.json keeps lightweight lookup metadata.
The query excludes subagent lineages by requiring trace_lineage_id = trace_session_id.

Validation

  • bun run --cwd scripts typecheck
  • bun scripts/fetch-recent-chat-completion-traces.ts --prod --limit 2 --lookback-hours 24 --out-dir .context/recent-main-agent-traces-compact-test

@jahooma jahooma merged commit b7b2ddb into main May 21, 2026
35 checks passed
@jahooma jahooma deleted the jahooma/simplify-trace-files branch May 21, 2026 06:48
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.

1 participant