Checker seat: the verb input, delivered ahead of B0 so the running indexer knows it (issue 1921) #171

Merged
mesh-tools merged 1 commits from fix/1921-checker-input-verb into main 2026-11-07 00:04:34 +00:00
+9 -2
View File
@@ -3,8 +3,8 @@ package catalogue
// CheckerSeat is the seat mesh-delivery-checker holds.
const CheckerSeat = "mesh-delivery-checker"
// checkerVerbs are the checker seat's verbs: ask a try, read one, end one by hand. Optional until the checker serves them
// everywhere.
// checkerVerbs are the checker seat's verbs: ask a try, read one, end one by hand, and answer a checking program's input.
// Optional until the checker serves them everywhere.
func checkerVerbs() []Verb {
return []Verb{
{Name: "try", Optional: true, Description: "Try a pushed head before its pull request is opened: the checker " +
@@ -28,5 +28,12 @@ func checkerVerbs() []Verb {
"id. A try that ended already is refused.",
Input: schema(map[string]string{"id": "the try's id, try-<digits>", "why": "why it is ended, in words"},
[]string{"id", "why"})},
{Name: "input", Optional: true, Description: "A checking program's input the checker keeps, by the sha256 of its " +
"exact bytes: the facts of a check its verdict is asked of, or the heads its seat list is asked of, as a run " +
"ask names it (its input's verb and digest). Answers the digest and the bytes, base64; a digest it keeps no " +
"input of is an error. Asked by the build module that runs the program, as its manifest's invokes grants it. " +
"Read-only.",
Input: schema(map[string]string{"digest": "the input's sha256, 64 lowercase hex digits, as the run ask names it"},
[]string{"digest"})},
}
}