Skip to Content
AdvancedOrchestrator

Orchestrator

The Lamina orchestrator coordinates design → ready_to_build → external build → verify. It routes slash commands to workflows, selects capability skills via audit profiles, and manages subagent patterns during verify.

Quick path

ModeWhenLoads
WorkflowSlash commands (/lamina-design, etc.)Orchestrator → workflow → audit profiles → skills
Direct/lamina <focused question>lamina-core → one skill

Architecture

/lamina* command lamina-orchestrator workflow (router | init | design | verify) audit-profiles.yaml → capability skills .lamina/ artifacts

Mode B guardrail: the orchestrator writes only under .lamina/. Never app source.

Workflows

WorkflowFilePurpose
Routerworkflows/router.mdIntent parsing for /lamina
Initworkflows/init.mdDomain charter bootstrap
Designworkflows/design.mdContract → ready_to_build
Verifyworkflows/verify.mdPersona walks → findings[]

Orchestrator steps

  1. Select — pick skills from audit profiles for the current workflow section
  2. Apply — load each skill; write run.json incrementally
  3. Deliver — output contract; design ends at ready_to_build + implement.md; verify ends at findings[] + fix.md

Audit profiles

audit-profiles.yaml maps workflow sections to capability skills. Examples:

Profile sectionSkills loaded
design-domainsystem-structure, invariants, dependencies
design-scenariosedge-cases, error-handling
design-intakeproblem-framing, feature-discovery
verify-contractusability-evaluation, research-synthesis

During design, the orchestrator loads profiles sequentially or in parallel (when the host supports it) to build the contract section by section.

Subagent patterns

Used during verify and brownfield design:

PatternPurposeWhen
persona-panelOne subagent per actor/lamina-verify
visual-walkthroughBrowser capture at base_urlVerify and brownfield
parallel-reviewMultiple expert lenses in parallelDesign review, a11y
fresh-contextBounded brownfield repo scanInit and design on existing code

Advanced: Subagents return fragments to the orchestrator — they do not write files directly. This enforces the .lamina/ write boundary.

Persona panel

One subagent per primary: true actor in personas.json. Each walks the live app independently, checking their workflows and permissions.

Visual walkthrough

Captures screenshots and step annotations at base_url. Evidence lands in walkthrough/ and informs findings.

Parallel review

During design, loads accessibility and heuristic review skills in parallel when supported — catching issues before implementation.

Fresh context

Bounded repo scan for brownfield projects. Reads source files and may walk live UI to ground contracts in existing behavior.

Init gate

Before design or verify workflows run, the orchestrator checks prerequisites/init-required.md. Without valid business-context.md, it returns the init-blocked output and stops.

Merge rules

merge-rules.md defines how skill outputs combine into run.json — grounding requirements, conflict resolution via decisions.md, and incremental writes.

Key files in the repo

FilePurpose
skills/lamina-orchestrator/SKILL.mdOrchestrator entry point
skills/lamina-orchestrator/artifacts.mdSchema and lifecycle
skills/lamina-orchestrator/audit-profiles.yamlSection → skill mapping
skills/lamina-orchestrator/workflows/*.mdCommand behavior
skills/lamina-orchestrator/patterns/*.mdSubagent patterns
skills/lamina-core/guardrails.mdWrite boundaries

Next steps

Last updated on