agentleFS
tuoithotuoitho/contract-first-agent-workflow/skills/managing-contract-revisions/SKILL.md

managing-contract-revisions

Skill1 starsChanged 3 months agoApache-2.0View on GitHub

Use when implementation, review, or integration reveals that a frozen shared contract is missing behavior, encodes incorrect semantics, conflicts with requirements/design, or must evolve after dependent work already exists.

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 7 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Do not edit the frozen contract directly.

    line 10
  2. Distinctive:

    If the requested behavior is not supported by approved requirements, update requirements first.

    line 25
  3. Distinctive:

    update the contract source of truth (new frozen revision).

    line 33
  4. Distinctive:

    update the design verification matrix if required layers change.

    line 35
  5. Distinctive:

    Do not assume previously passing integration or E2E evidence remains valid.

    line 39
  6. Distinctive:

    After the new revision is frozen, route reopened behaviors back to their persistent workstream owners, rerun their task gates and owned …

    line 51
  7. Distinctive:

    Never rewrite a frozen revision in place, and never let implementation agents create private undocumented agreements to avoid the CCR …

    line 53

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Managing Contract Revisions

A frozen contract is immutable, not permanent. When a frozen contract is missing, wrong, ambiguous, or requires a semantic/schema change, create a Contract Change Request (CCR) using references/contract-change-request.template.md at .dream/specs/<feature>/changes/CCR-<ID>.md.

Do not edit the frozen contract directly.

CCR lifecycle

OPEN → IMPACT_ANALYSIS → APPROVED|REJECTED → APPLIED → REVERIFIED → CLOSED

A CCR records:

  • reason and evidence;
  • current contract/revision;
  • affected requirements/design decisions;
  • proposed semantic/schema change;
  • compatibility (additive, breaking, semantic);
  • affected providers, consumers, tasks, and integration scenarios.

If the requested behavior is not supported by approved requirements, update requirements first. If it changes responsibility/architecture, update design first. Then author and review a new contract revision using the normal contract skills (authoring-executable-contracts and reviewing-and-freezing-contracts).

Invalidation

Trace the changed contract to workstreams that provide, consume, or verify it. Mark only the affected completed work/evidence STALE or REOPENED; unaffected work remains complete.

A contract amendment also invalidates prior verification evidence that depended on the changed contract:

  1. update the contract source of truth (new frozen revision);
  2. identify affected workstreams;
  3. update the design verification matrix if required layers change;
  4. invalidate affected prior verification evidence — task, workstream, and feature layers;
  5. re-run impacted verification layers after the affected work is repaired.

Do not assume previously passing integration or E2E evidence remains valid.

Example:

ORDER-API rev3 → rev4 (+ loyaltyPointsEarned)
order-service    REOPENED (checkout response behavior)
storefront-web   REOPENED (confirmation view)
contract/integration/E2E evidence on ORDER-API  INVALIDATED
payment-service  unchanged

After the new revision is frozen, route reopened behaviors back to their persistent workstream owners, rerun their task gates and owned verification layers, then rerun affected feature verification layers.

Never rewrite a frozen revision in place, and never let implementation agents create private undocumented agreements to avoid the CCR process.

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.