How tung19/sw_factory works
AREA is a local-first autonomous software factory: a user supplies a requirement (or reference app), AREA turns it into a structured spec and independent acceptance oracle, builds and gates an app, records evidence/provenance, and can deploy it to the user’s Cloudflare or Vercel account. The graph preserves the documented clone, governed intake/inception, iterate, and dashboard branches. Some subsystems are represented by their exact enclosing directory because their implementation was not sampled; those links rely on README descriptions, not inspected internals.
Main entry points: pipeline.py Pipeline orchestration · cli.py CLI · server.py Dashboard · aidlc.py AI-DLC intake
Components 25
User entry points
- CLI
area/cli.py - Dashboard
area/web/server.py - Job manager
area/web/jobs.py - Dashboard auth
area/web/auth.py
Intake and specification
- Governed inception
area/inception/engine.py - AI-DLC intake
area/intake/aidlc.py - Reverse engineering
area/re/extract.py - Spec extraction
area/spec/extract.py - Spec and oracle
area/spec/models.py - Reference research
area/research.py
Build and verification
- Pipeline orchestration
area/pipeline.py - Agent engine adapter
area/engine/adapter.py - Architecture design
area/design.py - Seven verification gates
area/verify - Generated apps and specs
area/paths.py - Project seeding
area/seed.py
Evidence and delivery
- Evidence trail
area/evidence.py - Monitoring and telemetry
area/monitor.py - Build provenance
area/provenance.py - Deploy gate and routing
area/deploy/__init__.py - Cloudflare and Vercel
area/deploy - App export
area/export.py - Audit trace
area/trace.py
Other components
- User
- Claude agent runtime
Connections 34
- User → CLI: issues command
README.md - User → Dashboard: uses dashboard
README.md - Dashboard → Dashboard auth: checks access
area/web/server.py - Dashboard → Job manager: starts jobs
area/web/server.py - Job manager → CLI: runs CLI
area/web/jobs.py - CLI → Pipeline orchestration: runs workflow
area/cli.py - CLI → Governed inception: starts inception
area/cli.py - CLI → AI-DLC intake: starts intake
area/cli.py - Pipeline orchestration → Spec extraction: extracts spec
area/pipeline.py - Pipeline orchestration → Reverse engineering: clones source
area/pipeline.py - Pipeline orchestration → AI-DLC intake: ingests artifacts
area/pipeline.py - Governed inception → Claude agent runtime: proposes artifacts
area/inception/engine.py - AI-DLC intake → Claude agent runtime: translates with agent
area/intake/aidlc.py - Spec extraction → Claude agent runtime: drafts artifacts
area/spec/extract.py - Spec extraction → Spec and oracle: validates against
area/spec/extract.py - AI-DLC intake → Spec and oracle: produces spec
area/intake/aidlc.py - Reverse engineering → Spec and oracle: produces spec
area/re/extract.py - Pipeline orchestration → Reference research: researches inputs
area/pipeline.py - Pipeline orchestration → Architecture design: requests design
area/pipeline.py - Pipeline orchestration → Agent engine adapter: builds app
README.md - Agent engine adapter → Claude agent runtime: runs agent
area/engine/adapter.py - Pipeline orchestration → Seven verification gates: runs gates
README.md - Pipeline orchestration → Generated apps and specs: writes outputs
area/pipeline.py - Pipeline orchestration → Project seeding: seeds project
- Pipeline orchestration → Evidence trail: records evidence
area/pipeline.py - Pipeline orchestration → Build provenance: records provenance
README.md - Pipeline orchestration → Monitoring and telemetry: emits telemetry
area/pipeline.py - CLI → Deploy gate and routing: requests deployment
README.md - Deploy gate and routing → Build provenance: checks provenance
area/deploy/__init__.py - Deploy gate and routing → Cloudflare and Vercel: routes deployment
area/deploy/__init__.py - CLI → App export: exports app
area/cli.py - Dashboard → App export: exports app
area/web/server.py - CLI → Audit trace: shows audit trail
README.md - Dashboard → Evidence trail: reads trail
area/web/server.py