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
@@ -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}