Skip to content

docs: convert removed shipped surfaces to sunset behaviour in a normal release - #458

Merged
jpr5 merged 1 commit into
mainfrom
docs/removed-surface-sunset-correction
Sep 15, 2026
Merged

jpr5 merged 1 commit into
mainfrom
docs/removed-surface-sunset-correction

Conversation

@jpr5

@jpr5 jpr5 commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

The deprecation policy published in #457 had one row of its matrix wrong. Removed / sunset x surface already shipped read "Keep serving, warn, delete only on a major." That row is replaced:

Convert to the sunset behaviour in a normal release

Return what the real API returns now — the 404/410/rejection — so the surface stays useful for testing shutdown handling instead of lying.

Why the old row was wrong

  • Upstream's removal is not our breaking change. The endpoint is gone whether or not aimock reflects it. The user is already broken; the only thing we control is whether they find out in CI or in production.
  • It got semver backwards. A major protects aimock's own interface — the CLI, the configuration, how you start it and point a client at it. Fidelity to upstream is not our interface, it is our job, and correcting a mock to match reality is not an API break on our part.
  • It was impractical. Providers remove things constantly. Tying every upstream removal to a major bump makes majors either meaningless or perpetual.
  • It contradicted rule 1 — "never mock success for an endpoint that no longer serves" — outright. A shipped surface mocking a dead endpoint for success is exactly the false-green the policy exists to prevent.

What else changed

  • Rule 1 now states that faithfulness binds a shipped surface exactly as it binds one being proposed — the scope the old matrix row carved an exception out of.
  • Rule 2 makes the sunset conversion the required path for shipped surfaces, not merely a permitted reframing for new contributions.
  • The add-vs-delete asymmetry paragraph no longer calls deleting a shipped surface "a breaking change." The surviving asymmetry is narrower and now stated precisely: still quick to decline and slow to delete, but that governs deletion, not honesty — the route is converted to tell the truth rather than ripped out.
  • The contributor-facing closing paragraph ("it keeps serving, it gains a warning… deleted only on a major") now describes the conversion, the drift exclusion, and the normal release.
  • Two paragraphs added to Why a Removed API Is Different, carrying the not-our-breaking-change and not-a-major reasoning above.

README

Verified, unchanged. It already says aimock "declines to mock the success path of APIs that have actually been removed" without qualification — that is the stricter corrected reading, and it never mentioned majors or keeping shipped success mocks. No conflict. The subtitle publish-release.yml extracts is untouched.

Notion

https://www.notion.so/copilotkit/3dc3aa38185281e995c8c06d508f8998 updated to match.

Gates (exit codes by redirect, not through a pipe)

  • npx prettier --check . -> 0
  • npx eslint . -> 0
  • pnpm typecheck -> 0
  • npx vitest run -> 0 (197 files passed / 1 skipped; 6011 tests passed / 46 skipped), including docs-clean-urls.test.ts
  • npx commitlint --from origin/main --to HEAD -> 0

🤖 Generated with Claude Code

https://claude.ai/code/session_015QWy4PB5DCVZp6tQt1mw4x

…l release

The deprecation policy's matrix told a shipped surface whose upstream
endpoint had been removed to keep serving, warn, and be deleted only on a
major. That row now reads: convert to the sunset behaviour in a normal
release.

Upstream's removal is not our breaking change — the endpoint is gone
whether or not aimock reflects it, and the only thing in our hands is
whether the user finds out in CI or in production. A major protects
aimock's own interface; fidelity to upstream is our job, not our
interface, so correcting a mock to match reality is not an API break on
our part. Tying every upstream removal to a major would also make majors
either meaningless or perpetual. And the old row contradicted rule 1
outright: a shipped surface mocking a dead endpoint for success is the
exact false-green the policy exists to prevent.

Rule 1 now states that it binds shipped surfaces as it binds proposals.
Rule 2 makes the sunset conversion the required path for shipped
surfaces, not merely a permitted one for new contributions. The
asymmetry that survives is narrower and stated as such: still quick to
decline and slow to delete, but the route is converted to tell the truth
rather than ripped out. The prose on the add-vs-delete asymmetry and the
contributor-facing closing paragraph follow.

The README section already declined the success path for removed APIs
without qualification, which matches the corrected reading; unchanged.

Gates (exit codes by redirect, not through a pipe):

- npx prettier --check . -> 0
- npx eslint . -> 0
- pnpm typecheck -> 0
- npx vitest run -> 0 (197 files passed / 1 skipped; 6011 tests passed /
  46 skipped), including docs-clean-urls.test.ts
@pkg-pr-new

pkg-pr-new Bot commented Sep 15, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@copilotkit/aimock@458

commit: 8baedb8

@jpr5
jpr5 merged commit af48d3e into main Sep 15, 2026
14 checks passed
@jpr5
jpr5 deleted the docs/removed-surface-sunset-correction branch September 15, 2026 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant