Skip to content

Join Experiment Trial traces and report Arm usage - #1143

Merged
JacobStephens2 merged 6 commits into
issue-977from
issue-1023
Oct 23, 2026
Merged

JacobStephens2 merged 6 commits into
issue-977from
issue-1023

Conversation

@JacobStephens2

@JacobStephens2 JacobStephens2 commented Oct 23, 2026 •

Copy link
Copy Markdown
Owner

Summary

Experiment Command Trace
  Trial attempt
    Session traces (opening + Resume)
    Grader span
  Arm totals: tokens by observed Model + reported cost + minutes

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-977 Code review and Void Trial work.

Evidence

Test seams: thirdshift experiment, thirdshift experiments <id> --json, and thirdshift logs <command> --export <dir>, using fake Harness executables at the process seam.

  • Before: cargo test --test experiments arm_usage_keeps_session_totals_when_model_calls_report_partial_usage -- --exact --nocapture failed: input/cache were null, output was 2, although the Harness reported Session totals of 1200 input, 300 output and 200 cache 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 --check passes. CI and PR release-build checks are green at bafc025.

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.

…. 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
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