Skip to content

desk DC7: the machine's controls — session plane, policy, requests, RPCs, Resume (7.157.0) - #196

Merged
SSFSKIM merged 73 commits into
mainfrom
dc7-controls
Oct 15, 2026
Merged

SSFSKIM merged 73 commits into
mainfrom
dc7-controls

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Oct 15, 2026

Copy link
Copy Markdown
Owner

The desk's child DC7, "the machine's controls", is the daemon side of the session plane and the RPCs. The plan is docs/doperpowers/plans/2026-10-15-desk-dc7-controls.md. The composite spec is MAWS docs/doperpowers/specs/2026-10-15-desk-design.md on branch smns-erb, and its writer ruled on every contract question; the rulings are in the plan's Decision Log. Version 7.157.0, over main's 7.156.1.

What it adds

  • sminos_plane.py carries presence and DX4 subscriptions.
    • Presence comes from the engine's session records.
    • A subscription joins transcript rows with the bridge's stream in disk order, using DX5's seeded cut and row notices. It serves snapshots, rows, diff and step-end, and ends on a discontinuity.
    • When a stream reconnects, it sends null presence for every session that ended since a watermark the hub accepted.
  • sminos_policy.py and the sminos daemon policy verb hold the policy: read-only and the permission ceiling.
    • An unreadable policy file means read-only.
    • Read-only is enforced at deliver_next, the one point every delivery goes through.
  • sminos_requests.py and sminos_outcomes.py carry pending requests, settlements and delivery outcomes.
    • raised and settled carry codes, and the complete pending set is republished on every connect.
    • Outcomes are delivered, recorded, refused-read-only, uncertain or failed.
  • sminos_rpc.py carries the RPCs of composite §5.
    • Checks run in order: code, binding to this machine, the ledger, freshness, policy, the request's fit and digest, then the session's kind.
    • An at-most-once ledger fails closed when it can't be read. After a restart, an interrupted RPC is reconciled from its action's own trace.
    • RPCs execute through the bridge or through sminos.
    • Resume is attributed to its own launch.
  • Bridge. Two additive changes, made after DC2 closed: raised.toolUseId for the ask mod's dialog, and who-won fields on the bridge's 409 refusals.
  • CLAUDE.md's skills/ row is updated, and docs/doperpowers/TECH-DEBT.md records the residue.

Validation Evidence

Claim Command Output
The sminos suites pass on the final head (load 110–160) tests/sminos/run-sminos-tests.sh at da98a3ff 2 of 1742 assertions FAILED. The first is "the say lands within two seconds", the git-mirror timing flake in TECH-DEBT.md; it also fails on main. The second is "the terminal won, as a field", a race in DC7's own assertion, fixed in d7bac20e: tests/sminos/test-bridge-requests.sh then printed all 75 bridge request assertions passed.
The mods suite passes tests/mods/run-mods-tests.sh 298 pass, 0 fail, ask search: all checks passed
The session plane, policy, requests and RPCs pass their own suites python3 tests/sminos/test_session_plane.py, test_policy_requests.py, test_rpcs.py 63/63, 28/28, 45/45 on the stand-in (fixer's run on da98a3ff)
G1–G4 hold against DC3's local hub DESK_HUB=http://127.0.0.1:<port> with the Uplink classes, hub at MAWS 349f2512 17/17. Earlier: M1 7/7 at a190a6d8, test_rpcs.py 30/30 at 01ba7519
Resume works against the real engine python3 tests/mods/live-resume-check.py (claude 2.1.301, temporary HOME) 5/5. The launch's job is the same as the session holder's.
Reviews per-milestone task reviews; final doperpowers:reviewer-high over ef55e89e..6ee5293c Every milestone clean after its fix waves. The final review found four P2 defects; all are fixed (3e89aa1e, 5dfa5150, da98a3ff) and its re-review verdict is "correct".

These Resume behaviours are proven only against a stand-in for claude, not live: two Resumes at once, delivery after Resume, claim reconciliation, and the seat cases.

Unresolved Review Findings

These are left open on purpose; each is logged in docs/doperpowers/TECH-DEBT.md.

  • The RPC ledger, repaired at runtime, restores no compact ids (sminos_rpc.py). A compaction already queued is then relayed with rpc: null. Left because it only affects display and needs a ledger unreadable at start.
  • A non-OSError from the claim write would leave that RPC unanswered (Rpcs.run()). Left because nothing can raise it today: the claim holds only strings and numbers.
  • A partial model change races a CLI change made between its live read and its send. Accepted: the bridge's whole-pair model verb cannot close it (plan Decision Log).

Residue

  • The sminos suites' fixed-sleep timing assertions. Under load above about 150 they fail intermittently: the git-mirror 2 s bound, the bridge window cases, the uplink tick loop. TECH-DEBT.md proposes event-driven waits, which is worth its own ticket once the CI-opt move to GitHub-hosted runners lands.
  • Resume's stand-in-only cases. Two Resumes at once, delivery after Resume, and claim reconciliation have no live-engine proof. A live walk at recomposition would close it.

# Conflicts:
#	tests/sminos/run-sminos-tests.sh
…s, and DX4 subscriptions joining the transcript with the bridge's stream in one order (DX5's agreed cut and notices), served on the uplink's stream
…d8): notices trail the flush, a row past the cut is released by its own notice, a later row's, or 2 s; bridge probes leave the uplink's thread; a pid seen dead is checked anew
…ocal hub too (DESK_HUB names its stand-in for Access): enrolled through its code, subscribed as a browser over DX3
… end, from DX5's step end or the turn's end cutting it off, relayed after its block-rows, by scope
…o a pid reused between two polls, alive at both, is found out within that bound
…ing) governs delivery at deliver_next; requests and settlements reach the hub as DX4 raised/settled with codes, the complete pending set on every connect; delivery outcomes of outside-origin events as DX4 delivery
…d terminal session reported recorded once and kept owed, delivered after it is back; uncertain outcome; raised carries agentId and truncated); the pending set waits for the bridges' snapshots; every unseen settlement relayed once, kept across restarts and never dropped by the outbox cap; an outcome not written leaves the event owed
…der the session's delivery lock, so it never lands after a delivered; a raise the outbox cap drops owes the complete set on the open stream
…s seeded cut), a 503 is retried within the reconnect window; the scripted endpoint matches the real child, and every engine case runs against sminos bridge too; M2's request tests post under the hello's nonce and send the mod's first resync
…ional spawn seat waits; model changes serialized per session; by is the member; every compaction relayed; a bridgeless steer to an idle session is idle
…t answered, never on a stale kept file; unknown after a lost answer
…nowhere here, a copy stopped and failed copy-started; the daemon sweeps the bridge's files of ended sessions; the scripted endpoint applies a resync's streaming
…bad-shape before the claim (composite dd908dfa); Resume's live check against the engine
…signature unchanged (the tests that stand in for it)
… dialog belongs to (composite 43a27604); the dialog's own tool call and result are not posted; the daemon carries it into DX4 raised
…s own launch only, and is done only once its job's process holds the session; the sweep keeps a freshly kept file; an ambiguous ask pairing names no call; the bridge-requests load flake in TECH-DEBT
…r the launch's evidence and checks its attribution; test_rpcs runs its call path against the stand-in
…ed terminal session from outside is settled refused-read-only under its delivery lock, never delivered once the session is back
… machine's membership within a week as not running, so one that ended while the stream was down is not left present at the hub
…ntil the compaction ends, so one run after a restart still carries the nonce; an HTTP read failure at the bridge calls, and any breakage while planning, is a reported refusal, never an RPC left unanswered
…the last connect the hub took (a mark kept under daemon/, moved only once the POST carrying that presence is answered 200; none kept says every one), replacing the week's window
…epaired ledger, a claim write's non-OSError, the uplink tick-loop candidate flake)
…he watcher may settle first under load); TECH-DEBT corrected
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