test(disclosure): tie the documented glyph table to the constants #463
No reviewers
Labels
No labels
move-to-repo
coilyco-bridge-deploy
move-to-repo
coilyco-flight-deck-agent-compose
move-to-repo
coilyco-gaming-eco-app
move-to-repo
coilysiren-inbox
move-to-repo
unknown
🔒⚠️📦⚠️🔒 SANDBOXED 🔒⚠️📦⚠️🔒
autonomy
async-consult
autonomy
epic
autonomy
headless
autonomy
live-collab
c#
priority
P0
priority
P1
priority
P2
priority
P3
priority
P4
role/ai
role/creator
role/design
role/director
role/engineer
role/exec
role/human
role/ops
role/qa
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
coilyco-gaming/sirens-echo!463
Loading…
Reference in a new issue
No description provided.
Delete branch "qa/pin-the-documented-glyphs"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
0e3fccbfound two reaction glyphs had drifted from Kai's approved set while their test passed, because it asserted only that the four differed from each other.e5c9163then pointed the footer at the reaction constants so the two code surfaces cannot drift apart.docs/sirens-echo-tool-disclosure.mdis a third copy of the same vocabulary, and nothing related it to either.They agree today
Checked rather than assumed:
So this pins a true thing before it stops being true, rather than reporting a defect.
Why the doc is the copy that matters most here
A reader comparing the table to a reply is exactly the person a drift misleads, and Kai reading the vocabulary is how the reaction drift was found in the first place. The two code surfaces now share a constant; the document a human consults was still a literal.
Both directions, with the message naming which side moved
Printing both sets matters because the fix differs — one is a code change and the other is a doc change, and a bare "mismatch" makes the reader work that out.
The parse also fails loudly if the table disappears, so a doc rewrite cannot leave the test passing over nothing.
One thing left open, deliberately
The four Discord reaction glyphs are documented nowhere. They exist only as Go constants, so "Kai's approved set" lives in a conversation rather than in the repository, and
0e3fccb's test pins them to literals a future reader cannot check against anything.I have not fixed that — writing down what I believe the approved set is would be me asserting Kai's decision from a commit message. If the set is recorded somewhere I have not found, the same shape of test would tie the reactions to it in about ten lines, and I will write it.
The hammer is checked against the example block rather than the table, because it prefixes every line rather than naming a state; a table row for it would be a fourth spelling rather than a check.
Test-only. No production change.
Refs #447