Skip to content

fix(citations): pin Wayback captures instead of prefix timestamps - #497

Open
mjmirza wants to merge 2 commits into
mainfrom
fix/wayback-capture-ids
Open

mjmirza wants to merge 2 commits into
mainfrom
fix/wayback-capture-ids

Conversation

@mjmirza

@mjmirza mjmirza commented Nov 20, 2026 •

Copy link
Copy Markdown
Owner

What this changes

A Wayback replay URL of the form /web/2/ is a prefix search. The archive answers HTTP 200 and redirects to whichever capture is currently closest, and a cached 200 then keeps later probes from looking at that URL again.

The Acyclic Dependencies Principle entry cited that form for the "morning after syndrome" article. It now cites the 2022-11-01 capture (20221101064556). The saved page says a change left one day is gone the next morning because someone else overwrote it, and names a cyclic dependency graph as the cause. The entry had paraphrased that page as a change that no longer compiles. That is not what the saved page says.

The Separation of Concerns entry cited /web/2/ for the Netflix Technology Blog architecture tag. Every capture of that URL in the Wayback CDX index is a 307 redirect, and the replay page contains no architecture text. The sentence already cites Sam Newman, Building Microservices, 2nd edition, chapter 1, for that production use. The tag-page clause is removed.

tools/check-links.py now rejects a web.archive.org/web/ replay URL whose capture id is not 14 digits (YYYYMMDDhhmmss), including an impossible calendar time. CI already runs that gate on every pull request. docs/CITATION-POLICY.md states the rule. An archive.org/details/ catalogue record is not a replay URL. tools/validate-refs.py is unchanged.

Verification

  • python3 tools/check-structure.py
890/890 entries pass the structural gate
  • python3 tools/check-prose.py
935/935 files pass the prose gate
  • python3 tools/check-links.py
890/890 entries pass identity and relationship checks
939/939 files pass internal links
939/939 files pin every Wayback capture
  • python3 tools/check-links-test.py
Ran 9 tests in 0.008s
OK
  • python3 tools/validate-refs.py --strict --timeout 25
4994 distinct citations, 46 to probe
every citation resolves
  • npx --yes markdownlint-cli2@0.23.2
Summary: 0 issues in 0 files
  • python3 tools/check-code.py --strict on the two edited entries compiled with no failures. CI's full compile job on the first commit also passed.

  • tools/gen-indexes.py and tools/gen-catalogue-status.py were re-run. The family index word counts and the reference-count badge are committed.

The citation probe also recorded http://callbackhell.com/ as 202, where the cache had 520. That host is on the existing unreachable-host list, so the status change does not affect the gate.

For a new or corrected entry

  • All eighteen dimensions from docs/ENTRY-TEMPLATE.md are present.
  • The corrected morning-after claim traces to the pinned capture, which resolves.
  • No invented statistics, production-use claims, or vendor names.
  • The morning-after paraphrase now follows the cited page, and the page is named as a secondary article.

Notes for reviewers

The Newman chapter 1 citation for the Netflix production use was already in the entry. This change removes the tag URL. It does not re-check the book.

The capture-id rule is in tools/check-links.py rather than tools/validate-refs.py. The citation prober is on the list of paths that need a maintainer security-reviewed label, and this change does not alter it.

Open in Web Open in Cursor 

A replay URL of the form /web/2/ answers HTTP 200 and redirects to
whichever capture is currently closest. The citation cache then stores
200, so later checks never look again. The morning-after citation now
names the 2022-11-01 capture whose saved page states the phrase and a
cyclic dependency graph as the cause. The separation-of-concerns link
to the Netflix architecture tag resolved only to a 307 redirect shell,
so that sentence now rests on the Newman citation already named as its
source. validate-refs rejects a replay URL whose capture id is not 14
digits, even when the cache says 200.

Co-authored-by: Mirza Iqbal <support@mirzaiqbal.com>
The capture-id rule runs in tools/check-links.py, which CI already
executes on every pull request. A replay URL whose id is not 14 digits
still fails. The citation prober is left as it was.

Co-authored-by: Mirza Iqbal <support@mirzaiqbal.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant