Repository navigation
openai/models: read the deprecations page's new layout - #255
Conversation
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 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
BugsNone found that block the merge. Things I checked:
Verified
I didn't fetch the live page, so I didn't independently check the claim that Non-blocking
Thanks for keeping the old layout as a regression case; it makes this change easy to trust. |
| // 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"} { |
There was a problem hiding this comment.
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 falseWith 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>
Closes #251 · Closes #82 · Part of #250
What this changes
openai/models(kindnotices, readerkinds/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 withno retirement tables found.Deprecated,Shutdown,Shut down,Retired) is a retirement; any other (a postponed one) withdraws the date. Precision over recall.openAITextkeeps everygpt-<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.Parsereturns the same retirements from the trimmed and the full page (checked).golden/openai-models.jsonis new: 77 events.testdata/openai-deprecations-2026-10-13.md→testdata/layouts/openai-models-2026-10-13.json, the old golden byte for byte unchanged. It's outsidegolden/because a source has one golden there (patch-it's hosted ingestion service replays each source's one golden).noticestest.GoldenFilereads a page against a golden file of its own.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 checkpasses (go1.27.1).Checklist
git commit -s, DCO)providers/openai/testdata/golden/openai-models.json)providers/openai/testdata/README.mdlists each file: URL, date fetched, license, quoteproviders/openai/README.mdupdated, including Why this source (checked 2026-11-21: still OpenAI's own list, still the best source)providers/openai/; a kind imports no providerenv.Get/core/kit/make checkpasses locallyNotes for the reviewer
🤖 Generated with Claude Code