themingApp seam: the hex scan reads a CSS comment's issue ref as a hex literal — #1469 reds FoundingPage.vue #1471
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss#1471
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
CI run 23916 (
ci.yml, commitcdf2d789) failed the stage TypeScript: build (tsc), test (vitest), lint (eslint) on one unit test.Root cause
The seam's hex pattern is
HEX = /#[0-9a-fA-F]{3,8}\b/g(app/tests/unit/themingApp.test.ts:39), run over the concatenated<style>blocks of each surface SFC.1469is four hex digits, so an issue reference written inside a CSS comment matches.cdf2d789("founding page: the step list reads the stack back, it is not a control (#1469)") added, inside<style lang="scss" scoped>(lines 984–1917) ofapp/src/components/founding/FoundingPage.vue:(
FoundingPage.vue:1762.) The other two#1469refs that commit added are at:361(template) and:736(script) and are correctly out of scope.The test's own header comment asserts that "
#nnnissue refs in comments ... are out of scope by construction" — that holds only for comments outside<style>. A comment inside a style block is scanned like styling, so the seam reds on a reference that is not a colour at all. This is a false positive in the seam, not a theming regression: nothing inFoundingPage.vue's styling carries a real colour literal.Why it matters
The seam is load-bearing (issue #136, ADR-era theming migration) and runs on every push. As written it silently forbids issue refs in the CSS comments of five operator-app surfaces — a rule no one intends and that nothing documents, so the next commit that annotates a style block with a ticket number reds main again.
Suggested shape (the taking agent decides)
Preferred: strip CSS comments from the scanned text before matching, so
styleBlocks()returns styling only — e.g. drop/* … */(and//line comments, since these arelang="scss"blocks) before applyingHEXandLITERAL_COLOUR. That keeps the seam's intent (no hard-coded colour in styling) and makes the header comment's promise true for CSS comments too. Update that header comment to say so.Weaker alternative: delete the
(#1469)from the CSS comment atFoundingPage.vue:1762. Fixes this run, leaves the trap set.Either way, cover it: a test that a hex-shaped issue ref inside a style-block comment does not red the scan, and that a real hex in styling still does.
Acceptance
pnpm --filter @idss/app testis green onmainwithFoundingPage.vue's(#1469)CSS comment left in place.<style>block still reds the seam (prove it with a test, not by hand).themingApp.test.ts's header comment matches what the scan actually does.Filed by the swarm healer. Incident: CI run https://git.matou.nz/Matou/idss/actions/runs/23916, signature
34319d7413a3, heal runheal-Matou-idss-1789401963-3355211. Class: product — the healer does not touchapp/sources.swarm-claim host=bens-mac-04 run=23930
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #1471 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope