From c3174cacda07ab0cdc77e6b8db5ec1c569bde24c Mon Sep 17 00:00:00 2001 From: chrisjleal <184772742+chrisjleal@users.noreply.github.com> Date: Mon, 23 Nov 2026 20:12:58 -0600 Subject: [PATCH] Gate check says when a proof is too old for the listing The gate check response now lists staleVerifierIds, an error with code GATE_REUSE_PROOF_STALE, and rows[].stale when a listing's gateFreshnessHours window refuses an older proof. Co-Authored-By: Claude Opus 5.5 --- openapi/public-api.json | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/openapi/public-api.json b/openapi/public-api.json index 1206082..20b280e 100644 --- a/openapi/public-api.json +++ b/openapi/public-api.json @@ -696,6 +696,29 @@ }, "description": "Verifier IDs that still need a proof to satisfy the gate." }, + "staleVerifierIds": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Missing verifier IDs whose matching proof is older than the gate allows. A gate with policy.gateFreshnessHours above 0 counts a proof only when its check ran within that many hours; 0 or unset sets no window. Run the check again to satisfy these rows." + }, + "error": { + "type": "object", + "description": "Present when the gate cannot pass for a stated reason: the gate is outside its open window, or a proof is older than the gate allows (code GATE_REUSE_PROOF_STALE).", + "properties": { + "code": { + "type": "string" + }, + "message": { + "type": "string" + } + }, + "required": [ + "code", + "message" + ] + }, "reusedVerifierProofs": { "type": "object", "description": "Map of verifierId to qHash (or qHash array) of existing proofs that can be reused instead of re-running a check.", @@ -720,6 +743,10 @@ "satisfied": { "type": "boolean" }, + "stale": { + "type": "boolean", + "description": "True when a matching proof exists but is older than the gate allows." + }, "qHash": { "type": "string", "nullable": true