Sovereign-Stitch-JGA

April Keys: System Laws, Runbooks, and Launch Checklist

Version: 1.0
Target Launch: April 27, 2026
Owner Sign-off: [signature + timestamp]
Legal Review: [approval from counsel]


Part 1: System Laws (Enforceable Invariants)

See ARCH.md for the complete list of 8 core system laws. This section highlights enforcement mechanisms.

Law 1: Unidirectional Public Boundary

What it means: Public layer publishes content only; no inbound authenticated endpoint is reachable from the internet.

Enforcement:

Test:

npm run test:public-boundary
# Should verify: external → public = OK, external → system-b = DENIED

Law 2: Spine Does Not Store Customer Data

What it means: Spine is strategy/governance only; zero PII, zero payment records, zero project files.

Enforcement:

Test:

npm run test:spine-data-boundaries
# Should verify: spine.write({customerId: 'c123'}) -> REJECTED

Law 3: System B Does Not Bulk-Store Sensitive Records

What it means: System B stores only assignment metadata (contractor → state, project ID); not NDAs or payment logs.

Enforcement:

Test:

npm run test:system-b-boundaries
# Should verify: system-b.write({nda_text: '...'}) -> REJECTED

Law 4: State BRICs Are Fully Isolated

What it means: Each state owns its data; cross-state data flow is zero.

Enforcement:

Test:

npm run test:state-isolation
# Should verify:
#   - state-ca.read(state-tx.data) -> DENIED
#   - state-tx.read(state-ca.data) -> DENIED
#   - system-b routing to correct state -> OK

Law 5: Owners Room Is Restricted

What it means: MFA-only, no bulk export, restricted IP, immutable audit log.

Enforcement:

Test:

npm run test:owners-room-security
# Should verify:
#   - login without MFA -> DENIED
#   - bulk export -> DENIED
#   - approval without dual-auth -> DENIED

Law 6: Compliance Gate Precedes Business Calls

What it means: Sales calls, notifications, outreach disabled by default; enabled only after compliance sign-off.

Enforcement:

Artifact schema:

{
  "status": "APPROVED",
  "timestamp": "2026-04-20T00:00:00Z",
  "regulatoryUpdates": {...},
  "testResults": [...],
  "signature": "sha256-rsa-signature",
  "signedBy": "compliance-agent"
}

Test:

npm run test:compliance-gate
# Should verify:
#   - outbound call without artifact -> DENIED
#   - outbound call with expired artifact -> DENIED
#   - outbound call with valid artifact -> OK

Law 7: Stitch Brick Integrity

What it means: Every micro-brick has SHA-256 digest + Merkle log + consensus replication. Mismatch = auto-heal.

Enforcement:

Test:

npm run test:stitch-brick-integrity
# Should verify:
#   - write micro-brick -> digest stored -> can retrieve and verify
#   - corrupt one byte -> detection within 6h verification window
#   - corrupt one replica -> majority consensus continues
#   - corrupted node heals and rejoins quorum

Law 8: No Implicit Network Trust

What it means: Every BRIC-to-BRIC call is authenticated and authorized; deny-by-default.

Enforcement:

Test:

npm run test:zero-trust
# Should verify:
#   - public → system-b (no mTLS) -> DENIED
#   - system-b → state-bric (mTLS, allowed) -> OK
#   - state-bric → spine (not in permissions) -> DENIED

Part 2: Incident Response Runbooks

Incident: Prompt Injection Detected

Detection:

Response Steps:

  1. Create incident ticket (immutable ID).
  2. Notify Spine (sets AI_RISK_LEVEL = HIGH).
  3. Close business-call gate (gate flag = false).
  4. Compliance Agent is notified; begins review.
  5. Owner is alerted via Owners Room (requires VPN access).

Recovery:

Timeline:


Incident: Data Corruption Detected (Stitch Brick Mismatch)

Detection:

Response Steps:

  1. Quarantine affected node (remove from quorum).
  2. Attempt restore from last good checkpoint + log replay.
  3. If restore succeeds: node rejoins quorum.
  4. If restore fails: provision new node from secure supply-chain image, replay log.
  5. Forensic image captured for post-mortem.

Testing:

Timeline:


Incident: Credential Leak Detected

Detection:

Response Steps:

  1. Immediately revoke leaked credential (via key vault).
  2. Create incident ticket.
  3. Rotate all credentials in affected scope (related systems, same user, etc.).
  4. Audit access logs: check if credential was used maliciously.
  5. Notify affected users (e.g., contractor if their API key was leaked).
  6. Review: likely root cause (developer misconfiguration, supply chain, etc.).

Prevention:

Timeline:


Incident: Suspected AI Drift (Model Output Diverges from Policy)

Detection:

Response Steps:

  1. Create incident ticket with sample divergences.
  2. Notify Spine and Compliance Agent.
  3. Close business-call gate (if open).
  4. Compliance Agent runs impact assessment:
    • Query recent calls affected by drift.
    • Check for customer impacts or regulatory issues.
    • Generate list of required corrective actions (retrain, rollback, audit, etc.).
  5. Owner reviews impact assessment and approves remediation.
  6. Upon approval, remediation is applied (prompt update, model swap, policy adjustment).
  7. Verification tests run; gate re-opened only after passing.

Prevention:

Timeline:


Part 3: Launch Checklist

Target Date: April 27, 2026
Days Remaining: 38 (from March 20)

Architecture Phase (Days 1–7)

Acceptance Criteria:


Compliance & Governance Phase (Days 8–18)

Acceptance Criteria:


Operational Readiness Phase (Days 19–30)

Acceptance Criteria:


Launch Hardening Phase (Days 31–38)

Acceptance Criteria:


Part 4: April Keys Validation Checklist

Before launch, verify April Keys completeness:


Sign-offs

Technical Lead Sign-off

Owner Sign-off


Version History

Version Date Changes
1.0 2026-03-20 Initial April Keys package