Harness Engineering Knowledge Base

March 3, 2026 · View on GitHub

Purpose

This directory establishes an agent-first operating environment for VT Code development. It implements the "harness engineering" pattern: structured documentation designed to be consumed by AI agents as their primary knowledge source, while remaining useful to human contributors.

The principle: if an agent cannot complete a task autonomously from information in this repository, the repository is missing context — fix the repo, not the agent prompt.

File Index

FileDescription
INDEX.mdThis file. Entry point to the harness knowledge base.
CORE_BELIEFS.mdAgent-first operating principles. The "why" behind every decision.
ARCHITECTURAL_INVARIANTS.mdMechanical enforcement rules. Each invariant includes violation detection and remediation instructions.
ZEN_ALIGNMENT.mdFull (all-19) Zen principle mapping and staged enforcement rollout.
QUALITY_SCORE.mdQuality grading (A/B/C/D) for each VT Code domain across 5 dimensions.
EXEC_PLANS.mdExecution plan methodology. Template and guidelines for self-contained design documents.
TECH_DEBT_TRACKER.mdKnown technical debt items with priority (P0–P3) and review cadence.

Directories

DirectoryDescription
exec-plans/active/Execution plans currently being worked on.
exec-plans/completed/Finished execution plans kept for reference and retrospectives.

Cross-References

DocumentLocationRelationship
AGENTS.mdAGENTS.md (root)Top-level map. Points agents to this directory for deeper context.
Architecture Guidedocs/ARCHITECTURE.mdSystem design reference. Harness docs cover process; architecture covers structure.
Configuration Precedencedocs/config/CONFIGURATION_PRECEDENCE.mdConfig invariants in ARCHITECTURAL_INVARIANTS.md reference this.
Security Modeldocs/security/SECURITY_MODEL.mdSecurity invariants reference the security docs.
MCP Integrationdocs/mcp/MCP_INTEGRATION_GUIDE.mdMCP domain quality score references this.
Zen Principle Mappingdocs/harness/ZEN_ALIGNMENT.mdAdditive enforcement mapping between Zen principles and VT Code controls.
Process Hardeningdocs/development/PROCESS_HARDENING.mdSecurity domain quality score references this.
Provider Guidesdocs/providers/PROVIDER_GUIDES.mdLLM domain quality score references this.
AGENTS.md (root)          ← Start here. The map.

  ├── docs/harness/       ← You are here. Operating environment.
  │   ├── INDEX.md
  │   ├── CORE_BELIEFS.md
  │   ├── ARCHITECTURAL_INVARIANTS.md
  │   ├── ZEN_ALIGNMENT.md
  │   ├── QUALITY_SCORE.md
  │   ├── EXEC_PLANS.md
  │   ├── TECH_DEBT_TRACKER.md
  │   └── exec-plans/
  │       ├── active/
  │       └── completed/

  ├── docs/ARCHITECTURE.md  ← System design
  ├── docs/config/          ← Configuration details
  ├── docs/security/        ← Security model
  └── docs/providers/       ← Provider setup

Maintaining Freshness

Doc-Gardening Cadence

FrequencyAction
Per PRUpdate docs touched by code changes. Boy scout rule applies.
WeeklyReview TECH_DEBT_TRACKER.md P0–P1 items.
Bi-weeklyReview TECH_DEBT_TRACKER.md P2–P3 items. Scan exec-plans/active/ for stale plans.
MonthlyReview QUALITY_SCORE.md grades. Update "Last reviewed" dates. Archive old resolved debt items.
QuarterlyFull audit of docs/harness/. Verify cross-references. Check that invariants match CI enforcement.

Staleness Indicators

A document is stale if:

  • Its "Last reviewed" date is more than 3 months old.
  • It references files, modules, or APIs that no longer exist.
  • Its content contradicts current code behavior.

When you find a stale document, either update it or add a tech debt item to track the update.