bib: cfrlink core — parse_cite / url / cite_of with round-trip law #639
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
src/bib/cfrlink.py:CfrCite(title, part, section, paras, date);parse_citeaccepting42 CFR 425.400(c)(1)(iv),42 C.F.R. § 425.400,42 CFR Part 425spellings (title REQUIRED — bare § raises);url()emitting the server-resolved short formhttps://www.ecfr.gov/current/title-{t}/section-{s}+ semantic#p-{s}(c)(1)(iv)fragment (verified: eCFR paragraph ids ARE the cite paths; short URLs 302 to canonical; fragments survive),/on/{date}/pinning;cite_of(url)inverting short/canonical/dated/fragmented URL forms.Round-trip law tested both ways: cite→URL→cite is the canonical spelling; URL→cite→URL reproduces the short form. Pure functions, no network, no store.
Spec: docs/superpowers/specs/2026-08-17-ecfr-jump-links-design.md.