nagisanzenin/freshness-protocol
About
Every LLM is permanently outdated, and web search alone doesn't fix it. Model-agnostic Freshness Protocol skill & benchmark for coding agents.
Developer ToolsMeasured star growth
- in 24h
- Collecting history
- in 7 days
- Collecting history
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalFRESHNESS-PROTOCOL
Every LLM is permanently outdated. Turning on web search doesn't fix it.
A model-agnostic, rot-proof temporal verification protocol & Agent Skill for any LLM and coding harness.
The Structural Problem · Benchmark · Risk Matrix · Tool Ladder · vs. Context7 & Web Search · Install
Every LLM Is Permanently Outdated
An LLM's weights are a frozen snapshot of the past, not a clock. On release day a frontier model is already 3–9 months behind reality; every week after that, APIs sunset, models retire, LTS tags roll over, CVEs drop, and regulations shift—while the model continues emitting stale code with effortless fluency.
In our 48-session / 160-evaluation benchmark (live-verified 2026-12-03 across 6 fast-moving coding & research domains plus timeless CS controls), we tested what happens both without tools and with live web search enabled:
- The Structural Floor (Closed-Book): Without live tools, both frontier (
Gemini 4 Neon XHigh) and fast (Gemini 4 Hydrogen) models were91.7%stale (22/24) on post-cutoff tasks (~8.5 months behind) while scoring100%(16/16) on timeless CS fundamentals. - The Surprise — Web Search Alone Still Fails (
33–50%task failure): Even when everyday coding agents had shell + web search and actively ran47–95searches:- Web-Search Index Lag (
0/12direct registry queries): Default agents never queriedpypi.org,registry.npmjs.org,endoflife.date, or GitHub Releases directly—repeatedly shipping web-lagged versions (google-genai 3.6.1vs live PyPI3.7.0). - Tunnel-Vision Secondary-Parameter Staleness (
100%failure onN04): Both frontier and fast default agents verified OpenAI's new Responses API, then still hardcodedmodel="gpt-4.1"(scheduled for permanent shutdown in 6 weeks!) straight from stale parametric weights.
- Web-Search Index Lag (
- Why Agents Need
FRESHNESS-PROTOCOL: A ~900-token, zero-infrastructure protocol with zero hardcoded dates or versions flipped direct registry usage from0%→100%, cut web searches by19%, pushed frontier strict pass from66.7%→100%(6/6), let a smaller model with the skill (5/6 = 83.3%) beat a frontier model without it (4/6 = 66.7%), and kept0%(0/4) unnecessary searches on timeless CS fundamentals.
Benchmark Results
All ground truths verified live on 2026-12-03 against primary registries (pypi.org, registry.npmjs.org, endoflife.date, api.github.com, go.dev) and official vendor/regulatory docs (claude.com, openai.com, ai.google.dev, owasp.org, nist.gov, europa.eu, tbench.ai).
| Suite & Condition | Model | Volatile Strict Pass | Stale Rate | Tier-2 Direct Registry | S0 Timeless FP Search |
Key Failure Observed |
|---|---|---|---|---|---|---|
Closed-Book (0 tools, n=32) |
Neon XHigh / Hydrogen | 2/24 (both) |
91.7% |
0% |
0/8 (0%) |
~8.5-month cutoff lag across all 6 domains |
Cued Default ("latest/current", n=32) |
Neon XHigh / Hydrogen | 22/24 (both) |
8.3% |
4 cmd / 67–84 web |
0% / 12.5% |
Deprecated Gemini 4 Argon; model="gpt-5.5"; web-lag 3.6.1 |
Naturalistic Default (0 cues, N01–N08) |
Neon XHigh | 4/6 (66.7%) |
8.3% atomic |
0/6 (0%) |
0/2 (0%) |
Hardcoded model="gpt-4.1" (retiring); web-lag 3.6.x |
Naturalistic Default (0 cues, N01–N08) |
Hydrogen (Flash) |
3/6 (50.0%) |
12.5% atomic |
0/6 (0%) |
0/2 (0%) |
Hardcoded model="gpt-4.1"; web-lag 3.6.1; broken PG 18/19 mount |
FRESHNESS-PROTOCOL (same N01–N08) |
Neon XHigh | 6/6 (100%) |
0.0% atomic |
6/6 (100%) |
0/2 (0%) |
0 errors; caught PG 18/19 volume mount & Anthropic v2 HTTP 400 |
FRESHNESS-PROTOCOL (same N01–N08) |
Hydrogen (Flash) |
5/6 (83.3%) |
4.2% atomic |
6/6 (100%) |
0/2 (0%) |
Smaller model + skill beat frontier without skill (5/6 vs 4/6) |
Full methodology, 95% Wilson CIs, paired McNemar stats, latency analysis, and honest limits: benchmark/RESULTS.md.
Volatility × Severity Matrix
Not every fact deserves a live lookup. FRESHNESS-PROTOCOL decouples how fast truth decays (V0–V4) from production blast radius (S0 None → S4 Critical), using dynamic runtime dates (<TODAY>, <CURRENT_YEAR>) so the protocol itself never rots:
| Volatility \ Severity | S0 None | S1 Low | S2 Medium | S3 High | S4 Critical |
|---|---|---|---|---|---|
| V4 (Days–Weeks): Model IDs/retirements, pricing, active CVEs, leaderboards | Skip | Quick verify / qualify | Verify live | Must verify live | HARD STOP: Primary source |
| V3 (Weeks–Months): PyPI/npm/SDKs, LTS tags, CI actions, preprints | Skip | Batch if cheap | Verify live | Must verify live | HARD STOP: Primary source |
| V2 (Months–Quarters): OWASP Top 10, NIST PQC, regulatory timelines | Skip | Qualify | Verify if writing spec | Must verify live | HARD STOP: Primary source |
| V1 (Years): Language specs, long-term RFCs | Skip | Skip | Only if uncertain | If version-specific | Verify official spec |
| V0 (Immutable): Algorithms, math, RFC 9110, SQL order, CAP, classic formulas | NEVER search | NEVER search | NEVER search | Quote only | Quote only |
Full taxonomy & the 8 Implicit-Task Traps (triggering verification even when prompts never mention "latest" or "current"): skills/freshness-protocol/references/severity-volatility-matrix.md.
5-Tier Tool-Routing Ladder
- Tier 1 — Local Repo Truth: Inspect lockfiles (
package-lock.json,uv.lock,go.mod,Dockerfile) first when editing existing code. - **Tier 2 — Direct Programmatic Registries (preferred over web search for versions/EOL):** Batch into one command (
pypi.org/pypi/<pkg>/json,registry.npmjs.org/<pkg>/latest,endoflife.date/api/<product>.json,api.github.com/repos/<o>/<r>/releases/latest,api.osv.dev). - Tier 3 — Domain Tools & MCPs: Docs MCPs (
context7), arXiv, OpenAlex, PubMed, openFDA,gh. - Tier 4 — Live Web Search & Primary Vendor Docs: Anchor queries to runtime
<CURRENT_YEAR>, verify official changelogs/gazettes, and run a Full-Output Secondary Sweep across every embeddedmodel=, pin, and tag. - Tier 5 — Honest Degraded Mode (Offline /
--network none): Never bluff—tag unverifiedS2–S4itemsUNVERIFIED (offline — confirm before production).
Full routing recipes & cross-harness adapter table: skills/freshness-protocol/references/tool-routing-ladder.md.
How This Compares to Context7, llms.txt, and Web Search
| Approach | What It Solves | Where It Stops | How FRESHNESS-PROTOCOL Complements It |
|---|---|---|---|
| Built-in Web Search | Broad live web retrieval | Lags live registries (0/12 checked PyPI/npm); agents still hardcode stale secondary literals (gpt-4.1) |
Routes version/EOL lookups to Tier-2 direct JSON APIs and enforces a Full-Output Secondary Sweep |
Context7 / llms.txt / Docs MCPs |
Live, version-accurate library documentation | Requires MCP/vendor adoption; does not cover LLM retirements, LTS/Docker/K8s EOL, OWASP, regulations, or SOTA baselines—nor prevent agents from forgetting to query | Zero-infra decision & routing layer (~900 tokens) that automatically routes library doc lookups to Context7/MCPs at Tier 3 when installed |
Static AGENTS.md Version Pins |
Pins one existing repo's stack | Goes stale over time; does not help on greenfield projects, upgrades, or research | Dynamic <TODAY> anchoring with zero hardcoded dates or versions |
Install
Works with any LLM (Claude, GPT, Gemini, DeepSeek, Qwen, Llama) and any coding harness:
# Antigravity
agy plugin install https://github.com/nagisanzenin/freshness-protocol
# Claude Code
claude plugin marketplace add nagisanzenin/freshness-protocol
claude plugin install freshness-protocol@freshness-protocol
# Codex
codex plugin marketplace add nagisanzenin/freshness-protocol
codex plugin add freshness-protocol@freshness-protocol
# Gemini CLI
gemini extensions install https://github.com/nagisanzenin/freshness-protocol
All other agents & IDEs (Cursor, Windsurf, Cline, Copilot, Kiro, OpenCode, Amp, Goose, AGENTS.md)
| Platform | How to install |
|---|---|
| Cursor | Copy rules/cursor/freshness-protocol.mdc into .cursor/rules/ |
| Windsurf | Copy rules/windsurf/freshness-protocol.md into .windsurf/rules/ |
| Cline | Copy rules/cline/freshness-protocol.md into .clinerules/ |
| GitHub Copilot | Append rules/copilot/copilot-instructions.md to .github/copilot-instructions.md |
| Kiro | Copy rules/kiro/freshness-protocol.md into .kiro/steering/ |
| AGENTS.md agents (OpenCode, Amp, Goose, Jules) | Append rules/AGENTS.md |
| Manual Agent Skill | Copy skills/freshness-protocol/ into .agents/skills/freshness-protocol or ~/.agents/skills/freshness-protocol |
Reproduce
Zero external dependencies (Python 3 standard library only):
python3 benchmark/score_full.py # Recomputes Suite 1 & Suite 2 scores, Wilson 95% CIs, and McNemar p-value
python3 scripts/build_rules.py --check # Verifies all 7 platform rule files are in sync
Credits & License
Inspired by freshness-protocol.md in nagisanzenin/production-grade. MIT License — see LICENSE.
Explore related projects
Loading…