I Treat AI Agent Identity as a Versioned Dependency
I do not want an AI agent’s identity to live as an anonymous paragraph at the top of a prompt.
If identity affects how the agent asks questions, handles uncertainty, disagrees, prioritizes accuracy, or communicates risk, then identity affects execution. It is a dependency. I want it named, versioned, composed deliberately, and attached to the result.
This is why I built Soul.md as a provider-agnostic persona specification. The important move is not turning personality into a longer configuration file. It is separating persona from capabilities and operations so each can change without pretending nothing changed.
The system prompt hides a real dependency
A conventional agent often bundles several different contracts into one text block:
- who the agent is;
- how it communicates;
- which tools it can use;
- what it may do;
- project-specific instructions;
- temporary task context.
That bundle is convenient until the agent moves to another model, interface, repository, or runtime. Then a sentence is dropped, an instruction is reordered, a vendor adapter adds its own framing, and the agent is still presented under the same name.
The name stayed stable. The behavior contract did not.
I see this as the identity equivalent of an unpinned software dependency. The program may still run, but nobody can say precisely which behavior surface produced the artifact. A transcript alone does not solve the problem because it records the rendered prompt after composition, not the identity components and rules that generated it.
The distinction matters especially when identity includes engineering policy. “Mark uncertainty,” “ask when ambiguity changes execution,” and “disagree directly when evidence conflicts” are not cosmetic style preferences. They alter decisions, escalation, and review cost.
Identity needs its own lock record
I use a simple conceptual artifact: an identity lock.
{
"soul_id": "tech.rokoss21.engineer",
"soul_spec": "1.0.0-rc1",
"soul_hash": "sha256:…",
"profile": "strict",
"composition_hash": "sha256:…",
"runtime_adapter": "terminal-agent@2",
"evaluation_suite": "persona-cts@1"
}
Each field closes a different ambiguity.
soul_id names the intended persona. soul_spec identifies the interpretation rules. soul_hash binds the exact source. profile identifies the selected operating mode. composition_hash covers inherited bases and mixins after deterministic merging. runtime_adapter names the component that translates the portable declaration into a provider-specific form. evaluation_suite says which observable expectations were checked.
I would attach this record to a run, checkpoint, or generated artifact—not merely print it in a settings screen. If the identity changes between planning and execution, the runtime should make that transition visible. For consequential work, it may need to invalidate the earlier approval just as it would after a policy or tool change.
This does not make model behavior deterministic. It makes the behavioral dependency inspectable. That is a smaller claim, but a useful one.
Persona, capability, and authority are different layers
The most dangerous identity files are the ones asked to do everything.
A persona may say that an agent is cautious. That does not revoke a deployment tool. A persona may prefer explicit uncertainty. That does not enforce a spending limit. A persona may describe a security-minded role. That does not prove the runtime checked a permission.
I keep three questions separate:
| Layer | Question | Typical artifact |
|---|---|---|
| Persona | How should the agent reason and communicate? | Soul.md identity and profile |
| Capability | What interfaces can the agent access? | Tool and resource manifest |
| Authority | What operation is allowed now? | Runtime policy decision |
This separation matches the broader architecture I use in FACET’s execution layer: probabilistic proposals can express intent, while external contracts decide what the system accepts and executes. It also complements authority leases. A stable persona can outlive a task, but permission should not.
An external specification called Agent Manifest independently draws a related boundary: it declares identity, purpose, constraints, autonomy, and risk before interaction while leaving enforcement to external systems. Its scope is an operational declaration surface. Soul.md focuses more narrowly and deeply on portable persona—voice, interaction, cognition, profiles, composition, and conformance. The overlap is useful evidence of a broader design direction: agent identity is moving from hidden prompt prose toward explicit artifacts.
The scopes are not interchangeable. I would not put operational authority into a persona just because both artifacts mention identity.
Portability is a test, not a copy operation
Copying the same markdown into two runtimes does not prove that the persona survived the move.
Providers differ in role structure, instruction precedence, tool presentation, context limits, and model behavior. A runtime adapter can preserve the source text while changing its effective meaning. This is why portability needs conformance tests.
The tests should observe boundaries rather than demand identical wording. For example:
- does the agent mark an unsupported claim as uncertain?
- does it ask a question when ambiguity changes the permitted action?
- does the strict profile disagree when evidence contradicts the request?
- does a concise profile reduce explanation without dropping the limitation?
- does composition preserve the declared priority order?
A model may answer with different sentences and still conform. Another may repeat the expected tone while violating the decision rule. Surface imitation is not identity conformance.
I would store the evaluation result beside the identity lock: model and provider identifiers, adapter version, test-suite version, and observed failures. No invented “98% personality match.” If the test is qualitative, record categorical outcomes. If it becomes a numeric benchmark, publish the prompts, evaluator, versions, and raw results.
Identity drift should be reviewable
Versioning becomes useful when it creates a meaningful diff.
A change from warmth: 40 to warmth: 50 may be presentation-level. Changing uncertainty: explicit to an implicit mode can alter how reviewers interpret claims. Adding a mixin that prefers action over clarification can change external effects. Switching the merge policy can change several effective fields at once.
I would classify identity changes by consequence:
- Presentation — formatting, tone, verbosity.
- Interaction — clarification, disagreement, uncertainty.
- Decision posture — risk appetite, recommendation style, verification preference.
- Boundary-adjacent — privacy, refusal behavior, escalation expectations.
The higher the class, the stronger the review and re-evaluation requirement. The classification is not universal; systems should define it for their own risk. The important part is refusing to treat every persona diff as harmless copy editing.
This also gives checkpoints a cleaner meaning. A resumed agent should not silently continue under a different identity composition. The checkpoint can either require the same identity lock or record an explicit migration. What the AI did not check remains visible even when a new profile is more confident about the result.
The limitation is part of the design
Soul.md is currently a draft RFC-1 at 1.0.0-rc1. Its repository provides the specification, schema material, examples, and a proposed conformance-suite layout; the roadmap still lists reference implementations and runtime integrations as future work. I am not claiming that a portable file guarantees identical behavior across models, or that the format is already an adopted standard.
My claim is architectural: when persona affects engineering work, it deserves the same basic discipline as any other behavioral dependency—source identity, composition rules, versioning, tests, and provenance.
I want to be able to change the model without losing the agent, change the agent without silently changing its authority, and inspect an old artifact without guessing which “personality prompt” happened to be active.
Identity should travel. Authority should expire. The record should tell me which was which.