Files
mesh-delivery/modules/mesh-delivery-watchman/internal/watch/names.go
T
jschoubben f6163349af W1: the watchman reads the H1 take-in, the mover's entry and the want
The watchman follows the one model in one pass. Its take-in waits are the seat's take-in.pending
and take-in.taken, keyed <branch>.<source>, timed from the message's own time by the setting
take-in-bound (60 minutes by default), and seeded from indexer_pending's held take-ins; the group
bound goes. A taken-in mover's bus state is read from its catalog entry by fingerprint through
the seat mesh-catalog's verb entry, bus-state-overdue timed from the take-in. The manifest
verdicts and their findings, the head timing of source-moved, acting-part-late and
delivery-waits go, with their readers, consumes and the indexer_verdicts invoke. A want awaiting
its hand placement is not timed, and the want readers follow the H1 want. A record-opened is
heard on record-opened.<call>.

Builds: design 47 H §741, §744, §764 (the indexer: manifest-refused, manifest-accepted, the
watchman's findings; the assigner: acting-part-late, delivery-waits), §772; lead answers H-A-25,
H-A-37, H-A-49, H-A-70, H-A-78 (2), H-A-79, H-A-91 (2), H-A-94, H-A-95 (1), H-A-97, H-A-102

Claude-Session: https://claude.ai/code/session_01JG73KHUnBze48rdua8u2sy
2026-11-20 04:05:11 +01:00

35 lines
1.7 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 (
FindingNodeAccountFallback = "node-account-fallback"
)