Home / Blog / MergeSeal: Signed receipts that an agent ran the tests
Tech News

MergeSeal: Signed receipts that an agent ran the tests

MergeSeal launched an open-source verification framework that issues 192-byte Ed25519 cryptographic receipts to verify agent test runs in under 0.5 ms.

By Dillip Chowdary • Nov 30, 2026 • Source: github.com

MergeSeal: Signed receipts that an agent ran the tests
Image: github.com

At a glance

Product
MergeSeal
Runtime requirement
Node.js 22 or newer
Verification speed
Under 0.5 milliseconds offline
Seal size limit
At most 192 bytes
Software license
Apache License 2.0
Release year
2026

MergeSeal launched an open-source verification framework that confirms whether autonomous programming agents actually executed test suites against exact code changes. As detailed in github.com's report, the tool issues cryptographic receipts linking test execution to commit trees, preventing agents from fabricating results or weakening validation assertions. The architecture ensures the test runner retains the private signing key without exposing it to the agent.

This report details the cryptographic design, command-line tooling, host integrations, and merge gates provided by the software. Engineering teams using automated coding assistants can deploy these offline mechanisms across local developer machines and isolated continuous integration runners. The system operates without network access, verifying test status in under 0.5 milliseconds while keeping source code, diffs, and prompts on local storage.

01Offline Ed25519 seals and runner trust tiers

MergeSeal generates offline Ed25519 signatures that validate agent code modifications directly on the machine hosting the commit. The framework splits verification duties across two operational environments, ensuring that any single modified code line immediately invalidates the cryptographic receipt. By isolating credentials, the runner executes test suites and signs results without exposing cryptographic keys to the autonomous agent.

TierRunner
Tier 1Developer machine
Tier 2Isolated CI runner

The canonical cryptographic core and single seal occupy at most 192 bytes, minimizing storage overhead in repositories. Verification functions as a purely local mathematical operation that opens no network sockets and transmits no repository assets externally. Instead of persisting source code or diffs, the coding gate retains only a diff digest and a single secret-scan bit.

02Command line interface and local test preview

Developers install the command-line utility via Node.js 22 or newer, while Rust environments can install the portable verifier binary directly through Cargo. Initializing the tool with npx mergeseal init automatically generates Cursor configuration rules and agent skills without requiring accounts, API keys, or network connections. Structured output flags return machine-readable JSON objects containing error states, process exit codes, and recommended remediation commands.

ExitMeaning
0verified
1policy or verify failed
2usage or config error

The repository includes an automated quickstart sequence that verifies project configuration and executes local checks within sixty seconds. Running this sequence produces an exit code of zero along with verified JSON payload confirmations for network inactivity, budget compliance, and cryptographic authentication. The quickstart routine follows the procedures documented in spec/quickstart.md.

Advertisement

Tech Pulse Daily

Get tomorrow's pulse first

Join engineers who read Tech Pulse before stand-up. Free, weekday mornings.

  1. Dependency installation npm ci installs required workspace packages from local locks.
  2. Project compilation npm run build compiles typescript sources into distributable files.
  3. Gate execution npx mergeseal native quickstart --json verifies core receipts offline.

Note: The demo access key ac-demo-preview is not a secret or production credential, contains no payment pathway, and cannot transfer funds. Applying the render.yaml free web service blueprint remains an external administrative task that the repository does not deploy automatically.

03Host shims for developer coding assistants

MergeSeal integrates with multiple AI programming environments by generating compact host certificates for tools like Cursor, Claude Code, Codex, and Windsurf. The initialization command accepts explicit flags such as --cursor, --claude-code, --codex, or --git-hook to configure local environments, while an automated discovery option detects existing host installations. Each host shim produces a compact certificate payload that records only the host agent identifier and nothing else.

The verification system explicitly rejects any token payload that attempts to bundle source code, prompts, git diffs, or claim values. Host sessions derive a cryptographic subject by calculating a SHA-256 hash combining the host name and the corresponding session identifier, thread identifier, or cascade identifier. Repositories enforce local pre-commit checks with npx mergeseal hook install, which refuses commit bypass attempts using the no-verify flag.

04Continuous integration actions and pull request gates

Teams can enforce verification in automated pipelines using the official MergeSeal GitHub Action, distributed under version v0.1.0 at mergeseal/mergeseal/.github/actions/coding-gate. The workflow executes the offline coding gate on Ubuntu runners, inspecting pre-built command-line bundles without transmitting proprietary code to remote servers. Setting the warn-only configuration flag allows repositories to report verification findings without abruptly blocking active workflow runs.

Continuous integration pipelines can automatically isolate pull requests lacking valid test receipts by enabling the hold parameter. This setting applies an advisory label and converts uncertified contributions into drafts until developers supply a cryptographic test receipt. Furthermore, the gate computes a canonical fingerprint across all modified files, ensuring verification receipts stored in git commit trailers remain valid even after squash or rebase operations.

05Core cryptographic libraries and WebAssembly verification

The software provides modular programmatic interfaces under version v1 and version v1.1 packages. The v1 library exports key pair generation, certificate issuance, verification, and multi-agent composition functions based on Ed25519 cryptography. The v1.1 specification formalizes compact ac1 tokens encoded as unpadded base64url deterministic CBOR structures, using standardized HTTP headers including agent-certificate, agent-proof, and agent-action.

The underlying Rust verifier in crates/mergeseal contains no unsafe code blocks and avoids floating-point arithmetic, validating test vectors byte-for-byte against vectors/v1.1-golden.json. Compiling the verifier into WebAssembly generates a portable module that achieves strict bit parity across seven test cases. This WebAssembly binary powers client-side verification on the static documentation site, validating sample seals directly within the browser in under 0.5 milliseconds.

Frequently asked questions

What is MergeSeal?

MergeSeal is an open-source framework that provides Ed25519-signed receipts proving that an agent ran tests on exact code changes. The verification runs locally in under 0.5 milliseconds without opening network sockets or uploading source files.

How does MergeSeal prevent agents from faking test results?

The test runner holds the cryptographic signing key, which is kept hidden from the agent. If an agent weakens test assertions, skips checks, or alters a single line of code, the cryptographic seal breaks.

Which developer tools and assistants work with MergeSeal?

MergeSeal provides host shims for Cursor, Claude Code, Codex, and Windsurf that record agent identifiers into compact certificates. It also includes git pre-commit hooks, an MCP stdio server, and a GitHub Action coding gate.

How large are the cryptographic seals?

The canonical cryptographic core plus one seal requires at most 192 bytes. Tokens use unpadded base64url deterministic CBOR encoding and can be stored directly in git commit trailers.

Sources

Dillip Chowdary

Author

Dillip Chowdary

Writes Tech Bytes coverage of AI, engineering, and the tools that actually ship. Editor of Tech Pulse Daily.

Related on Tech Bytes

Advertisement

5-min tech signal

Weekday briefing for engineers who skip the noise.

No spam · Unsubscribe anytime

Advertisement

✈️ CareerPilot

Your AI job-search copilot

Match your resume against live Ashby, Greenhouse & Lever openings — fit scores, job-specific resume optimization and email alerts.

Find matching jobs →

Free Tools

Browse all tools →