Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
c75bfec
chore: update README.md
Nov 23, 2026
9528d41
fix: enforce projected batch budgets and preserve inline whitespace
Nov 23, 2026
7ec251d
docs: close M047 and M048
Nov 23, 2026
6197915
feat: align browser artifacts and retrieval evidence
Nov 24, 2026
e012dd7
Merge origin/main
Nov 24, 2026
e71b8f9
feat: align browser absence and Python wheel capabilities
Nov 24, 2026
2061e26
fix: repair Python qualification workflow YAML
Nov 24, 2026
120a922
test(browser): make Chrome qualification deterministic
Nov 24, 2026
af09fe5
test(python): gate Chrome render fixture in qualification
Nov 24, 2026
fedf82c
test: allow bounded Chrome startup in qualification
Nov 24, 2026
d932115
docs: close browser and Python M006
Nov 24, 2026
c1bd700
chore: update registry.md
Nov 24, 2026
f57dcfc
chore: update Cargo.lock
Nov 25, 2026
f44a933
docs: repair mangled backtick sentinels in the M004 closure record
Nov 25, 2026
c7cb5c0
feat(fetch): add documents capability reporting and operator switch
Nov 25, 2026
a7bdab0
test(fetch): cover review gaps and reconcile milestone records
Nov 25, 2026
79ea653
fix(repo): classify alias fetch errors and default repo_map host
Nov 25, 2026
47d7128
docs(planning): close M050 repository tool live-surface corrective
Nov 25, 2026
8fe39cd
docs(planning): record M050 live confirmation
Nov 25, 2026
f501a81
fix(retrieval): harden the live tool surface and probe contract (M051)
Nov 26, 2026
02c4163
feat(mcp): improve agent-facing contract ergonomics (M052)
Nov 26, 2026
51ef2d2
docs(plans): record M052 post-commit evidence
Nov 26, 2026
32621b7
docs(plans): record M052 audit findings
Nov 26, 2026
b04e996
docs(plans): register M053 pointer-binding correctives
Nov 26, 2026
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
16 changes: 16 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
175 changes: 174 additions & 1 deletion .github/workflows/python-native-qualification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down
34 changes: 34 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 `<title>` (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
Expand Down
Loading
Loading