Skip to content

[ENHANCEMENT] Add an opt-in local seal for git commits that Zoo Code creates #2785

Backlog

Description

@mergeseal

Problem (one or two sentences)

Users cannot prove which checks ran on the exact commit that Zoo Code created. Downstream CI then has to trust agent text that says tests passed.

Context (who is affected and when)

This affects users who want a local, offline receipt on git commits that Zoo Code creates. It happens when Zoo Code runs git commit in the workspace.

Desired behavior (conceptual, not technical)

Zoo Code offers an opt-in way to attach a local MergeSeal portable seal to those commits. The feature stays off until the user turns it on. If the local tool is not installed, the commit still succeeds and has no seal.

Constraints / preferences (optional)

  • Add no change to the default path.
  • Add no mandatory runtime dependency to Zoo Code.
  • Call only the mergeseal binary on PATH. Do not bundle a binary. Do not call npx. Do not open a network connection.
  • If mergeseal or MERGESEAL_KEY is missing, fail open: the commit succeeds and has no trailer.
  • Prefer adding --trailer before git commit runs. Do not amend a pushed HEAD.

Request checklist

  • I searched the existing Issues and Discussions for duplicates
  • This describes a specific problem with clear context and impact

Acceptance criteria (optional)

Given the feature is not enabled
When Zoo Code runs git commit
Then the commit message is unchanged
And no trailer is added

Given the user has enabled the feature, and mergeseal is not on PATH or MERGESEAL_KEY is unset
When Zoo Code runs git commit
Then the commit still succeeds
And the commit has no Agent-Certificate-Portable: trailer
And the tool reports no hook or plugin error

Given the user has enabled the feature, and the CLI and key are present
When Zoo Code runs git commit
Then git log -1 --format=%B contains Agent-Certificate-Portable:
And mergeseal portable verify accepts the token offline

Proposed approach (optional)

MergeSeal (mergeseal@0.1.0, https://mergeseal.dev, https://github.com/mergeseal/mergeseal) is an offline Ed25519 receipt. The compact token travels as the standard git trailer Agent-Certificate-Portable:.

Zoo Code does not have a PreToolUse-style hook today. A first step can be a documented opt-in skill or command that calls mergeseal from PATH and stays inactive until the user installs it and turns it on. A later step can be a hook that adds --trailer to git commit before the command runs. The emit command would use --host cli and --agent-id zoo. The key stays in MERGESEAL_KEY.

A marketplace MCP server is a weaker fit, because this is a local PATH binary that only mints a git trailer.

I searched existing Zoo Code issues and discussions for MergeSeal and did not find a prior request.

Trade-offs / risks (optional)

A skill is easy to ship and stays opt-in, but it depends on the model following instructions, so it can miss a commit. A hook is more reliable, but it needs a new extension point and should stay off by default. I am happy to adjust the option name, agent id, or landing place (core docs, contrib/, or Zoo Code Docs) to match project conventions.

https://mergeseal.dev
https://github.com/mergeseal/mergeseal

Copyright 2026 MergeSeal

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions