Repository navigation
Description
Goal
On an accepted rootless Podman Linux host, fresh Portable OpenClaw onboarding must apply the accepted default policy set and reach authoritative finality.
When NEMOCLAW_POLICY_PRESETS is absent, empty, or whitespace-only, fresh onboarding must:
- select exactly
weather,public-reference,github; - preserve every mandatory baseline policy entry;
- complete step 8/8;
- confirm the applied policy through OpenShell readback; and
- keep the sandbox and onboarding session resumable after a policy failure.
A nonblank NEMOCLAW_POLICY_PRESETS value remains authoritative. Resume must not inject the fresh default.
Scope authority
Epic #9200 records the accepted narrow-default decision and delivery order. Merged PR #9289 implements the fresh default. PR #9238 remains the separate status-preservation and temporary-cleanup slice.
This decision replaces the earlier requirement to compose personal-open-internet with the mandatory exact-host policies. The accepted default does not require an OpenShell host-exclusion capability.
Current gap
The previous personal-open-internet default overlapped mandatory exact-host policies with incompatible OpenShell metadata. Fresh onboarding then stopped before policy finality.
Merged PR #9289 excludes that broad preset from the implicit default. Explicit operator policy intent remains unchanged.
PR #9238 must still preserve an exact nonzero policy submission status through cleanup and resumable unwind.
Acceptance criteria
- Default: Fresh absent, empty, or whitespace-only intent selects exactly
weather,public-reference,github. - Override: Fresh nonblank operator intent remains authoritative.
- Resume: Resume does not inject or restore the fresh default.
- Allowed: The accepted default preserves mandatory baseline policies, completes onboarding 8/8, and supports one real routed-inference request.
- Denied: Broad unapproved network access, loopback addresses, link-local addresses, metadata endpoints, and unapproved binaries, methods, or paths remain blocked.
- Failure: A controlled invalid submission returns the exact OpenShell status and diagnostic. It must not update local preset attribution.
- Recovery: A later onboarding resume uses the same sandbox identity after the operator corrects the owning prerequisite.
- Cleanup: Temporary policy material is removed after success and failure.
Evidence
Exact PR #9289 commit 6df172770c11115b931f06390fdf417feedffa79 completed these boundaries on a dedicated L40S Brev host:
- strict v2.1 host preparation and prerequisite reboot;
- fresh public-installer onboarding 8/8;
- exact
qwen3.6:35bmodel selection without fallback; - sandbox
Readyand direct CUDA proof; - exact
weather,public-reference,githubpolicy readback; - allowed weather access and denied broad
example.comaccess; connect --probe-onlywith status 0;- TUI
gateway connected | idle; and - one real chat turn.
The Epic keeps stop/start, product-installed host restart, uninstall, and the protected complete-journey lane open.
Blockers and stop conditions
- The merged current-main revision must repeat the policy evidence because its identity differs from the tested PR commit.
- PR fix(policy): report the authoritative OpenShell policy result (#9206) #9238 must complete the status-preservation and temporary-cleanup slice before this issue closes.
- Stop before weakening a mandatory baseline policy, explicit operator authority, resume authority, or failure status.
Out of scope
Pairing settlement, host restart, general lifecycle recovery, uninstall preservation, Hermes, and production Podman-provider activation remain separate work.
Activity
AzeelSajjad commentedon Aug 16, 2026
Opened #9238 for the first capability slice.
What it establishes
It reproduces the unchanged default before editing policy behavior, as the delivery section requires. Those tests pass against unmodified
main, so the default composition is now pinned rather than changed:NEMOCLAW_POLICY_PRESETSunset, onboarding selects onlypersonal-open-internet, with modecustomand tierpersonal, and required-preset reconciliation does not widen that authoritative selection.managed_inferencestructurally identical.The defect it fixes
openshell policy setfailures reached the runner's process exit from inside the temp-file block holding the composed sandbox policy. Node does not unwindfinallyon process exit, so every failed submission left the composed policy readable in$TMPDIR, and the operator saw onlyCommand failed (exit N). That is the same generic output recorded in #8991, and it violates the Cleanup criterion here.Submissions now run through one helper that owns the temp-file lifetime and classifies the result. A refusal reports the preserved OpenShell status and redacted message and is final. An unconfirmed result reports that gateway state is unknown and must be read back. Both leave local preset attribution unwritten and are not retried. Exactly one
mkdtempSyncfor policy material remains in the tree, shared by the batch apply and all threesetPolicyFilecallers, which matters because the same onboarding step reachesremovePreseton deselection andapplyPresetunder the interactive tier selector.What it does not establish
--baseand--full, and a redacted real-chat result remain open.personal-open-internetendpoint overlap with the mandatory exact-host entries is untouched. This changes failure reporting and cleanup only.rejecteddiagnostic shape is inferred, not observed. Onboarding fails applying policy presets with an OpenShell HTTP/2 stream reset #8991 captured a real transport reset but no semantic rejection, because the defect fixed here is what hid it. The classifier fails safe, degrading an unrecognized diagnostic to the unconfirmed path rather than asserting a verdict. Confirming the refusal path against a real captured sample is worth doing during the hardware run.Two items for maintainer attention: the PR ratchets two
ci/source-architecture-budget.jsonentries, sincesrc/lib/policy/index.tssat exactly at the default fan-out cap and needed edges for redaction and the classifier; and this slice is larger than "the shortest deterministic tests" because the cleanup criterion could not be met without the cross-cutting control-flow fix. Splitting it is a reasonable call if preferred.test(policy): keep the policy outcome test bodies linear (NVIDIA#9206)
fix(policy): require an explicit refusal status and prove temp cleanup (
fix(policy): bind the refusal status to the diagnostic that carries it (
fix(onboard): narrow portable policy defaults (#9289)
fix(policy): restore Personal open web access (#9346)
ericksoa commentedon Aug 18, 2026
Maintainer decision: this comment supersedes the Portable default-policy acceptance text in #9206.
For every agent, the Personal profile requires personal-open-internet as its mandatory broad web transport. Every onboarding entry point, including fresh Portable onboarding, must select and enforce Personal when it uses the Personal profile. This behavior must let any sandbox tool reach allowed public and private websites over ports 80 and 443 while preserving NemoClaw hard denials for unspecified, loopback, link-local, and metadata address classes and preserving non-web policy.
Accordingly, absent, empty, or whitespace-only NEMOCLAW_POLICY_PRESETS in fresh Portable onboarding no longer means exactly weather, public-reference, and github. It means Personal with no additional optional preset override. A nonblank list remains authoritative only for additional presets and cannot remove mandatory personal-open-internet. Resume preserves a recorded non-Personal tier; resumed Personal retains or repairs its mandatory preset.
This is the intended contract for #9346.
fix(policy): report the authoritative OpenShell policy result (#9206) (…