BlastConfirm passed 9 of 9 merge scenarios, including replayed and edited approvals
An MCP gate scores each agent merge with ripwire and blocks wide diffs until a human signs that exact diff. All 9 keyless scenarios matched, from a leaf fix to a tampered approval.
By David Discua
Measured in the lab
- 9/9
- scenarios as expected
- 3
- leaf diff score
- 12
- core diff score
- 6
- default threshold
- Leaf diff (score 3) merged under threshold 6
- Core diff (score 12) blocked until a signed approval
- Replayed approval refused as already_used
- Edited expires_at refused as bad_signature
- Diff that grew to 13 after approval went back to pending
From reports/blastconfirm.json · run on October 21, 2026. Bun 1.4.3, threshold 6, real Ed25519 keys; replays ripwire 0.6.7 XML captured at commit a87470c7e; live ripwire run in reports/live-ripwire.json
How it is wired
01/04Your agent calls merge_pull_request with a PR number.
BlastConfirm Gate is an MCP server that sits in front of an agent's merge_pull_request call. It scores the diff's blast radius with ripwire, lets small changes merge, and blocks wide ones until a human signs an approval for that exact diff. We ran nine merge scenarios keyless, from a leaf fix to replayed, expired and edited approvals, and all nine came out as expected. The catch is that the gate only covers merges that go through it, and its trust root is a key file on disk.
The catch
If the agent can read the approver key, it can approve its own merges, so the key has to live outside the agent's sandbox or user account. Single use is enforced by a local file, .blastconfirm/consumed.jsonl, and an agent that can write to that directory can reset it. Expiry is the backstop. An agent with another merge path, such as a direct gh call or a push token, is not stopped at all, so keep branch protection on.
The score formula and the default threshold of 6 are a starting point. They separate the two fixture diffs (3 and 12) and nothing more has been tested. The gh and mcp executors were tested against a stub gh and a fixture MCP server, not against GitHub.
What we ran (keyless)
bun install --frozen-lockfile
bun run blastconfirm keygen
C=examples/blastconfirm.demo.json
bun run blastconfirm check --pr 1 --config $C # exit 3: blocked, prints bc-<id>
bun run blastconfirm approve bc-<id> --config $C # shows impact, asks y/N, signs
bun run blastconfirm merge --pr 1 --config $C # allow_approved, dry-run merge
bun run blastconfirm merge --pr 1 --config $C # exit 3 again: approvals are single-use
bun run report
From reports/blastconfirm.json, run on October 21, 2026 with Bun 1.4.3 and threshold 6:
| Scenario | Score | Verdict | Reason | Merged |
|---|---|---|---|---|
| leaf diff, no approval | 3 | allow | under_threshold | yes |
| core diff, no approval | 12 | blocked | pending | no |
| core diff + trusted approval | 12 | allow_approved | signed_approval | yes |
| same approval replayed | 12 | blocked | already_used | no |
| approval from untrusted key | 12 | blocked | untrusted_key | no |
| approval with edited expires_at | 12 | blocked | bad_signature | no |
| expired approval | 12 | blocked | expired | no |
| signed deny | 12 | denied | denied | no |
| core diff grows after approval | 13 | blocked | pending | no |
The demo replays ripwire XML captured from ripwire 0.6.7, so gate timings leave out ripwire's own run. Median gate time was 0.13 ms for the leaf allow and 0.588 ms when verifying a signed approval. Over MCP stdio, 20 of 20 merge_pull_request calls on the core diff came back blocked, with a median of 3.364 ms. A live ripwire run in reports/live-ripwire.json scored the leaf edit 3 in 417.7 ms and the core edit 12 in 446 ms, matching the captured fixtures.
How it is wired
The human sets the repo, base, threshold, score source, trusted keys and executor in a config file, and the agent only passes a PR number. The score is changed_files + impacted_files + impacted_symbols + 2 * untested, all numbers ripwire prints. Over the threshold, the gate writes a pending request whose id is a SHA-256 digest of repo, PR, base, ripwire at=, changed files and score. blastconfirm approve re-scores the diff, asks y/N in a terminal and writes an Ed25519-signed record with an expiry. On the next merge call the gate re-scores and checks the key, signature, digest and expiry before it hands off to the dry-run, gh or downstream MCP executor.
Minilab (open source)
Upstream is redhat-et/ripwire (2,470 stars, Apache-2.0, C++, as of October 24, 2026). The lab does not bundle ripwire, so set RIPWIRE_BIN to a built binary to score your own repo, re-run bun run report, and compare the verdict column in reports/blastconfirm.json.
Run it yourself
SkilledDragonCorp/blastconfirm-gate
Clone, install and run the report with no API keys. The numbers above are what that run writes.
bun install --frozen-lockfile && bun run blastconfirm keygen && bun run blastconfirm check --pr 1 --config examples/blastconfirm.demo.jsonSkilledDragon is not affiliated with Red Hat, ripwire, GitHub or the Model Context Protocol project. Numbers are from our own keyless lab run; re-run the report before relying on them. Marks belong to their owners.
All labs