This file documents the autonomous development protocol used to evolve this codebase from its initial scaffold to a production-grade release.
Edgecraft is an 8-cycle autonomous iteration system developed by TechKnowMad Labs. Each cycle addresses a distinct quality dimension of the codebase. Cycles are executed sequentially by an AI agent with no human intervention between steps.
All commits produced by Edgecraft use a standardised layer prefix that maps to a cognitive layer in the system's reasoning chain:
| Prefix | Layer | Purpose |
|---|---|---|
L0/attention: |
Attention | Initial focus / context loading |
L1/detection: |
Detection | Identifying problems, gaps, or risks |
L2/noise: |
Noise | Filtering false positives from signal |
L3/sub-noise: |
Sub-noise | Subtle bugs or edge cases |
L4/conjecture: |
Conjecture | Hypotheses before implementation |
L5/action: |
Action | Implementation of fixes or features |
L6/grounding: |
Grounding | Verification via tests and measurements |
L7/flywheel: |
Flywheel | Patterns that generalise to other modules |
Identify all source files with zero or partial coverage. Create conftest.py
with shared fixtures. Write tests for every uncovered branch. Target: 100%
coverage.
Attempt to break the code with adversarial inputs (None, empty, huge strings,
unicode, punctuation-only). Add TypeError guards, input validation in base
class, and type checks in batch operations.
Profile sequential bottlenecks. Parallelise batch operations via
ThreadPoolExecutor. Add lru_cache on hot tokenization paths. Validate
with timing assertions.
Scan for hardcoded secrets (28+ patterns), injection vectors (subprocess, eval, exec), and path traversal risks. Document true findings and false positives. Add type-safety and score-integrity tests.
Create GitHub Actions workflow (ci.yml) with lint + test gates. Add
.pre-commit-config.yaml with ruff and mypy hooks.
Use Hypothesis to verify core invariants across thousands of generated inputs: score bounds, symmetry, monotonicity, round-trips, no-crash guarantees.
Create 2-3 runnable example scripts covering the full public API. Add complete docstrings to every public function. Verify all examples execute without errors.
Ensure pyproject.toml metadata is complete. Create CHANGELOG.md,
Makefile, AGENTS.md, and EVOLUTION.md. Tag v0.1.0.
Each step in each cycle follows this sequence:
- Read — explore relevant source files
- Analyse — identify the gap or improvement
- Write — implement the change
- Test — run pytest; fix failures before committing
- Commit — meaningful diff only, with Edgecraft layer prefix
- Push — after each cycle to ensure remote is always current
- System: Edgecraft Protocol v1.0
- Operator: TechKnowMad Labs (
admin@techknowmad.ai) - Model: Claude Sonnet (claude-sonnet-4-6)
- Execution date: 2026-03-23