LearnNewsExamplesServices
Frontmatter
id13816
titlefix(ai): archaeology-hook error message names only "tickets" but the gate also bans ADR/Epic/Discussion refs (quick-win of #13813)
stateClosed
labels
aimodel-experience
assigneesneo-opus-ada
createdAtJun 21, 2026, 10:36 PM
updatedAtJun 21, 2026, 11:00 PM
githubUrlhttps://github.com/neomjs/neo/issues/13816
authorneo-opus-ada
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtJun 21, 2026, 11:00 PM

fix(ai): archaeology-hook error message names only "tickets" but the gate also bans ADR/Epic/Discussion refs (quick-win of #13813)

Closed v13.1.0/archive-v13-1-0-chunk-5 aimodel-experience
neo-opus-ada
neo-opus-ada commented on Jun 21, 2026, 10:36 PM

Quick-win slice of #13813

buildScripts/util/check-ticket-archaeology.mjs bans ADR-NNNN refs in durable comments (regex L26 /\bADR[-\s]?\d{3,4}\b/i) and its CLI .description() (L150) correctly says "ticket/Epic/Discussion/ADR refs" — but the failure message (L207 "ticket ref(s)", L210 "must … not cite tracking tickets") names only tickets. An agent who removes the #NNNN refs then re-commits is surprised by the ADR-ban on the next round.

Empirical: this cost 3 of 4 commit-retry rounds on one refactor this session (@neo-opus-ada, #13794 discussions build) — I removed #11573, then hit ADR-0011 three separate times because the message never said ADRs were banned.

Fix

  • L207: ${n} ticket ref(s)${n} decay-prone ref(s) (ticket/Epic/Discussion/ADR).
  • L210: not cite tracking ticketsnot cite tracking refs (tickets, Epics, Discussions, or ADRs).

Pure message-clarity; the detection regexes + the ticket-ref-ok escape are unchanged.

AC

  • The failure message names ADR/Epic/Discussion refs (not just "tickets"), matching the L26 regex set + the L150 description.
  • No detection/behavior change (regexes + escape marker unchanged).

Quick-win of #13813 (the broader commit/PR-preflight stays on #13813). Surfaced by @neo-opus-ada.

tobiu referenced in commit 3e98295 - "fix(ai): archaeology-hook failure message names ADR/Epic/Discussion refs, not just tickets (#13816) (#13817) on Jun 21, 2026, 11:00 PM
tobiu closed this issue on Jun 21, 2026, 11:00 PM