Repository navigation
Description
Problem
The harness has significant investment behind it — 237 files of governance across 4 repos, up to 9 review agents, an 8-phase specification pipeline, and 2 MCP servers. There is already good infrastructure for collecting metrics (internal/metrics/ tracks velocity, cycle time, defect rate; Gaze enforces coverage ratchets; learning.go detects recurring findings), but we don't yet have a way to compare outcomes with and without the harness.
A baseline would let us make evidence-based decisions about which components earn their weight, which configurations offer the best cost-to-value ratio, and where to focus future investment.
Proposed Solution
Phase 1: Baseline Study (LLM-as-Judge with Voting)
Run a controlled study with model-driven evaluation and majority voting:
- Select N real PRs (or synthetic tasks from repo history) across a range of work types (bug fixes, new features, refactors, security-sensitive changes).
- Generate implementations under 4 configurations:
- No harness — raw model with only AGENTS.md and golangci-lint
- Minimal harness — convention packs + cross-tool bridges + Gaze in CI
- Partial harness — add 3 Divisor agents (Guard + Architect + Testing)
- Full harness — all 9 Divisor agents + Speckit pipeline + Dewey + Replicator
- Blind the outputs — strip configuration metadata.
- Have 3 independent LLMs (e.g., Claude, GPT-4, Gemini) score each output on a rubric derived from convention pack [MUST]/[SHOULD]/[MAY] rules:
- Correctness — does the implementation satisfy the spec?
- Test quality — contract coverage (Gaze), assertion completeness, negative cases
- Convention adherence — [MUST] rule compliance (also measurable via golangci-lint)
- Security — OWASP top 10 exposure, input validation, injection risk
- Maintainability — naming, structure, complexity (CRAP scores)
- Take majority vote per dimension, per PR. Aggregate across the full set.
Deterministic metrics (Gaze contract coverage, golangci-lint, CRAP scores) provide objective anchors that don't depend on LLM judgment. LLM scoring fills the gap for dimensions that aren't mechanically measurable.
Phase 2: Ongoing Measurement
After the baseline, track three metrics continuously:
- Token cost per session — broken down by harness content vs user code vs conversation
- Component trigger frequency — how often each harness component changes the outcome, so we can identify high-value vs low-signal components
- Defect escape rate by harness level — defects found after merge for teams using
--minimalvs--reviewvs--full
Acceptance Criteria
- Run controlled study on N real PRs across the 4 harness levels
- Score on correctness, test quality, convention adherence, security, and maintainability
- Aggregate majority votes from 3 independent judge models
- Document per-dimension findings with statistical confidence
- Publish results in a reproducible, automatable format (run on every release to track ROI over time)
- Instrument ongoing token cost per session tracking
- Instrument component trigger frequency tracking
- Instrument defect escape rate by harness level
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsNo status
Activity