push landing: a ticket closes before its work is on main, so a dependent is claimed in the gap, blocks itself, and is never re-armed #359
Closed
opened 2026-11-19 14:04:43 +00:00 by ben
·
7 comments
No Branch/Tag specified
main
sandcastle/rescue-20261120-212246
sandcastle/rescue-20261120-202650
sandcastle/rescue-20261120-202316
sandcastle/worker/20261120192753-1909682
sandcastle/rescue-20261120-191443
sandcastle/rescue-20261120-195103
sandcastle/rescue-20261120-201254
sandcastle/rescue-20261120-201438
sandcastle/rescue-20261120-144756
sandcastle/rescue-20261120-184843
sandcastle/rescue-20261120-190817
sandcastle/rescue-20261120-045815
sandcastle/rescue-20261120-143144
sandcastle/rescue-20261120-144025
sandcastle/worker/20261120032838-3834852
sandcastle/worker/20261120034547-1076409
sandcastle/rescue-20261120-031041
sandcastle/rescue-20261120-035031
sandcastle/rescue-20261120-041046
sandcastle/rescue-20261120-041556
sandcastle/rescue-20261120-042712
sandcastle/rescue-20261120-044145
sandcastle/rescue-20261120-044401
sandcastle/worker/20261120020735-3225234
sandcastle/rescue-20261120-025017
sandcastle/worker/20261120012937-3577764
sandcastle/rescue-20261120-024432
sandcastle/rescue-20261120-012510
sandcastle/rescue-20261120-020027
sandcastle/rescue-20261120-022005
sandcastle/rescue-20261120-023040
sandcastle/rescue-20261120-023059
sandcastle/rescue-20261120-023617
sandcastle/rescue-20261120-023726
sandcastle/rescue-20261120-024624
sandcastle/rescue-20261120-030108
sandcastle/rescue-20261120-011059
sandcastle/rescue-20261119-235227
sandcastle/rescue-20261119-220002
sandcastle/rescue-20261119-234418
sandcastle/worker/20261119210537-2901903
sandcastle/rescue-20261119-215319
sandcastle/worker/20261119210832-2140478
sandcastle/rescue-20261119-205729
sandcastle/worker/20261119195637-2051281
sandcastle/rescue-20261119-203604
sandcastle/rescue-20261119-212545
sandcastle/rescue-20261119-213258
sandcastle/rescue-20261119-214233
sandcastle/rescue-20261119-215039
sandcastle/rescue-20261119-200052
sandcastle/rescue-20261119-202558
sandcastle/rescue-20261119-202859
sandcastle/rescue-20261119-204522
sandcastle/rescue-20261119-202901
sandcastle/worker/20261119192821-2242548
sandcastle/rescue-20261119-201432
sandcastle/worker/20261119185826-1049892
sandcastle/rescue-20261119-192442
sandcastle/rescue-20261119-194543
sandcastle/rescue-20261119-195715
sandcastle/rescue-20261119-195042
sandcastle/rescue-20261119-194153
sandcastle/rescue-20261119-193223
sandcastle/rescue-20261119-181821
sandcastle/rescue-20261119-182031
sandcastle/rescue-20261119-191400
sandcastle/rescue-20261119-184524
sandcastle/rescue-20261119-185251
sandcastle/rescue-20261119-190111
sandcastle/rescue-20261119-171507
sandcastle/rescue-20261119-172406
sandcastle/rescue-20261119-180227
sandcastle/rescue-20261119-181611
sandcastle/rescue-20261119-183926
sandcastle/rescue-20261119-165410
sandcastle/rescue-20261119-181300
sandcastle/worker/20261119152654-1251003
sandcastle/rescue-20261119-175608
sandcastle/rescue-20261119-153212
sandcastle/rescue-20261119-155612
sandcastle/rescue-20261119-161612
sandcastle/rescue-20261119-162645
sandcastle/rescue-20261119-151259
sandcastle/worker/20261119-091545-699963
sandcastle/rescue-20261119-152400
sandcastle/rescue-20261119-150650
sandcastle/rescue-20261119-151018
sandcastle/rescue-20261119-145753
sandcastle/rescue-20261119-144640
sandcastle/worker/20261119-141805-b375a7
sandcastle/rescue-20261119-143616
sandcastle/rescue-20261119-142315
sandcastle/rescue-20261119-143536
sandcastle/rescue-20261119-144907
sandcastle/rescue-20261119-150929
sandcastle/rescue-20261119-140252
sandcastle/rescue-20261119-132837
sandcastle/rescue-20261119-140917
sandcastle/rescue-20261118-232015
sandcastle/rescue-20261118-224358
sandcastle/rescue-20261118-231012
sandcastle/rescue-20261118-221954
sandcastle/rescue-20261118-223235
sandcastle/rescue-20261118-215029
sandcastle/rescue-20261118-220457
sandcastle/rescue-20261118-213647
sandcastle/rescue-20261118-213651
sandcastle/rescue-20261118-203142
sandcastle/rescue-20261118-201242
sandcastle/rescue-20261118-160449
sandcastle/worker/20261118-151037-fa1423
sandcastle/rescue-20261118-141033
sandcastle/rescue-20261118-153435
sandcastle/rescue-20261118-155226
sandcastle/rescue-20261118-140135
sandcastle/rescue-20261118-072336
sandcastle/rescue-20261118-071306
sandcastle/rescue-20261118-065902
sandcastle/rescue-20261118-070925
sandcastle/rescue-20261118-064628
sandcastle/rescue-20261118-060611
sandcastle/rescue-20261118-063652
sandcastle/rescue-20261118-065117
sandcastle/rescue-20261118-065556
sandcastle/rescue-20261118-055026
sandcastle/worker/20261118-000033-5f0b74
sandcastle/rescue-20261118-054929
sandcastle/rescue-20261118-053613
sandcastle/worker/20261118-050837-870db6
sandcastle/rescue-20261118-051315
sandcastle/rescue-20261118-052156
sandcastle/rescue-20261118-053056
sandcastle/rescue-20261118-042651
sandcastle/rescue-20261118-050517
sandcastle/rescue-20261118-052017
sandcastle/rescue-20261118-052046
sandcastle/rescue-20261118-053617
sandcastle/rescue-20261118-040341
sandcastle/rescue-20261118-035452
sandcastle/rescue-20261117-180034
sandcastle/worker/20261117-173516-cca624
backport/idss-2068-2111-2114
sandcastle/rescue-20261117-123242
sandcastle/rescue-20261117-124231
backport/idss-2057
sandcastle/rescue-20261116-154411
sandcastle/rescue-20261117-175037
sandcastle/rescue-20261116-153352
sandcastle/rescue-20261107-062749
session-runner-land-mode-recheck-2181
sandcastle/rescue-20261107-061316
fp/idss-2180
sandcastle/rescue-20261107-060212
forward-port/provision-disk-guard
sandcastle/rescue-20261107-060021
sandcastle/rescue-20261107-054649
sandcastle/worker/20261107-043349-cf0d7e
backport/idss-2177
sandcastle/rescue-20261116-175301
sandcastle/rescue-20261116-175950
backport/idss-2176
sandcastle/rescue-20261106-135208
sandcastle/rescue-20261107-045600
sandcastle/rescue-20261107-051315
sandcastle/rescue-20261107-053423
sandcastle/worker/20261106-111451-8c1ff0
sandcastle/rescue-20261106-023514
sandcastle/rescue-20261106-113455
sandcastle/rescue-20261106-115043
sandcastle/rescue-20261106-121303
sandcastle/rescue-20261106-134211
sandcastle/worker/20261106-013937-c15abc
fix/336-job-locality-runner-uuid
sandcastle/rescue-20261106-000320
sandcastle/rescue-20261105-113317
sandcastle/rescue-20261105-235352
sandcastle/rescue-20261106-020541
sandcastle/rescue-20261106-022516
sandcastle/rescue-20261106-024735
sandcastle/rescue-20261106-024744
sandcastle/rescue-20261106-024751
sandcastle/worker/20261105-104416-4319e1
sandcastle/rescue-20261105-111401
sandcastle/worker/20261105-054650-133b83
sandcastle/rescue-20261105-104304
sandcastle/rescue-20261105-110432
sandcastle/rescue-20261105-110637
sandcastle/rescue-20261105-112240
sandcastle/rescue-20261105-102818
sandcastle/worker/20261105-090131-e38a52
sandcastle/rescue-20261105-101105
sandcastle/rescue-20261105-094209
sandcastle/rescue-20261105-095705
sandcastle/rescue-20261105-091351
sandcastle/rescue-20261105-092126
sandcastle/rescue-20261105-093755
sandcastle/rescue-20261105-095339
sandcastle/rescue-20261105-101509
sandcastle/worker/20261105-033507-997386
sandcastle/worker/20261105-072852-43a339
sandcastle/rescue-20261105-085215
sandcastle/rescue-20261105-090546
sandcastle/rescue-20261105-090731
sandcastle/rescue-20261105-091600
sandcastle/worker/20261105-073544-9e3e7b
sandcastle/rescue-20261105-085541
sandcastle/worker/20261105-030149-b06fe6
sandcastle/rescue-20261105-075223
sandcastle/rescue-20261105-080157
sandcastle/rescue-20261105-081231
sandcastle/rescue-20261105-081252
sandcastle/rescue-20261105-081916
sandcastle/rescue-20261105-082029
sandcastle/rescue-20261105-082600
sandcastle/rescue-20261105-082859
sandcastle/rescue-20261105-083557
sandcastle/rescue-20261105-084327
sandcastle/rescue-20261105-090802
sandcastle/rescue-20261105-092213
sandcastle/worker/20261105-004228-d59980
sandcastle/worker/20261104-200255-c897e8
sandcastle/rescue-20261105-021604
sandcastle/rescue-20261105-062428
sandcastle/rescue-20261105-064420
sandcastle/worker/20261104-185608-12e745
sandcastle/rescue-20261105-011719
sandcastle/rescue-20261104-221030
sandcastle/rescue-20261105-003304
sandcastle/rescue-20261105-005511
sandcastle/rescue-20261105-013351
sandcastle/rescue-20261105-015246
sandcastle/worker/20261104-204335-4df59d
sandcastle/worker/20261104-144451-39719f
sandcastle/rescue-20261104-210849
sandcastle/rescue-20261104-211127
sandcastle/rescue-20261104-212722
sandcastle/worker/20261104-194113-a58f71
sandcastle/rescue-20261104-193329
sandcastle/rescue-20261104-200835
sandcastle/rescue-20261104-201057
sandcastle/rescue-20261104-202237
sandcastle/rescue-20261104-204239
sandcastle/rescue-20261104-185105
sandcastle/rescue-20261104-185510
sandcastle/rescue-20261104-192703
sandcastle/rescue-20261104-184907
sandcastle/rescue-20261104-183301
sandcastle/rescue-20261104-183354
backport/idss-2161
backport/idss-2155
fp/idss-2147
backport/idss-2145
backport/idss-2134
backport/idss-2119
sandcastle/worker/20261030-141035-c3d689
sandcastle/worker/20261030-125730-11b08b
sandcastle/worker/20261030-172321-20db0e
backport/idss-2114
backport/idss-2112
forward-port/idss-2111
forward-port/idss-2068
backport/idss-2111
backport/idss-2110
backport/idss-2106
backport/idss-2068
backport/idss-2104
sandcastle/rescue-20261030-110900
sandcastle/worker/20261029-055633-763b74
sandcastle/worker/20261029-000831-e4c652
sandcastle/worker/20261028-162655-0e8071
sandcastle/rescue-20261030-110112
sandcastle/rescue-20261030-110131
sandcastle/rescue-20261030-110135
sandcastle/rescue-20261030-110153
sandcastle/rescue-20261030-110156
sandcastle/rescue-20261030-110200
sandcastle/rescue-20261030-110220
backport/idss-1913
agent/issue-306
runner-busy-not-stalled
sandcastle/worker/20261024-045639-da1b9a
sandcastle/worker/20261023-060833-778cbe
fleet-queue-watcher-301-proposal
floor-vue
sandcastle/worker/20261021-191646-b93327
sandcastle/worker/20261021-233637-f21837
sandcastle/worker/20261021-233255-c766f7
sandcastle/worker/20261021-040000-b7a28d
backport/idss-2050
backport/idss-2050-session-pr-landing
sandcastle/worker/20261020-221737-cc96f3
backport/idss-2052
agent/issue-289
backstop-waiting-runs
sandcastle/worker/20261017-204619-942ae4
sandcastle/worker/20261017-204620-aa17c2
sandcastle/worker/20261017-144914-3ec608
sandcastle/worker/20261017-063336-7f5d31
sandcastle/rescue-20261017-062529
sandcastle/worker/20261017-010124-c49097
sandcastle/worker/20261017-003840-0c4ab1
sandcastle/rescue-20261017-054742
sandcastle/worker/20261017-053155-61c4c7
sandcastle/worker/20261017-050606-f20d66
sandcastle/rescue-20261017-052443
sandcastle/worker/20261017-050839-ec5b54
sandcastle/rescue-20261017-052212
sandcastle/worker/20261017-050442-495e4b
sandcastle/rescue-20261017-051857
sandcastle/worker/20261017-000426-34fa18
agent/issue-272
agent/issue-273
agent/issue-244
agent/issue-269
sandcastle/rescue-20261016-184726
sandcastle/rescue-20261016-184906
sandcastle/rescue-20261016-185533
sandcastle/rescue-20261016-191907
sandcastle/rescue-20261016-192219
sandcastle/worker/20261016-155725-c51ed1
agent/issue-195
agent/issue-196
agent/issue-197
agent/issue-198
agent/issue-200
agent/issue-203
agent/issue-205
agent/issue-206
agent/issue-207
agent/issue-209
agent/issue-213
agent/issue-216
agent/issue-217
agent/issue-218
agent/issue-222
agent/issue-238
agent/issue-208
sandcastle/worker/20261016-155833-1b8f77
agent/issue-241
agent/issue-230
agent/issue-239
land/issue-193
forward-port/idss-2048
backport/idss-2048
agent/issue-237
agent/issue-225
agent/issue-193
agent/issue-176
backport/1717-unclaimed-commit-gate
backport/1733-drive-yield-runlog
fix/159-rehearsal-report-token-leak
fix/157-ready-list-standdown
fix/154-verdict-no-match-trap
factory-floor-visual-rework
landing-shell-guard
No results found.
Labels
Clear labels
agent-blocked
Sandcastle hit a blocker — human resolves it, then re-adds ready-for-agent
agent-working
Claimed by a live swarm run — other hosts skip it
bug
Something is broken
deferred
Ruled defer-with-criteria: parked until a revisit criterion in the issue body fires
enhancement
New feature or improvement
landing-pr
Additive: this ticket lands ONLY by a PR with screenshots (or a waiver) that a human merges — ADR 0265. Only a human removes it.
model-haiku
Per-ticket model override (additive): run this ticket on the cheap/fast model
model-opus
Per-ticket model override (additive): run this ticket on the top-tier model
model-sonnet
Per-ticket model override (additive): run this ticket on the mid-tier model
needs-info
Waiting on reporter for more information
needs-triage
Maintainer needs to evaluate this issue
no-triage
Escape hatch: triage automation must skip this issue
priority
Additive urgency marker — the swarm queue works these first
ready-for-agent
Fully specified, ready for an AFK agent
ready-for-human
Needs the human's hands, eyes, or a one-way-door ruling (ADR 0174)
ready-for-session
Needs an interactive agent session (host creds/protected paths/live doors), not the human (ADR 0174)
wontfix
Will not be actioned
No labels
agent-blocked
agent-working
bug
deferred
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-info
needs-triage
no-triage
priority
ready-for-agent
ready-for-human
ready-for-session
wontfix
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Blocks
Reference
Matou/dev-factory#359
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What happens
In a
LANDING=pushrepo, a ticket is closed before its work is onmain. When the land then fails, a ticket that depends on it gets handed out in the gap, blocks itself, and stays blocked after the dependency lands. Nothing re-arms it. Each occurrence stalls a dependency chain until a human notices.The sequence, as seen on
Matou/policy-generators(times UTC, 2026-11-18):close-report.shverifies against the pushed worker branch and closes the ticket ("pre-land — the host promotes it tomainonly after its post-run verify, #193/#283").push-parked-on-rescue):mainmoved during the run and the rebase conflicted.ready-for-session. This is correct, but it comes one to two minutes after the close.main, correctly refuses to rebuild it, and labels its ticketagent-blocked(trigger: cannot-proceed, unavailable dependency).agent-blocked. The session runner skipsagent-blocked, triage skips it, the janitor only re-armsagent-working, and the healer may not relabel issues it does not own.Evidence (policy-generators, 2026-11-17 to 2026-11-19)
Counted from the ticket threads:
The clearest case, overview: the overview page:
agent-blocked.main(183403c) and closes.The land failures will keep happening
Three causes of the rollback itself were fixed on 2026-11-18 (policy-generators #108
STATUS.mdlog lines, #110 shared registration lists, #109 / dev-factory #347 the shared workdir). They do not remove the class. #51's parked commita078db9, replayed ontomainas it was then (da91264), auto-mergesSTATUS.mdandserver/src/mounts.tsand conflicts inserver/src/policies/sections.tsandweb/src/pages/section/Section.tsx: two tickets with the same dependency ran in parallel and both edited the same source files. That is ordinary, and no merge driver fixes it. So the two gaps below are what turn a routine rollback into a long stall.Two gaps
A. Closed is treated as landed.
list-ready-tasks.shcounts a dependency as met when its issue is closed. In push mode the close precedes the land, so "closed" is briefly untrue ofmain, and after a failed land it is untrue for as long as the re-land takes.B. A dependency block is never lifted by the machinery.
agent-blockedmaps tocannot-proceed, a human hand-off (policy-lib.sh,HUMAN_LABELS). That is right for most blocks. For "my dependency is not onmain" the condition clears on its own, and a human is asked to do what a check could do.Options (not ruled)
For A:
main: move the close out of the in-sandboxclose-report.shinto the host's post-land step.origin/main.For B:
agent-blocked, names the landed ticket in a dependency-block comment or a native dependency, and has no other open blocker. The finishing run's self-rearm (report-lib.sh, "promotes dependants") is the natural place.agent-blockedcauses, so the lister can lift it mechanically and never touches a block that needs a human.Fixing A alone stops new cases. Fixing B alone bounds the cost of each case to the re-land time.
Checks
ready-for-agentwhen N lands, and a ticket blocked for any other reason does not.Related
Also seen, not part of this ticket
policy-generators' rendered
heal-prompt.mdstill says the repo "is at the design stage ... with no product code", names the healer host asmatou-workstationuserdev, and tells the healer to clone from/home/dev/swarm/Matou/policy-generators. The healer runs on all three pool hosts, two of which have no/home/dev(#352). That is a consumer re-render, noted here so it is not lost.Found by an interactive session in
Matou/policy-generators, 2026-11-19.Ruled by agent under ADR 0174 — veto anytime.
Ruling:
bug+ready-for-agent+priority. The one open item — which of the stated options to take — is delegated to the implementing agent, bounded by the two offline checks below (a recommended default is given).Why this is a two-way door: every piece of the fix is a root harness edit (
list-ready-tasks.sh,close-report.sh/ the host land step,report-lib.sh,claim-lib.sh, and at mostpolicy-lib.sh) — none of it touches a prompt skeleton,.sandcastle/, or.forgejo/, so it is notready-for-session. A root change reaches the running factory copy only when a human bumps the pin (GOTCHAS 4), so a swarm worker editing these files does not mutate the machinery scheduling it — no self-modification hazard. The approach choice and the labels are reversible by a later commit/label change, and none of it is a one-way door (no credentials, no security widening, no trust accept, no data destruction, no spend).What proves it: the two offline tests named under Checks below are the acceptance gate; any approach that makes both pass (with its test added in the same commit, per CLAUDE.md) is a correct fix, and a wrong call is revertible. Ben's veto is asynchronous, never blocking.
Claim verified against the code (not just the report):
list-ready-tasks.sh) counts a dependency as met whenever its dependency issue is not open — it selects.state == "open"on the dependencies list and emits the ticket when zero remain. There is no check that the dependency's commits are onorigin/main. InLANDING=pushthe close precedes the land (#193/#283), so "closed" is briefly — and, after a failed land, durably — untrue ofmain.report_self_rearm(report-lib.sh, the spec-D5 self-rearm) promotes dependants on close, but there is no path that lifts a dependent already sitting inagent-blocked: the session runner skipsagent-blocked, triage skips it, the janitor re-arms onlyagent-working, and the healer may not relabel issues it does not own.agent-blocked → cannot-proceedis a human hand-off (policy-lib.sh,HUMAN_LABELS), correct for most blocks but wrong for "my dependency is not onmain," which clears on its own.priorityadded because each occurrence stalls a live consumer's dependency chain for hours (the report's #52 case: ~15h, blocking the next phase ofpolicy-generators) and the land failures that trigger it will keep happening. Revertible; lift it when the fix lands.Agent Brief
Category: bug
Summary: In
LANDING=pushrepos a ticket is closed before its work is onmain; a dependent is handed out in the gap, blocks itself (agent-blocked), and is never re-armed by the machinery after the dependency lands.Current behavior:
close-report.shcloses a ticket pre-land (verify against the pushed worker branch; the host promotes tomainafter its own post-run verify —#193/#283).push-parked-on-rescue:mainmoved, rebase conflicts — an ordinary two-tickets-same-files conflict no merge driver fixes).#283reconcile reopens the ticket asready-for-session, but one–two minutes later.main, correctly refuses to rebuild it, and self-labelsagent-blocked.agent-blockedforever (no machinery re-arms it).Desired behavior:
origin/main, not merely because its issue is closed. In push mode a closed-but-not-yet-landed dependency must not make its dependent claimable; the dependent becomes claimable once the dependency lands.main, any open dependent that is blocked specifically because that dependency was not onmainand has no other open blocker must be returned toready-for-agentautomatically. A block held for any other reason (a genuine human hand-off) must be left untouched.Recommended approach (default — an agent may choose another option if both checks pass):
origin/main) is acceptable but makes the lister do git ancestry + ticket→commit mapping. Option A1 (move the close out ofclose-report.shinto the host post-land step) reshapes the deliberate pre-land-close contract of#193/#283— only take it if the marker/ancestry routes prove unworkable, and note the#283interaction.report_self_rearm, "promotes dependants") re-arm the dependent on land (option B1), using a distinct marker for the dependency-not-landed block (option B2) so the machinery lifts only that block and never a humanagent-blocked. B1 and B2 compose; B1 alone is unsafe unless it can tell the block's cause apart from a human hand-off. If the chosen marker touchespolicy-lib.shtrigger/HUMAN_LABELSprose, treat it as high-blast-radius (it renders into every consumer's prompt — CLAUDE.md) and re-prove the render fixtures.Key interfaces / seams (describe, don't pin to paths):
close-report.sh) and the host land/verify step — where a not-yet-landed marker would be set and cleared.report_self_rearmand the claim/label helpers (claim-lib.sh,rearm_dispatch) — where a landed ticket promotes/re-arms dependents.policy-lib.sh,HUMAN_LABELS, trigger guidance) — only if a new distinct marker/label is introduced.onboarding/labels.json,docs/agents/triage-labels.md) — update both in the same commit if a new label is minted.Acceptance criteria (the report's two Checks are the gate):
ready-for-agentwhen N lands, and a ticket blocked for any other reason does not get re-armed.for t in tests/*.sh onboarding/tests/*.sh; do case "$t" in *fakebin*|*fixtures*) continue;; esac; bash "$t" || echo "FAIL: $t"; done).prompts/*.mdskeleton or prompt-rendering prose changes, the cutover-proof fixtures (onboarding/tests/onboard-lib-test.sh) are re-proven byte-identical or the wording change is explained.docs/journal/YYYY-MM-DD-359.mdentry is added and the affectedSTATUS.mdsurface row updated, in the same commit (CLAUDE.md project-state rule).docs/gotchas/<id>-slug.mdbody + GOTCHAS index row is added for the "closed ≠ landed in push mode" hazard (keyed#359).Out of scope:
policy-generators#108/#110/#109 = dev-factory #347 shared workdir) — they reduce frequency but do not remove the class; this ticket fixes the two gaps, not the conflicts.policy-generators' renderedheal-prompt.mdstill describing a design-stage repo and a singlematou-workstation//home/devhealer host. That is a consumer re-render in a different product repo (the#352area) and must be handled inpolicy-generators' own tracker; the factory topology is pull-only, so it is not actioned from here. Recorded so it is not lost.#193/#283beyond what Gap A strictly requires.swarm-claim host=bens-mac-04 run=28842
(automated multi-host claim — lowest live claim id works this ticket)
⚠️ Swarm is starving. This repo's swarm has yielded 3 consecutive ticks (most recent reason:
slots-busy) with 1 ready-for-agent ticket(s) still open — the host's shared heavy slots have been busy (two long drains hold both slots on every host), so no worker has claimed for them. New tickets here are waiting behind other repos' work; this repo has now declared a want-file so a peer's queue-draining run frees its slot after the current ticket. A human may want to check host capacity.Ruled by agent under ADR 0174 — veto anytime. Automated starvation signal (Matou/dev-factory #213): posted once per episode, cleared on the next real claim.
⏩ independent reviewer for #359 — verdict
unauthenticatedreview JSON
close-report for #359 — status
success✅ close-report gates passed — every claim verified against the pushed worker branch
sandcastle/worker/20261119-091545-699963(pre-land — the host promotes it tomainonly after its post-run verify, #193/#283); issue closed.envelope
🚨 Reopened — a push-mode close did NOT land on
main(#283). close-report closed this issue against the pushed worker branch, but the host's post-run verify rolled the land back (push-parked-on-rescue), soorigin/mainnever carried the commits (dcb3512f4502c03dbb2470ef5ed9ad425ca467d3). The gates-passed comment above is therefore NOT true ofmain. Reopening and relabellingready-for-sessionso the work is redone where it can land; the commits are parked on a rescue branch for triage (see this run's alarm).close-report — #359 LANDED on
main(push mode)Ruled by agent under ADR 0174 — veto anytime. Both gaps were two-way doors: every edit is a revertible commit/label and every claim is proven by an offline test; no one-way door (credential, posture-widening, data loss, external publish) is crossed. The options the ticket left unruled are decided in
docs/journal/2026-11-19-359.mdunder Options ruled — gap A via option 3 (a close-set/land-cleared marker: the only one an offline shimmed-curl lister test can prove, works cross-repo, costs one label read already in the/dependenciesresponse); gap B via option 1 (re-arm on land, keyed to the native dependency — no prompt-skeleton re-render).What landed (commit
c1baa88,6c712ed..c1baa88onmain)Gap A — a closed dependency is met only once its work is on
main.close-report.shmarks a PRE-land push closelanding-pending(cr_mark_landing_pending, only when gate 1 verified the worker branch — never an on-main close).list-ready-tasks.sh's dependency check counts a blocker as still unmet when it is open OR closed-but-still-landing-pending.landing_promote_landedinlanding-lib.sh, wired intorun-swarm.shafterlanding_stagesucceeds — the success-path counterpart of the #283 reopen: sameSANDCASTLE_ATTEMPTattempts file, inverted ancestry guard, so a stranded close is reopened and a landed one promoted, never both).Gap B — a landed ticket re-arms the dependants it was blocking.
landing_rearm_dependants(called fromlanding_promote_landed) relabelsagent-blocked→ready-for-agenton every OPEN native dependant of the landed ticket whose every OTHER blocker is now met (same open-or-pending rule). A ticket blocked for any other reason is untouched — one that is not a native dependant never appears in/blocks, and one with another unmet blocker fails the count gate.Proof (the ticket's two required checks)
tests/list-ready-tasks-test.sh, +2): a dependent of a closed-but-landing-pendingdependency does NOT surface; once the dependency is closed AND clear of the mark it does. → 40 cases green.tests/landing-lib-test.sh, +9):landing_promote_landedclears the mark on a landed close and not on a stranded one; re-arms anagent-blockeddependant whose only blocker just landed; leaves a dependant with another unmet blocker AND one blocked for a non-dependency reason. → 173 checks green.tests/close-report-test.sh(+2): a pre-land worker-branch close markslanding-pending; an on-main close does not. → 149 checks green.tests/docs-budget-test.sh4/4;tests/run-swarm-stages-test.shgreen (ratchet 202→203 for the one delegated call);bash -nclean over all four touched source files.tests/fleet-queue-test.sh(one dispatcher-ack case, #356/#357 shadow).Docs
GOTCHAS #359 (body + index row; index budget raised 32768→40960, the same append-only ADR 0174 path #331 took), STATUS.md blocker + trim under its 16384 budget,
docs/journal/2026-11-19-359.md.Owed (noted on the STATUS blocker)
landing-pendinglabel in each push consumer (pull-only, GOTCHAS 4). Until minted, gap A is inert there (the lister reduces to the old state-only check); gap B works regardless.FACTORY_REFbump) to carryclose-report.sh/list-ready-tasks.sh/landing-lib.sh/run-swarm.shinto the running.sandcastle/self-copy and consumers (GOTCHAS 4) — until then this repo's own queue still has the gap.Also seen, not part of this ticket (filed-forward per the ticket's note): policy-generators' rendered
heal-prompt.mdstill namesmatou-workstationuserdevand/home/dev/...— a consumer re-render, tracked against #352's rollout.