Constitutional Execution Infrastructure CEI Book - Appendix G

Appendix G

REST API & SDK Specification

This appendix defines a reference interface for interacting with Constitutional Execution Infrastructure (CEI). The API exposes governance capabilities independently of implementation language, while SDKs provide strongly typed integrations for client applications.

Applications should request governed execution through stable interfaces rather than embedding governance logic directly in business code.

1. API Design Principles

2. Core Resources

ResourceDescription
ExecutionSubmit consequential actions for governance.
AuthorityValidate delegated authority.
AdmissibilityEvaluate constitutional eligibility.
LedgerAccess immutable execution history.
ReplayInitiate replay and verification.
ProjectionRetrieve derived operational views.

3. Reference Endpoints

POST   /v1/executions
POST   /v1/authority/check
POST   /v1/admissibility/evaluate

GET    /v1/ledger/{eventId}
GET    /v1/ledger

POST   /v1/replay
GET    /v1/replay/{replayId}

POST   /v1/projections/rebuild
GET    /v1/projections/{projectionId}

4. Example Request

{
  "requestId": "REQ-001",
  "operation": "payment.approve",
  "authorityId": "AUTH-42",
  "evidence": ["EVD-1001"]
}

5. Example Response

{
  "decision": "GO",
  "decisionId": "DEC-9001",
  "policyVersion": "1.2.0",
  "ledgerEvent": "EV-12001",
  "status": "admissible"
}

6. Error Model

HTTPMeaning
400Malformed request.
401Authentication required.
403Authority denied.
409Governance conflict.
422Insufficient evidence or inadmissible request.
500Runtime failure.

7. SDK Responsibilities

8. Versioning

Public interfaces should be versioned independently of runtime implementations. Breaking changes should result in a new major API version while preserving compatibility for existing clients where practical.

9. Conformance

Appendix Summary

The REST API & SDK Specification provides a stable integration layer for CEI. Applications interact through well-defined contracts while governance behavior remains centralized within the constitutional runtime.

Next: Appendix H — Governance Policy Schema (YAML & JSON).

Engineering Evidence

Evidence and verification layer

This document forms part of the CEI publication record. Supporting evidence is organized through the engineering-evidence archive, specifications, architecture documentation and replay verification materials.

Document
CEI_Book_Appendix_G_REST_API_SDK_Specification.html
Edition
First Public Edition
Version
1.1