Skip to content
quarry View Ticket
Login

View Ticket

Parse-failure log reads like corruption for ordinary content

Closed463ac3bd43b630b7ad785541b431a4a5756471d5Created 106.2 days agoUpdated 68.0 days ago
Description2026-08-16 19:46:24
ingest logs 'treating as content: artifact: A card: want 2..3 tokens, got 4' for any file whose first line begins with 'A ' — for example tcl's 'A NOTE ON THE CHANGELOG:'. The behaviour is correct (quarry probes an artifact, fails, stores it as content) but the message reads as damage, and 32 of them appear on a clean tcl index.

It cost real debugging time on 2026-08-16: the same log carried 1,009 genuine failures (empty C cards) mixed in with this benign noise, and the two were indistinguishable at a glance.

Fix shape: only log a parse failure when the artifact plausibly IS structural — a card-shaped first line whose letter is in the alphabet AND whose framing gets past the Z card — or demote content-probe failures to a counter reported once per ingest round.

2026-09-12 15:56:54

Fixed and deployed. artifact.PlausiblyStructural gates the log on the Z card — every artifact zit writes carries the §4.1 self-checksum, prose that merely begins with a capital and a space does not — so a genuine failure still logs and a content probe is counted instead. The ingest summary now says '... , N stored as content', so the number survives without the wall of complaints. Reproduced the exact reported case first (tcl's 'A NOTE ON THE CHANGELOG:' -> 'artifact: A card: want 2..3 tokens, got 4') and confirmed it classifies as content. Landed in 196d7071b23b (quiet-probe).

2026-09-12 15:56:55

Fixed and deployed. artifact.PlausiblyStructural gates the log on the Z card — every artifact zit writes carries the §4.1 self-checksum, prose that merely begins with a capital and a space does not — so a genuine failure still logs and a content probe is counted instead. The ingest summary now says '... , N stored as content', so the number survives without the wall of complaints. Reproduced the exact reported case first (tcl's 'A NOTE ON THE CHANGELOG:' -> 'artifact: A card: want 2..3 tokens, got 4') and confirmed it classifies as content. Landed in 196d7071b23b (quiet-probe).