Context
#16553 shipped and closed today: the published guard learned the colour-context, leading-zero and entity rules (neo-agent-skills@0.1.5), the engine guard took the same rules, the two colour escapes came out, and every pin moved (#18734, merged 525b99970a).
Verified by differential test, both guards at origin/dev: on eight probes covering all three new rules plus a real ticket ref as positive control, they agree 8/8. The colour half is genuinely finished.
#16553's body deferred one item under Found on the same guards, as a policy question rather than a regex fix:
The published guard rejects the legacy marker. It classifies ticket-ref-ok as invalid-escape, while the engine guard still honours it … Whether a deliberate ticket ref may stay in a durable comment is a policy question for both repositories.
That question had no teeth while CI ran 0.1.4. The bump gave it teeth.
Live sweeps 2026-09-15T14:0xZ: latest 10 open read, no equivalent; full-text over open and closed for ticket-ref-ok legacy escape archaeology returns only #16553 (closed) and #12609 (closed, unrelated). No competing A2A claim.
The Problem
The two guards now accept no common state for a deliberate ticket reference. Measured, one comment, four candidate repairs, both guards run directly:
| repair |
engine buildScripts/util/check-ticket-archaeology.mjs (pre-commit) |
neo-agent-skills@0.1.5 (the baseline archaeology job) |
keep ticket-ref-ok |
green |
RED |
migrate to [not-ticket-ref: implementing ticket] |
RED |
RED |
remove the marker, keep @see #11133 |
RED |
RED |
| delete the reference itself |
green |
green |
Three of four repairs red at least one guard. The only state both accept deletes the provenance the comment exists to carry — lines like @see #11133 — the ticket this script implements.
The typed escape does not help, and the reason is structural: 0.1.5 binds it to colours only. A marker whose count does not match the escaped-colour count is itself invalid-escape, so [not-ticket-ref: implementing ticket] on a ref fails as hard as the legacy form. There is no accepted marker for a deliberate reference.
The current state is green only because the pre-commit hook honours a marker CI rejects. That is the same two-implementations-disagree defect #16553 was opened to end, surviving in its own deferred row.
Blast radius — 10 files, not the 73 the earlier framing implied
#16553 recorded "134 such markers in 73 files." That counts the wrong population: git grep matches .md and .json the guard never opens. Filtered through the guard's own isInScopePath:
legacy-marker files, all types : 73
in the guard's scope : 12
out of scope (never audited) : 61
of those, RED under 0.1.5 : 10
total findings : 13 (invalid-escape 12, tracking-reference 9)
The ten: apps/portal/model/Pull.mjs · buildScripts/util/check-branch-discipline.mjs (2) · buildScripts/util/check-content-logical-identity.mjs (2) · buildScripts/util/mergedPullRequestPush.mjs · test/playwright/component/dashboard/DockPreviewRegionRender.spec.mjs · test/playwright/component/dashboard/DockSplitterIframePane.spec.mjs · test/playwright/e2e/dashboard/DockStandaloneThemingNL.spec.mjs (2) · test/playwright/e2e/workstation/DockSplitterZoneIdNL.spec.mjs · test/playwright/playwright.config.matrix.mjs · test/playwright/unit/buildScripts/checkThemeCoverage.spec.mjs
Ten is tractable. The number matters because it changes this from a migration wave into one reviewable PR.
Why it bites on touch rather than on merge: the archaeology job selects whole files — git diff --name-only --diff-filter=ACMR ${base}...HEAD — then reports every finding in each. A PR that edits one line of playwright.config.matrix.mjs inherits its header. Confirmed: the 0.1.5 CLI against a base touching these files exits 1.
Every one of the thirteen is a good comment. They are not decay; they carry their own justification — illustrative PR-title sample, not a tracking ref · the ticket this script implements · the spec pins the ticket's enforcement AC. That is what makes deletion the wrong default.
The Architectural Reality
buildScripts/util/check-ticket-archaeology.mjs — the engine copy; runs in lint-staged pre-commit and in ticket-archaeology-lint.yml. Honours ticket-ref-ok.
neo-agent-skills@0.1.5 scripts/check-ticket-archaeology.mjs — the published copy; runs in the baseline job via the SHA-pinned reusable workflow. LEGACY_ESCAPE_RE rejects ticket-ref-ok; the typed escape binds to colours through an offset-count equality.
- Delegation is still blocked upstream:
neo-agent-skills exports only ./manifest and ./package.json, so the engine cannot import the published implementation and stop being a second implementation.
The Fix
Not decided here — this ticket exists because the choice is not mine to take unilaterally. Three coherent exits, with what each costs:
- Published guard accepts a typed escape bound to a reference, not only to a colour (
[not-ticket-ref: implementing ticket] beside #11133 clears both kinds). Engine guard takes the same rule. Cost: a Skills release and a pin move — the two-repo operation #18734 just paid. Keeps every comment intact. My recommendation.
- Delete the thirteen references. Free, lands today, needs no release. Cost: provenance that named authors deliberately kept, gone — and
@see #11133 in a file whose whole purpose is implementing #11133 is not decay.
- Accept the risk explicitly, with the ten files listed and a named owner and date, and let contributors hit it. Cost: every future PR touching one of the ten reds on prose it did not write, which is how a guard gets bypassed with
--no-verify as routine.
Ordering, once the Skills half lands
NEO_INLINE_CODE_56 implements exit 1 and is in review. It does not end the deadlock on its own — verified against origin/dev post-#18734:
/** @see #11133 [not-ticket-ref: implementing ticket] */
engine (pre-commit) : RED
skills (#72) : green
That moves the worst case from both red to one red, with the engine on the stricter side, so nothing slips past both guards. The engine guard taking the same binding is what closes it, and that is this ticket.
Three pins, not two, and two different jobs read two different ones. Raised by @neo-opus-ada from #18734 and measured independently on neo-agent-institution#139 today:
| coordinate |
reader |
package.json + package-lock.json |
the pre-commit hook, and CI's skills-materialized job (npx --no-install resolves from the caller's node_modules) |
SKILLS_VERSION inside the reusable workflow |
shipped with the release, not set here |
uses: …@<sha> in pr-baseline.yml |
archaeology, substrate size and PR body, which install into runner.temp |
Move the dependency and leave the SHA, and the baseline job silently installs the previous release and flags the exact lines the release existed to pass. Move the SHA and leave the lockfile, and skills-materialized stays on the old materializer. Both, in one PR.
Acceptance Criteria
Out of Scope
- The colour, leading-zero and entity rules. Landed and verified agreeing 8/8.
- The 61 out-of-scope files. The guard never opens them; deleting their markers is cosmetic.
DEFAULT_SCAN_PATHS still listing ai/ (audit mode fails in a clean checkout) — #16553's other residual, a separate shape.
- Making the engine delegate to the published guard. Blocked on the upstream export surface.
Avoided Traps
- Do not migrate
ticket-ref-ok → [not-ticket-ref: …] as a mechanical sweep. Measured, that reds both guards — worse than the current state, and it looks like the obvious fix.
- Do not read
git grep -c as the blast radius. It counted 73 files where the guard sees 12; the population is whatever isInScopePath admits.
- Do not measure the engine guard from a working tree. I ran the differential against a checkout one commit behind
dev and got 4/8 disagreements — all of them artifacts of a stale file. Against origin/dev it is 0/8. Extract with git show origin/dev:<path> and state the SHA.
Decision Record impact
none — unless exit 1 is taken, which changes the escape contract both repositories implement and should be recorded wherever #16553's rule is documented.
Related
#16553 (the parent rule; this is its deferred policy row) · #18734 (the bump that gave it teeth) · neo-agent-skills#68 (the 0.1.5 rules) · neomjs/neo-agent-institution#138 (the same bump in a sibling consumer)
Origin Session ID: 148d12cc-9777-46e4-bfb9-a422479153a5
Retrieval Hint: query_raw_memories("ticket-ref-ok legacy escape deadlock engine guard published guard no common state")
Context
#16553shipped and closed today: the published guard learned the colour-context, leading-zero and entity rules (neo-agent-skills@0.1.5), the engine guard took the same rules, the two colour escapes came out, and every pin moved (#18734, merged525b99970a).Verified by differential test, both guards at
origin/dev: on eight probes covering all three new rules plus a real ticket ref as positive control, they agree 8/8. The colour half is genuinely finished.#16553's body deferred one item under Found on the same guards, as a policy question rather than a regex fix:That question had no teeth while CI ran 0.1.4. The bump gave it teeth.
Live sweeps 2026-09-15T14:0xZ: latest 10 open read, no equivalent; full-text over open and closed for
ticket-ref-ok legacy escape archaeologyreturns only#16553(closed) and#12609(closed, unrelated). No competing A2A claim.The Problem
The two guards now accept no common state for a deliberate ticket reference. Measured, one comment, four candidate repairs, both guards run directly:
buildScripts/util/check-ticket-archaeology.mjs(pre-commit)neo-agent-skills@0.1.5(thebaselinearchaeology job)ticket-ref-ok[not-ticket-ref: implementing ticket]@see #11133Three of four repairs red at least one guard. The only state both accept deletes the provenance the comment exists to carry — lines like
@see #11133 — the ticket this script implements.The typed escape does not help, and the reason is structural: 0.1.5 binds it to colours only. A marker whose count does not match the escaped-colour count is itself
invalid-escape, so[not-ticket-ref: implementing ticket]on a ref fails as hard as the legacy form. There is no accepted marker for a deliberate reference.The current state is green only because the pre-commit hook honours a marker CI rejects. That is the same two-implementations-disagree defect
#16553was opened to end, surviving in its own deferred row.Blast radius — 10 files, not the 73 the earlier framing implied
#16553recorded "134 such markers in 73 files." That counts the wrong population:git grepmatches.mdand.jsonthe guard never opens. Filtered through the guard's ownisInScopePath:The ten:
apps/portal/model/Pull.mjs·buildScripts/util/check-branch-discipline.mjs(2) ·buildScripts/util/check-content-logical-identity.mjs(2) ·buildScripts/util/mergedPullRequestPush.mjs·test/playwright/component/dashboard/DockPreviewRegionRender.spec.mjs·test/playwright/component/dashboard/DockSplitterIframePane.spec.mjs·test/playwright/e2e/dashboard/DockStandaloneThemingNL.spec.mjs(2) ·test/playwright/e2e/workstation/DockSplitterZoneIdNL.spec.mjs·test/playwright/playwright.config.matrix.mjs·test/playwright/unit/buildScripts/checkThemeCoverage.spec.mjsTen is tractable. The number matters because it changes this from a migration wave into one reviewable PR.
Why it bites on touch rather than on merge: the archaeology job selects whole files —
git diff --name-only --diff-filter=ACMR ${base}...HEAD— then reports every finding in each. A PR that edits one line ofplaywright.config.matrix.mjsinherits its header. Confirmed: the 0.1.5 CLI against a base touching these files exits 1.Every one of the thirteen is a good comment. They are not decay; they carry their own justification — illustrative PR-title sample, not a tracking ref · the ticket this script implements · the spec pins the ticket's enforcement AC. That is what makes deletion the wrong default.
The Architectural Reality
buildScripts/util/check-ticket-archaeology.mjs— the engine copy; runs inlint-stagedpre-commit and inticket-archaeology-lint.yml. Honoursticket-ref-ok.neo-agent-skills@0.1.5 scripts/check-ticket-archaeology.mjs— the published copy; runs in thebaselinejob via the SHA-pinned reusable workflow.LEGACY_ESCAPE_RErejectsticket-ref-ok; the typed escape binds to colours through an offset-count equality.neo-agent-skillsexports only./manifestand./package.json, so the engine cannot import the published implementation and stop being a second implementation.The Fix
Not decided here — this ticket exists because the choice is not mine to take unilaterally. Three coherent exits, with what each costs:
[not-ticket-ref: implementing ticket]beside#11133clears both kinds). Engine guard takes the same rule. Cost: a Skills release and a pin move — the two-repo operation#18734just paid. Keeps every comment intact. My recommendation.@see #11133in a file whose whole purpose is implementing#11133is not decay.--no-verifyas routine.Ordering, once the Skills half lands
NEO_INLINE_CODE_56 implements exit 1 and is in review. It does not end the deadlock on its own — verified against
origin/devpost-#18734:That moves the worst case from both red to one red, with the engine on the stricter side, so nothing slips past both guards. The engine guard taking the same binding is what closes it, and that is this ticket.
Three pins, not two, and two different jobs read two different ones. Raised by @neo-opus-ada from #18734 and measured independently on
neo-agent-institution#139today:package.json+package-lock.jsonskills-materializedjob (npx --no-installresolves from the caller'snode_modules)SKILLS_VERSIONinside the reusable workflowuses: …@<sha>inpr-baseline.ymlrunner.tempMove the dependency and leave the SHA, and the baseline job silently installs the previous release and flags the exact lines the release existed to pass. Move the SHA and leave the lockfile, and
skills-materializedstays on the old materializer. Both, in one PR.Acceptance Criteria
revalidationTrigger— if a further Skills release changes the escape contract before this closes, the matrix is re-measured rather than trusted.#16553's equivalent clause fired three times.Out of Scope
DEFAULT_SCAN_PATHSstill listingai/(audit mode fails in a clean checkout) —#16553's other residual, a separate shape.Avoided Traps
ticket-ref-ok→[not-ticket-ref: …]as a mechanical sweep. Measured, that reds both guards — worse than the current state, and it looks like the obvious fix.git grep -cas the blast radius. It counted 73 files where the guard sees 12; the population is whateverisInScopePathadmits.devand got 4/8 disagreements — all of them artifacts of a stale file. Againstorigin/devit is 0/8. Extract withgit show origin/dev:<path>and state the SHA.Decision Record impact
none — unless exit 1 is taken, which changes the escape contract both repositories implement and should be recorded wherever
#16553's rule is documented.Related
#16553(the parent rule; this is its deferred policy row) · #18734 (the bump that gave it teeth) · neo-agent-skills#68 (the 0.1.5 rules) ·neomjs/neo-agent-institution#138(the same bump in a sibling consumer)Origin Session ID: 148d12cc-9777-46e4-bfb9-a422479153a5
Retrieval Hint:
query_raw_memories("ticket-ref-ok legacy escape deadlock engine guard published guard no common state")