Skip to content

fix: correct snapshot comparison, Startpage block classification, and task status (M058) - #22

Merged
dbowm91 merged 3 commits into
mainfrom
fix/m058-live-sweep-defect-correctives
Nov 30, 2026
Merged

dbowm91 merged 3 commits into
mainfrom
fix/m058-live-sweep-defect-correctives

Conversation

@dbowm91

@dbowm91 dbowm91 commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

Summary

Patches the three defects found in the 2026-11-30 live sweep of v0.4.5, plus two stale wheel-feature-list corrections.

1. Snapshot comparison reported same for container documents (src/fetch/snapshot/mod.rs, src/fetch/projection.rs)

compare_response only consulted document.blocks. A CSV/DOCX/XLSX response carries its text in document.parts and leaves blocks empty, so a refetch compared nothing and returned same. The comparator now selects the source in order: non-empty blocks -> project_document_text; else non-empty parts -> new project_parts_text; else response.text. A projection cut returns snapshot_content_limit_exceeded; a document carrying no text at all returns snapshot_content_unavailable instead of storing an empty baseline.

2. Startpage's blocked page was classified as a parse failure (src/meta/engines/startpage.rs)

PageMarker::Text("Startpage Blocked") joins SHAPE.blocked_markers, so finalize_scrape returns Blocked rather than ParseFailed. The Anubis selectors moved into a separate CHALLENGE_MARKERS list consumed only by is_challenge_page, so a generic block page cannot start a solver run.

3. Completed deferred tasks kept statusMessage: "working" (src/mcp/tasks.rs, src/mcp/server.rs)

rmcp assigns status_message only at spawn or via TaskContext::set_status_message, never on a terminal transition. options()/spawn() no longer seed one, so the field is absent on completion; an operation that wants a phase message publishes it explicitly.

4. Wheel feature lists (docs/features.md, docs/release.md)

Both described the wheel as building ["pdf","browser"] and ["pdf"]; bindings/python/Cargo.toml builds ["pdf","browser","documents"].

Tests

  • snapshot_change 8 pass, including container_document_changes_are_never_reported_as_same (CSV through new -> same -> changed) and a_metadata_only_container_document_never_stores_an_empty_baseline.
  • engine_parse_conformance 7 pass, including startpage_search_block_is_classified_blocked over a new fixture.
  • mcp::tasks 7 pass: completed and cancelled tasks assert status_message.is_none(), and a published phase message is visible while working.
  • fetch::projection 7 pass, meta::engines::startpage 56 pass.
  • make check passed on this exact tree content: fmt, clippy, no-default check, documents feature-off parity, all-features tests, hygiene, dependency policy, packaging check, egress qualification contract.

Live re-probe against the rebuilt binary: a real CSV snapshot returned changed with chars_added: 8 and hunk +gadget\t5 where document.parts held one element and blocks was absent; a 9-item deferred batch_fetch settled completed with no statusMessage key.

Fixture caveat

tests/fixtures/engines/startpage/blocked-search.html is a title-faithful synthetic reconstruction. The live Startpage Blocked body could not be captured — from the sweep egress Startpage serves an Anubis challenge instead — so only the observed title (Startpage Blocked, digest a04b95062ac56f00) is reproduced. tests/fixtures/engines/README.md records this.

Plan state

M058 is registered via this branch and stays active; no closure record is written until this merges.

@dbowm91
dbowm91 merged commit 4c95607 into main Nov 30, 2026
46 checks passed
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