Skip to content

feat(issue-tracker): pre-registration seam search + inline-residual rule - #52

Merged
SSFSKIM merged 3 commits into
mainfrom
fix/spawn-policy-dedupe
Aug 10, 2026
Merged

SSFSKIM merged 3 commits into
mainfrom
fix/spawn-policy-dedupe

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Aug 10, 2026

Copy link
Copy Markdown
Owner

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

  1. issue-tracker SKILL.md — ticket contract: pre-registration search is now seam-based and mechanical: query open tickets by the file/function/contract identifiers the ticket touches (gh issue list --state open --search hits bodies), never title keywords. Triage: same scope → comment evidence on the existing ticket; same seam, different defect → register + board-relate.sh to every open same-seam ticket; cluster tripwire — a third open rewrite of one contract body raises a consolidation ticket born ready-for-architect instead of another patch.
  2. implementing SKILL.md — Closing Artifact: not every residual is a follow-up. A few-line residual inside files already in the PR's diff, with no design fork and no ownership boundary, is in-scope polish the PR absorbs (a one-line fix shipped as a ticket costs a dispatch + worktree + review cycle). Mirrored one sentence in issue-tracker's deferral rule so the two files can't be read as contradicting.
  3. reviewing-prs TOO BIG route + spike graduation: one-line pointers so every registration site runs the same seam search.

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).

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.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread skills/issue-tracker/SKILL.md Outdated
Comment on lines +333 to +335
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>"`)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge 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 👍 / 👎.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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).

Comment thread skills/issue-tracker/SKILL.md Outdated
Comment on lines +342 to +343
- **Same seam, different defect** → register, but in the same breath
`board-relate.sh` your new ticket to EVERY open ticket on that seam.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge 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 👍 / 👎.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread skills/issue-tracker/SKILL.md Outdated
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>"`)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adopted in #53: the documented command now carries an explicit --limit 200 with a note that the default 30 truncates silently.

Comment on lines +350 to +352
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).

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge 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 👍 / 👎.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment on lines +345 to +346
- **Cluster tripwire**: if your registration would put a THIRD open
non-park ticket onto the same function or contract body, that seam

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment on lines +87 to +89
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

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adopted in #53: the spike scope-check path now states the seam search runs before EVERY registration, the decomposition path included.

Comment thread skills/reviewing-prs/SKILL.md Outdated
Comment on lines +321 to +323
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 →

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

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