index.Module is gone: the indexer and its registry carry the credential's module (findings' observer and ids, its own entry and graph key, the history subject, the views emitter and reader), the tools take the served-as module. Builds: design 47 G A-296, §428 Claude-Session: https://claude.ai/code/session_01NcbgfGKaxw984XyAPfLm4h
35 lines
1.5 KiB
Go
35 lines
1.5 KiB
Go
package index
|
|
|
|
// The holders, states and buckets the indexer names, taken from its own manifest (module.json: its name, its `state`, its
|
|
// `reads`) and from the manifests of the holders it reads; a unit row checks them against the manifest
|
|
// (TestTheNamesAreTheManifests). No contract names a holder (novox/hq ADR 0625 §4, ADR 0634 §1).
|
|
const (
|
|
// The indexer's own states, with the revisions each keeps per key (module.json `state`).
|
|
CandidatesState = "candidates"
|
|
CandidatesHistory = 10
|
|
ModulesState = "modules"
|
|
ManifestsState = "manifests"
|
|
ManifestsHistory = 1
|
|
// VerdictsState is in verdicts.go.
|
|
VerdictsHistory = 5
|
|
PredefinedState = "predefined"
|
|
ConfigCandidatesState = "config-candidates"
|
|
PackagesState = "packages"
|
|
PackagesHistory = 5
|
|
TakenState = "taken"
|
|
PredefinedListKey = "list"
|
|
ForgeBridgeModule = "mesh-delivery-forge-bridge"
|
|
GateModule = "mesh-delivery-gate"
|
|
CheckerModule = "mesh-delivery-checker"
|
|
PreviewsBucket = CheckerModule + "_previews"
|
|
PreviewsHistory = 5
|
|
toolchainsState = "toolchains"
|
|
)
|
|
|
|
// ToolchainsBucket is the toolchains state of a build module (reads: mesh-build-go.toolchains, mesh-build-node.toolchains).
|
|
func ToolchainsBucket(module string) string { return module + "_" + toolchainsState }
|
|
|
|
// Bucket is the bus's bucket of the indexer's own state, `<module>_<state>`, module its credential's, never a constant
|
|
// (design 47 G A-296).
|
|
func Bucket(module, state string) string { return module + "_" + state }
|