Repository navigation
Conversation
- A machine posts its own key and ref with the pairing MAC once redeemed
(POST /machine/key); the enrolling member fetches it
(GET /api/enrollments/<id>/key); /api/machines shows it listed once the
head lists that key. The v2 code smns-enroll-v2. carries roots, the
recovery key and k, no org key. An active machine re-enrolls in place
under a token that names it.
- Provisioning keys re-issued as delegations (delegationFor, null terms
mapped to numbers) list the head's pub and owners. A VM posts its
delegation-signed certificate (POST /machine/cert) at its counted use,
admitted only on a clean verifyMachineCert and never when it would
contest a live one (409 contested with the conflicts and remedies);
retirements by the delegation's key are kept; both are served beside
the state.
- Listings and endpoint records are verified against the head and kept at
their newest (Registry.storeListing / storeEndpoint for M6), served at
/api/listings and /api/machines/<ref or name>/endpoint.
- Push subscriptions may bind to a device; Registry.notify sends
{project, machine, session, kind} to the listed owners' devices alone;
DX2's push goes to listed owners when a listing exists.
- fake-machine/org.ts: the v2 machine and the delegated VM.
Sminos-Session: desk-sminos-orchestrator#b4948247 (doperpowers on macbook)
…push by machine - A listing's revision and an endpoint record's issued are checked inside the commit's transaction, so concurrent submissions can't overwrite a newer record with an older one. - Re-enrollment in place fences the old credential at its Machine first and changes nothing until that succeeds (503 fence-failed, redeem again). - A re-enrollment that lapses before its machine connects refuses the new credential and orphans its token; the machine keeps its row and history. - Registry.push takes the session's machine (additive, from Project): only that machine's listing directs it, and a listed session gets the v2 OwnerNotice alone; unlisted sessions and older Projects keep today's broadcast and payload. Sminos-Session: desk-sminos-orchestrator#b4948247 (doperpowers on macbook)
…utes M3's current() now guards every M4 change made for a member: the enrollment's key, a member-relayed certificate retirement, the listings and endpoint reads, and the push subscription's device binding. Machine posts (key, certificate, retirement) re-check that the resolved credential still holds its enrollment; the certificate and retirement paths re-check again in OrgRecords' synchronous commit step, after the verification awaits. The revoked holder in org-delegations names its prefix, as M3's RevokedKey now requires. The O11 document is M3's side. Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
…esis) Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
A re-enrollment in place now expires the earlier pending one it displaces, in the same transaction that hands the machine over. A pending token sent again rotates only while the machine still holds its enrollment, and a mint checks that before it deletes the name's tokens: a stale redemption no longer clears or deletes the newer credential. 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)
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. |
SSFSKIM
added a commit
that referenced
this pull request
Oct 27, 2026
…sioning code a delegated VM needs; tracker row for registry.ts's size Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
SSFSKIM
added a commit
that referenced
this pull request
Oct 27, 2026
Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers 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 O11 M4: enrollment, delegations, listings and owner-only push. The plan is
docs/doperpowers/plans/2026-10-27-p5-o11-hub-v2.md, milestone M4.What this lands
MAC(k, name ‖ machinePub ‖ ref ‖ tokenId)to/machine/key. Each enrollment takes one key: a different key answers409 key-posted.GET /api/enrollments/<id>/key.listedonce a state lists that key.listedis derived when it is read, not stored.smns-enroll-v2.carries{hub, token, roots, recoveryPub, machine?}and no org key.activemachine whose code names it.503 fence-failed, and the token stays open for a retry.usemust equal the enrollment's counted redemption, and a contested certificate is refused409 contestedwith its conflicts.(machine, session)at the highest revision and the newestissued, and served to members.Registry.pushtakes the uploading machine's name, so only that machine's listing of a session counts.OwnerNotice{project, machine, session, kind}.current(member). A machine's key, certificate and retirement re-check the newRegistry.enrolled(machine)(403 not-enrolled), before and inside the commit.Validation Evidence
c792a9c8b(static, unit, probes, e2e:desk-web): https://github.com/SSFSKIM/MAWS/actions/runs/40448228839For the architect's tech-debt tracker
apps/desk-hub/src/objects/registry.tsis 1,448 lines. Its enrollment and push paths are candidates to split out, asOrgChainandOrgRecordswere.For O14 and O10
smns-provision-v2.or an equivalent. The fake VM takes the key directly. O14 (devcloud) and O10 need such a code.Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)