RESEARCH · Evulgare · NOT OFFICIAL EVIULON DOCTRINE

Principal Authorization for Autonomous Agents: Delegation, Exact-Step Consent, Succession, Revocation, and Receipt Lineage for Patefacere

Research section 5 of 8

JSON
{
"$schema": "https://patefacere.eviulon.org/schemas/revocation/v1",
"type": "object",
"properties": {
"event_id": {
"type": "string",
"description": "Unique identifier for this revocation or correction event."
},
"timestamp": {
"type": "string",
"format": "date-time"
},
"target_receipt_id": {
"type": "string",
"description": "The specific receipt_id of the authorization being revoked or corrected."
},
"action_type": {
"type": "string",
"enum": ["revocation", "correction", "suspension", "legal_void"],
"description": "'legal_void' is used specifically for receivership or dissolution events."
},
"reason_code": {
"type": "string",
"description": "Standardized codes: e.g., 'UETA_SEC_14_ERROR', 'DGCL_291_RECEIVERSHIP', 'EXACT_STEP_HALT'."
},
"initiating_party": {
"type": "object",
"properties": {
"did": { "type": "string" },
"role": { "type": "string", "description": "Principal, Patefacere Admin, Enterprise IAM, or Court Appointee." }
},
"required": ["did", "role"]
},
"cryptographic_proof": {
"type": "object",
"properties": {
"signature": { "type": "string" },
"predecessor_hash": { "type": "string" }
},
"required": ["signature", "predecessor_hash"]
}
},
"required": ["event_id", "timestamp", "target_receipt_id", "action_type", "reason_code", "initiating_party", "cryptographic_proof"]
}

9. Field-Complete Delegation Schema

This schema maps the strict monotonic attenuation from a Principal to an Agent, and subsequently to a Sub-Agent, mirroring Macaroon and UCAN architecture.

JSON
{
"$schema": "https://patefacere.eviulon.org/schemas/delegation/v1",
"type": "object",
"properties": {
"delegation_id": {
"type": "string"
},
"root_authorization_id": {
"type": "string",
"description": "Points explicitly back to the original principal-authorization receipt."
},
"delegator": {
"type": "object",
"properties": {
"agent_id": { "type": "string" },
"current_state_hash": { "type": "string" }
},
"required": ["agent_id"]
},
"delegatee": {
"type": "object",
"properties": {
"sub_agent_id": { "type": "string" },
"intended_purpose": { "type": "string" }
},
"required": ["sub_agent_id"]
},
"attenuation_caveats": {
"type": "array",
"items": { "type": "string" },
"description": "Additional monotonic restrictions appended to the root authority (cannot expand scope)."
},
"delegation_token": {
"type": "string",
"description": "The base64 encoded Macaroon, UCAN, or GNAP token representing the delegated state."
}
},
"required": ["delegation_id", "root_authorization_id", "delegator", "delegatee", "attenuation_caveats", "delegation_token"]
}

10. Verification Algorithm

The following precise pseudocode details how Patefacere (or a Relying Party) verifies an agent's request. It ensures strict compliance with exact-step logic, cryptographic validity, and the critical check of legal office status.
FUNCTION VerifyAgentAuthority(Request, AgentToken, PrincipalID, TargetService): // 1. Basic Cryptographic Validation IF NOT VerifySignature(AgentToken.Signature, AgentToken.PublicKey): RETURN REJECT("Invalid Signature")

// 2. Exact-Step Evaluation
IF Request.Phase != AgentToken.ExactStepPhase:
RETURN REJECT("Exact-Step Mismatch: Requested Phase not Authorized")

// 3. Temporal Validation (Expiry)
IF CurrentTime() > AgentToken.Expiry:
RETURN REJECT("Token Expired")

// 4. Revocation Ledger Sync & Evaluation
LatestLedger = Patefacere.GetLatestState(PrincipalID)
IF TargetService.IsOffline():
IF NOT IsWithinOfflineTolerance(TargetService.LastSync):
RETURN REJECT("Offline CRL out of date")
ELSE:
IF LatestLedger.ContainsRevocation(AgentToken.ID):
RETURN REJECT("Token Revoked")

// 5. Office & Legal Validity Check (Why Signature Is Not Enough)
PrincipalState = Eviulon.GetLegalState(PrincipalID)
IF PrincipalState.InReceivership == TRUE OR PrincipalState.IsDissolved == TRUE:
RETURN REJECT("Legal Authority Voided: Corporate Governance Event (DGCL 291/275)")
IF PrincipalState.Officer(AgentToken.IssuerKey).IsActive == FALSE:
RETURN REJECT("Legal Authority Voided: Signer No Longer In Office")

// 6. Conflicting Directives Check
IF LatestLedger.HasDeadlockOrConflict(PrincipalID):
RETURN REFUSE_TO_DECIDE("Unresolvable Conflict Between Principals (e.g., DGCL 226)")

// 7. Caveat Evaluation (Macaroons/UCAN)
FOR EACH Caveat IN AgentToken.Caveats:
IF IsFirstParty(Caveat):
IF NOT EvaluateConstraint(Caveat, Request.Context):
RETURN REJECT("First-Party Caveat Violated: " + Caveat.Rule)
ELSE IF IsThirdParty(Caveat):
DischargeToken = Request.GetDischarge(Caveat.ID)
IF NOT VerifyDischarge(DischargeToken, Caveat.VerifierKey):
RETURN REJECT("Third-Party Caveat Violated: Missing or Invalid Discharge Token")

// 8. Replay & Idempotency Prevention
IF LatestLedger.HasNonce(Request.Nonce):
RETURN REJECT("Replay Detected: Nonce Already Consumed")
IF Request.SequenceNumber <= LatestLedger.LastSequenceNumber:
RETURN REJECT("Invalid Sequence Number: Must be Strictly Increasing")

// All Checks Pass
RETURN APPROVED

END FUNCTION

11. Authorization Protocols Matrix

Dimension OAuth 2.0 GNAP (RFC 9635/9767) Macaroons UCAN Cap-Systems (OCap) Signed Legal Records Offline Manifests
Architecture Centralized Client/Server Role-separated (RQ/RO/RS) Decentralized, Proof-Carrying Decentralized, Local-First PKI Object-oriented references Centralized/Ledger-backed P2P / Airgapped
Delegation Poor (Requires new token) Better (Rich interactive negotiation) Excellent (Chained HMACs) Excellent (Chained PKI) Native (Pass-by-reference) Manual (Power of Attorney) Static (Pre-shared)
Attenuation Static Scopes Dynamic Grants Monotonic Caveats Monotonic Capabilities Object wrapping Fixed by document text Fixed by manifest
Offline Validation No (Introspection req.) No (Requires AS interaction) Yes (If symmetric key known) Yes (Pure PKI validation) N/A (Runtime execution) No (Requires notary/registry) Yes (By design)
Client Registration Pre-registered (Static) Dynamic / None Required None Required None Required None Required Entity Registration Req. Static Key Pre-loading
Third-Party Logic External federations Complex multi-party routing Native (Third-party caveats) Via Proofs/Delegation Via Facets/Proxies Court/Notary involvement Hardcoded logic only
Identity vs Auth Conflated (often) Strictly Separated Strictly Separated Separated (DID based) Wholly separated Bound to physical identity Bound to hardware root
Legal Interop Low (Standard API focus) Medium (Rich metadata support) Medium (Programmable logic) Medium (Verifiable Claims) Low (Software level only) High (UETA/E-SIGN native) Medium (Audit logs)
Revocation Token Introspection Grant Management API External / Short expiry limits External / Short expiry limits Reference deletion Legal injunction / Ledger None / Hardware limit
Patefacere Fit Poor Strong for Interactive Negotiation Excellent for Execution Excellent for Edge Devices Conceptual overlap Foundational Baseline Fallback only

12. 40 FAQs

Source: Evulgare/Autonomous Agent Auth Research.md · SHA-256: ef0de86ed5b1180a0cf2c4c9546f2b61281d6ae159fe4d09d1a5d1ad02b6c001