fix(permissions): pop committed sandbox.enabled instead of clearing it in place#408
Merged
aleskalfas merged 2 commits intoJun 30, 2026
Merged
Conversation
…t in place sandbox_disable and the ADR-032 relocation pass cleared a drifted committed sandbox.enabled by setting it to false in place, leaving redundant tracked residue in repos that commit settings.json. Both now pop the key via a shared helper (also removing a then-empty sandbox block), completing the ADR-032 per-machine relocation; the authoritative enabled write to settings.local.json is unchanged. Closes #406. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…ed residue fix Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Owner
Author
|
Reviewer agent (local, reviewer): APPROVED Findings (criteria grounded in the pm capability schemas / decisions):
Warnings (non-blocking):
Verdict follows mechanically from the severity model ( |
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.
What
sandbox_disableand the ADR-032 relocation pass cleared a drifted committedsandbox.enabledby setting it tofalsein place, leaving redundant tracked residue in repos that commitsettings.json. Both now pop the key via a shared_strip_committed_sandbox_enabledhelper (also removing a then-emptysandboxblock), completing the ADR-032 per-machine relocation. The authoritativeenabledwrite tosettings.local.jsonis unchanged.Why
Per ADR-029/ADR-032 the
enabledscalar is per-machine and belongs only in the gitignoredsettings.local.json. Setting committedenabledtofalse(rather than removing it) left tracked drift that made it look like the sandbox switch lived in the committed file. Runtime was already correct (local wins the scalar); this removes the confusing committed residue. Surfaced investigating whysetup autonomyappeared to disable the sandbox insettings.json.Doc impact
None — behaviour brought into line with the existing ADR-029/ADR-032 contract.
Surface / version
Patch — the committed
settings.jsonartifact changes (theenabledkey is removed rather than leftfalse), observable to adopters who track it..pkit/VERSIONbumped 1.131.0 -> 1.131.1 per PRJ-002. No migration owed: the relocation pass self-heals drifted state idempotently on next setup.Verification
Closes #406.