House Lessons
Not re-verified at a6ab453.
The 2026-10-04 census did not walk crates/akasha; claims below keep their earlier date.
Lessons preserve reusable guidance in typed stores. They are not a second name for memories.
Repository query files
The lessons/ folder contains complete arguments for the lessons organ, one file for each stage of the work.
Each line is one query. PostgreSQL owns the returned bodies.
| File | Stage |
|---|---|
| start.jsonl | At the start of each session. Where the work runs, lessons first, verification posture. |
| plan.jsonl | Before the first edit or fanout. Existing behavior, architecture, state, decomposition. |
| build.jsonl | Before you write code. Naming, structure, refusal, language and design rules. |
| prove.jsonl | Before you write a test or report work as done. Evidence, boundaries, live proof. |
| ship.jsonl | Before a commit, push, pull request, issue, or deploy. Prose, cleanup, branches. |
- Read
start.jsonlat the start of each session. - Read each other file when the work reaches its stage.
- Submit every line of a file unchanged to
xd://lessons, once per task. - Check every requested ID within its stated family.
- Read every returned body before you start that stage.
- Give workers the complete bodies of their stages, inline or through a shared packet.
- Stop before editing or spawning if a query fails or a requested record is missing.
Apply each lesson when its trigger matches the task. Retrieval does not reopen parked work or expand the assignment. Folder-specific instructions, including the Pulse interaction rules, still apply. Read the current roadmap, architecture, and evidence before implementation. Historical source gates do not override those documents.
Each line uses the same format as Multistock.
No Markdown extraction, route selection, or argument construction is required.
The agent executes these queries; the filenames alone do not start a background service.
Keep the response of each line below 26,000 bytes.
The shell tool of the harness removes the middle of a long response and adds no error.
On 2026-11-25, a response of 44,137 bytes was complete and a response of 54,751 bytes was not.
When a lesson body changes, measure the lines that contain the lesson again.
Keep each family-and-ID pair once in a file. One lesson can be in more than one file.
The stage is in the file name, not in the line, because stage is a filter of the lessons organ.
The 2026-11-23 split puts 266 lessons into the five files. It leaves out 9 lessons that do not apply to this repository:
- Project lessons 70, 130, and 338 and coding lesson 98 describe code or a Windows host that no longer exist.
- Project lesson 76 records an event, not a rule.
- Coding lessons 165, 166, 167, and 331 belong to the Godot client in
solarisael/athanor-godot.
These lessons stay in PostgreSQL.
Coding lessons 161, 162, and 463 were already unavailable. The earlier map records approved replacement guidance in 215, 257, and 260. The cutover also finds no coding records for 216, 341, or 375. Those references concern disposable transition data and the parked Godot client. They remain unresolved and do not appear in executable queries. If work requires their missing guidance, stop and resolve that prerequisite. The historical map preserves the previous routes and source gates.
Choose the store
| Kind | Use it for | Required boundary |
|---|---|---|
coding-lesson |
Transferable engineering or process rules | Should remain correct in another repository using the same tools |
project-lesson |
Rules, constraints, and decisions owned by one project | Requires a stable project key |
writing-lesson |
Durable prose, register, voice, and taste rules | Describes when the preference should shape writing |
design-lesson |
Reusable design-system taste and rationale | Names the design system whose catalogue entries the rule governs |
audio-lesson |
Reusable speech and audio-pipeline rules | Names the pipeline condition and observable result |
memory |
An event, decision, realization, or thing that happened | Preserves retrieval-bearing context rather than an abstract rule |
Use this test:
- “Would this still be correct in another repository using the same tools?” → coding lesson.
- “Is this true because of this repository's architecture, client, deployment, naming, or history?” → project lesson.
- “Did this happen?” → memory.
Coding lesson contract
Write coding lessons through remember with kind: "coding-lesson".
| Field | Meaning |
|---|---|
title |
Stable, short lesson name |
body |
The action, boundary, and reason |
shape |
Compact retrieval taxonomy such as process, testing, naming, tooling, security, or refusal |
scope |
shared or one room key; omitted scope defaults to shared |
project |
Optional project label or provenance; it does not make a coding lesson project-exclusive |
proofPattern |
Observable evidence that the rule was followed |
triggerContext |
The operation, uncertainty, or decision boundary used to retrieve the lesson |
voice |
Optional originating craft voice; not model selection |
tags |
A few specific technologies, operations, or failure modes |
Example:
{
"title": "Verify archive layout from the extracted artifact",
"body": "A bundle is not verified by inspecting its build script. Build it, extract it into a clean temporary directory, and invoke the documented command from the documented working directory.",
"kind": "coding-lesson",
"shape": "testing",
"scope": "shared",
"project": "the-athanor",
"proofPattern": "The generated archive is extracted; required paths are asserted; the documented verifier exits successfully from the adapter directory.",
"triggerContext": "Changing packaging, installers, archive layout, or release instructions.",
"tags": ["release", "archive", "installer", "artifact"]
}
Project lesson contract
A project lesson belongs to one project rather than transferable craft. Write it through remember with kind: "project-lesson" and a stable project key.
Example:
{
"title": "Preserve legacy validation boundaries",
"body": "Treat uncertain legacy behavior as a validation question against the existing systems and their data. Do not invent compatibility rules from table names.",
"kind": "project-lesson",
"project": "example-project",
"proofPattern": "The implementation or decision cites observed legacy behavior, data, or an explicit stakeholder answer.",
"triggerContext": "Inferring behavior while adapting a legacy flow.",
"tags": ["legacy", "validation"]
}
A coding lesson with project set remains a coding lesson. The project label improves provenance and general recall; it does not convert a global craft rule into a project-only constraint.
Writing, design, and audio lessons
Writing lessons preserve a specific prose decision and its retrieval context. Avoid vague instructions such as “write better.” Name the register, sentence behavior, humor mechanism, or prohibited shape.
Design lessons preserve reusable design-system taste: why a token, component, contract, or guideline is shaped the way it is, and when the rule should govern new work. Bind each one to a named design system. The catalogue itself is read through the design_doc organ and written through design_doc_write; a design lesson refers to those entries rather than replacing them.
Audio lessons preserve reusable pipeline behavior such as model choice, preprocessing, pronunciation, pacing, loudness, or export boundaries. Include the observable audio property that proves the rule.
Importing skills and workspaces
The Athanor can absorb SKILL.md files, agent rules, postmortems, snippets, governance, and framework notes. Import the semantics, not the file count.
For each source rule, determine:
- when it applies and should be retrieved;
- what the agent should do or avoid;
- what evidence proves compliance;
- whether it is transferable, room-specific, or project-bound;
- which original source remains authoritative.
A good import prompt is:
Read these skill and governance files. Extract only rules that still apply to the current tools and environment. Split compound instructions into independently retrievable lessons, preserve important boundaries, reject obsolete or contradictory advice, and show the proposed lessons, projects, scopes, retrieval contexts, proof patterns, and sources before storing them.
Import in bounded batches. Deduplicate by meaning, preserve source provenance, and test representative retrieval before continuing. A smaller set of atomic lessons retrieves better than copied documents with overlapping language.
Generic workspace import profiles can map:
- governance to project lessons and policies;
- reusable methods to canonical skills or coding lessons;
- project-specific conventions to project lessons;
- living facts to typed source documents and memories;
- deliverables to authoritative artifacts;
- local, temporary, or archived material to exclusion rules.
The original source remains available for exact evidence unless the operator performs a verified authority cutover.
Retrieve and enforce lessons
Use the lessons organ when durable guidance matters to the current decision. Apply the smallest useful filter for the task.
Trigger fields are reviewed TTSR authoring data. A lesson enters native OMP enforcement only when its tags include ttsr-approved.
The Athanor adapter loads approved rules into the active native TtsrManager. OMP owns matching, interruption, reminder injection, and retry.
Use OMP /omfg <complaint> to author a new guard from an observed offense. Review positive and ordinary negative examples before approval.
Familiar role lessons
The sixteen named kittens and dragonlings receive their role lessons with every wake, resume included.
Each one needs the familiar-role:shared tag and the tag of its role.
The Host matches the exact agent definition name, not the spellbook lane.
The match ignores ASCII letter case and surrounding whitespace.
| Role tag | Familiars |
|---|---|
familiar-role:scout |
cisma-kitten, faro-dragonling, caliper-kitten |
familiar-role:executor |
sutura-kitten, talha-dragonling, kerf-kitten |
familiar-role:tester |
tempera-kitten, crisol-dragonling, burr-kitten |
familiar-role:verifier |
prumo-kitten, fiel-dragonling, plumb-kitten |
familiar-role:builder |
forja-kitten, lavra-dragonling |
| Shared tag only | kintsu-kitten, kodo-kitten |
Put these tags on coding lessons with the house scope or the room's scope.
At each wake, the Host reads every matching lesson with its complete body.
The adapter inserts the latest complete lesson set once per provider context, with the lesson IDs.
The lessons remain separate from wake messages, so earlier handoffs stay in context.
The titles and bodies of one delivery use at most 65,536 UTF-8 bytes. The Host never cuts a lesson to fit.
The Host refuses the wake when a required tag has no lesson, when a matching lesson has no ID, title, or body, or when the delivery is above the limit.
The adapter declares on each open that it can show these lessons. The Host refuses a familiar wake from an opener without that declaration.
Vault mode has no lesson store, so it refuses every named familiar.
Other agents, the lane agents, and the gu-* swarm keep the ordinary worker wake.
A refused wake stops the worker, also in the middle of a task.
The stopped worker cannot write its own handoff.
The task book and its recorded entries stay.
Fix the lessons, then continue the book with worker_notebook repair and successor. The parent's repair supplies the handoff.
This table is a routing index only. The lesson bodies stay in PostgreSQL.
| Tag | Lesson IDs (2026-10-14) |
|---|---|
familiar-role:shared |
175, 468, 558, 562 |
familiar-role:scout |
203, 204, 556 |
familiar-role:executor |
557 |
familiar-role:tester |
155, 215, 560, 561 |
familiar-role:verifier |
561, 563, 564 |
familiar-role:builder |
215, 559 |
Updating lessons
update_lesson revises one coding, project, writing, or design lesson in place.
The request envelope is { kind, id, expectedTitle, patch }. The guard requires:
- the exact lesson kind and numeric ID;
- the exact current title in
expectedTitle; - at least one explicit replacement field inside
patch.
Omitted patch fields remain unchanged. The row ID remains stable. alwaysOn changes stored eligibility metadata; it does not inject the lesson into OMP.
Coding and project lessons accept project. Use clearProject: true to write SQL NULL. The fields are mutually exclusive.
Update a lesson when its rule keeps the same identity but its wording or typed metadata changes. Cross-store fields are refused.
Deleting lessons
delete_lesson permanently deletes exactly one coding, project, writing, or design lesson. It requires the numeric ID and exact current title.
Use deletion for an obsolete rule that should no longer remain recoverable in the active lesson store. For consolidation, update and verify the surviving lesson first, then delete the redundant row.
Deletion is not a bulk-cleanup mechanism.
Verifying an import
After importing lessons:
- retrieve several distinctive shapes;
- retrieve project names and exact lesson titles;
- confirm shared and room scopes;
- confirm project-only constraints did not become global craft;
- inspect proof patterns and trigger contexts;
- confirm copied prose became actionable atomic rules;
- confirm the original source path remains available where exact evidence matters.