H2: every seat contract says each verb's description
A tools program that serves a seat's verbs as tools reads a verb's description from the generated contract, one copy taken from seat.json, instead of writing it again. Generated again in all five folders by mesh-delivery's seatgen (feat/47-H2 b65b6173), which now writes VerbDescription; seatgen -check clean, every package's vet and tests green. Builds: design 47 H2 H-A-449
This commit is contained in:
@@ -19,7 +19,7 @@ const Form = 1
|
||||
// whose fields changed while its forms did not (design 47 H2 §780).
|
||||
const (
|
||||
generatedForms = "1"
|
||||
generatedFieldsDigest = "b2f4006c04a64376f684122491eac6e2bccab805b53cb2fc34ea05db6f2ab965"
|
||||
generatedFieldsDigest = "Fill=7a76c9ceb157 FillingEvent=5bd4df78ed84 Grant=3c378b7ebccc GrantsFor=0c5063e738bb GrantsForAnswer=70ef8ec1b517 GrantsForModulesItem=ca63adbf5d73 RoomEvent=5bd4df78ed84 Wait=b67d8342ebbb WaitEndedEvent=2bf6d38041c0 WaitHeldEvent=2bf6d38041c0 Withheld=216d84b5c98f WithheldAnswer=40d99d181f26 WithheldModulesItem=59d0cf5d92c5 WithheldSubject=28eae88e46de"
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -39,6 +39,18 @@ func Verbs() []string {
|
||||
return []string{VerbGrantsFor, VerbWithheld}
|
||||
}
|
||||
|
||||
// VerbDescription is a verb's description as the seat's definition says it, "" for a verb the seat does not serve or
|
||||
// does not describe (design 47 H2 H-A-449).
|
||||
func VerbDescription(verb string) string {
|
||||
switch verb {
|
||||
case VerbGrantsFor:
|
||||
return "The grants a candidate would compose, per module: the grants it would add and remove against the branch's newest, each named by its subject and verb. The candidate's catalog half is taken by mesh-catalog's revision (design 47 G 441)."
|
||||
case VerbWithheld:
|
||||
return "The marked subjects withheld from each module a node's runtime carries, and why: where its tool runner does not state approval-mark/1, or its reading is not the running runner's (design 46 approval mark 6)."
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// Events is every event published on the seat's subject: a new copy each call.
|
||||
func Events() []string {
|
||||
return []string{EventWaitHeld, EventWaitEnded, EventFilling, EventRoom}
|
||||
|
||||
@@ -20,7 +20,7 @@ const Form = 1
|
||||
// whose fields changed while its forms did not (design 47 H2 §780).
|
||||
const (
|
||||
generatedForms = "1"
|
||||
generatedFieldsDigest = "a6eedea7a2806712696e7b491a8a643a1dc054ab6ab1d97dce0de7f015c92243"
|
||||
generatedFieldsDigest = "AgainAnswer=7538f2f5e68e ConfirmAnswer=7538f2f5e68e Enrolment=ce9d7d79b28a EnrolmentExpiredEvent=4dde8efb6998 EnrolmentIssuedEvent=4dde8efb6998 EnrolmentRefusedEvent=4dde8efb6998 EnrolmentRevokedEvent=4dde8efb6998 EnrolmentsByAddressAddressValue=524d3056537d EnrolmentsByNodeNodeValue=4dde8efb6998 IssueAnswer=7538f2f5e68e NodeEnrolledEvent=4dde8efb6998 RedeemAnswer=1aa043e59eac RevokeAnswer=7538f2f5e68e TokensAnswer=7538f2f5e68e"
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -45,6 +45,26 @@ func Verbs() []string {
|
||||
return []string{VerbIssue, VerbRedeem, VerbConfirm, VerbRevoke, VerbTokens, VerbAgain}
|
||||
}
|
||||
|
||||
// VerbDescription is a verb's description as the seat's definition says it, "" for a verb the seat does not serve or
|
||||
// does not describe (design 47 H2 H-A-449).
|
||||
func VerbDescription(verb string) string {
|
||||
switch verb {
|
||||
case VerbIssue:
|
||||
return "Issue a one-time token for a new machine, on the operator's Approve: refused at once, naming every finding, for a name that is not a node name or that a node record, a placement key or an open enrolment holds, and for every call before the controller's lease is handed away. Otherwise reserves the lowest free private-network address, asks the operator under the seat's own name and, on the warrant, adds the node to placement with its tunnel key, asks the vault for the token and says enrolment-issued. The token itself is read only through tokens."
|
||||
case VerbRedeem:
|
||||
return "Spend a token: asked by a joining node-engine dialled as enrol.<node> alone, with the public halves of its keys and its identity key's proof over them. Spends the token, asks the vault for the node's account and certificate, writes the node into placement, and answers the account sealed to the node, its certificate and the vault's public half, signed by the vault. Asked again with the same keys it finishes what is not done and answers the same; with other keys it is refused."
|
||||
case VerbConfirm:
|
||||
return "Confirm an enrolment: asked by the node-engine dialled as its own node login alone, the runtime's proof of that caller being the confirmation. Says node-enrolled and ends the enrolment."
|
||||
case VerbRevoke:
|
||||
return "End an enrolment at any stage, with why, without an Approve: withdraws an open ask, deletes the node's key and its address, has the vault retire an account it already minted for it, records the act as a hand act and says enrolment-revoked."
|
||||
case VerbTokens:
|
||||
return "Read every open enrolment, or one: its stage, expiry, ask and revision, the bucket's fill against its cap. For a node at live, its token sealed to the operator key, asked of the vault at that moment and relayed as the vault sealed it. With history, the ended enrolments from the seat's events, as far back as the events are kept."
|
||||
case VerbAgain:
|
||||
return "Raise an issue's ask again when the operator's channel does not hold it, and nothing more."
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// Events is every event published on the seat's subject: a new copy each call.
|
||||
func Events() []string {
|
||||
return []string{EventEnrolmentIssued, EventNodeEnrolled, EventEnrolmentRefused, EventEnrolmentRevoked, EventEnrolmentExpired}
|
||||
|
||||
@@ -20,7 +20,7 @@ const Form = 1
|
||||
// whose fields changed while its forms did not (design 47 H2 §780).
|
||||
const (
|
||||
generatedForms = "1"
|
||||
generatedFieldsDigest = "1b55f695820faf0b8d358617daeba7d5c8ed27ac41b7e9d024c83f28201ad0d0"
|
||||
generatedFieldsDigest = "AbandonAnswer=7538f2f5e68e EnrolmentTokenAnswer=0f89acf73fc8 GetAnswer=7538f2f5e68e IssueAccountAnswer=7538f2f5e68e IssuedAnswer=7538f2f5e68e LicencePutAnswer=7538f2f5e68e MoveInAnswer=7538f2f5e68e NodeAccountAnswer=9ec3147f005d NodeAccountConfirmAnswer=7538f2f5e68e NodeKeyAnswer=7538f2f5e68e NodeLoginsByNodeValue=bed4bfc51301 OwnAnswer=7538f2f5e68e OwnPutAnswer=7538f2f5e68e OwnRetiredHolderEvent=f1c70d605240 RetireAnswer=1c304aee8e40 RotateAnswer=7538f2f5e68e RotateNodeAnswer=7538f2f5e68e SecretAskAnswer=7538f2f5e68e SignAnswer=42278012cf27 SignedHolderEvent=8cd7db5c5beb SignersByAuthorityValue=99c9737ce2dc SignersByKeyValue=d3729d33c825"
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -48,6 +48,48 @@ func Verbs() []string {
|
||||
return []string{VerbGet, VerbSecretAsk, VerbIssued, VerbRotate, VerbMoveIn, VerbNodeKey, VerbOwn, VerbIssueAccount, VerbSign, VerbEnrolmentToken, VerbNodeAccount, VerbRotateNode, VerbNodeAccountConfirm, VerbAbandon, VerbRetire, VerbLicencePut, VerbOwnPut}
|
||||
}
|
||||
|
||||
// VerbDescription is a verb's description as the seat's definition says it, "" for a verb the seat does not serve or
|
||||
// does not describe (design 47 H2 H-A-449).
|
||||
func VerbDescription(verb string) string {
|
||||
switch verb {
|
||||
case VerbGet:
|
||||
return "One secret, sealed to the public key the asker sends (the sealed box of ADR 0206), with its generation; answered only to an asker the vault allows, as the bus proved it, and a module's own secret put through own-put only to a process of the same module (design 47 H2 §822). Never the value in the clear, and never to a private key."
|
||||
case VerbSecretAsk:
|
||||
return "Ask the operator for a module's own secret at a desk, from the controller or a caller the vault's manifest names, named as the bus proved it (novox/hq ADR 0563 §8): the ask is recorded in the vault's store and bounded before the prompt opens, and what is typed is sealed to a key the vault made for the call and opens there alone."
|
||||
case VerbIssued:
|
||||
return "Take the credential a provider's software issued for a provision, from the controller alone, which asks the provider's tool with a key the vault made for the call; kept as the provision's one credential, or, when the tool answers a value per holder named, each as that holder's own; the same value again writes nothing."
|
||||
case VerbRotate:
|
||||
return "Make a secret anew. Refused for a value a provider's software issued and for an accepted credential. Never answers the value."
|
||||
case VerbMoveIn:
|
||||
return "Take one value of the controller's store in, as it is, from the node-engine of a machine it was sealed to and no other caller: name the row, its origin and generation and get a call and a key made for it, then send the call, the value sealed to that key and a key to read back to. Never replaces a value the vault holds; answers what it kept, read back sealed to that key."
|
||||
case VerbNodeKey:
|
||||
return "State this machine's sealing key to the vault, in its own name, from the node-engine of the machine alone: at its start and whenever the key changes. A first or changed key is recorded and the machine's core secrets are said changed; the same key again changes nothing."
|
||||
case VerbOwn:
|
||||
return "Answer the node-engine of one machine, about its own machine alone (as the bus proved the caller, never an argument), its modules' own secrets and the pair credentials it consumes or provides that it names, each sealed to the key it stated with node-key. A credential the vault does not hold is named missing; never a value in the clear."
|
||||
case VerbIssueAccount:
|
||||
return "Mint one bus account the grants part wants, now (novox/hq ADR 0561 §9): only while the controller's lease is handed away, never a node's account or the controller's, never anew for one the vault holds a value or an adopted hash for. Never the value."
|
||||
case VerbSign:
|
||||
return "Sign with the vault's key or authority (novox/hq ADR 0550 §2): kind node-certificate signs the certificate of a machine's internal name, asked by that machine's node-engine for the serving key its record states, built from bus state alone, or by mesh-node-enroller for a node it enrols, for the serving key the node presented at redeem (ADR 0587 §3); kind enrolment signs a redeem answer under its own context, for mesh-node-enroller alone. Answers the certificate or the signature and the signer's fingerprint, and says signed; never a key."
|
||||
case VerbEnrolmentToken:
|
||||
return "Make a one-time token for a node mesh-node-enroller issues on the operator's warrant: its secret kept with its copy sealed to the operator key and its hash written as the bus user enrol.<node>. Answers only what the joining machine must trust (the bus's address, the bus certificate's fingerprint, the vault's public signing key), never the token; with sealed, the token sealed to the operator key, for tokens to relay; with drop, the token and its hash dropped, at the enrolment's end. Asked by mesh-node-enroller alone, only from the lease write. The token carries the first tunnel mesh-node-enroller built at issue (ADR 0587 §3, insight of 2026-11-02)."
|
||||
case VerbNodeAccount:
|
||||
return "Mint a joining node's bus account node.<node>, sealed to the sealing key it presented, and write its hash; asked again for the same node and keys, answers the account it already minted; with retire, the account it minted for a revoked enrolment retired. Writes the node's node-logins key naming node.<node>. Asked by mesh-node-enroller alone. Never the value in the clear."
|
||||
case VerbRotateNode:
|
||||
return "Begin a node's account rotation to its other login: answered only for a call carrying a hand act recorded through mesh-hand-acts, which the vault reads back by its id. Makes the other login's value sealed to that node, writes it rotating in node-logins and says rotation-begun; says node-account-ready once the bus node's have shows a list holding both logins. One node at a time across the mesh, the bus node last: a call while a rotation runs waits until it is done."
|
||||
case VerbNodeAccountConfirm:
|
||||
return "Confirm a node's switch to its new login: asked by the node-engine dialled as that login, the runtime's proof of the caller being the confirmation. The old login's hash is then removed, and rotation-done said once the bus node's have shows the list without it."
|
||||
case VerbAbandon:
|
||||
return "Abandon a node's rotation before its old login is retired: the new login and its value dropped, the old one kept; a node that switched switches back first."
|
||||
case VerbRetire:
|
||||
return "Retire one module's own secret, by node, module and name, on the operator's warrant bound to exactly those three (design 32 *A value no longer read*). Emits own-retired."
|
||||
case VerbLicencePut:
|
||||
return "Hand the vault one of a licence's two secrets, its grant or its access token, from the licence manager, in two steps: name the licence by its key, the part and its generation and get a call and a key made for it; then send the call and the value sealed to that key. Keeps the newest generation and refuses an older one; says secret-changed with the secret's name and generation, never the value (novox/hq design 39 bus-and-switch §15)."
|
||||
case VerbOwnPut:
|
||||
return "Store a secret as the calling module's own, in two steps modelled on licence-put (design 47 H2 §822, H-A-345, H-A-349 DQ-7): name the secret and get a call and a key made for it (call, seal_to); then send the call and the value sealed to that key, and the vault keeps it under that name as the module's own, the module named by the caller's account as the bus proved it, never by an argument, keeping its newest generation only (name, generation). get answers it to a process of the same module, sealed to the process's key. The holder says each write in its journal without the value."
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// The holder's own events, listed beside the seat and published under the holder's subjects (ADR 0620 §2).
|
||||
const (
|
||||
HolderEventProvisioned = "provisioned"
|
||||
|
||||
Reference in New Issue
Block a user