Repository navigation
issue-tracker: the gh sweep bounds a dependency wait — a stranded ticket is reported (arkho #61) - #155
Merged
Conversation
`B.eligible` refuses to draw a ticket while a blocker is unfinished, and that refusal is the whole of what the gh board does about the wait: nothing ages it, nothing asks whether the blocker is still moving, nothing tells a human when it is not. The dependency yield (#146) makes that state reachable without a human ever having looked at it. board-sweep.sh grows a STALL pass — the gh half of the binding-neutral contract the API board's reconciler owns (arkho #56). Two signals: a CYCLE, structural and clockless, fired once no member is in flight; and a STALL on the BLOCKER's silence, gated by the waiting ticket's own wait reaching the same threshold. Both park the waiting ticket needs-human with the blocker, the chain behind it, and the repairs in the note. Each predicate is translated to a signal the sweep already reads: issue `updatedAt` over the blocker's subtree for the ledger, the daemon registry for `owner_run`, the park note for "already reported". Dedupe is the marker's own payload rather than a clock — it is the only dedupe a ring admits. Two divergences from the spec, both because the gh queue is not the API queue. `wontfix` is an unfinished blocker here, because B.eligible accepts only `done` and a wontfixed blocker therefore strands its waiter forever. And a dispatch-eligible blocker is never a stall root: a cap-bounded lane leaves eligible tickets queued for days, and without that clause every ticket behind a backlog is parked for it. Threshold SWEEP_STALL_DEPENDENCY_MINUTES, default 2880 (48h), the same number as the API board's DEPENDENCY_STALL_MS. Also: the protocol's dependency-yield paragraph says what comes back if the blocker dies, and SKILL.md's re-joins the phrase test-protocol-content.sh asserts on, which a rewrap on this branch's base had split across a line.
The IMPACT pass needs a persisted cursor because it must read every child's comments. This pass gets the same bound by ordering its predicates — the dedupe read is the LAST check, reached only by a candidate already due on every snapshot-derived one. The drill measures that: one read in the worst-case shape (due on everything but the dedupe), zero for a healthy wait, and never a read of the blocker.
…is board's workers Six defects an independent review found in the gh STALL pass (arkho #61), none of them changing what the pass is for. A ring that cannot be PARKED still has to be JUDGED. The cycle branch used to `continue` on three paths — a member still in flight, this ticket not being the ring's representative, the ring already reported — and each of those skipped the temporal stall evaluation below as well. arkho #56 is explicit that a ring member in flight, unowned and silent past the threshold IS a stalled root, and the STALL rule is how a never-resumed member is caught at all. The branch now parks-and-continues or falls through, nothing else. Nothing doubles up: a ring member in a lane queue is a waiting leaf and a parked representative carries a [dependency- note, so the chain-link rule already reads both as somebody else's report. `ring_walk` could name an edge that does not exist. It was a greedy forward walk with no backtracking, so on a branched strongly connected component it dead-ended and closed the walk with the start anyway — printing a blocked-by link nobody ever drew, into a note whose whole job is telling a human which edge to cut. It is now a depth-first search with backtracking, deterministic in ascending numeric order, returning only a path whose closing step is real. The "being worked" signal is this board's, and it reads the recovery ladder. `B.live_bound_tickets()` is board-blind — $DAEMON_HOME is machine-global, and a neighbouring checkout's worker on ITS #42 was suppressing this board's report about OUR #42 — and status-blind in the other direction: RECOVER backgrounds `sminos resume` and returns inside the same tick, so a binding it is actively recovering still reads `idle` when STALL runs. The pass now builds its own set: metas filtered through `_board_api.meta_is_mine` against `gh:$BOARD_REPO`, counting `working`/`blocked` always and `idle`/`error` while the ladder has a rung left. An EXHAUSTED ladder stops counting on purpose — RECOVER's own answer to exhaustion is to park the blocker `needs-human`, and a dead binding must never suppress a report forever. `live_bound_tickets()` itself is untouched; its other callers stay tech-debt row 13. `activity()` records one deliberate reading: a park this pass writes onto a ticket inside the blocker's subtree bumps that ticket's `updatedAt`, which is bookkeeping rather than progress, and the snapshot is not re-read to pick it up within a tick — at the honest cost that a later tick does see it. Version bumped to 7.87.0 in the same commit, per the marketplace rule. Two findings are logged rather than fixed (TECH-DEBT rows 19, 20): the snapshot-to-write window every pass shares, which wants a fence all writers hold rather than a fix in one pass; and the dedupe's per-candidate comment read, bounded structurally today but with no cross-tick cursor. Drills: the 101/102/103 fixture now asserts the report it was silently swallowing; a new 104/105/106 ring with a LIVE bound worker pins that the fall-through is not a false-positive machine; a branched ring asserts the walk names real edges only; and three registry drills cover a pending recovery, an exhausted ladder, and a foreign board's ticket of the same number — with the existing unstamped meta left unstamped so the legacy-reads-as-ours direction stays covered. All three suites green, 199 assertions, no stderr.
# Conflicts: # .claude-plugin/marketplace.json # .claude-plugin/plugin.json # .codex-plugin/plugin.json # package.json
SSFSKIM
added a commit
that referenced
this pull request
Oct 28, 2026
sminos 1.27.4: the send RPC on RL10 (MAWS O9 §E, board #155) Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Board ticket: arkho #61 — https://arkho-board-service.onrender.com/tickets/61
(the gh half of arkho #56; registered on the arkho board because a run
cannot register into another repository's board, while the change lives here).
Why
B.eligiblerefuses to draw a ticket for exactly as long as a blocker isunfinished. That refusal is correct, and it is the whole of what the gh board
does about the wait — nothing ages it, nothing asks whether the blocker is
still moving, and nothing tells a human when it is not. A ticket whose blocker
never lands (a park nobody answered, a
deferredshelf, awontfixclose, aworker reclaimed and never resumed, a ring of blockers) sits in its queue
forever, owned by nobody and reported to nobody. #146 lets a worker put its own
ticket into that state autonomously, so the state is now reachable without a
human ever having looked at it.
The API board's reconciler grew a pass for this in arkho #56. The contract
there is binding-neutral doctrine; the implementation is API-only, because on
that board the server owns liveness and the api-mode sweep client holds no
transition authority. The gh board has no server: its liveness owner is
board-sweep.sh, whose RECOVER pass already parksneeds-humanwith anorientation note when a worker dies past its recovery cap. So the gh half is a
pass beside that one.
What changed
skills/issue-tracker/scripts/board-sweep.sh— aSTALLpass, orderedafter IMPACT and before SURFACE/DISPATCH. It runs after RECOVER on purpose,
and it reads RECOVER's own ladder (below).
The API board has a ledger, an
owner_runcolumn and a server. gh has none ofthe three, so every predicate is translated to a signal this script already
reads:
activity(B)— newest ledger event over B's subtreeupdatedAtover B's subtree. GitHub bumps it on every comment, label, body edit and state change; the IMPACT pass already trusts it as a per-child scan cursorowner_runactivity(B)marker: stall #42@<iso>)DEPENDENCY_STALL_MS(48h)SWEEP_STALL_DEPENDENCY_MINUTES(2880 — the same 48h)Two deliberate divergences from the spec, both because the gh queue is not
the API queue:
wontfixis an unfinished blocker here. codex-companion: reap leaked broker/app-server processes — idle timeout or session-end equivalent #56 defines unfinished as "notdoneand notwontfix". ButB.eligibledraws a ticket only when everyblocker is
done, so on this board a wontfixed blocker — and a blocker noton this board at all — strands its waiter permanently. It is the most
durable gh stall there is; reading
TERMINALhere would make it the onecase the pass cannot see. (This follows issue-tracker: a worker records a dependency itself — blocked-by add, then the yield edge (arkho #49) #146's own
not-blockedguard,which kept the same asymmetry deliberately.)
A dispatch-eligible blocker is never a stall root (
dispatch_pending,no counterpart in codex-companion: reap leaked broker/app-server processes — idle timeout or session-end equivalent #56). There,
claimNextdraws an eligible ticket withinseconds. Here a lane is cap-bounded and a ticket can sit in
ready-for-implementerfor days purely because the slots are full — theordinary "do A before B" edge with A still queued. Without this clause every
ticket behind a lane backlog is parked once the backlog is two days old: a
report about dispatch capacity dressed up as a dependency failure. With it,
this and the chain-link rule read as one sentence — a blocker sitting in a
lane queue is never a stall root, because it waits either on its own blocker
(somebody else's report) or on a dispatch slot (somebody else's pass).
"Being worked" is scoped to this board, and reads the recovery ladder.
$DAEMON_HOMEis machine-global while a board is not, so a neighbouringcheckout's worker on ITS #42 must not silence this board's report about OUR
#42 — every meta is filtered through
_board_api.meta_is_mineagainstgh:$BOARD_REPO. And RECOVER backgroundssminos resumeand returns insidethe same tick, so a binding it is actively recovering still reads
idlewhenthis pass runs:
idle/errortherefore counts as worked while the ladder hasa rung left. An exhausted ladder stops counting on purpose — RECOVER's own
answer to exhaustion is to park the blocker
needs-human, and a dead bindingmust never suppress a report forever.
B.live_bound_tickets()itself isuntouched; its other callers stay tech-debt row 13.
A ring that cannot be parked is still judged. The cycle branch parks or
falls through to the temporal rule — it never skips the ticket. #56 is
explicit that a ring member in flight, unowned and silent past the threshold
is a stalled root, and that the STALL rule is how a never-resumed member is
caught at all. Nothing doubles up: a ring member sitting in a lane queue is a
waiting leaf, and a parked representative carries a
[dependency-note, sothe chain-link rule already reads both as somebody else's report.
Dedupe is the marker's payload, not a clock. #56 compares a report's event
timestamp against
activity(B). Here the marker records the blocker activityit reported, so "not again until the situation changes" is a string comparison
— and it is the only dedupe available for a ring, which has no timestamp to
compare at all. It is read from the COMMENT trail rather than the note, because
a human who re-queues the ticket by hand overwrites the note, and losing the
dedupe there would re-park the ticket the moment they put it back.
references/implement-worker-protocol.md— one sentence in thedependency-yield paragraph, binding-neutral: the wait is bounded, and what
comes back if the blocker dies.
SKILL.md— the yield paragraph's "the board re-surfaces the ticket whenits blockers land … which no park state does" now also says what happens when
they never land. The same edit re-joins the phrase
which no park state doesonto one line — see the note on
mainbeing red, below.references/sweep-setup.md— the knob row and the tick summary.docs/doperpowers/TECH-DEBT.md— rows 18, 19, 20 (see Follow-ups).Version 7.90.0, bumped in the same commit per the marketplace rule.
Validation Evidence
bash tests/issue-tracker/test-board-sweep.sh— 199 passed / 0 failed, 0 bytes on stderr, 64 of them new. Fixtures are seeded in the new section only, so every tick above them still runs against a board with noblocked-byedge at allpass_stallinvocation removed: exit 1, 35[FAIL], every one a positive assertion. The negative drills stay green without the pass, which is what they should do[FAIL]— 3 for the cycle fall-through, 2 for the fabricated ring edge, 3 for the board-scoped / ladder-aware worker signal. Run independently of the fix author[board]comment carrying the marker; a second tick does nothinga waiting ticket whose blocker is shelved and silent is parked·the park comment is board-authored and carries the marker·a second tick parks nothing furthera blocker with a live bound worker is a normal wait, however old·an epic blocker with an active child is being worked, though its own row is silent·a ticket waiting on an already-reported link stays put·a blocker that is merely queued for dispatch is never a stall root·a ring whose in-flight member has a live worker is left alone·RECOVER backgrounds a resume … so its blocker is still being workeddependency cycles: one park, the other two untouched,[sweep] STALL: 0 actednext tick, andboard-edge.sh 97 --unblock 95ending itreferences/implement-worker-protocol.md, the dependency-yield paragraph110→111,111→{112,113},112→111,113→110) asserts the walk is#110 -> #111 -> #113 -> #110and specifically NOT the#112 -> #110link a greedy walk dead-ends intometa_is_mine's legacy-reads-as-ours direction stays coveredboard-sweep: STALL read cost, measured on the harness's ownCOMMENT_READ_LOG: a candidate whose blocker is being worked, and one whose blocker is merely queued, are read 0 times; a blocker's own comments are never read; the single worst-case shape — due on every predicate but the dedupe — costs exactly 1. The dedupe read is the LAST check for that reason, so a cursor file (the machinery IMPACT needs) is not required herebash -nclean; the pass's heredoc extracted from the SHIPPED file andast.parsed clean;shellcheck -S warning -xclean on both the script and the test filetests/issue-tracker/suite green —test-board-scripts.sh,test-board-surface.sh(45 assertions),test-board-gc.sh,test-snapshot-cache.sh,test-execute-dispatch.sh,test-protocol-content.sh— plustests/shell-lint/test-lint-shell.sh.scripts/bump-version.sh --auditclean at 7.90.0An independent cross-model review ran against the first draft of this pass and
found six real defects. All six are fixed in this branch (the cycle
fall-through, the fabricated cycle edge, the board-blind and ladder-blind
worker signal, the missing version bump) or logged with a trigger (the two
tech-debt rows). Each fix carries a drill that fails without it.
Not claimed: no live gh board was exercised. Every drill runs against the
shared mock gh with the real
_board.pyand the realboard-transition.sh/board-edge.shon top of it, which is how every other pass in this file istested — but the pass has not yet parked a ticket on a real GitHub-backed
board.
Confusions
Closes #<ticket>in the PR body, and it isunwritable for a cross-repository half — the board ticket lives on another
repo's board, and this repo's issue of that number is something else. issue-tracker: a worker records a dependency itself — blocked-by add, then the yield edge (arkho #49) #146
had the same shape and resolved it the same way. Worth a doctrine sentence
for cross-repo halves generally, rather than each worker re-deciding it.
Follow-ups
FOLLOW-UPS: none registered. Three residuals are logged in
docs/doperpowers/TECH-DEBT.md, which is where this repo tracks accepted debt(GitHub Issues are disabled on this fork), each with the trigger that promotes
it:
dependency wait is unobserved. Inherited from codex-companion: reap leaked broker/app-server processes — idle timeout or session-end equivalent #56's own Design §4 decision.
start, so a concurrent writer in that window can leave two
status:*labelson one issue. Bounded today (single-instance lock; this pass's candidates are
never
B.eligible, so no dispatcher can be that writer), and fencing onepass buys no guarantee — it wants a fence every writer shares.
(the read is the last predicate checked, and any human touch buys another
full threshold of silence), unbounded on a board where many tickets are
re-queued onto blockers that never move.