Repository navigation
Join Experiment Trial traces and report Arm usage - #1143
Merged
Merged
Conversation
…. Please try a different model.) 2026-10-23T06:39:38Z, host thirdshift. Uncommitted work at the time of failure is included in this commit.
# Conflicts: # docs/guide.md # site/architecture/index.html # site/docs/index.html # site/how-it-works/index.html # site/index.html # src/evals/experiment/store.rs
This was referenced Oct 23, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #1023
Join retained traces from older Arms after completion; keep invocation ancestry distinct across resume. Arm totals include every attempt and preserve unknown measurements. Merged the current
issue-977Code review and Void Trial work.Evidence
Test seams:
thirdshift experiment,thirdshift experiments <id> --json, andthirdshift logs <command> --export <dir>, using fake Harness executables at the process seam.cargo test --test experiments arm_usage_keeps_session_totals_when_model_calls_report_partial_usage -- --exact --nocapturefailed: input/cache werenull, output was2, although the Harness reported Session totals of1200input,300output and200cache reads.After: the same regression passes and remains in
tests/experiments.rs. Session totals refine partial calls for one observed Model; Model totals retain precedence./usr/bin/time -p scripts/affected-tests issue-977: passed, including 43 site tests and the full Rust suite. Elapsed: 2054.20s (34m 14s), including compilation; the Rust test build took 1m 15s. The final Experiment file passed 35 tests with 1 fixture entry ignored.cargo fmt --checkpasses. CI and PR release-build checks are green atbafc025.Review: independent Standards and Spec reviews against
issue-977, including the final merge resolutions. Both inspected all 16 changed files. Unread changed files: none. Generated-output exclusions: none; the generated manual HTML was inspected directly.Merge Danger
Door: two-way
Blast Radius: Experiments
Adds derived usage fields to Experiment output and includes private Trial artifacts in explicit Trace exports. Existing Experiment records remain readable; no pricing estimates or data migration.
Unaddressed findings
Standards
None. The optional Arm-decoding smell was addressed by moving the Trial-key parser beside its encoder and returning the typed Arm.
Spec
None. The reproduced partial-call/Session-total finding was fixed and its regression retained.
Security
None. Guidance-mode review of the issue-1023 diff against issue-977 (merge base 04c2489), covering the new trace-join and arm-usage code plus supporting changes. Probed locally with harmless payloads: hostile experiment IDs are rejected before any file access, and hostile provider-reported model names round-trip end to end as opaque data with no traversal or side effects. Trust notes: single-operator CLI, fully-trusted harness data, generated hex experiment IDs, fail-closed parsing with saturating totals. No fixes were needed, so no security regression tests were added.
Built with codex · gpt-6.1-sol · xhigh
Security review outcome
No unaddressed introduced findings.