Repository navigation
Write Trial waiting lines so a long Trial is not Silent - #1984
Merged
Merged
Conversation
An Experiment's Command log gained a line only when a Trial started or ended, so a Trial longer than inbox.silent_minutes made a healthy Experiment Silent in Needs you. Trial supervision now repeats a waiting line at the effective waiting-line interval, and the Experiment configures that interval as other Commands do.
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
During Trials, the Experiment's Command log gained a line only when a Trial started or ended. A Trial running longer than
inbox.silent_minutestherefore made a healthy Experiment Silent in Needs you. There were two causes:logs.waiting_line_minutesdescriptions now include Trials, insrc/config.rsanddocs/guide.md. The manual is regenerated.Evidence
Execution evidence
cargo test --test experiments trials_write_waiting_lineson the unfixed code. Nothing is logged between each Trial's start (16:26:00) and its outcome:configure_waiting_linescall fails all three log tests. The Experiment then ignoredTHIRDSHIFT_WAITING_MINUTE_MSandlogs.waiting_line_minutes.cargo test --test experiments -- waiting_line plan_limit_stop:a_trial_waiting_line_keeps_a_long_trials_stage_workingreproduces the report's shape:status --jsonshowssilentinneeds you.okandworking, also inshow --json, with the Trials stage still aged.cargo test --test experiments --test run_health: 191 + 5 passed.cargo test --no-fail-fast(full suite): passed.npm test --prefix siteandnpm run docs:check --prefix site: passed.cargo clippy --all-targets: clean.scripts/affected-tests mainstopped ontests/processfindings::fixing_dispatches_each_reproduced_finding_and_keeps_unreproduced_findings_private. That test is flaky on unchangedorigin/maintoo (3 of 6 runs failed there in a temporary worktree), and it passed in the full run above.Visual evidence
None. The only rendered change is three lines of prose in the generated manual (
site/docs/index.html), with no layout change.Merge Danger
Door: two-way
Blast Radius: Experiments
Experiment Command logs and terminal output gain a "Trial … still running" line per running Trial, every effective waiting interval (5 min by default).
Review
site/docs/index.htmlwas accepted as generated output (npm run docs:check --prefix siteexited 0), and both reviewers also read its diff.WaitingLine::reportedtoalready_reported(Standards 1).Unaddressed findings
Standards
WaitingLinewith()state): declined. This matches the existingpoll::WaitingLineuse with()atsrc/pull_request.rs:524-530. The Agent Brief says "Use poll::WaitingLine".configure_waiting_linesrepeated besidelogs::configured: declined here. Other entry points (src/processes.rs:650,742,src/processes/review.rs:22,202,src/processes/source.rs:919) may skip it too. Changing them is outside An Experiment shows as Silent in Needs you while a Trial runs longer than inbox.silent_minutes #1495 and needs triage; filed as Process and Review runs that skip command::start may not configure logs.waiting_line_minutes #1983.tests/experiments.rs: declined. It follows the three existing copies in the same file. Extracting a helper would touch unrelated tests.docs/guide.md:303already applies Silent to live work generally, and the glossary was not part of this Ticket.Spec
process::output_until's check closure (src/evals/experiment/execution.rs), which ends with the Trial process.a_trial_waiting_line_keeps_a_long_trials_stage_workingends by stopping the live Experiment and asserts it exits as interrupted. Ordinary silent Commands stay covered bytests/run_health.rs(5 passed), and the new health test also assertssilentbefore a waiting line.scripts/affected-tests mainwas run": refuted by the run. See Wider checks above.CI notes
experiments process::process_session_evidence_check_all_private_fix_identifiers_and_abbreviated_commits(run 42923244344) failed intermittently, and the failure is unrelated to this branch. The test assertsrequest.jsonlacks the substring421. In this run the random Experiment id453591dbb2bc342181bd…contained it inoutput_dir, and the document held no private fix data. This branch changes neither the test nor what it writes. Locally the test passed on018319bc.Closes #1495
Built with claude 2.1.314 · opus · default effort
Security review outcome
No unaddressed introduced findings.