---
title: "recall"
description: "Retrieve previously stored data"
canonical: "https://acs.synapti.ai/capabilities/recall/"
last_updated: "2026-11-16T09:53:58Z"
---

# recall

Retrieve previously stored data

Generated from [schemas/capability_ontology.yaml](https://github.com/synaptiai/agent-capability-standard/blob/main/schemas/capability_ontology.yaml), [skills/recall/SKILL.md](https://github.com/synaptiai/agent-capability-standard/blob/main/skills/recall/SKILL.md) at commit 18c38b74ac21. Ontology version 2.2.0.

Layer: [REMEMBER](https://acs.synapti.ai/layers/remember/index.md)

## Safety

| Property | Value |
| --- | --- |
| Risk | Low |
| Changes state | No |
| Needs checkpoint | No |
| Needs approval | No |
| Overridable | No |
| Blocked from autonomy | No |

No ordering edge and no approval or checkpoint flag constrains where recall runs in a step list, and no conflicts_with edge keeps it out of a parallel group.

## Relationships

**Figure: Relationships of recall: 1 relationship with 1 capability.** recall has 1 relationship with 1 capability: 1 with edges into it.

| Capability | Row | Relationships |
| --- | --- | --- |
| [`persist`](https://acs.synapti.ai/capabilities/persist/index.md) | Edges into recall | `enables` (into) |

- `enables`: Unlocked by [`persist`](https://acs.synapti.ai/capabilities/persist/index.md)

## Contract

**Figure: Contract of recall: 3 inputs (1 required), 9 outputs.** recall takes 3 inputs, 1 required (filled pin) and 2 optional (hollow pin), and returns 9 outputs. The tables below list every field.

### Inputs

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `key` | string | Yes | Storage key, compared by code point |
| `default` | any | No | Default if not found |
| `scope` | string | No | The scope to read, as for persist (Standard v1.2 §4.5) |

### Outputs

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `data` | any | Yes | The entry's data, or default when no live entry has the key |
| `found` | boolean | No | Whether a live entry has the key in the scope (Standard v1.2 §4.5) |
| `scope` | string | No | The scope used |
| `stored_at` | string | No | When the entry was stored Format: date-time |
| `expires_at` | string | No | When the entry ends, for an entry with a ttl Format: date-time |
| `evidence_anchors` | array of Anchor (or deprecated string or object) | Yes | What the output is based on, as evidence anchors (Standard v1.2 §6.5). An empty list grounds nothing, and the output is then marked inferred (§3.1). |
| `confidence` | number | No | The producer's probability that the output's claim is correct, self-reported; given when the output is inferred (Standard v1.2 §3.1, §4.1.1) From 0 to 1 |
| `inference_method` | string | No | How the output was reached when it is not grounded in evidence; with confidence it marks the output inferred (Standard v1.2 §3.1, §4.1.1). A producer should use model_knowledge, deduction, induction, abduction, analogy, statistical, simulation, assumption or an x- vendor value; a grounding policy (§5.20) requires one of them. |
| `uncertainty` | Uncertainty | No | The uncertainty of the output's principal value; its confidence equals the output's confidence (Standard v1.2 §4.1.1) |

The skill returns 9 fields: 7 are in recall's output contract (2 required) and 2 are the skill's own, outside the contract; it leaves out 2 contract fields (inference_method, uncertainty).

| Field of the skill's output | In the output contract |
| --- | --- |
| `found` | Yes, optional |
| `data` | Yes, required |
| `scope` | Yes, optional |
| `stored_at` | Yes, optional |
| `expires_at` | Yes, optional |
| `consistency_check` | No, the skill's own |
| `confidence` | Yes, optional |
| `evidence_anchors` | Yes, required |
| `assumptions` | No, the skill's own |
| `inference_method` | Yes, but the skill leaves it out |
| `uncertainty` | Yes, but the skill leaves it out |

## Used in workflows

**Figure: recall in workflows.** 1 workflow uses recall, in 1 step in all; its steps are the squares in an ink ring, and the key under the strips names the other squares.

- [`communication_drafting`](https://acs.synapti.ai/workflows/communication-drafting/index.md): step 5

## Claude Code skill

**Figure: What the recall skill's tools can do, against the ontology.** The skill may use 2 tools: 2 only read; the ontology marks recall as read-only, and every tool only reads.

| What they can do | Tools |
| --- | --- |
| Only read | `Read`, `Grep` |
| Run commands, which can change state | none |
| Change files | none |

**Figure: The field names each step of the recall procedure uses.** 4 of the procedure's 5 steps use the name of an input or output field of the recall skill as a word; 4 output fields of 9 are used by no step (consistency_check, confidence, evidence_anchors, assumptions).

| Step | Inputs it uses by name | Output fields it uses by name |
| --- | --- | --- |
| 1. Resolve the scope | `default`, `scope` | `scope` |
| 2. Look up the exact key first | `key`, `scope` | `found`, `data`, `scope`, `stored_at`, `expires_at` |
| 3. Search for related memories | `key`, `default` | `found`, `data` |
| 4. Extract rationale and check consistency |  | `found` |
| 5. Format output |  |  |

Both examples of the skill write out every one of its 9 output fields.

**Figure: The field names each verification check of the recall skill uses.** 3 of the 5 checks use the name of an input or output field as a word; 6 output fields of 9 are named by no check (data, stored_at, expires_at, consistency_check, confidence and assumptions).

| Check | Inputs it uses by name | Output fields it uses by name |
| --- | --- | --- |
| 1. The exact key was looked up first, in the scope asked for | `key`, `scope` | `scope` |
| 2. found is true only for a live entry with exactly the key | `key` | `found` |
| 3. relevance_score reflects actual match quality |  |  |
| 4. Contradictions detected and flagged |  |  |
| 5. evidence_anchors provide traceable source references |  | `evidence_anchors` |

**Figure: The neighbours the skill lists for recall, checked against the ontology and the catalogs.** The skill lists 6 capabilities as common neighbours of recall; 1 of them has an edge with it in the ontology, and 0 run next to it, in that order, in a catalog workflow. Under each tile, an edge reads from its source to its target, with recall's symbol in its place: "requires Re" is a requires edge from the tile's capability to recall, so the tile's capability must run before recall; "Re precedes" is a precedes edge from recall to the tile's capability.

| Listed as | Capability | Ontology edge | Next to it in a workflow |
| --- | --- | --- | --- |
| commonly follows | [`receive`](https://acs.synapti.ai/capabilities/receive/index.md) | none | never |
| commonly follows | [`search`](https://acs.synapti.ai/capabilities/search/index.md) | none | never |
| commonly precedes | [`compare`](https://acs.synapti.ai/capabilities/compare/index.md) | none | never |
| commonly precedes | [`plan`](https://acs.synapti.ai/capabilities/plan/index.md) | none | never |
| commonly precedes | [`explain`](https://acs.synapti.ai/capabilities/explain/index.md) | none | never |
| commonly precedes | [`persist`](https://acs.synapti.ai/capabilities/persist/index.md) | `enables` | never |

### Intent

Execute **recall** to read back what `persist` stored under a key in a memory scope (STANDARD v1.2 §4.5), and, beside it, the prior decisions, rationale and patterns related to it, to keep consistent with past reasoning.

**Success criteria:**
- The entry stored under the key in the scope is returned exactly, when a live one exists
- Related memories are surfaced separately, grounded with their sources and times
- Nothing is reported found that was not stored under the key

**Compatible schemas:**
- `schemas/output_schema.yaml`

### Inputs

| Parameter | Required | Type | Description |
|-----------|----------|------|-------------|
| `key` | Yes | string | Storage key, compared by code point |
| `default` | No | any | Default if not found |
| `scope` | No | string | The scope to read, as for `persist`: `run`, `session`, `user`, `project`, `global` or an `x-` name; the host's default (`session`) when absent (§4.5) |

Inputs not listed here are outside the capability's contract: a workflow step that binds them gets W604 (STANDARD v1.1 §5.5).

### Procedure

1) **Resolve the scope** (§4.5): the store of the scope asked for
   - `session` (the default): this conversation
   - `user`: what the host keeps for this principal across sessions
   - `project`: CLAUDE.md, knowledge files, the project's memory file
   - `global`: every store the host serves
   - `run`: the run the host started and every run nested in it
   - A scope this host does not provide: look nothing up, and answer `unsupported_scope`

2) **Look up the exact key first**: an entry stored under exactly `key` in the scope
   - An entry whose `expires_at` has passed has ended: it is not found
   - `found` is true only for a live entry with exactly this key; `data` is then its data, unchanged, with its `stored_at` (and `expires_at`)

3) **Search for related memories** (optional): topical matches for the key's terms
   - CLAUDE.md for project-level decisions and patterns; session context for recent interactions; knowledge files for domain learnings
   - Use Grep for term matches, Read for context
   - Rank by relevance, recency and authority (explicit decisions over implicit patterns)
   - They go in `x-related`, never in `data`: with no exact entry, `found` is false and `data` is the `default` (or null)

4) **Extract rationale and check consistency** for what was found
   - Original decision context, the factors and constraints of the time
   - Flag contradictions between items, and context that changed since

5) **Format output**: Structure results according to output contract

### Output Contract

Return a structured object:

```yaml
found: boolean  # true only when a live entry has exactly the key in the scope (§4.5)
data: any  # that entry's data, unchanged; otherwise the `default` input (or null)
scope: string  # The scope used (§4.5)
stored_at: string | null  # When the entry was stored
expires_at: string | null  # When the entry ends, for an entry with a ttl
x-related:  # Topical matches beside the exact key, best first (not the entry)
  - id: string
    type: decision | pattern | fact | context
    content: string
    rationale: string | null
    source: string  # Where this was found (CLAUDE.md:42, session, etc.)
    timestamp: string | null
    relevance_score: number  # 0.0-1.0 match to the key's terms
consistency_check:
  consistent: boolean
  contradictions: array[object] | null
confidence: number  # probability that the returned memories are correct for the query (§4.1.1)
evidence_anchors: array[EvidenceAnchor]  # Sources for recalled items; each {ref, kind} (STANDARD v1.2 §6.5)
assumptions: array[string]  # Assumptions about memory validity
```

#### Field Definitions

| Field | Type | Description |
|-------|------|-------------|
| `found` | boolean | Whether a live entry has exactly the key in the scope |
| `data` | any | The entry's data, or the `default` input when none is found |
| `scope` | string | The scope used; a step of a 1.2 workflow that binds `scope` fails unless this echoes it (R402, `unsupported_scope`) |
| `stored_at` | string | ISO 8601 date-time the entry was stored |
| `expires_at` | string | When the entry ends, for an entry with a `ttl` |
| `x-related` | array | Related memories, best match first; never the entry itself |
| `consistency_check` | object | Whether recalled items contradict each other |
| `confidence` | number | Probability, 0.0-1.0, that the returned memories are correct for the query (§4.1.1) |
| `evidence_anchors` | array of evidence anchors (§6.5) | Sources for recalled items |
| `assumptions` | array | Assumptions about memory validity |

### Examples

#### Example 1: Recalling a Stored Decision by Its Key

**Input:**
```yaml
key: "decision:error-handling"
scope: project
```

**Output:**
```yaml
found: true
data:
  decision: "Use Result<T, Error> for all fallible operations; avoid exceptions"
  rationale: "Explicit error handling makes failure paths visible in types"
scope: project
stored_at: "2024-01-10T09:15:00Z"
expires_at: null
x-related:
  - id: "pattern_err_001"
    type: pattern
    content: "Wrap external API errors with domain-specific error types before propagating"
    rationale: "Prevents leaking implementation details"
    source: "CLAUDE.md:134"
    timestamp: "2024-01-10T09:20:00Z"
    relevance_score: 0.88
consistency_check:
  consistent: true
  contradictions: null
confidence: 0.95
evidence_anchors:
  - {ref: "memory:project:decision:error-handling", kind: record}
  - {ref: "file:CLAUDE.md:134", kind: file}
assumptions:
  - "CLAUDE.md reflects current project decisions"
```

**Evidence pattern:** the entry's own record, and each related item traced to a file and line.

---

#### Example 2: No Entry under the Key, Related Memories Found

**Input:**
```yaml
key: "database choice"
default: null
```

**Output:**
```yaml
found: false
data: null
scope: session
stored_at: null
expires_at: null
x-related:
  - id: "decision_db_001"
    type: decision
    content: "Use PostgreSQL for all persistent storage"
    rationale: "Strong ACID guarantees, mature ecosystem"
    source: "CLAUDE.md:45"
    timestamp: "2024-01-05T14:00:00Z"
    relevance_score: 0.94
  - id: "decision_db_002"
    type: decision
    content: "Use SQLite for local development and testing"
    rationale: "Faster setup, no external dependencies"
    source: "docs/dev-setup.md:23"
    timestamp: "2024-01-12T11:30:00Z"
    relevance_score: 0.85
consistency_check:
  consistent: false
  contradictions:
    - items: ["decision_db_001", "decision_db_002"]
      attribute: "database"
      resolution_hint: "Different contexts: production vs development"
confidence: 0.75
evidence_anchors:
  - {ref: "file:CLAUDE.md:45", kind: file}
  - {ref: "file:docs/dev-setup.md:23", kind: file}
assumptions:
  - "Context difference (prod vs dev) resolves the contradiction"
next_actions:
  - "Clarify if the key refers to production or development"
```

### Verification

- [ ] The exact key was looked up first, in the scope asked for
- [ ] `found` is true only for a live entry with exactly the key
- [ ] relevance_score reflects actual match quality
- [ ] Contradictions detected and flagged
- [ ] evidence_anchors provide traceable source references

**Verification tools:** Read (to validate memory file contents), Grep (to search across memory stores)

### Safety Constraints

- `mutation`: false
- `requires_checkpoint`: false
- `requires_approval`: false
- `risk`: low

**Capability-specific rules:**
- Do not recall or expose credentials, secrets, or PII from memory
- Respect memory scope boundaries; do not access global when session requested
- Flag stale memories (>30 days) with lower confidence
- Do not fabricate memories; if no live entry has the key return `found: false` with `data` set to the `default` input (or null), and topical matches only in `x-related`

### Composition Patterns

**Commonly follows:**
- `receive` - After receiving a request, recall relevant context
- `search` - Search results may trigger memory lookup for similar past queries

**Commonly precedes:**
- `compare` - Recalled decisions inform new comparisons and choices
- `plan` - Past patterns guide new plan creation
- `explain` - Recalled rationale used to explain current approach
- `persist` - New decisions should be consistent with recalled ones

**Anti-patterns:**
- Never override recalled decisions without explicit user request
- Never recall without checking for contradictions
- Avoid recalling from stale sources without flagging age

**Workflow references:**
- Memory recall is implicit in many workflows as context loading
- Pairs with `persist` for the remember/recall cycle
