Repository navigation
issue-tracker: a worker records a dependency itself — blocked-by add, then the yield edge (arkho #49) - #146
Merged
Merged
Conversation
… then the yield edge (arkho #49) The protocol already told an Executor that hits a cross-ticket dependency to cut a `blocked-by` edge and return the ticket to its lane queue. Neither half was executable: on the API board the edge write is human-only, and `in-progress → ready-for-implementer` was not a legal transition on EITHER binding. This is the skill half of the fix; the arkho half widens the matrix and adds the edge. - `_board.py`: `LEGAL["in-progress"]` gains `ready-for-implementer`, and the edge joins `EDGE_NOTE_REQUIRED`. `CONVERGENCE_EDGES` is derived from that set by subtraction, so the yield is subtracted there too — otherwise the second dependency a ticket ever meets would be transmuted into a needs-human park, which is the stall this removes. - `board-transition.sh`, gh path: the `not-blocked` refusal. A yield with no unfinished blocker hands the ticket straight back into the wall it just hit, and this edge carries no convergence counter to end that loop. - `SKILL.md`, `implement-worker-protocol.md`: the two-call sequence and why its order is fixed — the yield ends the run, so the edge cannot wait. - `board-edge.sh` header: the one op a run bearer holds.
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.
The skill half of arkho #49. Draft until the arkho PR lands — the board
change and this one have to agree, and merging this first would document a
route that still answers 403.
Why
The Executor protocol already told a worker that hits a cross-ticket dependency
what to do: "dependencies are edges — cut
blocked-byand return the ticket toits lane queue." Neither half was executable.
POST /tickets/:id/edgeswas human-only on the API board, soboard-edge.sh 47 --block 42answeredforbidden — run may not edges. Andin-progress → ready-for-implementerwas not a legal transition on eitherbinding — not in the API board's
LEGAL_ROWS, not in_board.py'sLEGAL. Theonly queue-bound edge out of
in-progresswas the architect escalation, whichis the wrong lane and is convergence-counted. That second gap had never
surfaced because nobody got past the first.
This PR adds no behavioural machinery. It makes an instruction the protocol
already gave into one a worker can actually follow, and adds exactly one
refusal, with a definite failure state.
What changed
scripts/_board.py—LEGAL["in-progress"]gainsready-for-implementer,and the edge joins
EDGE_NOTE_REQUIRED(the note names the blocker and anybanked branch).
CONVERGENCE_EDGESis derived fromEDGE_NOTE_REQUIREDby subtraction, soa new note-required edge is convergence-counted by default. The yield is
subtracted there too, and that subtraction is the load-bearing line: without it
the second dependency a ticket ever meets would be read as a mechanical bounce
and transmuted into a
needs-humanpark — precisely the stall this removes.The yield is a return to the worker's own lane, not an escalation.
scripts/board-transition.sh, gh path — thenot-blockedrefusal, placedafter the legality check and before the note check. A yield with no unfinished
blocker hands the ticket straight back into the wall it just hit, and since the
edge carries no convergence counter, nothing else would ever end that loop. It
matches gh's own eligibility notion (
B.eligibletreats onlydoneas landed)rather than inventing
wontfixhandling here.SKILL.md— the park discriminant paragraph now spells out the two callsand why the order is fixed:
The yield ends the run, so the edge cannot wait until after it. The scripts
table row for
board-edge.shnotes the one op a run bearer holds.references/implement-worker-protocol.md— the dependency sentence gainsthe order and the refusal, in two sentences; the discriminant paragraph in
SKILL.mdcarries the detail.scripts/board-edge.sh— one header line naming that authority.Validation Evidence
python3 -cagainst_board.pywithPYTHONPATHon the scripts dir:legal True / note-required True / convergence False. The last is the one that would silently regress —CONVERGENCE_EDGESis a subtraction from the set the edge was just added toboard-transition.shandexec'd against seven fabricated snapshots, so the shipped lines are what ran, not a paraphrase. No blockers → refused · one open blocker → allowed · onedoneblocker → refused · onewontfixblocker → allowed (the gh asymmetry, kept deliberately) · one done + one open → allowed · both done → refused · a blocker absent from the snapshot → allowedbash -n board-transition.shclean; the gh-path Python block (lines 291–621)ast.parses cleanNot claimed: no live gh board was available, so the guard was not exercised
against a real GitHub-backed ticket. What is claimed above is the guard's own
logic over a fabricated snapshot and the surrounding script's syntax.
The API-board half is covered by the arkho PR: 709/709 against real Postgres,
including a route-level acceptance transcript of the whole sequence.
Confusions
None on this side.
Follow-ups
FOLLOW-UPS: none for this half. The two residuals found while building the
arkho half are registered on the board as #51 and #52 and listed there — both
are
board-servicetest-environment problems with no doperpowers component.