From 2d6e2d9c906926299adcf85ae63eab0f4a22bd42 Mon Sep 17 00:00:00 2001 From: adssib <75389300+adssib@users.noreply.github.com> Date: Wed, 18 Nov 2026 03:01:42 -0500 Subject: [PATCH] add a page per provider and the full plugin guide One providers/.md for each of the 12 plugins, from the template, with why each source was chosen. docs/plugins.md links every row to its page; docs/writing-a-plugin.md is the full guide now that the code is here; README and AGENTS.md describe the layout. Co-Authored-By: Claude Opus 5.5 Signed-off-by: adssib <75389300+adssib@users.noreply.github.com> --- AGENTS.md | 19 ++++- README.md | 16 +++- docs/README.md | 5 +- docs/plugins.md | 26 +++---- docs/writing-a-plugin.md | 135 ++++++++++++++++++++++++++++++---- providers/README.md | 17 ++++- providers/anthropic-models.md | 29 ++++++++ providers/anthropic.md | 31 ++++++++ providers/datadog.md | 32 ++++++++ providers/github-actions.md | 32 ++++++++ providers/github.md | 31 ++++++++ providers/gitlab.md | 32 ++++++++ providers/numpy.md | 30 ++++++++ providers/openai-models.md | 33 +++++++++ providers/stripe.md | 34 +++++++++ providers/textual.md | 30 ++++++++ providers/urllib3.md | 30 ++++++++ providers/vertex-ai-models.md | 31 ++++++++ 18 files changed, 560 insertions(+), 33 deletions(-) create mode 100644 providers/anthropic-models.md create mode 100644 providers/anthropic.md create mode 100644 providers/datadog.md create mode 100644 providers/github-actions.md create mode 100644 providers/github.md create mode 100644 providers/gitlab.md create mode 100644 providers/numpy.md create mode 100644 providers/openai-models.md create mode 100644 providers/stripe.md create mode 100644 providers/textual.md create mode 100644 providers/urllib3.md create mode 100644 providers/vertex-ai-models.md diff --git a/AGENTS.md b/AGENTS.md index f48f0a1..2e29a07 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -43,15 +43,26 @@ python3 scripts/leak_guard.py --all # the internal-names check over every trac ## Layout +Go module `github.com/patch-it-dev/patch-it-plugins`; the only dependency is `gopkg.in/yaml.v3`. + ``` +plugin/ the Plugin interface, the registry, Env, Result, Spec (baselines) +plugins// one package per format plugin: openapi, retirements, migrationguide, + removedmembers, changelog, feed; plugins/all imports every one +kit/ kit/kittest/ Unchanged, Cite, Wayback; the test kit (Mem, Pages, Ingest, Golden) +event/ migrate/ the change-event types from patch-it's contract (v1 + v2), v1 -> v2 +fetch/ the HTTP fetch with retries and the ETag / Last-Modified cache +diff/ normalize/ hint/ adapter/ the OpenAPI diff engine and the spec adapters +retire/ sdkguide/ deprecations-page and migration-guide readers +contract/fixtures/ a copy of patch-it's change-event fixtures (CI_contract checks it) docs/plugins.md the list of supported plugins (Rule 1) -docs/ contributor docs +docs/ contributor docs, including writing-a-plugin.md providers/.md one page per provider -scripts/leak_guard.py the hashed internal-names check -.github/ CODEOWNERS, PR template, workflows (CI_go, CI_dco, CI_leak_guard) +scripts/ leak_guard.py (hashed internal names), check_contract.py +.github/ CODEOWNERS, PR template, workflows (CI_go, CI_dco, CI_leak_guard, CI_contract) ``` -When the code lands (Go module `github.com/patch-it-dev/patch-it-plugins`): `plugin/` (the interface and registry), `plugins//` (one package per format plugin, `plugins/all` imports every one), `event/` (the change-event types from [patch-it's contract](https://github.com/patch-it-dev/patch-it/tree/main/docs/contract)), `fetch/`, `kit/`, `diff/`, `normalize/`, `hint/`, `retire/`, `sdkguide/`, `adapter/`, `contract/fixtures/`. +The [change-event contract](https://github.com/patch-it-dev/patch-it/tree/main/docs/contract) is owned by patch-it: don't change `contract/fixtures/` here first. ## Commits and PRs diff --git a/README.md b/README.md index dc8fd73..9c66b1f 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,20 @@ provider source ──fetch──▶ plugin ──▶ change events ──▶ pa Plugins are small: most providers are an entry for a shared format plugin (`openapi`, `retirements`, `migrationguide`, `removedmembers`, `changelog`, `feed`), not new code. patch-it's hosted service runs every plugin daily and serves the events to the patch-it GitHub Action and CLI. +## Layout + +| Path | What's there | +|---|---| +| [`plugin/`](plugin/) | The `Plugin` interface, the registry (`Register`, `Lookup`, `Names`), `Env`, `Result` | +| [`plugins/`](plugins/) | The format plugins: `openapi`, `retirements`, `migrationguide`, `removedmembers`, `changelog`, `feed`. `plugins/all` imports every one | +| [`kit/`](kit/), [`kit/kittest/`](kit/kittest/) | What plugins share (the unchanged-page check, Wayback citing) and the test kit (in-memory store, saved pages, golden files) | +| [`event/`](event/), [`migrate/`](migrate/) | The change-event types of [patch-it's contract](https://github.com/patch-it-dev/patch-it/tree/main/docs/contract), and the v1 → v2 conversion | +| [`diff/`](diff/), [`normalize/`](normalize/), [`hint/`](hint/), [`adapter/`](adapter/) | The OpenAPI diff engine: compare two specs, turn the changes into events, attach changelog hints; one adapter per spec provider | +| [`retire/`](retire/), [`sdkguide/`](sdkguide/), [`fetch/`](fetch/) | The deprecations-page and migration-guide readers; the HTTP fetch and cache | +| [`contract/fixtures/`](contract/) | A copy of patch-it's change-event fixtures | +| [`providers/`](providers/) | One page per provider: why that source, what the plugin reads | +| [`docs/`](docs/) | [The plugin list](docs/plugins.md) and [how to write a plugin](docs/writing-a-plugin.md) | + ## Supported plugins See **[docs/plugins.md](docs/plugins.md)**. The same list is on [docs.patch-it.dev](https://docs.patch-it.dev/supported-apis/plugins/). @@ -34,7 +48,7 @@ gofmt -l . # prints nothing when formatted go test -race ./... ``` -The tests are offline: every plugin's test reads a saved copy of its source from `testdata/` and compares the events with a golden file. +The tests are offline: every plugin's test reads a saved copy of its source from `testdata/` and compares the events with a golden file. One package: `go test ./plugins/feed`. After an intended change to a plugin's output, `go test ./plugins/ -update` rewrites its golden files; review that diff like code. ### Environment diff --git a/docs/README.md b/docs/README.md index f9ac1c8..0ed2192 100644 --- a/docs/README.md +++ b/docs/README.md @@ -3,6 +3,9 @@ | Page | What's in it | |---|---| | [plugins.md](plugins.md) | Every supported plugin: id, provider, what it watches, source. Also published on [docs.patch-it.dev](https://docs.patch-it.dev/supported-apis/plugins/). | -| [writing-a-plugin.md](writing-a-plugin.md) | How to add a provider, in short. The full guide arrives with the code. | +| [writing-a-plugin.md](writing-a-plugin.md) | How to add a provider: the `Plugin` interface, fetching through `env.Get` and `kit/`, saving the source, the golden test with `kittest`, the provider page and the plugin list. | + +| [../providers/](../providers/) | One page per provider: why that source, what the plugin reads and ignores. | +| [../contract/README.md](../contract/README.md) | The change-event fixtures copied from patch-it. | The rules for contributing are in [CONTRIBUTING.md](../CONTRIBUTING.md); the rules for AI coding agents are in [AGENTS.md](../AGENTS.md). diff --git a/docs/plugins.md b/docs/plugins.md index 35cf981..f176efb 100644 --- a/docs/plugins.md +++ b/docs/plugins.md @@ -2,25 +2,25 @@ Every source patch-it watches is one plugin. This is the list of them: **if a plugin isn't here, it doesn't exist yet**. Add a row when you add a plugin, and update it when you change one (see [AGENTS.md](../AGENTS.md)). -> **Migration note:** plugins move here from patch-it's hosted ingestion service during the migration; until then the code lives there. The list below is what runs today. +Each plugin's id links to its provider page in [`providers/`](../providers/): why that source, what the plugin reads and ignores, and its known gaps. How to add one: [writing-a-plugin.md](writing-a-plugin.md). The table between the `plugins:start` and `plugins:end` markers is also published on [docs.patch-it.dev](https://docs.patch-it.dev/supported-apis/plugins/): the docs site reads this file from `main` when it builds. Keep it a plain Markdown table, one row per plugin, with absolute links only. | Plugin (`--api`) | Provider | What it watches | Format plugin | Source | Status | |---|---|---|---|---|---| -| `stripe` | Stripe | REST API changes between OpenAPI spec releases (removed and renamed endpoints, parameters and fields), with migration hints from Stripe's API changelog | `openapi` | [stripe/openapi](https://github.com/stripe/openapi) | live | -| `datadog` | Datadog | API v2 changes between OpenAPI spec releases | `openapi` | [DataDog/datadog-api-client-python](https://github.com/DataDog/datadog-api-client-python) (`.generator/schemas/v2/openapi.yaml`) | live | -| `github` | GitHub | REST API changes between dated API versions | `openapi` | [github/rest-api-description](https://github.com/github/rest-api-description) | live | -| `gitlab` | GitLab | REST API changes between releases, request side only (what callers send) | `openapi` | [gitlab-org/gitlab `doc/api/openapi`](https://gitlab.com/gitlab-org/gitlab/-/tree/master/doc/api/openapi) | live | -| `openai-models` | OpenAI | Model deprecations and shutdown dates (Chat Completions and Responses text models) | `retirements` | [OpenAI deprecations](https://developers.openai.com/api/docs/deprecations) | live | -| `anthropic-models` | Anthropic | Model deprecations and retirement dates (Messages API models) | `retirements` | [Anthropic model deprecations](https://platform.claude.com/docs/en/about-claude/model-deprecations) | live | -| `anthropic` | Anthropic | Parameters removed from `messages.create()` and friends in the Python SDK 1.0 | `migrationguide` | [anthropic-sdk-python MIGRATION.md](https://github.com/anthropics/anthropic-sdk-python/blob/v1.0.0/MIGRATION.md) | live | -| `numpy` | NumPy | Members removed or renamed in the main namespace in NumPy 2.0 | `removedmembers` | [NumPy 2.0 migration guide](https://github.com/numpy/numpy/blob/v2.0.0/doc/source/numpy_2_0_migration_guide.rst) | live | -| `textual` | Textual | Removals and breaking changes in release 0.86.0 | `changelog` | [Textualize/textual CHANGELOG.md](https://github.com/Textualize/textual/blob/v0.86.0/CHANGELOG.md) | live | -| `urllib3` | urllib3 | Removals and deprecations in release 2.0.0 | `changelog` | [urllib3/urllib3 CHANGES.rst](https://github.com/urllib3/urllib3/blob/2.0.0/CHANGES.rst) | live | -| `github-actions` | GitHub | GitHub Actions retirements, such as runner images and the `runs-on` labels they remove | `feed` | [GitHub changelog, Actions label (RSS)](https://github.blog/changelog/label/actions/feed/) | live | -| `vertex-ai-models` | Google | Generative AI model deprecations on Vertex AI | `feed` | [Vertex AI generative AI release notes (Atom)](https://docs.cloud.google.com/feeds/generative-ai-on-vertex-ai-release-notes.xml) | live | +| [`stripe`](https://github.com/patch-it-dev/patch-it-plugins/blob/main/providers/stripe.md) | Stripe | REST API changes between OpenAPI spec releases (removed and renamed endpoints, parameters and fields), with migration hints from Stripe's API changelog | `openapi` | [stripe/openapi](https://github.com/stripe/openapi) | live | +| [`datadog`](https://github.com/patch-it-dev/patch-it-plugins/blob/main/providers/datadog.md) | Datadog | API v2 changes between OpenAPI spec releases | `openapi` | [DataDog/datadog-api-client-python](https://github.com/DataDog/datadog-api-client-python) (`.generator/schemas/v2/openapi.yaml`) | live | +| [`github`](https://github.com/patch-it-dev/patch-it-plugins/blob/main/providers/github.md) | GitHub | REST API changes between dated API versions | `openapi` | [github/rest-api-description](https://github.com/github/rest-api-description) | live | +| [`gitlab`](https://github.com/patch-it-dev/patch-it-plugins/blob/main/providers/gitlab.md) | GitLab | REST API changes between releases, request side only (what callers send) | `openapi` | [gitlab-org/gitlab `doc/api/openapi`](https://gitlab.com/gitlab-org/gitlab/-/tree/master/doc/api/openapi) | live | +| [`openai-models`](https://github.com/patch-it-dev/patch-it-plugins/blob/main/providers/openai-models.md) | OpenAI | Model deprecations and shutdown dates (Chat Completions and Responses text models) | `retirements` | [OpenAI deprecations](https://developers.openai.com/api/docs/deprecations) | live | +| [`anthropic-models`](https://github.com/patch-it-dev/patch-it-plugins/blob/main/providers/anthropic-models.md) | Anthropic | Model deprecations and retirement dates (Messages API models) | `retirements` | [Anthropic model deprecations](https://platform.claude.com/docs/en/about-claude/model-deprecations) | live | +| [`anthropic`](https://github.com/patch-it-dev/patch-it-plugins/blob/main/providers/anthropic.md) | Anthropic | Parameters removed from `messages.create()` and friends in the Python SDK 1.0 | `migrationguide` | [anthropic-sdk-python MIGRATION.md](https://github.com/anthropics/anthropic-sdk-python/blob/v1.0.0/MIGRATION.md) | live | +| [`numpy`](https://github.com/patch-it-dev/patch-it-plugins/blob/main/providers/numpy.md) | NumPy | Members removed or renamed in the main namespace in NumPy 2.0 | `removedmembers` | [NumPy 2.0 migration guide](https://github.com/numpy/numpy/blob/v2.0.0/doc/source/numpy_2_0_migration_guide.rst) | live | +| [`textual`](https://github.com/patch-it-dev/patch-it-plugins/blob/main/providers/textual.md) | Textual | Removals and breaking changes in release 0.86.0 | `changelog` | [Textualize/textual CHANGELOG.md](https://github.com/Textualize/textual/blob/v0.86.0/CHANGELOG.md) | live | +| [`urllib3`](https://github.com/patch-it-dev/patch-it-plugins/blob/main/providers/urllib3.md) | urllib3 | Removals and deprecations in release 2.0.0 | `changelog` | [urllib3/urllib3 CHANGES.rst](https://github.com/urllib3/urllib3/blob/2.0.0/CHANGES.rst) | live | +| [`github-actions`](https://github.com/patch-it-dev/patch-it-plugins/blob/main/providers/github-actions.md) | GitHub | GitHub Actions retirements, such as runner images and the `runs-on` labels they remove | `feed` | [GitHub changelog, Actions label (RSS)](https://github.blog/changelog/label/actions/feed/) | live | +| [`vertex-ai-models`](https://github.com/patch-it-dev/patch-it-plugins/blob/main/providers/vertex-ai-models.md) | Google | Generative AI model deprecations on Vertex AI | `feed` | [Vertex AI generative AI release notes (Atom)](https://docs.cloud.google.com/feeds/generative-ai-on-vertex-ai-release-notes.xml) | live | ## The columns diff --git a/docs/writing-a-plugin.md b/docs/writing-a-plugin.md index ab4d681..5cd9b5c 100644 --- a/docs/writing-a-plugin.md +++ b/docs/writing-a-plugin.md @@ -1,20 +1,129 @@ # Writing a plugin -> The plugin code is still moving into this repo, so this is the short version. The full guide, with the Go interfaces and a worked example, lands with the code. +A plugin watches one provider source and turns what changed into change events. This guide walks through adding one, from picking a source to the PR. The rules are in [CONTRIBUTING.md](../CONTRIBUTING.md); this is the how-to. -A plugin watches one provider source and turns what changed into change events. Most new providers don't need a new kind of plugin: they are a new entry for an existing format plugin (a new OpenAPI spec, a new deprecations page, a new feed). +**Most new providers don't need new code.** They are a new entry for an existing format plugin: a new `changelog.File`, a new `retire.Page`, a new `feed.Feed` reader, a new OpenAPI adapter. Write a new format plugin only when none of them reads your source. -## Steps +## 1. Pick the source -1. **Pick the format plugin** that reads your source: `openapi`, `retirements`, `migrationguide`, `removedmembers`, `changelog` or `feed` (see the [columns in plugins.md](plugins.md#the-columns)). Only write a new one if none fits. -2. **Register it** with a unique lowercase id (the `--api` value). -3. **Fetch only through the plugin environment** (`env.Get`, or the helpers in `kit/`). Plugins never open their own HTTP connections, read files outside `testdata/`, or touch a database. -4. **Save a real copy of the source** under the plugin's `testdata/`, with a `testdata/README.md` row: URL, date fetched, license, and a short quote of the part your plugin reads. Trim vendor pages to what the test needs; keep openly licensed files whole. -5. **Write a golden test**: the source in, the exact events out (`testdata/golden/.json`). -6. **Pin one drop test**: a real-looking change your plugin must *not* report (a renamed heading, an unrelated section, a non-breaking addition). Precision over recall: a missed change is a bug, a wrong one costs a user a bad pull request. -7. **Write `providers/.md`**: what the provider publishes, where, how often, and what the plugin reads from it. -8. **Add a row to [plugins.md](plugins.md).** Not optional: the docs site's list of supported APIs is built from it. +Use the provider's own, most machine-readable source. In order of preference: -## What makes an event +1. **An official machine-readable spec** (OpenAPI), diffed between releases. Precise, typed, no guessing. +2. **A file at a release tag** (a changelog, a migration guide) on GitHub or the package registry. A tag never changes, so its URL is a permanent citation. +3. **An official RSS / Atom feed** of changes. Built to be machine-read. +4. **An official documentation page** (a deprecations page), ideally served as markdown. A live page changes, so events cite a Wayback Machine snapshot of it. -Every event names its source (a URL the user can open) and quotes the line it came from. No source, no event. The event format is defined in [patch-it's contract](https://github.com/patch-it-dev/patch-it/tree/main/docs/contract). +Never scrape what the provider's `robots.txt` or terms disallow, and never read a forum or a third-party blog. Write down what you chose and why in the provider page (step 7). + +## 2. Pick the format plugin + +| Format plugin | Reads | Add a provider by | +|---|---|---| +| `plugins/openapi` | An OpenAPI spec per release, diffed with `diff/` and turned into events by `normalize/` | An `adapter.Adapter` in `adapter/` (latest tag, fetch a tag's spec) and a `plugin.Register(Plugin{Adapter: …})` line | +| `plugins/retirements` | A model provider's deprecations page (a table of date, model, replacement) | A `retire.Page` in `retire/providers.go` | +| `plugins/migrationguide` | An SDK's migration guide at a release tag (removed request parameters) | A `sdkguide.Guide` in `sdkguide/` | +| `plugins/removedmembers` | A package's table of removed members at a release tag | A `removedmembers.Guide` | +| `plugins/changelog` | A `CHANGELOG.md` / `CHANGES.rst` / `HISTORY.rst` at a release tag | A `changelog.File` | +| `plugins/feed` | An RSS or Atom feed | A `feed.Feed` with a reader for that vendor's entries | + +## 3. The interface + +A plugin implements `plugin.Plugin` (package [`plugin/`](../plugin/plugin.go)): + +```go +type Plugin interface { + Name() string // "stripe": the --api id and every event's `api` + Run(ctx context.Context, env Env) (Result, error) // what changed since the baseline it saved last +} + +// Optional: diff two given releases, to recreate a historical change. +type Replayer interface { + Replay(ctx context.Context, env Env, from, to string) (Result, error) +} + +type Env struct { + Baselines BaselineReader // LastSpec(api): what the last run saved + Get func(ctx context.Context, url string) ([]byte, error) // the only way to fetch + Now func() time.Time +} + +type Result struct { + Label string // what was read, for the run summary + Events []event.EventV2 // valid events + Rejected []error // changes that failed to become valid events + Baselines []Spec // what was read, saved after the events +} +``` + +A plugin **stores nothing**. It reads its source, compares it with its last baseline (`env.Baselines.LastSpec(api)`), and returns events and the new baseline. Whoever runs it (patch-it's hosted ingestion service, or the test kit) stores the events first and the baseline after, so a crash in between re-reads the same change next time and the fingerprints dedupe it. + +Register the plugin in its package's `init`: + +```go +func init() { + plugin.Register(Plugin{File: Textual0860}) +} +``` + +`Register` panics on a duplicate name or the name `all`. + +### Fetching: `env.Get` and `kit/` + +- Fetch **only** with `env.Get`. It caches by `ETag` / `Last-Modified`, retries, and in tests serves saved files. `CI_go` fails a package outside `fetch/`, `kit/` and `adapter/` that imports `net/http`. +- `kit.Unchanged(env, api, body)`: true when the page hashes to the last baseline. Return early: an unchanged source costs one GET and nothing else. +- `kit.Cite(ctx, archiver, url, read, want)`: for a **live page**. Takes a Wayback Machine snapshot, reads it with your own reader and checks it says exactly what the live page said. Make the events from the snapshot and cite its URL. No snapshot, no events. +- `plugin.Baseline(api, version, tag, sourceURL, content, replay, now)`: the baseline to return. +- Older format plugins build v1 `event.ChangeEvent`s and convert them with `migrate.Fresh`; new code builds `event.EventV2` directly. + +### Events + +The event format is [patch-it's change-event contract](https://github.com/patch-it-dev/patch-it/tree/main/docs/contract); `event/` is its Go binding. Every event has a typed `subject` (`api_operation`, `model`, `package_release`, `ci_runtime`), a `change_type` (`breaking`, `deprecation`, …), a `version`, a `fingerprint` (`event.FingerprintV2`), and **a `source_url` and `source_excerpt`: no source, no event**. Call `Validate()`; an invalid event goes in `Result.Rejected`, not `Events`. + +## 4. Save the source + +Save a real copy of what the plugin reads under your package's `testdata/` (or the reader package's, like `retire/testdata/`). Add a row to that directory's `README.md`: file, URL, date fetched, license, and a short quote of the part the plugin reads. + +- **Openly licensed files** (MIT, BSD, Apache, CC BY): keep them whole. +- **Vendor documentation pages**: trim to what the plugin reads (the tables, the sections), copy every kept line unchanged, mark it "excerpt for testing; © the vendor", and say what you left out. + +## 5. Write the golden test + +The test kit, `kit/kittest`, runs the plugin with no network, no database and a fixed clock: + +```go +func TestGolden(t *testing.T) { + got := kittest.Ingest(t, Plugin{File: Textual0860}, + kittest.Pages{Textual0860.URL(): "testdata/textual-v0.86.0-CHANGELOG.md"}) + kittest.Golden(t, "testdata/golden/textual-0.86.0.json", got) +} +``` + +- `kittest.Pages` maps each URL to a saved file. Fetching any other URL fails the test. +- `kittest.Ingest` runs the plugin **twice** over an in-memory store (`kittest.Mem`): a rejected event, an error, or a second run that stores anything new fails the test. +- `kittest.Golden` compares the stored events with the JSON file. Create or rewrite it with `go test ./plugins/ -update`, then read the diff like code: every event in it is a pull request someone may get. +- A live page: build the env with `kittest.Env`, cite through `&kittest.Archive{T: t, Pages: saved}` and run with `kittest.IngestWith`. + +## 6. Pin a drop test and the registration + +- **One drop test**: a realistic input the plugin must *not* turn into an event (an unrelated section, a behavior change written as prose, a product name in a sentence). Precision over recall: a missed change is a bug we fix later; a wrong change is a wrong pull request in someone's repo. +- **`registered_test.go`**: `kittest.Registered(t, Plugin{…})` checks the package registered that plugin under that name. +- **A new format plugin package**: add its blank import to [`plugins/all/all.go`](../plugins/all/all.go). `TestEveryPluginIsImported` fails until you do; the hosted service runs exactly what `plugins/all` imports. + +## 7. Write the provider page + +Copy [`providers/_template.md`](../providers/_template.md) to `providers/.md` and fill in every section: what it watches; **why this source** (the link, the date you checked it, why it's the best place this provider announces breaking changes, the alternatives you didn't use and why, one short quote); how the provider announces changes; what the plugin reads and ignores; known gaps. + +## 8. Add the row to `docs/plugins.md` + +**Not optional** ([AGENTS.md](../AGENTS.md) rule 1). Add one row between the `plugins:start` and `plugins:end` markers: the id linked to its provider page, the provider, what it watches, the format plugin, the source, the status. Absolute links only: the docs site copies the table as it is. Changing a plugin's id, source or what it watches updates its row in the same PR. + +## 9. Check and open the PR + +```sh +go build ./... && go vet ./... && gofmt -l . && go test -race ./... +go mod tidy # no diff +python3 scripts/leak_guard.py --all +git commit -s -m "add the foo plugin" # DCO sign-off +``` + +Fill in every box of the PR template. One plugin per PR. diff --git a/providers/README.md b/providers/README.md index afc8d35..7baeb09 100644 --- a/providers/README.md +++ b/providers/README.md @@ -8,4 +8,19 @@ One page per plugin id: `providers/.md`. Start from [`_template.md`](_templ - **What the plugin reads** from it, and what it deliberately ignores (and why). - **Known gaps**: changes the provider makes that this plugin can't see yet. -The pages arrive with the plugin code. The list of plugins is [docs/plugins.md](../docs/plugins.md). +| Page | Plugin | Format plugin | +|---|---|---| +| [stripe.md](stripe.md) | `stripe` | `openapi` | +| [datadog.md](datadog.md) | `datadog` | `openapi` | +| [github.md](github.md) | `github` | `openapi` | +| [gitlab.md](gitlab.md) | `gitlab` | `openapi` | +| [openai-models.md](openai-models.md) | `openai-models` | `retirements` | +| [anthropic-models.md](anthropic-models.md) | `anthropic-models` | `retirements` | +| [anthropic.md](anthropic.md) | `anthropic` | `migrationguide` | +| [numpy.md](numpy.md) | `numpy` | `removedmembers` | +| [textual.md](textual.md) | `textual` | `changelog` | +| [urllib3.md](urllib3.md) | `urllib3` | `changelog` | +| [github-actions.md](github-actions.md) | `github-actions` | `feed` | +| [vertex-ai-models.md](vertex-ai-models.md) | `vertex-ai-models` | `feed` | + +The list of plugins, with their status, is [docs/plugins.md](../docs/plugins.md). diff --git a/providers/anthropic-models.md b/providers/anthropic-models.md new file mode 100644 index 0000000..8249bb9 --- /dev/null +++ b/providers/anthropic-models.md @@ -0,0 +1,29 @@ +# Anthropic model retirements (`anthropic-models`) + +## What it watches + +Claude models that are retired or have a retirement date on the Claude API, with the replacement Anthropic recommends. One breaking event per model name. + +Format plugin: `retirements` (`plugins/retirements`), reading with `retire/`. + +## Why this source + +- **Source:** [platform.claude.com/docs/en/about-claude/model-deprecations](https://platform.claude.com/docs/en/about-claude/model-deprecations), read as markdown at the same URL plus `.md`. Checked on 2026-10-13. +- **Why this one:** it's Anthropic's own deprecation history, one table per announcement (retirement date, deprecated model, recommended replacement), served as markdown. `robots.txt` disallows only `/api/`. +- **Alternatives considered:** the models API (`GET /v1/models`: what exists now, no dates); release notes and emails (not a complete list); the old docs.anthropic.com URL (redirects here). +- **Quote:** "| November 30, 2026 | `claude-sonnet-4-5-20250929` | `claude-sonnet-5-5` |" (Deprecation history, 2026-09-30: Claude Sonnet 4.5 model). + +## How the provider announces changes + +- A few announcements a year, at least 60 days before retirement (per the page). +- **Forced, by date**, on the Claude API: the event's `version` is the retirement date. Amazon Bedrock and Google Cloud set their own dates, so code calling Claude through them may be affected on a different day. + +## What the plugin reads and ignores + +- Same reader as [`openai-models`](openai-models.md): every dated table with a model and a replacement column, newest row wins, retired replacements followed, every event read from and citing a Wayback snapshot. +- Keeps every `claude-` name. Ignores the "Model status" table (active models with tentative dates) and any model without a date yet. + +## Known gaps + +- Retirements on Amazon Bedrock or Google Cloud aren't on this page. +- The page also documents SDK changes (the Python SDK 1.0 removing sampling parameters); those are the [`anthropic`](anthropic.md) plugin, not this one. diff --git a/providers/anthropic.md b/providers/anthropic.md new file mode 100644 index 0000000..131031f --- /dev/null +++ b/providers/anthropic.md @@ -0,0 +1,31 @@ +# Anthropic Python SDK (`anthropic`) + +## What it watches + +Request parameters removed from `messages.create()` and its siblings in anthropic-sdk-python 1.0.0 (`temperature`, `top_p`, `top_k`): passing one is a `TypeError`. One breaking event per parameter. Pinned to that release. + +Format plugin: `migrationguide` (`plugins/migrationguide`), reading with `sdkguide/`. + +## Why this source + +- **Source:** [MIGRATION.md at v1.0.0](https://github.com/anthropics/anthropic-sdk-python/blob/v1.0.0/MIGRATION.md), read raw at the tag (`https://raw.githubusercontent.com/anthropics/anthropic-sdk-python/v1.0.0/MIGRATION.md`). Checked on 2026-10-17. +- **Why this one:** it's the SDK maintainers' own guide to the major release, with a table of the methods, the removed parameter and what to use instead. A tag never changes, so the URL is its own permanent citation. +- **Alternatives considered:** the GitHub release notes and `CHANGELOG.md` (list commits, not "what to use instead"); diffing the SDK's code between versions (finds signature changes but not the maintainers' advice, and is a lot more machinery); Anthropic's model deprecations page (mentions the change, but it's the models page). +- **Quote:** "Removed: deprecated request parameters" (section heading), with the row "`temperature`, `top_p`, `top_k` | Remove them." + +## How the provider announces changes + +- Package versions (PEP 440). 1.0.0 shipped on 2026-08-20. +- **Forced on a fresh install** for a repo whose `anthropic` pin is open above 1.0, otherwise when the team upgrades. +- The fix works on both sides of the upgrade: removing the parameter is right for current models, and `extra_body` passes it through for an older one. + +## What the plugin reads and ignores + +- The guide must be the "Migrating to v1" guide. Every table with a "Removed parameter" and a "Use instead" column; a row counts only when its method cell names the plain `messages.create()`. +- Ignores the beta-only `output_format` row: `output_format=Model` is still valid on the `parse()` / `stream()` helpers, so it isn't a removal everywhere. +- `migration_hint` is the guide's "Use instead" cell, as written. + +## Known gaps + +- Only 1.0.0. A later major's guide is a new entry. +- Removed type aliases, exports and helper arguments in the same guide aren't events yet. diff --git a/providers/datadog.md b/providers/datadog.md new file mode 100644 index 0000000..9451a82 --- /dev/null +++ b/providers/datadog.md @@ -0,0 +1,32 @@ +# Datadog (`datadog`) + +## What it watches + +Datadog's API v2, release by release: endpoints, request and response properties and schemas removed or changed between two versions of the OpenAPI spec Datadog generates its official clients from. + +Format plugin: `openapi` (`plugins/openapi`), with `adapter.Datadog`. + +## Why this source + +- **Source:** `.generator/schemas/v2/openapi.yaml` in [DataDog/datadog-api-client-python](https://github.com/DataDog/datadog-api-client-python), pinned to a release tag (`https://raw.githubusercontent.com/DataDog/datadog-api-client-python//.generator/schemas/v2/openapi.yaml`); the newest tag from the GitHub Releases API. Checked on 2026-11-13. +- **Why this one:** Datadog publishes no standalone spec repo. Its generator writes the same spec, byte for byte, into every official client repo on every release, so this file *is* the API as Datadog's own clients see it, versioned by tag. +- **Alternatives considered:** the same file in the Go, Java, Ruby or TypeScript client repos (identical content; reading more than one would report every change twice); the repo's `CHANGELOG.md` (one section per release with `Removed` / `Deprecated` bullets linking each PR; prose, not wired as a hint source yet); the API reference on docs.datadoghq.com (rendered by JavaScript, not readable with a plain fetch). +- **Quote:** "Remove deprecated queried_tags_window_seconds and related_asset_tags fields" ([PR #4045](https://github.com/DataDog/datadog-api-client-python/pull/4045), released in 2.61.0). + +## How the provider announces changes + +- REST paths are versioned by prefix only (`/api/v1/…`, `/api/v2/…`), one spec file each. `info.version` is a fixed `"1.0"` that never moves. +- **Breaking changes are forced**: a removed property is gone from the next release, with no account-level version to stay on. Some go through a `Deprecated` changelog entry first; not all do. +- The client's release tag (`2.61.0`) is the only version signal, and it's what users pin (`datadog-api-client==2.61.0`). So the event's `version` is the release tag. Releases come roughly weekly. +- The spec is YAML only (~10 MB). The adapter converts it to JSON before diffing; excerpts are re-serialized from the node they quote either way. + +## What the plugin reads and ignores + +- Reads: the v2 spec at the newest tag, diffed against the last one. +- Ignores: changes to OpenAPI `tags` (they only rename generated SDK methods; the REST API is unchanged). The v1 spec isn't read yet. +- Replays a historical pair (`Replay`, from `2.60.0` to `2.61.0`) and recreates the removal of two properties from `TagIndexingRuleDynamicTags` (the golden test uses trimmed excerpts of both specs). + +## Known gaps + +- API v1 (`v1/openapi.yaml`) isn't watched. +- Deprecations announced only in the changelog (with no spec change yet) aren't events. diff --git a/providers/github-actions.md b/providers/github-actions.md new file mode 100644 index 0000000..3fa321f --- /dev/null +++ b/providers/github-actions.md @@ -0,0 +1,32 @@ +# GitHub Actions runner images (`github-actions`) + +## What it watches + +GitHub-hosted runner images that GitHub retires: one `ci_runtime` event per `runs-on` label the retirement removes (`macos-14`, `macos-14-large`, …), dated by the removal date. + +Format plugin: `feed` (`plugins/feed`), with the `GitHubActions` reader. + +## Why this source + +- **Source:** the [GitHub changelog, Actions label](https://github.blog/changelog/label/actions/), as RSS: `https://github.blog/changelog/label/actions/feed/`. Checked on 2026-11-14. +- **Why this one:** it's GitHub's own changelog feed, built to be machine-read, with labels (`Retired`) as RSS categories. Retirement posts list the affected labels in a fixed shape and give the date. +- **Alternatives considered:** the [actions/runner-images](https://github.com/actions/runner-images) repo's announcement issues (detailed, but issue text varies and they're not a feed); the full GitHub changelog feed (every product, much noisier); the runner images README (says what exists now, not when it goes). +- **Quote:** "The macOS 14 runner image will be retired on November 2, 2026." + +## How the provider announces changes + +- A retirement post weeks or months ahead, often with scheduled "brownouts" where jobs on the old image fail temporarily. +- **Forced**: on the date, jobs using the label stop running. +- The feed carries only the latest 10 posts, so the plugin runs daily and cites a snapshot. + +## What the plugin reads and ignores + +- Only posts labelled `Retired` about a runner image that list `runs-on` labels. +- **Breaking needs GitHub to say it stops on a date** ("will be retired / removed on …"); softer words ("will be deprecated on", "before …") make it a deprecation; no dated sentence and the post is dropped. +- Drops (and logs) retirements with no runner label to name (the ARM32 Linux and Windows retirement) and behavior changes (`pull_request_target` blocked by default). +- Every event cites a Wayback Machine snapshot of the feed and is read from it. + +## Known gaps + +- The patch-it client doesn't fix `ci_runtime` events yet. +- Deprecations of actions themselves (`actions/upload-artifact@v3`, …) aren't read. diff --git a/providers/github.md b/providers/github.md new file mode 100644 index 0000000..3bd5c02 --- /dev/null +++ b/providers/github.md @@ -0,0 +1,31 @@ +# GitHub REST API (`github`) + +## What it watches + +GitHub's REST API between dated API versions (`2022-11-28` → `2026-03-10`): properties, schemas, parameters and operations removed or changed in a new version. + +Format plugin: `openapi` (`plugins/openapi`), with `adapter.GitHub`. + +## Why this source + +- **Source:** [github/rest-api-description](https://github.com/github/rest-api-description), one file per supported dated version: `descriptions/api.github.com/api.github.com..json` on `main`. The supported versions come from `GET https://api.github.com/versions`. Checked on 2026-11-14. +- **Why this one:** it's GitHub's own OpenAPI description, generated from the same source as docs.github.com's reference and the Octokit SDKs. A dated version's file is frozen, so two of them diff exactly. +- **Alternatives considered:** the undated `api.github.com.json` (the in-progress spec, moves several times a day with additive changes; not a version anyone pins); the `dereferenced/` variants (every `$ref` inlined, so one schema change would show up on every endpoint using it); the repo's `CHANGELOG.md` (one section per dated version listing affected endpoints; good prose, not wired as a hint source yet); the [Breaking changes](https://docs.github.com/en/rest/about-the-rest-api/breaking-changes) docs page (prose). +- **Quote:** "Remove deprecated `rate` property from rate limit endpoint." ([CHANGELOG.md](https://github.com/github/rest-api-description/blob/main/descriptions/api.github.com/CHANGELOG.md), Version 2026-03-10). + +## How the provider announces changes + +- Clients pick a version per request with `X-GitHub-Api-Version: `; without it GitHub uses `2022-11-28`. +- **Breaking changes only ship in a new dated version**, which is rare: `2022-11-28` was the only one for over three years. +- **Opt-in now, forced later**: a version keeps working for 24 months after a newer one ships, then returns `410 Gone` (with `Deprecation` / `Sunset` headers before that). +- The event's `version` is the dated version string, not `info.version` (a fixed package version, `1.1.4`). + +## What the plugin reads and ignores + +- Reads: the newest dated version's spec, diffed against the last one it saw. `GET /versions`' order isn't documented, so the adapter sorts the versions itself. +- The real `2022-11-28` → `2026-03-10` diff is 108 breaking events. The golden test replays a trimmed pair that keeps one of them: `rate` removed from `rate-limit-overview`. + +## Known gaps + +- Additive changes between dated versions aren't events (they never get a version). +- GraphQL isn't watched. diff --git a/providers/gitlab.md b/providers/gitlab.md new file mode 100644 index 0000000..c68d8d3 --- /dev/null +++ b/providers/gitlab.md @@ -0,0 +1,32 @@ +# GitLab REST API (`gitlab`) + +## What it watches + +GitLab's REST API (`/api/v4`) between releases, **request side only**: endpoints removed, and parameters callers send that are removed, renamed or newly required. + +Format plugin: `openapi` (`plugins/openapi`), with `adapter.GitLab` and a request-side filter (`openapi.Plugin.Keep`). + +## Why this source + +- **Source:** `doc/api/openapi/openapi_v3.yaml` in [gitlab-org/gitlab](https://gitlab.com/gitlab-org/gitlab) at a release tag, read through GitLab's Repository Files API (`https://gitlab.com/api/v4/projects/gitlab-org%2Fgitlab/repository/files/doc%2Fapi%2Fopenapi%2Fopenapi_v3.yaml/raw?ref=`); the newest stable `vX.Y.Z-ee` tag from the tags API. Checked on 2026-11-15. +- **Why this one:** GitLab generates it from its own API code at every release, and a tag never changes, so two releases diff exactly. The Files API is GitLab's documented interface for programs and returns the same bytes as the web's raw route. +- **Alternatives considered:** the [deprecations page](https://docs.gitlab.com/update/deprecations/) and its YAML sources (dated and structured, but *what* changes is prose); the [breaking-changes Atom feed](https://docs.gitlab.com/releases/breaking-changes.xml) (same prose); the REST deprecations page (changes deferred to a v5 that isn't being built); `openapi_v2.yaml` (Swagger 2.0, partial, superseded). +- **Quote:** "From GitLab 19.0, if you want to import repositories from Bitbucket Cloud through the GitLab API, you must use user API tokens instead." ([deprecations page](https://docs.gitlab.com/update/deprecations/)). + +## How the provider announces changes + +- REST is versioned by path (`/api/v4`), never by date or header. Removals ship in major releases (18.0, 19.0) and are listed on the deprecations page beforehand. +- **Forced**: on GitLab.com when the release ships; on self-managed instances when they upgrade, so the instance's version is the pin. +- A minor release every month, patch releases in between. The event's `version` is the GitLab version (`19.0.0`), not the tag (`v19.0.0-ee`) and not `info.version` (`v4`). + +## What the plugin reads and ignores + +- **Response-side changes are dropped.** Between 18.11 and 19.0 the generator retyped hundreds of response properties (default `string` to the real type) while GitLab returned the same JSON; reporting them would be wrong pull requests. Precision over recall: only request-side changes are kept. +- Request bodies are named by a hash of their content (`RequestBody_`), so adding one field renames the schema. The adapter inlines those bodies back under their operations, and each event's pointer still names the node in the published file. +- Release candidates are skipped; tags are sorted numerically. +- The OpenAPI 3 file exists from `v18.10.0-ee`; 19.0 is the first major release that can be replayed (`Replay` from `v18.11.0-ee` to `v19.0.0-ee`). + +## Known gaps + +- Real response-side removals are missed (the deprecations page would recover them; not built). +- GraphQL removals aren't watched. diff --git a/providers/numpy.md b/providers/numpy.md new file mode 100644 index 0000000..1810d8d --- /dev/null +++ b/providers/numpy.md @@ -0,0 +1,30 @@ +# NumPy (`numpy`) + +## What it watches + +Members removed from or renamed in NumPy's main namespace in 2.0.0 (`np.float_`, `np.NaN`, `np.product` and about fifty more): code using one raises `AttributeError`. One event per member. Pinned to that release. + +Format plugin: `removedmembers` (`plugins/removedmembers`). + +## Why this source + +- **Source:** [`doc/source/numpy_2_0_migration_guide.rst` at v2.0.0](https://github.com/numpy/numpy/blob/v2.0.0/doc/source/numpy_2_0_migration_guide.rst), read raw at the tag. Checked on 2026-11-04. +- **Why this one:** it's NumPy's own migration guide, with a table of every removed member and its migration guideline. A tag never changes, so the URL is its own citation. +- **Alternatives considered:** the 2.0.0 release notes (list the removals in prose, spread over several sections); the rendered guide on numpy.org (the same text as HTML); NEP 52 (the plan, not what shipped). +- **Quote:** "The table below provides replacements for the removed members:" (Main namespace), with rows such as "NaN — Use ``np.nan`` instead." + +## How the provider announces changes + +- Package versions (PEP 440). 2.0.0 shipped on 2024-06-16. +- **Forced on a fresh install** for an unpinned or open pin (`>=1.24`), otherwise when the team upgrades. +- Every replacement the guide names exists in NumPy 1.x too, so a rename works on either side of the upgrade. + +## What the plugin reads and ignores + +- Reads the "Main namespace" section's table: removed member, migration guideline (a guideline may continue over several lines). +- `renamed_symbol` with the replacement when the guideline is exactly "Use ``np.`` instead." (`float_` → `float64`, `NaN` → `nan`, `product` → `prod`…); `removed_symbol` otherwise (a builtin, an expression such as `-np.inf`, or advice). 56 events. + +## Known gaps + +- The guide's other tables (`np.lib` members, changed behavior) aren't read. +- Later releases' removals aren't watched. diff --git a/providers/openai-models.md b/providers/openai-models.md new file mode 100644 index 0000000..586828e --- /dev/null +++ b/providers/openai-models.md @@ -0,0 +1,33 @@ +# OpenAI model retirements (`openai-models`) + +## What it watches + +OpenAI models that are being shut down: every text model name code sends to the Chat Completions or Responses API, with its shutdown date and the replacement OpenAI recommends. One breaking event per model name. + +Format plugin: `retirements` (`plugins/retirements`), reading with `retire/`. + +## Why this source + +- **Source:** [developers.openai.com/api/docs/deprecations](https://developers.openai.com/api/docs/deprecations), read as markdown at `https://developers.openai.com/api/docs/deprecations.md`. Checked on 2026-10-13. +- **Why this one:** it's OpenAI's own list of every deprecation, each announcement a table of shutdown date, model and recommended replacement. The markdown version is machine-readable without scraping HTML. `robots.txt` allows it. +- **Alternatives considered:** the models list API (`GET /v1/models`: says what exists now, not when it stops); OpenAI's blog and email notices (announce only some changes, no table); the old `platform.openai.com/docs/deprecations` URL (redirects here). +- **Quote:** "| October 23, 2026 | `gpt-4-0613` \| `gpt-4`, … | `gpt-5.6-sol` |" (2026-04-22 announcement, "Legacy GPT model snapshots"). + +## How the provider announces changes + +- An announcement every few weeks, shutdowns a few months later (at least 6 months for generally available models, 3 for specialized variants, possibly 2 weeks for previews, per the page). +- **Forced, by date**: a request naming a retired model fails on every SDK version. So the event's `version` is the shutdown date. +- The page keeps past announcements, newest first. + +## What the plugin reads and ignores + +- Reads every table whose first column is a shutdown or retirement date and which has a model column and a replacement column. Each backticked name in the model cell is one model (aliases after an escaped pipe too). +- A model listed twice keeps its first (newest) row; a newer "To be announced" withdraws an older date. +- A replacement that is itself retired is followed to one that still works (`gpt-3.5-turbo-0613` → `gpt-3.5-turbo` → `gpt-5.6-terra`), and the hint says so. +- Ignores image, audio, realtime, transcription, embedding and moderation models, fine-tuned bases (`ft-gpt-4`; code sends `ft:gpt-4-0613:org::id`) and the legacy `-completions` aliases: the events are for the operations that take text models. +- Every event cites a Wayback Machine snapshot of the page, never the live page, and is read from that snapshot. No snapshot, or one that differs from the live page, stores nothing that run. A page that suddenly lists far fewer retirements fails the run (a renamed column probably hid a table). + +## Known gaps + +- Replacements that need a setting (`gpt-5.6-sol` with `reasoning.mode: pro`) or name no model are passed on as written; a fix can't be generated from the second kind. +- Image, audio and embedding model retirements aren't events. diff --git a/providers/stripe.md b/providers/stripe.md new file mode 100644 index 0000000..582214c --- /dev/null +++ b/providers/stripe.md @@ -0,0 +1,34 @@ +# Stripe (`stripe`) + +## What it watches + +Stripe's REST API, release by release: endpoints, parameters, fields, schemas and enum values that are removed, renamed, retyped or added between two versions of Stripe's own OpenAPI spec. Breaking events carry Stripe's own explanation from its API changelog as the migration hint when the changelog has one. + +Format plugin: `openapi` (`plugins/openapi`), with `adapter.Stripe` and the changelog hint source in `hint/`. + +## Why this source + +- **Source:** [github.com/stripe/openapi](https://github.com/stripe/openapi), the file `latest/openapi.spec3.json` pinned to a release tag (`https://raw.githubusercontent.com/stripe/openapi//latest/openapi.spec3.json`); the newest tag from `GET https://api.github.com/repos/stripe/openapi/releases/latest`. Migration hints from [docs.stripe.com/changelog](https://docs.stripe.com/changelog), read as markdown (each page's URL plus `.md`). Checked on 2026-10-13. +- **Why this one:** it's Stripe's own machine-readable description of the API, maintained by Stripe and published on every release. Two specs can be diffed exactly, with no guessing: a removed field is a removed field. Stripe recommends `latest/openapi.spec3.json` (v1 and v2 endpoints). +- **Alternatives considered:** the API changelog alone (human-written, one entry per change; precise about *why* but not exhaustive at the field level, so it supplies hints, not events); `openapi/spec3.json` (legacy, v1 only; used only for tags older than the `latest/` directory, such as `v207` in 2022); the `*.sdk.*` variants (include internal annotations and pre-release features); `preview/` (public-preview endpoints, not stable). +- **Quote:** "Removes the `charges` attribute from the `PaymentIntent` object" ([changelog, 2022-11-15](https://docs.stripe.com/changelog/2022-11-15), listed as Breaking). + +## How the provider announces changes + +- Versions are named `YYYY-MM-DD.` (`2026-09-30.endive`). Major releases include backward-incompatible changes; monthly releases only backward-compatible ones. +- **Breaking changes are opt-in.** An account has a default API version, and a request can override it with the `Stripe-Version` header; old versions keep working. A breaking change reaches code when someone upgrades the account version or the SDK. Modern SDKs pin the API version they were released with (stripe-node 12+, stripe-python 6+, stripe-ruby 9+, stripe-php 11+; Java, Go and .NET always did). +- The spec repo tags releases (`vNNNN`) several times a day, but most tags don't change the spec: the plugin polls by tag and compares by content hash, so most runs find nothing. +- The event's `version` is the spec's `info.version` (`2026-09-30.endive`). + +## What the plugin reads and ignores + +- Reads: the whole spec at the newest tag, diffed against the last one it saw (`diff/`, `normalize/`). `$ref`s are never followed: a change inside a shared schema is reported once, on that schema, not once per endpoint that uses it. +- Hints: for each breaking event, the changelog entry for that version whose "REST API" table names the same parameter and operation; the entry's "What's new" text and link become `migration_hint`. An entry describing an addition never explains a removal, and the reverse. +- Replays a historical pair (`Replay`, from `v207` to `v208`) and recreates the 2022-11-15 change (38 events, 36 breaking). +- `latest/openapi.spec3.json` can lag a version bump by several tags; the plugin follows the file, not the release notes. + +## Known gaps + +- Changes the spec doesn't express (behavior changes, webhook payload semantics) are only in the changelog, which isn't read for events. +- Enum value removals and some tax-related changes have no parameter row in the changelog, so those events keep the normalizer's one-line hint. +- Webhooks use the version set when the endpoint was created; the events don't say which webhook endpoints are affected. diff --git a/providers/textual.md b/providers/textual.md new file mode 100644 index 0000000..dc06f77 --- /dev/null +++ b/providers/textual.md @@ -0,0 +1,30 @@ +# Textual (`textual`) + +## What it watches + +Removals and breaking changes in Textual 0.86.0, read from its changelog: symbols removed (`App.dark`, …) or renamed. One `package_release` event per changelog bullet the plugin can read with certainty. Pinned to that release. + +Format plugin: `changelog` (`plugins/changelog`). + +## Why this source + +- **Source:** [CHANGELOG.md at v0.86.0](https://github.com/Textualize/textual/blob/v0.86.0/CHANGELOG.md), read raw at the tag (`https://raw.githubusercontent.com/Textualize/textual/v0.86.0/CHANGELOG.md`). Checked on 2026-11-14. +- **Why this one:** it's the maintainers' own changelog in the [Keep a Changelog](https://keepachangelog.com) format, with `Removed` and `Changed` sections and explicit "Breaking change:" bullets. At a tag it never changes, so the URL is its own citation. +- **Alternatives considered:** GitHub release notes (the same text, but editable after the fact and not in one file); the docs site's changelog page (rendered from this file); diffing the package's code (finds removals but not the maintainers' wording or intent). +- **Quote:** "Breaking change: Removed `App.dark` reactive attribute" (0.86.0, Changed). + +## How the provider announces changes + +- Textual is pre-1.0 and releases often; breaking changes can land in any minor release and are marked in the changelog. +- **Forced on upgrade**, for a repo whose pin reaches the release. + +## What the plugin reads and ignores + +- Reads the release's section only; a release missing from the file is an error. +- An event needs a bullet whose first sentence is one plain template over code spans: `Removed X`, `Removed the X method from Y`, `Renamed X to Y`, `X property removed`, `Deprecated X in favor of Y`, or a bare name under `Removed`. Any bullet starting "Breaking change:" counts as breaking. +- Drops (and logs) everything else: behavior changes, signature changes, removed options and parameters (of which call?), dropped Python versions. 2 events from 0.86.0. + +## Known gaps + +- Only 0.86.0. Following each new release is planned. +- Breaking behavior changes written as prose aren't events. diff --git a/providers/urllib3.md b/providers/urllib3.md new file mode 100644 index 0000000..c962ac1 --- /dev/null +++ b/providers/urllib3.md @@ -0,0 +1,30 @@ +# urllib3 (`urllib3`) + +## What it watches + +Removals and deprecations in urllib3 2.0.0, read from its changelog: classes, methods and modules removed or renamed. One `package_release` event per bullet the plugin can read with certainty. Pinned to that release. + +Format plugin: `changelog` (`plugins/changelog`). + +## Why this source + +- **Source:** [CHANGES.rst at 2.0.0](https://github.com/urllib3/urllib3/blob/2.0.0/CHANGES.rst), read raw at the tag (`https://raw.githubusercontent.com/urllib3/urllib3/2.0.0/CHANGES.rst`). Checked on 2026-11-14. +- **Why this one:** it's the maintainers' own changelog, with a "Removed" and a "Deprecated" section per release, each bullet linking its issue. At a tag it never changes. +- **Alternatives considered:** the [v2 migration guide](https://urllib3.readthedocs.io/en/stable/v2-migration-guide.html) (prose and examples, harder to read deterministically); GitHub release notes (same content as the changelog); diffing the package's code. +- **Quote:** "Removed ``urllib3.HTTPResponse.from_httplib``" (2.0.0, Removed). + +## How the provider announces changes + +- Semantic versions; 2.0.0 (2023-04-26) was the major release that removed long-deprecated APIs. +- **Forced on a fresh install** for an unpinned `urllib3`, which many packages pull in indirectly. + +## What the plugin reads and ignores + +- reStructuredText titles: release and section levels are told apart by their underline character. +- Same bullet templates as [`textual`](textual.md). A name the same release's "Added" section adds back isn't reported as removed: 2.0.0 removed the `urllib3.request` module and added a `urllib3.request()` function. +- Drops (and logs) dropped Python and OpenSSL versions and behavior changes. 12 events from 2.0.0. + +## Known gaps + +- Only 2.0.0. +- Changed defaults (TLS versions, retries) are behavior changes and aren't events. diff --git a/providers/vertex-ai-models.md b/providers/vertex-ai-models.md new file mode 100644 index 0000000..d167ad0 --- /dev/null +++ b/providers/vertex-ai-models.md @@ -0,0 +1,31 @@ +# Vertex AI generative models (`vertex-ai-models`) + +## What it watches + +Generative AI model endpoints on Google Cloud's Vertex AI that Google deprecates: one `model` event per model id in a "Discontinued endpoints" table, with the replacement when the row names exactly one. + +Format plugin: `feed` (`plugins/feed`), with the `VertexAIModels` reader. + +## Why this source + +- **Source:** the [Generative AI on Vertex AI release notes](https://docs.cloud.google.com/vertex-ai/generative-ai/docs/release-notes) Atom feed, `https://docs.cloud.google.com/feeds/generative-ai-on-vertex-ai-release-notes.xml` (the `cloud.google.com/feeds/…` URL redirects here). Checked on 2026-11-14. +- **Why this one:** it's Google's own release notes as a feed, one entry per day, each change under a heading naming its kind (`Deprecated`), and deprecations come with a table of discontinued endpoints and replacements. +- **Alternatives considered:** the model versions and lifecycle docs page (HTML, rewritten in place, no history); the Google Cloud deprecations page (all of Cloud, prose); the models list API (what exists now, not when it stops). +- **Quote:** "We recommend updating your model endpoints before June 30, 2026, to avoid service disruption." (Deprecated: Imagen generation GA endpoints deprecation). + +## How the provider announces changes + +- Deprecations are announced in the release notes with a date to move by; shutdown dates aren't always given. +- Content is licensed CC BY 4.0. + +## What the plugin reads and ignores + +- Only `Deprecated` sections with a "Discontinued endpoints" table; one event per model id, `provider: google`. `replacement` only when the row names one other plain id. +- The date the section says to move by is the event's `version`; a section saying it "is deprecated" with only a "before …" date is a deprecation, not breaking. +- Drops (and logs) product names in prose (third-party models mentioned in a sentence) and non-model deprecations (Vertex AI Extensions). 35 events from the saved feed. +- Every event cites a Wayback Machine snapshot of the feed and is read from it. + +## Known gaps + +- Whether an "update before " deprecation should wait for a stated shutdown date is open; today it's a deprecation with that date. +- Partner models (Claude, Llama on Vertex) are only named in prose, so they're dropped.