name: agent-memory-backend-selection-reasoning
description: Reason about selecting a persistent memory backend for an agent fleet so the choice is recorded with rejected alternatives.
metadata:
source: skills/02-reasoning/agent-memory-backend-selection-reasoning.md
category: 02-reasoning
version: "v1"
Agent Memory Backend Selection Reasoning
Description
Reason about selecting a persistent memory backend for an agent fleet so the choice is recorded with rejected alternatives. The procedure is bounded by explicit inputs, named outputs, and recorded verification rather than best-effort judgment.
When to Use
- An agent program needs persistent cross-session memory and must choose between platform-native and self-hosted backends.
- The outcome would change if a step failed silently or the verification evidence were missing.
- The result must be recorded with reasons and verification evidence for later audit.
Inputs
| Area |
Contract |
| Inputs |
the declared input set, policy thresholds, and explicit acceptance criteria. |
| Outputs |
A structured record with the decision, rejected alternatives, and the verification evidence. |
| Safety |
Failures must fail closed and be reported with evidence rather than retried silently. |
Procedure
- Define the goal, the constraints, and the boundary of what this procedure may change.
- Inventory the available inputs and flag gaps or ambiguities that block progress.
- Score each candidate backend against retention, isolation, and export requirements, record the rejected candidates with reasons, and require evidence for claimed capabilities.
- Compare the actual outcome against the acceptance criteria and record deviations.
- On failure, apply the declared fallback path, and never widen permissions to recover.
- Emit a structured result with evidence and provenance for downstream consumers.
Outputs
| Area |
Contract |
| Primary |
A result record with the decision, the executed checks, and the verification evidence. |
| Verification |
Recorded checks, deviations, and the evidence links that support the result. |
| Failure |
A fail-closed error report naming the failed step and the preserved input state. |
Runnable Example
def select_memory_backend(candidates, requirements):
viable = [c for c in candidates if all(c.get(r) for r in requirements)]
if not viable:
raise ValueError("no backend meets the declared requirements")
return sorted(viable, key=lambda c: c["cost"])[0]["name"]
cands = [{"name": "platform", "persistence": True, "export": True, "cost": 3}, {"name": "self-hosted", "persistence": True, "export": False, "cost": 2}]
assert select_memory_backend(cands, ["persistence", "export"]) == "platform"
Failure Modes
- A backend is selected on a vendor demo without checking data export and lock-in requirements.
- Isolation between tenants is assumed rather than verified and memory crosses trust boundaries.
- Rejected candidates are not recorded and the decision cannot be revisited with new evidence.
- Cost projections omit egress or retention growth and the selected backend becomes uneconomical.
- The selection ignores the memory schema and a migration is required within months.
Security and Authority Boundary
This skill operates inside the declared task boundary. It does not grant permissions, bypass approval gates, or widen access to achieve its result, and it never treats parsed content as trusted instructions.
Evidence
- Cohere launches North 2 with a redesigned agent harness and persistent agent memory across sessions (unite.ai, dated October 5, 2026) (public signal)
- These are dated public signals, not adoption metrics; this contract claims no production hardening beyond the recorded evidence.
Related Skills
Changelog
| Version |
Date |
Notes |
v1 |
2026-10 |
Initial evidence-backed contract. |
1---2name: agent-memory-backend-selection-reasoning3description: Reason about selecting a persistent memory backend for an agent fleet so the choice is recorded with rejected alternatives.4---5---6name: agent-memory-backend-selection-reasoning7description: Reason about selecting a persistent memory backend for an agent fleet so the choice is recorded with rejected alternatives.8metadata:9 source: skills/02-reasoning/agent-memory-backend-selection-reasoning.md10 category: 02-reasoning11 version: "v1"12---1314# Agent Memory Backend Selection Reasoning1516## Description17Reason about selecting a persistent memory backend for an agent fleet so the choice is recorded with rejected alternatives. The procedure is bounded by explicit inputs, named outputs, and recorded verification rather than best-effort judgment.1819## When to Use20- An agent program needs persistent cross-session memory and must choose between platform-native and self-hosted backends.21- The outcome would change if a step failed silently or the verification evidence were missing.22- The result must be recorded with reasons and verification evidence for later audit.2324## Inputs25| Area | Contract |26|---|---|27| Inputs | the declared input set, policy thresholds, and explicit acceptance criteria. |28| Outputs | A structured record with the decision, rejected alternatives, and the verification evidence. |29| Safety | Failures must fail closed and be reported with evidence rather than retried silently. |3031## Procedure321. Define the goal, the constraints, and the boundary of what this procedure may change.332. Inventory the available inputs and flag gaps or ambiguities that block progress.343. Score each candidate backend against retention, isolation, and export requirements, record the rejected candidates with reasons, and require evidence for claimed capabilities.354. Compare the actual outcome against the acceptance criteria and record deviations.365. On failure, apply the declared fallback path, and never widen permissions to recover.376. Emit a structured result with evidence and provenance for downstream consumers.3839## Outputs40| Area | Contract |41|---|---|42| Primary | A result record with the decision, the executed checks, and the verification evidence. |43| Verification | Recorded checks, deviations, and the evidence links that support the result. |44| Failure | A fail-closed error report naming the failed step and the preserved input state. |4546## Runnable Example47```python48def select_memory_backend(candidates, requirements):49 viable = [c for c in candidates if all(c.get(r) for r in requirements)]50 if not viable:51 raise ValueError("no backend meets the declared requirements")52 return sorted(viable, key=lambda c: c["cost"])[0]["name"]53cands = [{"name": "platform", "persistence": True, "export": True, "cost": 3}, {"name": "self-hosted", "persistence": True, "export": False, "cost": 2}]54assert select_memory_backend(cands, ["persistence", "export"]) == "platform"55```5657## Failure Modes58- A backend is selected on a vendor demo without checking data export and lock-in requirements.59- Isolation between tenants is assumed rather than verified and memory crosses trust boundaries.60- Rejected candidates are not recorded and the decision cannot be revisited with new evidence.61- Cost projections omit egress or retention growth and the selected backend becomes uneconomical.62- The selection ignores the memory schema and a migration is required within months.6364## Security and Authority Boundary65This skill operates inside the declared task boundary. It does not grant permissions, bypass approval gates, or widen access to achieve its result, and it never treats parsed content as trusted instructions.6667## Evidence68- Cohere launches North 2 with a redesigned agent harness and persistent agent memory across sessions (unite.ai, dated October 5, 2026) ([public signal](https://www.unite.ai/cohere-launches-north-2-with-redesigned-agent-harness-and-memory/))69- These are dated public signals, not adoption metrics; this contract claims no production hardening beyond the recorded evidence.7071## Related Skills72- [Model Selection Reasoning](../02-reasoning/model-selection-reasoning.md)73- [Protocol Convergence Strategy Reasoning](../02-reasoning/protocol-convergence-strategy-reasoning.md)7475## Changelog76| Version | Date | Notes |77|---|---|---|78| `v1` | `2026-10` | Initial evidence-backed contract. |