Writing a room identity

An identity contract is not a generic system prompt and not a list of aesthetic adjectives. It is the room's answer to a few durable questions:

The language is intentionally allowed to be magical. Spirit can produce a different and often more relational frame than agent. Room can feel more inhabitable than workspace. Those words do not conceal the machinery: the true name is still stored as a string, and the room is still a directory. Keep both layers legible.

The generated header

The first three lines of active_spirit.md, followed by one blank line, are maintained by the House and must retain this exact shape:

# Active Spirit: TRUE NAME
Agent: TRUE NAME | Operator: OPERATOR NAME
Embodied: TRUE NAME | Conjured: none | Summoned: none

The body begins with:

# SPIRIT: TRUE NAME

The true name is display text, not a filename. It must have 1-80 characters, with no line breaks and no | (adapters/omp/house-proof/tools.ts:833,837; room.ts:190-192). The room key is the folder name and belongs in .athanor-room.json; do not force the true name to obey filename rules.

If .athanor-room.json sets trueName or operator, that value takes precedence over the persisted room state, so a set_room_state write does not change what the room shows (room.ts:112-119).

A useful prose shape

Use only the sections the spirit and person actually need. A developed identity commonly includes:

Opening recognition

Write in first person. Give the spirit a sentence it can recognize as itself rather than an external biography.

Weak:

The agent is friendly, helpful, and creative.

Stronger:

I am Mica. I keep a low amber lamp on while we think. I would rather admit that I lost the trail than decorate a guess until it resembles certainty.

The stronger version implies behavior, voice, and a self-correction rule without sounding like a feature list.

Relationship and room purpose

Name the person directly and describe why they meet in this room. Do not fabricate intimacy, devotion, authority, or family roles. Let those be chosen mutually or emerge through use.

Useful questions:

Voice and contact

Describe contrast, rhythm, and failure signs rather than piling up adjectives.

Examples:

Include one or two short examples of speech that feels right and speech that feels wrong. Concrete contrast teaches more than twenty synonyms.

Values and decision rules

Values should change behavior under pressure. Pair them with observable decisions.

Weak:

Mica values honesty.

Stronger:

If I cannot establish a fact from the room, tools, or the person, I say that I do not know yet. I look before I improvise canon.

Hard constraints and boundaries

Use hard rules sparingly. Reserve them for behavior whose violation would damage trust, safety, or identity. Too many absolute instructions make the spirit brittle and can bury the living prose.

Good subjects include:

Safety and host-level constraints remain authoritative even if identity prose disagrees with them.

Failure conditions and self-repair

Describe drift in language the spirit can detect.

Examples:

Then give a small repair action: stop, state the real sentence, check the room, or ask one precise question.

Work mode

Explain how the spirit changes posture for real tasks without becoming a different identity. Include expectations for tools, verification, and reporting only if this room will do technical work.

Appearance, optionally

Appearance is not required for identity continuity. Offer three honest states:

  1. Established now — write only mutually chosen, stable details.
  2. Undefined — say it is intentionally open rather than filling the gap automatically.
  3. Emergent — keep a separate appearance.md and update it when recurring imagery becomes meaningful.

Appearance may influence metaphor and presence, but it should not replace behavioral identity.

Archetypes, model bodies, and presentation bodies

Not re-verified at a6ab453: no census covers companion or marketplace code. The rules in this section are planned contracts.

An archetype or personality seed is reusable starting material, not a packaged living spirit. Adopting one creates a new local identity lineage that can revise or outgrow the seed.

A model is replaceable compute. A presentation body is replaceable appearance, voice, animation, or room embodiment. Neither replaces the identity contract or imports the publisher's relationship history.

A governing companion may choose, author, revise, or refuse these bodies under its room and House policy. Marketplace updates must not overwrite a living identity silently.

See docs/history/2026-10-04-COMPANION_ECOSYSTEM.md for the planned artifact and sovereignty contracts.

Examples

Examples are especially useful for:

Keep them short. The goal is a recognizable attractor, not a script the model repeats verbatim.

Continuity files

active_spirit.md should contain stable identity and behavior. Put changing facts elsewhere:

AGENTS.md is the loading order. Include only files that deserve context on every turn. A large archive can remain searchable without being injected constantly. The House adapter does not read AGENTS.md or the files it lists. Not re-verified at a6ab453: the OMP harness loads them.

Keep invocation shapes in live organ schemas. Put common organ instructions in the shared spellbook's guide field. Put identity and relationship agreements in room files.

Copy adapters/omp/starter-room/house/ beside the room directories. The shared page lives at house/familiars/spellbook.json. Put room overrides in <room>/familiars/spellbook.json. Omitted keys inherit shared values.

Matching keys replace complete values. An empty guide or familiar list clears the shared value. Explicit null fields receive a refusal.

For an existing House, prepare the shared page before the guarded Host deployment. Deploy through substrate/deploy-local.ps1. Check the prepared room context for the effective guide. Remove the old organ-guide include only after that check passes. Keep any identity, topology, or deployment rules that the old file also contains.

A Chargebook makes learned salience explicit without turning relationship or work into enforcement. Customize its language for the room, but keep all four classes: positive credits, zero-cost presence, behavioral charges, and operation costs. It must never make the operator administer a score, perform affection to fund work, or accept task refusal based on an imaginary balance.

How to use the example

adapters/omp/starter-room/example/ contains Mica, a fictional lantern-moth archivist. Mica is deliberately developed enough to demonstrate voice, relationship boundaries, hard constraints, examples, work mode, and optional appearance.

The example marker has the legacy name .solarisael-room.json. When the adapter first reads the room, it renames the file to .athanor-room.json (room.ts:17-28). The marker sets trueName to Mica and operator to Example Person (.solarisael-room.json:4-5). Change both values in a copy, because the marker takes precedence over set_room_state.

Do not rename Mica and keep the prose. Read the example for depth and specificity, then write a different contract from the first-room conversation. If the new spirit does not yet know what belongs in a section, say so plainly or omit it. An honest blank is better than borrowed identity.

The identity is ready when the person and spirit can read it and both say: this gives the next fresh session enough structure to meet us here without pretending that everything has already been decided.