Add first-action scoped execution receipt checkpoint to claim activation pipeline#386
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
clas.execution.receipt.v1) before being considered live.Description
db/migrations/010_first_action_receipt_fields.sqlto createfirst_action_receipt_json,first_action_receipt_id,first_action_receipt_hash,first_action_receipt_status(defaultnot_generated),first_action_receipt_verified_at, andfirst_action_receipt_errorwith an index onfirst_action_receipt_status.POST /api/admin/generate-first-action-receiptthat enforces paid/approved gating, tenant signer ENS/KID, signer-records verified, genesis receipt present, and tenant proof gates, and then stores an unsigned execution-only challenge.POST /api/claims/submit-first-action-receiptto accept a tenant-submitted signed scoped execution receipt, verify schema, proof type, exact covers (receipt_id,verb,agent,action), signer ENS/KID matching, Ed25519 signature validity against the stored tenant public key, reject settlement-only or settlement-covered proofs, and persist verified receipt JSON/ID/hash/status.lib/receipts/first-action-receipt.jswith deterministicreceipt_id,actioninput/output hashes, and explicit verification error codes for invalid shapes, signer mismatch, kid mismatch, signature invalid, and public key missing.first_action_receiptstatus in the public claim pipeline (api/claims/status.js) and add UI pieces inpublic/claim.htmlandpublic/admin/claims.htmlto show status, receipt id/hash, error message, and a button to generate the challenge.tests/first-action-receipt.test.jscovering preflight gating, challenge shape, invalid signer/tamper/proof cases, and successful verified persistence.Testing
npm test, which executed the full suite including the newtests/first-action-receipt.test.js, and all tests passed.npm run check:links, and all local links/assets resolved successfully.Codex Task