Skip to content

feat: ADAPT round-0 trajectory exporter (#389) - #397

Merged
dahai80 merged 1 commit into
mainfrom
feat/adapt-trajectory-export
Nov 29, 2026
Merged

dahai80 merged 1 commit into
mainfrom
feat/adapt-trajectory-export

Conversation

@dahai80

@dahai80 dahai80 commented Nov 29, 2026

Copy link
Copy Markdown
Owner

First code for fusion-code#389 (verified-trajectory flywheel).

benchmarks/adapt/exportTrajectories.ts converts a harness-gain run dir into the fusion-eval trajectory export schema (schema_version=1), which fusion-trainer ft datasets from-eval consumes directly for SFT — closing the gap between bench transcripts and the existing trainer ingestion path (no new trainer-side format invented).

  • Resolved-only by default; --all includes unresolved rows (passed=false) for DPO pair mining later.
  • Round-0 limitation made loud: tool_use/tool_result blocks are dropped (fusion-trainer load_messages consumes plain text messages); manifest records per-task dropped counts.
  • Live-verified on the 19/20 validation run: 19 trajectories, exact schema match, no empties. 3 fixture unit tests; full suite 1892 pass / 0 fail.
  • README records the GPU-window / registration / held-out-first gates before any training run.

🤖 Generated with Claude Code

benchmarks/adapt/exportTrajectories.ts converts a harness-gain run dir
(summary.json rows + per-task session transcripts) into the fusion-eval
trajectory export schema (schema_version=1), consumable by
'ft datasets from-eval' for SFT. Resolved-only by default, --all includes
unresolved rows with passed=false; manifest records per-task dropped
tool-block counts so the round-0 dialogue-only distillation loss is
measurable, never silent.

Verified live on the 19/20 validation run: 19 trajectories, exact schema
match against fusion-eval export.py, no empty prompts/messages. 3 unit
tests with fixtures (resolved-only, includeAll, missing transcript
skips). Full suite 1892 pass.

README documents the data path, the known limitation, and the gates
before any GPU training run (window approval, model registration,
held-out-first eval gate).

Co-Authored-By: Claude Code <[email protected]>
@dahai80
dahai80 merged commit d7ea3b1 into main Nov 29, 2026
2 checks passed
@dahai80
dahai80 deleted the feat/adapt-trajectory-export branch November 29, 2026 14:02
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