Skip to content

issue-tracker: a worker records a dependency itself — blocked-by add, then the yield edge (arkho #49) - #146

Merged
SSFSKIM merged 1 commit into
mainfrom
arkho-49-dependency-yield
Sep 14, 2026
Merged

SSFSKIM merged 1 commit into
mainfrom
arkho-49-dependency-yield

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Sep 14, 2026

Copy link
Copy Markdown
Owner

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-by and return the ticket to
its lane queue."
Neither half was executable.

POST /tickets/:id/edges was human-only on the API board, so
board-edge.sh 47 --block 42 answered forbidden — run may not edges. And
in-progress → ready-for-implementer was not a legal transition on either
binding — not in the API board's LEGAL_ROWS, not in _board.py's LEGAL. The
only queue-bound edge out of in-progress was the architect escalation, which
is 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"] gains ready-for-implementer,
and the edge joins EDGE_NOTE_REQUIRED (the note names the blocker and any
banked branch).

CONVERGENCE_EDGES is derived from EDGE_NOTE_REQUIRED by subtraction, so
a 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-human park — 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 — the not-blocked refusal, placed
after 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.eligible treats only done as landed)
rather than inventing wontfix handling here.

SKILL.md — the park discriminant paragraph now spells out the two calls
and why the order is fixed:

board-edge.sh <n> --block <blocker>
board-transition.sh <n> ready-for-implementer "blocked by #<blocker>; WIP on <branch>" --branch <branch>

The yield ends the run, so the edge cannot wait until after it. The scripts
table row for board-edge.sh notes the one op a run bearer holds.

references/implement-worker-protocol.md — the dependency sentence gains
the order and the refusal, in two sentences; the discriminant paragraph in
SKILL.md carries the detail.

scripts/board-edge.sh — one header line naming that authority.

Validation Evidence

Claim Evidence
The yield is legal and note-required, and is not convergence-counted python3 -c against _board.py with PYTHONPATH on the scripts dir: legal True / note-required True / convergence False. The last is the one that would silently regress — CONVERGENCE_EDGES is a subtraction from the set the edge was just added to
The gh guard behaves Its source text is extracted from board-transition.sh and exec'd against seven fabricated snapshots, so the shipped lines are what ran, not a paraphrase. No blockers → refused · one open blocker → allowed · one done blocker → refused · one wontfix blocker → allowed (the gh asymmetry, kept deliberately) · one done + one open → allowed · both done → refused · a blocker absent from the snapshot → allowed
The scripts still parse bash -n board-transition.sh clean; the gh-path Python block (lines 291–621) ast.parses clean

Not 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-service test-environment problems with no doperpowers component.

… 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant