The Chassis for High-Integrity Software Engineering. Governed by the Project Constitution.
This is not a traditional boilerplate. It is a governed environment designed for a world where AI is a primary contributor. It prioritizes long-term correctness, architectural purity, and automated enforcement over short-term "copy-paste" velocity.
Everything in this repo derives authority from the Project Constitution.
- AI as Untrusted Input: §6.1 mandates deterministic verification for all AI code.
- Honesty Rule: §6.11 forbids fabrication; "I don't know" is a valid and required AI response.
- Language Authority: Language-native idioms override AI "intuition."
Rules are not suggestions; they are blocked by code.
- The Gatekeeper:
make checkis the single source of truth for quality. - Local Sheriff: Strict Git Hooks (
make hooks) enforce Conventional Commits, ban debug logs, and prevent "God Files" (>500 lines). - Architectural Linter: Physical isolation of the
Domainlayer from IO/Infrastructure.
AI agents are ephemeral; this repo provides them with a "brain."
- AI Context Map: High-density machine instructions.
- Project Active Context: Living memory of current work and lessons learned.
- Hallucination Log: Immune system record of recurring AI failures.
git clone <repo-url> my-project
cd my-project
make hooks # Install the automated sheriffs
cp .env.example .envImplementation belongs in src/. Create subdirectories (e.g., src/backend) and ensure they expose the Makefile Contract: fmt, lint, test, build, check.
make fmt # Clean up (Scripts + Components)
make check # Pass the quality gate| Command | Purpose |
|---|---|
make hooks |
Installs local enforcement (pre-commit/push). |
make suggest-version |
Uses AI history analysis to suggest the next SemVer. |
make release |
Automates the full release flow based on git log logic. |
./scripts/measure_loops.py |
Implements the Assumption Reset (§6.4) for stuck tasks. |
./scripts/check_architecture.py |
Audits imports to ensure the Domain remains pure. |
./scripts/check_complexity.py |
Blocks "God Files" and anonymous TODOs. |
.
├── Makefile # Global Orchestration (The Entrypoint)
├── pyproject.toml # Strict Python 3.14+ Governance
├── docs/ # The Legislative Branch
│ ├── CONSTITUTION.md # Supreme Law
│ ├── AI_README.md # AI "System Prompt"
│ └── playbooks/ # Error recovery & Hallucination logs
├── scripts/ # Internal Automation (Strictly Typed)
├── src/ # Implementation Boundary
│ ├── backend/ # Encapsulated Haskell/FP Core
│ └── frontend/ # Encapsulated Elm/TEA UI
└── .github/ # CI & PR Templates
If a change weakens enforcement, blurs boundaries, or relies on AI intuition over language authority, it violates this standard, even if it compiles.
Built for the next generation of AI-assisted engineering.