Skip to content

A2 follow-ups: legality-drift fence (run-actor done), qagent relay role, successor-claim escalation, queue pagination #51

Closed

Description

@SSFSKIM

Follow-ups from A2 (PR #50, spec v1.2.8). Items that survived the branch's five-round review loop as deliberate deferrals, in rough priority order:

  1. Legality-table drift fence (headline: run-actor in-review → done). gh LEGAL and A1 LEGAL_ROWS disagree on 13+ edges, and PR feat(review-loop): retire confident-ready — confident verdicts merge; wave cap 4 #48 widened it: the gh review worker now closes with a run-actor in-review → done, which A1 refuses for leaf tickets (epic-guard, src/transitions.js:119) — so an API-bound review worker cannot write its final edge. Needs a canon ruling (mirrored in arkho#7's flow-back comment). A drift fence needs either a DB read (banned in the integration tier) or a service-source comparison (couples the plugin to a checkout) — pick at ruling time.
  2. gh-path board-answer.sh QAGENT role fallback — the gh relay leg resolves a resumed session's role from the registry meta and falls back to implementer; a qagent's park answered through gh mode resumes with the wrong protocol orientation. (API mode stamps role: QAGENT in the meta.)
  3. claim_successor that never succeeds never escalates — the resume phase's successor claim has no 3-cycle counter of its own; a ticket whose successor claim persistently fails (e.g. lane cap) churns without an env-issue. Decide whether to fold into the existing escalation counter.
  4. Queue pagination assumption — _sweep_api.sh reads /queue/* unpaginated; fine at current board sizes, breaks silently past the server's page cap. Pin the contract with arkho or add cursor-follow.
  5. Bootstrap-prompt comparison fence — the two rendered worker bootstraps (gh vs API dispatch) are authored separately and never compared; the transcript drill already caught two-authors drift in the smaller relay prompt. Cheap partial fence: compare the rendered texts directly, no gh dispatcher needed.
  6. Drill cosmetics — integration drill assertions use grep -qF substrings on numeric ids (anchor them) and raw ticket ids in the argv comparator (normalize) — safe today on fresh scratch DBs, wrong-reason passes if a drill grows past ten runs.

Context: .doperpowers/sdd/2026-08-09-a2-board-adapter/ (session workspace, gitignored) holds the full ledger and per-round reports on the machine that ran A2.

Activity

  1. SSFSKIM commented on Aug 10, 2026

    @SSFSKIM
    OwnerAuthor

    Merge-reconciliation note (PR #49 × A2): the dispatch-time worktree bootstrap (WORKTREE_BOOTSTRAP_CMD, PR #49) runs only where the dispatcher creates the worktree — the gh PR path and the integration path. The API claim path spawns in the shared clone and the worker owns its own checkout choreography (SKILL.md api-mode protocol), so api-mode reviewers currently get no environment bootstrap. If api-mode boards need dependency installs before review, the bootstrap hook needs an api-path answer (worker-side, most likely — the dispatcher cannot know the PR's base at claim time).

  2. SSFSKIM commented on Aug 11, 2026

    @SSFSKIM
    OwnerAuthor

    A1-side is done — arkho PR #8 open (2026-08-11)

    The arkho#7 architect pass is complete and awaiting merge (https://github.com/SSFSKIM/arkho/pull/8, spec v1.8). Every A1-side blocker this issue tracks now has its server answer; once that PR merges and Render redeploys, the A2-side consumption here is unblocked:

    1. Headline resolved — run-actor in-review → done on leaves: R1 ruled and shipped. A qagent-lane run closes a leaf whose pr_url is a URL; the implementer refusal stands. Client note: the leaf's in-progress → in-review edge now requires a ^https?://-shaped pr — the API-mode review dispatch already sends real PR URLs, so this should be transparent, but any fixture sending bare strings will now be refused at entry.
    2. claim-successor returns parentPin — _sweep_api.sh can thread it into successor context (fresh + replay shapes).
    3. Refusal messages — every 409/403 now carries diagnostic prose; pr-required explains itself.
    4. Scale-review bindings — both claim responses carry pr and branch; for an epic's qagent claim these are CLOSURE_PACKAGE (event id) and INTEGRATION_REF. The reviewing-prs api-mode park can come out.
    5. Design-first spikes — illegal-birth for spike→ready-for-architect is gone; board-register.sh's interim gh-only note can come off.
    6. Register note field — the body-head interim mapping can be replaced with the real field (park question, verbatim).
    7. New human verbs — board-edge.sh / board-priority.sh / board-relate.sh / body edits have API routes to bind to (edges, reparent, relates, priority, body-edit); _refuse_no_api_route can be retired per verb. Note body-edit refuses while the ticket is owned (ticket-owned) — for a bound park, enrichment goes in the park answer.
    8. Read exposure — GET /tickets rows carry branch, blocked_by[], relates[] for board-show/board-map parity.
  3. SSFSKIM commented on Aug 12, 2026

    @SSFSKIM
    OwnerAuthor

    Consumption half shipped — PR #61 (v7.48.0)

    All eight items from the arkho#7 flow-back comment are implemented and live-verified on the branch dp51-a1-consumption: the four human verbs (edges/reparent, relates, priority) plus the new both-modes board-body.sh, register's real note field, the api-scale review variant (scale review un-parked), successor parentPin threading, and read parity in show/map. The R1 headline was proven end-to-end on production: a qagent run closed a leaf from in-review on arkho-board-service.onrender.com.

    Remaining on this issue after #61 merges: the non-consumption deferrals (gh-path board-answer.sh qagent role fallback, successor-claim escalation counter, queue pagination, bootstrap-prompt comparison fence, drill cosmetics). Related new ticket: #60 (gh-mode strip_meta truncation bug, found during this work).

  4. SSFSKIM commented on Aug 12, 2026

    @SSFSKIM
    OwnerAuthor

    Deferrals half shipped — PR #65 (v7.51.0, auto-closes this issue on merge). All five non-consumption items from the list above are done: (2) gh-path qagent parks return to in-review (role stamp at spawn + legacy name inference + the ticket's own pr: re-supplied); (3) successor-claim failures typed — obsolete journals (nonce-consumed/stale-resume) drop uncharged, real faults ride the existing 3-cycle ladder, one attempt per ticket per tick, reconcile honors suppression; (4) pagination pinned outward as arkho#9 (/queue/decisions and /tickets stay unbounded until a paged envelope exists) plus a client guard so a truncated /tickets read can never lift a suppression; (5) bootstrap-prompt fence — the renderer now fails closed on unresolved placeholders and a 94-assertion static parity fence pins the four mode blocks; (6) drill cosmetics — id assertions anchored, argv comparator honest. Item (1), the legality-table drift fence, was resolved by arkho#7's R1 ruling (run-actor in-review→done accepted server-side, consumed in #61). Related: #60 fixed on the same PR. Remaining nowhere: the PRE_PARK vocabulary question for a qagent that bounced through ready-for-architect before parking is recorded in the spec's Deferred section — file separately if it ever bites.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions