Skip to content

Deepen the Release run's Experiment handoff #2351

Done

Description

@JacobStephens2

What to build

Give the Release run an Experiment interface that returns the Experiment ID and the Verdict conclusion. After showing the full Experiment report once, a Release run waiting on a decision reads the current Verdict for that exact Experiment. The full evidence projection belongs to the report.

Acceptance criteria

  • Running or resuming the optional release Experiment returns its ID and Verdict conclusion after printing the existing full per-suite report once on stderr. The standalone Experiment command still prints its report on stdout in its selected format. Both report paths assemble the full Experiment view once per invocation.
  • While waiting, the Release run reads the current Verdict by the same Experiment ID without building the full view. It sees decisions saved after the handoff and can read an ordinary saved Verdict when a separate display-only pair artifact is unreadable. Invalid, absent, or mismatched Experiment metadata and a missing Verdict still fail the read.
  • The Experiment's writer lock is released before the Release run announces it is waiting. Retain the two intentional skips, interruption and resume, progress and decision instructions, terminal override for fail or inconclusive, and the requirement to clear the Verdict before publication can advance.
  • Focused tests exercise the compact interface against saved metadata, and the existing Release and Experiment regressions cover the report, waiting handoff, skips and publication order.

Blocked by

None (can start immediately).

Decisions

  1. Keep Experiment execution, retention, report generation and stored Verdict compatibility in the Experiment module. Give the Release run the exact ID and existing typed Conclusion at the seam. Use the existing six text values for progress and diagnostics from that type, and have the full Verdict delegate to it. This keeps the meaning and spelling of the Verdict local to Experiment.
  2. Return a small owned completion value from both successful execution paths, after the completed-Experiment report or the newly completed run's save, report and Command recording. Keep the full report at those call sites, including its error handling and output channel. The completion value carries no store or lock, so a human decision can acquire the writer lock after the handoff. Reserve the empty completion for the existing no-touched-suite and Baseline-without-Trial skips. A Release read without a Verdict retains the missing-Verdict diagnostic.
  3. Reload the Verdict by ID through the existing nonexclusive stored Experiment load. It validates the ID, exact folder and metadata format and retains legacy Verdict upgrades, including evidence those upgrades legitimately need. Project the conclusion without capturing the full Experiment view. Reload on every poll so a later saved recheck, leak decision or pairwise call can advance the same Release run. Keep full views for the Console and Experiment detail commands.
  4. Keep polling, the interruption check, the waiting notice and terminal override in the Release run module. The Release run owns when it may advance, while the Experiment determines its Verdict under the saved Bar. Pass advances, fail or inconclusive still needs an affirmative terminal response, and waiting on rechecks, leaks or people continues polling. Apply the same handoff when repaired release content needs its own Experiment. The existing Bar and publication decisions in ADRs 0025, 0028 and 0003 need no revision.
  5. Test the compact read against a temporary saved Experiment with a valid current Verdict and a malformed display-only pair record. Load again after an atomic metadata update and verify the changed conclusion from the same ID. Cover bad identity and missing Verdict without weakening stored-metadata validation. Use saved metadata to exercise waiting on people because the Release invocation's default Bar does not count people. Keep the real Release waiting tests synchronized on the post-lock notice, and keep the existing legacy Verdict, report-before-refusal and no-push-before-decision cases. This puts the test surface at the same stored read and Release run interfaces production uses.
  6. Ship the completion and polling changes together in one Ticket. Both are small callers of the same Experiment implementation and can be verified with the existing fixtures in one session. The design uses existing domain terms and needs no new Glossary entry or ADR.

Architecture review

Strength: Strong · Dependencies: local-substitutable

Files: src/release/controls.rs, src/evals/experiment.rs, src/evals/experiment/store.rs, src/evals/experiment/grading.rs, src/evals/experiment/reading.rs, tests/release/experiments.rs, tests/experiments/release.rs

Before

flowchart LR
  R["Release run"] --> E["Experiment"]
  E -- report and handoff --> V["Full Experiment view"]
  V --> A["Trial and Grader evidence"]
  R -. polls .-> V
  V --> S["Saved Verdict"]
  classDef leak stroke:#dc2626,stroke-width:2px
  class V leak
Loading

After

flowchart LR
  R["Release run"] --> C
  subgraph E["Experiment"]
    C["Experiment interface for Release"] -- initial report --> V["Full Experiment view"]
    C -- exact ID --> S["Saved Verdict"]
    V --> A["Trial and Grader evidence"]
    V --> S
  end
  classDef deep stroke-width:3px
  class E deep
Loading

Problem: The handoff rebuilds the full Experiment view immediately after rendering the report, and Release wait polls rebuild it again to inspect the Verdict. Experiment completion, Release wait

Solution: Deepen the Experiment interface for Release so its handoff and exact-ID reads supply the Verdict directly and Release can delete its full-view polling.

Wins

  • Locality for saved Verdict reads
  • Delete repeated full evidence reads
  • Test polling through stored Verdicts

Activity

  1. added
    needs-triage
    ready-for-agent
    architect-plan
    in-progress
    and removed
    needs-triage
    ready-for-agent
    on Nov 28, 2026
  2. removed
    in-progress
    on Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    architect-plan

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions