Agent Stack

Canonical assembly spec for standing up any autonomous agent. Use whenever building, scoping, wiring, or debugging an agent; whenever about to write a bespoke agent loop; or whenever an agent drifts, claims done without verifying, or goes quiet. Triggers include: "build an agent", "agent loop", "agent architecture", "harness", "my agent keeps drifting", "agent said done but it wasn't", "agent went silent". Defines the eight-layer stack, the enforcement triad, the loop spec with stopping rules, the pre-deploy double gate, the five build dimensions, and a machine-checkable verifier (verify_stack.py). Read this before writing any agent code so the architecture is decided once, not re-derived per build.

An assembly spec for autonomous agents: eight layers, enforced harness, stopping rules, and a machine-checkable STACK-COMPLETE verifier. Stop re-deriving agent architecture per build — agent-stack decides it once: the eight-layer stack (model to watchdog), the enforcement triad that makes a harness non-optional, a loop spec with real stopping rules, and a pre-deploy double gate that refuses 'done' without evidence. Ships with a paste-ready harness template, a canonical agent config, and verify_stack.py — a 200-line stdlib-only verifier with prose and config modes that returns STACK-COMPLETE or blocks the ship. Built from production agents, not theory. Security note: one bundled script, Python stdlib only (re, sys, json), no network, no writes, reads only the file you pass it.

Key Features

01Eight-layer stack, model to watchdog, enforced by a non-optional harness triad
02Machine-checkable STACK-COMPLETE verifier, stdlib-only, no network, no credential access
03Works with all IDEs

Use Cases

01Standardising agent architecture across builds
02Pre-deploy gate blocking ships without evidence
03Auditing an existing harness for missing stop rules