IT-RAT the stack/mockryx Live demo Stack Guides Console
pre-prod plane · wave 2

Mockryx. Prove every guardrail holds, against your own gateway, before real traffic.

A guardrail nobody has ever fired is a guess. Mockryx replays hostile scenarios against the URL you hand it: your own pre-production gateway, with a fake provider behind it. The enforcement path is the real one; the spend is not. CI reads the verdict as an exit code.

statuspre-1.0 · main is supported
coreGo 1.27 · outbound-only CLI
scenariosYAML, one file each
targetyour own gateway · /v1/messages
verdictsexit 0 held · 1 real gap · 2 broken
licenceApache-2.0
sixty seconds, five of the drills

Watch every guardrail answer for itself.

A replay of five drills. Three of them ran live against a real gateway on disposable boxes, twice, and held: 0 gaps, $0 real spend.

under the hood

One target URL. One report. Three exit codes.

The runner sends a scenario at your gateway's /v1/messages, reads the gateway's own answer, polls the NDJSON event logs the off-path services write, and folds everything into a report and an exit code a CI gate can act on. It talks only to the URLs you name on the command line: your gateway and, for the optional broker drills, your MCP broker.

mockryx CLI one scenario = one YAML request body expect.status · header expect.event source · type · <10s emits sim_run · sim_finding outbound-only · one target your pre-prod gateway :8080 TokenFuse + Wardryx + DLP TokenFuse breaker · 402 DLP · 403 on a secret shape Wardryx PEP · deny / hold the real enforcement path never prod · never anyone else's fake provider mock upstream · $0 spend report + exit code human / json · gates CI 0 held · 1 gap · 2 broken watch files Verdryx / Idryx / Qryx NDJSON polled every 200ms POST /v1/messages async reactions expect.event · polled a drill can gate every merge, one exit code per run
what it proves

Not a mock of your gateway. Your gateway.

one drill, end to endyaml scenarios
Mockryx reads a YAML drill, sends it through your pre-prod gateway, checks the breaker, DLP and Wardryx answers, rehearses a failing provider, watches the bus for off-path reactions and writes a report with three exit codes.drill.yamlrequest to sendstatus it must getheaders it must seegame-day: on requestmockryxsends the requestchecks the answersno evidence,no verdictpre-prod onlyyour gatewaybreaker: 402DLP: 403x-fuse-wardryx:deny or holddependency_failedprovidera 5xxa rate limita timeouta refusedconnectionevent busagent-eventsoff-path servicesmust reactreportpass, gap or skipthree exit codesonly the URLs you hand itoff-path services: proven by their own events

One drill is one YAML file: the request to send, the status the guardrail must answer and the headers it must stamp. In the guide

in the stack

It picks fights with the rest of the stack. On purpose, in pre-prod.

In the request path it rehearses TokenFuse and Wardryx, and expects each of them to answer.

the scenario setthe drills you hand itmockryxpre-prod, never prodTokenFusethe breaker's 402, the DLP's 403Wardryxdeny and hold in x-fuse-wardryxprovoke, expectprovoke, expect
try it now

Point it at pre-prod, never at prod.

The URLs you pass are the only places it will ever send traffic.

./bin/mockryx run --gateway http://127.0.0.1:8080 ./scenarios
./bin/mockryx report out/report.json
common questions

Rehearsing a defence before it is needed

How do I test that my guardrails actually work?

Fire drills. Each scenario is a YAML file describing the request to send and the answer the guardrail must give, aimed at a real gateway with the guardrails live: the breaker's 402, DLP's 403, the deny or hold from the policy plane. No mocked gateway in the middle, so the code you rehearse is the code production traffic meets.

Does running the drills spend real money?

No. The provider behind the gateway is fake, so a runaway scenario can burn as much as it likes: the meter it trips is real, the invoice is not. Every hostile input also stays inside your perimeter, because the harness only talks to the URLs you hand it: the gateway and, for the broker drills, the MCP broker.

What if a guardrail simply is not configured?

Then a miss is reported as not configured rather than as a gap, and only when there is no evidence anywhere in the run that the feature is live. A core guardrail with no optional declaration is always a finding, and so is a gateway that could not be reached at all. One flag turns even a skip into a failure when you know the guardrail must be there.

Can it gate CI?

That is the intended home. Exit 0 means every drill held, exit 1 is a real defensive gap and should fail the build, exit 2 means the harness itself is broken so nothing was proven. Gate on 1, fix the pipeline on 2, and never let the two blur.