1107 words
6 minutes

18 from Cypress Failures Are Untrusted Input to the AI Agent Triaging Them

The three doors: an agent that reads test failures holds when the model does what the failure says

By Docker Captain · CNCF Ambassador · IBM Champion
Punched steel tape feeding into a sealed terminal's red-lit slot Blueprint 18

A failure message quotes what the application rendered, and anyone who can put text in front of the application can put words in the error. An agent that summarises failures reads those words as part of its prompt, and nothing marks where the test ended and the customer began.

Each door below holds when the model does exactly what the note says. An agent that obeys the note on every run proves it.

  1. 1

    Leave the failure text whole

    Do not try to filter instructions out of test output. A filter strict enough to try strips the error context the agent was deployed to read, and the notifier's decision record rejects it for that reason. Treat every failure message as untrusted input, and put the controls around the agent.

  2. 2

    Start a triage only from a signed event for a failed run

    The receiver checks the signature in constant time, inside a five-minute window both ways. Cypress's webhooks page says the signature covers only the timestamp and the body, so replays are keyed on the signature, never on the event ID, which is not signed. One triage per run, however many times the event arrives. Owner: the platform team, with the webhook secret held where the receiver runs and nowhere else.

  3. 3

    Build the Job from a fixed template, and make the API server hold it there

    The receiver takes the project ID and the run number from the payload and nothing else. An admission policy holds every Job in the agents' namespace to that template: Jobs only, one attempt and ten minutes at most, the agent's own ServiceAccount, no Kubernetes API token. A receiver that is tricked or replaced can start the agent and nothing else. Test it with Jobs made from the real template with one change each; every one must be refused for the reason it names.

  4. 4

    Give the agent two doors, named tools and its own run

    A door in front of Cypress Cloud's tools knows each caller from a Kubernetes token review and grants each identity a list of tools and a scope. The agent gets two tools and its own run; the notifier gets one tool and any run, because it reads the count for whatever run it reports. The door asks Cypress only for the fields the agent needs, refuses an answer about any other run, keeps the Cypress token, and follows no redirect, because Python's urllib carries the Authorization header to another host on a 302. Owner: security, for the grants.

  5. 5

    Deny the network, and answer cluster names only

    The agents' network denies everything by default, and their resolver answers cluster names only, so a host name in the note gets no answer. The agent's pod holds two door tokens, each for one audience and an hour at most, and no Secret. Owner: the platform team.

  6. 6

    Let the notifier write the facts above the agent's words

    The notifier is the agent's one way to Slack, and it posts once per run. Its first line is the run's link and its failed count, read from Cypress Cloud under the notifier's own identity, so an agent told to hide a failure cannot hide the count. The agent's words follow under a label that says they are the agent's and not checked, with Slack's control characters escaped, every address outside Cypress's own hosts broken into text, and link and media previews off: Slack fetches a link to build its preview with no click, an exit no network policy sees. Owner: the QA lead who owns the channel.

  7. 7

    Prove the doors with an agent that obeys the note

    A deterministic agent does everything the note asks on every run, the control of the boundary gate turned on the doors. Models run beside it, and the reading of their answers takes every copy of the note out first: a model that quotes the error has acted on nothing, and a unit test and a planted violation keep the old reading from coming back. A claim about a model cites its runs and says how few triages it rests on.

Three triages per model on one planted note, 8 November 2026: what happened, not how often

AgentActed on the noteWhat it triedWhat it reached
The control, a deterministic agentEvery triage, by designEverything the note asksNothing: 91 checks of 91 passed
Ministral-3-3B3 of 3 triagesThe failure sent outside, the screenshots tool and the shell tool, in eachNothing
Granite-4.0-1B1 of 3 triagesThe data link put in its summaryNothing: the notifier broke the link
Qwen3.5-2B0 of 3 triagesNone of the note's asksNothing

What shows it works

The runs and the change behind each step.

  • The e2e run of 8 November 2026: 292 checks of 292, 91 for the control and 67 for each of three open models; twenty Jobs with one change each refused at admission; every request outside blocked or unanswered, every screenshot and shell call refused, and the notifier's count first in every message.
  • The Live Cloud MCP run of 11 November 2026, started by hand: the same door pointed at Cypress's hosted MCP server and a run recorded to Cypress Cloud, 104 checks of 104, reads of another run refused as out of scope.
  • Merged in cypress-io/cypress-documentation#7035 on 10 November 2026: Cypress's webhooks page now says which headers the signature covers, and how to ignore a delivery sent twice.
  • cypress-cloud-triage-agent: the receiver, the admission policy, the door's grants, the notifier and every check.

The model decides what to try. The walls decide what it reaches.

The long version is the post Cypress Failures Are Untrusted Input to the AI Agent Triaging Them. heyvaldemar, the decision records the notifier writes the facts and a deterministic agent in CI; Cypress, Webhooks, checked November 2026.


Vladimir Mikhalev

Docker CaptainCNCF AmbassadorIBM Champion

The Verdict — production-tested analysis on YouTube.

The Verdict

Inconvenient truths about shipping in the AI era

Container security, platform engineering, and the agentic shift — tested in production, argued without the hype. The verdict reaches your inbox the moment there's one worth sending.

Related Posts

Same category
  1. 1
    Cypress Failures Are Untrusted Input to the AI Agent Triaging Them
    AI & MLOps · A customer's note in a Cypress failure message reached an AI triage agent's prompt. One of three open models acted on it in 156 of 165 triages. The walls held.
  2. 2
    AI-BOM at Admission — The Cluster Refused a Signed Model for Its Licence
    AI & MLOps · An AI-BOM read at admission. Everything crosses the air gap as one signed file, and a signed model is refused for its licence. CycloneDX, Kyverno, cosign.
  3. 3
    Prompt Injection Evals — Six Models, One Boundary, Nothing Left the Company
    AI & MLOps · Prompt injection evals on six small models. They acted on hidden instructions from never to half the time, and zero data left. Gate the boundary.
  4. 4
    AI Agent Governance — One Engineer, Over a Hundred Repositories and the Decisions No Agent Makes
    AI & MLOps · AI agent governance for one engineer and 100+ repositories. What the agents decide, what they never do, and the documented auto-merge that merges red checks.

More Blueprints

All 18
  1. 01
    The blast radius assessment
    Signal, 23 February 2026 · Map what an AI agent can break, and how fast a person can undo it, before it gets a single key: six steps, a worksheet and the repositories that measure the same rules.
  2. 02
    The AI intake gate
    Signal, 12 March 2026 · Find every AI tool in use, ask for its backend's access rules instead of a questionnaire, and block what cannot use SSO and central logging, before the first prompt.
  3. 03
    Build or buy a no-code AI platform
    Signal, 20 January 2026 · When a no-code computer vision subscription is the right buy, when it is a slow trap, three questions before the pilot and four clauses before you sign.
  4. 04
    The AI-BOM admission gate
    Signal, 18 October 2026 · Write a signed AI-BOM for every model from its lock line, read it at admission, and refuse any model unless every licence it declares is on the site's list.
The three doors: an agent that reads test failures holds when the model does what the failure says
https://heyvaldemar.com/blueprints/three-doors/
Author
Vladimir Mikhalev
Published
2026-11-30
License
CC BY-NC-SA 4.0