log_decision
Persist a decision to the Decision Memory audit trail. Link to a simulation run_id to bind the full DecisionPlan context. Call record_outcome later to close the feedback loop and measure prediction accuracy. Every logged decision is immutably hashed — no tampering possible.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| run_id | No | Simulation run_id that produced this decision (from simulate or recommend). | |
| context | No | Business context — what was the situation when this decision was made? | |
| risk_p5 | No | 5th-percentile downside at decision time. | |
| risk_p95 | No | 95th-percentile upside at decision time. | |
| risk_pol | No | Probability of loss (0–1) at decision time. | |
| rationale | No | Explanation of why this option was chosen. | |
| confidence | No | Confidence score (0–1) from the simulation. | |
| result_hash | No | SHA-256 output fingerprint from the simulation. | |
| request_hash | No | SHA-256 input fingerprint from the simulation. | |
| chosen_action | Yes | The action that was decided upon. | |
| expected_value | No | Expected outcome value at decision time. | |
| options_considered | No | All option names that were evaluated. |