approvedcompleteAGPL-3.0

Factory: stamp EnRaHiTu apps into customer orgs

005-factory-service

The factory turns "customer wants an app named X" into a born-green repo in the customer's GitHub org: clone the pinned enrahitu template, read its template.toml contract (and nothing else), run the scaffold verb with the slot values, emit the born-with certificate and anchor it in the governance ledger, then land it: create a new repo and push (create mode) or open a pull request onto an existing repo (adopt mode), and watch the born-with verify workflow until green. Completes milestone M2 together with spec 004. The contract boundary is absolute: any factory behavior that depends on template internals beyond template.toml is a defect.

Establishes
  • backend/factory/ (directory)
Sections
  • 005: Factory service
  • 1. Cross-repo dependencies (read first)
  • 2. Territory
  • 3. Behavior
  • 3.1 Stamp modes: create and adopt
  • 4. Acceptance
  • 5. Out of scope
Source
specs/005-factory-service/spec.md @ f136bf323cecas of 2026-07-21 ยท shard 63f1389c387a