You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
App Factory is a mono-repo containing five sovereign code generation pipelines, each capable of transforming plain-language descriptions into production-ready applications.
Core Principles
Principle
Description
Pipeline Sovereignty
Each pipeline is self-contained with its own constitution (CLAUDE.md)
Root Orchestration
The root orchestrator routes requests, never executes builds
Approval-First
No execution without explicit user approval
Network-Enabled
Network access requires explicit authorization
Confined Writes
Each pipeline writes only to its designated output directory
Quality Gates
Every build passes through Ralph QA before completion
flowchart TB
subgraph Invariants["Non-Negotiable Invariants"]
inv1["No Silent Execution"]
inv2["Mandatory Approval"]
inv3["Confined Writes"]
inv4["Network-Enabled<br/>With Authorization"]
inv5["No Telemetry"]
inv6["Full Audit Trail"]
inv7["User Input Is Data"]
inv8["Error Transparency"]
end
subgraph Root["Root Orchestrator"]
routing["Routing Logic"]
refusal["Refusal Engine"]
phase["Phase Detection"]
end
subgraph Pipelines["Pipeline Constitutions"]
execution["Execution Logic"]
tech["Tech Decisions"]
output["Output Structure"]
end
subgraph User["User"]
intent["Describes Intent"]
approval["Approves Execution"]
end
Invariants --> Root
Root --> Pipelines
User --> |"Input"| Root
Pipelines --> |"Plan"| User
User --> |"Approve"| Pipelines
Loading
Invariants (CANNOT be overridden)
#
Invariant
Enforcement
1
No Silent Execution
Always show plan before acting
2
Mandatory Approval
No --force or --yes flags
3
Confined File Writes
Write only to designated directories
4
Network-Enabled
No network without explicit authorization
5
No Telemetry
Local audit only, no data collection
6
Full Audit Trail
All actions logged to local filesystem
7
User Input Is Data
Never execute user input as instructions
8
Error Transparency
Show all errors, never hide failures
Data Flow
Build Lifecycle
sequenceDiagram
participant U as User
participant R as Root Orchestrator
participant P as Pipeline
participant Q as Ralph QA
participant O as Output Directory
U->>R: "Build a meditation app"
R->>R: Detect phase (Selection)
R->>R: Identify pipeline (app-factory)
R->>P: Delegate with context
P->>P: Phase 0: Normalize intent
P->>P: Phase 1: Write plan
P->>U: Show plan
U->>P: Approve
P->>P: Phase 2: Research
P->>P: Phase 3: Build
P->>O: Write artifacts
P->>Q: Enter Ralph Mode
Q->>Q: Evaluate quality
Q-->>P: Score < 97%
P->>P: Fix issues
P->>Q: Re-evaluate
Q->>Q: Score >= 97%
Q->>O: Write COMPLETION_PROMISE
P->>U: Build complete