feat/machine-enrollment #60

Merged
xavier merged 6 commits from feat/machine-enrollment into dev 2026-11-18 19:13:46 +01:00
Owner
No description provided.
POST /machine/unregister {actor} joins the self-surface — the
machine's own leaving («machine self-unregister»,
agent-authentication.md), the rotate endpoint's shape byte-for-byte:
parameterless beyond the declaration (self-only is structural — the
incumbent digest keys the only record the call can address; no subject
parameter exists to name a foreign entry), the actor required,
grammar-checked, recorded in the audit row, never judged. The engine
is machineregistry.RemoveCurrent — one transaction, incumbent resolve
(vanished = E_UNKNOWN_TOKEN), the subject captured for the post-commit
row (subject the machine, actor the declaration, fact
machines/<subject>). The token dies with the record («token validity
is its registry record»); re-entry is a fresh console issuance. The
wire client gains the pair register consumes: MachineSelfView (the
proof-of-life read) and MachineUnregister; /machine/unregister joins
the mutating-exchange family (outcome-unknown on a broken answer).
The two protocol.Deps fakes gain the interface-satisfaction stubs.

Co-Authored-By: Xavier's assistant <assistant@gijoe88.com>
skuld machine (singular — the FR's spelling, the machine's OWN acts,
the vocabulary ruling's word) carries register + unregister;
skuld machines (plural) stays the console's administration, untouched.
register <base-url>: the candidate token by --token or stdin (the FR
rules flag-or-stdin — the old store verb's stdin-only shape predates
the ruling), the self-view proves life BEFORE any store write, a
rejected token is NOT stored (typed, nothing written), a verified
token lands keyed by the normalized origin; register adds no
server-side fact (reads append nothing). unregister <base-url>: the
incumbent resolves through the ADR-026 resolver (the E_TOKEN_CONFLICT
pin untouched), the self-view proves life (a dead incumbent answers
E_UNKNOWN_TOKEN and drops nothing — never guess), the wire act removes
the record, and ONLY a landed answer drops the stored entry in the
same act (the deletion round's asymmetry precedent); the actor
resolves --as > SKULD_AS, a usage refusal without one (never a forged
declaration). RECONCILIATION: skuld token store is REMOVED — subsumed
by machine register, no blind store remains; token list + token remove
stay (the local ledger and the remove-without-wire shape — the
crash-window remedy after an unregister whose answer was lost); every
help string referencing skuld token store swept to the new spelling.

Co-Authored-By: Xavier's assistant <assistant@gijoe88.com>
machineEnrollComposition owns the client half's object graph — the
wire client and the token store: register normalizes the origin
(usage class), verifies against the live server, stores on proof of
life; unregister resolves the incumbent (conflict/none typed, nothing
sent), proves life, unregisters, drops the entry on a landed answer
only. The token composition keeps list/remove alone. Boot: machine
joins the project-less dispatch; the resolver-consumption messages
(serverstore, serverinit) swept to the register spelling.

Co-Authored-By: Xavier's assistant <assistant@gijoe88.com>
The filed corner folds in (machine-rotate-outcome-unknown, yxva54):
POST /machine/rotate rides isMutatingExchange beside its
/machine/unregister sibling — a broken rotation may have replaced the
incumbent (the old value dead, the fresh value issued unreported; the
record untouched, the machine alive), and the resolution is a re-read:
the self-view answering, the standing subject resolving which world
holds — never a guess, never a second report of one failure. The
family's doc comments name the rotation path (the header's
commit-as-example wording widened to the mutating family). The
vehicle: MachineRotateCurrent, the wire self-rotation's client call —
token-store.md's ruled rotate-and-store wrapper's wire half. The pin:
a landed-but-lost rotation (the handler swaps the value, the answer
dies mid-flight by hijack) carries OutcomeUnknown, the outcome-unknown
phrasing and never the read's known-outcome wording; the self-view
re-read resolves once — the fresh value's subject standing, the dead
incumbent answering the typed E_UNKNOWN_TOKEN, never a second network
failure.

Co-Authored-By: Xavier's assistant <assistant@gijoe88.com>
RemoveCurrent's engine pins (own record removed and returned, the
token dead with it, the bystander untouched — self-only structural;
the vanished incumbent typed, removal not idempotent); the host-level
wire pins (a malformed actor lands NOTHING on an alive incumbent;
A's token removes A's record only, the answer naming the removed
subject; the other machine's token keeps authenticating; the audit
row read raw — subject the machine, actor the declaration, fact
machines/<subject>); MachineUnregister's mid-flight classification
pin (OutcomeUnknown on the truncating listener — the composition's
never-guess asymmetry rests on it); and the CLI flow probes live:
the same-act drop's four shapes (stored incumbent entry_dropped true,
env-sourced truthfully false, dead incumbent byte-untouched store,
broken answer E_NETWORK with the entry left in place and token remove
the remedy) plus the required actor declaration (--as or SKULD_AS,
else the usage class — never a forged declaration).

Co-Authored-By: Xavier's assistant <assistant@gijoe88.com>
machine-enrollment: the rootNounOf example names live leaves
All checks were successful
/ secrets-scan (gitleaks 8.28.0, all refs, redacted) (pull_request) Successful in 7s
/ test (linux/amd64, full suite) (pull_request) Successful in 1m28s
/ build windows/amd64 (pull_request) Successful in 48s
/ build darwin/arm64 (pull_request) Successful in 49s
/ build linux/amd64 (pull_request) Successful in 53s
/ build darwin/amd64 (pull_request) Successful in 54s
/ build linux/arm64 (pull_request) Successful in 44s
/ build windows/arm64 (pull_request) Successful in 46s
/ release (six binaries + checksums.txt, tag pushes only) (pull_request) Has been skipped
f0f428ec7e
The tester's code-side residual: the dispatch example enumerated
token store — a leaf the reconciliation removed. The colliding-leaf
examples name the present spellings (release/machines/token list;
machines/token remove); the bootstrap comment's enumeration was
already current.

Co-Authored-By: Xavier's assistant <assistant@gijoe88.com>
xavier deleted branch feat/machine-enrollment 2026-11-18 19:13:46 +01:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
assistant/skuld!60
No description provided.