A command exiting with code 0 does not prove an autonomous coding agent did good work. Nine hands-on drills and a 10-point scorecard to benchmark precision and restraint.
A command completing with exit code 0 does not prove an autonomous coding agent did good work. In complex repositories, brute-force LLM exploration burns massive token budgets, modifies unrelated files, and introduces subtle boundary regressions.
True machine intelligence is measured by restraint and precision: Did the system identify the smallest affected code surface before editing, preserve unrelated work, and back every change with verifiable proof? These 9 hands-on drills benchmark AgentSam’s machine layer across real infrastructure tasks.
The Golden Rule of SAM Testing
Never judge success by whether a command ran. Judge success by whether SAM changed the intended state while leaving unrelated authority untouched.
human goal
│
▼
SAM perception
├─ repository state
├─ Merkle delta
├─ AST / dependency graph
├─ indexed retrieval
└─ runtime health
│
▼
plan / execute / verify
│
▼
work receipt
├─ predicted vs. actual impact
├─ focused tests & verification
└─ remaining uncertaintyDrills 01–04: Baseline, Merkle Deltas, Blast Radius & Retrieval
Before editing a line of code, SAM captures a reproducible repository baseline, proves Merkle diffs isolate modified subtrees without redundant indexing, and routes queries to the highest-signal index.
| Question Category | Highest-Signal Retrieval Mode |
|---|---|
| Exact symbol, function, or import | AST / Structural |
| Downstream dependency or reachability | Dependency Graph |
| High-level architectural concept | Semantic Embeddings |
| Past architectural decision or context | Memory / Work History |
git status --short
git rev-parse HEAD
agentsam inspect
agentsam merkle snapshot . \
--semantic \
--out /tmp/sam-before.json
agentsam index plan --cwd . --json
agentsam index run --cwd . --json
agentsam search "terminal enrollment authentication" \
--cwd . --top-k 8 --token-budget 4000Drills 05–09 & The 10-Point Benchmark Scorecard
The Ultimate Product Test
A technically brilliant primitive that forces users to memorize twelve CLI flags has not finished becoming a product. Great UX hides Merkle graphs, AST walkers, and GOAP solvers behind clear progress states—exposing the underlying machinery only when the operator explicitly asks /why.
- Drill 05 — Deterministic GOAP Planning: Identical repository states yield identical plans, costs, and preconditions via `agentsam brand plan --goap --json`.
- Drill 06 — Package-Release Torture Test: Single-point failures in exports, pack checks, or boundary checks are isolated directly by native repo scripts.
- Drill 07 — Security & Trust-Boundary Drill: Combines AST and Merkle evidence (`agentsam security scan --path . --json`) to catch client/server leaks early.
- Drill 08 — Local vs. Remote Parity: Verifies git HEAD, node version, and working tree status before treating execution lanes as interchangeable.
- Drill 09 — Failure-Recovery Loop: Targeted stage classification and evidence extraction rather than speculative multi-file rewrites.
| Dimension | Core Evaluation Question |
|---|---|
| 1. Perception | Did SAM identify the exact authority surface before editing? |
| 2. Precision | How little irrelevant code did it inspect? |
| 3. Incrementality | Did it reuse prior Merkle/index evidence instead of repeating work? |
| 4. Planning | Did it compute a minimal, valid execution path? |
| 5. Execution | Did it select the optimal terminal lane and toolset? |
| 6. Recovery | Did it narrow failures methodically before modifying code? |
| 7. Verification | Did it prove the final state with focused tests and diffs? |
| 8. Scope Control | Did actual modified files match the predicted blast radius? |
| 9. Cost | Total tool calls, model tokens, embeddings, and wall-clock time. |
| 10. Friction | How little internal SAM jargon did the human operator need to know? |

Written by InnerAnimalMedia
Architecting Systematic Autonomous Machinery (SAM), hybrid edge-to-local Go runtimes, and multi-domain editorial systems.



