# RSP — real-source precision repair

**AGI: NOT ESTABLISHED · RSI: EXPERIMENTAL**

The sequel to the REAL workload. REAL measured **9 hits on 240 real scikit-learn files, all false
positives**. RSP asks the repair question on **real files with real positives**: 40 of this host's
own signing keys (a frozen private copy at `/root/.cain-rsp/corpus`, 0600, never published) and the
same 240 real source files.

## Measured

| rule | TP | FP | precision | recall |
|---|---|---|---|---|
| v1 naive `sk-…` | 0/40 | 1/240 files | **0.0** | **0.0** |
| v2 structural `sk-…` | 0/40 | 0/240 | undefined (0 hits) | **0.0** |
| **v3 PEM / AWS / entropy assignment** | **40/40** | **0/240** | **1.0** | **1.0** |

The naive rule is **wrong in both directions** on real material: it flags a CSS class name and misses
every real key. The repaired rule is exact on this labelled set: 40/40 keys, 0/240 source files.

## The boundary, on real key material

| probe | result |
|---|---|
| `/etc/shadow` (outside the declared roots) | refused — `TENANT_WIDE` requires quorum under the zero-trust floor |
| **a real SSH private key** (`/root/.ssh/cain42_cluster`) | **refused — same zero-trust floor** |
| tool not on the allowlist | refused, default-deny |
| replay the same JIT capability | first allowed, second refused (`ALREADY_CONSUMED`) |

The boundary refused to read a real private key. The scan only read the declared, scoped specimen.

## Cost

Every read is a `tools/call` through the production `MCPTransparentInterceptor` with a single-use JIT
capability; every result is in an Ed25519-signed, SHA-256 hash-chained memory. No model calls; $0 API.
