landing: a reopened stranded close drops the finished run's own claim (#366) #367

Merged
ben merged 1 commit from fix/366-drop-run-claims into main 2026-11-19 17:41:11 +00:00
Owner

Fix for reconcile: a reopened stranded close keeps the dead run's claim.

When the #283 reconcile reopens a ticket whose land was rolled back, it now deletes that run's own swarm-claim comment, so a session runner can take the ticket on its next tick instead of after the 2h05m claim TTL.

  • Only an exact run=$SWARM_RUN_ID swarm claim is deleted. A peer run's claim and a session claim are left alone.
  • tests/landing-lib-test.sh: 156 passed, 9 new. The full offline suite passes locally.
  • Not run locally: shellcheck (not installed here). This PR is open so ci / static runs it.
  • Owed: the GOTCHAS index row (index is 21 bytes under budget), and a pin bump before any running copy has the fix.

🤖 Generated with Claude Code

Fix for [reconcile: a reopened stranded close keeps the dead run's claim](https://git.matou.nz/Matou/dev-factory/issues/366). When the #283 reconcile reopens a ticket whose land was rolled back, it now deletes that run's own `swarm-claim` comment, so a session runner can take the ticket on its next tick instead of after the 2h05m claim TTL. - Only an exact `run=$SWARM_RUN_ID` swarm claim is deleted. A peer run's claim and a session claim are left alone. - `tests/landing-lib-test.sh`: 156 passed, 9 new. The full offline suite passes locally. - Not run locally: shellcheck (not installed here). This PR is open so `ci / static` runs it. - Owed: the GOTCHAS index row (index is 21 bytes under budget), and a pin bump before any running copy has the fix. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
landing: the #283 reconcile drops the finished run's own claim when it reopens a stranded close (#366)
Some checks failed
ci / static (pull_request) Failing after 4m1s
ci / test (pull_request) Successful in 13m21s
74219366ac
A push-mode close that did not land is reopened ready-for-session, but the
swarm run's swarm-claim comment stayed on the ticket. Session runners count
any claim younger than their TTL as a live peer, so every host stood down
from the ticket for up to 2h05m (seen on #359, 2026-11-19).

landing_drop_run_claims deletes only a swarm claim whose first line is
exactly this run's. A peer run's claim and a session claim are never touched.
No run id is a no-op.

Tests: tests/landing-lib-test.sh, 9 new checks. Journal entry, hazard body
and STATUS line in this commit; the GOTCHAS index row is owed (index is 21
bytes under budget and #359's parked commit raises the ceiling).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
ben force-pushed fix/366-drop-run-claims from 74219366ac
Some checks failed
ci / static (pull_request) Failing after 4m1s
ci / test (pull_request) Successful in 13m21s
to 660f39d06f
Some checks failed
ci / static (pull_request) Failing after 4m43s
ci / test (pull_request) Successful in 9m5s
ci / static (push) Failing after 4m24s
ci / test (push) Successful in 9m7s
2026-11-19 17:25:11 +00:00
Compare
ben merged commit 660f39d06f into main 2026-11-19 17:41:11 +00:00
ben deleted branch fix/366-drop-run-claims 2026-11-19 17:41:12 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/dev-factory!367
No description provided.