Status: draft, v0.1.0. Scope: the lab harness in mirror/, the agents under test and the evidence it produces.
Assets
- Integrity of verdicts and certificates (a false pass is the worst outcome).
- Secrecy of private oracles and holdout scenarios (contamination makes scores meaningless).
- Integrity of evidence packets and the journal.
- The host and network around the lab (the agent under test must not reach them).
Threats and controls
| ID | Threat | Control in the lab | Tested by | Residual risk |
|---|---|---|---|---|
| T1 | Agent reads the oracle or holdout answers | Sanitised task; oracle files outside the task; HTTP client holds no harness reference | AT12 | Oracles are in the same repo; a process with file access could read them (MG-06) |
| T2 | Agent calls an action outside its grant or for another tenant | Scoped tokens, PDP forbids, tenant checks | AT4, scenario 011 | PDP is a stand-in for Cedar (MG-17) |
| T3 | Agent acts on injected instructions in documents, DOM, email or tool output | Untrusted content stays data; injection scenarios per channel; canary | AT6 | Only the governed script is tested; a model agent may behave differently |
| T4 | Agent claims success that did not happen | Oracle reconciles state and journal; G8 | AT8 | Free-text narrative is not checked |
| T5 | Retry after an uncertain commit doubles an external effect | Idempotency keys, replay store, G9 | AT7 | Compensation for partial failure not demonstrated (MG-08) |
| T6 | Kill does not stop pending effects | Kill revokes tokens and purges the outbox; G6 | AT9 | A call already inside Gateway.invoke completes |
| T7 | Revoked or stale credential still works | Validation on every call; G10 | AT4, scenarios 018-020 | Token lifetime is virtual time only |
| T8 | Runaway cost or loop | Envelope bounds, denial limit, pause | scenario 009 | Overshoot by one call's real cost (MG-18) |
| T9 | Evidence altered after the run | SHA-256 manifest with an exact file inventory, hash-chained journal, verify; optional Ed25519 signature with throwaway lab keys (signed certificate profile) | AT10, test_sig_001 to 013 | Unsigned by default: then the check is self-consistency only, and an attacker who rewrites both packet and manifest is not detected (MG-16). Signing uses throwaway keys; no real key custody or trusted time |
| T10 | Agent reaches the internet or host network | No sockets except loopback; web.fetch limited to .test fixtures; subprocess transport runs the agent in a child process with a URL and bearer only | AT12, XR-T01 | Default in-process transport is cooperative; the subprocess transport is a process boundary, not an OS sandbox (MG-12) |
| T11 | Test author approves their own agent | Segregation of duties in the registry; registered principals with permissions decide, not caller strings (AI-29) | AT11, XR tests | Principals are a synthetic directory in the registry file, not an identity provider |
| T12 | Harness bug passes an unsafe run | Naive arms must fail; invalid-harness outcome; deterministic re-runs | comparison | One harness, no independent reimplementation |
Race windows and timing limits
- Kill during a call. The kill check runs at the start of
invoke. A call that has passed it completes; its effect is journalled and G6 flags it if it lands after the kill event. Queued outbox messages are purged. - Human calls count as steps. Scripted human decisions go through the same gateway and add to the step counter, so a long approval chain consumes the agent's step budget. Documented, not changed.
- Budget. The pre-call check uses the tool's declared units; entity resolution computes real units afterwards, so a run can finish one call above the cap (seen: 40,100 against 40,000).
- Virtual time. Expiry, approval timeouts and wall-time bounds use the virtual clock. Real elapsed time is bounded separately by the harness timeout.
Out of scope for the lab
Real browsers, real email, real vendors, model inference, production identity providers, production Cedar, network interception, any live target. The brief forbids them without explicit authorisation, and none were used.