CY2027 PFS NPRM notebook: most FR/CFR citations bypass the bib.frlink/cfrlink jump-link system #642

Closed
opened 2026-08-18 13:59:34 +00:00 by kert · 0 comments
Owner

Bug. notebooks/cy2027_pfs_proposed_rule.py defines the fr_md() / cfr_md() wrappers (P40 #638, P41 #641) but only uses them in 4 places. The rest of the notebook renders Federal Register citations as plain text, so readers get no jump link into the source documents even though every one of these cites resolves against the backfilled anchor maps in bib.sqlite (verified via stack bib fr-jump --md):

  • Intro cell: 91 FR 43842 (CMS-1848-P) plain text
  • Section 1 CF-walk sources: 90 FR 49266 (CY2026 Final) plain text
  • BN-decomposition narrative + sources: 91 FR 44242 plain text (3 occurrences)
  • Section 2 sources: proposed_for(2027).federal_register_citation / RULES[2026].federal_register_citation interpolated bare (3 cells)
  • Cross-NPRM cell: 90 FR 32352, 91 FR 43842 plain text
  • Section 3 GPCI sources: registry citation interpolated bare
  • Section 5: 42 CFR 414.1430(a) plain text (should be cfr_md), QPP[2027].proposed.federal_register_citation bare
  • Section 6 provenance/comment-period callout: registry citation bare, 90 FR 49266 plain text

Fix: route every simple NN FR NNNNN citation through fr_md() and the bare CFR cite through cfr_md(). Compound qpp citations (e.g. "91 FR 44260, 44285-44286") stay plain text — the resolver grammar takes one locator, and the graceful-degradation wrapper would just echo them anyway.

**Bug.** `notebooks/cy2027_pfs_proposed_rule.py` defines the `fr_md()` / `cfr_md()` wrappers (P40 #638, P41 #641) but only uses them in 4 places. The rest of the notebook renders Federal Register citations as plain text, so readers get no jump link into the source documents even though every one of these cites resolves against the backfilled anchor maps in bib.sqlite (verified via `stack bib fr-jump --md`): - Intro cell: `91 FR 43842` (CMS-1848-P) plain text - Section 1 CF-walk sources: `90 FR 49266` (CY2026 Final) plain text - BN-decomposition narrative + sources: `91 FR 44242` plain text (3 occurrences) - Section 2 sources: `proposed_for(2027).federal_register_citation` / `RULES[2026].federal_register_citation` interpolated bare (3 cells) - Cross-NPRM cell: `90 FR 32352`, `91 FR 43842` plain text - Section 3 GPCI sources: registry citation interpolated bare - Section 5: `42 CFR 414.1430(a)` plain text (should be `cfr_md`), `QPP[2027].proposed.federal_register_citation` bare - Section 6 provenance/comment-period callout: registry citation bare, `90 FR 49266` plain text **Fix:** route every simple `NN FR NNNNN` citation through `fr_md()` and the bare CFR cite through `cfr_md()`. Compound qpp citations (e.g. `"91 FR 44260, 44285-44286"`) stay plain text — the resolver grammar takes one locator, and the graceful-degradation wrapper would just echo them anyway.
kert added the bibnotebooks labels 2026-08-18 13:59:34 +00:00
kert closed this issue 2026-08-18 14:08:37 +00:00
Sign in to join this conversation.