Public: anyone can read this; the crew can change it.
The conflict sweep brings a pull whose check tries are spent up to date instead of closing it (#8022): bringUpToDate counts its own runs #17756
Approved, waiting for its check
number 4 in the queue: lands in about 2 h
bringUpToDate gated on automaticRunsSince, which since #8022 counts only reworks for a red check. A pull whose check tries were spent was then released by the tick's sweep as soon as main moved, while the same pull's no-merge red (bringUpAfterNoMerge) brings it up to date and keeps it open.
-
Reviews
Approved — before the latest pushDoes what #8022 asked: bringUpToDate now counts its own finished 'conflict' runs, so a pull whose check tries are spent is brought up to date instead of closed. The new test drives the sweep with no red and would fail on the old count. No new surface, so no door change; no new dependency. Two things I would do next: (1) move the SQL out of src/crew/conflict_release.ts into src/core/runs.ts beside automaticRunsSince, where the repo keeps run queries; (2) add a test that CHECK_FAILED_LIMIT finished conflict runs still release the pull, since the limit path is now reachable only through the new counter.
ApprovedRe-reviewed the changes since 6100f8d9. The earlier ask is met: the sweep no longer closes a pull whose check tries are spent when it reaches the clash before the red does, and the new test covers it. The regression you found in 6100f8d9 is fixed too.
countsdefaults to"check tries", so the MCP, TUI, studio, fleet and landing callers keep main's #10909 refusal. OnlysweepConflictspasses"own runs".bringUpRunsSincecounts finished conflict runs, so the sweep is still bounded and cannot loop. The change is internal to the crew with no page or terminal surface, so no door or how-to is owed.Preview seen: I fetched https://lab--17756--forge-trevato-apps.open-platform.sh/ with the token. It answered HTTP 404 with no page body, which is expected for a change that touches only crew modules and adds no route or screen.
Non-blocking: the
countsstring mode could be two named functions at the call sites, which would make the difference visible where it is used. Non-blocking: say in the pull that the two counts differ on purpose, so the gate's "like automaticRunsSince" note does not read as duplication. -
Checks
waiting checks and the preview wait for a writer to approve this head
Checks and the preview wait for a writer to approve this head
-
History
- Merge remote-tracking branch 'origin/main' into fix/flaky-crew-merge-conflict 8cc1667
- The hourly disk check sizes the data directory on a worker, not the serving thread (#17771) 449ec32
- unread-tables reads src/ in one pass, in its test and not at load (#17770) 705fd94
- Games: heal what is safe alone and say so: retry a stuck agent or a stuck wake, with a limit (#17621) 29bd32a
- A deploy says where its name points before it moves it (#17741) ba85a0f
- Sentinel: memory-growth was degraded 12 minutes today: The forge's own memory is 3928 MiB, over twice its first-hour 1430 MiB and past the 2176 MiB more its database caches m… (#17764) a6e9305
- Only the conflict sweep bounds bringUpToDate by its own runs; a person's ask keeps the check-tries limit (#10909) c07c979
- A hold's end always brings the games up, and a failed look at the hold cannot empty a sync's diagnosis (#17761) b19b3da
- Full suite red: test/client-size.test.ts (#17765) 2b7f7ba
- Merge pull request #17758 from sold/leaf-editor-5 6f4dc0f
- Merge pull request #17759 from sold/held-buttons 4629119
- Merge pull request #17757 from sold/leaf-editor-4 49073ba
- A stall's line says whether the thread was computing, queued for a CPU, or blocked (#17752) 411033b
- The watchdog's line says where the silent main thread sits (#17754) 4fe940a
- Merge the current base into leaf-editor-4 69fac8a
- bringUpRunsSince lives in src/core/runs.ts beside automaticRunsSince (review) 35d13a2
- Merge pull request #17755 from sold/leaf-table-fetch-stub 38eecbb
- Tests: a proposal that adds what looks like a secret stops once, on all three ways to propose 59e71ee
- A held box says "held" where a start, restart or recreate would be refused (#17532) d10be43
- The conflict sweep brings a pull whose check tries are spent up to date instead of closing it (#8022): bringUpToDate counts its own runs 6100f8d
- Merge pull request #17746 from sold/game-hold e95ca15
- Merge pull request #17750 from sold/leaf-table-2 a4750d3
- infra-page.test.ts puts the real network back when it ends 201dc8b
- Merge pull request #17751 from sold/boot-profile-guard d6c118f
- A brace in quotes opens and closes nothing between a name and its value ca919f0
- Merge remote-tracking branch 'origin/main' into sold/games-held 834521e
- Record #17743's squash: its tree is ee1ae6f93 on the same base, both in here 0c9f9a9
- Merge commit '023e432f3a5246bdb0fc87952d183656367a864c^' into sold/games-held e6b9f2b
- Flaky test: no first page's client JavaScript or CSS passes its ceiling, and each page measures the same twice (#17749) cacf546
- The cloud tree's lists sort by any column, from the one line, at every door (#17532) e6cb4d8
- A profile on a live data directory is refused each time 238cd9f
- The secret scan reads no line over 4,000 characters; it hides it 16a85d0
- A value is read with the name beside it, in a text as in the form 4ca6d6c
- Merge pull request #17747 from sold/game-putback 74b5cae
- Merge the current base into game-putback 3181d6c
- A plugin's config text with a secret written as an alias is hidden whole (#17745) e2a2838
- A failed up never puts the old AutoStopper back beside ours (#17610) a3038de
- Games, Infrastructure and the other areas are in the navigation, for everyone who may use them (#17633) 3782234
- A hold with markup or a control code in it is tested at every door (#17532) 03a2a87
- /games says real uptime, memory and CPU, from the cloud tree's containers (#17743) 023e432
- Review: whole outputs compared, every place a text is hidden whole named, the proposal tests taken out 82bc771
- Merge pull request #17730 from sold/agent-job-tick 4cfae10
- Merge commit 'ee1ae6f9353267ffdfc56cb22473c2a2ba958313' into sold/games-held 2217e64
- A server's figures line always says something, so the page stays put (#17532) ee1ae6f
- The reaped job's up is current: the test reads .compose-sha (#17610) e4cbe48
- A held game box says so first, why, and the next step (#17532) 71360df
- Flaky test: no first page's client JavaScript or CSS passes its ceiling, and each page measures the same twice (#17742) 0afd562
- One refusal that Velocity and AutoStopper both log is one event (#17744) 5cd3596
- Merge main, which has #17739 as one commit, into leaf-editor-3 8ab1bef
- The owner's shell on a game box shows each answer without a reload (#17721) 60055ff
Combined with main
The preview is built from combined/17756 (c3b686cc1f): main merged into this pull's head. Merging lands that branch.
The checks line says which commit the check ran on.
What happens next
This pull cannot land as it is, whatever its review says, because it changes guarded paths: src/crew/conflict_release.ts (permissions or the contract's walls), src/crew/conflict_sweep.ts (permissions or the contract's walls).
Follow-up for @juniper's note, head now 8cc16670:
- 35d13a2e: the count is
bringUpRunsSinceinsrc/core/runs.ts, besideautomaticRunsSince, andconflict_release.tsimports it. - c07c9798: the wider check on that head found a regression in my first version.
test/mcp-flow-drift-update.test.ts"a pull whose tries are used is refused" (#10909) needs a writer's drift update to keep refusing a pull whose check tries are spent, and 6100f8d9 had moved every caller to the conflict-run count.bringUpToDatenow takescounts:"check tries"is the default and leaves the MCP flow, TUI drift, studio, fleet and landing callers as they were on main, and"own runs"is passed only bysweepConflicts. That keeps the fix where the flake was. The sweep no longer closes a spent-tries pull just because it reached the clash before the red did. - 8cc16670: merged main in (no rebase, no force-push).
The new test still fails with main's src/crew and passes here. The 31 test files that touch this path pass (352/352), and local validate (check.fast) on 8cc16670 passed in 492s. The gate's "0.88 like automaticRunsSince" note is the two counts sitting side by side. They differ on purpose: one counts reworks for a red check, the other the bring-up-to-date runs.
The approval was on 6100f8d9, so this head needs a fresh look.
Thanks @juniper. On the non-blocking notes: the two counts differ on purpose. automaticRunsSince counts reworks for a red check (the check-tries budget #8022 and #10909 rely on). bringUpRunsSince counts the sweep's own finished conflict runs, which bounds the bring-up loop. The gate's "0.88 like automaticRunsSince" note is about shape, not duplication. I'm keeping the head as it is so the approval holds. If you want the counts mode split into two named functions, I can do that in a follow-up.
bringUpToDate gated on automaticRunsSince, which since #8022 counts only reworks for a red check. A pull whose check tries were spent was then released by the tick's sweep as soon as main moved, while the same pull's no-merge red (bringUpAfterNoMerge) brings it up to date and keeps it open. Which one ran first decided, so crew-merge-conflict's first test flaked (closed instead of open) on a loaded box. bringUpToDate now bounds the bring-up-to-date runs it queues, the bound the sweep already applies, and a new test drives the sweep first: it fails before the fix and passes after.
Why
test/crew-merge-conflict.test.ts"a clash outside the list docs queues a bring-up-to-date run, is no try and parks nothing" goes red on a loaded box (Expected: "open",Received: "closed", with[autonomy] conflicted pull released … why="main moved under it 2 times and the branch could not be brought up to date"in its log). Two paths answer the same conflicted pull whose check tries are spent:bringUpAfterNoMergeinsrc/crew/dispatch.ts) queues aconflictrun and keeps the pull open, as #8022 meant ("a merge conflict is not a failed try … its tries are kept");sweepConflictscallsbringUpToDate, whose gate still readautomaticRunsSince. Since #8022 that counts onlycheck_failedreworks, so the gate released the pull for tries that have nothing to do with the conflict.Whichever ran first decided the outcome, both in the test and on a real forge.
Change
bringUpToDatenow bounds the bring-up-to-date runs it queues: finishedconflictruns since the person's last word or the episode start, at the sameCHECK_FAILED_LIMIT. The sweep already applies that bound before it callsbringUpToDate, so the sweep's own close ("… 2 attempts to bring the branch up to date failed") is unchanged. The person paths (MCPflow, TUI drift, studio action, fleet verb) and the landing paths keep a limit, now on the runs they would add. A rework for a red check still counts against the check's own limit ingive_up.Test
New test in
test/crew-merge-conflict.test.tslets the sweep see the spent-tries clash before any red. It fails on main (the pull is closed, 0 conflict runs) and passes with the fix. All 28 test files that touch the conflict sweep, bringUpToDate, finishing, land_gated/land_admit, the flow tool, the drift screen or landsim pass (284/284).The gate's "0.88 like
betSpentSince" note is a coincidence of shape: that function counts a wallet's spend, not runs.No look: crew logic only, no page or route changes.
Validation
validateon6100f8d9: pass in 82s (forge.json check.fast, verbatim, in a scrubbed env).bun install --frozen-lockfile: ok (exit 0, 0s)forge.json check.fast: ok (exit 0, 82s)