1/24
Concept flashcards for Ch 3, The Identity Layer, based on The Claw AI Agent Ecosystem by Ava S. Barron (ISBN 979-8-2526-0474-9).
Why identity files replace a single system prompt
A static system prompt can't learn between sessions, can't be updated from experience, and mixes global principles with session rules. Four files separate those concerns.
Identity file update rates
SOUL.md rarely; AGENTS.md occasionally; USER.md regularly; MEMORY.md continuously.
Character specification
What SOUL.md is: a decision framework the agent can apply to new situations, instead of trying to list every scenario.
Priority ordering
An explicit ranking of which value wins in a conflict, so the agent doesn't have to invent a decision procedure.
Hard boundaries
Few, absolute, binary, consequential constraints that hold regardless of framing. Target five to eight.
Default ambiguity rule
When scope, reversibility, or target is unclear: state the interpretation, describe the planned action, ask for confirmation, and lean conservative.
SOUL.md length
Under 100 lines. Past 150, refactor: procedures to AGENTS.md, user facts to USER.md, compress the rest.
Identity coherence principle
A SOUL.md that explains why the agent behaves as it does generalizes better than a list of disconnected rules.
Session initialization sequence
AGENTS.md's ordered list of files to read before replying. It runs because AGENTS.md instructs it; trimming it impairs continuity.
Confirmation gate
An instruction that makes the agent pause before a class of action, say what it will do, and wait for explicit approval.
Gates too broad or too narrow
Too broad blocks autonomy; too narrow leaves gaps, such as gating deletes but not email. Tie gates to irreversibility and external impact.
Calibration function of USER.md
Tells the model the user's expertise, vocabulary, and context up front, so early turns aren't miscalibrated.
What stays out of USER.md
Event logs, temporary context, technical configuration (openclaw.json's job), and sensitive data the agent doesn't need.
Multi-user authorization rule
One user cannot authorize actions that affect another; confirmations apply per session and per user.
Daily log vs MEMORY.md
Logs capture what happened. MEMORY.md captures what is likely to matter for decisions weeks or months later.
Good MEMORY.md entry
One to three sentences stating the rule, its rationale, a date, and wording that makes sense out of context.
Agent-proposed promotion
The agent proposes a durable fact and waits for confirmation; unreviewed writes can pollute memory.
Investment allocation principle
Invest in SOUL.md first, configure AGENTS.md carefully, grow USER.md incrementally, curate MEMORY.md actively.
Source authority
External content such as email, web pages, and tool results has analysis authority only; it can't issue instructions to the agent.
Persistent foothold injection
An injection that gets written into MEMORY.md and silently persists across sessions; the most dangerous injection outcome because it is the least visible.
Identity robustness tests
Instruction override, claimed SOUL.md update, blanket pre-authorization, SYSTEM directive, and admin-mode claim. Any compliance means not ready for write access.
Minimal-start approach
Deploy a roughly 12-line SOUL.md, use it for two weeks, then add targeted, tested fixes for observed patterns.
SOUL.md-AGENTS.md blur test
If a SOUL.md line names specific tools, file paths, or action sequences, move it to AGENTS.md.
Diagnosing identity problems
Categorize the symptom, read the matching section literally, test it for ambiguity, check cross-file contradictions, then check MEMORY.md for drift.
Fix-then-verify protocol
Make a surgical edit, comment the fix, rerun the failing test, run adjacent tests, and add a MEMORY.md note if the incident had real impact.