Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- `knowledge_brief` treats a present-but-null `cutoff`, `knowledge_cutoff`, or `cutoff_date` as an omitted field instead of rejecting it as a near-miss, so a serializer that emits an unset optional member as JSON null no longer fails the call. Every non-null near-miss value is still rejected with the same repair hint.
- Browser interception applies the reserved-hostname classifier before DNS, so `.invalid`, `.test`, and `.localhost` names fail closed in the render path too. Trailing-dot fully-qualified names classify exactly like their canonical spelling in both the fetch validator and the browser path, and both paths share one classifier rather than separate suffix lists.
- A blocked redirect preserves the validator's reason verbatim under `redirect_target_blocked`, so a reserved or private target no longer reports as `private network: …`; the embedded-credentials arm keeps its `credentials: ` prefix.
- `snapshot.compare` reports real changes for a container document. Container documents (CSV/TSV, DOCX, XLSX, PPTX, EPUB) carry their text in `parts` and leave `blocks` empty, so the comparison projected an empty string, hashed the empty string, and returned `same` with `chars_added: 0` and no hunks for every document, including one whose bytes had changed. The projection now uses the part texts joined with a blank line when `blocks` is empty, keeps the blocks path for HTML, PDF, and markdown, and reports `snapshot_content_unavailable` rather than storing an empty baseline when a document has no comparable text. A stored empty baseline is not migrated: the next fetch of that URL stores real text and reports `changed` once.
- Startpage's block page reports `blocked` instead of a structural `parse_error`. A `Startpage Blocked` page matched no declared marker, so it was classified as a drifted result container and reported as a parser defect; it is now a declared block marker. The Anubis selectors are the only markers that start a challenge solve, so a generic block page never enters the solver.
- A completed or cancelled deferred task no longer reports `statusMessage: "working"`. The message was seeded at spawn and never rewritten, so a task that had reached a terminal state still advertised a working state. No message is seeded now; a task reports only a phase message that its operation publishes.

### Added

Expand Down
14 changes: 10 additions & 4 deletions architecture/fetch.md
Original file line number Diff line number Diff line change
Expand Up @@ -1130,10 +1130,16 @@ cache scope (anonymous or opaque profile ID), normalized URL, extraction mode,
selector-scoping fingerprint, representation class, and optional caller key;
one caller label never crosses URLs or profiles.

The snapshot source is Tier-1-sanitized `FetchDocument.blocks`, projected with
`project_document_text` under the raw text cap. Truncated documents, blocks, or
projections are refused with `snapshot_content_limit_exceeded`; `response.text`
is used only when no document exists. The path deliberately avoids `raw_text`,
The snapshot source is Tier-1-sanitized document content: `FetchDocument.blocks`
projected with `project_document_text` under the raw text cap, or — for a container
document, which populates `parts` and leaves `blocks` empty — the part texts joined
with a blank line by `project_parts_text`. A container document that projected an
empty block list stored an empty baseline and compared as `same` for every change,
so the parts path is required. Truncated documents, blocks, or projections are
refused with `snapshot_content_limit_exceeded`; `response.text` is used only when a
document carries neither blocks nor parts, and a document with no comparable text
reports `snapshot_content_unavailable` instead of storing an empty baseline. The path
deliberately avoids `raw_text`,
which is derived from decoded transport bytes and may contain HTML. Browser
rendered responses are excluded. HTTP 404/410 is observed before ordinary
fetch-error conversion and reports `removed` without deleting the prior entry.
Expand Down
11 changes: 6 additions & 5 deletions docs/features.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,12 @@ cargo build --no-default-features --features pdf
```

The Python extension builds with `default-features = false` and
`features = ["pdf", "browser"]`. Every Python wheel target uses this one
feature set; there is no browser/no-browser wheel variant, and `egress` is not
compiled. A wheel built from current source includes both PDF extraction and
browser rendering. The published `eggsearch==0.4.4` wheel remains PDF-only. See
the [Python library guide](python-library.md).
`features = ["pdf", "browser", "documents"]`. Every Python wheel target uses
this one feature set; there is no browser/no-browser wheel variant, and `egress`
is not compiled. A wheel built from current source includes PDF extraction,
browser rendering, and container-document extraction. The published
`eggsearch==0.4.4` wheel remains PDF-only. See the
[Python library guide](python-library.md).

### Capabilities

Expand Down
11 changes: 6 additions & 5 deletions docs/release.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,12 @@ PyPI's long description is embedded from `bindings/python/PYTHON_README.md`,
which mirrors the root `README.md`. Updating that source changes the description
on the next version upload; an existing PyPI release cannot be overwritten.

The wheel is deliberately narrower than the binary assets:
`bindings/python/Cargo.toml` sets `default-features = false, features = ["pdf"]`,
so the Python distribution carries PDF extraction but not browser rendering.
Python users who need rendering need the Rust binary or a source build that
enables the feature; this asymmetry changes no binary asset name or count.
The wheel compiles the same feature set as the binary assets:
`bindings/python/Cargo.toml` sets `default-features = false` and
`features = ["pdf", "browser", "documents"]`, so the Python distribution carries
PDF extraction, browser rendering, and container-document extraction. `egress`
is compiled into neither the released binaries nor the wheel. This parity
changes no binary asset name or count.

Public install instructions are in `README.md` and `docs/python-library.md`.
The published aarch64 wheel has passed native smoke and benchmarking; results
Expand Down
14 changes: 9 additions & 5 deletions docs/test-inventory.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,12 @@ Inventory of all hardening and regression test suites.

| Feature Combo | Tests | Ignored |
|--------------|-------|---------|
| `--all-features` | 6711 | 30 |
| `--features mock` | 6647 | 6 |
| `--all-features` | 6733 | 25 |
| `--features mock` | 6681 | 2 |

Counts measured with `cargo test --locked <features> -- --list` and
`-- --list --ignored` on 2026-11-30. They are a snapshot of the candidate, not a
stable claim; re-measure at each closure rather than deriving them from a diff.

Ignored tests are live-network smoke tests (`corpus_runner`, `mcp_http` via `live-mcp-smoke` or `live-release-smoke`, `browser_live_smoke`, `native_forge_smoke`, `retrieval_quality`), the PDF fidelity recorder (`pdf_fidelity`), plus the opt-in live-model comparison (`tool_surface_live`) — they run only via explicit opt-in targets. `make live-release-smoke` builds the same `mcp_http` smoke with `--release`; challenge-solver and proof-of-work timings are only meaningful there.

Expand All @@ -17,10 +21,10 @@ Ignored tests are live-network smoke tests (`corpus_runner`, `mcp_http` via `liv
|-------|-------------|-------|
| `mcp_tools` | `mock` (mostly) | Tool registration, input validation for all 10 tools, including the tagged fetch web/repo item schema, response shape, legacy-name rejection; opt-in screenshot PNG bounds, browser capability/conflict errors, image-out-of-JSON/cache behavior, and ordered batch image association |
| `web_search_integration` | `mock` (mostly) | Web search validation, sanitization, intent reranking, excerpt bounds, explicit-provider unbuildable-id rejection, derived-intent reporting and applied reranking, search-result cache hit/miss/coalesce equivalence and partial-fan-out bypass, blocked-provider classification |
| `engine_parse_conformance` | `mock` | Captured-fixture conformance for the five HTML scrapers: parsed rows, explicit empty state, block classification, and a seeded-drift negative control that requires `parse_error` plus a stable, bounded title/body fingerprint |
| `engine_parse_conformance` | `mock` | Captured-fixture conformance for the five HTML scrapers: parsed rows, explicit empty state, block classification (including the two distinct Startpage block pages), and a seeded-drift negative control that requires `parse_error` plus a stable, bounded title/body fingerprint |
| `engine_api_conformance` | none | Table-driven conformance for the nine forge engines: 401/403/500 mapping, malformed-JSON `ParseFailed`, zero-result no-request, per-page limit, documented auth header, skipped invalid URLs, and one conversion case per engine |
| `web_fetch_integration` | `mock` (mostly) | Fetch extraction, truncation, metadata-only mode, safety bounds, anti-bot challenge marking (`fetch_challenge_page` + `manual_interaction_required`), Anubis and ALTCHA solve-and-replay under `[search.challenge]`, fetch-side pass-cookie reuse, lifetime expiry, malformed-lifetime refusal, rejection eviction, in-call recovery from a refused pair set, and cross-origin isolation; plus auto-mode ordering (the solver owns a solvable wall and Chrome is never launched), unresolved-wall marking, interactive challenges staying manual, the deadline leaving no render time, the `browser_completions` counter, and the browser-gated status seam (a `429` and a `500` each escalate once, `402`/`403`/`404` never render, `http_only` never renders, a missing browser keeps the `http_status` error and names the unavailable escalation, a render that ends on `5xx` without a completed wall keeps the original error, and a served origin is not charged to the circuit breaker) |
| `snapshot_change` | `mock` | Deterministic `new` → `same` → `changed` comparison of sanitized extracted text, SQLite privacy inspection, brief projection, and disabled-store warning/no-file behavior |
| `snapshot_change` | `mock` | Deterministic `new` → `same` → `changed` comparison of sanitized extracted text, including a container document whose text lives in `parts` rather than `blocks`, SQLite privacy inspection, brief projection, and disabled-store warning/no-file behavior |
| `documents` | `documents` (feature-off cases run without it) | Bounded container-document extraction for CSV/TSV, EPUB, DOCX, XLSX, and PPTX: format detection by content type, extension, and container introspection; deterministic part order and one-based part addressing; spreadsheet dates and locale-independent numbers; the `document_empty`/`document_malformed`/`document_unsupported`/`document_encrypted` outcomes; archive-entry, decompression, inflation-ratio, part, character, XML-depth, and cell bounds; feature-off parity for CSV and every container format; 11 cases with the feature and 3 without, including a DOCX with XML character references, an EPUB with a plain doctype, and delimiter-dense CSV refused at the cell bound |
| `site_map` | `mock` | Bounded same-origin URL discovery as a `fetch` item: robots `Sitemap:` reading, declared and fallback sitemaps, one index level, duplicate collapse, query normalisation, malformed XML, gzip refusal, cross-origin refusal including a cross-origin redirect, URL/XML-depth truncation, deterministic ordering, and zero fetch of discovered URLs |
| `provider_routing` | `mock` (mostly) | Provider routing, code-host rewrites, diagnostics, capability-skip telemetry, keyless source-provider routing/disabled-skip behavior, credentialed-provider opt-in/configured status reporting, explicit-provider rejection classification matrix (unknown/disabled/missing-credential/not-built), CodeGG parity qualification journeys |
Expand Down Expand Up @@ -109,7 +113,7 @@ Every case is generated synthetically by this repository; no third-party documen
| `egress_routing` | None (proxy composition under `egress`) | 35 | Egress config validation (incl. IPv6 literals), credential redaction, custom-dialer SSRF gate, deterministic HTTP/SOCKS/multi-hop composition, pool reuse, handshake cancellation/deadline, HTTPS TLS/SNI through CONNECT, gzip/Brotli decode with decoded-body limits, authenticated HTTP/SOCKS with credential non-forwarding, malformed-proxy fail-closed, routed redirects |
| `proxy_route_feasibility` | None (Eggress comparison under `egress`) | 11 (+1 with `egress`) | Loopback-only dynamic-proxy characterization: CONNECT authority and pinned-IP/Host/SNI behavior, HTTP forward and pin rejection, SOCKS5/SOCKS5H, authentication, proxy TLS, malformed route, timeout, pinned redirect, `NO_PROXY`, loopback refusal, handler-level pinned CONNECT and SOCKS5 targeting, proxy `407` mapping, redirect route-change refusal, and optional Eggress custom-dialer comparison |
| `fetch_proxy_route` | `mock` | 7 | `[fetch.proxy]` handler contract: `no_proxy` reporting for single and batch items, direct route metadata omission, `proxy_required` plaintext refusal before any direct request, unreachable-endpoint fail-closed, missing credentials before target lookup, `cache_only` under a proxy route, and redacted `provider_status` without environment names |
| `snapshot_change` | `mock` | 6 | Persistent deterministic comparison across `new`/`same`/`changed`/`removed`, sanitized storage and privacy, brief-projection retention, disabled and corrupt-store degradation, caller-key validation, and the no-store default |
| `snapshot_change` | `mock` | 8 | Persistent deterministic comparison across `new`/`same`/`changed`/`removed`, a container document's parts-backed text compared across a changed row, a metadata-only container document that refuses to store an empty baseline, sanitized storage and privacy, brief-projection retention, disabled and corrupt-store degradation, caller-key validation, and the no-store default |
| `documents` | `documents` (feature-off cases run without it) | 3 without the feature; 11 with it | Container-document extraction and outcome contract for CSV/TSV, EPUB, DOCX, XLSX, and PPTX, deterministic part order across repeated runs, the `documents_enabled` switch, the capability triad, and feature-off parity for CSV and container formats |

## Forge Adapter Tests (`tests/forge_adapter.rs`)
Expand Down
Loading
Loading