Repository navigation
sminos 1.13.0: MW3 scoped allows — the engine's suggestions raised, decide.scope - #398
Merged
Merged
Conversation
…cope (1.13.0)
The bridge raises a permission request's `permission_suggestions` verbatim,
in the raise and every resync, when the engine's input is exactly the call
its own tool.call hook saw (canonical JSON, uncut) and the list is within
the hub's bound (8 suggestions, 2048 canonical UTF-8 bytes each); a guard
beneath that restored the call keeps them off. The decision POST admits
`updatedPermissions` on a permission's allow, which the mod hands the
engine (a plan keeps its rawInput). The daemon's decide takes a `scope`
{suggestion, sha256, destination}, resolved against the request the bridge
holds before the claim: another hash or index is not-pending, a type other
than addRules/addDirectories or a localSettings the suggestion did not name
is bad-shape; `raised_draft` applies the bound again. controls now carry
decide.scope and decide.addDirectory available.
Sminos-Session: desk-sminos-orchestrator#b4948247 (doperpowers on macbook)
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
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.
The machine half of the desk control surface's MW3, scoped allows, ships as sminos 1.13.0. The spec is MAWS
docs/doperpowers/specs/2026-10-22-desk-control-surface-design.md, Plan of Work, MW3. The hub half is SSFSKIM/MAWS#162.What it builds
The bridge raises the engine's suggestions. A permission request's
permission_suggestionsgo out verbatim asraised.suggestions, in the raise and in every resync. Two conditions apply:tool.callhook saw. The two must have equal RFC 8785 canonical JSON, and the input must not be cut. This keeps a value that a guard beneath restored (devcloud's secrets guard) off the desk.The mod hands the rules to the engine. A permission's allow carries
updatedPermissionsand no input, so the engine does not ask again. A plan's allow keeps itsrawInputand adds the rules.The child's decision POST accepts
updatedPermissions(a list of at most 8 objects) only on a permission's allow. It answers 400 on a question or a deny.The daemon's
decidetakesscope{suggestion, sha256, destination}. It resolves the scope against the request the bridge holds, before the claim:not-pending("the suggestions changed");addRules/addDirectories, or alocalSettingsthe suggestion did not name, isbad-shape.raised_draftchecks the bound again.controls:decide.scopeanddecide.addDirectoryare now available.Validation Evidence
Full machine suites, final tree:
SMINOS_PART=all sminos/tests/run-sminos-tests.sh:all 2416 assertions passed, exit 0.sminos/tests/mods/run.sh:Ran 536 tests across 7 files, 0 fail,ask search: all checks passed.tests/mods/typecheck.sh: exit 0.CI on the committed head,
ci-gatefrom the worktree: shell-lint, repo-checks, sminos-mods, mods-types, sminos, issue-tracker, board-api and sminos-suites all PASS, thenGREEN https://github.com/SSFSKIM/doperpowers/actions/runs/40306355552.TDD. Each suite failed before the change and passes after it:
test-bridge-requests.sh8 of 87 … FAILEDall 87 … passedtest_rpcs.py -k test_m3_FAILED (failures=21)OKtest_policy_requests.py -k suggestionsOKThe tests the MW names:
raisedor a resync (bridge.test.ts, the guard describe).raised_draftkeeps 8×2048 and drops 9 and 2049.Live check. Engine 2.1.310, run on this commit with
python3 -I live.py scoped f1(devcloud's real guard) andf2 --guard standin. Setup:env -i, with a fresh HOME, CLAUDE_CONFIG_DIR and SMINOS_HOME under /private/tmp;Bash(touch *);check_digestanddecide.Results:
touch s.txt && mkdir -p sdirwas raised with the engine'saddRules [Bash "mkdir -p sdir"]. The scope{0, session}handed the engine[{addRules…, destination: session}]. The call ran, the nextmkdir -p sdirran unasked, and no settings file was written.work/.claude/settings.local.jsonwent from absent to{"permissions":{"allow":["Bash(mkdir -p ldir)"]}}, and nothing else was written.mkdiroutside ran on{0, session}, and a Read of that directory then ran unasked (it was raised before).leak:in_stream,in_requests_route,in_snapshotandin_sminos_homewere all false. The stand-in guard (f2, cases g and g2) gave the same result.Evidence is in
/tmp/dsk-scripts/mw-wave/mw3-live/evidence/{f1,f2}/on the macbook.Sminos-Session: desk-sminos-orchestrator#b4948247 (doperpowers on macbook)