Repository navigation
Description
Problem Statement
NemoClaw assumes that it owns the effective OpenShell sandbox policy. It supplies a policy during sandbox creation and later replaces policy while applying presets, resuming onboarding, rebuilding, restoring snapshots, managing Model Context Protocol services, configuring messaging channels, and changing Shields state.
When another authority manages the sandbox policy, OpenShell rejects direct mutations. Some NemoClaw workflows can reach this refusal after they change other state. The sandbox registry also cannot accurately represent policy that another authority manages.
Desired Behavior
NemoClaw can operate with an externally managed sandbox policy without attempting direct policy mutation.
- Before the first policy-dependent side effect, NemoClaw determines policy authority from stable, machine-readable OpenShell metadata.
- NemoClaw persists the policy authority so onboarding, resume, rebuild, restore, and recovery use the same decision.
- When policy is externally managed, NemoClaw omits a caller-supplied policy during sandbox creation and does not run policy set, update, removal, or preset replay operations.
- NemoClaw reads the effective policy and verifies required policy entries before it reports a dependent capability as available.
- If the effective policy lacks a required entry, NemoClaw stops before related provider, credential, service, registry, or sandbox mutation and explains that the policy authority must supply the requirement.
- NemoClaw does not record policy presets as applied by NemoClaw when another authority supplies the effective policy.
- If policy authority is unavailable or ambiguous, NemoClaw fails closed before mutation.
- Existing NemoClaw-managed policy behavior remains unchanged.
For example, a sandbox rebuild with externally managed policy must not replay recorded presets. It must preserve the external policy-authority state and verify the effective policy before reporting successful recovery.
Constraints and Non-goals
- Do not bundle or configure an external policy service.
- Do not add vendor-specific policy adapters or deployment configuration.
- Do not infer policy authority only from human-readable error text.
- Do not weaken OpenShell permission checks or retry a structured policy-ownership denial.
- Do not fall back to direct mutation when the external policy authority is unavailable.
- Operations that require a policy change may refuse the operation and identify the missing policy requirement.
Implementation Idea
Add one persisted policy-authority field and one read-only authority preflight. Use the result before sandbox creation and before every policy-dependent lifecycle operation.
Place a central guard before policy set and update commands. Also guard higher-level workflows before they change adjacent state. If the authority changes between preflight and mutation, classify the structured ownership denial as final, do not retry, and do not record success.
Cover these paths:
- Sandbox creation and onboarding
- Resume, rebuild, recreate, and recovery
- Snapshot restore and clone
- Policy preset and messaging-channel changes
- Managed Model Context Protocol policy changes
- Shields transitions and recovery
- Blueprint policy additions
Tests must prove that externally managed and unknown policy authority produce no direct policy mutation, no false registry attribution, and no destructive lifecycle side effects. Tests must also prove that NemoClaw-managed policy behavior is unchanged.
Category
Feature
Checklist
- I searched existing issues and this is not a duplicate. Duplicate review is pending.
- I described the problem and desired behavior.
Follow-up: provider-backed APF
Temporarily, APF onboarding supports providerless sandboxes only. Plans that require model, messaging, or MCP providers must stop before sandbox creation and before any provider or credential effect.
Work with OpenShell upstream on an identity-bound provider attachment API. It must atomically attach to the previously verified immutable sandbox ID and expected resource version; name-only attachment is not sufficient. After that API lands, NemoClaw can enable provider-backed APF onboarding and validate the normal model/MCP lifecycle.
Activity
apurvvkumaria commentedon Aug 21, 2026
Maintainer product decision
Status: accepted.
NemoClaw supports externally managed OpenShell policy as a lifecycle mode for issue #9833 and PR #9899.
Technical remediation of PR #9899 may resume under this accepted design decision.
apurvvkumaria commentedon Aug 25, 2026
Superseding maintainer product decision
Status: accepted.
This decision supersedes the earlier statement that every sandbox-scoped policy is NemoClaw-managed. All other lifecycle, security review, and validation requirements in the earlier decision remain in force.
policy_source: sandboxidentifies policy scope. It does not prove that NemoClaw created or owns the policy.fix(policy): enforce external policy authority (#10049)
fix(onboard): preserve external policy authority (#10115)
fix(onboard): bind policy ownership to verified create receipts (#10332)
apurvvkumaria commentedon Aug 26, 2026
Provider attachment identity boundary
The #10332 follow-up confirmed a remaining OpenShell dependency for credential-bearing provider attachment.
This constraint applies to the generic deferred-effects boundary and the APF workflow. APF policy verification can succeed independently, but any required provider attachment remains incomplete until an identity-bound OpenShell mutation is available.
Source review: #10332 and the exact security finding. A focused NemoClaw follow-up will implement the fail-closed behavior; positive completion remains dependent on the OpenShell API capability.
feat(onboard): verify APF-injected sandbox policy (#10305)
apurvvkumaria commentedon Aug 27, 2026
Follow-up cleanup: one owner for deferred sandbox effects
This is nonblocking maintainability work. It is deferred until after #10396 qualification.
fix(onboard): restore policy authority lifecycle flows (#10436)
fix(security): bind sandbox mutations to durable authority (#10396)
fix(onboard): reconcile GPU policy creation receipts (#10509)
fix(onboard): preserve retained sandbox authority (#10510)
apurvvkumaria commentedon Aug 30, 2026
Closing as superseded by #10514, delivered in #10515. The durable NemoClaw policy-authority and receipt design described here is no longer the accepted direction. Independent provider inspection hardening continues in #10621. Provider-backed APF still requires an OpenShell API that binds provider attachment to immutable sandbox identity and the expected resource version; track that upstream dependency separately.
refactor(openshell): add selected runtime foundation (#10814)
refactor(destroy): pin recorded runtime target (#10816)
refactor(rebuild): preserve recorded runtime target (#10817)
refactor(mcp): bind lifecycle to recorded runtime (#10815)
fix(e2e): align runtime identity lifecycle with OpenShell (#11684)