Skip to content

openai/models: read the deprecations page's new layout - #255

Merged
adssib merged 2 commits into
mainfrom
sh-openai-models
Nov 21, 2026
Merged

adssib merged 2 commits into
mainfrom
sh-openai-models

Conversation

@adssib

@adssib adssib commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Closes #251 · Closes #82 · Part of #250

What this changes

openai/models (kind notices, reader kinds/notices/retire) reads OpenAI's deprecations page again. On 2026-11-21 the live page (re-read today) has two tables, "Upcoming deprecations" and "Past deprecations", with bold shutdown dates (**Dec 11, 2026**) and two new columns, Status and Notice date. No date parsed, so every row was read as "to be announced" and the run failed with no retirement tables found.

  • Dates are read without Markdown emphasis.
  • Status column (when a table has one): only a retiring status (Deprecated, Shutdown, Shut down, Retired) is a retirement; any other (a postponed one) withdraws the date. Precision over recall.
  • Notice date column (when a table has one): a model listed twice keeps the row with the latest notice, whatever the order. Without the column, the first row still wins, as before.
  • openAIText keeps every gpt-<number> model, so GPT-6 models retire as events without another change here (today's replacements are GPT-6 models). No event changes today.

Tests

  • testdata/openai-deprecations.md: today's page, trimmed as before (title, every retirement table naming a kept model, with its heading); retire.Parse returns the same retirements from the trimmed and the full page (checked). golden/openai-models.json is new: 77 events.
  • The old page (2026-10-13) is kept as a case, testdata/openai-deprecations-2026-10-13.md → testdata/layouts/openai-models-2026-10-13.json, the old golden byte for byte unchanged. It's outside golden/ because a source has one golden there (patch-it's hosted ingestion service replays each source's one golden). noticestest.GoldenFile reads a page against a golden file of its own.
  • Drop test (TestModelsDropsWhatIsNotATextModelRetirement): today's page plus an image model, a postponed text model, a "To be announced" one and a feature/endpoint row → no event.
  • TestTheLatestNoticeWinsAndOnlyARetiringStatusCounts; the October 23 batch test runs on both layouts.
  • make check passes (go1.27.1).

Checklist

  • Metadata complete in the registration Not applicable: the registration doesn't change.
  • Every commit is signed off (git commit -s, DCO)
  • Golden test over a real saved copy of the source (providers/openai/testdata/golden/openai-models.json)
  • providers/openai/testdata/README.md lists each file: URL, date fetched, license, quote
  • One pinned drop test: a realistic input that produces no event
  • The source's section of providers/openai/README.md updated, including Why this source (checked 2026-11-21: still OpenAI's own list, still the best source)
  • Provider-specific code only in providers/openai/; a kind imports no provider
  • Fetches only through env.Get / core/kit/
  • make check passes locally
  • Nothing private

Notes for the reviewer

🤖 Generated with Claude Code

The page now has two tables (upcoming, past) with bold shutdown dates and
Status and Notice date columns, so no date parsed and every row was
skipped. Dates read without emphasis; a model listed twice keeps its
latest notice; a status that isn't a retirement is not one. The old
layout stays as a case.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: adssib <75389300+adssib@users.noreply.github.com>
@claude

claude Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

Claude finished @adssib's task in 1m 50s —— View job


✅ Ready to merge. The new layout is read correctly, the old layout still reads to its old golden byte for byte, and all checks pass. I left one non-blocking precision suggestion inline.

Rules

Rule Status Evidence
Metadata in the registration (Rule 1) ✅ provider.go is unchanged, and nothing in the change needs a metadata edit. No hand-kept list came back.
Provider page ✅ The openai/models section of providers/openai/README.md is updated: checked 2026-11-21, a new quote from "Upcoming deprecations", and both layouts and the Status / Notice date rules described.
Golden test + quote ✅ golden/openai-models.json is regenerated from today's page. The PR explains why the new output is right (the new layout, GPT-6 replacements). The old golden moved to testdata/layouts/openai-models-2026-10-13.json, and I confirmed it is byte-identical to origin/main's golden. testdata/README.md has a row for each saved page with URL, date, license and quote.
Drop test ✅ TestModelsDropsWhatIsNotATextModelRetirement: an image model, a Postponed text model, a "To be announced" row and an endpoint row produce no event.
Kinds / providers split ✅ retire and noticestest stay generic (the OpenAI mention is only in a comment). The gpt-<n> rule lives in providers/openai/models.go.
Fetch only via env ✅ No new I/O.
Nothing private (Rule 2) ✅ Nothing found in the diff, the commit message or the PR body. The leak guard is clean.
DCO ✅ The commit has Signed-off-by and keeps its co-author trailer.

Bugs

None found that block the merge. Things I checked:

  • Fingerprints are stable across the layout change. event.Fingerprint(api, date, type, subject, "") doesn't include the excerpt, so a model whose date didn't change keeps its fingerprint. The new excerpt won't open duplicate PRs downstream.
  • Short-row guard. With status/notice set to -1, len(c) <= -1 is never true, so tables without those columns behave as before.
  • Notice dates. Equal notice dates keep the first row. A notice date that doesn't parse becomes "" and never wins over a dated one. A table without the column (also "") loses to one with it. All of this is consistent with the doc comment.
  • gpt-5.5-cyber-preview. Its replacement is prose ("The most capable cyber model available to you."), and the golden gives it a "names no replacement model" hint, so no model is invented.

Verified

  • go build ./...: passes
  • go vet ./...: passes
  • gofmt -l .: prints nothing
  • go test -race ./...: every package passes, including providers/openai, providers/anthropic, providers/google and kinds/notices/retire
  • python3 scripts/leak_guard.py --all: "no banned terms (8 hashed terms checked)"
  • git diff origin/main:…/golden/openai-models.json HEAD:…/layouts/openai-models-2026-10-13.json: empty

I didn't fetch the live page, so I didn't independently check the claim that retire.Parse gives the same result on the trimmed and the full page.

Non-blocking

  • retiring() matches substrings (inline). Deprecation postponed, Shutdown delayed or Not deprecated would all count as retiring and emit an event. Today every status is exactly Deprecated, so nothing goes wrong yet. Matching a closed list of whole values (deprecated, shutdown, shut down, retired) would make an unexpected wording fail safe, and one more drop-test row (Deprecation postponed) would pin it.

Thanks for keeping the old layout as a regression case; it makes this change easy to trust.

Comment thread kinds/notices/retire/retire.go Outdated
// is not read as one: precision over recall.
func retiring(status string) bool {
s := strings.ToLower(plain(status))
for _, w := range []string{"deprecat", "shutdown", "shut down", "retire"} {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Non-blocking, a precision gap. This is a substring match, so a status that withdraws a retirement but contains one of these words still counts as retiring: Deprecation postponed, Shutdown delayed, Not deprecated and Retirement cancelled all return true. The doc comment and the PR body say a postponed status withdraws the date. That holds for Postponed (the test case) but not for these wordings. Every status on today's page is exactly Deprecated, so nothing is wrong today. Still, the reason for the Status column is to catch the day OpenAI changes the wording. A closed list of whole values fails safe:

switch strings.ToLower(plain(status)) {
case "deprecated", "shutdown", "shut down", "retired":
	return true
}
return false

With this, an unexpected status reads as "not retiring", which is precision over recall. One more drop-test row, such as Deprecation postponed, would pin it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: adssib <75389300+adssib@users.noreply.github.com>
@adssib
adssib merged commit 276395d into main Nov 21, 2026
4 checks passed
@adssib
adssib deleted the sh-openai-models branch November 21, 2026 20:25
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.

I22.1 · Fix openai/models for the deprecations page's new layout openai-models: OpenAI's deprecations page changed layout

1 participant