Its 26 `<Module>_<state>` bucket constants (candidates, manifests, verdicts, packages, taken, the control records, pins, pending and the rest), its consumers, findings and first views were named from the constant Module; they are now index.Bucket(cred.Module, <state>), and its words name the state where they named the bucket. Builds: design 47 G A-296 Claude-Session: https://claude.ai/code/session_01NcbgfGKaxw984XyAPfLm4h
42 lines
3.0 KiB
Go
42 lines
3.0 KiB
Go
package index
|
|
|
|
import (
|
|
"git.novox.be/novox/mesh-delivery/modules/mesh-delivery-sdk/graph"
|
|
)
|
|
|
|
// FirstViewTools are the indexer's first-view tools (ADR 0621 §1, ADR 0622 §1, ADR 0631 §1): the tool, the state it answers, and
|
|
// the words of what that state holds. Each answers only its callers list (CallersEnv), which the manifest writes. The fourth
|
|
// first view, of which modules exist, is the seat mesh-catalog's verb revision (ADR 0663 §1, RevisionTool), granted by
|
|
// declaration, not by a list.
|
|
var FirstViewTools = []ViewedTool{
|
|
{Tool: "manifests", State: "manifests", Words: "every manifest the indexer keeps, by its digest."},
|
|
{Tool: "verdicts", State: VerdictsState, Words: "the judge's verdict on each manifest: accepted, waiting or refused."},
|
|
{Tool: "graph", State: graph.State, Words: "the module graph: each module's build, provision and verb edges, whose verb edges a want waits on."},
|
|
}
|
|
|
|
// ReadTools are the indexer's ordinary read tools, one per state its readers read (design 25 § 12.2).
|
|
var ReadTools = []ViewedTool{
|
|
{Tool: "indexer_read_manifests", State: "manifests", Words: "every manifest the indexer keeps, by its digest."},
|
|
{Tool: "indexer_read_predefined", State: PredefinedState, Words: "the predefined config values of each module on the trunk."},
|
|
{Tool: "indexer_read_config_candidates", State: ConfigCandidatesState, Words: "the config declarations of each open pull request."},
|
|
{Tool: "indexer_read_candidates", State: "candidates", Words: "the candidate groups: the pull requests sharing a branch, their heads and the modules each touches."},
|
|
{Tool: "indexer_read_packages", State: PackagesState, Words: "the published packages per series."},
|
|
{Tool: "indexer_read_graph", State: graph.State, Words: "the module graph: each module's build and provision edges."},
|
|
{Tool: "indexer_read_heard", State: HeardState, Words: "the forge messages the indexer heard and what it did with each."},
|
|
{Tool: "indexer_read_taken", State: "taken", Words: "each repository's merge the indexer took in last."},
|
|
{Tool: "indexer_read_findings", State: FindingsState, Words: "the indexer's findings, which the condition keeper raises and clears."},
|
|
{Tool: "indexer_read_seat_definitions", State: SeatDefinitionsState, Words: "the seat definitions the trunk's and each open pull request's contracts modules hold, resolved, or why one does not parse."},
|
|
{Tool: "indexer_read_unjudged", State: UnjudgedState, Words: "the manifests a take-in newly wrote that no judge pass judged yet, by digest, each with its module and merge; indexer_judge judges them."},
|
|
}
|
|
|
|
// ViewedTool is one tool over one state of the indexer's.
|
|
type ViewedTool struct {
|
|
Tool, State, Words string
|
|
}
|
|
|
|
// ViewedStates are the states the indexer's views family says: the ones its readers read.
|
|
var ViewedStates = map[string]bool{
|
|
ManifestsState: true, VerdictsState: true, PredefinedState: true, ConfigCandidatesState: true, CandidatesState: true,
|
|
PackagesState: true, HeardState: true, TakenState: true, FindingsState: true, SeatDefinitionsState: true, UnjudgedState: true,
|
|
}
|