<?xml version="1.0" encoding="utf-8"?>
<rfc ipr="trust200902" docName="draft-singh-psi-01" category="info" submissionType="independent">
  <front>
    <title abbrev="PSI">Proof of Sovereign Integrity (PSI): A Cryptographic Protocol for Verifiable AI Regulatory Compliance</title>
    <author initials="K" surname="Singh" fullname="Kawaljeet Singh">
      <organization>Apex Intelligence Empire</organization>
      <address>
        <postal>
          <street></street>
          <city>Balaclava</city>
          <region>Victoria</region>
          <country>Australia</country>
        </postal>
        <email>kawaljeet.singh3008@gmail.com</email>
        <uri>https://apex-infrastructure.com</uri>
      </address>
    </author>
    <date year="2026" month="August" day="30"/>
    <area>General</area>
    <keyword>PSI</keyword>
    <keyword>cryptographic verification</keyword>
    <keyword>AI governance</keyword>
    <keyword>Merkle tree</keyword>
    <keyword>post-quantum</keyword>
    <abstract>
      <t>This document specifies the Proof of Sovereign Integrity (PSI) Protocol, version 1.2, a cryptographic framework enabling organizations to prove compliance with AI regulations (including the EU AI Act 2024/1689, NIST AI RMF, UK AI Safety Institute guidelines, and equivalent frameworks) without disclosing proprietary model architectures, training data, or inference logic.</t>
      <t>PSI achieves this through a combination of SHA-256 hash-chained audit trails, Ed25519 digital signatures, Merkle inclusion proofs, Groth16-compatible zero-knowledge commitments over BN128 fields, and a 3-node Multi-Party Computation (MPC) consensus mechanism with 2/3 threshold verification.</t>
      <t>This revision documents a deployed public reference implementation and adds optional post-quantum signature profiles and Bitcoin timestamp anchoring.</t>
    </abstract>
  </front>
  <middle>
    <section anchor="s-1" title="Introduction">
      <t>The proliferation of artificial intelligence systems across critical sectors has created an urgent need for verifiable compliance mechanisms. The EU AI Act mandates technical conformity assessment for high-risk AI systems. Existing compliance approaches suffer from IP exposure risk, non-verifiability, and reliance on trust.</t>
      <t>The PSI Protocol addresses these limitations through cryptographic verification primitives that enable mathematical proof of compliance without disclosing protected intellectual property. PSI v1.2 introduces Deterministic Mode (blocking non-compliant actions before commit) and the Sovereign Tribunal (human ratification).</t>
      <section anchor="s-1-1" title="Changes Since draft-singh-psi-00">
        <t><list style="symbols">
          <t>Added Section 17, documenting a deployed public reference implementation with public verification endpoints.</t>
          <t>Added an optional post-quantum signature profile (LMS-W4-SHA256 per NIST SP 800-208 and ML-DSA-65 per FIPS 204).</t>
          <t>Added Bitcoin timestamp anchoring via OpenTimestamps.</t>
          <t>Editorial corrections.</t>
        </list></t>
      </section>
    </section>
    <section anchor="s-2" title="Terminology">
      <t>Commit: An atomic action submitted for compliance verification.</t>
      <t>Predicate: A machine-readable regulatory requirement (e.g. EU AI Act Article 14).</t>
      <t>Commit Hash: SHA-256(JCS(action || predicate_id || timestamp)).</t>
      <t>Merkle Root: The root hash of the binary tree containing ledger entries.</t>
      <t>MPC Node: One of three independent verification nodes.</t>
      <t>Proof Bundle: A JSON document containing all cryptographic artifacts for verification.</t>
      <t>Sovereign Tribunal: A panel of 5 independent auditors providing human ratification.</t>
      <t>PIL: Protocol Intervention Layer (runtime execution gate).</t>
      <t>Receipt: A signed record attesting that one entry was sealed, carrying its digest, signature, Merkle leaf and identifier.</t>
    </section>
    <section anchor="s-3" title="Protocol Overview">
      <t>The PSI Protocol operates as a 4-stage pipeline:</t>
      <t>Stage 1 - COMMIT: Input action and predicate. Run deterministic pre-flight check. Compute commit_hash and merkle_leaf.</t>
      <t>Stage 2 - CHALLENGE: Evaluate commit against predicate violation patterns. Compute challenge_hash and record status.</t>
      <t>Stage 3 - PROVE: Generate Merkle inclusion proof. Generate Groth16-compatible ZK commitment over BN128 fields.</t>
      <t>Stage 4 - VERIFY: 3 MPC nodes independently verify the proof. 2/3 consensus required. Sign result with Ed25519.</t>
    </section>
    <section anchor="s-4" title="Cryptographic Primitives">
      <section anchor="s-4-1" title="Hash Function">
        <t>PSI uses SHA-256. Input MUST be canonicalized using RFC 8785 (JCS) before hashing.</t>
      </section>
      <section anchor="s-4-2" title="Digital Signatures">
        <t>Ed25519 (RFC 8032) is used for non-repudiation of Merkle roots and auditor verdicts.</t>
      </section>
      <section anchor="s-4-3" title="Merkle Trees">
        <t>Binary Merkle trees are constructed from leaf hashes. Deterministic ordering and leaf duplication for odd counts are required.</t>
      </section>
      <section anchor="s-4-4" title="Zero-Knowledge Commitments">
        <t>ZK commitments use BN128 finite field arithmetic. Proof elements (pi_A, pi_B, pi_C) demonstrate knowledge of action satisfying the predicate without revealing the action.</t>
      </section>
      <section anchor="s-4-5" title="Sequence Counter">
        <t>A monotonic sequence counter with gap detection prevents omission attacks on the ledger.</t>
      </section>
      <section anchor="s-4-6" title="Post-Quantum Profile (Optional)">
        <t>Long-lived evidence MAY additionally be signed with a hybrid post-quantum profile: LMS-W4-SHA256 stateful hash-based signatures (NIST SP 800-208) and/or ML-DSA-65 (FIPS 204), alongside Ed25519. Verification of the classical signature remains mandatory; the post-quantum layer extends the horizon of non-repudiation.</t>
      </section>
    </section>
    <section anchor="s-5" title="Verification Pipeline">
      <t>1. Commit: Generate ID, JCS canonical hash, and persist.</t>
      <t>2. Challenge: Match against violation patterns; assign status.</t>
      <t>3. Prove: Generate Merkle proof path and ZK commitment.</t>
      <t>4. Verify: MPC nodes audit integrity and sign root hash.</t>
    </section>
    <section anchor="s-6" title="Deterministic Pre-Flight">
      <t>The PIL evaluates actions BEFORE commit. If action matches HIGH or UNACCEPTABLE risk patterns, the PIL blocks execution and prevents ledger entry.</t>
    </section>
    <section anchor="s-7" title="Merkle Tree Construction">
      <t>Trees are computed by recursively hashing lexicographically sorted sibling pairs. ProofPath includes sibling hashes and positions.</t>
    </section>
    <section anchor="s-8" title="MPC Consensus Layer">
      <t>Verification is distributed across Alpha, Beta, and Gamma nodes. Consensus ensures that no single entity can forge a compliance certificate.</t>
    </section>
    <section anchor="s-9" title="Zero-Knowledge Commitments">
      <t>BN128 field operations provide the privacy layer. The system uses Groth16 elements to prove predicates without data disclosure.</t>
    </section>
    <section anchor="s-10" title="Sovereign Tribunal">
      <t>Human oversight is provided by 5 auditors. 3/5 threshold is required for final ratification of automated verdicts.</t>
    </section>
    <section anchor="s-11" title="Predicate Registry">
      <t>Contains machine-readable rules for EU AI Act, MiFID II, DORA, NIST AI RMF, and AU Privacy Act.</t>
    </section>
    <section anchor="s-12" title="Proof Bundle Format">
      <t>Standardized JSON including merkle_root, ed25519_signature, and zk_proof points.</t>
    </section>
    <section anchor="s-13" title="Legal-to-Technical Mapping">
      <t>Article 12: Immutable logging + RFC 8785.</t>
      <t>Article 14: Human Oversight PIL + Sovereign Tribunal.</t>
      <t>Article 15: MPC consensus + ZK-Integrity.</t>
    </section>
    <section anchor="s-14" title="Security Considerations">
      <t>Protocol mitigates log tampering, false-negatives, and single points of failure. IP protection is guaranteed by ZK mathematics.</t>
    </section>
    <section anchor="s-15" title="IANA Considerations">
      <t>Requests registration of application/psi-proof+json and the psi:// URI scheme.</t>
    </section>
    <section anchor="s-16" title="Orbital Integrity Protocol (OIP)">
      <t>Extends PSI to space-based compute. Defines LAM levels for radiation-tolerant proof generation on satellite hardware.</t>
    </section>
    <section anchor="s-17" title="Reference Implementation">
      <t>A public reference implementation of the PSI Protocol was deployed in August 2026, including a sealed genesis declaration and a public append-only ledger of sealed records. The following properties are normative for any deployment claiming PSI conformance.</t>
      <section anchor="s-17-1" title="Public Verification Endpoints">
        <t>Every receipt MUST be independently verifiable through at least one public endpoint, without account creation and without fee. The reference implementation publishes two independent verification doors:</t>
        <t><list style="empty">
          <t>https://www.ai-governance-standard.com/verify</t>
          <t>https://apex-infrastructure.com/verify/{hash}</t>
        </list></t>
        <t>If the doors ever disagree, the correction MUST be public and the finder credited.</t>
      </section>
      <section anchor="s-17-2" title="Receipts">
        <t>Each seal produces a receipt carrying the canonical SHA-256 digest of the sealed record, an Ed25519 signature, the Merkle leaf hash, and a unique receipt identifier. Verification MUST be reproducible from the published bytes alone.</t>
      </section>
      <section anchor="s-17-3" title="Bitcoin Anchoring">
        <t>Ledger roots MAY be anchored to the Bitcoin blockchain via OpenTimestamps. An anchor MUST be reported as pending until a real Bitcoin block includes it.</t>
        <t>Reference code: https://github.com/kawal393/psi-seal-spec (MIT).</t>
      </section>
    </section>
    <section anchor="s-18" title="References">
      <t>RFC 2119, RFC 8032, RFC 8785, EU 2024/1689, NIST SP 800-208, NIST FIPS 204, OpenTimestamps (https://opentimestamps.org).</t>
    </section>
  </middle>
</rfc>
