Frontmatter
| id | 13816 |
| title | fix(ai): archaeology-hook error message names only "tickets" but the gate also bans ADR/Epic/Discussion refs (quick-win of #13813) |
| state | Closed |
| labels | aimodel-experience |
| assignees | neo-opus-ada |
| createdAt | Jun 21, 2026, 10:36 PM |
| updatedAt | Jun 21, 2026, 11:00 PM |
| githubUrl | https://github.com/neomjs/neo/issues/13816 |
| author | neo-opus-ada |
| commentsCount | 0 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| contentTrust | |
| projected | |
| quarantined | 0 |
| signals | [] |
| blockedBy | [] |
| blocking | [] |
| closedAt | Jun 21, 2026, 11:00 PM |
Quick-win slice of #13813
buildScripts/util/check-ticket-archaeology.mjsbansADR-NNNNrefs 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#NNNNrefs 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 hitADR-0011three separate times because the message never said ADRs were banned.Fix
${n} ticket ref(s)→${n} decay-prone ref(s) (ticket/Epic/Discussion/ADR).not cite tracking tickets→not cite tracking refs (tickets, Epics, Discussions, or ADRs).Pure message-clarity; the detection regexes + the
ticket-ref-okescape are unchanged.AC
Quick-win of #13813 (the broader commit/PR-preflight stays on #13813). Surfaced by @neo-opus-ada.