From c246e1ea046ca7e28bed9af55054d244815c82e3 Mon Sep 17 00:00:00 2001 From: adssib <75389300+adssib@users.noreply.github.com> Date: Wed, 18 Nov 2026 02:35:47 -0500 Subject: [PATCH 1/2] add the repo skeleton: license, contributing, agents rules, plugin list, ci LICENSE (Apache-2.0), README, CONTRIBUTING (DCO), AGENTS.md + CLAUDE.md, docs/plugins.md (the supported plugins), CODEOWNERS, PR template, and CI_go, CI_dco and CI_leak_guard (gitleaks + hashed internal names). Co-Authored-By: Claude Opus 5.5 Signed-off-by: adssib <75389300+adssib@users.noreply.github.com> --- .github/CODEOWNERS | 2 + .github/pull_request_template.md | 19 +++ .github/workflows/CI_dco.yml | 51 +++++++ .github/workflows/CI_go.yml | 99 ++++++++++++++ .github/workflows/CI_leak_guard.yml | 79 +++++++++++ AGENTS.md | 64 +++++++++ CLAUDE.md | 1 + CONTRIBUTING.md | 42 ++++++ LICENSE | 202 ++++++++++++++++++++++++++++ README.md | 46 ++++++- docs/README.md | 8 ++ docs/plugins.md | 37 +++++ docs/writing-a-plugin.md | 20 +++ providers/README.md | 10 ++ scripts/banned-terms.sha256 | 10 ++ scripts/leak_guard.py | 138 +++++++++++++++++++ 16 files changed, 826 insertions(+), 2 deletions(-) create mode 100644 .github/CODEOWNERS create mode 100644 .github/pull_request_template.md create mode 100644 .github/workflows/CI_dco.yml create mode 100644 .github/workflows/CI_go.yml create mode 100644 .github/workflows/CI_leak_guard.yml create mode 100644 AGENTS.md create mode 100644 CLAUDE.md create mode 100644 CONTRIBUTING.md create mode 100644 LICENSE create mode 100644 docs/README.md create mode 100644 docs/plugins.md create mode 100644 docs/writing-a-plugin.md create mode 100644 providers/README.md create mode 100644 scripts/banned-terms.sha256 create mode 100755 scripts/leak_guard.py diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..fcf8181 --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1,2 @@ +# Every change needs a review from a maintainer. +* @adssib diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 0000000..4205c89 --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,19 @@ +## What this changes + + + +## Checklist + +- [ ] **Added to / updated in `docs/plugins.md`** (new plugin: a row; changed id, provider, source, what it watches, format or status: the row updated; removed: the row removed). Not applicable: +- [ ] Every commit is signed off (`git commit -s`, DCO) +- [ ] Golden test over a real saved copy of the source (`testdata/golden/.json`) +- [ ] `testdata/README.md` lists each file: URL, date fetched, license, quote of the part the plugin reads +- [ ] One pinned drop test: a realistic input that produces no event +- [ ] `providers/.md` written or updated +- [ ] Fetches only through `env.Get` / `kit/` +- [ ] `go build ./... && go vet ./... && gofmt -l . && go test -race ./...` pass locally +- [ ] Nothing private: no credentials, internal hosts, private links, customer names + +## Notes for the reviewer + + diff --git a/.github/workflows/CI_dco.yml b/.github/workflows/CI_dco.yml new file mode 100644 index 0000000..91cebff --- /dev/null +++ b/.github/workflows/CI_dco.yml @@ -0,0 +1,51 @@ +# Every commit carries a DCO sign-off (`git commit -s`) by its author: +# a "Signed-off-by: Name " line whose email is the commit author's. +# Merge commits are skipped. See CONTRIBUTING.md#sign-your-commits-dco. +name: CI_dco + +on: + pull_request: + merge_group: + workflow_dispatch: + +permissions: + contents: read + +# A new push cancels the run it supersedes. +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + +jobs: + dco: + name: commits are signed off + runs-on: ubuntu-latest + timeout-minutes: 5 + steps: + - uses: actions/checkout@v6 + with: + fetch-depth: 0 + + - name: check sign-offs + env: + PR_BASE: ${{ github.event.pull_request.base.sha }} + PR_HEAD: ${{ github.event.pull_request.head.sha }} + MQ_BASE: ${{ github.event.merge_group.base_sha }} + MQ_HEAD: ${{ github.event.merge_group.head_sha }} + run: | + base="${PR_BASE:-$MQ_BASE}"; head="${PR_HEAD:-$MQ_HEAD}" + if [ -z "$base" ]; then + # A manual run checks the last commit only. + base="HEAD~1"; head="HEAD" + fi + bad=0 + for sha in $(git rev-list --no-merges "$base..$head"); do + email=$(git log -1 --format='%ae' "$sha") + if git log -1 --format='%(trailers:key=Signed-off-by,valueonly)' "$sha" | grep -qiF "<$email>"; then + echo "ok ${sha:0:12} $(git log -1 --format=%s "$sha")" + else + echo "::error::commit ${sha:0:12} ($(git log -1 --format=%s "$sha")) has no Signed-off-by for its author. Fix: git rebase --signoff $base, then push." + bad=1 + fi + done + exit $bad diff --git a/.github/workflows/CI_go.yml b/.github/workflows/CI_go.yml new file mode 100644 index 0000000..195f7b3 --- /dev/null +++ b/.github/workflows/CI_go.yml @@ -0,0 +1,99 @@ +# The plugins build, are formatted and vetted, and their tests pass with the race +# detector. Two guards keep plugins self-contained: +# - imports: only this module, the standard library and the approved dependencies; +# - network: net/http only in the fetch layer (fetch/, kit/, adapter/). +# Until the Go code lands there is no go.mod, and every step after the first is skipped +# with a notice, so the check passes. +name: CI_go + +on: + pull_request: + merge_group: + workflow_dispatch: + +permissions: + contents: read + +# A new push cancels the run it supersedes. +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + +jobs: + go: + name: go build, vet, gofmt, test + runs-on: ubuntu-latest + timeout-minutes: 15 + steps: + - uses: actions/checkout@v6 + + - name: is there Go code yet + id: go + run: | + if [ -f go.mod ]; then + echo "present=true" >> "$GITHUB_OUTPUT" + else + echo "::notice::No go.mod yet: no Go packages to check. CI_go passes until the plugin code lands." + echo "present=false" >> "$GITHUB_OUTPUT" + fi + + - uses: actions/setup-go@v7 + if: steps.go.outputs.present == 'true' + with: + go-version-file: go.mod + cache-dependency-path: go.sum + + - name: go.mod and go.sum are tidy + if: steps.go.outputs.present == 'true' + run: | + go mod tidy + if ! git diff --exit-code -- go.mod go.sum; then + echo "::error file=go.mod::go.mod/go.sum are not tidy. Run 'go mod tidy' and commit the result." + exit 1 + fi + + - name: go build + if: steps.go.outputs.present == 'true' + run: go build ./... + + - name: gofmt + if: steps.go.outputs.present == 'true' + run: | + unformatted=$(gofmt -l .) + if [ -n "$unformatted" ]; then + for f in $unformatted; do echo "::error file=$f::not gofmt-formatted. Run 'gofmt -w .'."; done + exit 1 + fi + + - name: go vet + if: steps.go.outputs.present == 'true' + run: go vet ./... + + # An allowlist, so a plugin can't pull in a database driver, a cloud SDK or + # anything private. Adding a dependency means adding it here, in review. + - name: imports are this module, the standard library or approved + if: steps.go.outputs.present == 'true' + run: | + module=$(go list -m) + allowed="^($module(/|$)|gopkg\.in/yaml\.v3$)" + others=$(go list -deps -test -f '{{if not .Standard}}{{.ImportPath}}{{end}}' ./... | sed 's/ \[.*//' | sort -u | grep -vE "$allowed" || true) + if [ -n "$others" ]; then + echo "::error::imports outside the allowlist (CI_go.yml):"; echo "$others"; exit 1 + fi + + # Plugins fetch through env.Get / kit, never on their own. + - name: net/http only in the fetch layer + if: steps.go.outputs.present == 'true' + run: | + module=$(go list -m) + bad=$(go list -f '{{.ImportPath}} {{join .Imports " "}}' ./... \ + | grep -E '(^| )net/http( |$)' | cut -d' ' -f1 \ + | grep -vE "^$module/(fetch|kit|adapter)(/|$)" || true) + if [ -n "$bad" ]; then + echo "::error::these packages import net/http; fetch through env.Get or kit instead:"; echo "$bad"; exit 1 + fi + + # -race: the fetcher and the tests' HTTP servers run on other goroutines. + - name: go test + if: steps.go.outputs.present == 'true' + run: go test -race -count=1 ./... diff --git a/.github/workflows/CI_leak_guard.yml b/.github/workflows/CI_leak_guard.yml new file mode 100644 index 0000000..ad5c7a2 --- /dev/null +++ b/.github/workflows/CI_leak_guard.yml @@ -0,0 +1,79 @@ +# This repo is public: nothing private may land in it. +# - gitleaks (pinned release, checksum-verified) looks for secrets in the PR's commits, +# and in the whole history on the weekly run. +# - scripts/leak_guard.py looks for known internal names. The list is committed only as +# SHA-256 hashes (scripts/banned-terms.sha256); a hit prints file:line, never the term. +# Runs on every PR and weekly (a new term added to the list then covers old files too). +name: CI_leak_guard + +on: + pull_request: + merge_group: + schedule: + - cron: "41 4 * * 1" + workflow_dispatch: + +permissions: + contents: read + +# A new push cancels the run it supersedes. +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + +env: + GITLEAKS_VERSION: 8.30.1 + GITLEAKS_SHA256: 551f6fc83ea457d62a0d98237cbad105af8d557003051f41f3e7ca7b3f2470eb + +jobs: + leak-guard: + name: secrets and internal names + runs-on: ubuntu-latest + timeout-minutes: 10 + steps: + - uses: actions/checkout@v6 + with: + fetch-depth: 0 + + - name: which commits to check + id: range + env: + PR_BASE: ${{ github.event.pull_request.base.sha }} + PR_HEAD: ${{ github.event.pull_request.head.sha }} + MQ_BASE: ${{ github.event.merge_group.base_sha }} + MQ_HEAD: ${{ github.event.merge_group.head_sha }} + run: | + # PRs and the merge queue: only what they add. Schedule and manual runs: everything. + base="${PR_BASE:-$MQ_BASE}"; head="${PR_HEAD:-$MQ_HEAD}" + echo "base=$base" >> "$GITHUB_OUTPUT" + echo "head=$head" >> "$GITHUB_OUTPUT" + if [ -n "$base" ]; then echo "checking $base..$head"; else echo "checking the whole repo"; fi + + - name: install gitleaks ${{ env.GITLEAKS_VERSION }} + run: | + tarball="gitleaks_${GITLEAKS_VERSION}_linux_x64.tar.gz" + curl -fsSL -o "$RUNNER_TEMP/$tarball" "https://github.com/gitleaks/gitleaks/releases/download/v${GITLEAKS_VERSION}/${tarball}" + echo "${GITLEAKS_SHA256} $RUNNER_TEMP/$tarball" | sha256sum -c - + tar -xzf "$RUNNER_TEMP/$tarball" -C "$RUNNER_TEMP" gitleaks + + - name: gitleaks + env: + BASE: ${{ steps.range.outputs.base }} + HEAD: ${{ steps.range.outputs.head }} + run: | + if [ -n "$BASE" ]; then + "$RUNNER_TEMP/gitleaks" git --no-banner --redact --verbose --log-opts="$BASE..$HEAD" . + else + "$RUNNER_TEMP/gitleaks" git --no-banner --redact --verbose . + fi + + - name: internal names (hashed) + env: + BASE: ${{ steps.range.outputs.base }} + HEAD: ${{ steps.range.outputs.head }} + run: | + if [ -n "$BASE" ]; then + python3 scripts/leak_guard.py --diff "$BASE" "$HEAD" + else + python3 scripts/leak_guard.py --all + fi diff --git a/AGENTS.md b/AGENTS.md new file mode 100644 index 0000000..f244f1a --- /dev/null +++ b/AGENTS.md @@ -0,0 +1,64 @@ +# AGENTS.md + +Rules for AI coding agents (and humans) working in this repo. `CLAUDE.md` imports this file. + +## Rule 1: every new or changed plugin goes in `docs/plugins.md` + +**If you add a plugin, add its row to [`docs/plugins.md`](docs/plugins.md) in the same PR. If you change a plugin's id, provider, source, what it watches, format plugin or status, update its row in the same PR. If you remove one, remove its row.** + +The list of supported APIs on docs.patch-it.dev is generated from that file, so a plugin missing from it doesn't exist as far as users can tell. No CI check enforces this: you are the check. Before you finish, compare the registered plugins with the table and say in the PR that you did. + +Keep the table between the `` and `` markers a plain Markdown table, one row per plugin, absolute links only (the docs site copies it verbatim). + +## Rule 2: this repo is public + +Everything you write here is public forever, including commit messages, branch names, PR titles and descriptions, and test data. Never write: + +- credentials, tokens, keys, or values from any `.env`; +- internal hostnames, internal service names, or links to private repos, dashboards or tickets; +- names or emails of customers, users or leads, or anything about sales or outreach; +- links to AI chat or agent sessions. + +Refer to the service that runs these plugins as "patch-it's hosted ingestion service". `CI_leak_guard` checks every PR for secrets and for a list of known internal names (committed only as SHA-256 hashes), but it can't catch everything. + +## Rules for plugin code + +- **Fetch only through the environment** (`env.Get` or `kit/`). No `net/http` outside the fetch layer, no filesystem outside `testdata/`, no database. +- **Golden test + dated source quote**: a saved copy of the real source in `testdata/`, a row in `testdata/README.md` (URL, date fetched, license, quote), and `testdata/golden/.json` with the exact events. +- **Precision over recall.** When unsure whether something is a change, don't emit an event. +- **One pinned drop test** per plugin: a realistic input that must produce no event. +- **`providers/.md`** for every provider. +- **No source, no event**: every event carries the source URL and a quote. +- Don't edit golden files to make a test pass without explaining in the PR why the new output is right. + +## Commands + +```sh +go build ./... +go vet ./... +gofmt -l . # must print nothing +go test -race ./... +python3 scripts/leak_guard.py --all # the internal-names check over every tracked file +``` + +Until the plugin code lands there is no `go.mod`, and `CI_go` passes with a notice. + +## Layout + +``` +docs/plugins.md the list of supported plugins (Rule 1) +docs/ contributor docs +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) +``` + +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/`. + +## Commits and PRs + +- Sign off every commit: `git commit -s` (DCO; `CI_dco` checks it). +- Subjects short, lowercase, imperative: `add the foo plugin`. +- One plugin or fix per PR; fill in every checkbox of the PR template, including "added to docs/plugins.md". +- AI-assisted commits keep their co-author trailer. +- Never re-run, dispatch or retrigger CI to "see if it passes"; fix the cause and push. diff --git a/CLAUDE.md b/CLAUDE.md new file mode 100644 index 0000000..43c994c --- /dev/null +++ b/CLAUDE.md @@ -0,0 +1 @@ +@AGENTS.md diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..a550063 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,42 @@ +# Contributing + +Thanks for helping patch-it watch more APIs. This file is the rulebook; [docs/writing-a-plugin.md](docs/writing-a-plugin.md) is the how-to. + +## The rules + +1. **Add your plugin to [docs/plugins.md](docs/plugins.md).** Every new plugin gets a row; every change to a plugin's id, provider, source, what it watches or status updates its row. The list on docs.patch-it.dev is built from that file, so a plugin that isn't listed is invisible to users. +2. **Fetch only through the environment.** Plugins get their sources from `env.Get` or the helpers in `kit/`, never from `net/http` directly, the filesystem or a database. That keeps tests offline and lets the hosted service cache, retry and rate-limit politely. +3. **Every plugin has a golden test** over a real saved copy of its source: `testdata/` in, `testdata/golden/.json` out. `testdata/README.md` lists each file with its URL, the date you fetched it, its license, and a short quote of the part your plugin reads. Keep openly licensed files whole; trim vendor documentation pages to what the test needs. +4. **Precision over recall.** A missed change is a bug we can fix later. A wrong change becomes a wrong pull request in someone's repo. When in doubt, don't emit. +5. **One pinned drop test per plugin**: a realistic input your plugin must *not* turn into an event (an unrelated section, a renamed heading, a non-breaking addition). +6. **Document the provider** in `providers/.md`: what it publishes, where, how often, what the plugin reads and what it ignores. +7. **Nothing private.** This repo is public. No credentials, tokens, internal hostnames or links to private repos or systems, in code, tests, commit messages or PR descriptions. CI scans every PR for secrets and for known internal names. + +## Sign your commits (DCO) + +We use the [Developer Certificate of Origin](https://developercertificate.org/). Sign off every commit: + +```sh +git commit -s -m "add the foo plugin" +``` + +That adds `Signed-off-by: Your Name `, matching the commit's author. `CI_dco` fails a PR with an unsigned commit. To fix one: `git commit --amend -s` (last commit) or `git rebase --signoff origin/main` (all of them), then force-push your branch. + +## Pull requests + +- One plugin or one fix per PR. Fill in the PR template's checklist. +- Commit subjects: short, lowercase, imperative (`add the foo plugin`, `fix stripe hint parsing`). +- Run the tests before you push (see [README](README.md#run-the-tests)). +- A maintainer listed in `.github/CODEOWNERS` reviews every PR. + +## CI + +| Workflow | What it checks | +|---|---| +| `CI_go` | `go mod tidy`, build, vet, gofmt, `go test -race`; plugins import only this module, the standard library and approved dependencies; `net/http` only in the fetch layer | +| `CI_dco` | Every commit in the PR is signed off by its author | +| `CI_leak_guard` | gitleaks over the PR's commits, and a check for known internal names (stored as hashes only). Also runs weekly over the whole repo | + +## License + +By contributing you agree that your contribution is licensed under [Apache-2.0](LICENSE). diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..d645695 --- /dev/null +++ b/LICENSE @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/README.md b/README.md index e8d4f22..56882da 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,47 @@ # patch-it-plugins -The source plugins for [patch-it](https://github.com/patch-it-dev/patch-it): each plugin reads one provider's own sources (API specs, changelogs, deprecation pages, migration guides) and turns what changed into change events. +The source plugins for [patch-it](https://github.com/patch-it-dev/patch-it), the tool that turns third-party API changes into pull requests in your repo. Each plugin reads one provider's own sources (API specs, changelogs, deprecation pages, SDK migration guides, release feeds) and turns what changed into change events. -**Under construction:** plugins are being moved here. Until then this repo is mostly empty. +> **Under construction.** Plugins are being moved here from patch-it's hosted ingestion service. Until they land, this repo holds the rules, the CI and [the list of supported plugins](docs/plugins.md); the Go code follows. + +## How a plugin works + +``` +provider source ──fetch──▶ plugin ──▶ change events ──▶ patch-it's change feed ──▶ your CI + (spec, page, feed) reads, diffs, (validated, each (GET /v1/changes) (patch-it opens + normalizes with a source link the PR) + and a quote) +``` + +1. **Fetch.** The plugin asks its environment for the source (`env.Get`); it never opens connections itself. Pages that change in place are also cited through a Web Archive snapshot, so the link in an event keeps showing what the plugin read. +2. **Compare.** It compares the source to the last version it saw (the baseline): two OpenAPI specs, two versions of a deprecations page, a new release's changelog section. +3. **Emit events.** Each change becomes one event in [patch-it's change-event format](https://github.com/patch-it-dev/patch-it/tree/main/docs/contract): what changed, how bad it is (breaking, deprecation, behavior change, non-breaking), the date it takes effect, and the source URL with a quote. **No source, no event.** + +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. + +## 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/). + +## Run the tests + +Once the code has landed (Go, see `go.mod`): + +```sh +go build ./... +go vet ./... +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. + +## Contributing + +New providers and fixes are welcome. Read [CONTRIBUTING.md](CONTRIBUTING.md) first (DCO sign-off, golden tests, adding your plugin to `docs/plugins.md`). AI coding agents: [AGENTS.md](AGENTS.md). + +User docs for patch-it itself: [docs.patch-it.dev](https://docs.patch-it.dev). + +## License + +[Apache-2.0](LICENSE), copyright patch-it contributors. diff --git a/docs/README.md b/docs/README.md new file mode 100644 index 0000000..f9ac1c8 --- /dev/null +++ b/docs/README.md @@ -0,0 +1,8 @@ +# Docs + +| 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. | + +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 new file mode 100644 index 0000000..35cf981 --- /dev/null +++ b/docs/plugins.md @@ -0,0 +1,37 @@ +# Supported plugins + +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. + +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 | + + +## The columns + +| Column | Meaning | +|---|---| +| Plugin | The id you pass as `--api` and the `api` field on every event it emits. Lowercase, unique. | +| Provider | Whose API, SDK or package it is. | +| What it watches | The kind of change it reports, in a few words. | +| Format plugin | Which shared reader it is built on: `openapi` (a spec per release, diffed), `retirements` (a deprecations page), `migrationguide` (an SDK's migration guide), `removedmembers` (a package's table of removed members), `changelog` (a release changelog file), `feed` (an RSS or Atom feed). | +| Source | The provider's own public page or file the plugin reads. Every event links back to it. | +| Status | `live`: runs every day in patch-it's hosted service. `planned`: accepted, not written yet. `paused`: registered but not run, with the reason in the row. | + +Some plugins read one pinned release (`anthropic` 1.0.0, `numpy` 2.0.0, `textual` 0.86.0, `urllib3` 2.0.0): a newer release of the same package is a new entry in that plugin, not a new row, unless it changes the format. diff --git a/docs/writing-a-plugin.md b/docs/writing-a-plugin.md new file mode 100644 index 0000000..ab4d681 --- /dev/null +++ b/docs/writing-a-plugin.md @@ -0,0 +1,20 @@ +# 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. 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). + +## Steps + +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. + +## What makes an event + +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). diff --git a/providers/README.md b/providers/README.md new file mode 100644 index 0000000..cada400 --- /dev/null +++ b/providers/README.md @@ -0,0 +1,10 @@ +# Providers + +One page per plugin id: `providers/.md`. Each page says: + +- **What the provider publishes** and where (the public URLs the plugin reads). +- **How often** it changes, and how the provider announces breaking changes. +- **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). diff --git a/scripts/banned-terms.sha256 b/scripts/banned-terms.sha256 new file mode 100644 index 0000000..e5e7e1d --- /dev/null +++ b/scripts/banned-terms.sha256 @@ -0,0 +1,10 @@ +# SHA-256 of each banned term, lowercase, one per line. Never commit the terms themselves. +# Add one: python3 scripts/leak_guard.py --hash 'the term' (then paste the hash here; say "add a banned term", nothing more) +83ff934257e433a14a6ccae00bd9bf824c47cd69b1c41f927ca6c5b852e6a415 +82d9177ab79253ce2fbda44c8701449f9b9460016907629b32bbe5fa88cac060 +793ff24ef6ff8309b15a2f29ea834e1936cdf754a14b928405cca5fbac3014f5 +ff4f356151e16bf8431a3a42d9e4bad4895a2d66397da6eb8d06ff7b5cda239a +5ff32e7369f9a12d17216cc589e803307dd764f5dff8d2215e1da1af868dc093 +593bdde80c62225c0dc15828894bec85726095a532774259ed49ef24450d36ac +3a829ba4d09623c4f5f8209a65991f7aa080f0a9ea301bc9a4fa7d6e88d6df99 +0523a5370b91e6c3b81a48ea498d6c04ddf241fdad29ea1a7eec2ad3f36a8cb6 diff --git a/scripts/leak_guard.py b/scripts/leak_guard.py new file mode 100755 index 0000000..080282f --- /dev/null +++ b/scripts/leak_guard.py @@ -0,0 +1,138 @@ +#!/usr/bin/env python3 +"""Fail when text in this public repo names something internal. + +The banned names are not in this repo: only the SHA-256 of each (lowercase) +is, in scripts/banned-terms.sha256, so the list itself can't leak them. +The check splits text into tokens, lowercases them, hashes it and every run of +its dot- and hyphen-separated parts (so "x.internal.example" matches +"internal.example" and "name-of-thing-v2" matches "name-of-thing") and reports file:line for every hit, never the term. + + python3 scripts/leak_guard.py --diff BASE HEAD # lines added between two commits + their messages + python3 scripts/leak_guard.py --all # every tracked file + python3 scripts/leak_guard.py --hash TERM # print the hash to add a new term + +Exits 1 on a hit, 0 otherwise. Standard library only. +""" + +import hashlib +import pathlib +import re +import subprocess +import sys + +HASHES_FILE = pathlib.Path(__file__).with_name("banned-terms.sha256") + +# A token is a run of letters, digits, dots, hyphens and underscores, so +# "https://a.example/b-c#1" gives "a.example" and "b-c". +TOKEN = re.compile(r"[a-z0-9._-]+") + + +def digest(term: str) -> str: + return hashlib.sha256(term.strip().lower().encode()).hexdigest() + + +def load_hashes() -> set[str]: + hashes = set() + for line in HASHES_FILE.read_text().splitlines(): + line = line.split("#", 1)[0].strip() + if line: + hashes.add(line) + return hashes + + +def runs(token: str, sep: str): + """Every run of consecutive sep-separated parts: "a.b.c" gives a, a.b, a.b.c, b, b.c, c.""" + parts = token.split(sep) + for i in range(len(parts)): + for j in range(i + 1, len(parts) + 1): + yield sep.join(parts[i:j]) + + +def candidates(token: str): + for by_dot in runs(token.strip("._-"), "."): + for by_hyphen in runs(by_dot, "-"): + c = by_hyphen.strip("._-") + if c: + yield c + + +def hits(text: str, hashes: set[str]) -> bool: + for token in TOKEN.findall(text.lower()): + for c in candidates(token): + if digest(c) in hashes: + return True + return False + + +def git(*args: str) -> str: + return subprocess.run(["git", *args], check=True, capture_output=True, text=True).stdout + + +def scan_all(hashes: set[str]) -> list[str]: + found = [] + for path in git("ls-files", "-z").split("\0"): + if not path or path == "scripts/banned-terms.sha256": + continue + if hits(path, hashes): + found.append(f"{path}: the file path") + try: + text = pathlib.Path(path).read_text(errors="ignore") + except (IsADirectoryError, FileNotFoundError): + continue + for n, line in enumerate(text.splitlines(), 1): + if hits(line, hashes): + found.append(f"{path}:{n}") + return found + + +def scan_diff(base: str, head: str, hashes: set[str]) -> list[str]: + found = [] + path, line_no = None, 0 + diff = git("diff", "--no-color", "--unified=0", f"{base}...{head}") + for line in diff.splitlines(): + if line.startswith("+++ "): + path = line[6:] if line.startswith("+++ b/") else None + if path and hits(path, hashes): + found.append(f"{path}: the file path") + elif line.startswith("@@"): + m = re.search(r"\+(\d+)", line) + line_no = int(m.group(1)) if m else 0 + elif line.startswith("+") and path: + if path != "scripts/banned-terms.sha256" and hits(line[1:], hashes): + found.append(f"{path}:{line_no}") + line_no += 1 + for sha in git("rev-list", f"{base}..{head}").split(): + if hits(git("log", "-1", "--format=%B", sha), hashes): + found.append(f"commit {sha[:12]}: the commit message") + if hits(git("log", "-1", "--format=%an %ae %cn %ce", sha), hashes): + found.append(f"commit {sha[:12]}: the author or committer") + return found + + +def main(argv: list[str]) -> int: + if len(argv) == 2 and argv[0] == "--hash": + print(digest(argv[1])) + return 0 + hashes = load_hashes() + if argv == ["--all"]: + found = scan_all(hashes) + elif len(argv) == 3 and argv[0] == "--diff": + found = scan_diff(argv[1], argv[2], hashes) + else: + print(__doc__, file=sys.stderr) + return 2 + for where in found: + # GitHub annotation when the place is a file line; the term is never printed. + if ":" in where and not where.startswith("commit "): + file, _, rest = where.partition(":") + print(f"::error file={file},line={rest if rest.isdigit() else 1}::names something internal (a banned term). Remove it.") + print(f"banned term at {where}") + if found: + print(f"{len(found)} place(s) name something internal. This repo is public: remove them (and rewrite the commits if it's in a message).", file=sys.stderr) + return 1 + print(f"no banned terms ({len(hashes)} hashed terms checked)") + return 0 + + +if __name__ == "__main__": + sys.exit(main(sys.argv[1:])) From a467cbe3bc17c7f2656a446bacea9556e74605b4 Mon Sep 17 00:00:00 2001 From: adssib <75389300+adssib@users.noreply.github.com> Date: Wed, 18 Nov 2026 02:41:29 -0500 Subject: [PATCH 2/2] providers: a template with a required why-this-source section Co-Authored-By: Claude Opus 5.5 Signed-off-by: adssib <75389300+adssib@users.noreply.github.com> --- .github/pull_request_template.md | 2 +- AGENTS.md | 2 +- CONTRIBUTING.md | 2 +- providers/README.md | 5 +++-- providers/_template.md | 28 ++++++++++++++++++++++++++++ 5 files changed, 34 insertions(+), 5 deletions(-) create mode 100644 providers/_template.md diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 4205c89..173764d 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -9,7 +9,7 @@ - [ ] Golden test over a real saved copy of the source (`testdata/golden/.json`) - [ ] `testdata/README.md` lists each file: URL, date fetched, license, quote of the part the plugin reads - [ ] One pinned drop test: a realistic input that produces no event -- [ ] `providers/.md` written or updated +- [ ] `providers/.md` written or updated from `providers/_template.md`, including **Why this source** - [ ] Fetches only through `env.Get` / `kit/` - [ ] `go build ./... && go vet ./... && gofmt -l . && go test -race ./...` pass locally - [ ] Nothing private: no credentials, internal hosts, private links, customer names diff --git a/AGENTS.md b/AGENTS.md index f244f1a..8c262f8 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -27,7 +27,7 @@ Refer to the service that runs these plugins as "patch-it's hosted ingestion ser - **Golden test + dated source quote**: a saved copy of the real source in `testdata/`, a row in `testdata/README.md` (URL, date fetched, license, quote), and `testdata/golden/.json` with the exact events. - **Precision over recall.** When unsure whether something is a change, don't emit an event. - **One pinned drop test** per plugin: a realistic input that must produce no event. -- **`providers/.md`** for every provider. +- **`providers/.md`** for every provider, copied from `providers/_template.md`, including **Why this source**: the link, the date it was checked, why it's the best source, the alternatives not used, and a short quote. - **No source, no event**: every event carries the source URL and a quote. - Don't edit golden files to make a test pass without explaining in the PR why the new output is right. diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index a550063..cc00fcb 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -9,7 +9,7 @@ Thanks for helping patch-it watch more APIs. This file is the rulebook; [docs/wr 3. **Every plugin has a golden test** over a real saved copy of its source: `testdata/` in, `testdata/golden/.json` out. `testdata/README.md` lists each file with its URL, the date you fetched it, its license, and a short quote of the part your plugin reads. Keep openly licensed files whole; trim vendor documentation pages to what the test needs. 4. **Precision over recall.** A missed change is a bug we can fix later. A wrong change becomes a wrong pull request in someone's repo. When in doubt, don't emit. 5. **One pinned drop test per plugin**: a realistic input your plugin must *not* turn into an event (an unrelated section, a renamed heading, a non-breaking addition). -6. **Document the provider** in `providers/.md`: what it publishes, where, how often, what the plugin reads and what it ignores. +6. **Document the provider** in `providers/.md`, copied from [`providers/_template.md`](providers/_template.md): what it watches, **why you chose that source** (and the alternatives you didn't), how the provider announces changes, what the plugin reads and ignores, and known gaps. 7. **Nothing private.** This repo is public. No credentials, tokens, internal hostnames or links to private repos or systems, in code, tests, commit messages or PR descriptions. CI scans every PR for secrets and for known internal names. ## Sign your commits (DCO) diff --git a/providers/README.md b/providers/README.md index cada400..afc8d35 100644 --- a/providers/README.md +++ b/providers/README.md @@ -1,8 +1,9 @@ # Providers -One page per plugin id: `providers/.md`. Each page says: +One page per plugin id: `providers/.md`. Start from [`_template.md`](_template.md). Each page says: -- **What the provider publishes** and where (the public URLs the plugin reads). +- **What the plugin watches.** +- **Why this source:** the link the plugin reads, when it was checked, why it's the most reliable place this provider announces breaking changes, which other sources were considered and why they weren't used, and one short quote from it. - **How often** it changes, and how the provider announces breaking changes. - **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. diff --git a/providers/_template.md b/providers/_template.md new file mode 100644 index 0000000..533dd71 --- /dev/null +++ b/providers/_template.md @@ -0,0 +1,28 @@ +# (``) + +Copy this file to `providers/.md` and fill every section. Delete these instructions. + +## What it watches + +One or two sentences: which API, SDK, package or runtime, and which kinds of change (removed fields, model shutdowns, major releases…). + +## Why this source + +The link (or links) the plugin reads, and **why this one**: + +- **Source:** ``, checked on ``. +- **Why this one:** why it's the most reliable place this provider announces breaking changes (an official spec beats a changelog; a changelog beats a blog post; a blog post beats a forum). +- **Alternatives considered:** other places the provider publishes changes, and why the plugin doesn't read them (incomplete, not machine-readable, published late, marketing only…). +- **Quote:** one short line copied from the source that shows the kind of change the plugin turns into an event. + +## How the provider announces changes + +How often it changes, how it versions its API, and how much notice it gives before something breaks. + +## What the plugin reads and ignores + +What becomes an event, and what is deliberately dropped (and why). Precision over recall: when unsure, drop. + +## Known gaps + +Changes this provider makes that the plugin can't see yet.