Primer Domain Extension Pipeline
grace advanced 8 min read
ELI5
A factory that builds new factories. Feed it a domain questionnaire; ten gated phases later it has produced 20–40 prompt units, a council of named agents, domain rules, and an RFC summarising what was built — all valid against the same SPEC-01..05 surface.
Technical Deep Dive
Source: architecture/GRACE-PROTOCOL-OVERVIEW.md “Primer Subsystem”. Reference chain: stratt://core/chain/domain-extension-pipeline@1.0.0.
Primer Council (Meta)
| Agent | Role | Phase Ownership |
|---|---|---|
| ANALYST-01 | Domain analyst, gate authority | 0–2 (discovery, mapping, taxonomy) |
| GENERATOR-02 | Code-generation lead, protected | 3–7 (rule, supply, task, chain, role generation) |
| VALIDATOR-03 | Verification specialist | 8–9 (validation, RFC) |
Ten Phases
| Phase | Name | Owner |
|---|---|---|
| 0 | domain-discovery | ANALYST-01 |
| 1 | workflow-mapping | ANALYST-01 |
| 2 | tag-taxonomy-design | ANALYST-01 |
| 3 | rule-generation | GENERATOR-02 |
| 4 | supply-generation | GENERATOR-02 |
| 5 | task-generation | GENERATOR-02 |
| 6 | chain-composition | GENERATOR-02 |
| 7 | role-definition | GENERATOR-02 |
| 8 | domain-validation | VALIDATOR-03 |
| 9 | rfc-generation | VALIDATOR-03 |
Each phase boundary is a SPEC-04 gate.
Execution
sequenceDiagram autonumber participant Op as Operator participant ANA as ANALYST-01 participant GEN as GENERATOR-02 participant VAL as VALIDATOR-03 participant CI as stratt ci Op->>ANA: domain profile (questionnaire) ANA->>ANA: phases 0-2 (discovery, mapping, taxonomy) ANA->>GEN: gate(approved): taxonomy + signal words GEN->>GEN: phases 3-7 (units + chains + roles) GEN->>VAL: gate(approved): unit drafts VAL->>CI: validate fingerprints, DAG, contracts, capabilities alt CI fails CI-->>VAL: FM-01..09 errors VAL->>GEN: regenerate flagged units else CI passes VAL->>VAL: phase 9 RFC generation VAL-->>Op: RFC + 20-40 unit addresses endSpec Hookups
flowchart LR P0[Phase 0-2 discovery] --> S1[SPEC-01 typed contracts] P3[Phase 3-7 generation] --> S1 P3 --> S2[SPEC-02 fingerprint] P8[Phase 8 validation] --> S2 P8 --> S3[SPEC-03 DAG, no cycles] P8 --> S4[FM-04 protected agent] P8 --> S4b[FM-09 capability check] P9[Phase 9 RFC] --> S5[SPEC-05 trace summary] style P3 fill:#fef3c7 style P8 fill:#fef3c7Neuro: First Horizontal Extension
Status: production. 30 units (12 tasks, 4 chains, 5 rules, 4 supplies, 5 roles), 6-agent Dendrite council:
| Agent | Role | Notes |
|---|---|---|
| CORTEX-01 | Neuroscience lead | Gate authority |
| HIPPOCAMPUS-02 | Literature & context | |
| CEREBELLUM-03 | Methodology auditor | |
| AMYGDALA-04 | Integrity guardian | Protected — enforces no-data-fabrication rule |
| THALAMUS-05 | Cross-domain router | |
| TECTUM-06 | Validation specialist |
Two new capabilities introduced for the domain: search, summarisation.
Target State
11 declared domains (dev, ops, docs, neuro, finance, nutrition, legal, film, artist, core, shared) populated, projected 250–350 total units across all domains.
Key Terms
- Domain profile → 30–60 minute questionnaire fed at phase 0; the only operator-supplied input.
- Signal words → Domain-specific vocabulary registered in
BOOTSTRAP.mdfor active context detection. - Meta-council → Primer is the only council that governs the pipeline rather than a vertical domain.
Q&A
Q: Which agent is protected in the Primer council? A: GENERATOR-02. It produces unit drafts; protection (FM-04) ensures generation cannot be bypassed by an alternate path that skips integrity checks.
Q: How many internal gates does the pipeline run? A: Nine — one between each adjacent phase pair (0→1 … 8→9). Each requires the owning Primer agent’s approval.
Q: What does phase 9 actually produce? A: An RFC document summarising 20–40 published unit URIs plus newly-registered domain signal words, ready for community review.
Examples
A finance-domain rollout: operator submits a 60-min finance profile. ANALYST-01 extracts entities (P&L, cap table, audit trail). GENERATOR-02 produces ~30 units (rules: SOX-compliance, anti-fabrication; chains: financial-statement-review). VALIDATOR-03 runs stratt ci, fixes 1–3 import errors, generates RFC-finance-v1 with all unit URIs. New Ledger council (or extension of Terra) becomes operational with one protected agent and one gate authority — same shape as Dendrite.
neighbors on the map
- VAPA & The Five SPEC Layers onboarding a new contributor to the GRACE protocol surface
- Nine Councils & Agent Roster routing a chain to the right gate authority