Skip to content

Drop the three closure rules the layer check already enforces - #7146

Merged
max-sixty merged 1 commit into
mainfrom
agent-afa05e284cf2561f9
Nov 25, 2026
Merged

max-sixty merged 1 commit into
mainfrom
agent-afa05e284cf2561f9

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

Removes three forbidden-closure rules from .config/dependency-cruiser.mjs that the layer check now makes redundant. readings/addressable-names.js, readings/anchor-resolution.js and readings/target-paint.js must not reach an application owner or the thread's presenter. Each of those modules sits in host/, panel/ or records/, which are all layers above readings/. Since #7145 the layering rule fails every upward import, so no route from a readings/ module can reach them. The header comment above the closures now states that rule, so a later renderer below every module it must not reach gets no entry.

Each of the other closure roots still forbids at least one module in its own layer or a lower one, which layering allows, so they all stay. For example, records/thread/* must not reach records/undo.js, and annotations/anchor-paint.js must not reach host/delivery.js.

Checks: depcruise passes on the pruned config (526 modules). In a probe, readings/target-paint.js imported host/delivery.js, and layering reported it.

This was written by Claude Code on behalf of max-sixty

readings/addressable-names.js, readings/anchor-resolution.js and
readings/target-paint.js were forbidden from reaching the application
owners and the thread's presenter, all in host/, panel/ or records/,
layers above readings/. Since #7145 the layering rule fails every
upward import, so those rules could no longer fire. The other closure
roots each forbid a module in their own or a lower layer, which
layering allows, and stay.
@max-sixty
max-sixty merged commit 9f0afd4 into main Nov 25, 2026
6 checks passed
@max-sixty
max-sixty deleted the agent-afa05e284cf2561f9 branch November 25, 2026 09:14
max-sixty added a commit that referenced this pull request Nov 25, 2026
…eet the package-interface cut

Main moved the runtime's modules into a directory per import layer and dropped the framework facade (#7119, #7137, #7145, #7146); this branch cut the package interface and moved stateless code into lib/. Imports take main's layer paths with the branch's names. dom-move.js, dom-children.js and language-paths.js stay in lib/, where packages import them by served path, and main's dom/ and base/ copies are gone; dom/move-focus.js still installs the focus hooks into lib/dom-move.js. The branch's new readings.js joins host/, since it imports host/reports.js. views.js, work.js and the tests of them stay deleted. Imports of the dropped facade name /vendor/lit.js, /vendor/signals-core.js and base/presentation.js directly.

> _This was written by Claude Code on behalf of max-sixty_
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.

2 participants