Skip to content

P5 O10 M5: authorization — the offer table, grades, by-effect rules, grants, policy and classes - #233

Merged
SSFSKIM merged 6 commits into
masterfrom
p5-o10-m5
Oct 27, 2026
Merged

SSFSKIM merged 6 commits into
masterfrom
p5-o10-m5

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Oct 27, 2026

Copy link
Copy Markdown
Owner

P5 O10 M5 adds the endpoint's authorization. authorize(request, who, now) decides every remote call, act, query and sub before anything runs. It reads the offer table (offers.ts, Interfaces §G; anything else is not-offered), O1's declared grades (an undeclared name is ungraded), and the by-effect rules (by-effect.ts, with one row or an explicit no-rule for every by-effect command; a test fails if the registry gains one the table lacks). It also reads the session's rank (owners, shares and access, through RecordSource), the machine's rights and grants, the policy (read-only, the spawn ceiling, known checkouts and the spawn args allow-list), step-up, and the device's class. web-cards may only answer or approve what is pending, on sessions its member owns, with a WebAuthn assertion. The channel's routes are put behind it (gate.ts); M7 and M8 attach the executors.

Spec: docs/doperpowers/plans/2026-10-27-p5-o10-endpoint.md, M5. Progress is ticked, and the Decision Log records M5 as built and its review fixes.

Validation Evidence

  • Class 1a gate GREEN on the head (scripts/ci-gate.sh <wt> --gates static,unit,probes --class1a pool, run 40566041692). Earlier, a290062 was green (run 40561347007). 7e90185 was red (run 40564246177) on M4's direct-listener.test.ts: the test's loopback port, once freed, could be handed to another server. 02b8664 fixes that test (see below).
  • Focused suites, one file at a time: grades 31 (every request through a real RL2 channel to an enrolled endpoint, with fake services and sources), by-effect 12, plus the M2–M4 endpoint suites. tsc -p tsconfig.node.json and eslint are clean.
  • doperpowers:reviewer-high:
    • Round 1 found three Important issues. A head that moved during the async reads still granted the request. A web-cards query could read a native-only operation's outcome. And a question-shaped answer's by-effect read revealed whether a private session existed.
    • All three are fixed in 7e90185. A decision is now taken again when what it read moved, standing at the command's floor comes before any session read, and web-cards queries are held to the class.
    • Round 2: correct, no findings.

For the architect

  • A test fix to M4's landed code: test/endpoint/direct-listener.test.ts (02b8664). It now judges the server that was let go, not whatever server answers its freed port, so it no longer depends on loopback port reuse. Production is unchanged: server.close() closes the handle synchronously, and in probes 0/3000 and 0/400 dials reached a let-go server.
  • daemon.status, machine.identity and session.pendingItems stay ungraded, so they are refused remotely until their owners declare grades (O2, and M8 for session.pendingItems).
  • The settings ceiling reads $HOME/.claude/settings.json's defaultMode, as sminos does. Tests inject it.

Outside src/endpoint/ and test/endpoint/

  • The spec's living sections.

Residue

none

Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)

…rants, policy and classes, every request decided before it runs (P5 O10 M5)

Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
…ead moved, standing at the floor before any session read, a web-cards query held to its class

Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
…answers its freed port (O10 M4 rebind race)

Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
… recorded; M5 ticked (reviewed clean)

Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 27, 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-27T19:12:52.828208Z ee60686 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 1750299 into master Oct 27, 2026
SSFSKIM added a commit that referenced this pull request Oct 27, 2026
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
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