Repository navigation
fix(cli): follow a Strong dependency's own imports in Strong reports - #2061
Merged
Merged
Conversation
`--strong-dependencies` followed only the project's own Strong modules' imports, then treated every dependency module's imports as its implementation. A Strong dependency module that imported a non-Strong module, or one that reached `octane/react`, was never looked past, so an empty report did not prove that everything the project renders is Strong. A Strong module the walk reaches in another package now answers to the same rule as the roots, so its own imports are followed through every Strong layer to the first module that is not Strong. Reported in #2059. Co-Authored-By: Claude Opus 5.5 <[email protected]>
trueadm
marked this pull request as ready for review
October 14, 2026 19:24
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
View logs |
octane-website | a1e443d | Oct 14 2026, 07:23 PM |
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
View logs |
octane-website-mcp | a1e443d | Oct 14 2026, 07:23 PM |
Contributor
Benchmark report🟢 No byte growth, no added work, and no timing changes beyond ±3%. Compares js-framework: 1k/10k row operationsAll 20 timed operations (20 without a verdict)
All 64 work counters are unchanged. Application bundle size (bytes)No changes across 93 measured values. Public-import reachability bundles (bytes)No changes across 120 measured values. |
9 of 10 tasks
trueadm
added a commit
that referenced
this pull request
Oct 15, 2026
Brings in #2047-#2051 (Strong literal stabilisation), #2054 (checked compiled boundaries and a compiled router entry), #2055/#2057 (Strong rejects descriptor APIs and .tsx/.jsx), #2056/#2060/#2061 (CLI Strong reports), #2062 (Strong in the website and devtools), #2065 (no browser-translation DOM accommodations) and Version Packages. Conflicts, resolved so main's behaviour lands on the redesign's commit model: - runtime.ts, #2065: setText keeps main's legacy host-only convention and the redesign's hydration writeText. The translator recovery is gone from renderText/commitText, setRenderText/commitSetText, commitHole, childTextHoleUpdate, recordHole and bindSignalChild; removeOnlyChildText still removes a committed Text at commit. resetOnlyChildHost and PENDING_HOST_TEXTS (which served only the host-only text writes) are deleted. - compile.js, #2065: text updates call setRenderText(_txt, v), commit functions setText(_txt, v), and commitHole takes no host. - runtime.server.ts, #2054: a compiled-only frame checks its output; ordinary frames keep the redesign's returned-value normalization. - codes.json: main's 344-346 (CompiledContext, CompiledOutlet) keep their numbers; the redesign's codes move to 347 (server boundary error), 348 (hydration protocol skew) and 349 (frontier rehome). Generated tables and CLI data are regenerated; docs/ssr.md names #348. Adaptations: - compiled-boundaries.test.ts: the server runs no error boundary (React's model), so an invalid CompiledOutlet under a catch-only @Try fails renderToString with the CompiledOutlet error; the client still shows the catch arm. - scripts/render-writers.mjs drops resetOnlyChildHost. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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
This fixes a gap in
octane analyze --strong-dependenciesthat the investigation on #2059 found. The report followed imports from the project's own Strong modules only. For every module it reached in a dependency, it treated that module's imports as implementation and never looked behind them.So when a Strong dependency module imported a non-Strong module, the report said nothing, and the same was true when that import reached
octane/react. The case from the reply on #2059 (Strong app → Strong dependency → non-Strong implementation that importsoctane/react) produced an empty report. As a result, an empty report did not prove that everything the project renders is Strong, which #2059's done criteria rely on.A Strong module the walk reaches in another package is now checked the same way as the project's own Strong modules: its own imports are followed. The check therefore continues through every Strong layer until it reaches the first module that isn't Strong. Imports of non-Strong dependency modules are still treated as their implementation, so nothing beyond the first non-Strong layer is reported.
Validation
pnpm format:check: not run repo-wide.pnpm format:files:checkon the changed files passes.pnpm typecheck: not run repo-wide.pnpm typecheck:filesonstrong-dependencies.jspasses.pnpm test: not run locally; CI runs it.vitest run packages/cli/tests/analyze.test.js --project cli, 28 passed. The@kit/uifixture's StrongDialog.tsrxnow imports a non-StrongBackdrop.tsxthat usesoctane/react. The assertion fails on main, where neither the module nor the boundary is reported.pnpm sync: no generated changes.perf-review: not applicable. The change is confined topackages/cli: no runtime code, compiler output or binding hot path.concise-code:rootsas a separate walk. That would report findings under the dependency module as the importer rather than the project module that reached it. It would also need its ownseenset and its own package ashome, which would skip non-Strong modules in the same package. Those are exactly the modules a package that adopts Strong one module at a time still has.Risk / follow-ups
octane.strongdeclaration would need compile-time enforcement of the same rule; this report only previews it.Provenance
agent-authored)🤖 Generated with Claude Code
Need help on this PR? Tag
@codesmith-botwith what you need.Note
Low Risk
CLI-only static analysis for Strong dependency reporting; no runtime, compiler output, or auth/data paths.
Overview
octane analyze --strong-dependenciesnow walks imports through Strong modules inside dependencies, not only from the app’s own Strong entrypoints. When the graph hits a Strong module in another package, its imports are followed the same way as project roots, continuing through Strong layers until the first module that is not Strong.Non-Strong modules in a dependency are still treated as implementation detail (their imports are not expanded). The visit logic uses an
isStrongcheck and extends import following whenstrong === true, so non-Strong modules andoctane/reactboundaries behind a Strong dependency (e.g. StrongDialog→ non-StrongBackdrop) show up inpackagesandreactCompat. An empty report is closer to meaning “everything rendered is Strong.”Tests extend the
@kit/uifixture so StrongDialog.tsrximportsBackdrop.tsxusingoctane/react; expectations include that module and boundary.@octanejs/clipatch changeset documents the behavior change.Reviewed by Cursor Bugbot for commit a1e443d. Bugbot is set up for automated code reviews on this repo. Configure here.