Skip to main content

Commissioning State Machine

In a dairy factory, equipment doesn't just appear. It progresses: idea → spec → P&ID → procurement → in transit → in store → mechanically in place → electrically wired → controls proven → operating system. Each state has evidence. Each transition is deterministic. The commissioning engineer knows exactly where every piece stands.

Why would software be different?


The Job

When a venture has many data tables and no compass — scores plateau, interpretation is manual, and gaps never route to tasks — help it know where every table stands, detect gaps automatically, and route those gaps to executable work.

Trigger EventCurrent FailureDesired Progress
195 tables, no compassNo visibility into maturity — which tables are ready, which are stuckEvery table has a state. Every state has evidence. Every gap routes to a task.
Scores plateauManual interpretation, no systematic path to improvementAlgorithm detects gaps. Gaps become tasks. Tasks close gaps.
"Is this table done?"Depends who you ask. No single source of truth.State machine answers. Deterministic. Evidence-based.
New venture spins upEach venture reinvents maturity trackingSame 10-state progression. Same Factory Control Room. Same gap-to-task pipeline.

The job: "I need to know where every data table stands — and have gaps turn into tasks automatically."

The hidden objection: "What if the algorithm is wrong?" The answer: the algorithm stays pure — no side effects, deterministic transitions, schema changes through migration workflow. The constitution protects the signal.


The Factory Metaphor

Matt's dairy factory experience maps directly. Equipment progresses through discrete states. Same model applies to every data table.

Factory StateDream Repo StateConceptual Evidence
IdeaIdea (0)Concept exists — the table is named and scoped
SpecSchema (1)Data structure defined — columns, types, constraints
P&IDMigration (2)Migration applied — structure lives in the system
ProcurementData (3)Seed data populated — table has initial content
In transitRepository (4)Data access layer exists — read/write operations defined
In storeServer Actions (5)Server-side operations exposed — business logic callable
Mechanically in placeCRUD UI (6)Human interface operable — operators can manage data
Electrically wiredETL Pipeline (7)Data pipeline connected — extraction and load verified
Controls provenA2A API (8)Machine interface exposed — agents can access programmatically
Operating systemE2E Tests (9)End-to-end verification passes — full loop proven
CommissionedFully Commissioned (10)Operational readiness — table is live and trusted

Every table. Every venture. Same progression. The Factory Control Room shows the state of the whole system.


The 10-State Machine

StateNameConceptual Evidence
0IdeaConcept exists — table is named and scoped
1SchemaData structure defined
2MigrationMigration applied
3DataSeed data populated
4RepositoryData access layer exists
5Server ActionsServer-side operations exposed
6CRUD UIHuman interface operable
7ETL PipelineData pipeline connected
8A2A APIMachine interface exposed
9E2E TestsEnd-to-end verification passes
10Fully CommissionedOperational readiness achieved

Constitution: The algorithm must remain pure — no side effects. State transitions are deterministic. Schema changes flow through the migration workflow. The state machine observes; it does not mutate.


Gap Detection → Task Automation

The value isn't the state. It's what happens when a gap is detected.

Gap Detected → Algorithm Identifies Missing Evidence → Task Generated → Task Assigned → Gap Closed
Gap TypeDetectionTask Routing
Table stuck at SchemaNo migration evidenceGenerate migration task
Table stuck at RepositoryNo data access layerGenerate repository task
Table stuck at CRUD UINo human interfaceGenerate UI task
Table stuck at ETLNo pipeline connectionGenerate ETL task
Table stuck at A2ANo machine interfaceGenerate API task

Target: 80% of gaps route to tasks automatically. No manual interpretation. No "someone should fix that" — the system produces the task.


Feature / Function / Outcome

#FeatureFunctionOutcomeJob
110-state progression modelTrack every table through Idea → Fully CommissionedVisibility — no table is invisibleCore
2Evidence-based state detectionAlgorithm evaluates conceptual evidence per stateDeterministic — no manual scoringCore
3Gap detection engineIdentify tables stuck below target stateGaps surface automaticallyCore
4Gap-to-task routingConvert detected gaps into executable tasks80% of gaps become tasks without human interpretationCore
5Factory Control Room dashboardSingle view of all tables, states, and gaps"Where does everything stand?" answered in one glanceCore
6Algorithm constitutionPure function, no side effects, deterministic transitionsTrust — the signal is reliableCore
7Migration workflow enforcementSchema changes flow through defined processIntegrity — no bypass pathsSupporting
8Commissioning verificationIndependent check against specBuilder ≠ Commissioner — factory disciplineSupporting

Business Dev

This is a Mycelium capability — it doesn't sell directly. It sells by making every venture's data maturity visible and actionable.

LayerDecisionInitial AssumptionEvidence to Collect
ICPWho benefits first?Ventures with 20+ data tables and no systematic maturity tracking5 ventures name "table chaos" or "no compass" unprompted
OfferWhat does this enable?"Every table has a state. Every gap becomes a task."Stackmates adopts as default for new tables
ChannelHow does adoption happen?Internal-first — every new table enters the state machine by defaultNew tables appear in Factory Control Room within one cycle
ConversionWhat proves it works?First gap auto-routed to task and closedGap-to-task automation rate > 50% in first 30 days
RetentionWhy does it stick?Once the dashboard exists, operating without it feels blindWeekly Factory Control Room views > 80% of active builders
ExpansionHow does it compound?Every mushroom cap benefits from commissioned dataHowzUs, PrettyMint, BerleyTrails adopt the same progression

Commissioning

ComponentSchemaAPIUITestsStatus
State machine enginePendingPendingPendingPending0%
Evidence evaluation (pure)PendingPendingPendingPending0%
Gap detectionPendingPendingPendingPending0%
Gap-to-task routingPendingPendingPendingPending0%
Factory Control Room dashboardPendingPendingPendingPending0%
Migration workflow integrationPendingPendingPendingPending0%

Metrics

MetricTargetWhy It Matters
Tables reaching state 7+20 tablesOperational readiness — data flows, interfaces exist
Algorithm confidence> 70%The signal is reliable enough to act on
Average score> 5.0System-wide maturity is improving
Gap-to-task automation80%Manual interpretation eliminated

Risks + Kill Signal

RiskMitigation
Algorithm becomes heuristic soup — side effects creep inConstitution: pure function, deterministic, migration workflow only. No exceptions.
Evidence evaluation is wrong — false positives or negativesConfidence threshold. Algorithm reports confidence; low confidence flags for human review.
Factory Control Room becomes another dashboard nobody usesTie to task routing. If you don't look, gaps don't become tasks. Make the dashboard the entry point for "what do I work on next?"
State machine diverges from realityCommissioning verification — independent check. Builder builds. Commissioner validates.
Migration workflow bypassedSchema changes only through migration. No back doors.

Kill signal: 0 tables reaching state 7+ after 90 days. If the system can't move tables through the progression, the state machine is theory, not tool. Kill and simplify.


Mycelium Capability

This is the progressive maturity automation that ensures every data table reaches operational readiness. Any mushroom cap venture benefits from commissioned data.

VentureDepends On Commissioning For
StackmatesCRM tables, pipeline tables, task tables — know what's live
DreamineeringContent pipeline data, mental model indexing — maturity visibility
HowzUsProperty data tables — which sources are ETL-ready
PrettyMintProduct catalog, inventory — operational readiness
BerleyTrailsTrail data, recommendation tables — gap-to-task for data quality
TouchForFunSession data, player data — commissioning before scale
BetterPracticePractice logs, protocol data — tables that compound

When commissioning works, every venture knows where its data stands. When it doesn't, every venture reinvents maturity tracking. This is the highest-leverage Mycelium primitive for data readiness.


Context