Skip to content

Latest commit

 

History

History
260 lines (146 loc) · 6.91 KB

File metadata and controls

260 lines (146 loc) · 6.91 KB

AI Harness Scorecard: ai-harness-scorecard

Grade: A (92.0/100) | Strong harness. AI-generated code has robust mechanical safeguards.

  • Repository: /home/runner/work/ai-harness-scorecard/ai-harness-scorecard
  • Languages: python
  • Assessed: 2026-07-28 10:40 UTC
  • Checks: 30/31 passed

Summary

Category Weight Score Checks
Architectural Documentation 20% 100% [##########] 5/5
Mechanical Constraints 25% 100% [##########] 7/7
Testing & Stability 25% 74% [#######---] 7/8
Review & Drift Prevention 15% 100% [##########] 6/6
AI-Specific Safeguards 15% 90% [#########-] 5/5

Architectural Documentation (100%)

[PASS] Architecture Documentation (5/5)

matklad ARCHITECTURE.md guide

Evidence: Found: ARCHITECTURE.md

[PASS] Agent Instructions (5/5)

OpenAI Harness Engineering (2026)

Evidence: Found: AGENTS.md

[PASS] Architecture Decision Records (3/3)

DORA 2025 Report - AI-accessible documentation

Evidence: Found ADR directory: docs/adr

[PASS] Module Boundary Documentation (4/4)

matklad ARCHITECTURE.md - constraints as absences

Evidence: Module boundary constraints found in ARCHITECTURE.md

[PASS] API Documentation (3/3)

DORA 2025 - AI-accessible documentation

Evidence: Doc generation found in CI

Mechanical Constraints (100%)

[PASS] CI Pipeline (3/3)

DORA 2025 Report

Evidence: CI detected: github, github, github

[PASS] Linter Enforcement (4/4)

OpenAI Harness Engineering - mechanical constraints

Evidence: Blocking linter found in CI: ruff\s+(check|.)

[PASS] Formatter Enforcement (3/3)

OpenAI Harness Engineering - mechanical constraints

Evidence: Formatter check found in CI: ruff\s+format\s+--check

[PASS] Type Safety (3/3)

SlopCodeBench - preventing subtle type errors

Evidence: Python type checker found in CI

[PASS] Dependency Auditing (4/4)

Blog: security infrastructure reliability

Evidence: Blocking dependency audit in CI: pip-audit

[PASS] Conventional Commits (2/2)

DORA 2025 - working in small batches

Evidence: Commit lint config found: .commitlintrc.yml

[PASS] Unsafe Code Policy (3/3)

Blog: 80% problem in AI-generated code

Evidence: Security linter found in CI

Testing & Stability (74%)

[PASS] Test Suite (3/3)

Kent Beck - tests define what correct means

Evidence: Tests present and executed in CI

[PASS] Feature Matrix Testing (2/3)

DORA 2025 - stability through comprehensive testing

Evidence: Two test jobs found, consider adding more configurations

Remediation: Test with different feature flags, environments, or dependency versions.

[PASS] Code Coverage (4/4)

DORA 2025 - stability feedback loops

Evidence: Coverage measurement in CI: coverage.py|pytest-cov|--cov

[PASS] Mutation Testing (2/4)

SlopCodeBench - code that 'appears correct but is unreliable'

Evidence: Mutation testing config found (mutmut_config.py)

Remediation: Add mutation testing to CI, even on a scheduled basis.

[PASS] Property-Based Testing (3/3)

Blog: catching edge cases in AI-generated code

Evidence: Property-based testing library found in pyproject.toml

[FAIL] Fuzz Testing (0/3)

Blog: 80% problem - catching what AI misses

Evidence: No fuzz testing found

Remediation: Add fuzz targets for parsing-heavy and input-handling code paths.

[PASS] Contract / Compatibility Tests (3/3)

OpenAI Harness Engineering - mechanical constraints

Evidence: Contract/compatibility tests found: tests/fixtures/golden_json_output.json, tests/fixtures/golden_json_output.json

[PASS] Tests Block Merge (2/2)

DORA 2025 - stability metrics

Evidence: All test jobs are blocking: lint, test

Review & Drift Prevention (100%)

[PASS] Code Review Required (4/4)

OpenAI Harness Engineering - author/reviewer separation

Evidence: CODEOWNERS file found: CODEOWNERS

[PASS] Scheduled CI Jobs (3/3)

OpenAI Harness Engineering - garbage collection agents

Evidence: Scheduled CI pipeline found

[PASS] Stale Documentation Detection (2/2)

OpenAI Harness Engineering - quality drift

Evidence: Documentation quality check in CI: link.check|markdown.link|lychee|linkinator

[PASS] PR/MR Template (2/2)

DORA 2025 - working in small batches

Evidence: PR/MR template found: .github/PULL_REQUEST_TEMPLATE.md

[PASS] Automated Code Review (2/2)

OpenAI Harness Engineering - separate authoring and reviewing agents

Evidence: Automated review tool configured: .github/dependabot.yml

[PASS] Documentation Sync Check (2/2)

OpenAI Harness Engineering - curated knowledge base

Evidence: Documentation sync job found in CI

AI-Specific Safeguards (90%)

[PASS] AI Usage Norms (4/4)

DORA 2025 - clear organizational stance on AI use

Evidence: AI usage norms found in CONTRIBUTING.md

[PASS] Small Batch Enforcement (3/3)

DORA 2025 - working in small batches

Evidence: PR size check tool found in CI

[PASS] Design-Before-Code Culture (3/3)

Blog: cognitive offloading guardrails

Evidence: RFC/design document directory found: docs/designs

[PASS] Error Handling Policy (2/3)

Blog: AI agents deleting tests, using expect()

Evidence: Error handling guidelines found in AGENTS.md

Remediation: Enforce error handling rules mechanically via lints, not just documentation.

[PASS] Security-Critical Path Marking (2/2)

Blog: 80% problem in security infrastructure

Evidence: CODEOWNERS found: CODEOWNERS

References

  • Blog: 80% problem - catching what AI misses
  • Blog: 80% problem in AI-generated code
  • Blog: 80% problem in security infrastructure
  • Blog: AI agents deleting tests, using expect()
  • Blog: catching edge cases in AI-generated code
  • Blog: cognitive offloading guardrails
  • Blog: security infrastructure reliability
  • DORA 2025 - AI-accessible documentation
  • DORA 2025 - clear organizational stance on AI use
  • DORA 2025 - stability feedback loops
  • DORA 2025 - stability metrics
  • DORA 2025 - stability through comprehensive testing
  • DORA 2025 - working in small batches
  • DORA 2025 Report
  • DORA 2025 Report - AI-accessible documentation
  • Kent Beck - tests define what correct means
  • OpenAI Harness Engineering (2026)
  • OpenAI Harness Engineering - author/reviewer separation
  • OpenAI Harness Engineering - curated knowledge base
  • OpenAI Harness Engineering - garbage collection agents
  • OpenAI Harness Engineering - mechanical constraints
  • OpenAI Harness Engineering - quality drift
  • OpenAI Harness Engineering - separate authoring and reviewing agents
  • SlopCodeBench - code that 'appears correct but is unreliable'
  • SlopCodeBench - preventing subtle type errors
  • matklad ARCHITECTURE.md - constraints as absences
  • matklad ARCHITECTURE.md guide

Generated by ai-harness-scorecard