Uh oh!
There was an error while loading. Please reload this page.
feat(cli): expose one-shot Cloud Session activation protocol - #1587
Conversation
Astro-Han
commented
Jul 29, 2026
Checked at P1: root overlap is checked in one direction only
The root check needs symmetric containment for each pair, preferably through the existing root-layout implementation. Code: P1: resumed activation writes non-JSON data to the JSONL streamExisting-session activation calls the continuation planner. Its lifecycle callback uses:
Code: P2:
|
Nyvo-io
commented
Jul 30, 2026
Addressed all review points in commit 66b371e:\n\n- root containment validation is symmetric for every state/workspace/config pair;\n- activation resume diagnostics use stderr, keeping stdout valid JSONL;\n- malformed input now emits a terminal fatal_failure outcome;\n- non-permission blocked sessions (auth/tool_failed/etc.) now return retryable_failure with retry_activation instead of grant_permission.\n\nAdded regression coverage for each case. Verification: CLI typecheck passes, format check passes, and the focused activation/runtime-bootstrap suite passes all 33 tests. |
Astro-Han
left a comment
There was a problem hiding this comment.
Re-reviewed 66b371e. The previous findings are fixed: root overlap is checked both ways, activation resume diagnostics stay on stderr, malformed JSON emits a terminal fatal_failure, and non-permission blocked sessions return retryable_failure with retry_activation. The focused CLI tests pass, 33/33. No remaining findings.
The branch still conflicts with current main in runtime-bootstrap.test.ts, so it needs a rebase before merge.
66b371e to
0f9a38aCompareNyvo-io
commented
Jul 30, 2026
Rebased onto the latest main at 0f9a38a; the branch is now mergeable. During the final review I also made root-layout rejection side-effect-free, so unsafe state/workspace/config layouts are rejected before any missing directory is created, with a regression test covering that contract. Verification on the rebased branch: CLI typecheck and build pass, formatting and git diff checks pass, focused activation/runtime-bootstrap tests pass 35/35, full CLI tests pass 689/689, and CI typecheck/test/e2e all pass. |
Astro-Han
commented
Jul 30, 2026
Rechecked One P1 remains. The activation command handles Under activation's default The current blocked test injects |
Expose a strict maka activate JSONL entry point with explicit roots, deterministic outcomes, safe-boundary resume, redacted bounded events, and one-shot lifecycle cleanup.
0f9a38a to
cef97fdCompareNyvo-io
commented
Jul 31, 2026
Addressed the remaining P1 in Verification on the latest |
Astro-Han
left a comment
There was a problem hiding this comment.
Re-reviewed the current head. The fixes from the earlier rounds remain intact, and I found no P0 or P1 issue.
Approving with four non-blocking protocol follow-ups. They affect recovery or bounded-output edge cases, and there is no current production Cloud coordinator relying on these paths yet.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Nyvo-io
commented
Aug 1, 2026
Thanks for the approval. I rechecked the four inline follow-ups on I am leaving the implementation unchanged rather than adding an unrelated mechanical patch; these items should be tracked with the future coordinator work. This head is ready to merge once the non-blocking review threads are resolved. |
Astro-Han
commented
Aug 1, 2026
The four review items are non-blocking for this foundation, so I’m resolving the threads and proceeding with the merge. Please capture them in a follow-up issue before the production coordinator work begins:
Linking that issue back to #1587 will keep the protocol debt visible when the first production consumer is implemented. |
Uh oh!
There was an error while loading. Please reload this page.
#1587 sets runtimeSource to gateway for cloud activation, but the INVOCATION_SOURCES union never included it, so typecheck and unit build of packages/cli failed after merge with main.
#1587 sets runtimeSource to gateway for cloud activation, but the INVOCATION_SOURCES union never included it, so typecheck and unit build of packages/cli failed after merge with main.
… contracts (#1854) * refactor(ci): split Storybook from e2e and demote floor layout to CSS contracts Storybook never needed Electron: move build+smoke to a parallel job and stop core-only changes from forcing cold Electron boots. Replace settings window- floor and flat-shell chrome e2e with source CSS contracts; drop the unused fixtures those specs paid for. * ci: run Storybook only when the catalog or harness changes Storybook is a design catalog, not a product ship gate. Typecheck already covers story types and annotations; unit/e2e cover product behavior. Stop forcing Chromium build+smoke on every desktop/ui/core PR — only stories, .storybook, ui/stories, the smoke script, and core settings (THEME_PALETTES). * refactor(desktop): demote pure layout e2e to CSS and source contracts Delete Electron e2e that only re-measured CSS or structural source (topbar overflow, QR bounding boxes, centerline/empty chat flush, model-picker mark geometry, remote-access floor CSS, boot locale fixtures). Pin the same invariants in unit contracts, and keep real product journeys plus titlebar rendered-geometry and content-visibility scroll pin/warm-up in e2e. * fix(ci): build workspace packages before Storybook job The split storybook job only ran npm ci + build-storybook. Stories import @maka/core (and other workspace packages) from dist/, so Rolldown failed to resolve without the same build:workspace-deps step e2e used to pay for. * fix(desktop): tighten e2e-slim contracts after dual review Stop CSS contracts at each rule's own brace (with mutation coverage), restore one live permission floor smoke and locale boot reload, pin topbar menu wiring, and drop the unused settings-search fixture path. * fix(runtime): add gateway to InvocationSource #1587 sets runtimeSource to gateway for cloud activation, but the INVOCATION_SOURCES union never included it, so typecheck and unit build of packages/cli failed after merge with main. * fix(desktop): reopen settings after locale reload without expand Sidebar expand state can survive page.reload via localStorage, so the Expand control is gone. Only click it when visible before re-entering Settings for the rest of the locale journey. * fix(cli): wait for /rename notice before asserting transcript The title updates before the notice is rendered, so a bare assert races and flakes in CI after the title wait already passed.
Closes#1554
Summary
maka activateJSONL entry point with versioned request/output contractsmaka runtext output unchangedScope
Session Bundle, CAS/SessionRepository, sandbox lifecycle, activation leases/deduplication, cross-activation approval workflow, and Cloud Session fork remain out of scope.
Verification
npm --workspace maka-agent run buildnode --test packages/cli/dist/__tests__/activation-command.test.jsnpm --workspace maka-agent run test:dist(661 passed)npm --workspace maka-agent run typecheck(CLI/dependencies pass; existing desktop preload@maka/uidist artifact is unavailable in this worktree)