On a benchmark of 11 real engineering changes across 5 families, an ensemble using organizational patterns + static code structure achieved 82% recall and 74% precision.
- That 82% generalizes to other codebases
- That 82% holds at n=50
- That this is better or worse than a mid-level engineer
- That the knowledge decomposition (Pattern vs Structure) is universal
- Engineering judgment decomposes into at least two measurably independent channels
- Those channels (organizational memory + structural analysis) are 67% independent
- Their union significantly outperforms either alone
- Software can catch dependencies that human experts miss (1 confirmed case)
Dataset: 11 entries, 5 families
Engine version: v0.1 (frozen — do not optimize further until n≥30)
╔═══════════════════════════════════════════════════════╗
║ Oracle P R Top1 Cov ║
╠═══════════════════════════════════════════════════════╣
║ Ensemble(P+S) 74% 82% 73% 91% ║
║ PatternExpert 85% 55% 55% 64% ║
║ StructureOracle 55% 55% 45% 91% ║
║ SamePackage (base) 55% 64% 55% 100% ║
║ DirectDeps (base) 100% 21% 36% 27% ║
╚═══════════════════════════════════════════════════════╝
ENGINEERING JUDGMENT
100%
│
┌────────────┴────────────┐
Explained Unexplained
82% 18%
┌──────┴──────┐ │
Pattern Structure Needs:
55% 55% • History?
Overlap: 27% • Runtime?
• Intent?
- ⬜ Grow dataset to 30-50 entries (diverse: bug fixes, refactors, deps, IAM, proto, CI/CD)
- ⬜ Add entries from teammates (not just my own changes)
- ⬜ Add human baselines (junior / mid / senior predictions)
- ⬜ Confidence calibration (does 90% confidence mean 90% correct?)
- ⬜ Per-family stability analysis (does each family hold with more examples?)
- ⬜ Only then: test Historian (does git history add signal beyond 82%?)
cd judgment-engine
python3.10 -m src.cli # leaderboard
python3.10 -m src.cli -v # per-entry detailjudgment-engine/
├── README.md # This file
├── PRODUCT.md # GitHub App product spec
├── LANDING.md # Landing page copy
├── PLATFORM.md # 18-month expansion roadmap
├── VERIFICATION.md # Pass/fail criteria + kill conditions
├── THIS_WEEK.md # Immediate action items
├── pyproject.toml
├── src/
│ ├── cli.py # Sacred benchmark command
│ ├── benchmark.py # Dataset loader + runner
│ ├── models.py # Core data structures
│ └── experts/
│ ├── baselines.py # NullExpert, SamePackage, DirectDeps, AlwaysGAM
│ ├── pattern_expert.py # 5 playbooks (PatternOracle)
│ ├── structure_expert.py # 5 structural rules (StructureOracle)
│ └── ensemble.py # Simple union (P+S)
└── datasets/
├── README.md # Schema + philosophy
└── families/ # 11 entries across 5 families
Build software that captures expert judgment and makes it available on demand.
Software can predict the consequences of code changes with accuracy comparable to a senior engineer. If this hypothesis is false after testing on 50 diverse entries, this project should not continue.