#The Anti-Shortcut Imperative
In software engineering, shortcuts are the silent killers of quality. A βtemporaryβ mock becomes permanent. A βquick fixβ with a hardcoded value survives years. A βnaive implementationβ never gets replaced. These shortcuts accumulate like technical debt with compound interest.
ARCHER SUPREME eliminates this problem entirely through absolute zero-tolerance enforcement at every level of the platform.
#What ARCHER SUPREME Prohibits
| Category | Patterns | Severity |
|---|---|---|
| Mocks in Production | Mox.defmock in lib/ | BLOCK |
| Stubs | raise "needs implementation" | BLOCK |
| Placeholders | # PLACEHOLDER, # STUB, # MOCK | BLOCK |
| Incomplete Markers | # TODO:, # FIXME:, # XXX: | BLOCK |
| Naive Code | # naive, # temporary, # quick and dirty | BLOCK |
| Hardcoded Values | localhost, 127.0.0.1 in lib/ | BLOCK |
| Workarounds | # WORKAROUND, # HACK | BLOCK |
#Enforcement Architecture
ARCHER SUPREME operates at three enforcement layers:
Layer 1: Pre-Commit Hook The .githooks/pre-commit-archer-supreme script scans all staged .ex files in lib/ for forbidden patterns. Enforcement infrastructure files (mix tasks that define the patterns) are whitelisted. Any violation blocks the commit.
Layer 2: Mix Tasks mix archer.scan_shortcuts performs deep scanning across the entire codebase. mix archer.compliance_check generates comprehensive compliance reports. These integrate into CI/CD pipelines.
Layer 3: Genetic Encoding The anti-shortcut policy is encoded as a genetic trait in the platformβs evolutionary system with dominant inheritance and a 0.01 mutation rate. This means the policy propagates to all future evolutionary generations and is extremely resistant to degradation.
#Task Structure Requirements
Beyond code quality, ARCHER SUPREME enforces task discipline:
- 15-Minute Maximum: No single task should exceed 15 minutes
- 3-Layer Nesting: Prefer hierarchical decomposition with 3 nesting levels
- Transitive Fixing: When working on any task, fix any shortcut patterns encountered in the surrounding code
#The COSMIC CLEARANCE Authority
ARCHER SUPREME operates under COSMIC CLEARANCE - the highest authority level in the platform. This means:
- No exceptions under any circumstances
- No bypass mechanisms
- No βtemporaryβ exemptions
- Violations trigger immediate enforcement
#Results
Since ARCHER SUPREME enforcement:
- 0 mocks in production code (verified by pre-commit)
- 0 stubs/placeholders in any committed code
- 0 # NMND_IMPLEMENTATION_REQUIRED: /# NMND_IMPLEMENTATION_REQUIRED: markers in production paths
- 100% production-ready code from moment of creation
The platform doesnβt have a βwill fix laterβ category because there is no βlaterβ - code is either complete or it doesnβt enter the codebase.
ARCHER SUPREME: NO SHORTCUTS ALLOWED UNDER ANY CIRCUMSTANCES