Skip to content

docs(proposals): remote-compute state modes (store-owned and snapshot-owned) - #391

Draft
waldemort-auto[bot] wants to merge 5 commits into
mainfrom
waldemort/proposal-snapshot-owned-state
Draft

waldemort-auto[bot] wants to merge 5 commits into
mainfrom
waldemort/proposal-snapshot-owned-state

Conversation

@waldemort-auto

@waldemort-auto waldemort-auto Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds a provider-neutral design proposal (docs/proposals/remote-compute-state-modes.md) defining two supported state modes for PilotSwarm sessions when the trusted worker (orchestration, CMS, facts, artifacts, model API keys) is separated from an untrusted remote sandbox (Copilot CLI, shell, file tools).

Two state modes on one shared remote-compute foundation

  • Mode 1 — Store-Owned (statePolicy: "store-owned", universal default): Extends PilotSwarm's store-wins durability model (docs/proposals/snapshot-store-wins.md) to separated remote compute providers. The remote sandbox acts as a disposable warm cache; at turn end, the guest stops the CLI and streams a bounded (<= 16 MiB) opaque compressed archive of cli-home/session-state/<sessionId> over the authenticated channel. The worker hashes and commits the opaque bytes via store-wins CAS without ever extracting them on the worker, writing { turnKey, result } (<= 64 KiB) to a separate worker-owned trusted record. Delivers immediate cross-sandbox and worker-restart failover across any remote compute provider.
  • Mode 2 — Snapshot-Owned (statePolicy: "managed", opt-in full-disk tier): Lets a snapshot-capable compute provider own both CLI conversation files and workspace disk state inside provider snapshots while PilotSwarm's control plane stores a conditional JSON reference head (~2 KiB). Requires transcriptEpoch: 1 (without regeneration metadata), write-ahead CAS phases (sdk.managed-state, <= 4 KiB), 3-valued publication, and separates checkpoint acceptance from restoreQualification ("unproven" in Phase 1) until provider snapshot retention and physical fencing are qualified.

Prototype & live verification status

  • Both modes share the same mutual-TLS, per-binding cryptographic handshake, and worker-only model key brokerage boundary (zero model keys or control-plane credentials enter the sandbox, its snapshots, or its archives).
  • Isolated SDK prototypes compile and pass unit tests for both modes, and both modes have been exercised live against a real remote sandbox provider (Mode 1 cross-sandbox failover via Blob hydration; Mode 2 two-turn same-sandbox continuity).

Scope

  • Documentation-only draft PR (docs/proposals/remote-compute-state-modes.md, +180 lines).
  • npm run check:privacy passed on commit b2384bdd2 (3,346 indexed files, 0 findings).
  • No runtime, SDK, CMS, or orchestration changes are included in this PR.

Waldemort Agent and others added 5 commits November 25, 2026 00:47
… sandboxes

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…ot-owned modes

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…se brief style (rev 3)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…mote-compute-state-modes.md (rev 4)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@waldemort-auto waldemort-auto Bot changed the title docs(proposals): snapshot-owned state for platform-managed sandboxes docs(proposals): remote-compute state modes (store-owned and snapshot-owned) Nov 25, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants