Corpus parity check belongs in CI
TestAwkwardArtifactsSurviveIngest is the portable half: it feeds the shapes that bit us — empty C card, empty J value, empty T value, titled technote, forum post with no N card — through parse AND fold and asserts the row lands. Verified to catch the real bug by reverting the tokenizer fix, which fails all three empty-token cases.
TestCorpusParity is the ground-truth half, comparing a built index against fossil's event/ticket/forumpost/attachment tables. Opt-in via QUARRY_PARITY and QUARRY_PARITY_INDEX, since the corpora are hundreds of megabytes and fossil must be installed. Known differences are enumerated individually with reasons rather than tolerated as a range.
It earned its keep immediately: on its first run against libfossil it flagged 16 wiki pages against fossil's 17. The cause was a wiki-tag-propagation-test tag applied to the FIXMEs artifacts — a tag shaped like a page name, with no artifact carrying that L card. quarry was correct; the ground-truth query cannot tell the two apart, so it is recorded as a known delta.