Skip to content

sminos 1.13.0: MW3 scoped allows — the engine's suggestions raised, decide.scope - #398

Merged
SSFSKIM merged 1 commit into
mainfrom
desk-ctl-mw3
Oct 26, 2026
Merged

SSFSKIM merged 1 commit into
mainfrom
desk-ctl-mw3

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Oct 26, 2026 •

Copy link
Copy Markdown
Owner

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_suggestions go out verbatim as raised.suggestions, in the raise and in every resync. Two conditions apply:

  • The engine's input must be exactly the call the bridge's own tool.call hook 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 list must be within the hub's bound: at most 8 suggestions, each at most 2048 canonical UTF-8 bytes. A list past the bound is left out whole.

The mod hands the rules to the engine. A permission's allow carries updatedPermissions and no input, so the engine does not ask again. A plan's allow keeps its rawInput and 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 decide takes scope {suggestion, sha256, destination}. It resolves the scope against the request the bridge holds, before the claim:

  • another hash, or an index past the list, is not-pending ("the suggestions changed");
  • a type other than addRules/addDirectories, or a localSettings the suggestion did not name, is bad-shape.

raised_draft checks the bound again.

controls: decide.scope and decide.addDirectory are 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-gate from the worktree: shell-lint, repo-checks, sminos-mods, mods-types, sminos, issue-tracker, board-api and sminos-suites all PASS, then GREEN https://github.com/SSFSKIM/doperpowers/actions/runs/40306355552.

  • TDD. Each suite failed before the change and passes after it:

    Suite Before After
    Mod tests 530 pass / 6 fail 536 / 0
    test-bridge-requests.sh 8 of 87 … FAILED all 87 … passed
    test_rpcs.py -k test_m3_ FAILED (failures=21) OK
    test_policy_requests.py -k suggestions KeyError OK
  • The tests the MW names:

    • A guard restored the call: nothing it restored reaches raised or a resync (bridge.test.ts, the guard describe).
    • The bound, both sides: 8×2048 bytes is carried; 9 suggestions or 2049 bytes is left out (mod). 9 rules is a 400 (child). raised_draft keeps 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) and f2 --guard standin. Setup:

    • env -i, with a fresh HOME, CLAUDE_CONFIG_DIR and SMINOS_HOME under /private/tmp;
    • a throwaway git checkout as the working directory;
    • a recording stub behind ANTHROPIC_BASE_URL (dummy key, zero inference);
    • the ask rule Bash(touch *);
    • decisions made by the daemon's own check_digest and decide.

    Results:

    • session: touch s.txt && mkdir -p sdir was raised with the engine's addRules [Bash "mkdir -p sdir"]. The scope {0, session} handed the engine [{addRules…, destination: session}]. The call ran, the next mkdir -p sdir ran unasked, and no settings file was written.
    • localSettings: the call ran. work/.claude/settings.local.json went from absent to {"permissions":{"allow":["Bash(mkdir -p ldir)"]}}, and nothing else was written.
    • addDirectories: the mkdir outside ran on {0, session}, and a Read of that directory then ran unasked (it was raised before).
    • guard: the engine's suggestion carried the restored fake value. The raise had no suggestions. After killing the child, the respawned child's request route and snapshot had neither suggestions nor the value. leak: in_stream, in_requests_route, in_snapshot and in_sminos_home were 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)

…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)
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-26T10:35:26.347319Z 2fecc27 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@SSFSKIM
SSFSKIM merged commit a3fa058 into main Oct 26, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant