Repository navigation
Conversation
…citations reconciled), six-task plan Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…desk-hub into org-protocol encodeEnrollmentCodeV2, decodeEnrollmentCodeV2, EnrollmentCodeV2 and their validation move from the hub's identity file into apps/org-protocol/src/enrollment.ts, with private copies of the two helpers they read (checkHub, body), which the identity file keeps for its v1 codecs; the identity file re-exports the three under their names, so desk-hub/protocol's importers are unchanged. certificateViews, resolveMachine and machineRows move from deploy/admin-machines.ts into apps/org-protocol/src/machines.ts with CertView and the table's MachineRow; their hub-row input is the package-owned structural HubMachine, which the hub's MachineView satisfies. admin.ts imports all of them from org-protocol; admin-machines.ts keeps table. Bodies and outputs are unchanged: admin.test.ts, admin-verbs.test.ts and production-scripts.test.ts pass unchanged, and enrollment.test.ts pins the codec in the package. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… verifyGrant built on it grantProblems(state, certificates, body, signerKid, now?) names, as its own GrantProblem diagnostics, every problem verifyGrant would refuse an unsigned grant for but its signature: a body or certificates out of shape, unknown rights, another org, a member the state does not list, a contested machine, a machine neither listed nor certified, a machineKey that is not its current key, and a signer kid that is no step-up key of an owner's device (an admin's for 'org'), revoked or not. The problems come in verifyGrant's order. verifyGrant is now the record's shape, then the first problem read as its verdict, then the signature over the allowed step-up keys; its verdicts and their order are unchanged (the vector replay, the grant scenarios and attest.test.ts pass unchanged). records.test.ts proves it over the vectors' grants and one case per problem. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
The static gate's typecheck refused the spread of a body narrowed to never after its failed isGrant (records.ts:135, 'Spread types may only be created from object types'). The check moves into onlyRightsWrong(value: unknown), with no change in behaviour; records.test.ts passes 20/20. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…folded Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…rmed A draft whose rights are a sparse list (new Array(1)) passed isGrant, whose walk skips the hole, so grantProblems found nothing; canonicalize refuses the same body, so verifyGrant answered malformed and signing would throw. grantProblems now checks that the body canonicalizes, as isSigned does, so what passes it before Touch ID is exactly what can be signed. verifyGrant's verdicts are unchanged: it already refused such a record at isSigned. records.test.ts gains the case (red before, 21/21 after); vectors.test.ts and attest.test.ts pass unchanged. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…he dismissed duplication, folded Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…s, isHubOrigin the package's public hub check (the desk track's ask on Task 1) Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ledger (WIRE_MINOR 33): machine-owned and main-only, mawsd's machine.sock asking the door's endpoint.grants; a command of its own, since widening endpoint.local.call's name const is a wire major Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…rant ledger read back, members from the head with their grant or null and their high-water mark, a member's own entry or every member's for an owner (an admin for 'org'), judged as the answer goes; a list call on the machine with no sminos gate (its dispatch follows the master merge) Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…L §6.3, the architect's ruling) Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…items 3 and 4 Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…sAnswer, the step made as the answer goes; endpoint.ts injects it, the owners read under the head held then; grants-call.test.ts over a real channel (the desk's nine cases) Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…nature (the architect's Fork A, amending M6b's door rule): no act step-up, its device the head's once, verifyGrant against the held head and certificates before anything is handed on; call answers endpoint.grants as the machine's owners' member; everything else outside record.* still refused Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…refusal shapes) Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ot authentication (the grant's signature is the authority, so unknown-device there claims nothing); grants-call.test.ts: a web-cards device is refused class, its endpoint.grants call and a door grant whose act names it Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… a higher version replaces it or its signer's key is revoked (Decision Log, a grant's force doesn't depend on its signer's later standing) Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ses machine.add, machine.replace (the old key retired under its ref, owners kept), machine.owners and machine.drop (retired or revoked), refusing certified-machine and this-machine, the rest the package's; member.remove of a machine's owner names it (Change the machine's owners first). enroll.ts (new, built as pairing.ts): admin-only, the pre-mint name checks, POST /api/enrollments {ttl_s: 3600, machine?}, a v2 code with 32 random bytes k, the key polled every 5 s and judged by verifyEnrollmentMac, the candidate frozen (key-changed), machineNames checked at the candidate and at approval, approval signed with live through the signer. hub-client: mintEnrollment, enrollmentKey, deleteMachine. The session: org.enroll.*, a drop's hub row deleted after signing and org.drop.retry, machine.add/replace only through an enrollment, the enrollment joined by close() and ended by sign-out; the view's key ids and certified machines
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…e the remote module that reaches no machine, hub-client's DELETE of a dropped machine's Registry row, counted (a second occurrence is an offender) Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…igner settles that very state (now, later, or after a relaunch); a discard or a fork deletes nothing; a failed delete stays on Retry Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…, not the attempt generation, so a cancelled unrelated attempt keeps the sign-in's Retry Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… slot; the delete fence is the sign-in) folded into the Decision Log Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ame again, on every path (the settlement, its queue, Retry), so a re-enrolled machine's credential is never revoked Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…kept or sent); curable refusals final only once the machine's head reaches the signing head, kept as headVersion, resent behind it with a backoff; permanent verdicts final; a pending grant for a dead key is missing after re-enrollment and no-change reads the current key; a storage failure refused as storage Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… refused (not-listed, as verifyGrant answers an old key, or not-held) is still missing; no-change reads the key from the context taken after the ledger read Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…s's head push has the machine answer the signing head or later, on the line the app is still on; every verdict final; the door sends at once; delivery uses the kept headVersion Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…un's own adoption, so no endpoint write outlives the test Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…try for the member brings the machine to the held head and reads again (set and re-grant); the door answers ledger-unread, its endpoint not having seen the member yet; the fixture's ledger projects the machine's own head Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…hen grant, every verdict final, the ledger read brought current); §C's grants.json gains headVersion Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…rant and re-grant sheets; the change sheet's machine fields; the e2e seed's machines, grants and enrollment Enroll, Re-enroll, Owners and Drop while this Mac may sign (an admin's Mac that can't is told so); Grant… on mayGrant (Fork B); a certified machine's owners its delegation's; no Drop for this Mac's own. Each row's rights from org.grants.view, read when it or a sheet of its opens, at org.grants.changed and at a sign-in change, never at org.changed; Not yet on <machine>, a refusal with Sign again…, as of the last answer, the missing grants with Re-grant…, a damaged record with nothing to sign. The enrollment sheet: a name or Re-enroll <machine>, the code once with mawsd enroll's hidden-prompt line, the wait, then name, ref and key id to compare; every refusal and end its own line. Save and Re-grant say what they wait on while main brings the machine up to date. A dropped machine's hub row left behind with Retry; a removal its ownership refuses links to the machine's row. page-fixture.ts seeds each machine's grants. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…eads Close); a row shows nothing read under the last sign-in once another stands; the row a refused removal leads to is marked only while it holds the focus Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ign-in (observed, latched, fenced; the expiry shown when reopened); a change sheet's answer reaches the page only while open under its sign-in; the owners list scrolls; true copy for stale, expired, pending and ledger-unread, plain lines for a machine's grant verdicts; the grant sheet photographed saving Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…eneration}, null for a start whose token is being minted); main cancels only that run or that start and otherwise answers not-current, so no window cancels a run it never owned; the enrollment sheet sends its latched generation Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ed apart from its run, so an ended sheet offers no start under a later sign-in; a start that sees a newer run not its own ends (another enrollment is under way), cancels nothing and never shows a late code Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…n: main records the asking client on a start and carries it onto the run it makes, so a null ends only that window's mint or its run while still current; a busy-refused start records nothing Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ncel in the Decision Log Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…chine enrolled from the app over a real endpoint, B granted on it behind a head push and on this Mac's own through the local door, the lost ledger moved aside, re-enrolled and re-granted above the mark, the owners changed and the machine dropped through the hub's keyed delete; the chain from genesis at 14 states and 17 confirmations Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…after the confirmation and before the grant, the ledger read's push before it asserted apart (each prompt records the link's acts so far); the machine's withheld reads counted and waited on in place of a fixed 300 ms; case 9 no longer pins the status's stale-state wording Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…sidue in the Decision Log Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…new confirmation: each send writes the grant sending first, only while it is still the latest of its pair and pending; outcomes are the record's, written after a sign-out and joined by a close; an unwritten outcome holds its grant and is written again; a grant left sending across a restart is refused outcome-unknown Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…t read and sends no rights only under Withdraw, drops a person no longer offered, bounds the re-grant list; a start acts on no generation before its own answer; a ticked owner who leaves mid-edit stays listed; outcome-unknown reads that this Mac stopped; refusal lines checked apart from their detail; two fixed sleeps joined Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…y, with Retry, in its row and its grant and re-grant sheets, never 'Reading…' forever; nothing signs until a read has answered Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ration of the run that start made, so its sheet can own exactly that run Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…ts start's answer names, ignoring every other generation; one already gone or replaced when the answer comes shows ended, with no code, no Approve and nothing to cancel; the name match is gone Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…(grants' write-ahead and finality, the renderer's loading and recipients, enrollment bound to its start's generation); §C's grants.json gains sending Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
… section; M4b ticked; M7b's live check passed (P5 Decision Log 257) Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Codex Review Summary: ✅ CompletedThis 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
Nov 8, 2026
…s, push-then-grant with final verdicts; live use needs wire 33 and a hub carrying #538; seven residue rows; the UX copy ticket (board 540) 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 O8 M4b: machines and their rights. Built to
docs/doperpowers/plans/2026-10-28-p5-o8-org-interface.md§M4b and §R, under the architect's rulings recorded in that spec's Decision Log. With this PR, the Org page's Machines group is no longer read-only. Next in O8's plan is M4c, delegations.Live use needs two things this PR doesn't do:
endpoint.local.grants, the local door's read of the grant ledger, is atWIRE_MINOR33. The machines run 63443a3 (wire 3.32).DELETE /api/machines/<name>?ref=&pub=. Staging is the desk track's to deploy, and production is the owner's. Until then the hub ignores the parameters, and the app's own guard is the only protection for a drop's hub row (residue below).What changes:
mawsd enrolland pastes the code at its hidden prompt, adding--replacefor a machine still enrolled. The expiry shows throughout.kand frozen at its first good answer, then shows name, ref and key id to compare.machine.addormachine.replacebehind one Touch ID.generation. A cancel names that run, or, withnull, only the sender's own start.grantProblemsadmits as signer: an owner, or an admin for an'org'machine. This doesn't depend onmaySign; Enroll, Owners and Drop still do (Fork B).sendingprecedes every act, outcomes belong to the record across sign-out and close, and an entry leftsendingacross a restart reads "This Mac stopped before 's answer came: sign again".Underneath:
grantProblemsis the eligibility half ofverifyGrant, andverifyGrantis now built on it, with its verdicts unchanged.endpoint.grants: a machine-targeted list call answering{members: [{member, grant | null, highWater}]}. A caller gets their own entry; an owner, or an admin of an'org'machine, gets everyone's.endpoint.granton the grant's own signature, verified against the held head before dispatch, with no act step-up. It answersendpoint.grantsas the machine's owners. Everything else outsiderecord.*stays refused.endpoint.local.grantsatWIRE_MINOR33, plus theorg.enroll.*,org.drop.retryandorg.grants.*commands and theorg.grants.changedevent.RecordSigner(grant domain only, one confirmation, thenlive, thensignRecord).grants.ts: the issued record, the version above both marks,grantProblemsbefore Touch ID andverifyGrantafter, the keep fenced on head identity, push-then-grant, verdict finality and the missing-grant judge.grants-store.ts(grants.json, fail-closed behind registration's mark).enroll.ts, the four machine edits, and the hub client's mint, key read, delete and row read.deliveries.ts'createHeadPush, sharing M3's planner.What changed
enrollment.ts,machines.ts(new),records.ts(grantProblems),index.ts; testsenrollment.test.tsandrecords.test.ts(new).identity.ts,admin.ts,admin-machines.ts).grants.ts,offers.ts,calls.ts,endpoint.ts(the injection),local-door.ts; testtest/endpoint/grants-call.test.ts(new).endpoint-seam.ts,front.tsanddaemon.ts(endpoint.local.grants), the endpoint and org schemas, routes, names, and the wire manifest at 33.src/main/org/:edits.ts,enroll.ts(new),grants.ts(new),grants-store.ts(new),hub-client.ts,files.ts,deliveries.ts,signer.ts,view.ts,org-session.ts,register.ts,page-fixture.ts;src/main/device/step-up.tsandprompt-text.ts(new);app.ts;settings-tab/org/MachinesGroup.tsx,MachineRow.tsx(new),EnrollSheet.tsx(new),GrantSheet.tsx(new),ChangeSheet.tsx,PeopleGroup.tsx,parts.tsx, andsettings-tab/copy.ts.e2e/org-page.spec.ts(seed and screenshots);test/org/org-page.local.test.ts(cases 7–11 and Fork A's).Commits the desk track reviewed:
grantProblems), b2ddf6b (a type fix) and 3112033 (review I1), with the comment e07f9f4. READY: a differential over 14 grant vectors and 416 combinations matched.endpoint.grants' projection and offer row): desk 674 READY.test/endpoint/grants-call.test.ts's 100 ms wait became a join of B's own answer, in 3da2228. The join confirms the endpoint finished; it doesn't make the check stricter, since B's channel is already closed by then.Validation Evidence
Final gate, at 01450ac (tree cd2e48b63). Commit 2971fb9, after it, changes only the spec and the report.
Run 1,
scripts/ci-gate.sh <wt> --gates all --evidence --runner macos: 42526195244.gh run rerun --failed). The failure wasapps/desk-web/e2e/command.spec.ts:66(A2,/rename), a known flake and its second sighting in the friction tracker (MAWS/live/desk-web-command-spec-rename-renames-its-own-locator-flake.md):getByRole('textbox', { name: 'Message <alias>' }), while the box's accessible name isMessage ${title || alias}(Composer.tsx:245,projection.ts:50).toHaveValue('')resolves, the box is renamed and the locator finds nothing.apps/desk-web, and desk-web's only org-protocol imports are types M4b doesn't touch.name: /^Message /) in a separate test-only PR after this lands.Run 2,
--gates e2e:desk-web-hub,e2e:remote-latency-check --evidence --runner macos, same commit: 42526210394. e2e:desk-web-hub, e2e:remote-latency-check, e2e:cross-build and plan all passed.alldoesn't include those two groups, and M4b reaches both.The architect runs the flaky count and the tree check on both runs.
The local suite:
test/org/org-page.local.test.ts, 12/12 in unit 3/4, passed on three CI attempts at f098db1 (run 42515095022: 4114, 4223 and 4334 ms) and three runs at 63409da (42508559657, 42513559429, 42513571450).Screenshots: the e2e:settings evidence at fccfe68 (42502411003), 3da2228 (42521609003) and 69b23d6 (42523055883) covers machines, the grant sheet, the grant sheet saving, the re-grant sheet and the enroll sheet. Each was reviewed by the executor and the task reviewer.
Reviews:
apps/andsrc/endpointhunk, as above;Unresolved Review Findings
sendinguntil restart (reviewer-high, P2 Minor,src/main/org/grants.ts:407-409). If the write-ahead's rename lands but its directory sync then fails, the entry readssendingwith no act sent. The row says pending, and setting the same rights again answersno-changeuntil the next start turns the entry intooutcome-unknown. It fails closed and grants nothing, so it was left. The way out is to reconcile asendingentry this process knows it never sent, or to surface it as a recoverablestoragestate.GrantSheet.tsx:167). When every member owns the machine, a refused read shows only "Everyone in the org owns this machine", with no read line and no Retry. Nothing can be signed, and the row's Retry shows. This goes to the UX ticket.Residue
revokeKeyedform that requires the row to have no posted key.hubRowsLeftis memory-only once a drop has settled, so a relaunch loses its Retry.deployment admin machine dropstill clears the row.GET /api/machinesread before the mint, and the redeem meets the hub's own rule instead.src/endpointchange carrying the judging head's version on the refusal, which makes the door's lag refusal resend instead of asking again.outcome-unknownand asks the person to sign again. That is safe and rare.refusing: 'stale-state'. A person sees it inmawsd endpoint statusandmawsd statusafter the startup move-aside, although nothing is refused. It is owned by the MAWS architect as O8's, with the desk track reviewing the endpoint change. The way out is forstatus.tsto reportrefusingonly while a refusal applies, with the unenrolled state outranking the startup flag, pinned by a status unit test. Tracker, not UX.Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)