Repository navigation
feat(documents): ship container document extraction by default (M007, M008) - #21
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
Two milestones in one change set.
M007 — container-document extraction fidelity and bounds (corrective). Nine defects found by a post-closure audit of M004/M006 are fixed, each with a fixture that fails at the baseline:
Event::GeneralRefhandling; adjacent text and reference runs merge into one token<!DOCTYPE html>refused[,SYSTEMorPUBLIC; no entity resolutionr:idandidcollide<dimension>treated as contenttruncatedonRawPartdocument_unsupportedasupstream_failedcapability_unavailable; the other fourdocument_*codes are unchangedrenderer_versiongoes 5 → 6, with a case proving a version-5 derived entry is not served. No newFetchErrorKind, tool, argument, wire string or dependency.M008 — container-document default enablement (capability).
documentsjoins the default feature set, so the one published binary per target and the shipped wheel carry container extraction.[fetch].documents_enabledremains the operator switch and still refuses withdocument_disabled.Changes
Cargo.toml:default = ["pdf", "browser", "documents"];egressstays non-default.bindings/python/Cargo.tomlmirrors the feature list, andbindings/python/Cargo.lockwas regenerated by resolving against the committed lock rather thancargo generate-lockfile: 378 → 390 packages (addszip9.8.1,calamine0.38.0 and their closure) with no unrelated version changes.Makefile: newparity-checktarget running the documents suite with defaults disabled, wired intocheckso the feature-off half cannot become green by absence.tests/static_guards.rs: the default-set guard now requiresdocuments, still rejectsegress, and assertsdefault_documents_enabledstays feature-derived.No production source line changed to enable the feature:
config_validation(105 cases) andmcp_tools(32 cases) pass unmodified, which was the plan's canary.Evidence
make checkPython native qualification, run 46115248218--locked, installed and tested on five platforms across CPython 3.11–3.15source_revisioncd075fc,outcome: completeWheel cost is +2.20–2.73% per target and +0.34% on the sdist, consistent with the +2.34% measured on the host binary with only the feature set changed.
Per-target release assets
v0.4.4aarch64-apple-darwinaarch64-pc-windows-msvcaarch64-unknown-linux-gnuarmv7-unknown-linux-gnueabihfx86_64-apple-darwinx86_64-pc-windows-msvcx86_64-unknown-linux-gnuSize review — please read before merging
All seven assets exceed ADR-0024 §5's 20 MB review figure, where three did at
v0.4.4. This change set accounts for about +0.69 MB (+2.3%) of that; the remaining ~60% predates it. The attribution is measured, not assumed: adocuments-off build of this source is 29,370,512 B, within 1,760 B of the producer'sdocuments-on 29,368,752 B.The cause of the pre-existing growth is not identified and would need a bisect between
v0.4.4and this candidate. The maintainer decision of 2026-11-28 is to keep the default feature set and sendv0.4.5to size review with that written reason, rather than taking ADR-0027 alternative 1. If the review rejects the growth, alternative 1 — revert the default and keep the capability optional — remains the documented recovery.Closure records
plans/closure/web-acquisition-expansion/007-status.mdplans/closure/web-acquisition-expansion/008-status.md