AI engineering practices

ai-wow is a set of engineering controls around AI-assisted delivery: work moves through durable contracts, bounded execution, independent review, executable gates and an evidence trail. Each control is labelled with how hard it actually is, because a fail-open hook described as a security boundary would be a lie.

  • Harness engineering
  • Context engineering
  • Multi-agent orchestration
  • Agent evals
  • LLM security
What it is
A map. Fourteen controls from the repo's own catalog, plus the practices that sit around them, each pointed at the page that explains it and the layer that enforces it.
What it isn't
Evidence of team adoption, shorter lead time or fewer escaped defects. The repository measures none of those.
Why it exists
"Several agents can write code" is not interesting. What is worth showing is which failure each control stops, and whether it stops it with an exit code, a tool restriction, an instruction or only a log line.

How it works

An idea becomes a traceable run rather than an unbounded coding conversation. Planning records intent before anything is delegated. Preflight proves the work package is runnable. Build lanes work inside explicit file and acceptance boundaries. Reviewers inspect the combined change in a separate context. Closeout refuses a "shipped" claim until verification, reporting, tracker state and board state agree. The full loop is on The work loop.

Assurance layers

Every control below is tagged with one of five layers. The order matters: only the first two prevent an action outright.

LayerWhat it means hereExamples
Hard gateA nonzero exit blocks the next state transitionmow preflight and closeout, the wrap-up gate, an ordinary pre-push
Capability boundaryThe agent's tool set prevents the actionRead-only reviewer subagents
Operating contractInstructions require the behaviour and its evidenceRed-first TDD, specialist routing
Fail-open automationRuns on its own but will not strand development if brokenPeer guards, CAM delivery, session hooks
ObservabilityRecords activity without approving itRuns timeline, git timeline, CAM journal

Choosing the layer for a new rule follows one decision path. If the rule is deterministic, it becomes a script or CI gate. If it needs independent judgement, it goes to a reviewer subagent. If it must fire every time, it becomes a lifecycle hook. Otherwise it is a skill or an instruction. The cheapest layer that holds the rule wins; Harness thesis explains why that usually means moving rules down over time.

The control catalog

The fourteen controls from docs/workflow/harness-engineering-practices.md.

PracticeWhat it guards againstWhere it's enforcedLayer
One source of truthDivergent copies of skills, agents and hooks across editors and machinesArchitecture and syncAutomated sync with drift checks
Correct enforcement mechanismGuarantees that depend on the model remembering a prompt, or a workflow made brittle by hooks for every preferenceHarness thesis, Hooks and guardsMixed: gates hard, most hooks fail open
Durable planningWork lost to context compaction, a new chat or a restart; history rewritten to look cleantaskman boardExecutable storage and locking
Contract-driven decompositionA delegated lane inheriting a whole planning conversation, or too little of itmowHard gate: preflight rejects thin briefs
Safe parallelismTwo agents overwriting the same working statemow, Shared-checkout safetyHard overlap gate plus worktree isolation
Test-first developmentTests that have never failed and so prove nothingTest disciplineOperating contract with required red evidence
Builder-reviewer separationA builder certifying its own workSpecialist subagentsCapability boundary
Specialist reviewOne generic checklist missing ORM, RLS, hook and prompt-injection defectsSpecialist subagentsOperating contract; skipped review made visible
Evidence over claims"Tests pass" with no command, output or artifact behind itTest discipline, mowHard gate on shape; reviewers judge substance
Deterministic gates"Ready to start" and "ready to ship" decided by moodmowHard gate: nonzero exit
Shared-checkout safetySessions silently committing, resetting or stashing each other's workShared-checkout safetyTechnical control (private index) plus fail-open guards
Operational traceabilityReconstructing another chat's intent from git forensicsCAM, Observability pagesFail-open automation
Privacy and release protectionPrivate identifiers or a deleted remote branch leaving the machineHooks and guardsHard on ordinary pushes; --no-verify bypasses
Cost visibilityNot knowing where a multi-agent run spent its tokensObservability pagesObservability; estimates labelled as estimates

Around the catalog

Seven practices sit outside the fourteen, either upstream of them (deciding what to build) or downstream (learning from what broke).

PracticeWhat it guards againstWhereLayer
Failures become guardsThe same agent mistake recurring because its rule lives only in proseLessons to guardsGate: the lesson logger refuses unjustified prose routing
Brainstorm to a written verdictBuilding something nobody decided was worth buildingBrainstorm and grillOperating contract
Procedures loaded on demandA global prompt bloated with every workflowSkills catalogOperating contract
Session continuityWork and decisions that die with the chatSession continuityHard gate at wrap-up; checkpoints by contract
After-action reviewsIncidents fixed and forgotten, with nothing searchable next timeIncident AAR and knowledge baseOperating contract plus tooling
Skill evals and guard scoringAssuming a skill or a guard changes behaviour without measuring itEvals and guard scoringObservability
The whole loopAd-hoc order of work between idea and shipThe work loopMixed

Where it sits in AI engineering

Four strands of current practice show up in ai-wow. For each, this is what the repo actually does, and where it stops short.

Harness and context engineering

The bet behind the repo is that an agent's reliability is decided more by its surroundings than by its prompt. Concretely, that means a budget on what gets injected into context: CAM blocks are capped at 8 entries and 1,500 characters, the session-start environment snapshot at 1,500 characters, and a quiet checkout injects nothing. Procedures live in skills that load on demand rather than in the always-on prompt. Work packages (plan, brief, board row) carry exactly the decisions a lane needs, so a subagent doesn't inherit a whole conversation. The repo does not do retrieval or semantic memory; "memory" here means files and an event log.

Multi-agent orchestration

mow fans a plan out into lanes, one subagent per brief, in waves with a review gate between them. The design choice that matters is the hard constraint: lanes in one wave own disjoint file sets, checked before fan-out. Coordination between independent sessions is a separate problem, solved with a journal and mailbox (CAM) rather than a shared agent runtime. What it doesn't have: agents negotiating with each other, dynamic re-planning mid-wave, or any orchestration outside Claude Code today.

Agent evals

Two kinds of measurement exist. bin/skill-eval runs a skill's eval suite with the skill loaded and without it and reports the difference; the first reading, for the TDD skill at five runs per arm, found no difference large enough to call a finding, and found that the skill was rarely invoked unless the prompt asked for TDD. bin/guard_score.py replays a pattern or an existing hook over every past shell command in local transcripts, so a guard's hit rate is measured before it ships. Neither is a regression gate yet, and the sample sizes are small.

LLM security

Injected peer text arrives quoted, under a provenance line, and is worded as fact rather than instruction, so it reads as data. A guard denies messaging commands to any subagent, so a lane that read hostile content can't impersonate its parent chat. Reviewer subagents get read-only tools. A dedicated llm-sec-review subagent audits diffs that touch prompts, tool calling, RAG or MCP for prompt injection, tool-call authorisation and secret exposure, alongside the stack reviewer. All of this runs as one OS user, so these are least-privilege habits rather than a sandbox.

Benefits

  • A reviewer can trace any shipped claim to a command, its output and the artifact it left, without trusting the agent's summary.
  • Parallel lanes cut elapsed time without two agents editing the same file.
  • Rules change in one repo and reach Claude Code, Cursor and Copilot CLI on the next sync.
  • Each control is honest about its layer, so nobody mistakes a fail-open hook for a security boundary.

Limits

Where it loses

The hard gates check the accounting, not the judgement. Closeout can prove a verification record exists and names real counts; it can't prove the test checked the right behaviour. That still depends on a reviewer reading it.

  • Routing to specialists is advisory. Nothing stops an agent skipping the backend reviewer; the review record only makes the skip visible afterwards.
  • Most lifecycle hooks fail open on purpose. If the hook runtime breaks, the guard is silently absent.
  • Git's --no-verify bypasses the pre-push boundary.
  • CI runs on Ubuntu and Windows, but in the last run recorded on the board the harness-test step failed first on both legs, so the later steps, including the board package's coverage floor, had never run there.
  • No outcome metrics: no lead time, defect rate or rework data, and one operator.

Roadmap

ItemWhy it mattersStatus
Get CI green on both operating systemsUntil then the coverage floor and later checks are claims, not gatesblocking
Stop the end-of-session sync committing in hook modeIt can still sweep an idle peer's half-finished files into an unexplained commitcorrectness
Verify Cursor runs shell hooks for subagent callsIf it doesn't, every guard is absent inside Cursor lanesbacklog · high
One owner per dispatch artifactSeveral scripts parse the same tracker and report tables their own way; the consolidation is in flightin progress
Make skill evals a gate on skill editsWaits until a measured difference shows a skill pays for itselflater

Sources

  • docs/workflow/harness-engineering-practices.md and its rendered view bin/harness-engineering.html: the fourteen controls, the layer decision path and the assurance table.
  • docs/workflow/harness-thesis.md, docs/workflow/skill-evals.md, docs/workflow/guard-scoring.md, docs/workflow/incident-aar.md, docs/workflow/work-loop.md.
  • taskman/taskman/mow/preflight.py, closeout.py, check_verification.py: the hard gates.
  • agents/*.md: reviewer tool restrictions; agents/llm-sec-review.md: the LLM security checklist.
  • hooks/cam.py, hooks/cam-lane-guard.py, hooks/env-snapshot.py: context budgets and the lane messaging guard.
  • .github/workflows/ci.yml: the Ubuntu and Windows matrix.
  • Task board: open items for CI, the sync commit, Cursor subagent hooks, dispatch artifact owners and skill-eval gating.

Facts as of 2026-10-08.