Skip to content

fix(ci): two born-broken #2420 tests (RoleTierChips text nodes + SectionLabel CSSOM serialization) - #2429

Merged
kevinthelago merged 2 commits into
developfrom
2429-fix-2420-tests
Jul 6, 2026
Merged

fix(ci): two born-broken #2420 tests (RoleTierChips text nodes + SectionLabel CSSOM serialization)#2429
kevinthelago merged 2 commits into
developfrom
2429-fix-2420-tests

Conversation

@kevinthelago

Copy link
Copy Markdown
Owner

Develop went red again minutes after #2415: PR #2427 merged past the red gate carrying two #2420 tests that never ran green — RoleTierChips' exact-text queries can't match across three JSX text nodes (now one template literal), and SectionLabel's letterSpacing assertion expected .08em where CSSOM serializes 0.08em. Both PRs #2398/#2399 failed identically on these, confirming base rot.

🤖 Generated with Claude Code

kevinthelago and others added 2 commits July 6, 2026 14:27
- RoleTierChips rendered `{k} · {v}` as three text nodes, so the test's
  exact-text queries (`code · none`) could never match. One template-
  literal text node — the tests pass as written and the DOM is cleaner.
- SectionLabel.test asserted letterSpacing ".08em", but CSSOM serializes
  the value with its leading zero ("0.08em") — assert the canonical form.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
… + scoped globs)

The single-text-node fix exposed the real mismatch: the test asserted the
conceptual #219 table (planner code:none), but role-capabilities.json
encodes plan-only as code:write + writeGlobs scoped to plan-section files
(*.md, prompts/*, ...) — unlike the director, whose commons carve-out is
encoded code:none + globs (#851). The data drives real permission wiring,
so the test aligns with the model, with the encoding asymmetry documented.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@kevinthelago
kevinthelago merged commit 22c90d3 into develop Jul 6, 2026
7 checks passed
@kevinthelago
kevinthelago deleted the 2429-fix-2420-tests branch July 6, 2026 18:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant