Skip to main content

SunsetWatch — POC

A local proof-of-concept for SunsetWatch, an AI model deprecation monitor: scan a codebase for AI model ID strings, check them against a deprecation registry, and produce a report of what is retired, what is retiring (and when), and what is unknown.

Built 2026-11-08 from the validation dossier in ../files/validations/sunsetwatch.md. The dossier's verdict was keep parked; this POC exists because Sidd chose to start with SunsetWatch anyway, and its job is to prove the core loop cheaply before any MVP decision.

What it proves

  • Scan → match → report works end-to-end. Point it at a directory; it finds model IDs in source files (.py, .ts, .js, .go, .java, …), config files (.json, .yaml, .toml), and .env files, with exact file:line locations.
  • Registry matching handles the dossier's hard cases, not just the easy ones:
    • exact entries beat family dates (gpt-4o-2024-05-13 retired 2026-10-23, not with the other GPT-4o snapshots on 2027-01-14);
    • dated snapshots match family rules (gpt-4o-2024-08-06 → 2027-01-14);
    • bare aliases are reported as aliases, not given invented dates (gpt-4o);
    • per-route dates are carried in the data (Claude Sonnet 4.5: 2026-11-30 on the Claude API, 2027-04-08 on Bedrock).
  • Parameter deprecations are flagged too: temperature / top_p / top_k in Anthropic-referencing files, per the Anthropic API version 2026-10-21 removal.
  • Retired MCP servers are flagged too (added 2026-11-23, v0.2). MCP servers live in client configs (.mcp.json, claude_desktop_config.json, …), not dependency files — and in May 2025 the MCP project moved 14 of its reference servers to a read-only archive (servers-archived, "no security guarantees"). They still install and run via npx/uvx; they just never get fixes or protocol updates, and they're still downloaded ~600K times a week. The scan finds @modelcontextprotocol/server-* (npm) and mcp-server-* (PyPI) package references, reports archived ones with their maintained replacement where one exists (e.g. server-github → github/github-mcp-server), and reports the 7 still-maintained reference servers as active so they are never flagged. --fail-on-risk also trips on archived MCP servers. Source: the Archived section of the modelcontextprotocol/servers README, checked 2026-11-23.
  • The registry is honest about provenance. Every date in registry.json is copied from the 2026-11-08 validation dossier (OpenAI's Oct 23, 2026 shutdowns, Sonnet 4.5 on Nov 30, 2026, GPT-4o/4.1 snapshots on Jan 14, 2027, GPT-5 family on Dec 11, 2026, Gemini 2.5 on Vertex on Oct 20, 2026). No date was invented; models not in the seed registry report as unknown, which the report explicitly says does not mean safe.

Run it

cd sunsetwatch-poc

# Demo against the bundled fixture project
python3 sunsetwatch.py fixtures/sample-app --out demo-report.md

# Scan a real project (read-only; writes only the report file)
python3 sunsetwatch.py /path/to/project --out report.md

# CI-style: exit 1 if any retired/retiring model is found
python3 sunsetwatch.py /path/to/project --fail-on-risk

# Reproducible runs: pin the scan date
python3 sunsetwatch.py fixtures/sample-app --today 2026-11-08

Requirements: Python 3.10+, standard library only. No installs, no network, no accounts.

Tests

python3 -m unittest discover -s tests -v

14 tests covering registry matching (exact / family / unknown / alias / per-route), the scanner (file:line locations, .env and config scanning, skipping node_modules/.git, dedupe), parameter-deprecation scoping, and an end-to-end fixture scan → report check. All passing as of 2026-11-08.

Layout

Path What
sunsetwatch.py The CLI: scanner + registry + report generator
registry.json Hand-seeded lifecycle registry (dossier facts only)
fixtures/sample-app/ Fake project with 9 model usages across Python, TypeScript, .env, and YAML
demo-report.md Output of the demo run against the fixture
tests/test_sunsetwatch.py Automated tests

What it deliberately does NOT do

  • No hosted service, no dashboard, no accounts. The dossier found the only possible paid wedge is hosted zero-config convenience; this POC does not test that wedge, it tests the scan/report core underneath it.
  • No GitHub integration — no App, no issues, no PRs. Those are the free competitors' ground (llmshift digest/upgrade, modelbump's Action) and stay out of POC scope.
  • No scheduled watching / nightly checks — it is a point-in-time scan you run by hand, like the free CLIs. Continuous monitoring is an MVP question, not a POC question.
  • No upgrade PRs or auto-edits — replacements are reported, never applied. The dossier is explicit that provider-named replacements are not behavior-equivalent, so a human always makes the swap.
  • No registry maintenance pipeline — registry.json is hand-seeded and goes stale. The dossier's #1 risk is exactly this: the registry is a treadmill of provider pages that move dates and contradict their own emails. Nothing here solves that.
  • No alias-drift detection (a bare alias silently resolving to a new snapshot) — that is modelalive's named feature and far beyond a POC.
  • No notebooks, no AST parsing — matching is regex over text lines, so model-like strings in comments are reported too. Precision work (confidence scoring, suppression) is sellable-v1 territory per the dossier.

The decision this informs

The POC answers "does the scan → registry → report loop work and produce a report a developer would act on?" — yes, cheaply, in ~350 lines of stdlib Python. It does not answer the question the dossier says actually decides SunsetWatch's fate: will teams pay for a hosted, zero-config version when llmshift / modelbump / modelalive already do scan + digest for free?

Suggested next step (from the dossier, unchanged): the launch-content experiment — scan popular public repos for model IDs that died in the Oct 23, 2026 shutdown and publish the receipts. Sustained attention plus a waitlist asking for continuous hosted monitoring would justify an MVP (GitHub App + hosted registry pipeline). Silence — or "I just added the free Action" — parks SunsetWatch again, having cost a POC instead of seven weekends.

Metadata

Release files for sunsetwatch 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sunsetwatch 0.2.0
File Size Uploaded Provenance Actions
sunsetwatch-0.2.0.tar.gz 15.0 kB Without provenance Details for sunsetwatch-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sunsetwatch 0.2.0
File Interpreter ABI Platform Actions
sunsetwatch-0.2.0-py3-none-any.whl Python 3 none any Details for sunsetwatch-0.2.0-py3-none-any.whl

Total release size: 27.9 kB

Release files / sunsetwatch-0.2.0.tar.gz

Download URL sunsetwatch-0.2.0.tar.gz
Size 15.0 kB
Tags Source
SHA-256 checksum
How to use checksums
a7a7a2209739fc5af89484b1df93c70c1d6b859af00939fb319fadc287b29cd9
BLAKE2b-256 checksum
How to use checksums
43e8f72c96d8fafef480cc8823599fce6b2053982f3f19bcbf10aaa78e1a005f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/3.12

Release files / sunsetwatch-0.2.0-py3-none-any.whl

Download URL sunsetwatch-0.2.0-py3-none-any.whl
Size 12.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9b18481bc8e18f8e5a5eb0ca68f51a9894104dc913e5fc311551d6927cd60042
BLAKE2b-256 checksum
How to use checksums
d32fa9428a725a9bff72d94e161d0ed1d9fc69976f81a629d2a01ee189a1a98d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/3.12

Security for sunsetwatch 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page