Repository navigation
feat(issue-tracker): pre-registration seam search + inline-residual rule - #52
Conversation
Board audit (ida 2026-08-10) found 80% of recent tickets worker-spawned, with one SQL function fragmented across 7 open tickets whose parallel rewrites silently reverted each other, plus a duplicate integration ticket registered because a worker searched titles instead of seams. - ticket contract: pre-registration search is now seam-based (file/ function identifiers, not title keywords), with mechanical triage: same scope -> comment there; same seam -> relates edge at register time; third rewrite of one contract body -> raise a consolidation ticket born ready-for-architect. - implementing Closing Artifact: a few-line residual inside the PR's own diff (no design fork, no ownership boundary) is in-scope polish absorbed by the PR, not a follow-up ticket. - reviewing-prs TOO BIG route + spike graduation: pointer to the seam search so every registration site runs the same protocol.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1f2067e533
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| tickets for one job until an audit caught it. GitHub issue search hits | ||
| bodies, so query each seam identifier | ||
| (`gh issue list --state open --search "<function-or-file-name>"`) |
There was a problem hiding this comment.
Route seam searches through the active board binding
When BOARD_BINDING=api, this mandatory raw gh query searches the checkout's GitHub issues rather than the API-backed ticket store; _lib.sh deliberately neither requires gh nor initializes BOARD_REPO in that mode. API-dispatched implementers and spike workers will therefore either fail before registration or make duplicate/cluster decisions from an unrelated issue set. Use a binding-aware search route, or rely explicitly on the API server's registration-time deduplication until such a route exists.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Adopted in #53: the seam search is now scoped to the gh binding, with the API-mode fallback named (server-side registration dedupe until an arkho#7-family search route lands).
| - **Same seam, different defect** → register, but in the same breath | ||
| `board-relate.sh` your new ticket to EVERY open ticket on that seam. |
There was a problem hiding this comment.
Avoid mandating unsupported relates writes in API mode
When an API-bound worker classifies a hit as the same seam but a different defect, this required step cannot succeed: board-relate.sh unconditionally calls _refuse_no_api_route, which exits for BOARD_BINDING=api. Because the instruction registers first and relates afterward, the worker can leave a newly created ticket unlinked and then abort its closing or graduation flow. Add an API-capable relation route or document a binding-specific fallback rather than requiring this command in every mode.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Adopted in #53: the relates duty is gh-binding-scoped; API-bound workers name the seam-mates in the ticket body instead and move on — no dead-end mandate.
| owned the same work under different words, and the board carried two | ||
| tickets for one job until an audit caught it. GitHub issue search hits | ||
| bodies, so query each seam identifier | ||
| (`gh issue list --state open --search "<function-or-file-name>"`) |
There was a problem hiding this comment.
Raise the result limit before declaring seam triage complete
When a seam identifier matches more than 30 open issues, this query cannot support the later requirements to relate every match or detect the third rewrite because it silently examines only the first page. gh issue list --help documents --limit int as the “Maximum number of issues to fetch (default 30)”. Add an explicit sufficiently high --limit or pagination before treating the returned set as all open same-seam tickets.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Adopted in #53: the documented command now carries an explicit --limit 200 with a note that the default 30 truncates silently.
| ticket born `ready-for-architect` that names every member and owns | ||
| the unified contract, with the members related (and, where they are | ||
| still undispatched, `--blocked-by` the consolidation ticket). |
There was a problem hiding this comment.
Replace the member-side consolidation dependency
When the tripwire fires, its member tickets already exist, so applying --blocked-by to them requires board-edge.sh mutations on other tickets—authority reserved to the human, and a command that also fails outright in API mode. Even if those edges are applied manually, they only postpone the members: once the consolidation ticket reaches done, the unblock sweep makes the stale patch tickets eligible again, allowing them to overwrite the unified implementation. Define how consolidation consumes or retires its members instead of temporarily blocking them on the consolidator.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Adopted in #53: the --blocked-by prescription is removed outright. Member disposition now belongs to the consolidation ticket (re-cut as slices or close with a reason) — your unblock-sweep overwrite scenario is cited as the rationale. The surface-topology branch's sweep-registered consolidation body already carried these semantics; the prose now matches.
| - **Cluster tripwire**: if your registration would put a THIRD open | ||
| non-park ticket onto the same function or contract body, that seam |
There was a problem hiding this comment.
Count resumable parked tickets in the cluster tripwire
When one of the two existing same-seam tickets is parked in needs-human, needs-info, or interactive-preferred, excluding it from this count allows a third rewrite ticket to be registered without consolidation. Those parks are not abandoned work: the wake flow returns them to their prior active lane without rerunning registration or this search, so all three rewrites can subsequently proceed in parallel. Count every nonterminal ticket whose scope still owns the contract, excluding only genuinely retired/deferred work if intended.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Adopted in #53: the tripwire counts every non-terminal ticket except deferred, with the resume-without-re-search rationale stated. The same gap existed in the surface-topology sweep's queue-depth watch (code); that fix lands on the open branch.
| Per the doperpowers:issue-tracker ticket contract, | ||
| run its pre-registration seam search first (open tickets queried by the | ||
| file/function identifiers your findings touch, not by title keywords), then |
There was a problem hiding this comment.
Apply the seam search to spike decomposition
When a spike's scope check decides the exploration is too large, lines 37–41 directly register narrower spike children and end the turn; this new instruction appears only in the later Graduation path, so it is never applied to that decomposition registration. The implement-decompose procedure likewise first registers children and only references the ticket contract during later gate triage. Move the search ahead of every child registration so this path cannot continue creating duplicate spike tickets.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Adopted in #53: the spike scope-check path now states the seam search runs before EVERY registration, the decomposition path included.
| seam search first (query open tickets by the file/function identifiers | ||
| the finding touches, never by title keywords; same scope → comment | ||
| there, same seam → relates edge, third rewrite of one contract body → |
There was a problem hiding this comment.
Resolve the reviewer's cross-ticket write conflict
When a ticketed review finds that a TOO BIG item duplicates an existing ticket, this branch instructs the reviewer to comment on that other ticket, but the same review protocol says all board writes target the primary ticket and grants authority to register finding tickets rather than mutate arbitrary existing ones; for a ticketless PR it explicitly skips every board write. Define a cross-ticket-comment exception or keep the evidence on the primary ticket/PR while reusing the existing ticket, otherwise the reviewer has mutually exclusive routing instructions.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Adopted in #53: the comment-on-existing-ticket route is named as the one sanctioned cross-ticket write (explicit exception to the primary-ticket rule); ticketless PRs keep skipping all board writes.
fix(issue-tracker): PR #52 review findings — binding-aware seam search, park-counting tripwire
What
Spawn-policy hardening driven by the 2026-08-10 ida board audit: 196 issues in obra#958–obra#1252, 80% worker-spawned, 103 depth-2+ spawn chains, and one SQL function (
recommend_for_student) fragmented across 7 open tickets whose parallel rewrites silently reverted each other — plus a duplicate integration ticket (obra#1092/obra#1074) registered because the worker searched titles and missed the sibling.Changes
gh issue list --state open --searchhits bodies), never title keywords. Triage: same scope → comment evidence on the existing ticket; same seam, different defect → register +board-relate.shto every open same-seam ticket; cluster tripwire — a third open rewrite of one contract body raises a consolidation ticket bornready-for-architectinstead of another patch.Verification
Markdown-only change — no scripts touched; placeholders untouched (no
{{...}}added), so prompt rendering is unaffected. Real-incident citations in the text match the ida board record (obra#1092 meta self-diagnosis, obra#1258 consolidation).