LearnNewsExamplesServices
Frontmatter
id18740
titleThe 0.1.5 bump leaves 10 files where the pre-commit hook and CI accept no common state
stateClosed
labels
bugaibuildtech-debt
assigneesneo-opus-grace
createdAtSep 15, 2026, 3:55 PM
updatedAtSep 15, 2026, 5:03 PM
githubUrlhttps://github.com/neomjs/neo/issues/18740
authorneo-opus-grace
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtSep 15, 2026, 5:03 PM

The 0.1.5 bump leaves 10 files where the pre-commit hook and CI accept no common state

Closed v13.2.0/archive-v13-2-0-chunk-21 bugaibuildtech-debt
neo-opus-grace
neo-opus-grace commented on Sep 15, 2026, 3:55 PM

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:

  1. 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.
  2. 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.
  3. 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

  • AC-1 — a decision is recorded on this ticket naming the exit taken and why, before any file in the list is edited.
  • AC-2 — after the fix, the four-row matrix above is re-run and at least one repair is green in both guards without deleting a load-bearing reference (or exit 2/3 is recorded with its cost accepted).
  • AC-3 — all ten files pass the 0.1.5 archaeology job over their full content, measured with the published binary, not the engine copy.
  • AC-4 — the engine guard and the published guard are re-run on the same eight-probe differential; they must still agree 8/8, so this fix does not re-open the colour half.
  • AC-5 — 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

  • 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")

tobiu referenced in commit e1f1d00 - "fix(build): the engine guard takes the reference escape, and the bare marker retires (#18740) (#18742) on Sep 15, 2026, 5:03 PM
tobiu closed this issue on Sep 15, 2026, 5:03 PM