Skip to content

About

Practical agent harnesses, acceptance tests, and decision records accompanying Eric MacDougall’s weekly field notes.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

76 Commits

Folders and files

Repository files navigation

Engineering Field Notes

Working examples and decision records for Eric MacDougall's field notes. Each note starts with a problem encountered in agentic software work, then shows a small control or experiment you can inspect. This repository keeps the scripts and their limits in one place.

Weekly field notes

The article link and the week's tested additions are entered here when that article is publicly released. The same release updates its companion folder and links the repo from the article.

Approved companion material

Week 01 — Agents need an independent exam connects the argument to two small, runnable examples:

  • Agent harness: a worktree launcher, a narrow PreToolUse path guard, a PostToolUse write receipt, and a CI verifier that rejects missing or vacuous evidence.
  • Commerce acceptance contract: one-stock-unit and payment-retry examples with deliberate broken variants that the contract catches.

Run the hook tests with python -m unittest discover -s examples/agent-harness -p test_harness.py -v. Run the commerce negative control with python examples/commerce-harness/run_contract.py after installing pytest.

The commerce example uses SQLite and a fake provider. The hook example tests the Python script directly. Neither result establishes production PostgreSQL/Stripe behavior, nor that a particular agent product invoked a hook in every local, cloud, or delegated route. Those are separate integration tests.

Week 02 — Model consensus is not engineering evidence adds a synthetic migration decision contract, a durable decision packet and ten proposed probes. Its contract runner compares owner-labeled state and audit outcomes with two deliberate faults. The example does not report a client migration or choose a real organization's policy.

Week 03 — Where model control actually lives adds a synthetic model control contract, an authority map for host and provider tool loops, and ten proposed probes. Its contract runner catches typed-but-wrong choices and stale routes in owner-labeled fixtures. It does not claim a live Jev integration, provider hook, Kimi K3 benchmark or production business decision.

Week 05 — AI in industrial control needs physical evidence adds a synthetic physical-evidence oracle and ten proposed probes. Its local runner passes ten owner-labeled fixture cases; it does not connect to a PLC, validate a safety function, run a vendor simulator or commission equipment.

How this repo grows

Week 15 — Did the forbidden effect stay blocked? adds a disposable loopback service, narrow pre-call checks, target authorization, durable operation receipts, ten route/failure probes and a deliberately bad effect that the independent oracle catches. These are synthetic local experiments; no named agent harness or customer environment was tested. The article and complete overview film are now public, with all 28 related written reads.

Each weekly article gets a folder under weeks/NN/ with its claim, examples, sources, test evidence and untested boundary. We add an entry above only on the corresponding article's live release. Code changes that alter an example's claimed behavior need a new normal run and a deliberately failing counterexample. We retain old limits rather than silently turning an illustrative fixture into a production claim.

Everything here is authored for these field notes. External references are cited; third-party project code and scripts are not imported to make the examples appear more complete.

The scripts and documentation in this repository are available under the MIT License, copyright 2026 Eric MacDougall.

About

Practical agent harnesses, acceptance tests, and decision records accompanying Eric MacDougall’s weekly field notes.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages