Inspiration

Protocol code is full of comments like // see RFC 7230, section 3.3.2. An RFC is never edited after it is published. A later RFC obsoletes it or updates it instead. HTTP/1.1 has been rewritten twice since RFC 2616, and RFC 9846 replaced RFC 8446, the TLS 1.3 specification, in July 2026. A citation that was right when it was written starts sending a reader, a reviewer or a coding agent to the wrong text, and nothing in a developer's workflow says so. Coding agents make it worse, because they learned the old answer.

What it does

specrot answers one question for any RFC a codebase cites. Is this still the specification, and if not, what replaced it? It holds all 9,869 RFCs and the relationships the IETF records between them in one Relate graph file of 8 MB, which ships in the repository. Every verdict comes from the RFC Editor's records and the IETF Datatracker. An RFC counts as obsolete only when the RFC Editor published an OBSOLETES edge for it, and the graph shows the chain.

specrot check 8446 follows the OBSOLETES chains to the documents in force today. It says what kind of replacement each one is, such as a new edition, a newer protocol version, a split, or a document that covers only part of the old one. It maps a cited section to its section in the replacement, so RFC 7231 §6.5.1 resolves to RFC 9110 §15.5.1, and it lists live updates and verified errata.

specrot scan finds every RFC citation in a repository with its file and line. It writes a Markdown report for a pull request and can fail a CI job on obsolete citations. It runs as a GitHub Action, as a pre-commit hook, or with no clone at all through uvx --from git+https://github.com/shiran-yu/specrot specrot scan ., because the graph ships inside the package. A .specrot-ignore file accepts deliberate legacy citations, and --baseline lets a project add the gate today and fail only on new stale citations. specrot fix turns the unambiguous cases into a diff to review.

Coding agents get the same graph through an MCP server and a skill, so they check an RFC before they cite it. The agent can also write a scan of its own repository into a session copy of the graph and ask graph questions about its own code. A browser explorer rebuilds the graph in the tab with Relate WASM and needs no install. Code pasted into it is written into the tab's graph and walked to the RFCs in force.

The problem is common. In 26 codebases from 25 well-known open-source repositories, among them curl, CPython, Go, Node, OpenSSL, nginx, Netty and Django, 1,603 of 8,034 RFC citations point at an obsoleted RFC. That is one in five, and 24 of the 26 codebases have at least one. Relate's own repository at commit c3949f4 cites RFC 4122, replaced by RFC 9562 in 2024, in 6 places, among them the Cypher uuid() documentation and the UUIDv7 generator.

Agents need it too. We asked Claude Haiku 5.5 and Claude Sonnet 5.5 which RFC is current for 34 protocols, three times each, which gives 204 answers per arm. They named an obsolete RFC 28 times with no tools, 7 times with web search, 9 times with a placebo tool that returns only RFC titles, and never with specrot. We also asked where 40 cited sections are now, 240 answers per arm. specrot got all 240 right, a placebo that returns the RFC index's one-hop "obsoleted by" got 215, and no tools got 193. Most of that gap is TLS 1.3, whose section numbers changed in RFC 9846. Both answer keys come from specrot's own data, so these evaluations show that agents use the tool well. They do not show that the data is right. EVIDENCE.md in the repository gives the method and every caveat.

Maintainers already make these edits by hand. We replayed 17 merged pull requests in projects such as CPython, Django, aiohttp and urllib3, found by a fixed search. Their maintainers replaced 113 citations, 106 of them of an obsolete RFC. specrot fix proposes an edit for 50 of those 106 and picks the maintainers' RFC in 47 of the 50. Its rules were refined on these pull requests, so this result is in-sample, and two large pull requests, django#16257 and cpython#139435, account for 37 of the 47. On a held-out sample of 100 edits from the 26 codebases, two language models labelled 74 as mergeable as written. There are no human labels on that sample.

One specrot fix has been accepted upstream. A maintainer of hyper, the Rust HTTP library, approved and merged hyperium/hyper#4290 on 30 November 2026. Its 11 edited comment lines are exactly what specrot fix prints for that commit. This is one pull request, so it shows that a maintainer accepted a fix as written. It is not a merge rate. Pull requests to nginx and httpx await review, and relatedb/relate#994 offers the fix for Relate's own citations.

How we built it

The data comes from the RFC Editor's rfc-index.xml and errata API and from the IETF Datatracker's references API. Relate runs in single-file mode. The store, store/rfc.rl, is committed with the code and opened read-only by the Python package, the CLI and the MCP server, so there is no database to start.

The graph has RFC, Series, Erratum, WorkingGroup, Area, Section, Project and File nodes. They are joined by OBSOLETES with a kind, UPDATES, NORMATIVE_REF, INFORMATIVE_REF, INCLUDES for series members, AMENDS for errata, HAS_SECTION, CONTINUES_AS from a section to its successor, HAS_FILE and CITES. A table cannot answer these questions because every answer is a walk of unknown length across several kinds of node. One query finds every document RFC 9110 replaced, any number of hops back, and counts where the 26 projects still cite them. It returns 13 documents, 558 citations and 20 projects.

MATCH (:RFC {id:'RFC9110'})-[:OBSOLETES]->+(old:RFC) WITH DISTINCT old
MATCH (old)<-[c:CITES]-(:File)<-[:HAS_FILE]-(p:Project) WHERE size(c.readerLines) > 0
RETURN count(DISTINCT old) AS replaced, count(DISTINCT p) AS projects, sum(size(c.readerLines)) AS citations

Another query follows RFC 2616 §14.20, the Expect header, through two rewrites to RFC 7231 §5.1.1 and then RFC 9110 §10.1.1. Both run in the explorer's Cypher tab. specrot uses Cypher 25 quantified path patterns, EXISTS and COUNT subqueries, constraints and indexes, a full-text index with SEARCH, the relate CLI to compact the store, and @relate/relate-wasm for the browser explorer.

Challenges we ran into

Not every obsoleted RFC should be replaced in code. TLS 1.3 obsoletes RFC 5246, but code that implements TLS 1.2 should still cite RFC 5246. Each OBSOLETES edge therefore carries a kind, and citations of an older protocol version are reported apart from stale ones. References to a series such as BCP 14 hide the real RFCs, so they are expanded to their members. Some replacements cover only part of the old document. RFC 1738 on URLs was obsoleted by the telnet and gopher URI schemes, while URL syntax went to RFC 3986, which only updates it. Such edges are marked partial, and specrot fix leaves them to a person.

Relate has no way to cancel a running query. The MCP server therefore runs Cypher written by an agent in a child process that is stopped after 20 seconds, and the explorer restarts its worker after a runaway query. The Datatracker API silently dropped about a third of the rows when it was paged without an explicit order. Every headline number is computed into facts.json, and a test checks the README against it.

Accomplishments that we're proud of

A fresh clone answers in one command, in about ten seconds on the first run while dependencies install and in about a second after that. The browser version needs no install. The study found that one RFC citation in five in major open-source projects points at a replaced specification. A maintainer of hyper merged a specrot fix as it was written. In our 34-protocol test, agents with the MCP server attached stopped citing obsolete RFCs.

What we learned

In this project the relationships are the product. Knowing that an RFC is obsolete helps little until the graph says what replaced it, what kind of replacement it is, where the cited section went and who still depends on the old text.

What's next for specrot

Section mapping by content as well as by heading, because RFC 7230 §3.2 "Header Fields" became RFC 9110 §5 "Fields". A reviewed kind for every OBSOLETES edge, beyond the 76 pairs checked so far. A store that refreshes itself as new RFCs are published. More pull requests to the projects with the clearest stale citations.

Built With

  • cypher
  • cytoscape.js
  • github-actions
  • mcp
  • python
  • relate
  • relate-wasm
  • uv
Share this project:

Updates

Submission history