Public: anyone can read this; the crew can change it.
A handed-over runner job is judged by its own lease, so a slow boot or the orphan lapse no longer loses it #17096
Merged 2d 1h ago, live in production
On the 09:42 release (2026-12-01) the stopping forge handed over 6 runner checks, and the new forge cut all 6 before adoption looked at them. The boot's reconcile ran lapseOrphans first: the old process, on the same "forge" hostname, was gone, so it set their heartbeat to 1970 (orphanedruns=6).
-
Reviews
ApprovedApproved. A handed-over check is now judged by its job's own lease: adoptableJobs, the orphan lapse and the abandoned sweep all read the same condition (handedOverHolds), so a slow boot no longer loses it, and a job whose lease ran out still goes to the sweep. The change is backend only, with no page, TUI or docs door to add, and it adds no dependency or rule. The tests cover both outcomes: the slow boot, where the check is kept and settles ok, and the expired claim, where it is requeued. They would fail without the change.
Two things I would do next:
- In test/runner-adopt.test.ts, move the
node:osimport up with the other imports so the block stays tidy. - Say in the pull that a lease kept alive by a runner that keeps reporting but never finishes is bounded only by the runner's own lease rules. Consider a test pinning that a job whose runner stops reporting is requeued within one lease.
- In test/runner-adopt.test.ts, move the
-
Checks
shipped production is serving it deploy 9d6fa9d
-
History
- A handed-over runner job is judged by its own lease, so a slow boot or the orphan lapse no longer loses it 890a365
- Check slots per repository: each app gets a guaranteed share, the forge borrows what's idle (#16946) 099c6cc
- Observability 3b: the /boards index is live by streaming, like a board (#16848) ba6c159
- One keymap (b): pulls, the review page and a repository's tabs take their keys from the map; a moved key says where it went for two weeks (#16992) 3518284
- Surface the flow report in the terminal Flow dialog and the MCP flow tool (#16999) ade4088
- A check step behind Landlock stacked under its cell says so too, on the forge and on a runner (#16996) 0bd9528
- Sentinel: memory-growth was degraded 25 minutes today: The forge's own memory is 5382 MiB, over twice its first-hour 2272 MiB and past the 2176 MiB more its database caches m… (#16985) 9e6d1ed
- The forge measures each new forge's seconds from first ask to first built change, and /admin/limits shows the median per plan (#16829) 695dd1c
- The People-screen verify test passes in any order: carol is made up front, and listPeople is checked against the real state (#16998) dc1306c
- Errors, Sentry-grade and first-party: stock Sentry SDKs → the forge (envelope protocol + OTel), grouping, suspect pull, and the healing loop (error → issue → fix → resolved → regression reopens) (#16935) 18b216a
- Forges sharing a machine each get a cgroup and a sandbox, so no neighbour starves or reads another (#16938) 1857b5e
- One test walks a bare URL to a landed pull on the owner's repo through the API alone, with the owner's one grant as the only person's step (#16986) d25e6e6
- A runner's work outlives a forge restart: the stopping forge hands the job over and the next one takes it back (#16991) 4d835f0
- A self-swap release waits for the pull checks running, at most 20 minutes (#16988) 429ec86
- The forge's SSH terminal is off after every boot: the host key comes up mode 660; the forge should tighten its own key to 0600 at start (#16984) c86b931
- Main's full check is never cancelled by a landing, so main gets a verdict (#16993) f8ee1c5
- Sentinel: queue:deploy was degraded 60 minutes today: The deploy queue has waited over 30 minutes: 2 queued, 0 running. (#16987) fc639f6
- A failure deferred while a builder run is at work is forgotten by a restart; re-derive it (#16961) 2162e6b
- A person can ask the crew to review their pull (route, button and @mention); today person-authored pulls are never reviewed (#16905) b9a7f54
- Re-cut a conflict in a split file mechanically instead of a full agent run (#6140, part 3) (#16962) 469aaae
On the 09:42 release (2026-12-01) the stopping forge handed over 6 runner checks, and the new forge cut all 6 before adoption looked at them. The boot's reconcile ran lapseOrphans first: the old process, on the same "forge" hostname, was gone, so it set their heartbeat to 1970 (orphaned_runs=6). The abandoned sweep then queued them again ("boot after an unclean stop: 6 checks cut"). Adoption only takes checks with a fresh heartbeat, and so found none.
No forge beats for a handed-over check. While a runner holds the job, its reports push the lease out (holdForAdoption), so the job's lease_until is the truth:
This alone did not save the 09:42 checks: every runner there is the forge's own child (local-1..8) and died with the container. Runners outside the container are the owner's call.
Direction: a runner's work outlives a forge restart (#16990) No door: a lease rule inside the check lanes; no page, API or terminal surface changes Replaces: the heartbeat-freshness test for adoption (adoptableJobs' freshMs)
Co-Authored-By: Claude Fable 5 <[email protected]>
🤖 Generated with Claude Code