Skip to main content
Glama
ShadowGraph

ShadowGraph

Official

shadowgraph_record_decision

Records a decision with its chosen option, reasoning, evidence, assumptions, rejected alternatives, and reopen conditions so teams can audit and revisit it when circumstances change.

Instructions

Record one decision: chosen option, assumptions, evidence, and rejected alternatives with reopenWhen rules. Use shadowgraph_record_attempt for something tried, shadowgraph_record_fact for an observation, shadowgraph_remember for a note. Appends a decision and a journal entry; without idempotencyKey each call adds another and commits a revision.

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": {
      "title": "<title>",
      "chosen": "<chosen>"
    },
    "name": "shadowgraph_record_decision"
  }
}

Input Schema

NameRequiredDescriptionDefault
goalNoWhat the decision is meant to achieve. Searchable content.
tagsNoFree-form labels stored with the decision. Searchable content.
taskNoTask, goal context, or ticket identifier this decision addresses. Searchable content.
actorNoWho performed this write, such as an agent or person name. Stored for audit; never used to grant trust.
titleYesShort name of the decision. Required, non-empty, and searchable content.
chosenYesThe option actually chosen. Required, non-empty, and searchable content.
clientNoWhich client software performed this write, such as the host application name.
reasonNoRationale or motivation for making or superseding with this decision. Searchable content.
statusNoInitial lifecycle status of the decision; defaults to proposed.
projectNoOwning project; required unless originId is set, else the write is refused.
evidenceNoSupporting evidence. Counted as declared evidence in the confidence basis, but never re-checked.
originIdNoCapture-origin ID for unattributed records when project is omitted.
sessionIdNoCaller-owned identifier that groups related writes in the audit trail.
confidenceNoStarting confidence, 0-1. Defaults to 0.5. Later outcomes and evidence move it from this baseline; it is a degree of belief, never a verification status.
reopenWhenNoReopen conditions when alternatives are omitted; accepts target/expected aliases. Symbolic operators: >=, <=, ==, !=, >, <.
supersedesNoIdentifier or list of identifiers of earlier decisions that this decision replaces.
visibilityNoVisibility scope for cross-project recall and context: project (default) or global.
assumptionsNoWhat the decision takes for granted. Record each as a fact too if it should be able to reopen the decision.
reviewAfterNoISO 8601 instant after which maintenance marks this decision stale.
sourceClassNoClaimed origin, never proof: agent_claimed (the default), tool_observed, human_confirmed, or production_verified. It weights confidence only. An unrecognised label downgrades to agent_claimed, kept verbatim in sourceRaw.
alternativesNoOptions considered and rejected. Alternatives belong to the decision and have no separate write API; they are what shadowgraph_review reconsiders.
changeSummaryNoSummary of differences or architectural changes compared to superseded decisions.
failedAttemptsNoIdentifiers or descriptions of failed attempts that motivated this decision.
idempotencyKeyNoRetry identity within the project or origin and operation (also scope/type/key for memory). Reuse it to recover the original canonical ID; this key is never an entity ID.

Output Schema

NameRequiredDescriptionDefault
idYesStable entity identifier.
goalNoWhat the decision was trying to achieve.
kindYesEntity kind: decision, attempt, memory, fact, relation, review, or alternative.
tagsNoLabels or extracted keywords stored with the decision.
taskNoTask or problem context this decision addresses.
actorNoWho performed the write.
titleNoShort name of the decision.
chosenNoThe option that was chosen.
clientNoWhich client performed the write.
statusNoLifecycle state. Legacy records may carry a value this build does not recognise; shadowgraph_validate reports those.
outcomeNoThe recorded outcome, or null until one is recorded.
projectNoProject namespace; null for an unattributed record or one imported from before projects.
evidenceNoNormalised evidence entries: source, type, sourceClass, confidence, observedAt, detail.
createdAtNoISO 8601 creation time.
migrationNoPresent only on migrated records; records the legacy value a field was mapped from.
sessionIdNoSession identifier recorded with the write.
sourceRawNoThe original origin label when it differed from sourceClass. Audit only; never evidence.
updatedAtNoISO 8601 time of the last change.
confidenceNoAuditable 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.
reopenWhenNoRules recorded directly on the decision that make it reconsiderable.
supersedesNoIdentifiers of decisions this one replaced.
visibilityNoVisibility boundary: project or global.
assumptionsNoAssumptions the decision rests on. Searchable content.
reviewAfterNoISO 8601 instant after which shadowgraph_maintain marks this decision stale.
sourceClassNoClaimed origin class recorded with the write. A claim, never proof.
alternativesNoRejected alternatives, each with id, label, reasonRejected, status, and the reopenWhen rules that make it reconsiderable.
supersededByNoIdentifier of the decision that replaced this one.
changeSummaryNoSummary of changes from superseded decisions.
schemaVersionNoStorage schema version this entity was written under. A value above the build’s own version is preserved rather than downgraded.
failedAttemptsNoAttempt identifiers or notes attached to this decision.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.44.5
    • changedOutput schema / description
      Previous value: -"A stored decision, including its alternatives and auditable confidence basis."New value: +"A newly recorded decision with its canonical ID, rejected alternatives, and initial confidence basis."
  2. Changed6 schema fields changedv0.44.3
    • addedInput schema / $defs
      Added value: +{
      +  "jsonValue": {
      +    "anyOf": [
      +      {
      +        "type": "string"
      +      },
      +      {
      +        "type": "number"
      +      },
      +      {
      +        "type": "boolean"
      +      },
      +      {
      +        "type": "null"
      +      },
      +      {
      +        "items": {
      +          "$ref": "#/$defs/jsonValue"
      +        },
      +        "type": "array"
      +      },
      +      {
      +        "additionalProperties": {
      +          "$ref": "#/$defs/jsonValue"
      +        },
      +        "type": "object"
      +      }
      +    ],
      +    "description": "Any lossless JSON value: string, finite number, boolean, null, array, or object."
      +  }
      +}
    • changedInput schema / properties / alternatives / items / properties / label / description
      Previous value: -"Name of the rejected option. Required in practice: an alternative without a non-empty label is rejected."New value: +"Name of the rejected option. Required and non-empty."
    • changedInput schema / properties / alternatives / items / properties / reopenWhen / description
      Previous value: -"Rules making this alternative reconsiderable: plain keys, symbolic strings (\"key >= value\"), or { key, operator, value } (accepts target/expected aliases) with symbolic operators (>=, <=, ==, !=, >, <) or words."New value: +"Rules making this alternative reconsiderable: legacy keys, symbolic strings, or structured rules using stored facts and key/value or target/expected aliases. Symbolic operators: >=, <=, ==, !=, >, <."
    • addedInput schema / properties / alternatives / items / properties / reopenWhen / items
      Added value: +{
      +  "anyOf": [
      +    {
      +      "description": "A legacy changedFacts key or symbolic condition such as \"key >= value\".",
      +      "type": "string"
      +    },
      +    {
      +      "anyOf": [
      +        {
      +          "required": [
      +            "key",
      +            "value"
      +          ]
      +        },
      +        {
      +          "required": [
      +            "key",
      +            "expected"
      +          ]
      +        },
      +        {
      +          "required": [
      +            "target",
      +            "value"
      +          ]
      +        },
      +        {
      +          "required": [
      +            "target",
      +            "expected"
      +          ]
      +        }
      +      ],
      +      "properties": {
      +        "expected": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "number"
      +            },
      +            {
      +              "type": "boolean"
      +            },
      +            {
      +              "type": "null"
      +            },
      +            {
      +              "items": {
      +                "$ref": "#/$defs/jsonValue"
      +              },
      +              "type": "array"
      +            },
      +            {
      +              "additionalProperties": {
      +                "$ref": "#/$defs/jsonValue"
      +              },
      +              "type": "object"
      +            }
      +          ],
      +          "description": "Alias for value; conflicting value and expected operands are rejected."
      +        },
      +        "key": {
      +          "description": "Stored fact key to evaluate; use key or its target alias.",
      +          "minLength": 1,
      +          "type": "string"
      +        },
      +        "operator": {
      +          "description": "Comparison to apply, as a supported word or symbolic alias. Defaults to equals.",
      +          "enum": [
      +            "equals",
      +            "not_equals",
      +            "contains",
      +            "greater_than",
      +            "less_than",
      +            "gte",
      +            "lte",
      +            "between",
      +            "in",
      +            "not_in",
      +            ">=",
      +            "<=",
      +            "==",
      +            "===",
      +            "=",
      +            "!=",
      +            "!==",
      +            "<>",
      +            ">",
      +            "<"
      +          ],
      +          "type": "string"
      +        },
      +        "target": {
      +          "description": "Alias for key; conflicting key and target values are rejected.",
      +          "minLength": 1,
      +          "type": "string"
      +        },
      +        "unit": {
      +          "description": "Optional comparison unit.",
      +          "enum": [
      +            "ms",
      +            "s",
      +            "sec",
      +            "min",
      +            "h",
      +            "hr",
      +            "d",
      +            "%",
      +            "pct"
      +          ],
      +          "type": "string"
      +        },
      +        "value": {
      +          "anyOf": [
      +            {
      +              "type": "string"
      +            },
      +            {
      +              "type": "number"
      +            },
      +            {
      +              "type": "boolean"
      +            },
      +            {
      +              "type": "null"
      +            },
      +            {
      +              "items": {
      +                "$ref": "#/$defs/jsonValue"
      +              },
      +              "type": "array"
      +            },
      +            {
      +              "additionalProperties": {
      +                "$ref": "#/$defs/jsonValue"
      +              },
      +              "type": "object"
      +            }
      +          ],
      +          "description": "Expected operand; use value or its expected alias. Null, false, zero, and empty string are explicit values."
      +        }
      +      },
      +      "type": "object"
      +    }
      +  ]
      +}
    • addedInput schema / properties / alternatives / items / required
      Added value: +[
      +  "label"
      +]
    • changedInput schema / properties / reopenWhen / description
      Previous value: -"Reopen conditions when alternatives are omitted; accepts target/expected aliases."New value: +"Reopen conditions when alternatives are omitted; accepts target/expected aliases. Symbolic operators: >=, <=, ==, !=, >, <."
  3. Changed16 schema fields changedv0.44.1
    • changedInput schema / properties / alternatives / items / properties / reopenWhen / description
      Previous value: -"Rules that make this alternative worth reconsidering. Each is either a fact key as a plain string, matched only against changedFacts, or an object { key, operator, value } evaluated against stored facts so it still fires after a restart. operator defaults to equals."New value: +"Rules making this alternative reconsiderable: plain keys, symbolic strings (\"key >= value\"), or { key, operator, value } (accepts target/expected aliases) with symbolic operators (>=, <=, ==, !=, >, <) or words."
    • addedInput schema / properties / changeSummary
      Added value: +{
      +  "description": "Summary of differences or architectural changes compared to superseded decisions.",
      +  "type": "string"
      +}
    • addedInput schema / properties / failedAttempts
      Added value: +{
      +  "description": "Identifiers or descriptions of failed attempts that motivated this decision.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / reason
      Added value: +{
      +  "description": "Rationale or motivation for making or superseding with this decision. Searchable content.",
      +  "type": "string"
      +}
    • addedInput schema / properties / reopenWhen
      Added value: +{
      +  "description": "Reopen conditions when alternatives are omitted; accepts target/expected aliases.",
      +  "type": "array"
      +}
    • addedInput schema / properties / reviewAfter
      Added value: +{
      +  "description": "ISO 8601 instant after which maintenance marks this decision stale.",
      +  "type": "string"
      +}
    • addedInput schema / properties / status
      Added value: +{
      +  "description": "Initial lifecycle status of the decision; defaults to proposed.",
      +  "enum": [
      +    "proposed",
      +    "planned",
      +    "in_progress",
      +    "executed",
      +    "validated",
      +    "failed",
      +    "reconsidered",
      +    "abandoned",
      +    "archived"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / supersedes
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    }
      +  ],
      +  "description": "Identifier or list of identifiers of earlier decisions that this decision replaces."
      +}
    • addedInput schema / properties / tags
      Added value: +{
      +  "description": "Free-form labels stored with the decision. Searchable content.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / task
      Added value: +{
      +  "description": "Task, goal context, or ticket identifier this decision addresses. Searchable content.",
      +  "type": "string"
      +}
    • addedInput schema / properties / visibility
      Added value: +{
      +  "description": "Visibility scope for cross-project recall and context: project (default) or global.",
      +  "enum": [
      +    "project",
      +    "global"
      +  ],
      +  "type": "string"
      +}
    • addedOutput schema / properties / changeSummary
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Summary of changes from superseded decisions."
      +}
    • addedOutput schema / properties / reopenWhen
      Added value: +{
      +  "description": "Rules recorded directly on the decision that make it reconsiderable.",
      +  "type": "array"
      +}
    • addedOutput schema / properties / tags
      Added value: +{
      +  "description": "Labels or extracted keywords stored with the decision.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / task
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Task or problem context this decision addresses."
      +}
    • addedOutput schema / properties / visibility
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Visibility boundary: project or global."
      +}
  4. Changed1 schema field changedv0.43.6
    • changedInput schema / properties / originId / description
      Previous value: -"Capture-origin id; with no project the record belongs to it alone."New value: +"Capture-origin ID for unattributed records when project is omitted."
  5. Changed8 schema fields changedv0.42.1
    • addedInput schema / description
      Added value: +"ShadowGraph generates and returns canonical IDs. Supplying a creation id is refused before lookup or retry; keep returned IDs for later references."
    • addedInput schema / not
      Added value: +{
      +  "required": [
      +    "id"
      +  ]
      +}
    • addedInput schema / properties / alternatives / items / description
      Added value: +"ShadowGraph generates and returns canonical IDs. Supplying a creation id is refused before lookup or retry; keep returned IDs for later references."
    • addedInput schema / properties / alternatives / items / not
      Added value: +{
      +  "required": [
      +    "id"
      +  ]
      +}
    • changedInput schema / properties / idempotencyKey / description
      Previous value: -"Retry key scoped by project and operation: reuse it so a retry returns the first result instead of writing a duplicate. Without it every call creates a new entity."New value: +"Retry identity within the project or origin and operation (also scope/type/key for memory). Reuse it to recover the original canonical ID; this key is never an entity ID."
    • addedInput schema / properties / originId
      Added value: +{
      +  "description": "Capture-origin id; with no project the record belongs to it alone.",
      +  "type": "string"
      +}
    • changedInput schema / properties / project / description
      Previous value: -"Project namespace. Defaults to \"default\"; an empty string is rejected."New value: +"Owning project; required unless originId is set, else the write is refused."
    • changedOutput schema / properties / project / description
      Previous value: -"Project namespace; records imported from a schema that predates projects may carry null."New value: +"Project namespace; null for an unattributed record or one imported from before projects."
  6. Changed20 schema fields changedv0.40.1
    • changedInput schema / properties / actor / description
      Previous value: -"Who performed this write, e.g. an agent name."New value: +"Who performed this write, such as an agent or person name. Stored for audit; never used to grant trust."
    • addedInput schema / properties / alternatives / description
      Added value: +"Options considered and rejected. Alternatives belong to the decision and have no separate write API; they are what shadowgraph_review reconsiders."
    • addedInput schema / properties / alternatives / items / properties / label / description
      Added value: +"Name of the rejected option. Required in practice: an alternative without a non-empty label is rejected."
    • addedInput schema / properties / alternatives / items / properties / reason / description
      Added value: +"Accepted as an alias of reasonRejected for older callers."
    • addedInput schema / properties / alternatives / items / properties / reasonRejected / description
      Added value: +"Why it was rejected. Searchable content."
    • addedInput schema / properties / alternatives / items / properties / reopenWhen / description
      Added value: +"Rules that make this alternative worth reconsidering. Each is either a fact key as a plain string, matched only against changedFacts, or an object { key, operator, value } evaluated against stored facts so it still fires after a restart. operator defaults to equals."
    • addedInput schema / properties / assumptions / description
      Added value: +"What the decision takes for granted. Record each as a fact too if it should be able to reopen the decision."
    • addedInput schema / properties / chosen / description
      Added value: +"The option actually chosen. Required, non-empty, and searchable content."
    • changedInput schema / properties / client / description
      Previous value: -"Which client performed this write."New value: +"Which client software performed this write, such as the host application name."
    • addedInput schema / properties / confidence / description
      Added value: +"Starting confidence, 0-1. Defaults to 0.5. Later outcomes and evidence move it from this baseline; it is a degree of belief, never a verification status."
    • addedInput schema / properties / evidence / description
      Added value: +"Supporting evidence. Counted as declared evidence in the confidence basis, but never re-checked."
    • changedInput schema / properties / evidence / items / anyOf
      Previous value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "additionalProperties": true,
      -    "properties": {
      -      "confidence": {
      -        "maximum": 1,
      -        "minimum": 0,
      -        "type": "number"
      -      },
      -      "detail": {
      -        "type": "string"
      -      },
      -      "observedAt": {
      -        "type": "string"
      -      },
      -      "source": {
      -        "type": "string"
      -      },
      -      "sourceClass": {
      -        "enum": [
      -          "agent_claimed",
      -          "tool_observed",
      -          "human_confirmed",
      -          "production_verified"
      -        ],
      -        "type": "string"
      -      },
      -      "type": {
      -        "type": "string"
      -      }
      -    },
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "additionalProperties": true,
      +    "properties": {
      +      "confidence": {
      +        "description": "How much weight the caller places on this item, 0-1. Defaults to 0.5.",
      +        "maximum": 1,
      +        "minimum": 0,
      +        "type": "number"
      +      },
      +      "detail": {
      +        "description": "Free-text detail. Searchable content.",
      +        "type": "string"
      +      },
      +      "observedAt": {
      +        "description": "ISO 8601 timestamp of the observation. Defaults to the time of the write.",
      +        "type": "string"
      +      },
      +      "source": {
      +        "description": "Where the evidence came from, such as a document, ticket, or command. Searchable content.",
      +        "type": "string"
      +      },
      +      "sourceClass": {
      +        "description": "Claimed origin class for this item; an unrecognised value downgrades to agent_claimed.",
      +        "enum": [
      +          "agent_claimed",
      +          "tool_observed",
      +          "human_confirmed",
      +          "production_verified"
      +        ],
      +        "type": "string"
      +      },
      +      "type": {
      +        "description": "Free-form evidence kind, such as benchmark, incident, or review.",
      +        "type": "string"
      +      }
      +    },
      +    "type": "object"
      +  }
      +]
    • addedInput schema / properties / evidence / items / description
      Added value: +"One piece of supporting evidence. A plain string is stored as its source; an object carries structured provenance. Nothing here is checked or re-verified: it records what the caller claimed."
    • addedInput schema / properties / goal / description
      Added value: +"What the decision is meant to achieve. Searchable content."
    • changedInput schema / properties / idempotencyKey / description
      Previous value: -"Retry key scoped by project and operation; reuse only for the same logical write."New value: +"Retry key scoped by project and operation: reuse it so a retry returns the first result instead of writing a duplicate. Without it every call creates a new entity."
    • addedInput schema / properties / project / description
      Added value: +"Project namespace. Defaults to \"default\"; an empty string is rejected."
    • changedInput schema / properties / sessionId / description
      Previous value: -"Session identifier for this write."New value: +"Caller-owned identifier that groups related writes in the audit trail."
    • changedInput schema / properties / sourceClass / description
      Previous value: -"Claimed origin class. A claim, not proof: no value here can make a fact verified."New value: +"Claimed origin, never proof: agent_claimed (the default), tool_observed, human_confirmed, or production_verified. It weights confidence only. An unrecognised label downgrades to agent_claimed, kept verbatim in sourceRaw."
    • addedInput schema / properties / title / description
      Added value: +"Short name of the decision. Required, non-empty, and searchable content."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "description": "A stored decision, including its alternatives and auditable confidence basis.",
      +  "properties": {
      +    "actor": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "Who performed the write."
      +    },
      +    "alternatives": {
      +      "description": "Rejected alternatives, each with id, label, reasonRejected, status, and the reopenWhen rules that make it reconsiderable.",
      +      "type": "array"
      +    },
      +    "assumptions": {
      +      "description": "Assumptions the decision rests on. Searchable content.",
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "chosen": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "The option that was chosen."
      +    },
      +    "client": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "Which client performed the write."
      +    },
      +    "confidence": {
      +      "description": "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.",
      +      "type": "object"
      +    },
      +    "createdAt": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "ISO 8601 creation time."
      +    },
      +    "evidence": {
      +      "description": "Normalised evidence entries: source, type, sourceClass, confidence, observedAt, detail.",
      +      "type": "array"
      +    },
      +    "failedAttempts": {
      +      "description": "Attempt identifiers or notes attached to this decision.",
      +      "type": "array"
      +    },
      +    "goal": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "What the decision was trying to achieve."
      +    },
      +    "id": {
      +      "description": "Stable entity identifier.",
      +      "type": "string"
      +    },
      +    "kind": {
      +      "description": "Entity kind: decision, attempt, memory, fact, relation, review, or alternative.",
      +      "type": "string"
      +    },
      +    "migration": {
      +      "description": "Present only on migrated records; records the legacy value a field was mapped from.",
      +      "type": "object"
      +    },
      +    "outcome": {
      +      "anyOf": [
      +        {
      +          "type": "object"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "The recorded outcome, or null until one is recorded."
      +    },
      +    "project": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "Project namespace; records imported from a schema that predates projects may carry null."
      +    },
      +    "reviewAfter": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "ISO 8601 instant after which shadowgraph_maintain marks this decision stale."
      +    },
      +    "schemaVersion": {
      +      "description": "Storage schema version this entity was written under. A value above the build’s own version is preserved rather than downgraded.",
      +      "type": "integer"
      +    },
      +    "sessionId": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "Session identifier recorded with the write."
      +    },
      +    "sourceClass": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "Claimed origin class recorded with the write. A claim, never proof."
      +    },
      +    "sourceRaw": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "The original origin label when it differed from sourceClass. Audit only; never evidence."
      +    },
      +    "status": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "Lifecycle state. Legacy records may carry a value this build does not recognise; shadowgraph_validate reports those."
      +    },
      +    "supersededBy": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "Identifier of the decision that replaced this one."
      +    },
      +    "supersedes": {
      +      "description": "Identifiers of decisions this one replaced.",
      +      "type": "array"
      +    },
      +    "title": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "Short name of the decision."
      +    },
      +    "updatedAt": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "ISO 8601 time of the last change."
      +    }
      +  },
      +  "required": [
      +    "id",
      +    "kind"
      +  ],
      +  "type": "object"
      +}
  7. First observedv0.40.0

TDQS

A4.6/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations declare readOnly=false, destructive=false, idempotent=false, and the description goes beyond them by stating that each call appends a decision plus a journal entry and 'commits a revision'. It also spells out the duplicate-creation consequence of omitting idempotencyKey, which is exactly the non-idempotent behavior an agent needs to fear. It stops short of covering permissions or the project/originId refusal guard, which appear only in the schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences, each doing distinct work: what it records, where to go instead, and how it behaves on write. Nothing is repeated from the title and there is no filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 24-parameter mutation with an output schema and annotations, the description covers the essential decision points: purpose, sibling routing, append semantics, and idempotency risk. It omits the project-versus-originId requirement and the ID-refusal rule, but both are documented in the schema, so the gap is minor.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline is 3, and the description adds genuine parameter-level meaning: that reopenWhen rules live on rejected alternatives and that idempotencyKey is what prevents a retry from becoming a second decision. The remaining 20+ parameters are left entirely to the schema, which is acceptable given its richness.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Record one decision') and enumerates the payload it captures: chosen option, assumptions, evidence, and rejected alternatives with reopenWhen rules. It also distinguishes itself from three named siblings in the same breath, so an agent can pick it without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The second sentence gives explicit routing conditions to alternatives: attempt for 'something tried', fact for 'an observation', remember for 'a note'. That is a when-to-use/when-to-use-something-else mapping rather than an implied one.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.