Files
mesh-delivery/modules/mesh-delivery-watchman/internal/watch/names.go
T
jschoubben 63f944b525
mesh/delivery-group group feat/47-G-join11 rejected: composed together: the checker's verdict at the members' heads (69ffef340e92): mesh-delivery-checker
mesh/delivery closed: a newer head of the same pull request
mesh/check failed (2): mesh-delivery-checker: no published of the tagged version of go-meshconditions of me…; and 1 more | 63f944b52564 on 7221a1e5cd7f
B2 (watchman): invoke the branches follower's three seat verbs
Builds: design 47 G (A-296, A-298)

Claude-Session: https://claude.ai/code/session_01NcbgfGKaxw984XyAPfLm4h
2026-11-12 23:59:37 +01:00

36 lines
1.8 KiB
Go

package watch
import (
meshwatchdogs "git.novox.be/novox/mesh-contracts/health-and-repair/go/seats/meshwatchdogs"
"git.novox.be/novox/mesh-delivery/modules/mesh-delivery-contracts/go/seats/meshwants"
)
// The holders and buckets the watchman names, taken from its own manifest (module.json: its name, its `reads`, its
// states and the tools it invokes) and the seats' state names; a unit row checks them against it (TestManifestStateAndReads).
// No contract names a holder (novox/hq ADR 0625 §4, ADR 0634 §1).
const (
// ProvisionsBucket is the seat mesh-provisioner's state provisions (reads: mesh-provisioner.provisions).
ProvisionsBucket = "mesh-provisioner_provisions"
// IndexerModule is the holder of the seat mesh-catalog, named from this module's manifest (the indexer's `invokes` tools).
IndexerModule = "mesh-delivery-indexer"
// WantsState is the state wants of the seat mesh-wants, followed in the seat form (consumes: seat:mesh-wants.views.wants); the
// bucket a pulse or stuck key of it names is the holder's real bucket `<holder>_wants`, taken at each use (WantsAt, A-321).
WantsState = meshwants.StateWants
)
// OwnBuckets are the watchman's own states of the seat mesh-watchdogs, `<module>_<state>`.
type OwnBuckets struct{ Presence, Pulse, Stuck string }
// BucketsOf names the watchman's own buckets from module, its credential's, never a constant (design 47 G A-296).
func BucketsOf(module string) OwnBuckets {
return OwnBuckets{Presence: module + "_" + meshwatchdogs.StatePresence, Pulse: module + "_" + meshwatchdogs.StatePulse,
Stuck: module + "_" + meshwatchdogs.StateStuck}
}
// The findings a value of another part is raised as, named by their words.
const (
FindingManifestOutgrown = "manifest-outgrown"
FindingNodeAccountFallback = "node-account-fallback"
)