docs: propose Rainier × NoKV workspace continuity - #17
Open
wchwawa wants to merge 1 commit into
Open
Conversation
Signed-off-by: wchwawa <wch19961116@gmail.com>
Author
|
@jiashuoz, could you please review this high-level direction and share your opinion? In particular, I would value your guidance on the driver/provider boundary and whether a local cross-runner E2E should be the next contribution before any NoKV shadow adapter. |
Member
|
Quick summary after comparing this RFC with the existing checkpointing plan and reviewing NoKV source at
Overall: NoKV looks promising as an immutable checkpoint substrate, but it should not yet replace the provider-neutral checkpoint boundary or become a runtime dependency. The two approaches can be complementary if NoKV sits behind Rainier's export/install contract. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
TL;DR
Propose a high-level, post-v0 collaboration boundary for portable workspace continuity. Rainier and Postgres retain lifecycle authority; the runtime driver owns workspace export/install; NoKV remains an optional checkpoint and provenance provider evaluated shadow-first.
This PR is intentionally RFC-only. An exploratory local prototype was excluded after review against current main showed that the first implementation must integrate through Rainier's opaque driver and existing
/workspacerules, rather than accept host filesystem paths.Problem
Rainier already preserves
/workspaceacross container crash and cold park on one runner. Its v0 design still accepts losing unpushed work when that runner VM is lost, while the v1 roadmap calls for object-storage checkpoints and cross-runner recovery.Consequences
Without an explicit boundary, Rainier would need to assemble and qualify workspace identity, recovery, history, provenance, retention, and cleanup across Postgres, object storage, and runtime-specific volumes. Coupling that work directly to NoKV would instead introduce a second authority and a premature v0 dependency.
Example
A runner disappears with uncommitted code, generated files, and multi-repository work in
/workspace. Rainier recreates those files on another runner, then lets the agent continue through its native resume mechanism. Process memory, PTY, sockets, and GPU state are explicitly outside this proposal.Solution
Gain
NoKV can reduce the consistency machinery Rainier would otherwise build around versioned workspace history, retries, recovery, provenance, references, and garbage collection. The claim is not that any storage primitive is unique; the harder-to-replace value is the integrated agent-workspace lifecycle.
Tradeoffs
Verification
main@c44d65322f832deb3c70e093957b9c3ebcb14769;git diff --check;go test -race -count=1 ./...;go vet ./...;go build ./....No real cross-runner restore or production NoKV integration is claimed.
Decision requested
@jiashuoz, would you please review the direction and share your opinion, especially on: