Registry seats: the removal reasons are constants, a release of nothing held answers released false, packages carry their own language's names

seatgen writes a string's enum as Go constants, so the sweep names
RemoveInputReasonRetention instead of the literal. release of what is not
held is no error. The package seats' fixtures name a package as design 32
does (git.novox.be/novox/mesh-sdk/go, @novox/mesh-sdk), name says so, and
module equals name for a Go package. Generated with mesh-catalog's seatgen
(wip/registry-a3); seatgen -check passes.

Claude-Session: https://claude.ai/code/session_01JG73KJNrH5EgFXMKKYSrig
This commit is contained in:
2026-11-04 16:32:15 +01:00
parent 5118c5f425
commit 7d8f090b75
30 changed files with 419 additions and 110 deletions
+42
View File
@@ -97,6 +97,14 @@ type Act struct {
Why string `json:"why,omitempty"`
}
// The values of Act's state.
const (
ActStateAsked = "asked"
ActStateDone = "done"
ActStateRefused = "refused"
ActStateAnswered = "answered"
)
// ActSaid is what the seat says of an act: the act, the path or access, the caller as the runtime proved it and the ask (ADR 0563 §1).
type ActSaid struct {
// the act
@@ -115,6 +123,13 @@ type ActSaid struct {
Subject string `json:"subject,omitempty"`
}
// The values of ActSaid's state.
const (
ActSaidStateAsked = "asked"
ActSaidStateDone = "done"
ActSaidStateRefused = "refused"
)
// Acts is the acts kept.
type Acts struct {
// the acts, newest first
@@ -147,6 +162,12 @@ type ManifestReadsChanged struct {
Why string `json:"why"`
}
// The values of ManifestReadsChanged's why.
const (
ManifestReadsChangedWhyStarted = "started"
ManifestReadsChangedWhyReturned = "returned"
)
// Module is one module's composition with the candidate.
type Module struct {
// the candidate changes it from the one composed without it
@@ -163,6 +184,13 @@ type Module struct {
Words string `json:"words,omitempty"`
}
// The values of Module's state.
const (
ModuleStateComposed = "composed"
ModuleStateRefused = "refused"
ModuleStateHeld = "held"
)
// Revision is one revision of a composition key.
type Revision struct {
// its digest
@@ -266,6 +294,12 @@ type PackagesInput struct {
Write string `json:"write,omitempty"`
}
// The values of PackagesInput's write.
const (
PackagesInputWriteTrue = "true"
PackagesInputWriteFalse = "false"
)
// PackagesAnswerKeyPackagesItem is a type of the contract.
type PackagesAnswerKeyPackagesItem struct {
// declared absent
@@ -492,6 +526,14 @@ type ComposeCandidateAnswer struct {
Verdict string `json:"verdict"`
}
// The values of ComposeCandidateAnswer's verdict.
const (
ComposeCandidateAnswerVerdictComposed = "composed"
ComposeCandidateAnswerVerdictRefused = "refused"
ComposeCandidateAnswerVerdictUnready = "unready"
ComposeCandidateAnswerVerdictNotJudged = "not-judged"
)
// ManifestReadsInput is what manifest-reads takes.
type ManifestReadsInput struct {
}