# agent-harness-and-controlled-language

Grounds the hooks that keep the factory's vocabulary rule and its session capture: what the practice
is called in the fields that study it, how a check can refuse an agent's write and still let the
work finish, how capture stays off a person's prompt, and how prompts become declared, versioned and
checked things. Survey and proposal only. No hook was changed.

| | |
|---|---|
| address | `miadi-foundation:agent-harness-and-controlled-language` |
| date | 2026-11-20 |
| method | `deep-research-foundations`, three parallel lanes, predictions written before they returned |
| verification | mixed: 57 sources, 49 verified ([`source-ledger.yaml`](./source-ledger.yaml)) |
| grounds | jgwill/miadi-orchestration-kit `rispecs/agent-harness-hooks/` (S1 to S8) |
| born in | session `dfb7bd97-73ec-4d11-b1ba-77f22a6680dc`, miadi-tmux://mia@gaia:t8-bug-hooks-cant-run-deepdiver-prompts-2611200939 |

## Verdict

What Guillaume called "ensuring right usage of vocabulary" is controlled vocabulary enforcement,
done in the factory by a harness guard. The fields agree that such a rule has a domain and a sense,
that a surface match cannot tell senses apart, that checkers parse structure first, grade what they
find and offer a recorded way past a false positive, and that a refusal helps when it shows the fix.
They also agree that capture belongs off the request path with its losses counted, and that prompts
are artefacts to version and check. The factory's word gate keeps the refusal and the
deterministic match, and gains a file kind, senses, a ledger and a prompt door.

## Read in this order

1. [`synthesis.md`](./synthesis.md): the name of the practice, eight points where the fields agree,
   what each finding changes in the specification, the predictions scored, cautions.
2. [`intent-understanding.md`](./intent-understanding.md): why now, for whom, the tension.
3. [`context-layer.md`](./context-layer.md): terms, the fields with their `G-` codes, source rules.
4. [`lanes/`](./lanes/): one file per lane, findings and sources.
   - `A-controlled-language.md`: ISO 1087 and 704, controlled languages, Vale, alex, word sense,
     error messages, specification gaming, framing (21 sources, 21 verified)
   - `B-agent-harness-guards.md`: SWE-agent, Claude Code hooks, NeMo Guardrails, Guardrails AI,
     Llama Guard, XSTest, OR-Bench, harness engineering, Sentinel, OPA, shielding (19, 17)
   - `C-capture-and-prompts.md`: Dapper, OpenTelemetry, the tail at scale, fail-safe defaults,
     Claude Code hook timeouts and async, prompt evolution, Langfuse, MLflow, APE, DSPy,
     meta-prompting, promptfoo (17, 11)
5. [`PREDICTIONS.md`](./PREDICTIONS.md): what the coordinator expected first.

## Crosswalk

- `tracing-provider-vocabulary/`: the `status` and `source` axes (a guard's refusal is `captured`
  from a machine, a correction is `given` by a person) and the `prompt management` capability. Its
  caution about guardrail configuration gained a dated note on 2026-11-20.
- `self-improving-agent-loops/`: Goodhart's law and specification gaming, applied to word
  substitution in its 2026-11-20 addendum.
- `linguistic-relativity-indigenous-epistemology/`: why the factory cares which words its agents use.
- `miaco-teaching-speech-act-theory/`: a prompt is a directive act.
