Repository navigation
fix(policy): treat successful remove as done when base matches after stripping provider keys - #12111
cestercian wants to merge 1 commit into
Conversation
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: NVIDIA/NemoClaw/.coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 12 included reviews per hour; 11 remain after this review. 📝 WalkthroughWalkthrough
ChangesPolicy removal verification
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to Removal verification can accept provider-added entries while still detecting loss of an ordinary host entry. No actionable merge risk remains after normal checks. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
rsliter
left a comment
There was a problem hiding this comment.
Approved at exact head da1fc6d. The comparison now excludes only provider-composed provider* entries while preserving fail-closed detection for unrelated operator-policy loss. Verified 233 policy tests, the OpenShell 0.0.72 roundtrip, CLI build and typecheck, oxlint, and oxfmt. Security review found no new credential, authorization, injection, dependency, or data-exposure risk.
prekshivyas
left a comment
There was a problem hiding this comment.
commits are unverified
da1fc6d to
42bb8f8
Compare
|
@prekshivyas Re-signed the tip with my registered GPG key ( |
|
@prekshivyas head |
42bb8f8 to
0bbc372
Compare
) After policy set, OpenShell --base can re-include provider-composed _provider_* entries that NemoClaw must not submit. Treat those keys as outside the operator-owned document so a successful preset removal exits 0. Fixes NVIDIA#12048 Signed-off-by: Cestercian <[email protected]>
0bbc372 to
91d7616
Compare
|
@prekshivyas tip is 91d7616 now (Verified) and guardrails are green again after a rebase + test trim |
Compare requested policy with operator-owned readback using the existing provider-entry stripping boundary. Preset removal succeeds when only provider-composed entries differ; missing or changed operator-owned rules still fail verification. Replays #12111. Fixes #12048. Co-authored-by: Cestercian <[email protected]> Signed-off-by: Aaron Erickson <[email protected]>
|
Thank you @cestercian for reporting this and contributing the regression case. The fix has landed in #12983, with your contribution credited in the merged commit. The replacement uses the existing provider-entry filtering boundary while retaining strict verification of operator-owned rules, including the unrelated host-grant regression. CI passed, and the branch's Docker/Podman E2E comparison found no new regressions under the agreed do-no-harm rule. Closing this as delivered by #12983, which also resolves #12048. Thanks again! |
Summary
`policy remove` successfully removed a preset but then failed verification because OpenShell `--base` readback re-includes `provider*` entries. Compare documents after stripping provider-composed keys so a successful removal exits 0 when the operator-owned base matches.
Fixes #12048
Test plan
Summary by CodeRabbit