release-compat-policy

release-compat-policy is a cursor rule for Cursor from AlphaBitCore/nexus-gateway. It costs 366 tokens per session, scanned A, original, Apache-2.0.

A release rule for software at version 1.0 that protects interfaces already used by customers or other services. Backward compatibility means older clients and stored data continue to work after an update.

In plain words
What is it for?
Use it when changing public APIs, agent-to-Hub communication, released shared libraries, database structures, configuration data, or audit records.
Why use it?
It prevents silent breaking changes to APIs, protocols, database schemas, configuration keys, and other shipped contracts.

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/alphabitcore/nexus-gateway/release-compat-policy
Clone the repo
git clone --depth 1 https://github.com/AlphaBitCore/nexus-gateway

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-compat-policy

README.md
[![agentmods](https://agentmods.dev/badge/rules/alphabitcore/nexus-gateway/release-compat-policy.svg)](https://agentmods.dev/rules/alphabitcore/nexus-gateway/release-compat-policy)
Your own site
<a href="https://agentmods.dev/rules/alphabitcore/nexus-gateway/release-compat-policy"><img src="https://agentmods.dev/badge/rules/alphabitcore/nexus-gateway/release-compat-policy.svg" alt="Measured on agentmods" height="20"></a>
Per session 366 This file is loaded in full into every session.
When invoked 366 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.00366 $0.00366
Opus 5 $0.00183 $0.00183
Sonnet 5 $0.00073 $0.00073
Haiku 4.5 $0.00037 $0.00037

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

Security

Grade A, and why

release-compat-policy 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 5d 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-compat-policy.mdc · 36 lines

What it actually says

Release policy (1.0 GA): backward compatibility for shipped contracts (binding)

The gateway is at 1.0 GA — it has released users and downstream services.

Rules

  1. Shipped contracts must stay backward compatible. Any change to an externally shipped contract — public/OSS + admin API (OpenAPI), agent↔Hub wire protocol, packages/shared/ API once in a released agent binary, persisted DB schema, config-key / shadow / system_metadata keys, audit / traffic_event shape — must preserve backward compatibility OR ship a versioned migration + deprecation window. Never a silent break.
  2. Breaking a shipped contract requires a major-version bump plus a CHANGELOG.md migration note describing the upgrade path.
  3. Internal-only code stays greenfield. Private functions, un-shipped packages, tests, and dev-only seed/records: delete dead code outright, no parallel "legacy" paths kept for their own sake.
  4. Discriminator: has this contract shipped to a user or another service? — yes → migrate with a compat path; no → greenfield.

Post-1.0 work is predominantly additive: new provider adapters, new spec coverage, improvements behind stable contracts.

Why

At GA we owe migration paths to real users and services. A silent break to a shipped contract is a production incident; an aggressive internal refactor behind a stable contract is free. Keep the two straight.

Skipping this rule requires explicit user approval in chat.

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. 5d ago First seen · 36 lines · 366 tokens per session scan A f1cf013b7d9b

Subscribe to this mod's changes

release-compat-policy is a cursor rule published in the GitHub repository AlphaBitCore/nexus-gateway (23 stars, last pushed 3d ago), licensed Apache-2.0. It adds 366 tokens to every session, about $0.0018 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-30.