log_prediction
Log a prediction whenever citing a specific day from an experience pack, capturing the recommended action, expected signal, and deadline. Returns an ID to track the outcome later.
Instructions
Log a pack-grounded prediction. REQUIRED whenever the assistant cites a specific relative_day of an installed experience pack as the basis for a real-world action recommendation. Captures: which step was cited, which case it applies to, what was recommended (and what was explicitly NOT recommended), the observable signal that resolves the prediction, and the window in days. Returns prediction_id for later log_outcome.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | Optional free-text context | |
| case_id | No | External reference for this case (CRM lead_id, ticket ID, etc.) — opaque string | |
| pack_id | No | The pack's slug (e.g. 'inbound-acquisition-with-free-pilot') | |
| client_id | No | [deprecated alias for case_id, accepted for backward compat] | |
| cited_step | No | The exact relative_day cited (e.g. 'day +57') | |
| confidence | No | [deprecated, removed from required schema 2026-04-27 — Claude confidence is uncalibrated until ≥30 outcome datapoints. Accepted for backward compat.] | |
| prediction | No | [deprecated] Free-text prediction. Use applied_action + expected_signal instead. Accepted for backward compat. | |
| pack_author | No | The pack's author handle (e.g. 'ivan-pasichnyk') | |
| applied_action | No | What the assistant recommended TO do, derived from the cited step | |
| expected_signal | No | Observable signal that resolves this prediction (e.g. 'counterparty signs both sides') | |
| memory_ids_used | No | Memory IDs that were retrieved for this prediction (for legacy Q-value updates on log_outcome) | |
| strategic_value | No | [deprecated, accepted for backward compat] | |
| prevented_action | No | What the assistant recommended NOT to do (negative-space prediction). Optional but encouraged — often the higher-value half. | |
| expected_window_days | No | Deadline in days for log_outcome to be called |