CAP Protocol Technical Specification (Draft)

This directory contains the draft version of the Control Authority Protocol (CAP) v1 technical specification. The specification is developed based on the architecture blueprint in docs/en/blueprint/, covering the 6 core capabilities listed in §3.1 of Chapter 3 of the blueprint.

Document Structure

ChapterFileContent
Chapter 000-Introduction and Conformance.mdDocument status, scope, RFC 2119 keywords, conformance levels, normative references
Chapter 101-Architecture and Roles.mdProtocol roles, trust chain, external interface contracts
Chapter 202-Data Model.mdCore data structures (Authorization_Descriptor, Trusted_Ticket, Session, Verification_Key)
Chapter 303-Offline Authorization Protocol.mdComplete Authorization_Descriptor lifecycle protocol flow
Chapter 404-Online Ticket Protocol.mdComplete Trusted_Ticket flow and degradation
Chapter 505-Session Management and Liveness Detection.mdSession state machine, binding rules, heartbeats, dual determination, timeout reclamation
Chapter 606-Control Authority Handover Protocol.mdThree Handover_Policy policy types, atomicity guarantees, timeout rollback
Chapter 707-Resource Access Mode.mdSemantics of read/write/execute/configure, read-write lock matrix
Chapter 808-Cryptography and Signatures.mdAlgorithm set, key formats, distribution, and rotation
Chapter 909-Error Codes and Conformance Levels.mdStandard error code table, conformance declaration
Chapter 1010-Security Considerations.mdThreat model, known risks, and mitigations
  1. First read: Chapter 0 → Chapter 1 → Chapter 2 → Chapter 3
  2. Implementing terminal: Chapters 0–3 → Chapters 5, 7 → Chapters 8, 9
  3. Implementing issuer: Chapters 0–2 → Chapters 3, 4 → Chapter 8
  4. Implementing iFay_Runtime: Chapters 0, 1 → Chapter 5 → Chapter 9
  5. Security review: Chapter 10 + cross-reading of related chapters

Draft Status

This draft is in the discussion phase. Prior to formal release:

  • Field names, error codes, and constraint thresholds may be adjusted
  • Chapter structure may be reorganized
  • No backward compatibility is guaranteed

After discussions stabilize, the contents of this directory will be released as docs/en/specification/2025-10-25/, the first formal version of the CAP protocol.

  • Architecture blueprint: docs/en/blueprint/
  • Schema definitions (draft): schema/draft/
  • Other language versions: This specification currently has zh-CN, zh-TW, ja, and ko versions; remaining languages will be translated prior to formal release