mcp_engram_quick_trace
Captures structured trace blocks at each decision fork, chaining them via prev_in_trace for auditable history. Logs decision, why, spatial context, and goal context.
Instructions
Low-friction trace capture → structured trace:* block with prev_in_trace chain. Use at every fork; chain prev from trace_chain.head. Post-edit: run reflection loop or mcp_engram_safe_edit_and_verify. FEW-SHOT EXAMPLES: (1) Edit fork: {"decision":"Implement edit_fidelity module","why":"Composite tools need testable helpers","spatial_context":"crates/engram-server/src/edit_fidelity.rs:1","goal_context":"goal:agent_tool_fidelity_v1"} (2) Post-edit delta: {"decision":"Hardened MCP descriptions with few-shots","why":"Agents need copy-pasteable JSON","prev":"trace:1780000000_prior-step"}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| why | Yes | The real justification for the path taken | |
| deny | No | Alternatives/risks being rejected (A/D/R; optional) | |
| prev | No | Previous trace concept name if chaining (optional) | |
| affirm | No | Core positive claim, intent, or state being advanced (A/D/R triad; optional) | |
| context | No | Ritual, spatial file, conv:arc, or any relevant context (free text, optional) | |
| decision | Yes | One clear sentence describing the fork or decision | |
| reconcile | No | Synthesis / coherence step (A/D/R 'fruit' carrier; optional) | |
| alternatives | No | What else was seriously considered (optional) | |
| goal_context | No | Goal ID this trace serves (optional but strongly recommended when goals are active) | |
| would_falsify | No | What would make you reverse this later (optional) | |
| process_context | No | Optional process:engram.* key — emits realized_by edge for process_metrics (WS-3) | |
| spatial_context | No | Code locus as file.rs:line (e.g. store.rs:4023). Absolute paths normalized to file.rs:line. File-only accepted with soft warning; ENGRAM_REQUIRE_LINE_CONTEXT=1 hard-rejects missing :line. Auto-wires edited_at to matching AST blocks. |