name: adaptive-behavior-refinement-memory
description: Structure the persistent memory an agent refines its behavior from, recording each adaptation and its trigger instead of silent drift.
metadata:
source: skills/03-memory/adaptive-behavior-refinement-memory.md
category: 03-memory
version: "v1"
Adaptive Behavior Refinement Memory
Description
Structure the persistent memory an agent refines its behavior from, recording each adaptation and its trigger instead of silent drift. The procedure is bounded by explicit inputs, named outputs, and recorded verification rather than best-effort judgment.
When to Use
- An agent adapts behavior from user interactions over time.
- A drift review must trace each behavior change to its trigger.
- A rollback decision needs recorded adaptation states.
Inputs
| Area |
Contract |
| Inputs |
The interaction episodes, the derived behavior deltas, and the rollback bounds. |
| Outputs |
An adaptation log naming each behavior change, its triggering episode, and its rollback state. |
| Safety |
Fail closed by disabling adaptation when the rollback bound cannot be honored. |
Procedure
- Capture interaction episodes with their outcomes and user signals.
- Derive candidate behavior deltas with the triggering episode attached.
- Review each delta against the agent policy boundary.
- Apply approved deltas and record their rollback state.
- Periodically replay anchored tasks to detect drift.
- Emit the adaptation log with deltas, triggers, and rollback states.
Outputs
| Area |
Contract |
| Primary |
An adaptation log naming each behavior change, its triggering episode, and its rollback state. |
| Verification |
The recorded inputs and intermediate values that reproduce the primary output from the runnable example. |
| Failure |
A fail-closed hold naming the unmet precondition and the withheld primary output. |
Runnable Example
def apply_adaptations(episodes, policy):
log = []
for e in episodes:
if e["delta"] in policy["approved"]:
log.append({"delta": e["delta"], "state": "applied", "rollback": e["delta"] + "::revert"})
else:
log.append({"delta": e["delta"], "state": "blocked"})
return log
log = apply_adaptations([{"delta": "tone"}, {"delta": "tool-choice"}], {"approved": ["tone"]})
assert log[0]["state"] == "applied" and log[1]["state"] == "blocked"
Failure Modes
- Behavior changes apply silently with no recorded trigger..
- Deltas are approved without their policy-boundary review..
- Rollback states are missing, making adaptations irreversible..
- Drift is detected only after user complaints..
- The adaptation log omits the episodes that caused each change..
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
- NousResearch released hermes-agent, a framework for evolving AI agents with persistent memory and adaptive learning that refines behavior based on user interaction (DailyAI Report, November 8, 2026) (public signal)
- These are dated public signals, not adoption metrics; this contract claims no production hardening beyond the recorded evidence.
Related Skills
- Episodic Memory
- Forgetting
Changelog
| Version |
Date |
Notes |
v1 |
2026-11 |
Initial evidence-backed contract. |
1---2name: adaptive-behavior-refinement-memory3description: Structure the persistent memory an agent refines its behavior from, recording each adaptation and its trigger instead of silent drift.4---5---6name: adaptive-behavior-refinement-memory7description: Structure the persistent memory an agent refines its behavior from, recording each adaptation and its trigger instead of silent drift.8metadata:9 source: skills/03-memory/adaptive-behavior-refinement-memory.md10 category: 03-memory11 version: "v1"12---1314# Adaptive Behavior Refinement Memory1516## Description17Structure the persistent memory an agent refines its behavior from, recording each adaptation and its trigger instead of silent drift. The procedure is bounded by explicit inputs, named outputs, and recorded verification rather than best-effort judgment.1819## When to Use20- An agent adapts behavior from user interactions over time.21- A drift review must trace each behavior change to its trigger.22- A rollback decision needs recorded adaptation states.2324## Inputs25| Area | Contract |26|---|---|27| Inputs | The interaction episodes, the derived behavior deltas, and the rollback bounds. |28| Outputs | An adaptation log naming each behavior change, its triggering episode, and its rollback state. |29| Safety | Fail closed by disabling adaptation when the rollback bound cannot be honored. |3031## Procedure321. Capture interaction episodes with their outcomes and user signals.332. Derive candidate behavior deltas with the triggering episode attached.343. Review each delta against the agent policy boundary.354. Apply approved deltas and record their rollback state.365. Periodically replay anchored tasks to detect drift.376. Emit the adaptation log with deltas, triggers, and rollback states.3839## Outputs40| Area | Contract |41|---|---|42| Primary | An adaptation log naming each behavior change, its triggering episode, and its rollback state. |43| Verification | The recorded inputs and intermediate values that reproduce the primary output from the runnable example. |44| Failure | A fail-closed hold naming the unmet precondition and the withheld primary output. |4546## Runnable Example47```python48def apply_adaptations(episodes, policy):49 log = []50 for e in episodes:51 if e["delta"] in policy["approved"]:52 log.append({"delta": e["delta"], "state": "applied", "rollback": e["delta"] + "::revert"})53 else:54 log.append({"delta": e["delta"], "state": "blocked"})55 return log5657log = apply_adaptations([{"delta": "tone"}, {"delta": "tool-choice"}], {"approved": ["tone"]})58assert log[0]["state"] == "applied" and log[1]["state"] == "blocked"59```6061## Failure Modes62- Behavior changes apply silently with no recorded trigger..63- Deltas are approved without their policy-boundary review..64- Rollback states are missing, making adaptations irreversible..65- Drift is detected only after user complaints..66- The adaptation log omits the episodes that caused each change..6768## Security and Authority Boundary69This 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.7071## Evidence72- NousResearch released hermes-agent, a framework for evolving AI agents with persistent memory and adaptive learning that refines behavior based on user interaction (DailyAI Report, November 8, 2026) ([public signal](https://dailyai.report/))73- These are dated public signals, not adoption metrics; this contract claims no production hardening beyond the recorded evidence.7475## Related Skills76- [Episodic Memory](episodic-memory.md)77- [Forgetting](forgetting.md)7879## Changelog80| Version | Date | Notes |81|---|---|---|82| `v1` | `2026-11` | Initial evidence-backed contract. |