Repository navigation
Drop the three closure rules the layer check already enforces - #7146
Merged
Merged
Conversation
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.
leaf-agent
approved these changes
Nov 25, 2026
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_
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Removes three forbidden-closure rules from
.config/dependency-cruiser.mjsthat the layer check now makes redundant.readings/addressable-names.js,readings/anchor-resolution.jsandreadings/target-paint.jsmust not reach an application owner or the thread's presenter. Each of those modules sits inhost/,panel/orrecords/, which are all layers abovereadings/. Since #7145 thelayeringrule fails every upward import, so no route from areadings/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
layeringallows, so they all stay. For example,records/thread/*must not reachrecords/undo.js, andannotations/anchor-paint.jsmust not reachhost/delivery.js.Checks: depcruise passes on the pruned config (526 modules). In a probe,
readings/target-paint.jsimportedhost/delivery.js, andlayeringreported it.