No client names the holder of the seat mesh-provisioner: each reader keeps its own constant, held to its manifest (ADR 0625 section 4, issue 1966)

Claude-Session: https://claude.ai/code/session_01NcbgfFSnn24M3GcqttoU7i
This commit is contained in:
2026-11-05 19:36:21 +01:00
parent d630635229
commit 625d627794
21 changed files with 186 additions and 29 deletions
@@ -92,6 +92,9 @@ var BoundReads = []string{"gitea", "keycloak", "postgres", "route-adapter", "rou
// (novox/hq ADR 0625 §4).
const vaultModule = "mesh-vault"
// plansRead is the address a provider's manifest's `reads` names this seat's state plans by: the holder is this module.
const plansRead = Module + "." + meshprovisionerclient.PlansState
// boundRead is a provider's entries as this module reads them.
func boundRead(module string) string { return module + ".bound" }
@@ -783,10 +786,10 @@ func (h *Holder) unread(module string) string {
var decl struct {
Reads []string `json:"reads"`
}
if json.Unmarshal([]byte(manifest), &decl) != nil || slices.Contains(decl.Reads, meshprovisionerclient.PlansRead) {
if json.Unmarshal([]byte(manifest), &decl) != nil || slices.Contains(decl.Reads, plansRead) {
return ""
}
return module + " reads no plans of the seat (its manifest's reads do not name " + meshprovisionerclient.PlansRead +
return module + " reads no plans of the seat (its manifest's reads do not name " + plansRead +
"), so its helper never answers this key"
}