Repository navigation
Closed
Labels
Description
This was generated by AI during an A/A Experiment for #1434.
Problem
Scheduled Passes (Pickup, Architect, the nightly Security run) don't know that an Experiment is running on the same host. They start Runs whose builds and cargo test compete with the Trials, and a Trial that runs out of time counts as failed, not void. Load from the host's own factory work therefore turns into noise in the Verdict.
Evidence (2026-10-27, thirdshift host, 4 vCPU / 8 GB)
- The code-review A/A Experiment for The code-review Eval suite can't tell Arms apart: 7 of its 10 tasks never pass #1434 started at 15:35 on a host with 0 active Runs. At about 15:44 a Pickup run took Spec Spec: the Ticket run as a Built-in process file #1456, which ran two Tickets at a time.
- At 19:29 the one-minute load average was 21 on 4 CPUs, and
/proc/pressure/cpuwas atsome avg300= 89%. - One Trial's reviewer ran a large share of the integration tests inside the sandbox. It hit the 1800-second Trial timeout and failed with no report. The other five Trials of the same Eval task took about 4 to 5 minutes each.
- A timeout also caused one disagreement in each of the earlier A/A runs (Run the A/A Experiment on the host #1267, Rerun the A/A Experiment on repaired Eval suites #1370). The code-review Eval suite can't tell Arms apart: 7 of its 10 tasks never pass #1434 leaves voiding timeouts out of scope as a decision for the Bar; this issue is about stopping them from happening.
Current workarounds, and why they fall short
- Setting
pickup.limitlow only works when enough issues already carry Claims, and it doesn't stop Architect or Security runs. The host is usingpickup.limit = 1as a stopgap for this Experiment. - A very large
pickup.wait_minuteseffectively pauses Pickup, but it misuses a setting meant for something else and is easy to forget. [resources] max_load_per_cpu_percent(Resize the thirdshift host to 8 vCPU / 16 GB at the next downtime #1398) only delays new sessions. A Run that is already running keeps building and testing, and the guard also holds back the Experiment's own Trials.- Editing the crontab works, but it lives outside thirdshift's config and logs.
Options for the Day shift
- Passes skip while an Experiment runs on the machine. Each scheduled Pass checks for a live Experiment, like the existing Pass lock that makes
processskip, then skips and writes an Activity log line. - A User config setting to pause scheduled work. For example
pickup.paused = true, or a broader[schedule] paused, with Activity log lines and astatusline so the pause stays visible. - Both of the above.
Decisions that aren't an agent's to make:
- Whether the factory's work or the host's measurements come first.
- Whether Security runs should also wait for an Experiment.
- Whether Runs that are already live should be left alone, which this issue assumes.
Related
- Resize the thirdshift host to 8 vCPU / 16 GB at the next downtime #1398: resizing the host makes the contention smaller but doesn't remove it.
- Spec: a Bar a release that changes nothing can pass #1252, The code-review Eval suite can't tell Arms apart: 7 of its 10 tasks never pass #1434: A/A Experiments are how the Bar is calibrated.
Activity
JacobStephens2 commentedon Oct 27, 2026
Correction to the evidence above: a second Trial of the same Eval task, in the other Arm, also hit the 1800-second timeout (it ended at 19:48). So of that task's six Trials, two timed out under the load (one per Arm) and four finished in about 4 to 5 minutes.
JacobStephens2 commentedon Nov 10, 2026
Investigation summary
Checked against
mainat 84c5856.Confirmed in code:
src/command_limit.rs, GLOSSARY Command limit). It counts only live Commands on the same repository, through advisory slot locks under~/.thirdshift. There is no mention of Experiments insrc/command_limit.rsorsrc/pass.rs, so a running Experiment never makes a Pickup, Architect, Security or Triage Pass skip.Stored::opentakestry_lockon<experiments root>/<id>/lock(src/evals/experiment/store.rs:252-253). A Pass gate could probe those lock files with the same advisory-lock pattern the Command limit uses (skip with exit 0 plus an Activity log line). That is Option 1.[pass] command_limit,[pickup] failure_limit/wait_minutes/order,[security]and[resources] min_available_memory_mb/max_load_per_cpu_percent(src/config.rs:1180-1192), but nopickup.pausedor[schedule] paused. That is Option 2.[resources]only delays new sessions (and also delays the Experiment's own Trials), andpickup.wait_minutesis meant for something else.Not reproduced: the load and timeout evidence (load average 21 on 4 vCPU, two of six Trials at the 1800 s timeout, one per Arm) comes from the issue and the owner's correction comment. Reproducing it would mean running an Experiment and a Pickup run together on the production host.
Related: #1398 (host resize) reduces the contention but doesn't remove it, so this issue isn't a duplicate. #1653 (resuming plan-limit pauses) is unrelated.
Next steps
Once the Day shift answers the questionnaire, this becomes a single Ticket: a Pass gate beside the Command limit check, and/or a config key with Activity log and
statuslines, plus fake-backed tests intests/and updates todocs/guide.md, GLOSSARY Pass/Command limit, and the hand-written site pages that describe Pass skips.Questionnaire
Scheduled Passes (Pickup, Architect, Security, Triage) currently ignore a running Experiment on the same host. Their builds and
cargo testcompete with Trials, and a Trial that times out counts as failed, which adds noise to the Verdict. Both fixes are straightforward to build: a running Experiment already holds a lock file a Pass could check, and the User config could take a new pause key. The choices below are yours.pickup.pausedor a broader[schedule] paused) with Activity log andstatuslines; (c) both.statusshow a warning when the pause has been on for a long time?JacobStephens2 commentedon Nov 10, 2026
Decided in the grill
docs/grill-with-docs/run-capacity.md(Q1.3, Q2.1–Q2.3, Q3.1–Q3.2): a new shared host will run both Pickup work and Experiments, so this lands first. Option 1 of this issue, plus a wait on live Runs. No pause setting.Agent Brief
Category: enhancement
Summary: Every Pass is skipped while an Experiment is live on its machine, and an Experiment waits for live Runs to end before its first Trial.
Current behavior:
A Pass decides before any work whether it is skipped, by its gates and the per-repository Command limit. Neither knows about an Experiment, which is machine-wide: Pickup, Architect, the nightly Security run and the other Passes start Runs whose builds and tests compete with Trials. A Trial that times out counts as failed, not void, so factory load becomes noise in the Verdict (evidence above: load 21 on 4 CPUs, a Trial at the 1800 s timeout). An Experiment also starts at once even while Runs are live on the machine.
Desired behavior:
--author, Fix with no pull request, Triage with no Report, and a Custom process started with no issue. Its skip goes through the existing skip path: an Activity log line whose reason names the Experiment (its id or name), subject to the existing "only when the reason changes" rule, and the usual skipped-Pass exit. The nightly Security run is included.thirdshift experimentstarts (or resumes) and Commands other than itself are live on the machine, it waits until none are, before its first Trial. The wait is visible: a line in its Command log and instatus/the Console naming what it waits on, refreshed as Runs end. Interrupt/Stop during the wait ends it cleanly as an interrupted Experiment.--no-waitonthirdshift experimentskips rule 3: it starts at once, and the Experiment's results record how many other Commands were live at its start, shown where its Verdict is shown.Key interfaces:
statusand the Console can show it.thirdshift experimentarguments: new--no-waitflag; Experiment results gain a count of live Commands at start (only meaningful with--no-wait; zero otherwise).Acceptance criteria:
statusshow it waiting and on what.thirdshift experiment --no-waitstarts at once and its results record the count of live Commands at start.docs/guide.md(Experiments and Passes sections) and--helpdescribe the skip, the wait, the warning and--no-wait;npm run docs:check --prefix sitepasses; the hand-written site pages are searched for Scheduled Passes start Runs during an Experiment on the same host, so Trials time out under load #1494 / Pass skip wording per AGENTS.md.Out of scope:
[schedule] pausedorpickup.pausedsetting (Scheduled Passes start Runs during an Experiment on the same host, so Trials time out under load #1494 option 2): declined.ready-for-humanissue).JacobStephens2 commentedon Nov 11, 2026
Agent Brief: recover the existing implementation
Category: enhancement
Triage state: ready-for-human — this draft PR needs an explicitly targeted recovery, rather than another Pickup dispatch. The recovery may be delegated through one targeted Fix run; the issue must stay out of Pickup while that run owns the PR.
Summary: Finish delivery of existing PR #1982 for #1494; retain the settled design and existing implementation.
Current behavior:
The product decisions were resolved in the earlier capacity grill and the approved Agent Brief. Main still lacks the implementation. Draft PR #1982, branch
issue-1494, contains it and subsequent review fixes.At inspection on 2026-11-11, the PR head was
8bbff4a786959e4c4ec3f60e485702003f528fbe, GitHub reported merge conflicts, and there were no checks on that head. The PR body's green CI evidence concerns older head345a2affand must not be treated as validation of the present head.Fleet history shows three ended attempts: orchestrate's Pickup ended with the PR still draft; test's overlapping Fix could not push because the remote branch had moved; dev's later Fix was interrupted and preserved unfinished work in the current head. No attempt on this issue or PR was live when inspected. Check again before starting work.
Desired behavior:
Recover the same PR and branch, reconcile current main and any remote branch changes, inspect the interrupted salvage, and complete Delivery through a validated, ready-for-review PR. Use one writer on this branch. Preserve useful existing implementation, tests, and review fixes.
The approved behavior remains:
--no-waitstarts immediately and records the number of competing Commands, shown with the Verdict.Key interfaces:
Acceptance criteria:
--no-waitaccounting.Out of scope:
JacobStephens2 commentedon Nov 11, 2026
Recovery complete — PR ready for review
Lima Fix
fix-20261111T125448-0500finished on 2026-11-11 at 13:53 EST with outcome ready for review. PR #1982 is no longer draft and is mergeable at head6c2ce8ef6fd8570472300ff31e45d2481c6484eb. Both CI and Release passed on that head; gated jobs were skipped. The PR description now records current-head validation separately from the earlier implementation evidence.Remaining handoff: review the recovered PR and merge it when satisfied. Self-merge was disabled. Keep #1494 open and out of Pickup until the PR is merged; no additional recovery run is needed. Availability on Fleet hosts follows release and installation of the merged change.
JacobStephens2 commentedon Nov 12, 2026
The follow-up grill continues in #2118: whether to change any of PR #1982's own decisions (Q1.1), and the collision between machines on this PR (Q1.3).
Merge pull request #2119 from JacobStephens2/grill-1494-followups