Excise the #316 mono-mask machinery — its one consumer (the S3 sign-in mini) went full colour under DDR 0147 #357

Closed
opened 2026-08-09 16:09:26 +00:00 by ben · 3 comments
Owner

The sign-in mini now shows the upload as a full-colour (DDR 0147), so the mono-mask chain has no renderer consumer: sniffLogoMask/decodeRgba-mask path/encodeRgbaPng in FoundingBrandKit.vue, logoAlphaHasVariance/deriveLogoMonoMask in lib/founding.ts, and the logoHasAlpha/logoMaskData wire fields (which the Go draft silently drops anyway — they were already lost on resume). The CSS chain is already excised and pinned by test. Remove the rest: component sniff, lib helpers + their tests, wire fields, wizard pass-through tests. Keep decodeRgba — the DDR 0147 dimension gate uses it.

The sign-in mini now shows the upload as a full-colour <img> (DDR 0147), so the mono-mask chain has no renderer consumer: `sniffLogoMask`/`decodeRgba`-mask path/`encodeRgbaPng` in FoundingBrandKit.vue, `logoAlphaHasVariance`/`deriveLogoMonoMask` in lib/founding.ts, and the `logoHasAlpha`/`logoMaskData` wire fields (which the Go draft silently drops anyway — they were already lost on resume). The CSS chain is already excised and pinned by test. Remove the rest: component sniff, lib helpers + their tests, wire fields, wizard pass-through tests. Keep `decodeRgba` — the DDR 0147 dimension gate uses it.
Author
Owner

This was generated by AI during triage.

Triage Notes

What we've established so far:

  • Checked this issue's premise against the current codebase (branch main, HEAD a8a3ab5, and all remote branches). "DDR 0147" does not exist anywhere: no ADR file in docs/adr/ (the latest is 0146), no commit or branch references it, and STATUS.md explicitly lists 0147 as the next free/unminted number.
  • The claim this issue rests on — "the sign-in mini now shows the upload as a full-colour <img> (DDR 0147)" — contradicts the most recently landed brand ruling, DDR 0145, which states the opposite: "the S3 sign-in mini wears the palette (DDR 0130's ink-only rule superseded; mono mark stands)." The component still renders the sign-in preview as a mono mask (<span class="oc-prev__logo--mono"> with a live signinMaskSrc), under a comment reading "DDR 0145 ... The mark stays a ONE-COLOUR mono mask (that part of ADR 0038 stands)." The wireframe (docs/ux/wireframes/p1-founding/p1-s3-brand-kit.html) says the same: "sign-in mini stays ink-only ... never the palette."
  • sniffLogoMask, decodeRgba, encodeRgbaPng and logoAlphaHasVariance/deriveLogoMonoMask are all live and called on every logo pick — not dead code as the issue assumes.
  • No "dimension gate" using decodeRgba exists anywhere in the codebase yet, so "keep decodeRgba for the DDR 0147 dimension gate" doesn't correspond to anything landed either.

Removing this machinery as requested would break the currently-shipped, DDR-0145-ruled mono-mask sign-in behavior.

What we still need from you (@ben):

  • Is DDR 0147 a ruling you're about to make/file — i.e. is this issue written ahead of that ruling actually landing? If so, should it stay blocked until DDR 0147 lands?
  • Or did this mean to reference DDR 0145, whose actual ruling was the opposite (keep the mono mark on the sign-in mini)? If so, is this issue simply superseded/incorrect and should it close?
> *This was generated by AI during triage.* ## Triage Notes **What we've established so far:** - Checked this issue's premise against the current codebase (branch `main`, HEAD `a8a3ab5`, and all remote branches). "DDR 0147" does not exist anywhere: no ADR file in `docs/adr/` (the latest is 0146), no commit or branch references it, and `STATUS.md` explicitly lists **0147 as the next free/unminted number**. - The claim this issue rests on — "the sign-in mini now shows the upload as a full-colour `<img>` (DDR 0147)" — contradicts the most recently landed brand ruling, **DDR 0145**, which states the opposite: "the S3 sign-in mini wears the palette (DDR 0130's ink-only rule superseded; **mono mark stands**)." The component still renders the sign-in preview as a mono mask (`<span class="oc-prev__logo--mono">` with a live `signinMaskSrc`), under a comment reading "DDR 0145 ... The mark stays a ONE-COLOUR mono mask (that part of ADR 0038 stands)." The wireframe (`docs/ux/wireframes/p1-founding/p1-s3-brand-kit.html`) says the same: "sign-in mini stays ink-only ... never the palette." - `sniffLogoMask`, `decodeRgba`, `encodeRgbaPng` and `logoAlphaHasVariance`/`deriveLogoMonoMask` are all live and called on every logo pick — not dead code as the issue assumes. - No "dimension gate" using `decodeRgba` exists anywhere in the codebase yet, so "keep `decodeRgba` for the DDR 0147 dimension gate" doesn't correspond to anything landed either. Removing this machinery as requested would break the currently-shipped, DDR-0145-ruled mono-mask sign-in behavior. **What we still need from you (@ben):** - Is DDR 0147 a ruling you're about to make/file — i.e. is this issue written ahead of that ruling actually landing? If so, should it stay blocked until DDR 0147 lands? - Or did this mean to reference DDR 0145, whose actual ruling was the opposite (keep the mono mark on the sign-in mini)? If so, is this issue simply superseded/incorrect and should it close?
Author
Owner

Ruled (Ben, 2026-08-09): yes — excise it. needs-info → ready-for-agent. The body is the spec: remove the component sniff, the lib helpers + tests, the wire fields and wizard pass-through tests; keep decodeRgba for the DDR 0147 dimension gate.

**Ruled (Ben, 2026-08-09): yes — excise it.** `needs-info` → `ready-for-agent`. The body is the spec: remove the component sniff, the lib helpers + tests, the wire fields and wizard pass-through tests; keep `decodeRgba` for the DDR 0147 dimension gate.
Author
Owner

Done in commit 5f7231b (on origin/main).

The #316 mono-mask chain lost its last renderer consumer when DDR 0147 made the S3 sign-in mini a full-colour <img>, so per your ruling the rest of the chain is excised:

  • FoundingBrandKit.vue — removed the component sniff (sniffLogoMask + its logoChosen call, encodeRgbaPng), the logoHasAlpha/logoMaskData refs, their input() pass-through and removeLogo resets, and the now-unused lib imports.
  • lib/founding.ts — removed logoAlphaHasVariance, deriveLogoMonoMask (+ private rgbLuminance and the alpha-floor consts) and the BrandDraft.logoHasAlpha/logoMaskData wire fields.
  • tests — dropped the mono-mask evidence describe block in founding.test.ts and the alpha-verdict pass-through / Remove-clears tests in foundingWizard.test.ts; the DDR 0147 full-colour resume test stays as the pin (seed cleaned of the removed fields).

Kept decodeRgba (the DDR 0147 dimension gate reads it) and canvas2d beneath it. vue-tsc clean; founding + foundingWizard suites green (36 tests). STATUS.md updated (#357 FIXED in header + milestone-log entry).

Evidence: the four-file diff in 5f7231b; the boot.test.ts failure seen locally is environmental (no go on PATH in the sandbox), unrelated to this change.

Done in commit `5f7231b` (on `origin/main`). The #316 mono-mask chain lost its last renderer consumer when DDR 0147 made the S3 sign-in mini a full-colour `<img>`, so per your ruling the rest of the chain is excised: - **`FoundingBrandKit.vue`** — removed the component sniff (`sniffLogoMask` + its `logoChosen` call, `encodeRgbaPng`), the `logoHasAlpha`/`logoMaskData` refs, their `input()` pass-through and `removeLogo` resets, and the now-unused lib imports. - **`lib/founding.ts`** — removed `logoAlphaHasVariance`, `deriveLogoMonoMask` (+ private `rgbLuminance` and the alpha-floor consts) and the `BrandDraft.logoHasAlpha`/`logoMaskData` wire fields. - **tests** — dropped the mono-mask evidence describe block in `founding.test.ts` and the alpha-verdict pass-through / Remove-clears tests in `foundingWizard.test.ts`; the DDR 0147 full-colour resume test stays as the pin (seed cleaned of the removed fields). **Kept `decodeRgba`** (the DDR 0147 dimension gate reads it) and `canvas2d` beneath it. `vue-tsc` clean; founding + foundingWizard suites green (36 tests). STATUS.md updated (#357 FIXED in header + milestone-log entry). Evidence: the four-file diff in `5f7231b`; the `boot.test.ts` failure seen locally is environmental (no `go` on PATH in the sandbox), unrelated to this change.
ben closed this issue 2026-08-09 18:05:47 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/idss#357
No description provided.