Repository navigation
docs: describe each deployment as one OpenTofu root - #13287
Merged
Merged
Conversation
Objects took the gateway data source's ref, which a single root would leave unknown at plan time whenever the read waits for apply, planning objects as changed. They now take the same ref as a literal, known while planning; the gateway reads still gate them through depends_on and a compatibility precondition.
Planning a new OpenShell object connected to its gateway to check that the name wasn't already taken. On a fresh install with one root, the gateway doesn't exist until the same apply installs it, so every first plan would fail. Planning now only validates the gateway ref. reconcile already refuses a name owned by someone else before every mutation, so the ownership check moves to apply.
…fu root The SDK ran a runtime stage and an OpenShell stage as separate roots, with separate state, plans, markers, deferrals, and teardown. Compile one graph instead: the runtime's gateway read replaces the plan-time read, and the apply-time gateway read that every object waits on now waits on every runtime resource and readiness read, so the runtime settles first within one apply and destroy removes objects first. Plan, apply, export, and destroy use one state. Only OpenShell and Fabric creations are tracked for lost replies, and a failed apply forgets new creations OpenTofu never started. The runtime stage, its markers, the gateway deferral, deferred_resources, and the Kubernetes unfinished-platform rule are removed.
The architecture, apply-flow, state, provider, CLI, usage, and testing docs described separate runtime and OpenShell stages, a runtime state subdirectory, deferred OpenShell planning, and runtime-only recovery markers. Describe one graph whose dependencies order runtime before objects, and the lost-creation tracking that replaces those markers.
cv
enabled auto-merge (squash)
October 15, 2026 21:25
# Conflicts: # crates/nemoclaw-sdk/src/deployment/runtime.rs # crates/nemoclaw-sdk/src/deployment/runtime/tests.rs # docs/reference/cli.md
Contributor
This was referenced Oct 15, 2026
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.
Closes #13254. Part of #13131. Stacked on #13286.
Failure
After #13286, the docs still described two OpenTofu stages: separate runtime and OpenShell plans, a
runtime/state subdirectory, deferral of OpenShell planning until the gateway exists, a gateway-running check, both teardown plans, runtime-only recovery markers, and the removed "Resources awaiting a complete plan" output.Decision
Describe what the SDK does now:
design/architecture.md: "Why Managed Apply Has Two Stages" becomes "Why Each Deployment Is One OpenTofu Root". It covers how dependencies apply the runtime before objects and destroy in reverse; why a fresh deployment can plan the gateway and its objects together; and that a stopped gateway is an ordinary failure. The recovery rules now describe the lost-creation tracking: OpenShell and Fabric creations only, and forgetting creations OpenTofu never started.design/apply-flow.md: one plan → SDK checks → apply block in the diagram and steps.state.md(noruntime/directory; the Helm checkpoint is at the state root),provider.md,reference/cli.md,usage.md, and the contributor testing docs.provider.mdandapply-flow.mdno longer name the removednemoclawprovider.Validation
cargo run -p nemoclaw-build -- fern check: 0 errors; the same single warning as before this change.runtime/state directory, or the removed output.design/recipes.md's image-preparation "runtime stage" is unrelated and unchanged.