Micro-App Factory
Every automated play in the Martin system started as an unstructured AI conversation. The Micro-App Factory is the methodology for converting those conversations into production-grade systems - versioned, validated, persistent, and repeatable. This page documents how that conversion works and why it matters.
From Conversation to Production
Raw AI Conversation
An unstructured question to an LLM. "Can you analyze this account's platform usage?" No defined inputs, no expected outputs, no validation. The AI produces something plausible. Sometimes useful. Never reliable.
Structured Prompt
The conversation becomes a specification. Defined inputs (Salesforce account ID), expected outputs (usage metrics by product), specific tool calls (dbt queries with exact table paths). The AI now has constraints. Output quality improves, but execution is still manual and unrepeatable.
Executable DNA
The specification becomes a phased execution plan stored as structured data. Each phase has a tool call, a validation checkpoint, and a defined output. The DNA is version-controlled and readable by both humans and the AI orchestrator. This is where a workflow becomes a system.
Production Deployment
The DNA executes against a real account with real data. The output is logged with a timestamp, quality score, and execution duration. Failures are captured. Edge cases surface. The gap between "works in theory" and "works in production" becomes visible.
Failure, Correction, New Rule
Production exposes what testing cannot. A schema changes and queries break. An engagement score is estimated instead of computed. A contact email is inferred instead of verified. Each failure becomes a validation rule - a permanent constraint that prevents the same error from recurring. The system gets stricter with every deployment.
Versioned and Persistent
The corrected DNA is versioned (v1.0, v1.1, v2.0). Execution history persists to Snowflake. Learnings are documented in the deployment log. The play now has a lineage - every version traceable to the failure that prompted it. Intelligence compounds across sessions instead of resetting to zero.
Repeatable
The methodology applies again. A new question becomes a new conversation becomes a new DNA becomes a new production system. Each iteration is faster than the last because the infrastructure (memory core, validation framework, logging pipeline) already exists. The factory produces the next system, not just the first one.
Production Evidence
- 17 systems built using this methodology. 9 single-account plays (User Analysis, Platform Usage, Risk Mitigation, Expansion Planning, Intelligence Gaps, Value Framework, Multi-Threading, Champion Cultivation, Enterprise Account Framework), 5 portfolio plays (Portfolio Access, Renewal Pipeline, Low Usage Finder, Play Planner, Bulk Credit Monitor), 2 synthesis patterns (Renewal Prep, QBR Prep), and 1 utility (Meeting Follow Up). Each one started as a conversation.
- User Analysis progressed from v1.0 (a single query with no validation) to v2.6 (provisioning-filtered, schema-corrected, 8-archetype classification framework) through 12 production deployments over 4 months. Platform Usage progressed through 13 versions. Enterprise Account Framework reached v1.5.0 with 22 API calls per execution and 3-source contact verification.
- The validation framework grew from 0 rules to 20 enforceable rules across 3 severity tiers. Every rule traces to a specific production failure. STEP_9B (provisioning filter enforcement) exists because usage data was inflated 40-70% without it. CONTACT_SOURCE_VALIDATION exists because the system fabricated contact emails. EMAIL_INFERENCE_PROHIBITION exists because pattern-generated emails passed initial checks but were not verified.
- The infrastructure that manages all 17 systems - the Memory Core - contains 13 sheets across 4 intelligence layers, 4 Snowflake tables for cross-session persistence, and a skills registry that maps natural language commands to executable DNA. The factory does not just produce systems. It produces the management layer for those systems.
Martin Is the Proof
Martin is not one product. It is 17 products managed by a single orchestration layer, built over 5 months using the methodology described above. The Memory Core is the persistent infrastructure. The validation framework is the quality guarantee. The version history is the evidence of iteration. The Micro-App Factory is the process that produced all of it - and the process that will produce whatever comes next.