diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index f1016c60..d4885f97 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -40,6 +40,22 @@ jobs:
BRAVE_API_KEY: ""
SEMANTIC_SCHOLAR_API_KEY: ""
NVD_API_KEY: ""
+ browser-absence:
+ name: browser absent degradation contract
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
+ - uses: dtolnay/rust-toolchain@6bed0761d98439e5a578e2877258200ad565ba87 # stable snapshot 2026-09-28
+ with:
+ toolchain: "1.89"
+ - name: Run deterministic missing-browser library tests
+ run: cargo test --locked --features mock --lib browser_absent
+ - name: Run deterministic missing-browser CLI tests
+ run: cargo test --locked --features mock --bin eggsearch browser_absent
+ - name: Run feature-absent CLI error test
+ run: cargo test --locked --no-default-features --bin eggsearch browser_not_compiled_cli_request_has_stable_code
+ - name: Run browser launch-failure contract test
+ run: cargo test --locked --features mock --lib browser_launch_failure_is_named_and_does_not_repeat_http
windows-portability:
name: windows portability (x86_64-pc-windows-msvc all-features check)
runs-on: windows-latest
diff --git a/.github/workflows/python-native-qualification.yml b/.github/workflows/python-native-qualification.yml
index 43dee791..bf57a780 100644
--- a/.github/workflows/python-native-qualification.yml
+++ b/.github/workflows/python-native-qualification.yml
@@ -68,6 +68,21 @@ jobs:
python -m pip install packaging==26.0
python -m pip install --no-index --no-deps --only-binary=:all: dist/*.whl
python -c "from importlib.metadata import distribution; from packaging.utils import parse_wheel_filename; from pathlib import Path; d=distribution('eggsearch'); wheels=list(Path('dist').glob('*.whl')); assert len(wheels) == 1; name, version, build, tags=parse_wheel_filename(wheels[0].name); assert name == 'eggsearch' and str(version) == d.version; assert all(tag.abi == 'abi3' and tag.interpreter == 'cp311' for tag in tags); print(d.metadata['Name'], d.version, d.metadata['Requires-Python']); print(*d.files, sep='\\n')" > dist/metadata.txt
+ python - <<'PY'
+ import os
+ from pathlib import Path
+ wheels = list(Path("dist").glob("*.whl"))
+ if len(wheels) != 1:
+ raise SystemExit(f"expected one wheel, found {len(wheels)}")
+ wheel = wheels[0]
+ size = wheel.stat().st_size
+ line = f"- {wheel.name}: {size} bytes ({size / 1_000_000:.2f} MB)"
+ print(line)
+ with open(os.environ["GITHUB_STEP_SUMMARY"], "a", encoding="utf-8") as summary:
+ summary.write(line + "\n")
+ if size > 20_000_000:
+ raise SystemExit(f"{wheel.name} exceeds 20 MB; maintainer review required")
+ PY
sha256sum dist/*.whl | tee dist/SHA256SUMS
cat dist/SHA256SUMS >> "$GITHUB_STEP_SUMMARY"
- id: upload
@@ -140,11 +155,137 @@ jobs:
shell: bash
working-directory: ${{ runner.temp }}
+ browser-with-chrome:
+ name: Verify browser rendering with Chrome
+ needs: build-wheel
+ runs-on: ubuntu-24.04
+ steps:
+ - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
+ - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065
+ with:
+ python-version: "3.11"
+ - uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093
+ with:
+ name: wheel-linux-x86_64
+ path: ${{ runner.temp }}/wheelhouse
+ - uses: dtolnay/rust-toolchain@6bed0761d98439e5a578e2877258200ad565ba87
+ with:
+ toolchain: 1.89.0
+ - name: Install the release wheel in a clean environment
+ run: |
+ python -m venv "$RUNNER_TEMP/.venv"
+ "$RUNNER_TEMP/.venv/bin/python" -m pip install --no-index --no-deps --only-binary=:all: "$RUNNER_TEMP"/wheelhouse/*.whl
+ "$RUNNER_TEMP/.venv/bin/python" -m pip install pytest==8.4.2
+ shell: bash
+ - name: Assert Chrome discovery in the release wheel
+ env:
+ EGGSEARCH_TEST_BROWSER_WITH_CHROME: "1"
+ run: >-
+ "$RUNNER_TEMP/.venv/bin/python" -m pytest -q -s
+ "$GITHUB_WORKSPACE/bindings/python/tests/test_native.py" -k
+ browser_capability_with_chrome
+ shell: bash
+ working-directory: ${{ runner.temp }}
+ - name: Build and install a mock-only deterministic fixture wheel
+ run: |
+ python -m pip install maturin==1.15.0
+ maturin build --manifest-path bindings/python/Cargo.toml --release --locked --features eggsearch/mock --out "$RUNNER_TEMP/fixture-wheelhouse" -i python3.11
+ python -m venv "$RUNNER_TEMP/fixture-venv"
+ "$RUNNER_TEMP/fixture-venv/bin/python" -m pip install --no-index --no-deps --only-binary=:all: "$RUNNER_TEMP"/fixture-wheelhouse/*.whl
+ "$RUNNER_TEMP/fixture-venv/bin/python" -m pip install pytest==8.4.2
+ shell: bash
+ - name: Assert real Chrome renders the deterministic fixture and lifecycle bounds
+ env:
+ EGGSEARCH_TEST_BROWSER_WITH_CHROME: "1"
+ run: >-
+ "$RUNNER_TEMP/fixture-venv/bin/python" -m pytest -q -s
+ "$GITHUB_WORKSPACE/bindings/python/tests/test_native.py" -k
+ "browser_render_with_chrome or browser_idle_and_session_cap_counters_are_visible"
+ shell: bash
+ working-directory: ${{ runner.temp }}
+
+ browser-without-chrome:
+ name: Verify explicit browser absence ${{ matrix.id }}
+ needs: build-wheel
+ runs-on: ${{ matrix.runner }}
+ strategy:
+ fail-fast: false
+ matrix:
+ include:
+ - { id: linux-x86_64, runner: ubuntu-24.04 }
+ - { id: linux-aarch64, runner: ubuntu-24.04-arm }
+ - { id: macos-x86_64, runner: macos-15-intel }
+ - { id: macos-arm64, runner: macos-15 }
+ - { id: windows-x86_64, runner: windows-2022 }
+ steps:
+ - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
+ - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065
+ with:
+ python-version: "3.11"
+ - uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093
+ with:
+ name: wheel-${{ matrix.id }}
+ path: ${{ runner.temp }}/wheelhouse
+ - name: Create a clean consumer environment
+ run: python -m venv "$RUNNER_TEMP/.venv"
+ shell: bash
+ - name: Assert deterministic explicit-path absence and unaffected operations
+ run: |
+ if [ "$RUNNER_OS" = "Windows" ]; then
+ python_bin="$(cygpath -u "$RUNNER_TEMP")/.venv/Scripts/python.exe"
+ else
+ python_bin="$RUNNER_TEMP/.venv/bin/python"
+ fi
+ "$python_bin" -m pip install --no-index --no-deps --only-binary=:all: "$RUNNER_TEMP"/wheelhouse/*.whl
+ "$python_bin" -m pip install pytest==8.4.2
+ "$python_bin" -m pytest -q -s "$GITHUB_WORKSPACE/bindings/python/tests/test_native.py" -k browser_absence_is_explicit_and_http_operations_still_work
+ shell: bash
+ working-directory: ${{ runner.temp }}
+
+ browser-auto-discovery-no-chrome:
+ name: Verify automatic discovery without Chrome
+ needs: build-wheel
+ runs-on: ubuntu-24.04
+ steps:
+ - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
+ - uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093
+ with:
+ name: wheel-linux-x86_64
+ path: ${{ runner.temp }}/wheelhouse
+ - name: Run installed-wheel contract in a browser-free container
+ env:
+ EGGSEARCH_TEST_BROWSER_AUTO_ABSENCE: "1"
+ run: |
+ docker run --rm \
+ -e EGGSEARCH_TEST_BROWSER_AUTO_ABSENCE \
+ -v "$GITHUB_WORKSPACE:/source:ro" \
+ -v "$RUNNER_TEMP/wheelhouse:/wheelhouse:ro" \
+ python:3.11-slim-bookworm \
+ /bin/sh -euxc '
+ python -m venv /tmp/eggsearch-venv
+ /tmp/eggsearch-venv/bin/python -m pip install --no-index --no-deps --only-binary=:all: /wheelhouse/*.whl
+ /tmp/eggsearch-venv/bin/python -m pip install pytest==8.4.2
+ cd /tmp
+ /tmp/eggsearch-venv/bin/python -m pytest -q -s /source/bindings/python/tests/test_native.py -k browser_absence_is_explicit_and_http_operations_still_work
+ '
+ shell: bash
+ working-directory: ${{ runner.temp }}
+
armv7-build:
name: Build ARMv7 hard-float wheel
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
+ - uses: dtolnay/rust-toolchain@6bed0761d98439e5a578e2877258200ad565ba87
+ with:
+ toolchain: 1.89.0
+ targets: armv7-unknown-linux-gnueabihf
+ - name: Install ARMv7 C compiler for the binding check
+ run: sudo apt-get update && sudo apt-get install --no-install-recommends -y gcc-arm-linux-gnueabihf libc6-dev-armhf-cross
+ - name: Check Python binding for ARMv7
+ env:
+ CC_armv7_unknown_linux_gnueabihf: arm-linux-gnueabihf-gcc
+ run: RUSTUP_TOOLCHAIN=1.89.0 cargo check --locked --manifest-path bindings/python/Cargo.toml --target armv7-unknown-linux-gnueabihf
- uses: PyO3/maturin-action@e83996d129638aa358a18fbd1dfb82f0b0fb5d3b
with:
maturin-version: v1.15.0
@@ -157,8 +298,23 @@ jobs:
run: |
python -m pip install packaging==26.0
python bindings/python/scripts/audit_armv7_wheel.py dist/*.whl | tee dist/armv7-audit.txt
- sha256sum dist/*.whl | tee dist/SHA256SUMS
cat dist/armv7-audit.txt >> "$GITHUB_STEP_SUMMARY"
+ python - <<'PY'
+ import os
+ from pathlib import Path
+ wheels = list(Path("dist").glob("*.whl"))
+ if len(wheels) != 1:
+ raise SystemExit(f"expected one ARMv7 wheel, found {len(wheels)}")
+ wheel = wheels[0]
+ size = wheel.stat().st_size
+ line = f"- linux-armv7l: {wheel.name}, {size} bytes ({size / 1_000_000:.2f} MB)"
+ print(line)
+ with open(os.environ["GITHUB_STEP_SUMMARY"], "a", encoding="utf-8") as summary:
+ summary.write(line + "\n")
+ if size > 20_000_000:
+ raise SystemExit(f"{wheel.name} exceeds 20 MB; maintainer review required")
+ PY
+ sha256sum dist/*.whl | tee dist/SHA256SUMS
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
with:
name: wheel-linux-armv7l
@@ -229,6 +385,23 @@ jobs:
cd "$RUNNER_TEMP"
"$RUNNER_TEMP/runtime-venv/bin/python" -m pytest -q "$source_dir/bindings/python/tests"
"$RUNNER_TEMP/runtime-venv/bin/python" -c "import tomllib; from pathlib import Path; import eggsearch; from importlib.metadata import distribution; expected=tomllib.loads(Path('$GITHUB_WORKSPACE/bindings/python/pyproject.toml').read_text())['project']['version']; assert len(eggsearch.tool_names()) == 9; assert distribution('eggsearch').version == expected"
+ python - <<'PY'
+ import os
+ from pathlib import Path
+ workspace = Path(os.environ["GITHUB_WORKSPACE"])
+ artifacts = sorted([
+ *workspace.joinpath("dist").glob("*.tar.gz"),
+ *workspace.joinpath("extracted-wheel").glob("*.whl"),
+ ])
+ if not artifacts:
+ raise SystemExit("no sdist or rebuilt wheel found")
+ with open(os.environ["GITHUB_STEP_SUMMARY"], "a", encoding="utf-8") as summary:
+ for artifact in artifacts:
+ size = artifact.stat().st_size
+ line = f"- {artifact.name}: {size} bytes ({size / 1_000_000:.2f} MB)"
+ print(line)
+ summary.write(line + "\n")
+ PY
sha256sum "$GITHUB_WORKSPACE"/dist/* "$GITHUB_WORKSPACE"/extracted-wheel/* | tee "$GITHUB_WORKSPACE/dist/SHA256SUMS"
cat "$GITHUB_WORKSPACE/dist/SHA256SUMS" >> "$GITHUB_STEP_SUMMARY"
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 9de23139..2c53f51a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,8 +7,42 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
+### Changed
+
+- `repo_map` now publishes `next_actions` alongside `suggested_fetches`. Each entry is an executable `fetch` call carrying the repo item the suggestion already resolved, so a caller never reconstructs a locator, and `suggested_fetches` stays populated as a typed convenience.
+- The advertised `tools/list` fingerprint is re-pinned from `3fa97faac725dc97` (33,850 bytes) to `678e2a042ab5b39b` (33,983 bytes) for the `repo_map` follow-up field and the corrected `provider_status` `probe` description. Hosts cache by fingerprint plus server version, so refresh the cached surface.
+
+### Fixed
+
+- `repo_search` `goal` accepts the workflow spellings the other search tools already honoured (`security_review`, `repository_architecture`, `version_migration`, and the rest), so a goal learned on one search tool no longer fails on another. The advertised enum remains the ten short spellings.
+- Follow-up templates bind the values the response already knows: a `repo_search` action now carries the request's `owner`, `repo`, and `query`, and `web_search`'s single-candidate action carries the source URL. A multi-candidate action keeps its placeholder because the choice is the caller's.
+- `knowledge_brief`'s `fetch` follow-up now carries the `items` envelope the tool accepts instead of a bare `url` it rejects, and its `research_search` follow-up carries the request topic instead of an empty template. Both now pass through `sanitize_next_actions`.
+- The advertised `provider_status` `probe` description no longer says probes update advisory health state. It states that probes follow `[search].timeout_ms` and never write routing health or start a cooldown, matching the implementation.
+
+### Fixed
+
+- `repo_fetch` reports an upstream fetch failure as a repairable `upstream_failed` tool error instead of a JSON-RPC internal error, so a missing file or a timeout carries the stable error code and stays distinguishable from a server fault. The canonical `fetch` repo item already behaved this way.
+- `repo_map` applies the same omitted-host default as `repo_fetch`: without `host` it tries GitHub under live dispatch instead of returning an empty fallback map, and the off-mode local-only path still performs no remote lookup. A failed forge lookup now keeps its specific structured warning (`forge_rate_limited`, `forge_auth_required`, `repo_ref_not_found`); the finalizer previously overwrote those warnings with the generic fallback notice. A specific forge failure also replaces, rather than accompanies, the fallback map's generic `no_native_tree_provider` notice, so one failure has one explanation.
+- Live provider probes no longer write routing health. A probe reports success, failure class, and latency only, so three diagnostic timeouts can no longer degrade a provider or start a cooldown. The per-provider probe deadline now follows `[search].timeout_ms` instead of a fixed 5 seconds, so a healthy provider that happens to answer between 5 and 8 seconds is no longer reported as a probe timeout at the default budget.
+- `render: "auto"` escalates a short page (under 200 rendered characters) that explicitly instructs the reader to enable JavaScript or use a headless browser. A longer documentation page that merely mentions JavaScript stays on the HTTP path, and an interactive challenge keeps precedence over the new marker.
+- An HTML parse failure now appends a bounded fingerprint to its reason: the sanitized page `
` (at most 80 characters) and a 16-hex digest of the canonical node tree. Drift is diagnosable from one log line without echoing page body text.
+- A partial `[search]` table inherits the built-in field defaults, so a documented snippet that sets only `timeout_ms` or only `[search.routing]` loads standalone. An explicitly present empty `[search.providers]` table is never repopulated and still fails validation in live mode.
+- Batch fetch budgets now measure each item after its selected response-detail projection, and `payload_chars` / `total_payload_chars` match the returned projected payloads. Web document structure degrades before text clipping or omission, under the existing aggregate cap and envelope-overhead exclusion.
+- HTML extraction preserves source whitespace around inline text, links, and code in text and Markdown output. Repeated whitespace still normalizes, but words are not merged and no spaces are invented when absent from the source.
+
### Added
+- A `429` response that carries `Retry-After` starts a provider cooldown matching the header, clamped to 300 seconds, instead of waiting for the third consecutive failure and the 60-second class default. The hint is parsed once by the shared fetch parser and carried on `EngineError::RateLimited`; an absent or malformed header keeps the existing threshold behavior.
+- `make live-release-smoke` runs the ignored MCP smoke on an optimized build. Challenge-solver and proof-of-work timings are only meaningful there; debug-build timings are documented as a wiring check only.
+
+- The Python wheel now compiles browser rendering alongside PDF extraction, so a
+ `pip install eggsearch` consumer gets the same capability as the released
+ binary. A system Chrome or Chromium is discovered at runtime and is never
+ bundled. A host without one still installs, imports, searches, and fetches: an
+ explicit browser request returns `browser_unavailable` naming the cause, and
+ an automatic one returns the HTTP result with a `browser_unavailable`
+ warning.
+
- `web_fetch`, `batch_fetch` web items, the unified `fetch` tool, and CLI `eggsearch fetch` now
reach a browser-gated origin for the same reason `web_search` already did. A `429` or `5xx` from
such an origin escalates once to the shipped browser render under `render: "auto"` instead of
diff --git a/Cargo.lock b/Cargo.lock
index f5ea48a9..8f578fef 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -362,6 +362,16 @@ dependencies = [
"tungstenite",
]
+[[package]]
+name = "atoi_simd"
+version = "0.18.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f3cdb3708a128e559a30fb830e8a77a5022ee6902806925c216658652b452a44"
+dependencies = [
+ "debug_unsafe",
+ "rustversion",
+]
+
[[package]]
name = "atomic-waker"
version = "1.1.2"
@@ -555,6 +565,24 @@ version = "1.12.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fc652a48c352aef3ea3aed32080501cf3ef6ed5da78602a020c991775b0aff04"
+[[package]]
+name = "calamine"
+version = "0.38.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f431b67cba6122a1f7d26b7adafc71bbdf07026095fe811f5efc025d8748e1d8"
+dependencies = [
+ "atoi_simd",
+ "byteorder",
+ "chrono",
+ "codepage",
+ "encoding_rs",
+ "fast-float2",
+ "log",
+ "quick-xml 0.42.0",
+ "serde",
+ "zip",
+]
+
[[package]]
name = "cast"
version = "0.3.0"
@@ -756,6 +784,15 @@ version = "1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c8d4a3bb8b1e0c1050499d1815f5ab16d04f0959b233085fb31653fbfc9d98f9"
+[[package]]
+name = "codepage"
+version = "0.1.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "bdff162541cd8b79de82e2edcc7eff3a8c2a6dc3d75152636028f96d93de3b26"
+dependencies = [
+ "encoding_rs",
+]
+
[[package]]
name = "colorchoice"
version = "1.0.5"
@@ -795,6 +832,15 @@ version = "0.10.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a6ef517f0926dd24a1582492c791b6a4818a4d94e789a334894aa15b0d12f55c"
+[[package]]
+name = "constant_time_eq"
+version = "0.6.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9eb6feb175df65d0a3ccd3e73484e940d0ac664e8034f0519fd49a93db3071d9"
+dependencies = [
+ "rustversion",
+]
+
[[package]]
name = "core-foundation-sys"
version = "0.8.7"
@@ -956,6 +1002,12 @@ version = "2.11.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4583a4551df46e2792f82ceeac45e850d2e2d5debba0b91f102385cda5b11f06"
+[[package]]
+name = "debug_unsafe"
+version = "0.1.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7eed2c4702fa172d1ce21078faa7c5203e69f5394d48cc436d25928394a867a2"
+
[[package]]
name = "der"
version = "0.8.2"
@@ -1106,14 +1158,18 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "27463e41d20019d7f1dd877ab2e71d49db14a01e2781766ecc2ef112421e4055"
dependencies = [
"async-compression",
+ "base64 0.23.1",
"brotli",
"bytes",
+ "eggfetch-http-connect",
"flate2",
"futures-core",
"futures-util",
+ "getrandom 0.2.17",
"http 1.5.0",
"http-body 1.1.0",
"http-body-util",
+ "httpdate",
"hyper 1.11.0",
"hyper-rustls",
"hyper-util",
@@ -1261,12 +1317,13 @@ dependencies = [
[[package]]
name = "eggsearch"
-version = "0.4.4"
+version = "0.4.5"
dependencies = [
"anyhow",
"axum",
"base64 0.22.1",
"brotli",
+ "calamine",
"chromiumoxide",
"chrono",
"clap",
@@ -1288,7 +1345,7 @@ dependencies = [
"pretty_assertions",
"proptest",
"pulldown-cmark",
- "quick-xml",
+ "quick-xml 0.41.0",
"rcgen",
"regex",
"rmcp",
@@ -1301,6 +1358,7 @@ dependencies = [
"serde",
"serde_json",
"sha2 0.10.9",
+ "similar",
"tempfile",
"thiserror 1.0.69",
"tokio",
@@ -1313,6 +1371,7 @@ dependencies = [
"urlencoding",
"windows-service",
"xxhash-rust",
+ "zip",
]
[[package]]
@@ -1399,6 +1458,12 @@ version = "0.1.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7360491ce676a36bf9bb3c56c1aa791658183a54d2744120f27285738d90465a"
+[[package]]
+name = "fast-float2"
+version = "0.2.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c6e8948ce679d00a02a94739ea185595dca7118ed04feb991127e443bd3d761f"
+
[[package]]
name = "fastrand"
version = "2.5.0"
@@ -1624,9 +1689,11 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "300e883d756b2e4ec94e02791f39b04b522276138852cfc41d9fb7e904106099"
dependencies = [
"cfg-if",
+ "js-sys",
"libc",
"r-efi 6.0.0",
"rand_core 0.10.1",
+ "wasm-bindgen",
]
[[package]]
@@ -2759,6 +2826,16 @@ dependencies = [
"memchr",
]
+[[package]]
+name = "quick-xml"
+version = "0.42.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "41b1177fdf999d2321d3fb46ff47159d9c1fb9ad66a4879f8c50a0b504615e9b"
+dependencies = [
+ "encoding_rs",
+ "memchr",
+]
+
[[package]]
name = "quote"
version = "1.0.47"
@@ -3947,6 +4024,12 @@ dependencies = [
"utf-8",
]
+[[package]]
+name = "typed-path"
+version = "0.13.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9ce898823d8cd0f028662d2f349694b1af0a5cc9be83f1d213a00d3147445e1e"
+
[[package]]
name = "typenum"
version = "1.20.1"
@@ -4642,6 +4725,20 @@ name = "zeroize"
version = "1.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e13c156562582aa81c60cb29407084cdb54c4164760106ab78e6c5b0858cf64e"
+dependencies = [
+ "zeroize_derive",
+]
+
+[[package]]
+name = "zeroize_derive"
+version = "1.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3c50655cbb0fe3fc43170059e702f1ce5e19b84cec58dc87b037a09935c2f328"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
[[package]]
name = "zerotrie"
@@ -4676,6 +4773,26 @@ dependencies = [
"syn 3.0.3",
]
+[[package]]
+name = "zip"
+version = "9.8.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a9534624d547e3f516ecde0ed9a70d37788f01d340efcfdd03bf3ea8e163c1d0"
+dependencies = [
+ "constant_time_eq",
+ "crc32fast",
+ "flate2",
+ "getrandom 0.4.3",
+ "indexmap",
+ "libc",
+ "memchr",
+ "nix",
+ "typed-path",
+ "windows-sys 0.61.2",
+ "zeroize",
+ "zopfli",
+]
+
[[package]]
name = "zlib-rs"
version = "0.6.8"
@@ -4687,3 +4804,15 @@ name = "zmij"
version = "1.0.23"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "29666d0abbfad1e3dc4dcf6144730dd3a3ab225bbbdac83319345b1b44ccfc1b"
+
+[[package]]
+name = "zopfli"
+version = "0.8.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f05cd8797d63865425ff89b5c4a48804f35ba0ce8d125800027ad6017d2b5249"
+dependencies = [
+ "bumpalo",
+ "crc32fast",
+ "log",
+ "simd-adler32",
+]
diff --git a/Cargo.toml b/Cargo.toml
index 33dc9aa3..a9f4a957 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "eggsearch"
-version = "0.4.4"
+version = "0.4.5"
edition = "2021"
rust-version = "1.89"
authors = ["eggstack"]
@@ -44,6 +44,7 @@ default = ["pdf", "browser"]
mock = []
pdf = ["dep:lopdf", "dep:flate2"]
browser = ["dep:chromiumoxide"]
+documents = ["dep:zip", "dep:calamine"]
live-mcp-smoke = []
live-smoke = ["mock"]
egress = ["dep:eggress-outbound", "dep:eggress-uri", "dep:eggress-core"]
@@ -67,7 +68,7 @@ url = { version = "2", features = ["serde"] }
eggress-outbound = { version = "=1.0.12", default-features = false, optional = true }
eggress-uri = { version = "=1.0.12", default-features = false, optional = true }
eggress-core = { version = "=1.0.12", default-features = false, optional = true }
-eggfetch-core = { version = "0.2.2", default-features = false, features = ["standard-http1", "advanced-routing", "redirects", "tls-rustls", "json", "compression-gzip", "compression-brotli"] }
+eggfetch-core = { version = "0.2.2", default-features = false, features = ["standard-http1", "advanced-routing", "redirects", "tls-rustls", "json", "compression-gzip", "compression-brotli", "proxy"] }
semver = "1"
scraper = "0.20"
ego-tree = "0.6.2"
@@ -79,6 +80,8 @@ quick-xml = { version = "0.41", default-features = false }
dirs = "5"
pulldown-cmark = "0.12"
lopdf = { version = "0.42", optional = true, default-features = false }
+zip = { version = "=9.8.1", optional = true, default-features = false, features = ["deflate-flate2"] }
+calamine = { version = "0.38", optional = true, default-features = false, features = ["dates"] }
flate2 = { version = "1", optional = true, default-features = false, features = ["rust_backend"] }
chromiumoxide = { version = "0.9", optional = true, default-features = false }
chrono = { version = "0.4", default-features = false, features = ["std", "clock", "serde"] }
@@ -87,6 +90,7 @@ libc = "0.2"
lru = "0.18"
self-replace = "1"
sha2 = "0.10"
+similar = "2.7"
pbkdf2 = "0.12"
base64 = "0.22"
tempfile = "3"
diff --git a/Makefile b/Makefile
index b06de757..dc77804e 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-.PHONY: check ci fmt clippy feature-check test hygiene dependency-policy packaging-check producer-drift release-check release-candidate-check docs-check release-build publish-check bench-check fuzz-smoke live-smoke live-mcp-smoke eval-tool-surface eval-retrieval-quality native-forge-smoke-github native-forge-smoke-gitlab native-forge-smoke-codeberg native-forge-smoke-gitea native-forge-smoke-all
+.PHONY: check ci fmt clippy feature-check test hygiene dependency-policy packaging-check producer-drift release-check release-candidate-check docs-check release-build publish-check bench-check fuzz-smoke live-smoke live-mcp-smoke live-release-smoke eval-tool-surface eval-retrieval-quality native-forge-smoke-github native-forge-smoke-gitlab native-forge-smoke-codeberg native-forge-smoke-gitea native-forge-smoke-all
check: fmt clippy feature-check test hygiene dependency-policy packaging-check
@@ -72,6 +72,9 @@ live-smoke:
live-mcp-smoke:
cargo test --locked --features live-mcp-smoke --test mcp_http live_canonical_tools_and_aliases_work_over_mcp_http -- --ignored --nocapture
+live-release-smoke:
+ cargo test --release --locked --features live-mcp-smoke --test mcp_http live_canonical_tools_and_aliases_work_over_mcp_http -- --ignored --nocapture
+
eval-tool-surface:
cargo test --locked --all-features --test tool_surface_evaluation -- --nocapture
diff --git a/README.md b/README.md
index 8e021221..574c4411 100644
--- a/README.md
+++ b/README.md
@@ -7,9 +7,10 @@
[](LICENSE)
[](https://crates.io/crates/eggsearch)
-A lightweight MCP (Model Context Protocol) search and fetch server for AI agents:
-live web metasearch with RRF dedup, bounded fetch, and deterministic evidence
-bundling, over client-owned stdio or explicit loopback-only Streamable HTTP.
+Eggsearch adds live search and bounded source fetching to MCP-compatible AI
+clients. It combines public search sources, returns evidence as source cards, and
+can package selected material into deterministic evidence bundles. Connect it
+over client-owned stdio or run an explicit loopback-only Streamable HTTP server.
**No API keys are required for the default installation.** The default install is
keyless across web, fetch, advisory, package-registry, and scholarly paths.
@@ -52,21 +53,12 @@ eggsearch providers # per-provider enabled / configured / routable
```
```bash
-$ eggsearch search "rust tokio" --max-results 1
-# Results for 'rust tokio' (1 items, 1 failed)
-
-1. <<>>
-Tokio - An asynchronous Rust runtime
-<<>>
- https://tokio.rs/
- [duckduckgo]
- <<>> Tokio is a library for
- writing fast, reliable, and easy network applications with Rust. … <<>>
-
-Failed providers:
- - yahoo: engine 'yahoo' returned status 500 (http_status)
+eggsearch search "rust tokio" --max-results 3
```
+Search uses live public sources, so results vary and an individual provider can
+fail without making the whole query fail.
+
```bash
$ eggsearch fetch "https://example.com" --metadata-only
# Fetch: https://example.com
@@ -84,8 +76,8 @@ Truncated: false
Every card carries a content-derived stable ID and an `<<>>`
frame: treat fetched text as data, never instructions. Results merge across
providers, so one provider failing is reported as a warning rather than failing
-the query. One URL per `web_fetch`, `batch_fetch` for explicit fan-out, `--json`
-for machine output.
+the query. The MCP `fetch` tool accepts one or more explicitly selected web or
+repository items. Use `--json` for machine-readable CLI output.
Preview client configuration first. Rendering is read-only; `--apply` is opt-in:
@@ -133,16 +125,24 @@ for codebases, `security_search` for advisories, `research_search` for compariso
`provider_status` is for hosts and troubleshooting, not a first research step.
Responses include machine-readable `next_actions`, so keep the working set small
and load specialized tools only as needed. `web_search` returns source cards, not
-a synthesized answer; read useful sources with `web_fetch`. See [Tool matrix](docs/tool-matrix.md)
-and [Agent workflows](docs/agent-workflows.md) for details.
+a synthesized answer; read useful sources with `fetch`. See the
+[Tool matrix](docs/tool-matrix.md) and [Agent workflows](docs/agent-workflows.md)
+for details.
## Safety
-- Fetched content is `external_untrusted`: data, not instructions. `sanitize_output` defaults to `true`, with injection markers reported as `injection_hits`.
-- Fetch is bounded and explicit: one URL per `web_fetch`, no autonomous crawling, SSRF checks against blocked address ranges.
+- Fetched content is `external_untrusted`: data, not instructions.
+ `sanitize_output` defaults to `true`, with injection markers reported as
+ `injection_hits`.
+- Fetch is bounded and explicit. `fetch` reads only selected web or repository
+ targets and checks for blocked address ranges.
- Current source builds enable PDF extraction and browser rendering by default.
Published `v0.4.4` binaries predate that change and include neither feature.
- Browser rendering requires an existing Chrome or Chromium installation.
+ Browser rendering requires an existing Chrome or Chromium installation; when
+ none is found, browser functionality reports itself unavailable and the rest
+ of the product keeps working.
+ The Python wheels are built from the same source and compile both features;
+ the published `eggsearch==0.4.4` wheel is PDF-only.
The opt-in `egress` proxy route is limited to provider upstreams and is
excluded from prebuilt binaries.
diff --git a/architecture/build.md b/architecture/build.md
index 43d1045e..c3ea8747 100644
--- a/architecture/build.md
+++ b/architecture/build.md
@@ -58,15 +58,20 @@ cargo test --locked --all-features --test tool_surface_live -- --ignored
### eggsearch-owned HTTP goes through eggfetch-core
-`eggfetch-core 0.2.0` (`default-features = false`) is the single owner of transport, pooling, TLS, decompression, total deadlines, bounded hard-error reads, pinned routing, redirect mechanics, and typed failures for all eggsearch-owned outbound requests.
+`eggfetch-core 0.2.2` (`default-features = false`) is the single owner of transport, pooling, TLS, decompression, total deadlines, bounded hard-error reads, pinned routing, redirect mechanics, and typed failures for all eggsearch-owned outbound requests.
Enabled feature budget (locked by `eggfetch_feature_budget_stays_bounded`):
-- `standard-http1`, `advanced-routing`, `redirects`, `tls-rustls`, `json`, `compression-gzip`, `compression-brotli`
+- `standard-http1`, `advanced-routing`, `redirects`, `tls-rustls`, `json`, `compression-gzip`, `compression-brotli`, `proxy`
+
+`proxy` is enabled for the dynamic-fetch route required by ADR-0025: it is the
+only seam that can carry a caller-supplied target pin through a proxy
+(`proxy_target_addresses`). It does not route provider upstreams, browser
+traffic, or any non-fetch path.
Forbidden (selective split, must stay off):
-- `logical-retry`, `basic-auth`, `proxy`, `tls-native-roots`, `http2`, `http3`, `cookies`, `multipart`
+- `logical-retry`, `basic-auth`, `tls-native-roots`, `http2`, `http3`, `cookies`, `multipart`
Consequences:
@@ -74,7 +79,7 @@ Consequences:
- Retry authority belongs to `OriginController` alone; eggfetch `logical-retry` stays disabled so retry policy is not split across two owners.
- Engines use automatic gzip/Brotli decompression; no `.decompress(false)` workaround remains after eggfetch-core 0.2.0 (guard `html_scrape_engines_use_automatic_decompression`).
- HTML scrape and JSON API engines pair an explicit `engine_timeout()` total deadline with `read_bounded_body()` streaming byte caps.
-- The `egress` route (`src/fetch/egress.rs`, `EggressDialer` beneath the eggfetch `Dialer` seam) is provider-upstreams-only, fail-closed, credential-indirected via `password_env`. Dynamic `FetchClient` targets keep resolved-address pinning and never use egress; loopback health (`startup`, `integrations/common`, `update`, `forge_adapter`, `package_resolver`, `mcp/http`) and browser traffic stay direct (guards `egress_route_stays_out_of_*`).
+- The `egress` route (`src/fetch/egress.rs`, `EggressDialer` beneath the eggfetch `Dialer` seam) is provider-upstreams-only, fail-closed, credential-indirected via `password_env`. Dynamic `FetchClient` targets keep resolved-address pinning, never use egress, and reach a proxy only through eggfetch's native `proxy` feature with a mandatory request-level `proxy_target_addresses` pin (ADR-0025); loopback health (`startup`, `integrations/common`, `update`, `forge_adapter`, `package_resolver`, `mcp/http`) and browser traffic stay direct (guards `egress_route_stays_out_of_*`).
### rmcp features required for integrate --apply
diff --git a/architecture/codegg-contract.md b/architecture/codegg-contract.md
index 8331f8a6..e3b33519 100644
--- a/architecture/codegg-contract.md
+++ b/architecture/codegg-contract.md
@@ -229,6 +229,12 @@ Harnesses must cache `tools/list` by this fingerprint plus the
server version — never by tool count — and apply hydration state
after retrieving a cached base surface.
+The fingerprint is re-pinned deliberately, never incidentally: a change to an
+advertised description, schema, or output envelope updates the pin in
+`tests/mcp_tool_contract.rs` with the advertised byte count, and the closure
+record names the old and new values. One re-pin covers one milestone's surface
+change; a second unrelated correction waits for its own event.
+
---
## 8. Additive-Only Evolution and Schema Budgets
diff --git a/architecture/engines.md b/architecture/engines.md
index efe3ce87..3b52e4c6 100644
--- a/architecture/engines.md
+++ b/architecture/engines.md
@@ -19,7 +19,7 @@ workspace backend (`src/meta/local_backend.rs`), not an engine file.
| `request.rs` | `EngineSearchRequest` — provider-neutral structured request; `RepoScope` (`owner`/`repo`, never reparsed from free text) |
| `models.rs` | `SearchResult`, `ResultMetadata` (issue/release/advisory/code-search merge), `AggregatedResult`, `EngineSearchBatch` / `EngineRetrievalMetadata` / `ScopeIndexStatus` |
| `normalizer.rs` | URL canonicalization: fragment strip, tracking-param strip, query-param sort, locale-prefix strip, index-file strip, trailing-slash trim, scheme/host lowercase |
-| `error.rs` | `EngineError`: `Timeout`, `Http`, `BadStatus`, `ParseFailed`, `Blocked`, `NetworkError`, `Unsupported` |
+| `error.rs` | `EngineError`: `Timeout`, `Http`, `BadStatus`, `RateLimited`, `ParseFailed`, `Blocked`, `NetworkError`, `Unsupported` |
| `test_harness.rs` | `mock`-gated `parse_html(provider_id, html, max_results)` used by the captured-fixture conformance suite; absent from default builds |
| `kev.rs` | Shared `KevClient`: fetches and caches the CISA Known Exploited Vulnerabilities catalog (used by the `cisa_kev` engine and by `ServerState` for KEV enrichment) |
| `.rs` × 43 | One upstream mapping each: request shaping, bounded read, response parse, `SearchResult` construction |
@@ -174,13 +174,18 @@ four-outcome decision has exactly one implementation. Text markers are matched a
text with `