Context
CI runs the published archaeology binary; the pre-commit hook runs the engine's mirrored copy, and the two disagree (#18809). The practical consequence is not abstract: 22 comments in this repository are flagged by the guard CI runs and passed by the hook, so any PR that stages one of those files reds on a line it did not write.
That has already happened twice today — PR #18793 (a prose pull request 11982 in a file I touched for an unrelated reason) and PR #18808 (RA-3, same shape). Both cost a full CI cycle and an unrelated repair inside someone else's PR.
Measured at origin/dev with the installed neo-agent-skills@0.1.8 binary, restricted to trees this repo's guard scans:
Live latest-open sweep 2026-09-16T18:55Z: only #18809 (the divergence itself) and #18794. A2A sweep of the latest 30: no competing claim.
The Problem
Four kinds, and the distinction is the work — a blanket suppression would hide all four equally:
A · A deliberate ref carrying the RETIRED marker (3 sites). ticket-ref-ok was retired and CI rejects it, but these refs are genuinely load-bearing — the ticket a script implements.
check-branch-discipline.mjs:9, :56 (#11133) · mergedPullRequestPush.mjs:30 (#16256)
B · Review archaeology (3 sites). Which review round produced a decision — the class that decays fastest, and the one family with no escape at all.
DockSplitterPaint.spec.mjs:130 (RA-2) · GallerySortSelection.spec.mjs:228 (Cycle-1 RA1) · dockRailTabLayering.spec.mjs:20 ("in review on PR 17524")
C · Not a reference at all (11 sites). Ordinal labels the numeric pattern cannot distinguish from a ticket.
RefreshDomCorpseRepro.spec.mjs ×6 (Refresh #1 / #2) · DockDragDropNL.spec.mjs:49,77 (product truth #1 / #2) · MultiWriterNL.spec.mjs:70 (identity #1)
D · Genuine decay-prone ticket refs (5 sites). Real citations that rot when the item closes or is renamed.
calendar/view/month/Component.mjs:740,755 (todo: #989, #990) · grid/VerticalScrollbar.mjs:24 (#3) · util/KeyNavigation.mjs:71 (#64) · CrossLinkIssuesUrl.spec.mjs:22 (#12209) · PoolingRuntimeUpdates.spec.mjs:5 (#9165)
The Architectural Reality
The typed escape [not-ticket-ref: <reason>] binds to a bare #N and works today — verified against the installed 0.1.8 binary, not reasoned from the regex. So A and C are declarable in place. B has no escape in any version (neo-agent-skills#83 covers the named-ref families; review archaeology is explicitly out of scope there), so it must be rephrased. D is a judgment call per site: rephrase to describe the behaviour, or declare the ref deliberate where the pointer genuinely is the contract.
The Fix
Per site, with the kind stated:
- A → the typed marker, same reason text the retired one carried.
- B → rephrase. The round number is the only part that decays; what the arm asserts and why is behaviour and stays.
- C → the typed marker with
ordinal label, not a ticket. These are the cheapest and the most valuable to mark, because they are the ones a future reader would otherwise "fix" by deleting a true statement.
- D → default to rephrasing. Where the pointer is load-bearing (an open
todo: naming the work), the typed marker with a reason.
Acceptance Criteria
Out of Scope
- The mirror divergence itself (#18809) and its placement decision. This repairs the sites; it does not choose which guard the hook runs.
- The engine copy's missing review-archaeology patterns — that is #18809's safe half and lands separately.
- Rewriting either guard's rules.
Avoided Traps
- ⛔ Do not blanket-suppress. Four kinds with four correct remedies; one marker over all of them hides the three genuine ticket refs behind the eleven false positives.
- ⛔ Do not delete category D outright.
#9165 and #12209 say which regression a suite reproduces — that is the spec's reason for existing, and it needs rephrasing into behaviour rather than removal.
- ⛔ Do not verify with the local guard. It passes all 22 today; that is the defect, not the verification. Use
./node_modules/.bin/neo-agent-skills-ticket-archaeology.
- ⛔ Do not escape a review-archaeology hit. There is no escape for that family; a marker there produces
invalid-escape on top of the original finding.
Related
#18809 (the divergence that lets these accumulate) · #18794 · #18793 and #18808 (the two PRs this already cost)
Origin Session ID: 5bf0b816-b919-40fc-9c18-fee751fd1635
Retrieval Hint: "engine tree comment refs flagged by published archaeology guard hook misses ordinal labels retired ticket-ref-ok review archaeology"
Context
CI runs the published archaeology binary; the pre-commit hook runs the engine's mirrored copy, and the two disagree (#18809). The practical consequence is not abstract: 22 comments in this repository are flagged by the guard CI runs and passed by the hook, so any PR that stages one of those files reds on a line it did not write.
That has already happened twice today — PR #18793 (a prose
pull request 11982in a file I touched for an unrelated reason) and PR #18808 (RA-3, same shape). Both cost a full CI cycle and an unrelated repair inside someone else's PR.Measured at
origin/devwith the installedneo-agent-skills@0.1.8binary, restricted to trees this repo's guard scans:Live latest-open sweep 2026-09-16T18:55Z: only #18809 (the divergence itself) and #18794. A2A sweep of the latest 30: no competing claim.
The Problem
Four kinds, and the distinction is the work — a blanket suppression would hide all four equally:
A · A deliberate ref carrying the RETIRED marker (3 sites).
ticket-ref-okwas retired and CI rejects it, but these refs are genuinely load-bearing — the ticket a script implements.check-branch-discipline.mjs:9,:56(#11133) ·mergedPullRequestPush.mjs:30(#16256)B · Review archaeology (3 sites). Which review round produced a decision — the class that decays fastest, and the one family with no escape at all.
DockSplitterPaint.spec.mjs:130(RA-2) ·GallerySortSelection.spec.mjs:228(Cycle-1 RA1) ·dockRailTabLayering.spec.mjs:20("in review on PR 17524")C · Not a reference at all (11 sites). Ordinal labels the numeric pattern cannot distinguish from a ticket.
RefreshDomCorpseRepro.spec.mjs×6 (Refresh #1/#2) ·DockDragDropNL.spec.mjs:49,77(product truth #1/#2) ·MultiWriterNL.spec.mjs:70(identity #1)D · Genuine decay-prone ticket refs (5 sites). Real citations that rot when the item closes or is renamed.
calendar/view/month/Component.mjs:740,755(todo: #989,#990) ·grid/VerticalScrollbar.mjs:24(#3) ·util/KeyNavigation.mjs:71(#64) ·CrossLinkIssuesUrl.spec.mjs:22(#12209) ·PoolingRuntimeUpdates.spec.mjs:5(#9165)The Architectural Reality
The typed escape
[not-ticket-ref: <reason>]binds to a bare#Nand works today — verified against the installed 0.1.8 binary, not reasoned from the regex. So A and C are declarable in place. B has no escape in any version (neo-agent-skills#83covers the named-ref families; review archaeology is explicitly out of scope there), so it must be rephrased. D is a judgment call per site: rephrase to describe the behaviour, or declare the ref deliberate where the pointer genuinely is the contract.The Fix
Per site, with the kind stated:
ordinal label, not a ticket. These are the cheapest and the most valuable to mark, because they are the ones a future reader would otherwise "fix" by deleting a true statement.todo:naming the work), the typed marker with a reason.Acceptance Criteria
neo-agent-skills-ticket-archaeologyreports zero findings over this repository's tracked.mjs, run as CI runs it.git diff -U0carries no line outside a comment.todo:refs incalendar/view/month/Component.mjsstill name their work — a repair that loses an open todo's subject is a regression in the comment's job.unittier green.Out of Scope
Avoided Traps
#9165and#12209say which regression a suite reproduces — that is the spec's reason for existing, and it needs rephrasing into behaviour rather than removal../node_modules/.bin/neo-agent-skills-ticket-archaeology.invalid-escapeon top of the original finding.Related
#18809 (the divergence that lets these accumulate) · #18794 · #18793 and #18808 (the two PRs this already cost)
Origin Session ID: 5bf0b816-b919-40fc-9c18-fee751fd1635
Retrieval Hint: "engine tree comment refs flagged by published archaeology guard hook misses ordinal labels retired ticket-ref-ok review archaeology"