Status: applied as an unmerged pull request (1 Dec 2026, see below). The repository was read (main branch, framework bundle 0.4.0) to match its shapes.
What the Lab does today
- Replays ten authored canonical KYC traces (
case_study.scenarios[].trace) on the Simulation page and links each to the Failure Lab throughinjected_failure. - Keeps an app-local engine for the Failure Lab's governed-versus-naive comparison, labelled as a simplified model.
- Never edits
framework/; requests changes throughFRAMEWORK_REQUESTS.mdand syncs withpnpm content:sync. - Is deterministic and makes no paid API calls.
What the Mirror offers it
python3 -m enterprise_mirror export-anatomy <packet> --out <file> reshapes one Mirror evidence packet into the Lab's CaseScenario shape: same trace event fields (seq, t_ms, step, event, component, system, actor, summary, decision_summary, data, tokens, latency_ms, cost_usd, status, simulated: true), canonical lifecycle step, event, component and system ids, and every journal event kept (unmatched kinds become ev.audit.recorded with the Mirror kind in data). Two samples are in examples/anatomy/.
Metrics are counted from the exported trace the way the Lab counts its canonical traces: tool_calls is the number of ev.tool.invoked events (committed effects), human_touches the number of events with actor human, duration_ms the last event's t_ms and total_cost_usd the sum of event costs (fixed 1 Dec 2026; earlier exports counted every gateway request as a tool call).
Each export carries a label: "Measured lab run: a deterministic reference agent (no model inference) against the Enterprise Mirror synthetic world. Not an authored teaching trace, not a model-based result and not a certification." and a source block with the run id, packet digest, journal head and grader version.
Applied as a pull request: R-010 with the ROE change (1 Dec 2026)
Felix decided on 1 Dec 2026 to apply the change request and the ROE change to the Lab. They are in pull request 1 on felixchess5/agent-anatomy-lab (branch mirror-measured-replays), which is not merged: merging redeploys the live Lab app, so Felix checks it first.
- Framework request: filed as R-011 in the Lab's
FRAMEWORK_REQUESTS.md, because R-010 there was already taken (names and tagline). It asks whether measured replays belong in the bundle, whether ROE decisions should be a first-class trace event, and whether the bundle should name the ROE. - App: items 2, 3 and 5 below, plus the ROE: the Simulation page has a separate "Measured in Enterprise Mirror" section showing each run's label, the ROE bundle id and digest (linked to the ROE page on the Atlas site), whether the ROE was enforced, and the lab grade. Item 4 (cross-links from the Failure Lab and other pages) is not in that pull request.
- Samples: the two files in
examples/anatomy/, copied tocontent/mirror-replays/in the Lab.
Proposed changes (for whoever owns the Lab)
- Framework request R-011 (called R-010 in the Mirror until 1 Dec 2026) "Measured replays beside canonical traces" (open). Ask the framework thread whether measured replays belong in the bundle (for example
case_study.measured_replays[]) or stay app-local. Until answered, keep them app-local. - **App: load replays from
content/mirror-replays/*.json.** Validate with the existingCaseScenarioschema plus thelabelandsourcefields. Reject any file withoutlabelor withsimulatedother than true. - Simulation page: a "Measured in Enterprise Mirror" tab, visually distinct from the authored traces, showing the label above the player and the outcome block (
mirror_outcome,hard_gates_passed,failed_gates). Never mix measured and teaching scores in one total. - Cross-links. Failure Lab: link
fail.indirect-injection,fail.unauthorized-tool,fail.non-idempotent-retry,fail.duplicate-event,fail.missing-approval,fail.human-rejection,fail.budget-exhaustion,fail.external-unavailableandfail.stop-not-propagatedto the matching Mirror scenarios. Assessment, Architecture and Lifecycle pages: one line each linking to the Mirror page on the Atlas site, labelled as a separate lab. - Tests. Add a content test that every replay's trace sums to its metrics, like the existing canonical-trace test.
Mapping of the ten canonical cases
| Lab scenario | Mirror scenario(s) |
|---|---|
| kyc.scn.success | kyc-nominal-001, kyc-holdout-current-101 |
| kyc.scn.incomplete | kyc-incomplete-002 |
| kyc.scn.conflict | kyc-conflict-003 |
| kyc.scn.unsupported | kyc-unsupported-004 |
| kyc.scn.unauthorised | kyc-unauthorised-005 |
| kyc.scn.injection | kyc-injection-doc-006, -014, -015, -016 |
| kyc.scn.unavailable | kyc-unavailable-007 |
| kyc.scn.rejection | kyc-rejection-008 |
| kyc.scn.tokens | kyc-budget-009 |
| kyc.scn.recovery | kyc-recovery-010 |
The Mirror adds 13 dev cases with no Lab equivalent (tenant boundary, approval timeout, contact denial, kill, revocation, policy outage, stale grant, duplicate delivery, malformed response, vendor change) and 3 holdout cases.
Limits
The exported tokens are zero because the reference agents make no model calls; cost is the lab's illustrative fee per tool. Event mapping is a best fit and is listed in enterprise_mirror/anatomy_export.py for review.