diff --git a/go/seatlist/bootstrap/mesh-delivery-checker.json b/go/seatlist/bootstrap/mesh-delivery-checker.json index 90f99cc..4354b5c 100644 --- a/go/seatlist/bootstrap/mesh-delivery-checker.json +++ b/go/seatlist/bootstrap/mesh-delivery-checker.json @@ -140,6 +140,40 @@ "ended" ] } + }, + { + "name": "input", + "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.", + "optional": true, + "input": { + "type": "object", + "properties": { + "digest": { + "type": "string", + "description": "the input's sha256, 64 lowercase hex digits, as the run ask names it" + } + }, + "required": [ + "digest" + ] + }, + "answer": { + "type": "object", + "properties": { + "digest": { + "type": "string", + "description": "the digest asked" + }, + "input": { + "type": "string", + "description": "the input's exact bytes, base64, so no encoding on the way changes a byte the digest covers" + } + }, + "required": [ + "digest", + "input" + ] + } } ], "description": "The merge check's tries: start one, read one, end one. The checker's own events stay under its own subjects (ADR 0620 ยง2).", @@ -455,6 +489,65 @@ "to" ] } + }, + "judged-by": { + "type": "object", + "description": "the checking program that judged the check: where it was built, the key its build is kept under, whether this check's run built it, and the heads it read (ADR 0644, ADR 0656). Absent in a value written before it", + "properties": { + "program": { + "type": "object", + "properties": { + "repository": { + "type": "string" + }, + "commit": { + "type": "string" + }, + "dir": { + "type": "string" + }, + "package": { + "type": "string" + } + }, + "required": [ + "repository", + "commit", + "dir", + "package" + ] + }, + "key": { + "type": "string", + "description": "program- and 16 hex digits" + }, + "built": { + "type": "boolean" + }, + "heads": { + "type": "array", + "items": { + "type": "object", + "properties": { + "repository": { + "type": "string" + }, + "commit": { + "type": "string" + } + }, + "required": [ + "repository", + "commit" + ] + } + } + }, + "required": [ + "program", + "key", + "heads" + ] } }, "required": [