# PROMPT 12 — Forensic Baseline

> Internal engineering baseline. Reproduce, do not trust reports. All figures here were reproduced from code and
> tests on the host; none is a third-party attestation.

## What Prompt 12 is NOT

- Not greenfield. Not a second CAIN. Not a second catalog. Not a valuation.
- No new moat is created. Prompt 12 extends existing moats (Trust State, Security-Context Continuity, Trust Graph,
  Provenance, Predictive Trust, Adversarial Trust, Autonomous Trust Loop).

## Reused primitives (verified present, not replaced)

| Layer | Path | Role reused |
|---|---|---|
| Authority Mesh | `cain/authority/` | `AuthorityBudget`, `budget_problems`, attenuation |
| LEGION | `cain/legion/` | authority state, decay, continuity, fork, persistence (SQLite-WAL) |
| APEX | `cain/apex/` | ledger, threshold, autonomy, emergent calculus, evidence grading |
| CONTINUUM | `cain/continuum/` | continuity certificates, consequence envelope, hosted pipeline, properties |
| Sovereign | `cain/runtime/` | attestation, passport, supply chain, skills, transactions, mutation |
| Omniscience | `cain/omniscience/` | commit-time gate, registries, world state |
| E40 population fabric | `cain/gov40/` | hierarchical population governance (materialized + logical) |
| E36 collective governance | evidence bundles | Byzantine collective governance (reused conceptually) |

## Reproduced claims (this baseline)

- Existing formal properties: P1–P20, P41–P55, LEGION — pass.
- Prompt 12 adds P56–P70; the hosted property suite now runs **70/70**.
- Mutation suite: **40/40 killed** (was 34/34; +6 DYNASTY).
- Distributed authority lab: real multi-process (spawn) SQLite-WAL ledger; parent verifies; **chain_ok true**, 100
  events, 0 problems.
- Hosted pipeline: **44/44** wire probes matched; decision-ledger hash chain valid.
- Population attack lab: **100,000 deterministic cases, 0 false allows, 0 violations**.

## Known defects found and fixed while building Prompt 12

- `cain/legion/persistence.py`: concurrent processes could fork the authority hash chain (head read outside the
  write transaction). Fixed with `BEGIN IMMEDIATE`. (Also committed in the Prompt 11 final batch.)
- Mutation testing running in-process in the gateway starved the event loop and could leave a file mutated. Moved to
  a separate worker process that mutates a throwaway git worktree.

## Honest scope of physical / framework claims

- No physical hardware is claimed. All embodiments are SIMULATED.
- No framework adapter for population spawning is shipped in this batch.
- The 4 hosted stages enforce at the decision path; the caller's downstream execution is not bound yet.
