# Declared, Not Wired · Rob Hunter

Source: https://robhunterworks.com/writing/declared-not-wired/
Author: Rob Hunter
Published: 2026-10-11
Updated: 2026-11-20

A safeguard can exist in the design and still be missing from the route that acts. One test made that gap visible.

## The moment

When someone tells me a guardrail is on, the follow-up I've learned to ask is: on which path, before which effect, and how do you know? I learned it building with agents, taking ideas through design, architecture and quick specifications before asking an agent to help build them. If I had described a control clearly, and the build could show me where it lived, I sometimes treated the behavior as present without following every path far enough to prove the system used it. A safeguard I counted as done could guard some routes and not others, with nothing on the surface to say which.

Others have described agent-built software that looks finished while core behavior is missing or stubbed, Anthropic's [application-harness writing](https://www.anthropic.com/engineering/harness-design-long-running-apps) among them, and researchers have measured agents that [deliver what you check rather than what you asked for](https://huggingface.co/papers/2606.28430). Humans ship unfinished software too. What stayed with me was how easily a polished surface, and my own clear intent, could become a proxy for proof. If you adopt agent tooling rather than build it, the same follow-up applies when a vendor says a guardrail is on. **A request is not a test, an architecture is not an execution path, and a specification does not prove that every effect travels through the control it names.**

## An old weakness, a working name

I started calling the gap *Declared, Not Wired*: a control exists in the interface, configuration, policy or documentation, but one or more known paths that produce the effect never cross it. Wired is the opposite: every known path to the effect passes through the control before the effect happens. A badge reader on the front door is declared for the building and wired only for its own door; you know the building is controlled once you've walked every door, loading dock included. I thought the term might name a new vulnerability class until I checked standards, security advisories and platform documentation; the territory is well established. MITRE's Common Weakness Enumeration (CWE) describes a protection mechanism that is active but not applied in some code path ([CWE-693](https://cwe.mitre.org/data/definitions/693.html)), and complete mediation has its own entry ([CWE-638](https://cwe.mitre.org/data/definitions/638.html)). A 2026 advisory describes an agent server whose `auth_token` setting was never checked on any route ([GHSA-7g3p-92qq-8wvh](https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-7g3p-92qq-8wvh)): protection in the configuration, enforced nowhere.

So I retired the novelty claim and kept the name as a working term, lineage attached. What survived is the question this piece turns on: **a control counts only where it sits on the path. For the consequence I care about, which known paths can produce it, and where does the control intervene on each one before the effect occurs?**

## Enabled is not a path

The platform documentation I checked shows why the question goes one path at a time. OpenAI's Agents SDK documents that tool guardrails run in the function-tool pipeline; handoffs run through their own pipeline where tool guardrails don't apply, and hosted and built-in tools don't use that pipeline ([Guardrails](https://openai.github.io/openai-agents-python/guardrails/)). The [Model Context Protocol (MCP) specification](https://modelcontextprotocol.io/specification/2026-07-28/basic/authorization), an open protocol for connecting agents to tools and data, makes authorization optional and transport-specific: required on every request to an HTTP server that supports it, while STDIO servers retrieve credentials from the environment.

Neither is a defect. But by the SDK's own description, an approval check written as a tool guardrail would not run on the handoff call itself or on a hosted tool, so a route that reaches the effect through either needs its own check. **"Guardrails enabled" describes a feature. Until someone names the route, it doesn't say what is guarded.**

## Four routes, one harmless receiver

So I named the routes and tested them on a small synthetic fixture:

1. **Declare** Every route to `message_send` requires a matching approval token before the effect.
2. **Enumerate** A function tool, a hosted-tool stand-in, a specialist handoff and a recovery step all reach an in-memory receiver that cannot leave the test.
3. **Pair** Each route runs with permission and without, with the same send each time.
4. **Observe** Evidence comes from the receiver, because a transcript saying "blocked" is not an unchanged receiver.
5. **Report** The detector reports each path on its own and never promotes a result to a platform claim.

Run without permission, one route was stopped at the check. On the other three, the effect still went through.

On those three routes the rule was declared, not wired: it existed and changed nothing at the receiver. Had the receiver been a real outbox, three unapproved messages could have gone out while the configuration showed the send as guarded. **Prove a control one route at a time, with and without permission, and take the verdict from the receiver, not the transcript.**

## The checker was declared, not wired

Then the detector failed its own test. It checked enforcement carefully but trusted the three failure labels the test file declared: when I swapped two of them, it still reported a valid result. It had the very flaw it was built to find, taking declarations at their word instead of checking them against the runs. It was an inspector reading the labels on a breaker panel without flipping a breaker to see what goes dark: if two labels are swapped, the inspection still passes and someone works on the wrong circuit. In real use, that could mean a clean-looking report pinning failures on the wrong routes.

The second version derives every path's state from the paired runs. Its suite checks that the same result comes back with every label removed and that a fully wired version comes back conformant, then adds hostile cases built to catch easy false greens. **A checker can show a false green too. Derive results from what was observed, and treat every label, including your own, as a claim to check.**

## The honest limit

This is evidence about one synthetic fixture and one detector, not a benchmark, a certification, or proof that I can find every path in a real platform. A wired control can still make the wrong decision, and path discovery is never complete by default. The method keeps three questions apart: did the path reach the control before the effect, did the control decide well, and what did the receiver actually observe?

The lesson also changed how I build: in the system I run my own agent work through, I now try to count a safeguard only once it's wired to the path it guards, and to treat a declared rule with nothing enforcing it as a draft. I haven't fully lived up to that; the security work has been tested one piece at a time, and [Welcome to the Kingdom](/writing/welcome-to-the-kingdom/) describes a gap I found in my own system.

## Next credible question

The [public companion repository](https://github.com/robhunter-labs/declared-not-wired) lets you run the four-route example, inspect the corrected detector, and challenge it with the hostile tests. If you adapt the method to your own system, I'd like to hear what changed: a route you had not listed, a control that held, or a correction to the method. [Write to me](mailto:hello@robhunterworks.com).

---

## Appendix: notes on the sources

**Agents that look finished.** Anthropic's [Harness design for long-running apps](https://www.anthropic.com/engineering/harness-design-long-running-apps) (March 2026) describes agent-built apps whose central feature didn't work or was stub-only (see "Running the harness" and "Results from the updated harness"). [Building to the Test](https://huggingface.co/papers/2606.28430) (Ma et al., 2026) supports the deliver-what-you-check line through the finding stated in its abstract.

**The weakness lineage.** MITRE's [Protection Mechanism Failure (CWE-693)](https://cwe.mitre.org/data/definitions/693.html) and [Not Using Complete Mediation (CWE-638)](https://cwe.mitre.org/data/definitions/638.html) entries carry the established names. The [praisonaiagents advisory GHSA-7g3p-92qq-8wvh](https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-7g3p-92qq-8wvh) (June 2026) is the source for the `auth_token` setting that no route enforced.

**The platform documents.** The Agents SDK's [Guardrails](https://openai.github.io/openai-agents-python/guardrails/) page states the pipeline limits under "Tool guardrails". The [MCP authorization specification](https://modelcontextprotocol.io/specification/2026-07-28/basic/authorization) (2026-07-28 revision) states optional authorization and STDIO credentials under "Protocol Requirements" and the every-request rule under "Token Requirements". Both documents may change after these readings.

**The fixture.** The [companion repository](https://github.com/robhunter-labs/declared-not-wired) holds the four routes, the corrected detector and its hostile tests.

*Revised November 20, 2026: reorganized around its lessons; one source was trimmed, and a notes appendix was added. No finding or figure changed.*
