fix: use signature validity for receipt sealed report and commit / push allowed - #18
Conversation
…h allowed Know-Code-Verified: 574a346e9d10ba631a9e6531f1d53c2a63d3b38f732019e676d10b56430e4083
PR SummaryLow Risk Overview JSON output adds When A regression test builds a fully signed pipeline state denied only for the trailer and asserts Reviewed by Cursor Bugbot for commit e6b7a82. Bugbot is set up for automated code reviews on this repo. Configure here. |
Closes #2
Summary
Makes
know-code statusdistinguish an attestation receipt’s signature validity from whether a commit or push is currently allowed. It also prevents a contradictoryallowed: falseresponse with no actionable blocker.What changed
gate.jsonagainst the local attest public key and exposes the result asreceiptSealedin JSON.receipt ... sealed=field, instead of reusing the broader authorization decision.runCheckdenies an otherwise complete pipeline (for example, because the pending commit message lacksKnow-Code-Verified), adds its reason and command as the status blocker and next step.Why
A valid receipt can coexist with a temporarily closed commit/push gate: after a pass, the next commit still needs a grounded trailer. Status now reports both facts accurately and directs the user to
know-code commit -m "…"rather than implying that the receipt itself is unsealed.Coverage and verification
receiptSealed: true, the check-level blocker, and the commit command.npm run lintnpm run buildnpm test