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.
- 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.
| Layer | What it means here | Examples |
|---|---|---|
| Hard gate | A nonzero exit blocks the next state transition | mow preflight and closeout, the wrap-up gate, an ordinary pre-push |
| Capability boundary | The agent's tool set prevents the action | Read-only reviewer subagents |
| Operating contract | Instructions require the behaviour and its evidence | Red-first TDD, specialist routing |
| Fail-open automation | Runs on its own but will not strand development if broken | Peer guards, CAM delivery, session hooks |
| Observability | Records activity without approving it | Runs 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.
| Practice | What it guards against | Where it's enforced | Layer |
|---|---|---|---|
| One source of truth | Divergent copies of skills, agents and hooks across editors and machines | Architecture and sync | Automated sync with drift checks |
| Correct enforcement mechanism | Guarantees that depend on the model remembering a prompt, or a workflow made brittle by hooks for every preference | Harness thesis, Hooks and guards | Mixed: gates hard, most hooks fail open |
| Durable planning | Work lost to context compaction, a new chat or a restart; history rewritten to look clean | taskman board | Executable storage and locking |
| Contract-driven decomposition | A delegated lane inheriting a whole planning conversation, or too little of it | mow | Hard gate: preflight rejects thin briefs |
| Safe parallelism | Two agents overwriting the same working state | mow, Shared-checkout safety | Hard overlap gate plus worktree isolation |
| Test-first development | Tests that have never failed and so prove nothing | Test discipline | Operating contract with required red evidence |
| Builder-reviewer separation | A builder certifying its own work | Specialist subagents | Capability boundary |
| Specialist review | One generic checklist missing ORM, RLS, hook and prompt-injection defects | Specialist subagents | Operating contract; skipped review made visible |
| Evidence over claims | "Tests pass" with no command, output or artifact behind it | Test discipline, mow | Hard gate on shape; reviewers judge substance |
| Deterministic gates | "Ready to start" and "ready to ship" decided by mood | mow | Hard gate: nonzero exit |
| Shared-checkout safety | Sessions silently committing, resetting or stashing each other's work | Shared-checkout safety | Technical control (private index) plus fail-open guards |
| Operational traceability | Reconstructing another chat's intent from git forensics | CAM, Observability pages | Fail-open automation |
| Privacy and release protection | Private identifiers or a deleted remote branch leaving the machine | Hooks and guards | Hard on ordinary pushes; --no-verify bypasses |
| Cost visibility | Not knowing where a multi-agent run spent its tokens | Observability pages | Observability; 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).
| Practice | What it guards against | Where | Layer |
|---|---|---|---|
| Failures become guards | The same agent mistake recurring because its rule lives only in prose | Lessons to guards | Gate: the lesson logger refuses unjustified prose routing |
| Brainstorm to a written verdict | Building something nobody decided was worth building | Brainstorm and grill | Operating contract |
| Procedures loaded on demand | A global prompt bloated with every workflow | Skills catalog | Operating contract |
| Session continuity | Work and decisions that die with the chat | Session continuity | Hard gate at wrap-up; checkpoints by contract |
| After-action reviews | Incidents fixed and forgotten, with nothing searchable next time | Incident AAR and knowledge base | Operating contract plus tooling |
| Skill evals and guard scoring | Assuming a skill or a guard changes behaviour without measuring it | Evals and guard scoring | Observability |
| The whole loop | Ad-hoc order of work between idea and ship | The work loop | Mixed |
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
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-verifybypasses 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
| Item | Why it matters | Status |
|---|---|---|
| Get CI green on both operating systems | Until then the coverage floor and later checks are claims, not gates | blocking |
| Stop the end-of-session sync committing in hook mode | It can still sweep an idle peer's half-finished files into an unexplained commit | correctness |
| Verify Cursor runs shell hooks for subagent calls | If it doesn't, every guard is absent inside Cursor lanes | backlog · high |
| One owner per dispatch artifact | Several scripts parse the same tracker and report tables their own way; the consolidation is in flight | in progress |
| Make skill evals a gate on skill edits | Waits until a measured difference shows a skill pays for itself | later |
Sources
docs/workflow/harness-engineering-practices.mdand its rendered viewbin/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.