Indexer: the seed's ask says a short digest, and the holder's own tools read its catalog revision (A-400, A-401)

Live on novox 2026-11-14 15:01 the operator channel refused the seed's ask for a 64-hex digest in its words, as a secret;
the Approve binds the whole digest through the option. The tool runner reads the catalog half for the indexer's own tools
on its account and was refused every minute.
This commit is contained in:
2026-11-14 15:03:12 +01:00
parent 6a91fa15f6
commit 3303e9170c
2 changed files with 9 additions and 3 deletions
@@ -537,7 +537,13 @@ func (p Proposal) composeAsk(key string) oc.Ask {
if p.Why != "" {
explain += "\nWhy: " + p.Why
}
explain += "\nDigest " + p.Digest
// The digest's first 12 hex only: the channel refuses a long hexadecimal string as a secret; the Approve binds the
// whole digest through the option's Binds (A-400).
if d := strings.TrimPrefix(p.Digest, "sha256:"); len(d) > 12 {
explain += "\nDigest sha256:" + d[:12] + "…"
} else {
explain += "\nDigest " + p.Digest
}
a := oc.Ask{ID: p.Ask, Headline: headline, Explanation: explain, Who: occ.Operator,
Expires: occ.FormatTime(p.At.Add(ProposalLasts)), OnExpiry: "nothing is written; the change waits to be proposed again",
About: "catalog.proposal." + key}
@@ -22,11 +22,11 @@ const RevisionInvoke = "seat:" + meshcatalog.Seat + "." + meshcatalog.VerbRevisi
// in invokes declares every seat verb, as the grants part reads it (A-390).
//
// Lead answer A-395: every part the newest trunk revision holds may read it, and so may the tool runner, which reads the
// catalog half for each module it serves on that module's or its own account; the holder stays refused.
// catalog half for each module it serves on that module's or its own account, the holder's own tools too (A-401).
func RevisionCallers(entries []meshcatalog.CatalogEntry, holder string) stdio.Callers {
out := stdio.Callers{ToolRunner}
for _, e := range entries {
if e.Module != holder && !slices.Contains(out, e.Module) {
if !slices.Contains(out, e.Module) {
out = append(out, e.Module)
}
}