Status: rev 10, 2026-10-23. Supersedes TODO.13. There are no users, so no compatibility layer is built at all. The old graph core is deleted, not preserved behind a flag. This rev also records verified repository facts (§2) so the plan is executable as written. Slices 1–9 are implemented and verified (§0), the demo UI was simplified (header toggle, single View menu), and the screenshot matrix is regenerated. Only the explicitly deferred post-plan work remains.
Architecture unchanged: domain-agnostic substrate in SpaceGraphJS (@spacegraphjs/kernel), OpenCode a thin host.
Last updated: 2026-10-23. All slices (1–9) are implemented and verified. No base work remains.
- Slice 1 — Kernel substrate (
spacegraphjs/packages/kernel)- Package:
package.json(single entry, zero deps),tsconfig.json,README.md. - Core:
kernel.ts(ordered nodes/edges/hyperedges,version,modify,diagnostics,subgraph,filterNodes),session.ts(append log, memoized fold,tag/checkout/fork),workspace.ts(replaceFrom, LWWmerge),codec.ts(JSON,format: 1, kernel/session/workspace documents). - Query/registry:
query.ts(patterns, traverse, path, count, collect),registry.ts(createRegistry,composeRegistry),conformance.ts(runConformance+ default rules),generator.ts(seeded LCG +randomKernel),example/fixture.ts(orgs → projects → tasks). - Tests: laws beside source in
*.test.ts;bun test packages/kernel/srcis green. - Build:
pnpm --dir spacegraphjs run build:packagesemitspackages/kernel/dist/index.js+.d.ts.
- Package:
- Slice 2 — Deriver + scope (
spacegraphjs/packages/kernel)deriver.ts: typedinputToken,defineDeriver,pipe,runPipeline.scope.ts:deriveScope(kernel, keep, pinned)keeps pinned nodes and drops edges outside the scope.- Tests cover pipe composition/order, input dedupe, pipeline application, scope pinning, and internal-edge retention.
- Registration
- Outer
package.jsonworkspaces includesspacegraphjs/packages/kernel;packages/session-ui/package.jsondepends on@spacegraphjs/kernel;bun.lockcarries the workspace entry. - Nested repo:
script/build-packages.tsPACKAGES,test/package-exports.test.tsLEAF_PACKAGES,test/boundaries.test.tsdependency-free kernel rule,package.jsontest:kernelandtest:full. test:exportsandtest:boundariesare green after the build.
- Outer
All slices (1–9) are complete. Slice 3 shipped end to end: the acceptance suite (21 product behaviors) is green, the host builds a kernel per session version and projects it through the memoized toGraphView, all 11 derivers run through the kernel pipeline, and the old core is deleted rather than shimmed. SessionKernel.checkpoint() and the GraphModel → GraphViewData rename collision are resolved.
| Gate | Command | Result |
|---|---|---|
| Kernel build | pnpm --dir spacegraphjs run build:packages |
6 packages built, including kernel/dist/index.js + .d.ts |
| Kernel laws | bun test packages/kernel/src |
68 pass, 0 fail (15 files) |
| Host graph suite | bun test src/graph in packages/session-ui |
236 pass, 0 fail (23 files, includes the 21 acceptance tests) |
| Session-graph units | bun test src in packages/session-graph |
104 pass, 0 fail (9 files) |
| Graph capture e2e | bun run test:e2e -- e2e/graph/capture.spec.ts in packages/app |
26 frames pass, one independent test each |
| Graph component suites | bun run test:components (toolbar, 3d, equalizer, legend, gallery, view, legibility, fit-insets, minimap, refine) |
22 pass, 0 fail |
| Full repo check | bun run check from OpenCode root |
41/41 turbo tasks successful (lint + typecheck) |
The graph:capture matrix is generated by independent per-frame tests in packages/app/e2e/graph/capture.spec.ts. Each frame is its own test, so -g "<frame>" regenerates one without replaying the whole flow, and one bad frame no longer blocks the rest.
Two UI complexities that made the flow brittle were removed rather than worked around:
- Header mode menu deleted. One button toggles Log ↔ Map and one split button enters/leaves the hybrid; both carry stable
aria-labels, and the mobile switch already worked this way. - Toolbar
DrawandShowmenus merged into one groupedViewmenu. The compact overflow no longer renders the command controls twice. - Capture helpers open the menu's own
:scope > summary, so a grouped menu's nested lens menu cannot match the parent trigger.
All 24 app frames (01–06, 11–17, 18–24, 28–31) were regenerated with the simplified UI. Two workspace frames were added: 32-graph-workspace-code and 33-graph-workspace-all. The e2e mock's graph.workspace endpoint now accepts a graphWorkspace override, and the capture fixture supplies buildFixtureSnapshot(), so the derived domains (directories, packages, commits, branches, symbols, processes, ports, issues) are visible in the demo instead of the empty snapshot it returned before. The Cytoscape and scale frames come from their own component specs, unchanged.
Next phase: drafted in SPACEGRAPH.TODO.15.md (unified session lens: delta substrate, animated layout, layers controller, host lens slice). TODO.15 owns the go-forward plan; the items below are its inputs.
No base task is open. The derived node types and the multi-layer controls (domain lenses/profiles, zoom levels, layouts, depth) are already wired end to end; against a real session they appear as soon as the server returns a WorkspaceSnapshot. The deferred items below are about live updates and scale, not about missing node kinds.
The following are outside Slices 1–9 by design (§6) and are the next entry points, in priority order:
- S10 — real-time deltas (kernel).
WorkspaceKernelalready exposesreplaceFromand an LWWmerge. Add a transport that feeds deltas throughmerge, then re-runs only the affected derivers. This needs V14 build-graph invalidation: track eachDeriver's inputs → outputs and invalidate dependents instead of rebuilding the whole kernel. Acceptance: a merged delta converges to the same kernel as a full rebuild, and untouched derivers do not re-run. - Snapshot memoization +
Vcs.history(server). Memoize snapshots per(location, revision, scope)with event invalidation, and letVcssupply commit ids so the client stops working around the gap. See the T29.2 notes inSPACEGRAPH.TODO.5.md. - Parser WASM. Symbol extraction still uses the host path; define the parser interface before moving it. No kernel change is needed until then.
- Vault items V87–V94 remain rejected or deferred exactly as recorded in §9. Do not revive one without a concrete consumer.
Resume at item 1 or 2 only. Do not reopen the deleted compatibility surfaces (§1, §8 #17–#18).
- Slice 3 — Rewrite the host.
- Acceptance suite landed:
packages/session-ui/src/graph/acceptance.test.ts, 21 product behavior tests, green against the current host. This is the rewrite gate. - Host ↔ kernel projection landed in
packages/session-ui/src/graph/view.ts:toKernelNode/toKernelEdge,graphModelToKernel,graphViewMeta,toGraphView, andcreateGraphViewCache(memoized by kernel version + identity). Five round-trip/cache tests. - Builder now emits a
Kernel:GraphBuilder.buildKernel(),buildSessionKernel(input), andbuildGraph({ kernel, meta });buildGraph(input)builds a kernel then projects withtoGraphView. NoGraphModelintermediate. Fullsrc/graphsuite: 207 pass. - Workspace derivation is out of the session builder:
buildSessionKernelis session-only;buildWorkspaceKernelandworkspaceDerivercompose workspace domains throughrunPipeline. Tests cover session-only vs derived. - Split the composite workspace deriver into 10 thin stage derivers (
files,directories,packages,commits,branches,symbols,hunk-symbols,processes,ports,issues), composed withpipe/runPipeline; the session builder is the 11th deriver. Goldens refreshed for the new emission order. - UI wiring: all
buildGraphcall sites now run the kernel pipeline with no signature change.scope.tsis deleted;scopeModellives inview.tsand is implemented with kernelderiveScope. - Extracted the session builder into
session-builder.tsand the thin stage derivers intoworkspace-derivers.ts;build.tsis now orchestration only. The stage attach bodies still live onGraphBuilder(buildWorkspaceStage) and are called by the derivers; moving those bodies out is optional cleanup, not a correctness gap. - Replaced
model.golden*.jsonwithgraph.contract.json(semantic kind/count/invariant contract) andgraph.sample.json(small decodable kernel sample);contract.test.tsenforces both. - Converted
actionsForto a per-kindactionRegistryof factories. - Renamed
GraphModel→GraphViewDataacross session-ui, session-graph, app consumers, and gui-extensions, avoiding theGraphViewcomponent collision. 44 files; all typechecks and suites green. - Kernel gate:
build:packages,test:kernel(now 68 pass),session-uitypecheck,session-graphtypecheck all green.
- Acceptance suite landed:
- Slice 4 — Navigation (search +
ggrammar as query macros).navigation.ts: 9 mnemonics,parseNavigation(g f/gf),navigationTargets,navigationResults,nextNavigationTarget, generatednavigationHelp.GraphSearchacceptsinitialQuery, treatsg <key>as a macro, and renders registry-generated help.GraphViewmapsgto opening search with the grammar prefix; selection reusesjumpTo.- Tests: 5 navigation grammar cases.
- Slice 5 — Profiles + review (UI profile presets added atop existing empty states).
-
diffKernelsin@spacegraphjs/kernel: id-based, order-insensitive, stable data-key comparison; 4 tests. -
reviewChanges/reviewModelin session-ui usingdiffKernels; review projection keeps changed nodes and adjacent edge endpoints; 3 tests. -
PROFILE_PRESETS/applyProfile(all, session, code, review) and a Domains-menu preset row; 4 tests. - Empty states already ship for canvas, inspector, file rail, and equalizer.
-
SessionKernel.checkpoint()returns the memoized state + version and stays stable across later appends; 2 tests.
-
- Slice 6 — Clusters + adaptive (
deriveZoom+ expansion; adapter bands already grouped turns/phases).- Kernel
deriveZoom({ levelOf, rank, level, expansion }): rank table or function, per-node expansion override; 5 tests. - Host
zoomModel(model, level, expansion)usingminLevel+ZOOM_RANK; 4 tests. - Expansion state and turn/phase swimlane bands already exist in the adapter/view; no kernel nodes are used for groups.
- Kernel
- Slice 7 — Continuous layout.
-
LayoutStrategyvocabulary already existed;layoutGraphalready consumespreviouspositions and keeps earlier coordinates stable. -
computeIncrementalreturns{ layout, added, removed, moved };movedcarries{ from, to, t }. -
interpolatePositionand thetoption provide interpolation for callers that want it. - 5 incremental layout tests.
-
- Slice 8 — Spatial + scale.
- Kernel
SpatialIndex2D: grid buckets,near,within, insert/move/remove, limit + distance ordering; 6 tests. -
query(kernel, { positions }).near(x, y, radius, limit)exported asq.near; returns[]without positions. -
applyNodeBudget(model, budget)withDEFAULT_BUDGETweights; adapter-ownedbyProximity/sessionOrderretained; 4 tests.
- Kernel
- Slice 9 — A11y + export.
- Kernel
buildA11ySupport(kernel)returns a summary, flat semantic entries, and kind groups; 3 tests. - Host accessibility mirror already mounts the library
AccessibilityLayer(GraphA11y), with instructions and selection/connection announcements. - Added
exportGraphJSON/exportGraphFilename; the toolbar already exposes JSON export alongside SVG/HTML.
- Kernel
- Kernel:
pnpm --dir spacegraphjs run build:packagesthenbun test packages/kernel/src(orpnpm --dir spacegraphjs run test:kernel). - Host:
bun run checkfrom the OpenCode root plusbun test src/graphinpackages/session-ui. - Do not add a compatibility flag, dual path, or
GraphModelshim (§1, §8 #17–#18).
| Removed | Why it existed | Replacement |
|---|---|---|
OPENCODE_GRAPH=legacy|kernel|compare flag |
Safe incremental switch | Direct rewrite in one landing; git revert is the fallback |
| Dual-path semantic compare | Prove the port preserved behavior | Acceptance suite written first (§4) |
| Byte-identical golden gate | Prove port equivalence | Deleted. Normalized fixtures are self-generated intent snapshots |
buildGraph signature preservation as a goal |
Avoid touching call sites | All 5 call sites updated in the same change |
GraphModel compatibility view |
Keep 283 tests untouched | Renamed GraphViewData (avoids the GraphView component collision), shape free to change; tests retargeted |
scopeModel wrapper |
Shrink the diff | Call deriveScope directly |
Kernel contract negotiation (D16) |
External adapter versioning | Codec header carries a format version only |
| Binary codec | Compact files | JSON only; binary is vault V87 |
@spacegraphjs/kernel/conformance subpath |
Light main import | Single entry; runConformance is a named export (keeps package-exports.test.ts shape intact) |
diffKernels in base |
Prove diff early | Lands with the review profile (S5) |
What is not removed: logic reuse. The message loop, phase clustering, symbol extraction, and every attachX body are copied into derivers. Reuse the code, discard the API shape.
Net: base drops from 7.5 to 6 days.
| Fact | Consequence |
|---|---|
spacegraphjs/ is a separate git repo (own .git, branch main, pnpm, prettier + eslint, root vitest run), not a submodule of OpenCode |
Kernel work is its own commit/PR stream. Style is the nested repo's: 2-space, single quotes, semicolons, prettier-checked |
Outer package.json workspaces.packages lists spacegraphjs packages explicitly (spacegraphjs/packages/renderer, …/adapter, …/spacegraph-renderer, …/cytoscape-renderer, …/svg-renderer) |
Must add "spacegraphjs/packages/kernel" |
spacegraphjs/script/build-packages.ts has a hardcoded PACKAGES = ['renderer','adapter','spacegraph-renderer','cytoscape-renderer','svg-renderer']; builds ESM + .d.ts to each package's dist/ via Vite + vite-plugin-dts |
Must add 'kernel'. dist is gitignored, so pnpm run build:packages must run before OpenCode typechecks/tests resolve @spacegraphjs/kernel |
spacegraphjs/test/package-exports.test.ts has a hardcoded LEAF_PACKAGES list asserting exports are exactly { types: './dist/index.d.ts', import: './dist/index.js', default: './dist/index.js' } |
Must add 'kernel'; keep the package single-entry (no ./conformance subpath) to satisfy it |
spacegraphjs/test/boundaries.test.ts enforces "the contract is dependency-free" by rejecting any non-relative import in packages/renderer/src |
Add the same rule for packages/kernel/src — a mechanical guard for stop rule #11 |
Root vitest.config.ts include: ['test/**/*.test.ts', 'packages/*/test/**/*.test.ts'] — it does not collect packages/*/src/*.test.ts; packages/renderer/src/index.test.ts uses bun:test and is run by that package's own bun test |
Kernel tests live beside source and use bun:test (renderer precedent). Add "test:kernel": "bun test packages/kernel/src" to the nested repo, called from test:full |
Sibling packages mix runners (renderer: bun test; adapter: vitest run) |
Choosing bun test is consistent with the closest sibling and adds no config |
fast-check is in the outer catalog; the nested repo does not use it |
Kernel tests stay dependency-free: seeded LCG generator in test/support |
OpenCode packages consume @spacegraphjs/* through the bun workspace → package exports → dist |
Add "@spacegraphjs/kernel": "workspace:*" to packages/session-ui/package.json |
Workflow gate: after any kernel change, run pnpm --dir spacegraphjs run build:packages before bun run typecheck / bun test in OpenCode.
| Slice | Days | Where | Delivers |
|---|---|---|---|
| 1. Kernel substrate | 2.5 | spacegraphjs/packages/kernel |
Kernel (ordered nodes/edges/hyperedges, version, modify(b=>…), diagnostics), SessionKernel (append log, memoized fold, tag/checkout/fork, checkpoint seam), WorkspaceKernel (replaceFrom + LWW merge), KernelCodec (JSON, versioned header), GraphQuery (patterns/traverse/path/count/collect), Registry types, runConformance, seeded generator, orgs→tasks example fixture |
| 2. Deriver + scope | 0.5 | kernel | Deriver (typed input tokens), pipe, runPipeline(derivers, kernel, inputs), deriveScope(keep, pinned) |
| 3. Rewrite the host | 3 | OpenCode | Acceptance suite first (§4); buildSessionKernel; 11 thin derivers; toGraphView (memoized by version); buildGraph({ kernel? }); UI wiring; delete the old core (§5); regenerate fixtures |
| 4. Navigation | 2 | session-graph | search + g-grammar as query macros; registry-generated help |
| 5. Profiles + review | 1.5 | session-graph + kernel | profile presets; empty states with primary actions; diffKernels + review profile |
| 6. Clusters + adaptive | 3 | adapter + host + kernel | ClusterSpec → group bands; expansion state; deriveZoom(levelOf, expansion) per-node override; progressive detail on zoom |
| 7. Continuous layout | 2 | kernel iface + main lib | LayoutStrategy; computeIncremental; interpolation behind a flag |
| 8. Spatial + scale | 1.5 | kernel + host | SpatialIndex2D; adapter-owned visibility; q.near; budget weights |
| 9. A11y + export | 2 | kernel + host | A11ySupport; host wiring; JSON export |
Base = Slices 1–3 = 6 days. deriveZoom is deliberately not in base: the adapter already filters by level (ModelAdapter), and moving that now would double-filter. It arrives in Slice 6 where per-node overrides actually matter.
Written before the rewrite, in the new shape, red first. Each row is one behavior test. They live in packages/session-ui/src/graph/acceptance.test.ts and describe the product, not the implementation.
- Each message opener creates one turn; steered prompts share the opener's turn.
- Consecutive children of a turn get
sequenceedges in order. - Consecutive phase-eligible children of one category cluster into one
phasenode; a category change starts a new cluster. - Subagent tools produce
subagentnodes; a synthetic completion linksdelegates. - Shell/tool results produce
resultnodes withproduces; failures arefailed; retries linkevidenceto the prior failure. - Assistant errors produce
errornodes; an abort readsinterrupted, notfailed. - Compaction produces a
compactionnode withcompacts→ previous turn;replayedreflects a native window. - An idle with changed files produces one
diffnode listing them,produceseach file. read/edit/write/patch/search producereads/writes/searchesedges to files.- The active turn is flagged while the session is not idle; the goal is the first user text.
- Directories derive from the union of touched and snapshot files; every file is
part-ofits parent; directory counts carry total + touched. - Packages derive from snapshot with distinct
pkg:<path>ids anddependencies/devDependenciesdata. - Commits derive from snapshot (+ base),
touchesfiles; branchespoints-atcommits; the current branch is marked. - Symbols derive from snapshot and from hunk patches, dedupe by id, carry
originanddeletedwhere applicable. - Processes/ports derive with
listens-on; a shared port is visible on both cards; PID reuse does not fork a node. - Issues derive with provider/repo/number ids; file roles mark
config/doc. - Every derived node carries
provenance; the model carriesrevision,asOf,missing.
- The domain lens drops non-session domains and never drops session.
- Without a snapshot the graph is the session-only graph and every derived domain is absent (not empty-but-present).
- Level filtering shows the same nodes as today for overview/execution/detail.
- Toolbar domains menu, inspector fields, detail actions, filesystem window, equalizer presets, and search keep working.
Retired: byte-identical model fixtures, exact node counts, GraphModel field-by-field snapshots.
Fixtures after the rewrite: graph.contract.json (per-kind id sets + edge triples, sorted) and graph.sample.json (3–5 nodes per kind), both generated by UPDATE_GOLDEN=1.
| Path / symbol | Fate |
|---|---|
session-ui/src/graph/build.ts — GraphBuilder, attachWorkspace, attachPackages/Commits/Branches/Symbols/Processes/Issues, attachHunkSymbols, symbolsFromHunk |
Split: session-builder.ts (session + builder), workspace-derivers.ts (stage derivers), build.ts (orchestration) |
session-ui/src/graph/scope.ts — scopeModel |
Deleted; scopeModel now lives in view.ts and delegates to kernel deriveScope |
session-ui/src/graph/actions.ts — actionsFor switch |
Becomes registry contributions |
session-ui/src/graph/model.golden.json, model.golden.with-snapshot.json |
Deleted; replaced by contract + sample fixtures |
session-ui/src/graph/model.ts — GraphModel |
Renamed GraphView (host projection over kernel Node/Edge); GraphNode = Node & { kind: NodeKind } |
fixture.ts — buildFixtureGraph* helpers |
Kept, rebuilt on the new pipeline |
Nothing is kept "just in case." If a function is needed, it is copied into its deriver.
- Architecture: two kernels, derivers, query, groups-as-bands, static registry — settled (§1, TODO.12 §2)
- Ownership split: substrate in SpaceGraphJS, vocabulary in OpenCode — settled, guarded by the orgs→tasks fixture and the boundaries test
- Repository facts: nested repo, workspace registration, build script list, exports/boundaries tests, test runner,
distresolution — verified (§2) - Exact registration edits named (4 files) (§2)
- Test strategy: laws + contracts default; normalized fixtures; no byte gate; no timing/pixel gate (§4)
- Base scope: Slices 1–3, 6 days, no flag, no dual path (§3)
- Acceptance suite enumerated (21 rows) as the port's definition of done (§4)
- Delete list enumerated (§5)
- Removed-for-agility items recorded with their replacement (§1)
- Open questions resolved: test runner, package entry shape, codec format, error model, style, determinism, where snapshot types live (host, not kernel)
Deliberately out of base: deriveZoom (S6), diffKernels (S5), runs/search/grammar (S4), clusters (S6), continuous (S7), spatial (S8), a11y (S9), real-time (S10), snapshot memoization, Vcs.history, parser WASM.
| # | Question | Resolution |
|---|---|---|
| 1 | Test runner for the kernel | bun test, tests beside source, matching @spacegraphjs/renderer; root vitest does not collect src tests |
| 2 | Subpath exports (./conformance)? |
No — single entry; runConformance is a named export; keeps package-exports.test.ts unchanged in shape |
| 3 | Binary codec? | No — JSON only with a versioned header; binary is V87 |
| 4 | Kernel contract negotiation? | No — no external adapters yet; codec format version only |
| 5 | Kernel opinions on dangling edges/duplicates? | Neither: they are counted in diagnostics; host conformance asserts zero |
| 6 | Where do WorkspaceSnapshot types live? |
OpenCode protocol (host concept); the kernel never imports them |
| 7 | Style in the kernel package | The nested repo's prettier/eslint: 2-space, single quotes, semicolons |
| 8 | Determinism | No clock, no randomness, no network in kernel; fixtures fixed; seeded generator for properties |
| 9 | How does OpenCode resolve kernel changes? | pnpm --dir spacegraphjs run build:packages then workspace dep resolves dist + .d.ts |
| 10 | Can the UI call buildGraph per render? |
No: host builds the kernel once per session version, toGraphView memoizes by version, and buildGraph({ kernel }) is the entry |
Carried from TODO.13 §6, amended:
- #17 (new): never add a compatibility shim, alias, or flag for a path with no users. Delete and replace.
- #18 (new): the acceptance suite (§4) is the only definition of "we did not lose the product." Byte equality is not evidence.
- #19 (new): kernel changes require
build:packagesbefore OpenCode checks; a PR that skips it is incomplete. - #20 (new):
@spacegraphjs/kernelimports nothing but its own relative modules (enforced by the boundaries test).
| # | Idea | Status | Why not now |
|---|---|---|---|
| V86 | Rollout flag / dual-path compare | Rejected | No users; git revert is the fallback. Recorded so it is not re-proposed |
| V87 | Binary kernel codec | Vault | JSON is enough; binary pins a format we would still be designing |
| V88 | Kernel contract negotiation | Vault | Zero external adapters; add with the first one |
| V89 | ./conformance subpath export |
Vault | Single entry keeps the exports test stable |
| V90 | fast-check property testing |
Vault | Seeded generator keeps the package dependency-free |
| V91 | GraphModel compatibility view |
Rejected | Rename to GraphView; tests retargeted |
| V92 | diffKernels in base |
Deferred to S5 | Nothing consumes it before review |
| V93 | SessionKernel.checkpoint() (carried V79) |
Planned S5 | Only the time-travel scrubber needs it |
| V94 | Snapshot memoization + Vcs.history |
Planned (server) | Not needed by base; carried from TODO.5 T29.2 |
In spacegraphjs/ (nested repo, main):
packages/kernel/package.json— zero deps; exports exactly{ types: './dist/index.d.ts', import: './dist/index.js', default: './dist/index.js' }; scriptstypecheck: tsc --noEmit,test: bun test.packages/kernel/tsconfig.json— copypackages/renderer/tsconfig.json(strict, bundler,noEmit).packages/kernel/src/kernel.ts— orderednodes/edges/hyperedges,version,modify,diagnostics,subgraph,filterNodes.packages/kernel/src/session.ts— append log, memoized fold,tag/checkout/fork.packages/kernel/src/workspace.ts—replaceFrom,merge(LWW).packages/kernel/src/codec.ts— JSON, header{ format: 1 }.packages/kernel/src/index.ts— single entry.packages/kernel/src/kernel.test.ts,session.test.ts,codec.test.ts—bun:test; laws only.packages/kernel/src/example/fixture.ts— orgs → projects → tasks (vocabulary-leak guard).- Register: outer
package.jsonworkspaces,script/build-packages.tsPACKAGES,test/package-exports.test.tsLEAF_PACKAGES,test/boundaries.test.tskernel rule;test:kernelscript. pnpm run build:packages→ confirmpackages/kernel/dist/index.js+.d.ts.