Enterprise Mirror · docs

Anatomy Lab handover

Replay export and proposed changes for the Lab; nothing changed there.

Draft for review · built from the evidence in mirror/examples · Lab evidence from a synthetic world with deterministic reference agents (no model inference). Not a production result, not a certification of any real system, not a statement about any model.

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

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.

Proposed changes (for whoever owns the Lab)

  1. 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.
  2. **App: load replays from content/mirror-replays/*.json.** Validate with the existing CaseScenario schema plus the label and source fields. Reject any file without label or with simulated other than true.
  3. 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.
  4. 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-unavailable and fail.stop-not-propagated to 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.
  5. 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 scenarioMirror scenario(s)
kyc.scn.successkyc-nominal-001, kyc-holdout-current-101
kyc.scn.incompletekyc-incomplete-002
kyc.scn.conflictkyc-conflict-003
kyc.scn.unsupportedkyc-unsupported-004
kyc.scn.unauthorisedkyc-unauthorised-005
kyc.scn.injectionkyc-injection-doc-006, -014, -015, -016
kyc.scn.unavailablekyc-unavailable-007
kyc.scn.rejectionkyc-rejection-008
kyc.scn.tokenskyc-budget-009
kyc.scn.recoverykyc-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.