Shared memory and context tools for agentic work.
Code Rooms
{
"recorded_at": "2026-03-24T23:56:55.321112+00:00",
"scenario_id": "warm_apply_batch_protected_state_recovery",
"scenario_name": "Warm recovery from apply_batch protected state rejection",
"scenario_tags": [
"warm-graph",
"recovery",
"surgical",
"apply-batch",
"runtime-safety"
],
"mode": "manual",
"execution_origin": "replay",
"source_ref": "docs/benchmarks/events/manual-apply-batch-protected-state-recovery.json",
"cold_graph_time_ms": null,
"warm_graph_time_ms": null,
"time_to_first_good_answer_ms": 3.8,
"time_to_full_proof_ms": 152.0,
"answer_quality": "high",
"plan_changed": false,
"false_start_count": 1,
"tests_identified_before_edit": 1,
"public_claim_worthy": true,
"workflow_notes": "Manual recovery has to notice the runtime file mistake, pick a real source target, and only then rerun the batch.",
"notes": "",
"events": [
"tool_name": "shell.notes",
"query": "apply_batch tried to overwrite graph state; choose a source file in the workspace manually before retrying",
"elapsed_ms": 1.3,
"payload_chars": 245,
"event_index": 1,
"opened_files": [],
"surfaced_files": []
},
"tool_name": "shell.rg",
"query": "rg -n \"handle_apply_batch\" m1nd-mcp/src/surgical_handlers.rs",
"elapsed_ms": 1.0,
"payload_chars": 365,
"surfaced_files": [
"m1nd-mcp/src/surgical_handlers.rs"
"event_index": 2,
"opened_files": []
"tool_name": "m1nd.apply_batch",
"query": "retry apply_batch against a source file instead of graph state",
"target": "m1nd-mcp/src/surgical_handlers.rs",
"elapsed_ms": 152.0,
"payload_chars": 350,
"proof_state": "proving",
"active_phase": "done",
"completed_phase_count": 5,
"phase_count": 5,
"remaining_phase_count": 0,
"progress_pct": 100.0,
"next_phase": null,
"progress_delivery": "live",
"progress_events": [
"event_type": "phase_completed",
"phase": "validate",
"phase_index": 1,
"progress_pct": 20.0,
"current_file": "m1nd-mcp/src/surgical_handlers.rs",
"next_phase": "write",
"elapsed_ms": 2.0,
"message": "Validation completed."
"phase": "write",
"phase_index": 2,
"progress_pct": 40.0,
"next_phase": "reingest",
"elapsed_ms": 5.0,
"message": "Batch write completed."
"phase": "reingest",
"phase_index": 3,
"progress_pct": 60.0,
"next_phase": "verify",
"elapsed_ms": 102.0,
"message": "Re-ingest completed."
"phase": "verify",
"phase_index": 4,
"progress_pct": 80.0,
"next_phase": "done",
"elapsed_ms": 136.0,
"message": "Verification completed."
"event_type": "batch_completed",
"phase": "done",
"phase_index": 5,
"next_suggested_tool": "heuristics_surface",
"next_suggested_target": "m1nd-mcp/src/surgical_handlers.rs",
"next_step_hint": "Inspect the edited source file next to confirm the redirected batch still deserves promotion.",
"message": "Batch edit completed."
}
"opened_files": [
"event_index": 3,
"files_opened": 1,
"repeat_reads": 1,
"search_iterations": 1,
"chars_surfaced": 960,
"token_proxy": 240,
"guidance_events": 0,
"guidance_followed": 0,
"reactivated_nodes": 0,
"resume_hints": 0,
"proof_states": [
"proving",
"proving"
"final_proof_state": "proving",
"progress_events": 5,
"max_progress_pct": 100.0,
"active_phases": [
"validate",
"write",
"reingest",
"verify",
"done"
"next_phases": [
"progress_event_types": [
"phase_completed",
"batch_completed"
"progress_delivery_modes": [
"live",
"live"
"live_progress_events": 5,
"replay_progress_events": 0,
"snapshot_progress_events": 0,
"progress_guidance_events": 1,
"progress_guidance_followed": 0,
"recovery_events": 0,
"recovery_followed": 0,
"repo_path": null,
"question": "Recover from an apply_batch write that targets a protected m1nd runtime state file, then redirect the batch into a real source file without risking runtime corruption.",
"expected_strength": "strong"