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
feat(cli): split bundled session state root from injected config root #1338
Today packages/cli/src/runtime-bootstrap.ts derives sessions, runs, artifacts, connections, credentials, settings, and device identity from a single workspaceRoot. A portable Session Bundle must never contain credentials or host configuration, so we need a hard boundary before any bundle export exists.
Scope
Inventory every store rooted by the CLI/runtime bootstrap; classify each as session-owned state vs injected host configuration.
Introduce explicit stateRoot / configRoot inputs at the nearest shared bootstrap seam; current CLI/Desktop paths remain the backward-compatible defaults.
Define one auditable export policy: includes only session-owned state; explicitly excludes credentials, connection configuration, device identity, storage-root marker, temporary activation input, and logs.
Export fails closed on symlinks, path escape, unknown protected entries, or unsafely overlapping roots.
Tests: legacy path compatibility, root isolation, cross-session leakage, symlink/path traversal, credential canaries proving exported material contains no secrets.
Out of scope
Control plane, KV/CAS, compression and size policy, maka activate, activation deduplication.
changed the title [-]Split session state root from injected config root + bundle export policy[/-][+]feat(cli): split bundled session state root from injected config root[/+]on Jul 22, 2026
focused tests for root isolation, legacy compatibility, cross-session leakage, credential canaries, symlink/path escape, and root overlap.
Verification is complete: storage 421 passed / 1 skipped out of 422 tests, CLI 640/640 passed serially, and the independent ShellRun regression tests passed 3/3. Ready for review.
Activity
Astro-Han commentedon Jul 22, 2026
per #1286, this sub issue is assigned to @Nyvo-io.
[-]Split session state root from injected config root + bundle export policy[/-][+]feat(cli): split bundled session state root from injected config root[/+]Nyvo-io commentedon Jul 22, 2026
Implemented and opened PR #1349: #1349
The PR includes:
stateRoot/configRootseparation at the CLI runtime bootstrap seam, with legacyworkspaceRootdefaults preserved;Verification is complete: storage
421 passed / 1 skippedout of 422 tests, CLI640/640passed serially, and the independent ShellRun regression tests passed3/3. Ready for review.feat(cli): split portable session state from host config (apache#1349)