Repository navigation
docs(adr): split src/domain by subsystem behind one entry point - #11231
Merged
Merged
Conversation
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Contributor
[Low impact] The documentation change appears safe to merge. SummaryAdds a proposed decision to split
Reviews (2) · Last reviewed commit: "docs(adr): say project references do not..." · Reviewed by Greptile |
22 tasks
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.
Summary
W9 step 6, planning only: an ADR (
docs/adr/architecture/domain-subsystems.md) for splittingsrc/domain. Per the maintainer's direction the split is by subsystem, not by layer folder: the JavaScript engine, the analysis-view projection and the desktop script generation each become a top-level module (src/javascriptEngine/,src/analysisView/,src/desktopScripts/) with one publicindex.ts, enforced by an entry-point rule in the module-boundary check. It also records the TypeScript project-references evaluation (not adopted now; why, and when to revisit). No code moves in this PR. No issue; part of the structural cleanup plan.Problem and expected behavior
src/domainholds a 62.8K-line JavaScript engine (180 files) and a 43.5K-line output projection (147 files) whose internals are imported directly by 108 and 70 outside files (64 and 42 distinct internal modules). Expected after the planned moves: each subsystem has one written interface, and the boundary check refuses imports of its internals.Change and scope
Documentation only. Not included: the entry-point rule, the moves themselves, and any change to wire schemas or packages (no npm workspace split). The moves are scheduled one subtree per PR after open PRs editing
src/domain/javascript/(8 files in open PRs) andsrc/domain/analysisView/(2 files) have merged.Contract and boundary impact
docs/public/product-catalog.json), package, or installation impact: none.Expected effects (check known effects; use documentation-only on its own).
Unchecked items do not establish absence; leave uncertainties visible.
Evidence and regression coverage
Tests added or updated: none.
Base reproduction or other evidence: file and line counts from
find src/domain/<subtree> -name '*.ts' ! -name '*.test.ts'; importer counts from the repository's own import resolver (scripts/lib/module-boundaries.mjs) over production files at 664fab7.User-visible CLI/MCP output (if applicable): none.
Remaining proof gaps: the type-check time benefit of project references is unmeasured, as the ADR states.
Observed, derived, and inferred claims remain distinguishable.
Artifact identity, source provenance, and failed attempts remain preserved.
Unsupported, incomplete, unavailable, or uncertain outcomes remain visible.
Validation performed
npx oxfmt docs/adr/architecture/domain-subsystems.md— formatted.node scripts/check-doc-facts.mjs— passed.Compatibility, safety, and release
Author readiness
Human owner:
Before merge
type(scope): outcome.