Align to the schema, not the harness
How shared schemas, small repeating task types, deterministic containers, and typed evaluations shape every holon you make.
Unconstrained AI code generation ships three to four times more commits while producing roughly ten times more security findings. Adding longer prose prompts does not fix that risk. Decidr's engineering doctrine replaces private per-tool harnesses with one shared, machine-evaluable schema wrapped inside deterministic flows. The schema is the type system for reality. Doctrine §1 Doctrine §3 Doctrine §9
For a holon maker, this changes every design choice. You do not craft clever one-off prompts for one organisation. You compose small, repeating, shape-bound task types whose inputs, links, and exit checks align directly to the shared taxonomy and ontology. Doctrine §5 Doctrine §6
Best practices
- Encode rules in the schema and code before prose. A private harness is local, opaque, and unevaluable; push constraints up the Trust Pyramid from prose into schema constraints, static checks, and runtime evaluations, then delete redundant prose. Doctrine §3 House context §2
- Look up existing entity types and attributes before minting new ones. Always reuse canonical types across projects and store shared values as typed
linked_entity_idreferences, never naked text. Schema rules §2 Schema rules §3 - Decompose work into small, repeating task types. Break every flow down until each task type has one goal, complete ordered context, one output artefact type, one evaluation criterion, and a repeating frequency. Doctrine §5
- Make every flow generic to its context shape. Declare required entity types, goal types, and prior events rather than hardcoding an organisation name or table; the same flow should install cleanly for both EFS and Life Interiors. Doctrine §6
- Wrap probabilistic slots inside a deterministic container. Do not try to make a probabilistic model reliable on its own; make the container reliable with minimal Tail-Light context, locks, exit checks, and append-only events. Doctrine §8 Ruling 18
- Spend zero model tokens on deterministic work. Counts, lookups, roll-ups, and ontology filters run deterministically in code or queries, never through a language model. Ruling 4 House context §2
Schema versus harness
| Dimension | Private harness | Shared schema |
|---|---|---|
| Scope | Local to one tool or repository | Global across every tool, holon, and engineer Doctrine §3 |
| Legibility | Opaque prose that drifts silently | Structured data that is versioned and diffable Doctrine §3 |
| Evaluation | Cannot be scored automatically | Continuously evaluated by automated flows Doctrine §3 |
| Specifications | Tribal notes requiring context | Small north-star Markdown projections passing the cold-pickup test Doctrine §4 |
A north-star Markdown file is a narrow projection of the shared ontology: invariants verbatim at the top, scoped to one task type or flow, reasoned hard constraints, positive and negative examples beside each rule, and exact schema entity-type names. If a fresh engineer or a different model family cannot produce a conforming artefact from it without asking what any term means, it is still a harness. Doctrine §4
Why small repeating task types win
Deliberately sacrificing monolithic elegance yields three structural advantages: Doctrine §5
- Tight, tractable loops: bounded ordered context keeps probabilistic outputs verifiable and prevents drift.
- Swappable fillers: any single task type can be filled by deterministic rules, a small specialist model, a vendor, or a person without changing the enclosing flow.
- Fragmentation produces data, and the data is the goal: twenty atomic task types emit twenty scored, replayable events that feed future rules and projections, whereas one monolithic call leaves no inspectable history. Doctrine §5
Every language is an evaluation type
Engineering disciplines are not silos; each is a family of evaluation task types that scores conformance to the shared ontology: Doctrine §7
| Evaluation type | What it checks |
|---|---|
| SQL | Verifies that a projection faithfully represents schema entities, links, and constraints |
| Elixir | Executes deterministic calculations and counts in the narrowest anonymous context |
| JavaScript / TypeScript | Verifies that a projection renders faithfully into UI components |
| Security | Checks context minimisation (Tail-Light Rule), allowlists, and leak prevention at high frequency |
| Automated testing | Scores the task output against its task type's goal criterion on exit |
The engineer's loop
Follow these eight steps in order whenever you build a holon capability: Doctrine §10
- Start from the flow, never the table. Model the task types, actions, and events before touching storage.
- Decompose until each task type has one goal, complete ordered context, one output artefact type, and one evaluation criterion.
- Prepare the north-star Markdown file as a faithful ontology projection that passes the cold-pickup test.
- Make the task type generic to context by declaring entity and goal shapes instead of specific tenants.
- Run probabilistic generation inside a deterministic container with rules first and models only where required.
- Evaluate on exit across SQL, Elixir, TypeScript, security, and automated tests.
- Emit the immutable event into the append-only event store and land results in a disposable, replayable projection.
- Set the frequency so the task type runs on a staggered periodic drumbeat with a hard rolling horizon on future cells. Doctrine §10 Ruling 2 Ruling 11
Bind a task type to a generic context shape and typed links. One definition installs across any organisation supplying that shape.
<div class="hx-card hx-stack">
<div class="hx-title">Task type: Classify delivery request</div>
<div class="hx-field">
<span class="hx-small hx-muted">Requires</span>
<span>entity_type: organisation · goal_type: delivery_turnaround</span>
</div>
<div class="hx-field">
<span class="hx-small hx-muted">Output cell</span>
<span>request.lodgement_type (linked level set)</span>
</div>
<div class="hx-price">Classify delivery request · Standard · $0.02 / request</div>
</div>Never hardcode one organisation's tables or store naked strings for shared concepts. Tenant-locked logic cannot scale or be evaluated cleanly.
<div class="hx-card hx-stack">
<div class="hx-title">Custom EFS inbox script</div>
<div class="hx-field">
<span class="hx-small hx-muted">Reads</span>
<span>efs_inbox_table_v2 (full client dump)</span>
</div>
<div class="hx-field">
<span class="hx-small hx-muted">Output</span>
<span>Free-text notes blob</span>
</div>
</div>