Skip to content

Renew design exceptions after the image node comment - #443

Merged
lavaman131 merged 1 commit into
mainfrom
fix/renew-content-design-exceptions
Oct 9, 2026
Merged

lavaman131 merged 1 commit into
mainfrom
fix/renew-content-design-exceptions

Conversation

@lavaman131

Copy link
Copy Markdown
Collaborator

CI on main fails at "Format, lint, and enforce design tokens" (run 37997810458):

packages/dialect/src/nodes/content.ts:111 reviewed dynamic owner changed; inspect its data flow and renew the exact exception
packages/dialect/src/nodes/content.ts:220 reviewed dynamic owner changed; inspect its data flow and renew the exact exception
packages/dialect/src/nodes/content.ts:437 reviewed dynamic owner changed; inspect its data flow and renew the exact exception

Why

#442 (accc1ee) changed only the doc comment above ImageNode in packages/dialect/src/nodes/content.ts. The design contract pins a reviewed dynamic-exception group to its whole owner file by SHA-256 (sourceHash, see docs/design-contract.md), so the comment edit invalidated the review of that file's three dynamic class names. My mistake: I ran dprint on #442 but not bun run ci.

Review and renewal

I re-inspected the data flow of each reviewed owner. Each sets a block's class name from the Lexical theme with a fixed fallback, and none changed (the line numbers didn't move either):

Line Owner Dynamic style
111 CodeBlockNode.createDOM dom.className = config.theme.planCode ?? "planCode"
220 MathNode.createDOM dom.className = config.theme.planMath ?? "planMath"
437 FootnoteDefinitionNode.createDOM dom.className = config.theme.planFootnote ?? "planFootnote"

The only change is that group's sourceHash in scripts/design-contract/exceptions/dynamic-packages.json, from 7f24fc5d…1bef to fca5e0a9…e070 (the current file's SHA-256). Cases, counts, reason and the check are unchanged.

Verification

  • Before the fix, bun scripts/check-design-contract.ts reproduces the same three errors (exit 1).
  • After it, bun run ci exits 0: "design contract ok — 826 sources; 302 exact reviewed exceptions". oxlint reports the same 31 warnings as before and 0 errors.
  • bun test scripts/design-contract: 44 pass, 0 fail.
  • bunx dprint check on the changed manifest: exit 0.

Separately, the earlier red run on e857cbb (#440) failed when the container job couldn't reach Docker Hub (auth.docker.io), not in code. The Docker Hub mirror commit on main covers that.

Assistant-model: Claude Opus 5.5 (fast)
Assistant-workflow: inline (worker subagent on anthropic-api/claude-opus-5-5-fast)
Assistant-duration: 9m converged, estimated 15m
Assistant-verification: design contract passed: bun scripts/check-design-contract.ts reproduces the 3 errors before, bun run ci exits 0 after
Assistant-verification: bun test passed: scripts/design-contract (44 pass, 0 fail)
Assistant-verification: dprint passed: changed manifest
User-preference: Fix failing Chopin CI and open a PR

`bun run ci` failed on main because the design contract reported the three
reviewed dynamic owners in packages/dialect/src/nodes/content.ts as changed.
Their group pins the whole owner file by SHA-256, and accc1ee rewrote only
the ImageNode doc comment, which shifted that hash.

Re-inspected each owner: CodeBlockNode, MathNode and FootnoteDefinitionNode
createDOM still assign config.theme.planCode, planMath and planFootnote
with their literal fallbacks, unchanged by the comment edit. Only the
group's sourceHash is renewed; the cases, counts and reason are unchanged.

Assistant-model: Claude Opus 5.5 (fast)
Assistant-workflow: inline (worker subagent on anthropic-api/claude-opus-5-5-fast)
Assistant-verification: bun scripts/check-design-contract.ts before the fix: exit 1 with the three CI errors
Assistant-verification: bun run ci: exit 0 (design contract ok, 302 exact reviewed exceptions)
Assistant-verification: bun test scripts/design-contract: 44 pass, 0 fail
Assistant-verification: bunx dprint check on the changed manifest: exit 0
User-preference: Fix failing Chopin CI and open a PR
@lavaman131
lavaman131 merged commit bce6cef into main Oct 9, 2026
3 checks passed
@lavaman131
lavaman131 deleted the fix/renew-content-design-exceptions branch October 9, 2026 23:03
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