Sovereign Dark Factory (local-dark-factory)
A local-first, zero-cloud-token AI Software Factory that coordinates coding agents in fast, isolated git worktrees, enforces deterministic verification gates, preserves patches and execution evidence, and integrates human-in-the-loop governance.
"Make sure you own your AI. AI in the cloud is not aligned with you; it’s aligned with the company that owns it."
📖 AI-Native SDLC Architecture
This project follows the AI-Native SDLC Playbook:
| Artifact | Purpose | Status |
|---|---|---|
intent.md |
The Planning Artifact: Problem statement, vision, constraints, and success criteria. | ✅ Established |
spec.md |
Technical Specification: Architecture, data contracts, and component interfaces. | ✅ Established |
CLAUDE.md |
Project Operating Manual: Build/test commands, non-negotiable rules, and architectural guidelines. | ✅ Established |
AGENTS.md |
Agent Instructions: Guidelines for local inference skills (local-coder) and code standards. |
✅ Established |
plan.md |
Implementation Roadmap: Phased execution plan from domain contracts to E2E CLI. | ✅ Established |
REVIEW.md |
Governance & Review Policy: Human-in-the-loop (HITL) criteria and operator commands. | ✅ Established |
🔗 The Local Stack Integration
Unlike existing cloud-bound prototypes, the Sovereign Dark Factory runs entirely on your workstation without cloud dependencies:
Task Submission (CLI / Trigger)
│
▼
Durable SQLite Workflow Engine (.factory/factory.db)
│
▼
Disposable Git Worktree Sandbox
│
▼
Local Agent Harness (local-coder)
├── Ollama (:11434): qwen2.5-coder:14b / 7b
└── Prism CUDA (:5272): phi4-mini / ONNX GenAI (Prism)
│
▼
Deterministic Verification Gates (test.sh / pytest / cargo / npm)
│
├──[Failed]──► AST Self-Healing Loop (max N retries)
│
└──[Passed]──► Evidence Locker (.factory/runs/<RUN_ID>/diff.patch)
│
▼
Human-in-the-Loop Review Gate (dark-factory review --approve)
🚀 Quick Start (Development)
# 1. Health check local engines & GPU
python3 -m dark_factory.cli doctor
# 2. Run unit tests
pytest tests/ -v
# 3. Submit a dark factory task
python3 -m dark_factory.cli run \
--repo /path/to/repo \
--task "Implement thread-safe token bucket limiter" \
--gates default
# 4. Run the repeatable real-model benchmark suite
dark-factory eval --list
# 5. Browse run history, evidence, and eval reports (local, read-only, 127.0.0.1 only)
dark-factory dashboard
Metadata
Release files for local-dark-factory 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| local_dark_factory-0.1.0.tar.gz | 124.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| local_dark_factory-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 203.8 kB
Release files / local_dark_factory-0.1.0.tar.gz
| Download URL | local_dark_factory-0.1.0.tar.gz |
|---|---|
| Size | 124.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5ab294bff3c66bafb605a07d58226b49f477a99b79ee44a25f07f80d4336cd40
|
|
BLAKE2b-256 checksum How to use checksums |
485347046905be1a969502c6135bab055b883c235fdb2ef22aefcfbd45170ce8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 16, 2026.
Transparency logRelease files / local_dark_factory-0.1.0-py3-none-any.whl
| Download URL | local_dark_factory-0.1.0-py3-none-any.whl |
|---|---|
| Size | 79.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e74ab3302c4e73ac3752a7f9136a80e85d743a6447fc5d7f88d0676800876316
|
|
BLAKE2b-256 checksum How to use checksums |
819a869dfe5973bd883dff9df042bfb7572e797d363d5f65a752980cbd36b2d8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 16, 2026.
Transparency log