signatures.ts
@file The console-output matcher.
Overview
@file The console-output matcher.
A lookup table, not a model. Every entry below is a literal string that this
repository already documents, with the line that documents it. Nothing here
was written from what a log "probably" means: if the tree does not say it,
there is no entry, and the bot escalates instead.
Patterns are deliberately literal and distinctive. A loose pattern that
matches half the pastes in a channel is worse than no pattern at all,
because it produces a confident answer that happens to be wrong, and the
person believes it for an evening before going back to the start.
Ranking is by the length of the text that matched, longest first, so a
specific error string outranks a short token that happened to appear. Ties
keep declaration order. All matches are shown, never just the best one:
URSK_Unavailable legitimately has two documented causes and choosing
between them is the reader's job, not this table's.
depends on citations.ts · used by citations.ts help-me.ts
API
Fexport function matchSignatures(text: string): Match[]
Every signature that matches, most specific first. "Most specific" is the length of the matched text. It is a crude measure and deliberately so: anything cleverer would be a scoring model, and a scoring model is the thing this file exists not to be.
onModalSubmitFexport function signatureCitations(): Citation[]
Citations from every signature, for the drift gate.
allCitations