You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Boundary lint: packages import only each other's public entry points #5
Boundary rule in PR #38 (inspa/package-boundaries, scripts/eslint-boundaries.mjs). Here are the 16 existing violations. Each one is allow-listed as an exact { file, import } pair in BOUNDARY_ALLOW in eslint.config.js. Owners: delete the entry in the same PR that fixes the import. A test fails on any entry whose import is gone.
e2e specs (feature lanes): they import CLI internals that inspa doesn't export.
examples/invoices/vitest.config.ts imports ../../packages/vite-plugin/src/transform.js. It reads source so that tests run without a build. The public @inspa/vite-plugin/transform resolves to dist/.
engine tests that cross between cli, vite-plugin and core
Most of these should disappear when @inspa/overlay, @inspa/daemon and @inspa/engine are split out (or when the shared pieces get a public export). No production code crosses a boundary: every violation is a test, a test config or an e2e spec.
Note for the platform lane: when the Biome migration happens, this rule needs a replacement. Biome has no custom-rule API with this behaviour, so a small script check is one option.
QA notes on PR #38 (platform-20261128T0857-qa-38):
Master doc check (ARCH-Today rule 3, ARCH-Target Choices): the master doc says no package imports another package's internals, which is what this rule enforces. It agrees with docs/architecture.md rule 3. The master doc's Choices table picks Biome over ESLint. docs/architecture.md says ESLint until the platform lane migrates, so this ESLint rule is the right call for now. When Biome lands, this check must be ported (the engineer already flagged that above).
Follow-up for the owners (not a blocker): packages/ui/protocolAlias.ts maps public subpaths (@inspa/core/naming, @inspa/vite-plugin/protocol, ...) onto other packages' src/ through new URL('../core/src/...') build aliases. That is not an import, so the rule doesn't see it. The aliases keep the public names, but they couple the ui build to core's and vite-plugin's source layout.
I couldn't spawn the architect agent: this QA session has no subagent tool. I did its checklist myself. Not a port PR. It adds no deep imports. Every path it touches is in platform paths (eslint.config.js, scripts/). It matches the doc.
Activity
kaiserarg commentedon Nov 28, 2026
Claimed by
platform-20261128T0857-eng-1.Generated by Claude Code
kaiserarg commentedon Nov 28, 2026
Claimed by
platform-20261128T0857-eng-2.Generated by Claude Code
kaiserarg commentedon Nov 28, 2026
PR #38 opened on
agent/5-boundary-lint.Generated by Claude Code
kaiserarg commentedon Nov 28, 2026
Boundary rule in PR #38 (
inspa/package-boundaries,scripts/eslint-boundaries.mjs). Here are the 16 existing violations. Each one is allow-listed as an exact{ file, import }pair inBOUNDARY_ALLOWineslint.config.js. Owners: delete the entry in the same PR that fixes the import. A test fails on any entry whose import is gone.e2e specs (feature lanes): they import CLI internals that
inspadoesn't export.e2e/proxy-hmr.spec.ts,e2e/proxy-webpack-hmr.spec.ts,e2e/runtime-source.spec.tsimport../packages/cli/src/proxy/indexe2e/selection-agent-loop.spec.ts,e2e/selection-stale-page.spec.ts,e2e/selection-sync.spec.tsimport../packages/cli/src/mcp/tools/selectionexamples (engine)
examples/invoices/vitest.config.tsimports../../packages/vite-plugin/src/transform.js. It reads source so that tests run without a build. The public@inspa/vite-plugin/transformresolves todist/.engine tests that cross between cli, vite-plugin and core
packages/cli/src/mcp/server.test.ts:../../../vite-plugin/src/transform.jspackages/cli/src/proxy/react19/react19.test.ts:vite-plugin/src/overlay/runtime-source/react19/capture.jspackages/cli/src/proxy/webpack-runtime.test.ts:vite-plugin/src/overlay/runtime-source/bundled.jsand.../react19/capture.jspackages/cli/test/components-api.integration.test.ts:../../vite-plugin/src/transform.jspackages/core/src/source-resolve.test.ts:../../vite-plugin/src/overlay/runtime-source/hash.jspackages/vite-plugin/src/overlay/runtime-source/react19/arguments.test.tsandengines.test.ts:cli/src/proxy/react19/runtime-uses.jspackages/vite-plugin/test/token-themes-parity.test.ts:../../core/src/token-themes.jsMost of these should disappear when @inspa/overlay, @inspa/daemon and @inspa/engine are split out (or when the shared pieces get a public export). No production code crosses a boundary: every violation is a test, a test config or an e2e spec.
Note for the platform lane: when the Biome migration happens, this rule needs a replacement. Biome has no custom-rule API with this behaviour, so a small script check is one option.
Generated by Claude Code
kaiserarg commentedon Nov 28, 2026
QA notes on PR #38 (platform-20261128T0857-qa-38):
packages/ui/protocolAlias.tsmaps public subpaths (@inspa/core/naming,@inspa/vite-plugin/protocol, ...) onto other packages'src/throughnew URL('../core/src/...')build aliases. That is not an import, so the rule doesn't see it. The aliases keep the public names, but they couple the ui build to core's and vite-plugin's source layout.eslint.config.js,scripts/). It matches the doc.Generated by Claude Code
kaiserarg commentedon Nov 28, 2026
PR #38 merged.
Generated by Claude Code
Lint: packages import only each other's public entry points (#5) (#38)