Skip to content
quarry View Ticket
Login

View Ticket

Deleted wiki pages still appear in the wiki list

Fixed7a649ff845e2169bb12f0f168744a71d1ae79137Created 104.8 days agoUpdated 67.9 days ago
Description2026-08-18 02:52:18
Fossil deletes a wiki page by writing a wiki artifact with an EMPTY body. quarry folds that as an ordinary edit, so the page stays in the wiki list forever, showing blank content.

## Observed

libfossil, comparing quarry's list against `fossil wiki list -R libfossil.fossil`:

fossil: 12 pages quarry: 16 pages

The four extra are pages fossil considers deleted, and each one's newest edit has a zero-length body:

scratchpad 14 edits last body 0 bytes test-page 3 edits last body 0 bytes th1ish 9 edits last body 0 bytes branch/rebuild-2025

## Expected

A page whose newest edit has an empty body is deleted and should not appear in the wiki list. Its HISTORY must remain readable — the edits are real artifacts and a deleted page is still part of the record — so this is a listing rule, not a fold that discards rows.

The likely shape: `WikiPages()` filters to titles whose newest edit has a non-empty body, and the page itself renders a "this page was deleted" state with its history intact, the way a deleted ticket or a shunned artifact would.

## Why it was not noticed

The parity harness counts wiki pages from fossil's `tag` table (`tagname LIKE 'wiki-%'`), which lists every page that has ever existed — the same over-count quarry produces — so the two agreed for the wrong reason. Only `fossil wiki list`, which asks for LIVE pages, shows the difference.

Worth fixing in the parity check at the same time: a comparison that agrees because both sides are wrong the same way is worse than no comparison, because it is evidence of correctness that is not.

## Scope

Small and self-contained. The same question applies to technotes, which fossil also deletes by emptying; worth checking while in there.

2026-08-19 13:32:45

Fixed for the deletion rule; one of the four named pages turned out to be a different rule entirely.

The fix: a page whose NEWEST edit has an empty body — fossil's deletion — leaves the wiki list and the nav count (which now share one rule, so the count cannot include what the list hides). Deleted then re-created is live again: the newest edit decides. The page itself renders a tombstone — "This page was deleted by " — with history one click away and every revision still readable, including the empty one. Verified live on libfossil: scratchpad, test-page and th1ish are gone from the list, th1ish shows the tombstone, its history serves.

The fourth page was not deleted. branch/rebuild-2025's newest edit carries 528 bytes of live content; fossil hides it because pages named branch/, tag/ and checkin/* are ASSOCIATED pages — notes attached to those objects — which fossil wiki list excludes from the regular list. quarry keeps it listed deliberately: we render branch notes nowhere else yet, and hiding live content with no other door is worse than a one-page count delta against fossil (13 vs 12). When branch pages learn to show their notes, the list can adopt fossil's exclusion in the same change.

The parity check stays a census on purpose (every page ever, deleted included — it measures ingest completeness, not the listing rule) and now says so in place, so the two cannot be conflated again.