release-gate

release-gate is a cursor rule for Cursor from kadam-official/mcp-server. It costs 424 tokens per session, scanned A, original, MIT.

A set of repository rules that separates actions an AI agent may perform from actions needing a person's approval. It covers shared changes such as merging, releasing, publishing, deploying, reverting, and force-pushing.

In plain words
What is it for?
It guides branch, merge-request, CI, release, publishing, deployment, and rollback work in a code repository.
Why use it?
It prevents an agent from making difficult-to-reverse changes without human consent, even when automated checks pass.

Cursor rule for Cursor

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add rules/kadam-official/mcp-server/release-gate
Clone the repo
git clone --depth 1 https://github.com/kadam-official/mcp-server

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for release-gate

README.md
[![agentmods](https://agentmods.dev/badge/rules/kadam-official/mcp-server/release-gate.svg)](https://agentmods.dev/rules/kadam-official/mcp-server/release-gate)
Your own site
<a href="https://agentmods.dev/rules/kadam-official/mcp-server/release-gate"><img src="https://agentmods.dev/badge/rules/kadam-official/mcp-server/release-gate.svg" alt="Measured on agentmods" height="20"></a>
Per session 424 This file is loaded in full into every session.
When invoked 424 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00424 $0.00424
Opus 5 $0.00212 $0.00212
Sonnet 5 $0.00085 $0.00085
Haiku 4.5 $0.00042 $0.00042

Measured 3d ago against content hash 60d45fdb831c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

release-gate scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursor/rules/release-gate.mdc · 34 lines

What it actually says

Release & Deploy Gate (human-approved)

Merging to main, tagging releases, deploying, and publishing are shared-state, hard-to-reverse actions. They require an explicit, per-action human "go" — even when a plan's to-do list names them and even when the agent was told to "implement the plan / don't stop until all to-dos are done". That instruction does not override this gate.

The agent MAY do autonomously

  • Create branches, commit, push the feature branch.
  • Open a GitLab MR (and update its description).
  • Run/await CI; run the full local quality gate.
  • Report status (e.g. "MR open, pipeline green") and stop.

The agent MUST STOP and get explicit per-action approval before

  • Merging an MR into main (never self-merge; green CI ≠ approval to merge).
  • Tagging / pushing a release tag (vX.Y.Z).
  • Approving the npm-publish gate (this is always a human action).
  • Deploying / redeploying any environment — e.g. rnd.sdev.pw:/root/mcp-kadam, docker compose up, editing a host docker-compose.yml.
  • Force-pushing anything (and never force-push main/master).
  • Reverting main or deleting release tags (these are also human-gated changes).

Default end state of an autonomous task

"Branch pushed + MR open + CI green", then await the human's instruction for each of the gated steps above. Present the MR link and ask how to proceed; do not chain merge → tag → deploy → publish on your own.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 34 lines · 424 tokens per session scan A 60d45fdb831c

Subscribe to this mod's changes

release-gate is a cursor rule published in the GitHub repository kadam-official/mcp-server (0 stars, last pushed 1mo ago), licensed MIT. It adds 424 tokens to every session, about $0.0021 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other cursor rules, from other repositories