Repository navigation
feat(lane-transcripts): keep cost and cache fields, trace ids and lane outcomes - #17046
Conversation
…e outcomes The transcript sink now keeps, per lane leg, the result message's cache tokens, the CLI's cost estimate and per-model usage, and the run attempt's trace id (the lane-outcome record's traceId formula). A new pull-outcomes command copies validated lane-outcome records from every lane workflow run's job annotations into outcomes.jsonl, under its own call budget and resume state, and sets each row's failure class only when the run attempt's records agree. backfill fills the new fields on older rows. The puller accepts one extra sealed entry in an artifact zip. outcomes.jsonl is kept 365 days with the metrics rows. harness-ops observability gains lane_runs and lane_outcomes DuckDB views over the sink, joined on trace_id. Co-Authored-By: Claude Opus 5.5 <[email protected]>
A pass after a budget stop listed the same newest runs again and spent calls on jobs that held no record, so a backlog larger than one budget could never drain. Each finished run attempt is now kept in the state's read_runs until it falls behind the next cutoff, and status shows the outcome pull's budget stop and resume cutoff. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…row fields The contract now names the fields the puller writes, and outcomes.jsonl in the sink layout, so a reader can rely on them. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 622a5e2c7c
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
A pull interrupted between two records of one job left the job marked as held, so the next pass skipped the records it never wrote and a run whose records disagree could get a definite failure class. Each row now names how many records its job holds, and a pass drops and rereads a job with fewer. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Lane run report
Failed GitHub API calls
|
|
claude-review reviewed Code review: PR #17046, incremental (8b3cd23..f1dbdeb)This round was blocking only, because the lane has already reviewed earlier heads. I read the whole incremental diff for all 3 listed files ( Prior finding (
New findings: none. Closing issue: none. The PR has no tracked issue, so there are no acceptance criteria to check. Loosened checks: no existing assertion was changed or removed; the test hunk only adds a test. The prompt had no Not verified: I ran no tests, so the author's test results are their claim and unverified. Manifests: no plugin manifest changed, so there are no manifest lines. Verifier dropped 0 of 0 candidates. |
status judged only the transcript pull, so a pull-outcomes that kept missing runs exited 0 until GitHub's retention removed the records. It now applies the same 5-day checks to pull-outcomes once that has run. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
claude-security-review reviewed Security review (incremental, blocking only): no security issues foundI read every hunk of the 3 files changed since What I checked
This review was blocking only: this lane already reviewed an earlier head, so only CRITICAL and IMPORTANT findings would have been posted. I found none. critical-findings: 0 |
A stale pull-outcomes made a successful pull exit 1, so a timer chaining the two would never reach pull-outcomes again. pull still prints the alert, and its exit code now judges the transcript pull alone. Co-Authored-By: Claude Opus 5.5 <[email protected]>
No related issue: an observability addition to the lane transcript sink, with no tracked issue behind it.
Summary
The lane transcript sink now keeps what a retro needs to explain a lane run: cache tokens, the CLI's cost estimate, per-model usage, a trace id and the run's failure class.
Fix
cache_read_input_tokens,cache_creation_input_tokens,total_cost_usd,model_usage,trace_id,failure_classandfailure_class_source. The cost fields are the CLI's own estimate, not a bill.pull-outcomescommand copies lane-outcome records past GitHub's check-run retention intooutcomes.jsonl, andbackfillfills the new fields on older rows.lane_runsandlane_outcomesDuckDB views join rows to outcomes ontrace_id, and the lane-transcripts contract names the new fields and file.Verification
node --test scripts/lane-transcripts/pull.test.mjs: 51 passed, 0 failed.plugins/harness-ops/skills/observability/otel/lane-runs.test.sh: 7 passed, 0 failed.pull-outcomesrun against GitHub, to keep the shared API budget free. The laptop timer that runs it afterpullis a separate dotfiles change.Related
N/A
🤖 Generated with Claude Code