Agent Stability Framework (ASF)
Drift Prevention · Fault Catching · Soul Alignment
Keep your AI agent stable, on-character, and self-correcting across sessions and over time.
What This Solves
Three things kill agent reliability:
- Drift — Agent gradually reverts to generic training defaults, losing personality
- Faults — Agent produces broken output, hallucinates, contradicts itself, or fails silently
- Soul misalignment — Agent technically works but doesn't feel right — lost its essence
ASF addresses all three with one integrated system.
What You Get
- Complete framework documentation (AGENT_STABILITY_FRAMEWORK.md)
- File templates (SOUL.md, BASELINE_EXAMPLES.md, logs)
- System prompt additions ready to paste
- Detection checklists and scoring system
- Works on all models: Claude, GPT, Grok, Gemini, Llama, Mistral
Quick Start
- Copy all files to your agent's workspace
- Fill out
SOUL.md (who your agent IS)
- Create
BASELINE_EXAMPLES.md (10+ correct responses)
- Add standing orders + pre-send gate to system prompt
- Run first audit after 24 hours
Setup time: 45-90 minutes
Daily maintenance: 5 minutes
Tested on: 8+ models across all capability tiers
The Three-Layer Defense
Layer 1: Drift Prevention
- Standing orders (binary rules)
- Pre-send gate (delete triggers)
- Intensifier detection
- Periodic resets
Layer 2: Fault Catching
- 7 fault categories tracked
- Self-check rules before actions
- Fault log + recovery protocol
- Prevents hallucinations, contradictions, silent failures
Layer 3: Soul Alignment
- Catches "technically correct but off-character" responses
- Soul alignment test
- Recovery protocol
- User perception as final sensor
Files Included
AGENT_STABILITY_FRAMEWORK.md — Complete framework (13KB)
SOUL_TEMPLATE.md — Identity template
BASELINE_EXAMPLES_TEMPLATE.md — Response examples template
DRIFT_LOG_TEMPLATE.md — Drift tracking
FAULT_LOG_TEMPLATE.md — Fault tracking
STABILITY_LOG_TEMPLATE.md — Audit scores
Use Cases
- Personal AI assistants that need consistent personality
- Trading bots that must not hallucinate data
- Content generation agents that need stable tone
- Customer service bots that require reliable responses
- Research assistants that must maintain accuracy
- Any agent running 24/7 or across many sessions
Why It Works
- Binary rules beat judgment calls — "NEVER do X" works consistently
- Examples anchor identity — Baseline responses are the north star
- Three failure modes require three defenses — Drift, faults, and soul issues are different
- Self-correction leverages LLM capabilities — AIs can audit themselves with specific rules
- Logging creates memory — Patterns become standing orders
Requirements
- OpenClaw workspace
- Any LLM (works across all tested models)
- 30-90 min setup time
- Willingness to document your agent's identity
Credits
Developed by Shadow Rose. Battle-tested over 130+ message sessions on Opus. Extended based on community feedback. Published 2026-02-20.
License
MIT — Use freely, modify as needed, credit appreciated but not required.
⚠️ Disclaimer
This software is provided "AS IS", without warranty of any kind, express or implied.
USE AT YOUR OWN RISK.
- The author(s) are NOT liable for any damages, losses, or consequences arising from
the use or misuse of this software — including but not limited to financial loss,
data loss, security breaches, business interruption, or any indirect/consequential damages.
- This software does NOT constitute financial, legal, trading, or professional advice.
- Users are solely responsible for evaluating whether this software is suitable for
their use case, environment, and risk tolerance.
- No guarantee is made regarding accuracy, reliability, completeness, or fitness
for any particular purpose.
- The author(s) are not responsible for how third parties use, modify, or distribute
this software after purchase.
By downloading, installing, or using this software, you acknowledge that you have read
this disclaimer and agree to use the software entirely at your own risk.
1---2name: agent-stability-framework-asf3description: Keep your AI agent stable, on-character, and self-correcting across sessions and over time.4---5
6# Agent Stability Framework (ASF)
7
8**Drift Prevention · Fault Catching · Soul Alignment**
9
10Keep your AI agent stable, on-character, and self-correcting across sessions and over time.
11
12## What This Solves
13
14Three things kill agent reliability:
15
161. **Drift** — Agent gradually reverts to generic training defaults, losing personality
172. **Faults** — Agent produces broken output, hallucinates, contradicts itself, or fails silently
183. **Soul misalignment** — Agent technically works but doesn't feel right — lost its essence
19
20ASF addresses all three with one integrated system.
21
22## What You Get
23
24- Complete framework documentation (AGENT_STABILITY_FRAMEWORK.md)
25- File templates (SOUL.md, BASELINE_EXAMPLES.md, logs)
26- System prompt additions ready to paste
27- Detection checklists and scoring system
28- Works on all models: Claude, GPT, Grok, Gemini, Llama, Mistral
29
30## Quick Start
31
321. Copy all files to your agent's workspace
332. Fill out `SOUL.md` (who your agent IS)
343. Create `BASELINE_EXAMPLES.md` (10+ correct responses)
354. Add standing orders + pre-send gate to system prompt
365. Run first audit after 24 hours
37
38**Setup time:** 45-90 minutes
39**Daily maintenance:** 5 minutes
40**Tested on:** 8+ models across all capability tiers
41
42## The Three-Layer Defense
43
44### Layer 1: Drift Prevention
45- Standing orders (binary rules)
46- Pre-send gate (delete triggers)
47- Intensifier detection
48- Periodic resets
49
50### Layer 2: Fault Catching
51- 7 fault categories tracked
52- Self-check rules before actions
53- Fault log + recovery protocol
54- Prevents hallucinations, contradictions, silent failures
55
56### Layer 3: Soul Alignment
57- Catches "technically correct but off-character" responses
58- Soul alignment test
59- Recovery protocol
60- User perception as final sensor
61
62## Files Included
63
64- `AGENT_STABILITY_FRAMEWORK.md` — Complete framework (13KB)
65- `SOUL_TEMPLATE.md` — Identity template
66- `BASELINE_EXAMPLES_TEMPLATE.md` — Response examples template
67- `DRIFT_LOG_TEMPLATE.md` — Drift tracking
68- `FAULT_LOG_TEMPLATE.md` — Fault tracking
69- `STABILITY_LOG_TEMPLATE.md` — Audit scores
70
71## Use Cases
72
73- Personal AI assistants that need consistent personality
74- Trading bots that must not hallucinate data
75- Content generation agents that need stable tone
76- Customer service bots that require reliable responses
77- Research assistants that must maintain accuracy
78- Any agent running 24/7 or across many sessions
79
80## Why It Works
81
821. **Binary rules beat judgment calls** — "NEVER do X" works consistently
832. **Examples anchor identity** — Baseline responses are the north star
843. **Three failure modes require three defenses** — Drift, faults, and soul issues are different
854. **Self-correction leverages LLM capabilities** — AIs can audit themselves with specific rules
865. **Logging creates memory** — Patterns become standing orders
87
88## Requirements
89
90- OpenClaw workspace
91- Any LLM (works across all tested models)
92- 30-90 min setup time
93- Willingness to document your agent's identity
94
95## Credits
96
97Developed by Shadow Rose. Battle-tested over 130+ message sessions on Opus. Extended based on community feedback. Published 2026-02-20.
98
99## License
100
101MIT — Use freely, modify as needed, credit appreciated but not required.
102
103
104---
105
106## ⚠️ Disclaimer
107
108This software is provided "AS IS", without warranty of any kind, express or implied.
109
110**USE AT YOUR OWN RISK.**
111
112- The author(s) are NOT liable for any damages, losses, or consequences arising from
113 the use or misuse of this software — including but not limited to financial loss,
114 data loss, security breaches, business interruption, or any indirect/consequential damages.
115- This software does NOT constitute financial, legal, trading, or professional advice.
116- Users are solely responsible for evaluating whether this software is suitable for
117 their use case, environment, and risk tolerance.
118- No guarantee is made regarding accuracy, reliability, completeness, or fitness
119 for any particular purpose.
120- The author(s) are not responsible for how third parties use, modify, or distribute
121 this software after purchase.
122
123By downloading, installing, or using this software, you acknowledge that you have read
124this disclaimer and agree to use the software entirely at your own risk.