agentleFS
gurinderugurinderu/craft/skills/compatibility/SKILL.md

compatibility

Skill1 starsChanged 40 days agoMITView on GitHub

Backward compatibility of a change in any language — the questions a review must answer about everyone still holding the old shape: data persisted under the old shape, old and new replicas in a rolling deploy, migrations against running code, an alias that only covers reading, the public contract (CLI flags, exit codes, output format, config keys, env vars, Helm values, changed defaults), API/schema versions (CRD fields removed, required or narrowed, a version with no conversion or no longer served, proto/OpenAPI breaks), rollout order across components, renamed exported names, and a diff against the last released tag. Use when reviewing or writing a change to a stored or wire format, a CLI, config, a chart, a CRD, a public API or an exported name. Triggers: backward compatibility, breaking change, rolling deploy, schema migration, CRD version, deprecate a flag, rename a field. Not for a Rust crate's semver alone (rust-ecosystem), nor refactors with no outside consumer (refactoring).

3 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Files
SKILL.md

Compatibility — what the holders of the old shape make of the change

A change is compatible only if every party that still holds the old shape keeps working: rows written last month, a replica not yet rolled, a script parsing yesterday's output, a chart pinned one release back, a client that never upgrades, a repository that references a name. The break is almost never visible on the changed line. It sits in a reader or caller the diff does not show. This skill is a list of questions, each with the answer a reviewer must produce and where that answer lives. A question you cannot answer from evidence is a finding to raise as open, not a pass.

How to work it

1. MAP      — list every surface the diff changes that something OUTSIDE this version reads, calls
              or runs against: stored data, wire messages, CLI/config/env/chart surface, API/schema
              versions, exported names. For each, name the consumers and the versions they run.
2. ASK      — run each class below against that map. Skip a class only by saying why it cannot apply.
              Apply each class to EVERY instance in the diff, not to the first convenient one.
3. SOURCE   — answer from the carrier named in "where", not from comments or the PR text.
4. BASELINE — diff each surface against the last released tag (C13): a break present at HEAD and
              absent from the release is a regression; one already released is a standing state.
5. REPORT   — a finding names the old party, the new shape, and the sequence (write → upgrade →
              read, or the deploy order) that produces the failure, and says what it does NOT
              establish (live data actually affected, consumers actually broken).

The classes

Each class: question → the answer needed → where to get it. Full wording, examples and the fix shape for every class are in catalogue.md.

#ClassThe question
C1Old data under the new shapeCan data already persisted under the old shape (rows, blobs, caches, event logs, queue payloads, state files) still be read by the new code, with no backfill?
C2Rolling deploy, both directionsWhile old and new run together, does the new writer still emit what old readers require, AND does the new reader accept what old writers emit?
C3Read-only aliasDoes an alias / fallback / "accept both" cover only new-reads-old, while old code must also read what the new code writes?
C4Migration vs running codeDoes a migration rename, retype, drop or tighten something the old code still reads or writes during the rollout?
C5CLI contractIs a flag, subcommand, positional, exit code or output format (columns, JSON keys, stdout vs stderr) that scripts depend on removed, renamed or changed?
C6Config, env and chart surfaceIs a config key, env var or Helm value renamed, removed or retyped, with the old name neither read nor rejected loudly?
C7Changed defaultDoes a default change behaviour for every user who never set the option?
C8Schema field narrowedIs a CRD/schema field removed, made required, narrowed (enum shrunk, pattern or range tightened) or retyped while objects or clients under the old schema exist?
C9API version lifecycleIs a new version added with no conversion, the storage version switched with no migration of stored objects, or a version no longer served while clients or stored objects still use it?
C10IDL breakDoes a proto / OpenAPI / GraphQL / Avro change reuse or renumber a field, change a type, drop a value or tighten required-ness?
C11Rollout order across componentsWhen components ship separately (controller vs chart/CRDs, client vs server, producer vs consumer), does every allowed order of upgrade work?
C12Renamed exported identifierIs an exported name that consumers reference (a package export, an RPC or route, a metric or label, a skill, agent or workflow name, an event type) renamed with no alias?
C13Regression or standing stateAgainst the last released tag, is the break new in this change, or already shipped?

C1, C2, C4, C8, C9, C11, C12 and C13 need evidence from outside the diff: stored data, the previous version's reader, the served/storage version list, the other component's release, the consumers of a name, the released tag. Read that source; the diff alone cannot answer them.

Where answers live

AnswerCarrier
What is already storedthe schema/migration history, the persistence layer's (de)serializer, a sample of stored data
What the old version reads and writesthe previous release's source (git show <tag>:<file>)
What consumers callgrep across the repo, its docs, examples and charts; dependents (forge code search); cross-references by name
What versions are served and storedthe CRD's versions[] (served, storage), the conversion webhook, the gateway config
What order components ship inrelease notes, the chart's appVersion / image pin, the deploy pipeline, the upgrade doc
Whether a break is newgit describe --tags --abbrev=0, then git diff <tag> -- <surface>

Relation to other skills

Semver of a Rust crate's public API (cargo semver-checks) is rust-ecosystem; this skill asks the same question of every other surface and every language. Objects created before a change that a controller must still handle are also distributed-races R6. The review workflow's compat lens reads this catalogue.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.