Repository navigation
fix: correct snapshot comparison, Startpage block classification, and task status (M058) - #22
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
samefor container documents (src/fetch/snapshot/mod.rs,src/fetch/projection.rs)compare_responseonly consulteddocument.blocks. A CSV/DOCX/XLSX response carries its text indocument.partsand leavesblocksempty, so a refetch compared nothing and returnedsame. The comparator now selects the source in order: non-emptyblocks->project_document_text; else non-emptyparts-> newproject_parts_text; elseresponse.text. A projection cut returnssnapshot_content_limit_exceeded; a document carrying no text at all returnssnapshot_content_unavailableinstead 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")joinsSHAPE.blocked_markers, sofinalize_scrapereturnsBlockedrather thanParseFailed. The Anubis selectors moved into a separateCHALLENGE_MARKERSlist consumed only byis_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_messageonly at spawn or viaTaskContext::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.tomlbuilds["pdf","browser","documents"].Tests
snapshot_change8 pass, includingcontainer_document_changes_are_never_reported_as_same(CSV throughnew->same->changed) anda_metadata_only_container_document_never_stores_an_empty_baseline.engine_parse_conformance7 pass, includingstartpage_search_block_is_classified_blockedover a new fixture.mcp::tasks7 pass: completed and cancelled tasks assertstatus_message.is_none(), and a published phase message is visible while working.fetch::projection7 pass,meta::engines::startpage56 pass.make checkpassed 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
changedwithchars_added: 8and hunk+gadget\t5wheredocument.partsheld one element andblockswas absent; a 9-item deferredbatch_fetchsettledcompletedwith nostatusMessagekey.Fixture caveat
tests/fixtures/engines/startpage/blocked-search.htmlis a title-faithful synthetic reconstruction. The liveStartpage Blockedbody could not be captured — from the sweep egress Startpage serves an Anubis challenge instead — so only the observed title (Startpage Blocked, digesta04b95062ac56f00) is reproduced.tests/fixtures/engines/README.mdrecords this.Plan state
M058 is registered via this branch and stays
active; no closure record is written until this merges.