Repository navigation
Conversation
…ts enrollment's pins (P5 O10 M2) The org's chain from its genesis, verified as one run (verifyGenesis, then advanceHead) and anchored to the pins the enrollment code named: the genesis names the pinned recovery key, and some state of the run carries a valid signature by a pinned root key, so a hub can't hand a new machine an org it made up around the owner's public keys. Answers every transition that authorized a state of the run, verifyRewind's accepted set from the first sync on. Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
… M2) src/endpoint/ with its entry (createEndpoint, enrollDelegated) against EndpointServices, O2's DaemonServices field for field. Its state directory (Interfaces §E) is checked private at start and written atomically; the machine key and the grant ledger are present together or moved aside. Attended enrollment (the v2 code as the CLI's secret, the pairing MAC, busy and Access's 401 retried within their budgets, --replace keeping the ref and the grants in force) and delegated enrollment (the machine's own certificate under its delegation). The org state: the first sync anchored to the pins, successors adopted serially and only once on disk, forks and rollbacks refused, root transitions and a recovery's rewind, the 30-day chain window and backstop. The policy, the grant ledger's intake, status() with nothing a remote caller mustn't read, and mawsd endpoint's enroll, keys, status, revoke, grant, policy and legacy retire. src/shared/host/private-path.ts to O2's interface (O2 imports it or merges with it). The module's lint boundary, its typecheck config (tsconfig.endpoint.json) and the root's workspace links to org-protocol and desk-hub. Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
…suites that drive a child process (P5 O10 M2) Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
…config.endpoint.json retired (P5 O10 M2) M9 gave tsconfig.node.json the package's sources, its Node WebCrypto type names and rewriteRelativeImportExtensions, so the endpoint and its suites are typed there too: the node project lists src/endpoint, desk-hub's protocol module and the deploy and fake-machine files the local-hub harness imports. proof.ts's Cleanup.signal names its type, which the composite project's declaration check needs (TS4029). Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
…ery (M2 fold) Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
…mit, grant high-water and serialized intake, request deadlines (P5 O10 M2) advanceHead takes the verifier's accepted transitions and holds forward adoption to verifyRewind's issued rule, so a rewind can't hand an older transition's root back. The chain window moves into org.json, one commit with its head. A recovery whose base aged out of the window takes the delivered base its first state's prev names. A re-enrollment under the same pins refuses another org from the hub. grants.json keeps each member's highest version; intake and enrollment's writes run in the org view's queue; start re-reads the ledger against the head on disk. Every hub request has a deadline over headers and body; --wait is checked before any side effect. Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
…grant high-water, forward replay barrier, deadlines) Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
…rsion (P5 O10 M2 review) A root transition binds no base, so the first state's prev authenticated nothing: a delivered base under another recovery key let its own root sign the successor. org.json now keeps the hash of every adopted state by version, committed with the head, and a base from a delivery is taken only when it hashes to the recorded one. Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
… taken as master has them, M2's copy dropped Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
… its version (M2 review fold) Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
SSFSKIM
added a commit
that referenced
this pull request
Oct 27, 2026
…dopted hashes, recovery by delivery only, grants' high-water, org.json's committed hashes Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
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.
P5 O10 M2: the endpoint module,
src/endpoint/. It has its entry (createEndpoint(), O2'sEndpointModuleshape), a private state directory (atomic writes; mode, owner and symlink checks; the machine key and grant ledger together or neither), attended enrollment (smns-enroll-v2.) and delegated enrollment (enrollDelegated) against the Registry. It also has the org-state sync: successors, transitions and recovery rewinds verified against the pins, a durable high-water mark, the catch-up window kept inorg.json, and the 30-day backstop. And the policy, the CLI (enroll,keys,status,revoke,grant,policy) and a redactedstatus(). Everything runs against fake services and desk-hub's local runner;mawsdbinds it in M10.Spec:
docs/doperpowers/plans/2026-10-27-p5-o10-endpoint.md, M2 (Progress ticked; the Decision Log records M2 as built and the review's consequences).Validation Evidence
scripts/ci-gate.sh <wt> --gates static,unit,probes --class1a pool, run 40505278235); the head adds one docs-only commit (the Progress tick). Earlier runs were green too: e053d2b (run 40498759192) and ae1b173 (run 40502906559).test/endpoint/enroll.test.tsspawns desk-hub's local runner (apps/desk-hub/local/run.ts,wrangler dev, local only) in the unit job'snode-timingproject. It passed on the Linux pool runner: 5 tests in 3.8 s in run 40498759192.src/shared/host/private-path.test.ts10, org-protocol 140 (advance-head and pinned-chain included);pnpm typecheckand eslint are clean.--waitwas not validated.For the architect
org-protocolanddesk-hub(workspace:*), with the matchingpnpm-lock.yamlchange. electron-vite bundles them; electron-builder never packs them.apps/org-protocol: two changes.verifyPinnedChainanchors a machine's first sync to its enrollment's pins: the chain verifies from its genesis, soacceptedTransitionsis complete.advanceHeadtakes an optionalacceptedset and holds forward transitions toverifyRewind's replay barrier.advance-head.test.ts,pinned-chain.test.ts) and no vectors.mawsd endpoint revoke, or M7'sendpoint.statefrom an admin's channel. It never comes from the hub. A forged head is ahead of anything the hub can page from: the hub accepts transitions only from its own head and serves?since=after the asker's version, and the handshake's pages start above the receiver's head too. This is recorded in the spec's Decision Log.src/shared/host/private-path.tsis master's (O2's P5 seam: src/shared/host/private-path.ts (O2 and O10) #224), taken as is; M2's own copy was dropped. M2's own socket and state entries keep their own checks (src/endpoint/state/files.ts), and they converge with O2'ssrc/shared/host/private-listen.tswhen O2 lands it.Outside
src/endpoint/andtest/endpoint/apps/org-protocol/src/{org-view,org-state}.tsand two tests (above).package.jsonandpnpm-lock.yaml(above).tsconfig.node.json: the module is typed in the node project beside M9's org-protocol path. desk-hub's protocol and the local-hub harness's deploy and fake-machine files are listed file by file, since the project is composite.eslint.config.js: the module's lint boundary. Nothing outsidesrc/endpoint/importssrc/endpoint/**exceptindex.ts, and there is a block fortest/ande2e/.vitest.config.ts: the Node project takessrc/endpoint/**andtest/endpoint/**, withenroll.test.tsinnode-timing.apps/desk-hub/deploy/proof.ts: an explicitAbortSignalannotation (TS4029 under the composite project). Behaviour is unchanged.Residue
none
Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)