shadowgraph_record_outcome
Record an outcome for an existing decision to update its evidence-weighted confidence and capture lessons learned; optionally transition lifecycle state or auto-advance on success/failure.
Instructions
Record what happened to an existing decision and update its evidence-weighted confidence. Do not use for evidence (shadowgraph_confidence_evidence) or state-only moves (shadowgraph_update_status changes the lifecycle state). Replaces prior outcome and recalculates confidence; does not change lifecycle status unless autoTransition or decisionStatus/lifecycleStatus is supplied (conflicts error).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"decisionId": "<decisionId>",
"outcome": "<outcome>"
},
"name": "shadowgraph_record_outcome"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| outcome | Yes | Outcome: status, sourceClass, lessons, lifecycle state. | |
| project | No | Owning project; required unless originId is set, else the write is refused. | |
| originId | No | Capture-origin ID for unattributed records when project is omitted. | |
| decisionId | Yes | Identifier of an existing decision, as returned by shadowgraph_record_decision, shadowgraph_search, or shadowgraph_retrieve. | |
| autoTransition | No | Top-level alias to auto-transition decision lifecycle to validated or failed. | |
| decisionStatus | No | Top-level alias for target lifecycle status to transition the decision into. | |
| lifecycleStatus | No | Top-level alias for decisionStatus specifying target decision lifecycle status. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Stable entity identifier. | |
| goal | No | What the decision was trying to achieve. | |
| kind | Yes | Entity kind: decision, attempt, memory, fact, relation, review, or alternative. | |
| tags | No | Labels or extracted keywords stored with the decision. | |
| task | No | Task or problem context this decision addresses. | |
| actor | No | Who performed the write. | |
| title | No | Short name of the decision. | |
| chosen | No | The option that was chosen. | |
| client | No | Which client performed the write. | |
| status | No | Lifecycle state. Legacy records may carry a value this build does not recognise; shadowgraph_validate reports those. | |
| outcome | No | The recorded outcome, or null until one is recorded. | |
| project | No | Project namespace; null for an unattributed record or one imported from before projects. | |
| evidence | No | Normalised evidence entries: source, type, sourceClass, confidence, observedAt, detail. | |
| createdAt | No | ISO 8601 creation time. | |
| migration | No | Present only on migrated records; records the legacy value a field was mapped from. | |
| sessionId | No | Session identifier recorded with the write. | |
| sourceRaw | No | The original origin label when it differed from sourceClass. Audit only; never evidence. | |
| updatedAt | No | ISO 8601 time of the last change. | |
| confidence | No | Auditable confidence: initial, current (0-1), policy, a history entry per move, and a basis summarising the contributions it was folded from. Legacy records may lack basis. | |
| reopenWhen | No | Rules recorded directly on the decision that make it reconsiderable. | |
| supersedes | No | Identifiers of decisions this one replaced. | |
| visibility | No | Visibility boundary: project or global. | |
| assumptions | No | Assumptions the decision rests on. Searchable content. | |
| reviewAfter | No | ISO 8601 instant after which shadowgraph_maintain marks this decision stale. | |
| sourceClass | No | Claimed origin class recorded with the write. A claim, never proof. | |
| alternatives | No | Rejected alternatives, each with id, label, reasonRejected, status, and the reopenWhen rules that make it reconsiderable. | |
| supersededBy | No | Identifier of the decision that replaced this one. | |
| changeSummary | No | Summary of changes from superseded decisions. | |
| schemaVersion | No | Storage schema version this entity was written under. A value above the build’s own version is preserved rather than downgraded. | |
| failedAttempts | No | Attempt identifiers or notes attached to this decision. |