Agent Playbook Reuse Memory
Description
Store, version, and retrieve agent playbooks so repeated task sequences reuse recorded procedures instead of being re-derived. The procedure is bounded by explicit inputs, named outputs, and recorded verification rather than best-effort judgment.
When to Use
- The same multi-step task keeps being re-planned from scratch.
- Playbooks must be versioned so reuse is traceable to a recorded procedure.
- Stale playbooks must be detected before reuse.
Inputs
| Area |
Contract |
| Inputs |
The playbook library, the task signature, and the reuse policy. |
| Outputs |
A reuse decision naming the matched playbook version, its recorded outcomes, and any staleness flags. |
| Safety |
Fail closed by refusing reuse when the matched playbook is stale or its outcomes are unverified. |
Procedure
- Compute the task signature from the incoming task description.
- Match the signature against the playbook library and its version history.
- Check the matched playbook's recorded outcomes and last-verified date.
- Flag the playbook as stale when its verification predates relevant environment changes.
- Fall back to fresh planning when no verified playbook matches.
- Emit the reuse decision with the playbook version and verification state.
Outputs
| Area |
Contract |
| Primary |
A reuse decision naming the matched playbook version, its recorded outcomes, and any staleness flags. |
| Verification |
Version identifiers and outcome records that reproduce the reuse decision. |
| Failure |
A fail-closed decision that falls back to fresh planning with the reason recorded. |
Runnable Example
def reuse(library, sig, today, stale_after_days=30):
hits = [p for p in library if p["sig"] == sig]
if not hits:
return {"ok": True, "reused": False, "reason": "no_match"}
p = hits[-1]
if (today - p["verified"]) > stale_after_days:
return {"ok": True, "reused": False, "reason": "stale", "version": p["ver"]}
return {"ok": True, "reused": True, "version": p["ver"]}
lib = [{"sig": "weekly-report", "ver": "v3", "verified": 100}]
assert reuse(lib, "weekly-report", 120)["reused"] is True and reuse(lib, "weekly-report", 120)["version"] == "v3"
assert reuse(lib, "weekly-report", 200)["reused"] is False
assert reuse(lib, "other", 100)["reason"] == "no_match"
Failure Modes
- Playbooks are reused without checking their last-verified date.
- Version history is dropped, so reuse cannot be traced to outcomes.
- Stale playbooks are preferred because they match faster.
- Task signatures are compared loosely, causing wrong-playbook reuse.
- Fresh planning results are never recorded back into the library.
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
- Redis announced six new capabilities for Redis Iris, its real-time context engine for AI agents, including playbooks for reusable procedures (AI Agent News Today, November 6, 2026) (public signal)
- These are dated public signals, not adoption metrics; this contract claims no production hardening beyond the recorded evidence.
Related Skills
- Agent Attributed Action History Memory
- Active Recall Memory Curation
Changelog
| Version |
Date |
Notes |
v1 |
2026-11 |
Initial evidence-backed contract. |
1---2name: agent-playbook-reuse-memory3description: Store, version, and retrieve agent playbooks so repeated task sequences reuse recorded procedures instead of being re-derived.4metadata:5 source: https://skillmd.com/skills/samotech/agent-playbook-reuse-memory6 upstream: skills/03-memory/agent-playbook-reuse-memory.md7 category: 03-memory8 version: "v1"9---1011# Agent Playbook Reuse Memory1213## Description14Store, version, and retrieve agent playbooks so repeated task sequences reuse recorded procedures instead of being re-derived. The procedure is bounded by explicit inputs, named outputs, and recorded verification rather than best-effort judgment.1516## When to Use17- The same multi-step task keeps being re-planned from scratch.18- Playbooks must be versioned so reuse is traceable to a recorded procedure.19- Stale playbooks must be detected before reuse.2021## Inputs22| Area | Contract |23|---|---|24| Inputs | The playbook library, the task signature, and the reuse policy. |25| Outputs | A reuse decision naming the matched playbook version, its recorded outcomes, and any staleness flags. |26| Safety | Fail closed by refusing reuse when the matched playbook is stale or its outcomes are unverified. |2728## Procedure291. Compute the task signature from the incoming task description.302. Match the signature against the playbook library and its version history.313. Check the matched playbook's recorded outcomes and last-verified date.324. Flag the playbook as stale when its verification predates relevant environment changes.335. Fall back to fresh planning when no verified playbook matches.346. Emit the reuse decision with the playbook version and verification state.3536## Outputs37| Area | Contract |38|---|---|39| Primary | A reuse decision naming the matched playbook version, its recorded outcomes, and any staleness flags. |40| Verification | Version identifiers and outcome records that reproduce the reuse decision. |41| Failure | A fail-closed decision that falls back to fresh planning with the reason recorded. |4243## Runnable Example44```python45def reuse(library, sig, today, stale_after_days=30):46 hits = [p for p in library if p["sig"] == sig]47 if not hits:48 return {"ok": True, "reused": False, "reason": "no_match"}49 p = hits[-1]50 if (today - p["verified"]) > stale_after_days:51 return {"ok": True, "reused": False, "reason": "stale", "version": p["ver"]}52 return {"ok": True, "reused": True, "version": p["ver"]}5354lib = [{"sig": "weekly-report", "ver": "v3", "verified": 100}]55assert reuse(lib, "weekly-report", 120)["reused"] is True and reuse(lib, "weekly-report", 120)["version"] == "v3"56assert reuse(lib, "weekly-report", 200)["reused"] is False57assert reuse(lib, "other", 100)["reason"] == "no_match"58```5960## Failure Modes61- Playbooks are reused without checking their last-verified date.62- Version history is dropped, so reuse cannot be traced to outcomes.63- Stale playbooks are preferred because they match faster.64- Task signatures are compared loosely, causing wrong-playbook reuse.65- Fresh planning results are never recorded back into the library.6667## Security and Authority Boundary68This 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.6970## Evidence71- Redis announced six new capabilities for Redis Iris, its real-time context engine for AI agents, including playbooks for reusable procedures (AI Agent News Today, November 6, 2026) ([public signal](https://aiagentstore.ai/ai-agent-news/daily/2026-11-06))72- These are dated public signals, not adoption metrics; this contract claims no production hardening beyond the recorded evidence.7374## Related Skills75- [Agent Attributed Action History Memory](agent-attributed-action-history-memory.md)76- [Active Recall Memory Curation](active-recall-memory-curation.md)7778## Changelog79| Version | Date | Notes |80|---|---|---|81| `v1` | `2026-11` | Initial evidence-backed contract. |