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:
2026-11-22 02:36:36 +01:00
parent e6ed560e48
commit 2dfdcc3316
15 changed files with 326 additions and 10 deletions
+32
View File
@@ -55,6 +55,38 @@ func Verbs() []string {
return []string{VerbList, VerbShow, VerbCheck, VerbOrphans, VerbCreate, VerbApply, VerbRecreate, VerbDrop, VerbSnapshotGet, VerbSnapshotRestore, VerbSnapshotRestoreCancel, VerbSnapshotRemove}
}
// 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 VerbList:
return "Every entry the bus module created, its template, its settings and its fill against its cap."
case VerbShow:
return "One entry, its template, settings and fill."
case VerbCheck:
return "Compare what the bus holds with what was asked, entry by entry; a difference that only grows is said as such."
case VerbOrphans:
return "Entries the bus holds that no manifest asks for; never one whose manifest the judge refused or outgrew, nor one of the foundation's old sections."
case VerbCreate:
return "Create one entry now."
case VerbApply:
return "Apply a difference that only grows: a larger cap, a longer age."
case VerbRecreate:
return "Rebuild an entry whose settings differ in a way that cannot grow, from its data where the storage type allows, after a stream snapshot."
case VerbDrop:
return "Remove one orphan, after a stream snapshot."
case VerbSnapshotGet:
return "Send the stream snapshot the bus module took before a drop or recreate: its fields, then the file in chunks of at most 512 KiB on the chunk subject of the call, each acknowledged by the caller on the ack subject within 30 seconds. A caller granted no chunk subjects is answered the fields alone, with chunks 0. Refuses snapshot damaged, snapshot missing, snapshot protected and snapshot taken before milestone G (design 47 G 681)."
case VerbSnapshotRestore:
return "Restore in place the snapshot of a protected stream the bus module took before a drop or recreate, under the stream's own name: with verify true it only checks the file against its recorded digest and restores nothing; it refuses names live while a live object of the stream's name exists. Answers accepted, busy or error at once; the outcome comes on the event snapshot-restored (design 47 G 681)."
case VerbSnapshotRestoreCancel:
return "Cancel a running restore: it removes the keeper's own partial stream, says snapshot-restored with outcome failed under that act and answers accepted, or answers error when that act has ended (design 47 G 681)."
case VerbSnapshotRemove:
return "Remove one snapshot and its record now, or every expired one, written in the hand-act log first; a snapshot of before milestone G only by request. Answers accepted, busy or error (design 47 G 681), A-44."
}
return ""
}
// Events is every event published on the seat's subject: a new copy each call.
func Events() []string {
return []string{EventCreated, EventRefused, EventDrifted, EventDriftCleared, EventFull, EventFullCleared, EventOrphaned, EventRecreated, EventDropped, EventSnapshotRestored}
+12
View File
@@ -32,6 +32,18 @@ func Verbs() []string {
return []string{VerbConfig, VerbRenames}
}
// 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 VerbConfig:
return "Set, clear, list or read the history of config values: mesh config or node config for a predefined key, or a module's own value on one node, each set with why, validated, and naming each module on each node whose value moves."
case VerbRenames:
return "The open renames of config values (design 32 *A config value renamed*): per rename the module, the old and new name, when it moved, and the nodes still holding the old name open."
}
return ""
}
// The holder's own events, listed beside the seat and published under the holder's subjects (ADR 0620 §2).
const (
HolderEventConfigChanged = "config-changed"
+20
View File
@@ -44,6 +44,26 @@ func Verbs() []string {
return []string{VerbAssignments, VerbProposals, VerbPropose, VerbWithdraw, VerbAgain, VerbPlacement}
}
// 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 VerbAssignments:
return "Read the assignments: one node's key, the nodes one module is placed on, or every key, each with its revision, and how full the state is against its cap. With history, one node's or one module's changes in order: a revision the state keeps whole, an older one as the proposal's changes from its assignments-changed event."
case VerbProposals:
return "Every open proposal of assignments: its changes, the revision of each key it was laid over, its candidates, every node's answer, the differences computed and answered, its verdict and its ask. Narrowed to one by id."
case VerbPropose:
return "Propose a change of assignments, with why: laid over the current keys and refused at once, naming every finding, when the result cannot be placed (two modules on one host port, a provider not placed, a seat held once held twice, two nodes with one address, two hubs, a module the indexer does not hold, a node with no record). Otherwise the nodes it touches compose it in shadow and answer, and on a passing verdict the operator is asked to approve it. Who proposes is the caller, as the runtime proves it. An add-node from mesh-enrolment, whose warrant names its node and address, is written with no ask of its own: its Approve is the enrolment's (ADR 0587 §7)."
case VerbWithdraw:
return "Withdraw an open proposal: its key and its candidates are deleted and assignments-withdrawn carries it whole. With why."
case VerbAgain:
return "Judge an open proposal now with the answers that stand, and raise its ask again when its verdict passes and the operator's channel does not hold the ask. Nothing more: the recovery of a proposal whose judgement or ask was lost."
case VerbPlacement:
return "Read the placements of one module as the assignments rows hold them: for each watched branch a node runs it from, the nodes that run it from there."
}
return ""
}
// Events is every event published on the seat's subject: a new copy each call.
func Events() []string {
return []string{EventAssignmentsProposed, EventAssignmentsWithdrawn, EventAssignmentsJudged, EventAssignmentsChanged}
+30
View File
@@ -51,6 +51,36 @@ func Verbs() []string {
return []string{VerbSnapshotKept, VerbRestoreKept, VerbKeptPoints, VerbRestoreAside, VerbCancel, VerbTake, VerbRestore, VerbRetry, VerbAside, VerbDiscardAside, VerbExpirePoints}
}
// 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 VerbSnapshotKept:
return "Take the restore point of one module's kept data on the bus before it moves across a form change: the data whole and the position of each durable consumer. Answers accepted, busy or error at once; the point comes on the event ended (design 47 G 516, 554, 560)."
case VerbRestoreKept:
return "Restore one module's kept data from its restore point, the live data set aside first and never over it. Answers accepted, busy or error at once; the result comes on the event restored. It refuses aside-only and discard-aside: those are hand acts alone (design 47 G 516, 554, 560)."
case VerbKeptPoints:
return "Every restore point and aside the recovery module holds, with its module, kept data, form, fingerprint, size and when, and the act that runs, with since when and what it waits on (design 47 G 517, 554)."
case VerbRestoreAside:
return "Restore an aside under the live names it was taken from, for an aside whose record ends at removed that no running act holds; it refuses while live objects of those names exist. Ends with restored (design 47 G 566)."
case VerbCancel:
return "End an accepted act that has not begun its work, with its ending event, outcome failed and error cancelled; it refuses an act that has begun, naming its step (design 47 G 566)."
case VerbTake:
return "Hand act: take a point of one module's kept data at that fingerprint's form, as snapshot-kept does with no catch-up. Answers accepted, busy or error at once; the point comes on the event ended (design 47 G 682, 554)."
case VerbRestore:
return "Hand act: restore one module's kept data as restore-kept does, from a point by its name or from a keeper's snapshot by its request; exactly one of snapshot and request, and from-backup only with snapshot (design 47 G 682, 681). Answers accepted, busy or error at once; the result comes on the event restored."
case VerbRetry:
return "Hand act: ask again the last failed act of that module and kept data, with its fields; the error nothing to retry when its last act did not fail. The result comes on that act's ending event (design 47 G 682)."
case VerbAside:
return "Hand act: set the live kept data aside without restoring (design 47 G 516, 682). Answers accepted, busy or error at once; the result comes on the event set-aside."
case VerbDiscardAside:
return "Hand act: remove one aside's directory (design 47 G 682). Answers accepted, busy or error at once; the result comes on the event aside-discarded."
case VerbExpirePoints:
return "Hand act: remove the points past their 90 days now, as the module does by itself (design 47 G 551, 682). Answers accepted, busy or error at once; the result comes on the event expiry-ended."
}
return ""
}
// Events is every event published on the seat's subject: a new copy each call.
func Events() []string {
return []string{EventEnded, EventRestoreStarted, EventRestored, EventSetAside, EventAsideDiscarded, EventPointRemoved, EventExpiryEnded}
+48
View File
@@ -62,6 +62,54 @@ func Verbs() []string {
return []string{VerbHandOver, VerbAccessAct, VerbJudgeDirectories, VerbSetuidSearch, VerbRootFree, VerbActs, VerbPackages, VerbComposition, VerbCompositionDiff, VerbCompose, VerbComposeCandidate, VerbManifestReads, VerbApplyOrder, VerbSeatList, VerbSeatListAgain, VerbFirstViews, VerbFirstViewAgain, VerbEntryAgain, VerbProcessBuilds, VerbConverged}
}
// 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 VerbHandOver:
return "Hand a directory this machine uses as found to the mesh (novox/hq ADR 0563 §3, §5): the engine judges the path as it does every hand-over (absolute, as it states it, used as found, reached through no link) and refuses in words, or asks the operator on their channel at the level approve, binding the owner, group and mode it will set. Nothing changes on the call: only the operator's yes hands it over. One ask is open per path; acts shows where it stands."
case VerbAccessAct:
return "Ask the operator for the take act on a library whose root holds data outside its group (novox/hq ADR 0328 §7, ADR 0563 §3, §4), on the library's home engine: the access as declared and its root as last declared, judged and refused in words or asked at the level approve. Only the operator's yes sets the library's group, group write and setgid under its root. One ask is open per access."
case VerbJudgeDirectories:
return "Which of this machine's declared directories the engine would refuse to make or keep, one line each (novox/hq ADR 0563 §2). Read-only: changes no owner or mode."
case VerbSetuidSearch:
return "Throw away the engine's last search for setuid programs and start a full one (novox/hq ADR 0563 §2); until it completes root-free answers that the machine is not judged yet. Refused while one runs, and when one was started within the hour, naming when the next may start."
case VerbRootFree:
return "Whether this machine is root-free (novox/hq ADR 0259 §8, ADR 0563 §6): free only on the engine's own verdict, at most fifteen minutes old, that the account agents run as cannot become root without a person, and the login shell's execute not served here. Anything else is no pass, and says why. Answered by this machine's engine alone."
case VerbActs:
return "Every act this machine's engine was asked through this seat (novox/hq ADR 0563 §9): each hand-over, access act and setuid search, open, done or refused, with who asked, the ask and the operator's warrant. Read-only."
case VerbPackages:
return "The packages this machine's compositions declare, present or absent, each with the modules that declare it, as the engine keeps them in its key of `packages`; until the controller hands its lease away, beside the controller's mirror for this machine and their difference. With write, the key written again from what the engine composed."
case VerbComposition:
return "One module's composition on this machine beside what runs of it, read-only: the composition its want's build has in the bucket composed-<node> (the latest revision, or the one whose digest is given, from the revisions the bucket keeps), the digest of each kept revision, what runs (applied, its have, or the kept declaration), its want and have (phase running, failed, held or waiting-yes, and the digest that waits for a yes), and the move's judgement with its words: why a record module waits for a yes. With diff, every resource added, removed or changed, a provider's received file naming the consumers that join or leave."
case VerbCompositionDiff:
return "One module's composed values read by resource (design 47 H2 §813 (3), H-A-349 DQ-12b): given a module and a revision or a digest of its composition, the entries that differ between the composition that runs and that one, per resource, environment entries by name, a secret's value masked. Read-only. Answered by this machine's engine alone."
case VerbCompose:
return "Compose this machine's modules now and say how it went, so a composition that failed, or a module held, recovers without a restart: what the pass refused or held, each with why, and when the engine composes again on its own after a seat that did not answer (a deadline, no responders: retried with a growing wait; a refusal never). With module, that module's apply is also tried again. Changes only what a pass the engine makes on its own would change."
case VerbComposeCandidate:
return "Compose a check's candidate on this machine in shadow, with its own sealed values and the indexer's manifest verdicts, and say per module placed here whether it composes (with its digest and whether the candidate changes it), is refused by the candidate or is held without it, each with why, and the verdict of the machine's own composition (novox/hq ADR 0593 §7). Read-only: applies nothing and writes nothing. Answered by this machine's engine alone, within the asker's bound."
case VerbManifestReads:
return "The reader capabilities this machine's engine states (manifest words, forms and seat names it reads, novox/hq ADR 0618 §3) and when it last stated them. An engine built before it said them states none, which a reader takes as the baseline. Read-only. Answered by this machine's engine alone."
case VerbApplyOrder:
return "The order this machine's engine will apply its changed wants in, with why: one row per unapplied changed want, the bus module and the backup holder first, then each pipeline's wants by rank, then the rest by name, its own want last, a reverted module first (design 47 H 771, H-A-46). Read-only. Answered by this machine's engine alone."
case VerbSeatList:
return "The seat list this engine holds and what it waits for (novox/hq ADR 0636 §7): each seat's source (trunk or bootstrap) and digest, the seats held from the bootstrap alone, the definitions refused, the last error and whether the seat mesh-catalog has answered. Read-only."
case VerbSeatListAgain:
return "Make this engine read the seat list from the seat mesh-catalog now (novox/hq ADR 0636 §7), the recovery of a list unread; it answers what it holds afterwards, and the error when the read failed. A read that changed nothing still ends the engine's wait."
case VerbFirstViews:
return "The node-engine's first views of the owners' states it follows (design 47 G 422, 204): per owner and state, the tool it asks, the revision its picture holds and why it is behind, when it asked and was answered, how many asks and whether its condition is raised; served by mesh-sdk's runtime as the view's read tool; its entries and its kept wants beside (design 47 G 698)."
case VerbFirstViewAgain:
return "Ask the node-engine's first view of an owner's state again now, by hand (design 47 G 422, 204): a hand act, its caller and why kept in the status first-views reads; served by mesh-sdk's runtime as the view's again tool."
case VerbEntryAgain:
return "Ask the indexer's entry of a build again now, by hand (design 47 G 683, 698): a hand act, its caller and why kept; the answer says what was asked and the verb that reads it."
case VerbProcessBuilds:
return "The build each process on this node was started with (design 47 *The revision view*): per service and container the fingerprint the node-engine handed it in MESH_FINGERPRINT, or why it is unknown, and when it started. Narrowed by module. Reads only."
case VerbConverged:
return "The node's convergence state, which the node-engine keeps (ADR 0168, ADR 0683; design 33 control-verbs §10): adopted or converged, since when it became so, for an adopted node the kind of the firewall found, and the node's links as the engine classifies them: the tunnel's interface and the outward links (design 47 H-A-325). Read-only: the holder of node-packet-filter asks it at its start and at every allow and disallow, and refuses when it does not answer."
}
return ""
}
// Events is every event published on the seat's subject: a new copy each call.
func Events() []string {
return []string{EventAsked, EventDone, EventRefused, EventManifestReadsChanged, EventComposed, EventRunning, EventWaitHeld, EventWaitEnded}
@@ -20,7 +20,7 @@ const Form = 1
// whose fields changed while its forms did not (design 47 H2 §780).
const (
generatedForms = "1"
generatedFieldsDigest = "836d2140ddb9934850b5ada7636fc2021b1071822179e9e1090c5d170e94db3a"
generatedFieldsDigest = "Action=2bab6a7c8d3f ConditionChangedEvent=53e8289a3c05 ConditionClearedEvent=53e8289a3c05 ConditionEvent=6c119ffcb41a ConditionEventGapsItem=445e336e9c2f ConditionEventSilenced=5283d9bd3ac3 ConditionEventTriedItem=682b4f81cc9f ConditionRaisedEvent=53e8289a3c05 ConditionsAnswer=7538f2f5e68e ConditionsByKeyValue=b92129af8096 ConditionsByKeyValueGapsItem=445e336e9c2f ConditionsByKeyValueSilenced=5283d9bd3ac3 ConditionsByKeyValueTriedItem=682b4f81cc9f Evidence=f65231e1f862 Finding=4c99dfc3bf5f FindingsAskedEvent=d9acb823a0b3 FindingsByScopeIDKindValue=8f969e06a146 FindingsViewsByObserverNodeValue=8975b486b408 FindingsViewsByObserverNodeValueStated=67549697c196 ResyncAnswer=7538f2f5e68e SilenceAnswer=7538f2f5e68e Subject=11e82b0a77d6"
)
const (
@@ -41,6 +41,20 @@ func Verbs() []string {
return []string{VerbConditions, VerbSilence, VerbResync}
}
// 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 VerbConditions:
return "What is wrong with the mesh now: every open condition, urgent first, then oldest, raised from the observers' findings (the watchman, the self-check, the healers, the assigner) and cleared when the finding goes, never by hand. Given a key, that one whole with its evidence; with history, every transition lately."
case VerbSilence:
return "Stop one condition's messages for a while, a hand act with why: it stays open and in status, and the silence is kept as its transition in history."
case VerbResync:
return "Ask the observers to state their findings again, every one or the one named, and raise and clear what differs from the open conditions: the recovery of a keeper that missed a change. Each call is written in the hand-act log of the seat mesh-hand-acts (design 47 G 390)."
}
return ""
}
// Events is every event published on the seat's subject: a new copy each call.
func Events() []string {
return []string{EventConditionRaised, EventConditionChanged, EventConditionCleared, EventFindingsAsked}
@@ -20,7 +20,7 @@ const Form = 1
// whose fields changed while its forms did not (design 47 H2 §780).
const (
generatedForms = "1"
generatedFieldsDigest = "12775f35116965a7ab99b6b2617020889cab452598c2f51883247d05cf99a9ea"
generatedFieldsDigest = "Act=a4b999a0242d ActRecordedEvent=ae30b14a5dce ActsByIDValue=a4b999a0242d HandActAnswer=7538f2f5e68e HandActsAnswer=7538f2f5e68e WarrantedAnswer=7538f2f5e68e WarrantsByAskerAskValue=8a933b29dd52"
)
const (
@@ -38,6 +38,20 @@ func Verbs() []string {
return []string{VerbHandAct, VerbHandActs, VerbWarranted}
}
// 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 VerbHandAct:
return "Record one act done by hand: what, why, its cause in a word or a condition's kind (the word a second act for the same reason uses) and the condition it addresses. Who did it is the caller the runtime proves, never said by the caller. Said as act-recorded."
case VerbHandActs:
return "What was done by hand lately, over this log and the controller's: who, why and the cause of each, and the causes recorded twice within a fortnight (a healer is wanted)."
case VerbWarranted:
return "Record what a module did on the operator's warrant: who chose, through which channel, with which proofs and which answer read from the router's own record of that module's ask, never from the caller; once per ask. Refused for an ask still open, ended without a choice, or not that module's."
}
return ""
}
// Events is every event published on the seat's subject: a new copy each call.
func Events() []string {
return []string{EventActRecorded}
@@ -19,7 +19,7 @@ const Form = 1
// whose fields changed while its forms did not (design 47 H2 §780).
const (
generatedForms = "1"
generatedFieldsDigest = "4970dc97cfa905889a3c496c5bcb539306ce1900fa4ac19d6010954051f7901a"
generatedFieldsDigest = "AttemptChangedEvent=d8511196f322 AttemptsByAttemptValue=95a88b9980f5 DrillAnswer=7538f2f5e68e HealAnswer=7538f2f5e68e HealerActedEvent=fed7669492b1 HealersAnswer=7538f2f5e68e WouldByWouldValue=a722913bac6b"
)
const (
@@ -38,6 +38,20 @@ func Verbs() []string {
return []string{VerbHealers, VerbHeal, VerbDrill}
}
// 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 VerbHealers:
return "The healers: each registered response to one kind of condition, its repair, its budget and what happens when it is spent; every act taken lately with its outcome, and the mesh-wide brake."
case VerbHeal:
return "Take one healer's act for one open condition now, within its budget and the brake."
case VerbDrill:
return "Record a drill: something broken on purpose to see the mesh raise and clear it, with what it tests. A drill is never a repair: no healer is wanted for it however often it is run."
}
return ""
}
// Events is every event published on the seat's subject: a new copy each call.
func Events() []string {
return []string{EventHealerActed, EventAttemptChanged}
@@ -19,7 +19,7 @@ const Form = 1
// whose fields changed while its forms did not (design 47 H2 §780).
const (
generatedForms = "1"
generatedFieldsDigest = "5f1c3026e243ab14d7005851c952f42cfb40cfa79e22cea8f3c2f94a59e65f7f"
generatedFieldsDigest = "CheckedEvent=7b5b94bab07c CheckedEventCounts=6ce772f26afd DoctorAnswer=7538f2f5e68e ProbeVerdict=0fe6766455a6 ProbesAnswer=7538f2f5e68e"
)
const (
@@ -36,6 +36,18 @@ func Verbs() []string {
return []string{VerbDoctor, VerbProbes}
}
// 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 VerbDoctor:
return "The self-check: the last run's verdict at once, each probe passed, failed, deferred (its facts not on the bus yet, named) or could not run, and how long ago. With run, a run now; with probe, one probe's verdict whole. Runs every five minutes on its own; each failure is a finding."
case VerbProbes:
return "The registry: what each probe asserts, where it reads its facts, and the finding it writes."
}
return ""
}
// Events is every event published on the seat's subject: a new copy each call.
func Events() []string {
return []string{EventChecked}
@@ -20,7 +20,7 @@ const Form = 1
// whose fields changed while its forms did not (design 47 H2 §780).
const (
generatedForms = "1"
generatedFieldsDigest = "aacf27b959d307b4603d4a4909f324b82430c882bfbeff86941dfa0143a53854"
generatedFieldsDigest = "DeadLettersAnswer=7538f2f5e68e MachineAwayEvent=5f9f18c9abf0 MachineBackEvent=5f9f18c9abf0 PresenceAnswer=0563eea169de PresenceAnswerKeysItem=93b2bc481799 PresenceByNodeValue=282be16e23e1 PresenceByPartPartInstanceValue=282be16e23e1 PulseByBucketKeyValue=1a9e5adbba7f ResyncAnswer=7538f2f5e68e SignalsAnswer=7538f2f5e68e StuckAnswer=7538f2f5e68e StuckByBucketKeyValue=04c156256563"
)
const (
@@ -41,6 +41,24 @@ func Verbs() []string {
return []string{VerbSignals, VerbStuck, VerbPresence, VerbDeadLetters, VerbResync}
}
// 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 VerbSignals:
return "Every watchdog of the signals table the watchman keeps, each a key that expires unless its signal renews it: its row, what renews it, its bound, the age of its newest signal, and the finding its expiry wrote."
case VerbStuck:
return "Every want, build or step the watchman says stopped moving past its bound, with since when and the words of its finding."
case VerbPresence:
return "Every machine and tool runner the watchman sees connected, with its last word, and those it says silent; a machine that said it sleeps is shown as sleeping, not silent. With machine, that machine's presence alone: whether the watchman hears it and since when."
case VerbDeadLetters:
return "Every message a consumer on the bus gave up on, kept in DEAD_LETTERS: whose consumer, the subject, how often it was handed over and when it was given up, newest first. With id: that one whole. With deliver or drop, a hand act with why."
case VerbResync:
return "Rebuild presence from the bus's connections, and the pulses and findings from the keys the watchman watches, and take every dead-letter notice waiting: the recovery of a watchman that missed a change."
}
return ""
}
// Events is every event published on the seat's subject: a new copy each call.
func Events() []string {
return []string{EventMachineAway, EventMachineBack}
@@ -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"
@@ -20,7 +20,7 @@ const Form = 1
// whose fields changed while its forms did not (design 47 H2 §780).
const (
generatedForms = "1"
generatedFieldsDigest = "5447f2572c926558eb1532038108cddeded16377f9d1dee5c0f1aafb856b3ce2"
generatedFieldsDigest = "Ask=76fc93d17ce4 AskAccept=0bb5682c7b3b AsksAnswer=4af6528ab26f AsksAnswerAsksItem=da43c71a4ea2 AsksByAskerIDValue=c1cecb5cf534 CancelAccept=22bae1bee7e0 ClosedHolderEvent=683915f8bbf1 Condition=8226bb684496 ConditionAccept=6fbe7a8df8e2 ConditionActionsItem=56146ecb5e2a ConditionSubject=9f1eabce9947 DecidedEvent=d6448373b56d HistoryAnswer=7538f2f5e68e NotifyAnswer=7538f2f5e68e OfferedHolderEvent=77a585d2d80a OpenAnswer=7538f2f5e68e Option=790a7e94a923 Person=6393980d1299 TellAnswer=7538f2f5e68e Warrant=b216f9adf8a1"
)
const (
@@ -46,6 +46,24 @@ func Verbs() []string {
return []string{VerbOpen, VerbHistory, VerbNotify, VerbTell, VerbAsks}
}
// 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 VerbOpen:
return "What is open now: every message the operator was sent about something still wrong, urgent first, oldest first."
case VerbHistory:
return "What was said to the operator lately, newest first, the refusals, and what waits to be sent on each channel."
case VerbNotify:
return "Tell the operator something, as a module that uses the seat: a key, urgent or warning, one line, and what it is about; clear says it is over."
case VerbTell:
return "Tell the operator a plain notice that needs no answer and opens no condition (ADR 0380)."
case VerbAsks:
return "The asks the router holds: open first, then the last month's, each with how it ended. With no argument only the open asks, within its default bound; key for one ask, state, since and bound narrow or widen it, and the answer says what it cut."
}
return ""
}
// Events is every event published on the seat's subject: a new copy each call.
func Events() []string {
return []string{EventDecided}
@@ -20,7 +20,7 @@ const Form = 1
// whose fields changed while its forms did not (design 47 H2 §780).
const (
generatedForms = "1"
generatedFieldsDigest = "878e1ffd0497bd99a1544b43596e8317c72417540badaef82999fe69e55202b6"
generatedFieldsDigest = "PlansByNodeModuleValue=e3b5d8ddd5a1 ProvisioningAnswer=7538f2f5e68e ProvisionsByNodeConsumerProvisionLocalValue=32b55a872069 ProvisionsByNodeConsumerProvisionLocalValueConsumer=920ee010c907 ProvisionsByNodeConsumerProvisionLocalValuePlan=71e13248b267 ProvisionsByNodeConsumerProvisionLocalValueProvider=920ee010c907 ProvisionsByNodeConsumerProvisionLocalValueReference=ce6c167e9bea ProvisionsByNodeConsumerProvisionLocalValueWarrant=245d42c27175 ProvisionsByNodeConsumerProvisionValue=1b9faba7e8e2 ProvisionsByNodeConsumerProvisionValueConsumer=920ee010c907 ProvisionsByNodeConsumerProvisionValuePlan=71e13248b267 ProvisionsByNodeConsumerProvisionValueProvider=920ee010c907 ProvisionsByNodeConsumerProvisionValueReference=ce6c167e9bea ProvisionsByNodeConsumerProvisionValueWarrant=245d42c27175"
)
const (
@@ -32,6 +32,16 @@ func Verbs() []string {
return []string{VerbProvisioning}
}
// 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 VerbProvisioning:
return "Read what the provisioner keeps: the registry (which domain answers which kind of placeholder), the needs each module on each node recorded, what is applied where, or the items of every collection, narrowed by node and module. Reads only."
}
return ""
}
const (
StatePlans = "plans"
StateProvisions = "provisions"