Skip to content

guide: measure a source over its history before trusting it - #128

Merged
brandonphelps1212 merged 2 commits into
mainfrom
plugin-guide-verify
Nov 19, 2026
Merged

brandonphelps1212 merged 2 commits into
mainfrom
plugin-guide-verify

Conversation

@brandonphelps1212

Copy link
Copy Markdown
Contributor

What this changes

Docs only: docs/writing-a-plugin.md gains what the last several plugins (vercel, cloudflare, supabase, mongodb-atlas, algolia-*, elasticsearch) taught about checking a source before trusting it. Most of their bugs were caught this way. No plugin and no code changes.

  • Step 2, "Measure the source over its history before trusting it":
    • run the diff over every release and count what comes out: deprecations and how they're marked; removals split by whether they were deprecated first, and why unmarked ones mostly weren't API removals; withdrawals; property churn;
    • check what's left against the provider's own words;
    • write the numbers on the provider page.
  • Step 2, "Pin, and pick a version a repo pins":
    • cite tags and commit SHAs;
    • the pitfalls of "newest" (same-day releases, an older major's later patch, unreleased branches);
    • what version should be, including that a new date-versioned API needs an entry in the patch-it client's list of date-versioned APIs;
    • RemovalsNeedANewVersion.
  • Step 5: trimming a big spec or changelog. Keep lines unchanged, or keep positions when pointers are by array index, and check the trimmed copy gives the same findings.
  • Step 7: a drop test should also show that the unfiltered input has the noise it drops.
  • Step 10: a review that re-derives the numbers and claims, rather than rereading the diff.

Checklist

  • docs/plugins.md: not applicable, no plugin changed.
  • Every commit is signed off (DCO)
  • Golden test, drop test, provider page: not applicable, docs only.
  • make check passes.
  • Nothing private: no credentials, internal hosts, private links, customer names

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: brandonphelps1212 <bphelps1212@gmail.com>
@claude

claude Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Claude finished @brandonphelps1212's task in 1m 8s —— View job


✅ Ready to merge. This PR only changes docs, every identifier it names exists in the code, and every check I ran passes.

Rules

Rule Status Evidence
Plugin list (docs/plugins.md) n/a No plugin added, removed or changed. The only file changed is docs/writing-a-plugin.md.
Provider page n/a No new provider or changed source.
Golden test and quote n/a No testdata/ or golden files touched.
Drop test n/a No plugin code.
Fetch only through env n/a No Go changes.
Nothing private ✅ No credentials, internal hosts, private links or names. The leak guard passes. "The patch-it client" is a generic product reference.

Bugs

None found. I checked each reference in the guide against the code:

  • deprecationsOnly exists in plugins/openapi (plugins/openapi/vercel.go:55) and is used by vercel, supabase, algolia and elasticsearch. It does what the guide says: it keeps operation deprecations, plus removals of operations that were marked deprecated first.
  • RemovalsNeedANewVersion exists (plugins/openapi/openapi.go:76, :197) and drops removals when Version == PreviousVersion, as described.
  • endpoint-reactivated is the withdrawal code in plugins/apichangelog/apichangelog.go:104.
  • x-cfDeprecation is documented in providers/cloudflare.md.
  • The "Remove unfreeze REST endpoint" quote matches providers/elasticsearch.md:17.

Verified

  • go build ./...: ok
  • go vet ./...: no output
  • gofmt -l .: no output
  • go test -race ./...: all packages ok
  • python3 scripts/leak_guard.py --all: "no banned terms (8 hashed terms checked)"
  • make check didn't run because it needed an approval this job doesn't have. The steps above cover what it runs except tidy, imports, nethttp and todos. None of those can be affected by a Markdown-only change.

Non-blocking (optional)

  • Step 2, the example "108 operations left the spec; 5 had been marked deprecated". It reads like real data, and providers/github.md:26 uses 108 for a different count ("108 breaking events"). You could reword it so it's clearly made up, or replace it with a real figure from one of the provider pages.
  • Step 2, "the deprecationsOnly filter in plugins/openapi". The function is defined in vercel.go, so pointing to plugins/openapi/vercel.go would save a reader a search. Moving it to a shared file would also work.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: brandonphelps1212 <bphelps1212@gmail.com>
@brandonphelps1212
brandonphelps1212 merged commit 7cecf00 into main Nov 19, 2026
4 checks passed
@brandonphelps1212
brandonphelps1212 deleted the plugin-guide-verify branch November 19, 2026 21:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant