PERMIT_V2 §4.3 PR 2 (keel-permit): spec + schema + failure codes#8
Merged
Merged
Conversation
sftimeless
added a commit
that referenced
this pull request
May 25, 2026
…ical-helpers PERMIT_V2 §4.3 PR 2 (keel-permit): spec + schema + failure codes
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.
Summary
Phase 2 of the PERMIT_V2 §4.3 multi-party signature envelope implementation arc (doctrine locked 2026-05-23, captured in
feedback_permit_v2_signature_envelope_doctrine.mdin local memory).This PR ships the keel-permit half of Phase 2:
spec/permit-v2.md— the v2 spec covering the 5-slot signature envelope architectureschemas/permit-v2.schema.json— strict schema withadditionalProperties: falseat top level AND on each signature sub-objectspec/failure-codes.md— new failure code lexicon for the three new slotsThe 5-slot architecture (one existing + three new in §4.3 + one reserved)
Each slot has its own claim namespace, signed payload type, failure code prefix, and canonical helper. No semantic muddling between slots.
Companion PR
This PR's keel-api companion (https://github.com/keelapi/keel-api/pull/NEW — to be opened separately as a stacked PR against PR #140) implements:
app/services/permit_v2_canonical.pyapp/services/permit_v2_signing.pyverify_at_signing_timeintegration with PR 1's key registryBoth must merge for §4.3 to be functional.
Dependency chain
Doctrine locks honored
payload_typeas cryptographic domain separator (per §XII multi-model convergence)third_party_attestationsarrayTest plan
operator_approval.unexpectedfield)provider_attestation(reserved, not yet active)python3 tools/check_repo_integrity.py --require-jsonschemapasses🤖 Generated with Claude Code