Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
69 commits
Select commit Hold shift + click to select a range
24f0457
feat(fetch): batch per-target parity and local workspace PDF ingestion
Nov 17, 2026
4bb1ce9
docs(plans): close adaptive-fetch M002 on 24f045729f8409dadc96b4c2455…
Nov 17, 2026
b63f1c6
feat(fetch): add opt-in webpage screenshots
Nov 18, 2026
c17403c
docs(plans): close adaptive-fetch M003 on b63f1c6
Nov 18, 2026
59ff64a
fix(python): mirror screenshot option in typed fetch request
Nov 18, 2026
82c862a
docs(plans): reconcile adaptive-fetch M003 candidate
Nov 18, 2026
3416da6
feat(mcp): unify fetch tool with legacy aliases
Nov 18, 2026
46fda77
docs(plans): close M029 and register M030
Nov 18, 2026
556462b
Close M014 expiry-safety acceptance via M030
Nov 19, 2026
be8ee3e
docs(plans): accept ADR-0017 and register fetch-path challenge milest…
Nov 19, 2026
7f7219b
feat(fetch): solve published challenges across every fetch surface
Nov 19, 2026
81c81a6
docs(plans): close M031 fetch-path challenge solve parity
Nov 19, 2026
3d1cbcb
docs(plans): promote M032 and M033 to dependency-ready
Nov 19, 2026
421d4b2
feat(fetch): solve published ALTCHA challenges on the general fetch path
Nov 19, 2026
aef0838
docs(plans): close M032 ALTCHA on the general fetch path
Nov 19, 2026
5a98682
feat(fetch): reuse a pass cookie for a repeated challenge on the same…
Nov 19, 2026
2c1a722
docs(plans): close M033 fetch-side pass-cookie reuse
Nov 19, 2026
653af9f
docs(plans): register M034 fetch-side stale pass-cookie recovery
Nov 19, 2026
5cf21e8
feat(fetch): recover in call from a refused pass cookie
Nov 19, 2026
993a09b
docs(plans): close M034 fetch-side stale pass-cookie recovery
Nov 19, 2026
3e3ef5c
docs(plans): accept ADR-0019 broadened challenge coverage
Nov 19, 2026
8e39a0c
docs(plans): register M035 browser challenge completion
Nov 19, 2026
e10fd93
docs(architecture): state the browser challenge completion rule
Nov 19, 2026
5518079
feat(fetch): complete browser-blocked walls and send solvable walls t…
Nov 19, 2026
6146341
docs(plans): close M035 browser challenge completion
Nov 19, 2026
76c1156
feat(retrieval): correct fetch budget, local admission, and advisory …
Nov 19, 2026
81074c5
docs(plans): close M036-M038 retrieval integrity corrections
Nov 19, 2026
6cd6c9a
docs(plans): register M039 and M040 retrieval integrity corrections
Nov 19, 2026
10ed7ed
feat(retrieval): bound fetch payload and extend local recall
Nov 20, 2026
0f52c8f
docs(plans): close M039 and M040 retrieval integrity corrections
Nov 20, 2026
ac39ee7
docs(plans): draft cutoff-aware knowledge-delta workstream
dbowm91 Nov 20, 2026
93ea4ab
docs(plans): settle the cutoff-aware knowledge-delta contract
Nov 20, 2026
a3bb026
docs(plans): accept ADR-0020 and ADR-0021
Nov 20, 2026
7bd03d9
feat(knowledge-delta): add brief, index, and discovery
Nov 20, 2026
c9980a7
fix: close knowledge-delta security review findings
Nov 20, 2026
e5700b9
fix: harden knowledge-delta retention and qualification
Nov 20, 2026
7ce61a3
fix: require live-process Windows RSS samples
Nov 20, 2026
3c7e546
fix packaging smoke tool inventory
Nov 20, 2026
c0f7190
fix knowledge-delta index and payload bounds
Nov 20, 2026
16b4c28
docs: close knowledge-delta milestones
Nov 20, 2026
688948b
docs(plans): draft knowledge-delta coverage and quality corrections
dbowm91 Nov 20, 2026
380a55c
feat(corrective): M004, M041, M042 live-workload corrections
Nov 20, 2026
3964dee
docs: close M004, M041, and M042 on candidate 380a55c
Nov 20, 2026
10986ed
docs(plans): renumber the concurrent knowledge-delta drafts to M005-M007
Nov 20, 2026
a9fc806
docs: reconcile corrective plan closure evidence
Nov 20, 2026
736c272
docs(plans): record green hosted qualification for M004
Nov 20, 2026
57f5fed
docs(plans): reconcile M005-M007 with the closed M004
Nov 20, 2026
e817dfd
feat(knowledge-delta): verified cutoff catalog and index onboarding d…
Nov 20, 2026
bc52970
docs(plans): close M005, M006 and M007 on the qualified candidate
Nov 20, 2026
950f219
docs(plans): record the hosted qualification of M005-M007
Nov 20, 2026
58446ef
docs(plans): drop the stale proposed note from the corrective addendum
Nov 20, 2026
77c32aa
docs(plans): register M043 for local repo-search empty-result determi…
Nov 20, 2026
d5f17a5
docs(plans): complete the M043 handoff with non-goals and code pointers
Nov 20, 2026
5a218a4
fix(local-search): start the scan budget after the inventory build
Nov 20, 2026
56f0bcb
docs(plans): close M043 on the qualified candidate
Nov 20, 2026
ca24ee1
fix(packaging): ship every compile-time asset and gate the package list
Nov 20, 2026
54a0520
docs(plans): close M005 on the qualified packaging candidate
Nov 21, 2026
7b28436
feat(challenge): solve by default with a budget that covers current w…
Nov 21, 2026
3038345
docs(plans): close M044 on the qualified default-on candidate
Nov 21, 2026
9003981
fix(engines): classify a challenge served with a non-success status
Nov 21, 2026
364014c
feat(engines): serve browser-gated result pages through the shipped b…
Nov 21, 2026
1286684
docs(plans): close M045 on the qualified browser-fidelity candidate
Nov 21, 2026
96f42a9
docs(plans): tighten the M045 root-cause wording
Nov 21, 2026
20c0672
feat(fetch): escalate browser-gated statuses to the shipped browser
Nov 21, 2026
b2abc59
docs(plans): close M046 on the qualified fetch-escalation candidate
Nov 21, 2026
4e6b01a
feat(mcp): advertise nine tools and bound the evidence-bundle schema
Nov 22, 2026
fb9d653
fix(ci): expect nine tools in python qualification and wheel smoke
Nov 22, 2026
d210411
refactor: consolidate shared core and fetch flows
Nov 22, 2026
87fbc95
fix: update Python binding dependency audit
Nov 22, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions .github/workflows/python-native-qualification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ jobs:
cd /tmp
"$venv/bin/python" -m pytest -q /source/bindings/python/tests
"$venv/bin/python" /source/bindings/python/scripts/smoke_installed_wheel.py
"$venv/bin/python" -c "import platform,sys; from importlib.metadata import distribution; import eggsearch; assert platform.machine() in (\"armv7l\", \"armv8l\"); assert sys.version_info[:2] == (3, int(\"$tag\"[3:])); assert len(eggsearch.tool_names()) == 10; print(platform.machine(), sys.version, distribution(\"eggsearch\").version)"
"$venv/bin/python" -c "import platform,sys; from importlib.metadata import distribution; import eggsearch; assert platform.machine() in (\"armv7l\", \"armv8l\"); assert sys.version_info[:2] == (3, int(\"$tag\"[3:])); assert len(eggsearch.tool_names()) == 9; print(platform.machine(), sys.version, distribution(\"eggsearch\").version)"
done
'

Expand Down Expand Up @@ -228,7 +228,7 @@ jobs:
"$RUNNER_TEMP/runtime-venv/bin/python" -m pip install pytest==8.4.2
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()) == 10; assert distribution('eggsearch').version == expected"
"$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"
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
158 changes: 158 additions & 0 deletions .github/workflows/qualify-eggpack-candidate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,59 @@ jobs:
env:
CARGO_TARGET_DIR: "${{ runner.temp }}/eggpack/${{ github.run_id }}-${{ github.run_attempt }}"
run: "'cargo' '+stable' 'build' '--release' '--locked' '--target' 'aarch64-pc-windows-msvc' '--package' 'eggsearch' '--bin' 'eggsearch'"
- name: Measure stripped binary size and startup RSS
shell: pwsh
run: |
$ErrorActionPreference = "Stop"
$target = "aarch64-pc-windows-msvc"
$buildRoot = [System.IO.Path]::Combine($env:RUNNER_TEMP, "eggpack", "$($env:GITHUB_RUN_ID)-$($env:GITHUB_RUN_ATTEMPT)")
$binary = [System.IO.Path]::Combine($buildRoot, $target, "release", "eggsearch.exe")
if (-not (Test-Path -LiteralPath $binary -PathType Leaf)) { throw "Release binary not found: $binary" }
$candidateSha = (git rev-parse HEAD).Trim()
$binaryBytes = [long](Get-Item -LiteralPath $binary).Length
$rssSamples = @()
for ($attempt = 0; $attempt -lt 10 -and $rssSamples.Count -lt 5; $attempt++) {
$process = [System.Diagnostics.Process]::new()
$process.StartInfo.FileName = $binary
$process.StartInfo.Arguments = "--version"
$process.StartInfo.UseShellExecute = $false
$process.StartInfo.CreateNoWindow = $true
$process.StartInfo.RedirectStandardOutput = $true
$process.StartInfo.RedirectStandardError = $true
if (-not $process.Start()) { throw "Could not start release binary" }
$stdoutTask = $process.StandardOutput.ReadToEndAsync()
$stderrTask = $process.StandardError.ReadToEndAsync()
$rssSample = 0L
do {
$process.Refresh()
if ($process.HasExited) { break }
$currentSample = [long]$process.PeakWorkingSet64
$process.Refresh()
if (-not $process.HasExited -and $currentSample -gt $rssSample) { $rssSample = $currentSample }
if ($process.WaitForExit(1)) { break }
} while ($true)
$process.WaitForExit()
$stdout = $stdoutTask.GetAwaiter().GetResult()
$stderr = $stderrTask.GetAwaiter().GetResult()
if ($process.ExitCode -ne 0) { throw "--version exited with $($process.ExitCode): $stderr" }
if ($rssSample -gt 0) { $rssSamples += $rssSample }
$process.Dispose()
}
if ($rssSamples.Count -ne 5) { throw "Collected $($rssSamples.Count) valid peak working set samples; expected 5" }
$record = [ordered]@{ candidate_sha = $candidateSha; target = $target; binary_bytes = $binaryBytes; probe = "eggsearch --version"; peak_working_set_bytes_samples = $rssSamples; threshold_applied = $false }
$json = $record | ConvertTo-Json -Compress
$outputDir = Join-Path $PWD "eggpack-footprint"
New-Item -ItemType Directory -Path $outputDir -Force | Out-Null
$outputPath = Join-Path $outputDir "$target.json"
Set-Content -LiteralPath $outputPath -Value $json -NoNewline -Encoding utf8
Write-Output $json
- name: Upload footprint evidence
uses: "actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02"
with:
name: "eggsearch-footprint-windows-arm64"
path: "eggpack-footprint/aarch64-pc-windows-msvc.json"
if-no-files-found: error
retention-days: 7
- name: Capture canonical build handoff
shell: bash
run: "'eggpack' 'ci' '_capture-build' '--release-plan' 'eggpack-runtime/release-plan.json' '--build-bindings' 'release/eggpack/build-bindings.toml' '--target' 'aarch64-pc-windows-msvc' '--cargo-target-dir' '${{ runner.temp }}/eggpack/${{ github.run_id }}-${{ github.run_attempt }}' '--output-dir' './eggpack-build/build_aarch64_pc_windows_msvc'"
Expand Down Expand Up @@ -249,6 +302,32 @@ jobs:
CARGO_ZIGBUILD_ZIG_PATH: ${{ env.CARGO_ZIGBUILD_ZIG_PATH }}
CARGO_ZIGBUILD_CACHE_DIR: ${{ env.CARGO_ZIGBUILD_CACHE_DIR }}
run: "'cargo' '+stable' 'zigbuild' '--release' '--locked' '--target' 'aarch64-unknown-linux-gnu.2.17' '--package' 'eggsearch' '--bin' 'eggsearch'"
- name: Measure stripped binary size and startup RSS
shell: bash
run: |
set -euo pipefail
target="aarch64-unknown-linux-gnu"
build_root="$RUNNER_TEMP/eggpack/$GITHUB_RUN_ID-$GITHUB_RUN_ATTEMPT"
binary="$build_root/$target/release/eggsearch"
test -x "$binary"
candidate_sha="$(git rev-parse HEAD)"
binary_bytes="$(wc -c < "$binary" | tr -d '[:space:]')"
rss_samples=""
for _ in 1 2 3 4 5; do
sample="$(/usr/bin/time -f '%M' "$binary" --version 2>&1 >/dev/null)"
[[ "$sample" =~ ^[0-9]+$ ]]
if [[ -n "$rss_samples" ]]; then rss_samples="$rss_samples,"; fi
rss_samples="$rss_samples$sample"
done
mkdir -p eggpack-footprint
printf '{"candidate_sha":"%s","target":"%s","binary_bytes":%s,"probe":"eggsearch --version","peak_rss_kib_samples":[%s],"threshold_applied":false}\n' "$candidate_sha" "$target" "$binary_bytes" "$rss_samples" | tee "eggpack-footprint/$target.json"
- name: Upload footprint evidence
uses: "actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02"
with:
name: "eggsearch-footprint-linux-arm64"
path: "eggpack-footprint/aarch64-unknown-linux-gnu.json"
if-no-files-found: error
retention-days: 7
- name: Capture canonical build handoff
shell: bash
run: "'eggpack' 'ci' '_capture-build' '--release-plan' 'eggpack-runtime/release-plan.json' '--build-bindings' 'release/eggpack/build-bindings.toml' '--target' 'aarch64-unknown-linux-gnu' '--cargo-target-dir' '${{ runner.temp }}/eggpack/${{ github.run_id }}-${{ github.run_attempt }}' '--output-dir' './eggpack-build/build_aarch64_unknown_linux_gnu'"
Expand Down Expand Up @@ -444,6 +523,59 @@ jobs:
env:
CARGO_TARGET_DIR: "${{ runner.temp }}/eggpack/${{ github.run_id }}-${{ github.run_attempt }}"
run: "'cargo' '+stable' 'build' '--release' '--locked' '--target' 'x86_64-pc-windows-msvc' '--package' 'eggsearch' '--bin' 'eggsearch'"
- name: Measure stripped binary size and startup RSS
shell: pwsh
run: |
$ErrorActionPreference = "Stop"
$target = "x86_64-pc-windows-msvc"
$buildRoot = [System.IO.Path]::Combine($env:RUNNER_TEMP, "eggpack", "$($env:GITHUB_RUN_ID)-$($env:GITHUB_RUN_ATTEMPT)")
$binary = [System.IO.Path]::Combine($buildRoot, $target, "release", "eggsearch.exe")
if (-not (Test-Path -LiteralPath $binary -PathType Leaf)) { throw "Release binary not found: $binary" }
$candidateSha = (git rev-parse HEAD).Trim()
$binaryBytes = [long](Get-Item -LiteralPath $binary).Length
$rssSamples = @()
for ($attempt = 0; $attempt -lt 10 -and $rssSamples.Count -lt 5; $attempt++) {
$process = [System.Diagnostics.Process]::new()
$process.StartInfo.FileName = $binary
$process.StartInfo.Arguments = "--version"
$process.StartInfo.UseShellExecute = $false
$process.StartInfo.CreateNoWindow = $true
$process.StartInfo.RedirectStandardOutput = $true
$process.StartInfo.RedirectStandardError = $true
if (-not $process.Start()) { throw "Could not start release binary" }
$stdoutTask = $process.StandardOutput.ReadToEndAsync()
$stderrTask = $process.StandardError.ReadToEndAsync()
$rssSample = 0L
do {
$process.Refresh()
if ($process.HasExited) { break }
$currentSample = [long]$process.PeakWorkingSet64
$process.Refresh()
if (-not $process.HasExited -and $currentSample -gt $rssSample) { $rssSample = $currentSample }
if ($process.WaitForExit(1)) { break }
} while ($true)
$process.WaitForExit()
$stdout = $stdoutTask.GetAwaiter().GetResult()
$stderr = $stderrTask.GetAwaiter().GetResult()
if ($process.ExitCode -ne 0) { throw "--version exited with $($process.ExitCode): $stderr" }
if ($rssSample -gt 0) { $rssSamples += $rssSample }
$process.Dispose()
}
if ($rssSamples.Count -ne 5) { throw "Collected $($rssSamples.Count) valid peak working set samples; expected 5" }
$record = [ordered]@{ candidate_sha = $candidateSha; target = $target; binary_bytes = $binaryBytes; probe = "eggsearch --version"; peak_working_set_bytes_samples = $rssSamples; threshold_applied = $false }
$json = $record | ConvertTo-Json -Compress
$outputDir = Join-Path $PWD "eggpack-footprint"
New-Item -ItemType Directory -Path $outputDir -Force | Out-Null
$outputPath = Join-Path $outputDir "$target.json"
Set-Content -LiteralPath $outputPath -Value $json -NoNewline -Encoding utf8
Write-Output $json
- name: Upload footprint evidence
uses: "actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02"
with:
name: "eggsearch-footprint-windows-x64"
path: "eggpack-footprint/x86_64-pc-windows-msvc.json"
if-no-files-found: error
retention-days: 7
- name: Capture canonical build handoff
shell: bash
run: "'eggpack' 'ci' '_capture-build' '--release-plan' 'eggpack-runtime/release-plan.json' '--build-bindings' 'release/eggpack/build-bindings.toml' '--target' 'x86_64-pc-windows-msvc' '--cargo-target-dir' '${{ runner.temp }}/eggpack/${{ github.run_id }}-${{ github.run_attempt }}' '--output-dir' './eggpack-build/build_x86_64_pc_windows_msvc'"
Expand Down Expand Up @@ -539,6 +671,32 @@ jobs:
CARGO_ZIGBUILD_ZIG_PATH: ${{ env.CARGO_ZIGBUILD_ZIG_PATH }}
CARGO_ZIGBUILD_CACHE_DIR: ${{ env.CARGO_ZIGBUILD_CACHE_DIR }}
run: "'cargo' '+stable' 'zigbuild' '--release' '--locked' '--target' 'x86_64-unknown-linux-gnu.2.17' '--package' 'eggsearch' '--bin' 'eggsearch'"
- name: Measure stripped binary size and startup RSS
shell: bash
run: |
set -euo pipefail
target="x86_64-unknown-linux-gnu"
build_root="$RUNNER_TEMP/eggpack/$GITHUB_RUN_ID-$GITHUB_RUN_ATTEMPT"
binary="$build_root/$target/release/eggsearch"
test -x "$binary"
candidate_sha="$(git rev-parse HEAD)"
binary_bytes="$(wc -c < "$binary" | tr -d '[:space:]')"
rss_samples=""
for _ in 1 2 3 4 5; do
sample="$(/usr/bin/time -f '%M' "$binary" --version 2>&1 >/dev/null)"
[[ "$sample" =~ ^[0-9]+$ ]]
if [[ -n "$rss_samples" ]]; then rss_samples="$rss_samples,"; fi
rss_samples="$rss_samples$sample"
done
mkdir -p eggpack-footprint
printf '{"candidate_sha":"%s","target":"%s","binary_bytes":%s,"probe":"eggsearch --version","peak_rss_kib_samples":[%s],"threshold_applied":false}\n' "$candidate_sha" "$target" "$binary_bytes" "$rss_samples" | tee "eggpack-footprint/$target.json"
- name: Upload footprint evidence
uses: "actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02"
with:
name: "eggsearch-footprint-linux-x64"
path: "eggpack-footprint/x86_64-unknown-linux-gnu.json"
if-no-files-found: error
retention-days: 7
- name: Capture canonical build handoff
shell: bash
run: "'eggpack' 'ci' '_capture-build' '--release-plan' 'eggpack-runtime/release-plan.json' '--build-bindings' 'release/eggpack/build-bindings.toml' '--target' 'x86_64-unknown-linux-gnu' '--cargo-target-dir' '${{ runner.temp }}/eggpack/${{ github.run_id }}-${{ github.run_attempt }}' '--output-dir' './eggpack-build/build_x86_64_unknown_linux_gnu'"
Expand Down
6 changes: 3 additions & 3 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

eggsearch is a lightweight MCP search/fetch server for AI agents (live metasearch with RRF dedup, bounded fetch, deterministic evidence bundles). Transports: client-owned `mcp stdio` or explicit loopback-only `mcp serve`.

Single library + binary crate, not a workspace. Stable contract is MCP tools (10) plus CLI, with a narrow native operation facade in `src/sdk.rs`; the remaining Rust module tree has no general semver library guarantee (see `src/lib.rs` and `architecture/python-library.md`). Dependency flow: `core <- meta <- mcp <- commands`; `fetch` is independent of `meta`. Start with `src/lib.rs` (module map) and `architecture/overview.md` (component index); operator docs live in `docs/`.
Single library + binary crate, not a workspace. Stable contract is MCP tools (10) plus CLI, with a narrow native operation facade in `src/sdk.rs`; the remaining Rust module tree has no general semver library guarantee (see `src/lib.rs` and `architecture/python-library.md`). Dependency flow: `core <- meta <- mcp <- commands`; `challenge_replay` depends on `meta` and `fetch` and is used by `mcp` and `commands`; `fetch` remains independent of `meta`. Start with `src/lib.rs` (module map) and `architecture/overview.md` (component index); operator docs live in `docs/`.

## Build & verification

Expand All @@ -14,7 +14,7 @@ make release-check # check + docs + release build + publish dry-run
make bench-check # compile-check the Criterion perf harness (characterization only, never a threshold); fuzz: make fuzz-smoke
```

Feature flags: `mock` (test-only engine harness — **required for integration/corpus tests**; plain `cargo test` misses most of them), `pdf`, `browser`, `egress` (opt-in listener-free HTTP/SOCKS proxy-chain route for provider upstreams only; prebuilt/default binaries exclude it), `live-smoke` (implies `mock`, ignored by default, network). Tests must pass keyless: CI blanks all credential env vars, so missing credentials are provider-scoped skips, never global failures. Tests must not require network.
Feature flags: `pdf` and `browser` are enabled by Cargo defaults; `mock` is the test-only engine harness (**required for integration/corpus tests**, and plain `cargo test` misses most of them); `egress` is opt-in and excluded from prebuilt/default binaries; `live-smoke` implies `mock`; `live-mcp-smoke` is the opt-in real MCP/network smoke that retains default `pdf`/`browser` and does not enable `mock`. Both live smoke targets are ignored by default. Tests must pass keyless: CI blanks all credential env vars, so missing credentials are provider-scoped skips, never global failures. Tests must not require network.

```bash
cargo test --locked --features mock --test web_search_integration # single suite
Expand Down Expand Up @@ -42,7 +42,7 @@ cargo test --locked --all-features --test tool_surface_live -- --ignored # opt-

Guard-enforced by `tests/static_guards.rs` (fail-closed; see `architecture/maintenance.md` for the ownership table):

- MCP tools call the `MetadataSearchAdapter`, never engines directly. New tools: dedicated module under `src/mcp/tools/` (shared validation in `common.rs`, goal/workflow resolution in `canonical.rs`), register in `src/mcp/server.rs` — exactly 10 tools unless tool-matrix, docs contract tests, and CodeGG docs move in the same change.
- MCP tools call the `MetadataSearchAdapter`, never engines directly. New tools: dedicated module under `src/mcp/tools/` (shared validation in `common.rs`, goal/workflow resolution in `canonical.rs`), register in `src/mcp/server.rs` — exactly 9 advertised tools (plus three callable compatibility aliases) unless tool-matrix, docs contract tests, and CodeGG docs move in the same change.
- New engines implement `SearchEngine::search(&EngineSearchRequest)`; unsupported capabilities stay explicit (dispatch emits capability-skip attempts, never silent omissions). New providers also declare 24-flag `ProviderCapabilities`, add the ID to `KNOWN_PROVIDER_IDS`, document native-vs-local enforcement in `docs/provider-setup.md`, extend `tests/provider_capability_contract.rs`. Native enforcement: `brave_api` natively enforces safe-search, freshness/date-range, language, region, news; `exa` natively enforces freshness/date-range, domain filters, result timestamps; `tavily` natively enforces safe-search, freshness/date-range, language, region, domain filters, news; `serpapi` natively enforces safe-search, language, region; `kagi` natively enforces safe-search, freshness/date-range, region, domain filters, result timestamps. Domain filters are natively enforced only by providers advertising `supports_domain_filters` (currently `exa`, `kagi`, `tavily`); all other domain filtering is local approximation. `arxiv` is the only `ProviderKind::StructuredApi` provider (additive variant; existing wire values unchanged). Source of truth for native enforcement is `tests/provider_capability_contract.rs` (full matrix in `architecture/maintenance.md` § New engines and providers) — do not edit these claim strings to match prose preferences.
- Domain workflows (`repo`/`research`/`security`) share `WorkflowExecution`/`RetrievalAttemptSet`/`FetchCandidateBuilder` primitives but keep typed planners/grouping/builders — do not flatten into one generic workflow.
- Ordinary files must stay under 1,600 lines / 80 KB; larger modules carry explicit ratchet ceilings and next-slice notes in `architecture/maintenance.md`.
Expand Down
Loading
Loading