From 8efb7ef3ddef6a5cd8b6005cdcb84ea45d75bcf9 Mon Sep 17 00:00:00 2001 From: eggsearch Date: Mon, 23 Nov 2026 00:17:53 +0000 Subject: [PATCH] chore: archive closed plans and trim comments --- plans/002-long-term-roadmap.md | 2 +- .../002-batch-per-target-capability-parity.md | 0 ...003-opt-in-webpage-screenshot-artifacts.md | 2 +- ...pass-cookie-lifetime-and-egress-binding.md | 0 ...9-unified-fetch-tool-and-legacy-aliases.md | 0 ...4-solve-count-acceptance-reconciliation.md | 0 .../031-fetch-path-challenge-solve-parity.md | 0 .../032-altcha-on-the-general-fetch-path.md | 0 .../033-fetch-side-pass-cookie-reuse.md | 0 ...4-fetch-side-stale-pass-cookie-recovery.md | 0 .../035-browser-challenge-completion.md | 0 ...fied-fetch-repo-item-budget-and-outcome.md | 0 ...7-local-repo-search-relevance-and-scope.md | 0 ...security-search-native-advisory-routing.md | 0 .../039-fetch-emitted-payload-budget.md | 0 ...ocal-content-aware-candidate-generation.md | 0 ...041-linked-worktree-identity-resolution.md | 2 +- .../042-fetch-item-shape-diagnostics.md | 2 +- ...al-repo-search-empty-result-determinism.md | 2 +- .../044-challenge-solving-on-by-default.md | 2 +- .../045-browser-fidelity-provider-access.md | 0 .../046-fetch-browser-escalation-parity.md | 0 ...003-distribution-and-live-qualification.md | 0 .../004-m003-qualification-corrective-pass.md | 2 +- ...5-session-cap-initial-render-accounting.md | 2 +- ...t-support-harness-and-default-arguments.md | 0 ...vider-capability-declaration-compaction.md | 0 .../003-engine-api-conformance-harness.md | 0 .../004-shared-engine-json-transport.md | 0 .../005-shared-fetch-escalation-seam.md | 0 .../006-core-request-validation-helpers.md | 0 .../007-one-repository-target-field-set.md | 0 .../008-searchengine-implementation-macro.md | 0 ...delta-production-and-honest-diagnostics.md | 0 .../005-verified-model-cutoff-coverage.md | 0 ...006-opt-in-index-onboarding-and-seeding.md | 0 ...07-live-discovery-quality-qualification.md | 0 .../001-search-schema-single-sourcing.md | 0 .../002-evidence-bundle-input-projection.md | 0 .../003-tool-inventory-parity.md | 0 .../004-repository-read-consolidation.md | 0 ...05-packaged-artifact-asset-completeness.md | 0 .../adaptive-fetch-routing/002-status.md | 2 +- .../adaptive-fetch-routing/003-status.md | 2 +- .../agentic-retrieval-integrity/014-status.md | 2 +- .../agentic-retrieval-integrity/029-status.md | 4 +- .../agentic-retrieval-integrity/030-status.md | 2 +- .../agentic-retrieval-integrity/031-status.md | 2 +- .../agentic-retrieval-integrity/032-status.md | 2 +- .../agentic-retrieval-integrity/033-status.md | 2 +- .../agentic-retrieval-integrity/034-status.md | 2 +- .../agentic-retrieval-integrity/035-status.md | 2 +- .../agentic-retrieval-integrity/036-status.md | 2 +- .../agentic-retrieval-integrity/037-status.md | 2 +- .../agentic-retrieval-integrity/038-status.md | 2 +- .../agentic-retrieval-integrity/039-status.md | 2 +- .../agentic-retrieval-integrity/040-status.md | 2 +- .../agentic-retrieval-integrity/041-status.md | 2 +- .../agentic-retrieval-integrity/042-status.md | 2 +- .../agentic-retrieval-integrity/043-status.md | 4 +- .../agentic-retrieval-integrity/044-status.md | 4 +- .../agentic-retrieval-integrity/045-status.md | 2 +- .../agentic-retrieval-integrity/046-status.md | 2 +- .../003-status.md | 2 +- .../001-status.md | 2 +- .../002-status.md | 2 +- .../003-status.md | 2 +- .../004-status.md | 2 +- .../005-status.md | 2 +- .../006-status.md | 2 +- .../007-status.md | 2 +- .../008-status.md | 2 +- .../code-duplication-consolidation/gate.md | 16 ++--- plans/closure/knowledge-delta/004-status.md | 2 +- plans/closure/knowledge-delta/005-status.md | 4 +- plans/closure/knowledge-delta/006-status.md | 4 +- plans/closure/knowledge-delta/007-status.md | 4 +- .../mcp-tool-surface-succession/001-status.md | 2 +- .../mcp-tool-surface-succession/002-status.md | 2 +- .../mcp-tool-surface-succession/003-status.md | 2 +- .../mcp-tool-surface-succession/004-status.md | 2 +- .../python-pypi-distribution/005-status.md | 2 +- plans/registry.md | 61 ++---------------- .../adaptive-fetch-routing-roadmap.md | 4 +- .../agentic-retrieval-integrity-roadmap.md | 40 ++++++------ .../browser-artifact-availability-roadmap.md | 4 +- .../code-duplication-consolidation-roadmap.md | 32 +++++----- .../knowledge-delta-corrective-addendum.md | 8 +-- plans/subsystems/knowledge-delta-roadmap.md | 8 +-- .../mcp-tool-surface-succession-roadmap.md | 16 ++--- src/challenge_replay/altcha.rs | 11 +--- src/challenge_replay/cache.rs | 10 +-- src/challenge_replay/mod.rs | 37 +---------- src/commands/fetch.rs | 16 +---- src/fetch/browser/classify.rs | 29 ++------- src/fetch/browser/lifecycle.rs | 14 +---- src/fetch/browser/navigate.rs | 24 +------ src/fetch/browser/types.rs | 6 +- src/fetch/challenge.rs | 10 +-- src/mcp/tools/batch_fetch.rs | 63 ++++--------------- src/mcp/tools/web_fetch.rs | 15 +---- src/meta/engines/mod.rs | 37 +++-------- src/meta/local_backend_tests.rs | 10 --- 103 files changed, 164 insertions(+), 413 deletions(-) rename plans/{ => archive}/implementation/adaptive-fetch-routing/002-batch-per-target-capability-parity.md (100%) rename plans/{ => archive}/implementation/adaptive-fetch-routing/003-opt-in-webpage-screenshot-artifacts.md (98%) rename plans/{ => archive}/implementation/agentic-retrieval-integrity/014-pass-cookie-lifetime-and-egress-binding.md (100%) rename plans/{ => archive}/implementation/agentic-retrieval-integrity/029-unified-fetch-tool-and-legacy-aliases.md (100%) rename plans/{ => archive}/implementation/agentic-retrieval-integrity/030-m014-solve-count-acceptance-reconciliation.md (100%) rename plans/{ => archive}/implementation/agentic-retrieval-integrity/031-fetch-path-challenge-solve-parity.md (100%) rename plans/{ => archive}/implementation/agentic-retrieval-integrity/032-altcha-on-the-general-fetch-path.md (100%) rename plans/{ => archive}/implementation/agentic-retrieval-integrity/033-fetch-side-pass-cookie-reuse.md (100%) rename plans/{ => archive}/implementation/agentic-retrieval-integrity/034-fetch-side-stale-pass-cookie-recovery.md (100%) rename plans/{ => archive}/implementation/agentic-retrieval-integrity/035-browser-challenge-completion.md (100%) rename plans/{ => archive}/implementation/agentic-retrieval-integrity/036-unified-fetch-repo-item-budget-and-outcome.md (100%) rename plans/{ => archive}/implementation/agentic-retrieval-integrity/037-local-repo-search-relevance-and-scope.md (100%) rename plans/{ => archive}/implementation/agentic-retrieval-integrity/038-security-search-native-advisory-routing.md (100%) rename plans/{ => archive}/implementation/agentic-retrieval-integrity/039-fetch-emitted-payload-budget.md (100%) rename plans/{ => archive}/implementation/agentic-retrieval-integrity/040-local-content-aware-candidate-generation.md (100%) rename plans/{ => archive}/implementation/agentic-retrieval-integrity/041-linked-worktree-identity-resolution.md (99%) rename plans/{ => archive}/implementation/agentic-retrieval-integrity/042-fetch-item-shape-diagnostics.md (98%) rename plans/{ => archive}/implementation/agentic-retrieval-integrity/043-local-repo-search-empty-result-determinism.md (98%) rename plans/{ => archive}/implementation/agentic-retrieval-integrity/044-challenge-solving-on-by-default.md (98%) rename plans/{ => archive}/implementation/agentic-retrieval-integrity/045-browser-fidelity-provider-access.md (100%) rename plans/{ => archive}/implementation/agentic-retrieval-integrity/046-fetch-browser-escalation-parity.md (100%) rename plans/{ => archive}/implementation/browser-artifact-availability/003-distribution-and-live-qualification.md (100%) rename plans/{ => archive}/implementation/browser-artifact-availability/004-m003-qualification-corrective-pass.md (95%) rename plans/{ => archive}/implementation/browser-artifact-availability/005-session-cap-initial-render-accounting.md (96%) rename plans/{ => archive}/implementation/code-duplication-consolidation/001-test-support-harness-and-default-arguments.md (100%) rename plans/{ => archive}/implementation/code-duplication-consolidation/002-provider-capability-declaration-compaction.md (100%) rename plans/{ => archive}/implementation/code-duplication-consolidation/003-engine-api-conformance-harness.md (100%) rename plans/{ => archive}/implementation/code-duplication-consolidation/004-shared-engine-json-transport.md (100%) rename plans/{ => archive}/implementation/code-duplication-consolidation/005-shared-fetch-escalation-seam.md (100%) rename plans/{ => archive}/implementation/code-duplication-consolidation/006-core-request-validation-helpers.md (100%) rename plans/{ => archive}/implementation/code-duplication-consolidation/007-one-repository-target-field-set.md (100%) rename plans/{ => archive}/implementation/code-duplication-consolidation/008-searchengine-implementation-macro.md (100%) rename plans/{ => archive}/implementation/knowledge-delta/004-brief-delta-production-and-honest-diagnostics.md (100%) rename plans/{ => archive}/implementation/knowledge-delta/005-verified-model-cutoff-coverage.md (100%) rename plans/{ => archive}/implementation/knowledge-delta/006-opt-in-index-onboarding-and-seeding.md (100%) rename plans/{ => archive}/implementation/knowledge-delta/007-live-discovery-quality-qualification.md (100%) rename plans/{ => archive}/implementation/mcp-tool-surface-succession/001-search-schema-single-sourcing.md (100%) rename plans/{ => archive}/implementation/mcp-tool-surface-succession/002-evidence-bundle-input-projection.md (100%) rename plans/{ => archive}/implementation/mcp-tool-surface-succession/003-tool-inventory-parity.md (100%) rename plans/{ => archive}/implementation/mcp-tool-surface-succession/004-repository-read-consolidation.md (100%) rename plans/{ => archive}/implementation/python-pypi-distribution/005-packaged-artifact-asset-completeness.md (100%) diff --git a/plans/002-long-term-roadmap.md b/plans/002-long-term-roadmap.md index b981ad0a..c2129477 100644 --- a/plans/002-long-term-roadmap.md +++ b/plans/002-long-term-roadmap.md @@ -104,7 +104,7 @@ source-driven topic discovery closed on exact candidate M001 for brief delta production and honest diagnostics, registered from a live default-configuration review on 2026-11-20 and closed on exact candidate `380a55cd7ea7c0b37dc6eff53851926e96e894d0`; its plan is -`plans/implementation/knowledge-delta/004-brief-delta-production-and-honest-diagnostics.md` +`plans/archive/implementation/knowledge-delta/004-brief-delta-production-and-honest-diagnostics.md` and its closure record is `plans/closure/knowledge-delta/004-status.md`. The three further correctives in `plans/subsystems/knowledge-delta-corrective-addendum.md` are closed on diff --git a/plans/implementation/adaptive-fetch-routing/002-batch-per-target-capability-parity.md b/plans/archive/implementation/adaptive-fetch-routing/002-batch-per-target-capability-parity.md similarity index 100% rename from plans/implementation/adaptive-fetch-routing/002-batch-per-target-capability-parity.md rename to plans/archive/implementation/adaptive-fetch-routing/002-batch-per-target-capability-parity.md diff --git a/plans/implementation/adaptive-fetch-routing/003-opt-in-webpage-screenshot-artifacts.md b/plans/archive/implementation/adaptive-fetch-routing/003-opt-in-webpage-screenshot-artifacts.md similarity index 98% rename from plans/implementation/adaptive-fetch-routing/003-opt-in-webpage-screenshot-artifacts.md rename to plans/archive/implementation/adaptive-fetch-routing/003-opt-in-webpage-screenshot-artifacts.md index f3a2f20e..ab519659 100644 --- a/plans/implementation/adaptive-fetch-routing/003-opt-in-webpage-screenshot-artifacts.md +++ b/plans/archive/implementation/adaptive-fetch-routing/003-opt-in-webpage-screenshot-artifacts.md @@ -5,7 +5,7 @@ Closure: `plans/closure/adaptive-fetch-routing/003-status.md` Source: `plans/subsystems/adaptive-fetch-routing-roadmap.md` M003 Primary class: capability Baseline: `b7f7497` (`feat/auto-20261117-044c4885`) -References: accepted `plans/adrs/ADR-0015-opt-in-webpage-screenshot-artifacts.md`; accepted ADR-0001 and ADR-0014; `plans/adrs/ADR-0008-pdf-extraction-fidelity-strategy.md`; `plans/subsystems/adaptive-fetch-routing-roadmap.md`; `plans/implementation/adaptive-fetch-routing/002-batch-per-target-capability-parity.md`; `plans/closure/adaptive-fetch-routing/002-status.md`; `architecture/fetch.md`; `architecture/mcp.md`; `src/mcp/tools/common.rs`; `src/mcp/server.rs`; `src/mcp/tools/web_fetch.rs`; `src/mcp/tools/batch_fetch_item.rs`. +References: accepted `plans/adrs/ADR-0015-opt-in-webpage-screenshot-artifacts.md`; accepted ADR-0001 and ADR-0014; `plans/adrs/ADR-0008-pdf-extraction-fidelity-strategy.md`; `plans/subsystems/adaptive-fetch-routing-roadmap.md`; `plans/archive/implementation/adaptive-fetch-routing/002-batch-per-target-capability-parity.md`; `plans/closure/adaptive-fetch-routing/002-status.md`; `architecture/fetch.md`; `architecture/mcp.md`; `src/mcp/tools/common.rs`; `src/mcp/server.rs`; `src/mcp/tools/web_fetch.rs`; `src/mcp/tools/batch_fetch_item.rs`. Dependencies: M002 is closed (`plans/closure/adaptive-fetch-routing/002-status.md`, candidate `24f045729f8409dadc96b4c2455253d8a9c7b6ec`). Interface: ADR-0014 browser behavior. ADR-0015 is accepted and authorizes the narrow request/result contract and numeric caps. The feasibility preflight was static only; deterministic in-process image serialization is covered by the implementation tests, and live browser fidelity remains unrun as recorded in the closure. ## Objective diff --git a/plans/implementation/agentic-retrieval-integrity/014-pass-cookie-lifetime-and-egress-binding.md b/plans/archive/implementation/agentic-retrieval-integrity/014-pass-cookie-lifetime-and-egress-binding.md similarity index 100% rename from plans/implementation/agentic-retrieval-integrity/014-pass-cookie-lifetime-and-egress-binding.md rename to plans/archive/implementation/agentic-retrieval-integrity/014-pass-cookie-lifetime-and-egress-binding.md diff --git a/plans/implementation/agentic-retrieval-integrity/029-unified-fetch-tool-and-legacy-aliases.md b/plans/archive/implementation/agentic-retrieval-integrity/029-unified-fetch-tool-and-legacy-aliases.md similarity index 100% rename from plans/implementation/agentic-retrieval-integrity/029-unified-fetch-tool-and-legacy-aliases.md rename to plans/archive/implementation/agentic-retrieval-integrity/029-unified-fetch-tool-and-legacy-aliases.md diff --git a/plans/implementation/agentic-retrieval-integrity/030-m014-solve-count-acceptance-reconciliation.md b/plans/archive/implementation/agentic-retrieval-integrity/030-m014-solve-count-acceptance-reconciliation.md similarity index 100% rename from plans/implementation/agentic-retrieval-integrity/030-m014-solve-count-acceptance-reconciliation.md rename to plans/archive/implementation/agentic-retrieval-integrity/030-m014-solve-count-acceptance-reconciliation.md diff --git a/plans/implementation/agentic-retrieval-integrity/031-fetch-path-challenge-solve-parity.md b/plans/archive/implementation/agentic-retrieval-integrity/031-fetch-path-challenge-solve-parity.md similarity index 100% rename from plans/implementation/agentic-retrieval-integrity/031-fetch-path-challenge-solve-parity.md rename to plans/archive/implementation/agentic-retrieval-integrity/031-fetch-path-challenge-solve-parity.md diff --git a/plans/implementation/agentic-retrieval-integrity/032-altcha-on-the-general-fetch-path.md b/plans/archive/implementation/agentic-retrieval-integrity/032-altcha-on-the-general-fetch-path.md similarity index 100% rename from plans/implementation/agentic-retrieval-integrity/032-altcha-on-the-general-fetch-path.md rename to plans/archive/implementation/agentic-retrieval-integrity/032-altcha-on-the-general-fetch-path.md diff --git a/plans/implementation/agentic-retrieval-integrity/033-fetch-side-pass-cookie-reuse.md b/plans/archive/implementation/agentic-retrieval-integrity/033-fetch-side-pass-cookie-reuse.md similarity index 100% rename from plans/implementation/agentic-retrieval-integrity/033-fetch-side-pass-cookie-reuse.md rename to plans/archive/implementation/agentic-retrieval-integrity/033-fetch-side-pass-cookie-reuse.md diff --git a/plans/implementation/agentic-retrieval-integrity/034-fetch-side-stale-pass-cookie-recovery.md b/plans/archive/implementation/agentic-retrieval-integrity/034-fetch-side-stale-pass-cookie-recovery.md similarity index 100% rename from plans/implementation/agentic-retrieval-integrity/034-fetch-side-stale-pass-cookie-recovery.md rename to plans/archive/implementation/agentic-retrieval-integrity/034-fetch-side-stale-pass-cookie-recovery.md diff --git a/plans/implementation/agentic-retrieval-integrity/035-browser-challenge-completion.md b/plans/archive/implementation/agentic-retrieval-integrity/035-browser-challenge-completion.md similarity index 100% rename from plans/implementation/agentic-retrieval-integrity/035-browser-challenge-completion.md rename to plans/archive/implementation/agentic-retrieval-integrity/035-browser-challenge-completion.md diff --git a/plans/implementation/agentic-retrieval-integrity/036-unified-fetch-repo-item-budget-and-outcome.md b/plans/archive/implementation/agentic-retrieval-integrity/036-unified-fetch-repo-item-budget-and-outcome.md similarity index 100% rename from plans/implementation/agentic-retrieval-integrity/036-unified-fetch-repo-item-budget-and-outcome.md rename to plans/archive/implementation/agentic-retrieval-integrity/036-unified-fetch-repo-item-budget-and-outcome.md diff --git a/plans/implementation/agentic-retrieval-integrity/037-local-repo-search-relevance-and-scope.md b/plans/archive/implementation/agentic-retrieval-integrity/037-local-repo-search-relevance-and-scope.md similarity index 100% rename from plans/implementation/agentic-retrieval-integrity/037-local-repo-search-relevance-and-scope.md rename to plans/archive/implementation/agentic-retrieval-integrity/037-local-repo-search-relevance-and-scope.md diff --git a/plans/implementation/agentic-retrieval-integrity/038-security-search-native-advisory-routing.md b/plans/archive/implementation/agentic-retrieval-integrity/038-security-search-native-advisory-routing.md similarity index 100% rename from plans/implementation/agentic-retrieval-integrity/038-security-search-native-advisory-routing.md rename to plans/archive/implementation/agentic-retrieval-integrity/038-security-search-native-advisory-routing.md diff --git a/plans/implementation/agentic-retrieval-integrity/039-fetch-emitted-payload-budget.md b/plans/archive/implementation/agentic-retrieval-integrity/039-fetch-emitted-payload-budget.md similarity index 100% rename from plans/implementation/agentic-retrieval-integrity/039-fetch-emitted-payload-budget.md rename to plans/archive/implementation/agentic-retrieval-integrity/039-fetch-emitted-payload-budget.md diff --git a/plans/implementation/agentic-retrieval-integrity/040-local-content-aware-candidate-generation.md b/plans/archive/implementation/agentic-retrieval-integrity/040-local-content-aware-candidate-generation.md similarity index 100% rename from plans/implementation/agentic-retrieval-integrity/040-local-content-aware-candidate-generation.md rename to plans/archive/implementation/agentic-retrieval-integrity/040-local-content-aware-candidate-generation.md diff --git a/plans/implementation/agentic-retrieval-integrity/041-linked-worktree-identity-resolution.md b/plans/archive/implementation/agentic-retrieval-integrity/041-linked-worktree-identity-resolution.md similarity index 99% rename from plans/implementation/agentic-retrieval-integrity/041-linked-worktree-identity-resolution.md rename to plans/archive/implementation/agentic-retrieval-integrity/041-linked-worktree-identity-resolution.md index 7c140025..2faa353b 100644 --- a/plans/implementation/agentic-retrieval-integrity/041-linked-worktree-identity-resolution.md +++ b/plans/archive/implementation/agentic-retrieval-integrity/041-linked-worktree-identity-resolution.md @@ -12,7 +12,7 @@ accepted ADR-0016 (unified fetch and legacy aliases), and the local workspace bo References: `plans/000-long-term-specification.md` §2 and §4; `plans/001-terminology-and-domain-model.md` §3; `plans/003-planning-process.md` §7; `plans/subsystems/agentic-retrieval-integrity-roadmap.md` M037, M040; -original plan `plans/implementation/agentic-retrieval-integrity/037-local-repo-search-relevance-and-scope.md`; +original plan `plans/archive/implementation/agentic-retrieval-integrity/037-local-repo-search-relevance-and-scope.md`; original closure `plans/closure/agentic-retrieval-integrity/037-status.md`; `architecture/local-workspace.md`. diff --git a/plans/implementation/agentic-retrieval-integrity/042-fetch-item-shape-diagnostics.md b/plans/archive/implementation/agentic-retrieval-integrity/042-fetch-item-shape-diagnostics.md similarity index 98% rename from plans/implementation/agentic-retrieval-integrity/042-fetch-item-shape-diagnostics.md rename to plans/archive/implementation/agentic-retrieval-integrity/042-fetch-item-shape-diagnostics.md index 259d975d..3c0d36a9 100644 --- a/plans/implementation/agentic-retrieval-integrity/042-fetch-item-shape-diagnostics.md +++ b/plans/archive/implementation/agentic-retrieval-integrity/042-fetch-item-shape-diagnostics.md @@ -10,7 +10,7 @@ ADR-0016 (unified fetch tool and legacy aliases). No new ADR. References: `plans/000-long-term-specification.md` §2; `plans/003-planning-process.md` §7; `plans/subsystems/agentic-retrieval-integrity-roadmap.md` M029, M036, M039; -original plan `plans/implementation/agentic-retrieval-integrity/029-unified-fetch-tool-and-legacy-aliases.md`; +original plan `plans/archive/implementation/agentic-retrieval-integrity/029-unified-fetch-tool-and-legacy-aliases.md`; original closure `plans/closure/agentic-retrieval-integrity/029-status.md`; `architecture/mcp.md`; `docs/tool-matrix.md`. diff --git a/plans/implementation/agentic-retrieval-integrity/043-local-repo-search-empty-result-determinism.md b/plans/archive/implementation/agentic-retrieval-integrity/043-local-repo-search-empty-result-determinism.md similarity index 98% rename from plans/implementation/agentic-retrieval-integrity/043-local-repo-search-empty-result-determinism.md rename to plans/archive/implementation/agentic-retrieval-integrity/043-local-repo-search-empty-result-determinism.md index 579e2b03..bdbc22e5 100644 --- a/plans/implementation/agentic-retrieval-integrity/043-local-repo-search-empty-result-determinism.md +++ b/plans/archive/implementation/agentic-retrieval-integrity/043-local-repo-search-empty-result-determinism.md @@ -10,7 +10,7 @@ the local workspace boundary in `architecture/local-workspace.md`. No new ADR. References: `plans/000-long-term-specification.md` §2; `plans/003-planning-process.md` §7; `plans/subsystems/agentic-retrieval-integrity-roadmap.md` M037, M040, M041; -original plans `plans/implementation/agentic-retrieval-integrity/037-local-repo-search-relevance-and-scope.md` +original plans `plans/archive/implementation/agentic-retrieval-integrity/037-local-repo-search-relevance-and-scope.md` and `040-local-content-aware-candidate-generation.md`; closures `plans/closure/agentic-retrieval-integrity/037-status.md` and `040-status.md`; `architecture/local-workspace.md`; `docs/test-inventory.md`. diff --git a/plans/implementation/agentic-retrieval-integrity/044-challenge-solving-on-by-default.md b/plans/archive/implementation/agentic-retrieval-integrity/044-challenge-solving-on-by-default.md similarity index 98% rename from plans/implementation/agentic-retrieval-integrity/044-challenge-solving-on-by-default.md rename to plans/archive/implementation/agentic-retrieval-integrity/044-challenge-solving-on-by-default.md index 4a94d4e7..f5c47ffc 100644 --- a/plans/implementation/agentic-retrieval-integrity/044-challenge-solving-on-by-default.md +++ b/plans/archive/implementation/agentic-retrieval-integrity/044-challenge-solving-on-by-default.md @@ -9,7 +9,7 @@ Decision authority: accepted ADR-0019 §4 ("Solving is on by default, bounded"). References: `plans/000-long-term-specification.md` §2; `plans/003-planning-process.md` §7; `plans/adrs/ADR-0019-broadened-challenge-coverage-and-browser-identity.md` §4 and §7; -`plans/implementation/agentic-retrieval-integrity/035-browser-challenge-completion.md`; +`plans/archive/implementation/agentic-retrieval-integrity/035-browser-challenge-completion.md`; `plans/closure/agentic-retrieval-integrity/035-status.md`; `docs/features.md` § Bounded Challenge Solving; `docs/config.md` § Challenge Solving. diff --git a/plans/implementation/agentic-retrieval-integrity/045-browser-fidelity-provider-access.md b/plans/archive/implementation/agentic-retrieval-integrity/045-browser-fidelity-provider-access.md similarity index 100% rename from plans/implementation/agentic-retrieval-integrity/045-browser-fidelity-provider-access.md rename to plans/archive/implementation/agentic-retrieval-integrity/045-browser-fidelity-provider-access.md diff --git a/plans/implementation/agentic-retrieval-integrity/046-fetch-browser-escalation-parity.md b/plans/archive/implementation/agentic-retrieval-integrity/046-fetch-browser-escalation-parity.md similarity index 100% rename from plans/implementation/agentic-retrieval-integrity/046-fetch-browser-escalation-parity.md rename to plans/archive/implementation/agentic-retrieval-integrity/046-fetch-browser-escalation-parity.md diff --git a/plans/implementation/browser-artifact-availability/003-distribution-and-live-qualification.md b/plans/archive/implementation/browser-artifact-availability/003-distribution-and-live-qualification.md similarity index 100% rename from plans/implementation/browser-artifact-availability/003-distribution-and-live-qualification.md rename to plans/archive/implementation/browser-artifact-availability/003-distribution-and-live-qualification.md diff --git a/plans/implementation/browser-artifact-availability/004-m003-qualification-corrective-pass.md b/plans/archive/implementation/browser-artifact-availability/004-m003-qualification-corrective-pass.md similarity index 95% rename from plans/implementation/browser-artifact-availability/004-m003-qualification-corrective-pass.md rename to plans/archive/implementation/browser-artifact-availability/004-m003-qualification-corrective-pass.md index d10b4614..022e9b25 100644 --- a/plans/implementation/browser-artifact-availability/004-m003-qualification-corrective-pass.md +++ b/plans/archive/implementation/browser-artifact-availability/004-m003-qualification-corrective-pass.md @@ -4,7 +4,7 @@ Status: closed (corrective criteria and full exact-candidate M003 requalificatio Source: `plans/subsystems/browser-artifact-availability-roadmap.md` M004 Primary class: infrastructure and corrective evidence Baseline: `f76851324f917999152871f49d2302bef87d437d` (branch `feat/auto-20261110-0a674cdc`) -References: `plans/implementation/browser-artifact-availability/003-distribution-and-live-qualification.md`; `plans/closure/browser-artifact-availability/003-status.md`; `plans/adrs/ADR-0014-browser-artifact-availability-and-render-bounds.md`; `plans/subsystems/python-pypi-distribution-roadmap.md` M003; `plans/closure/python-pypi-distribution/003-status.md`; `plans/subsystems/eggpack-release-adoption-roadmap.md` M001; `plans/closure/eggpack-release-adoption/001-status.md`. +References: `plans/archive/implementation/browser-artifact-availability/003-distribution-and-live-qualification.md`; `plans/closure/browser-artifact-availability/003-status.md`; `plans/adrs/ADR-0014-browser-artifact-availability-and-render-bounds.md`; `plans/subsystems/python-pypi-distribution-roadmap.md` M003; `plans/closure/python-pypi-distribution/003-status.md`; `plans/subsystems/eggpack-release-adoption-roadmap.md` M001; `plans/closure/eggpack-release-adoption/001-status.md`. Dependencies: Interface: M003's unchanged ten-tool schemas and qualification contract. Operational: the approved publicly reachable HTTPS origin for synthetic fixture pages, used during requalification. The full M003 acceptance suite is now requalified on exact candidate `fb99a43734bd4f2329bdfa2ba4315b403c2cd985`; evidence is in the M003 closure record. ## Objective diff --git a/plans/implementation/browser-artifact-availability/005-session-cap-initial-render-accounting.md b/plans/archive/implementation/browser-artifact-availability/005-session-cap-initial-render-accounting.md similarity index 96% rename from plans/implementation/browser-artifact-availability/005-session-cap-initial-render-accounting.md rename to plans/archive/implementation/browser-artifact-availability/005-session-cap-initial-render-accounting.md index 56aaf062..4eff9daa 100644 --- a/plans/implementation/browser-artifact-availability/005-session-cap-initial-render-accounting.md +++ b/plans/archive/implementation/browser-artifact-availability/005-session-cap-initial-render-accounting.md @@ -4,7 +4,7 @@ Status: closed (corrective criteria and full exact-candidate M003 requalificatio Source: `plans/subsystems/browser-artifact-availability-roadmap.md` M005 Primary class: infrastructure correctness Baseline: `8faa0f15a40f336f361d523c9b45b3fe3b0106ad` (branch `feat/auto-20261110-0a674cdc`) -References: `plans/implementation/browser-artifact-availability/001-render-lifecycle-bounds.md` (archived); `plans/closure/browser-artifact-availability/001-status.md`; `plans/implementation/browser-artifact-availability/003-distribution-and-live-qualification.md`; `plans/implementation/browser-artifact-availability/004-m003-qualification-corrective-pass.md`; ADR-0014 § Decision 7 and § Verification. +References: `plans/implementation/browser-artifact-availability/001-render-lifecycle-bounds.md` (archived); `plans/closure/browser-artifact-availability/001-status.md`; `plans/archive/implementation/browser-artifact-availability/003-distribution-and-live-qualification.md`; `plans/archive/implementation/browser-artifact-availability/004-m003-qualification-corrective-pass.md`; ADR-0014 § Decision 7 and § Verification. Dependencies: Interface: M001's `max_requests` session-cap contract. Operational: M003 exact-candidate requalification after this correction; the full M003 acceptance suite is now complete on `fb99a43734bd4f2329bdfa2ba4315b403c2cd985`, with evidence in the M003 closure record. ## Objective diff --git a/plans/implementation/code-duplication-consolidation/001-test-support-harness-and-default-arguments.md b/plans/archive/implementation/code-duplication-consolidation/001-test-support-harness-and-default-arguments.md similarity index 100% rename from plans/implementation/code-duplication-consolidation/001-test-support-harness-and-default-arguments.md rename to plans/archive/implementation/code-duplication-consolidation/001-test-support-harness-and-default-arguments.md diff --git a/plans/implementation/code-duplication-consolidation/002-provider-capability-declaration-compaction.md b/plans/archive/implementation/code-duplication-consolidation/002-provider-capability-declaration-compaction.md similarity index 100% rename from plans/implementation/code-duplication-consolidation/002-provider-capability-declaration-compaction.md rename to plans/archive/implementation/code-duplication-consolidation/002-provider-capability-declaration-compaction.md diff --git a/plans/implementation/code-duplication-consolidation/003-engine-api-conformance-harness.md b/plans/archive/implementation/code-duplication-consolidation/003-engine-api-conformance-harness.md similarity index 100% rename from plans/implementation/code-duplication-consolidation/003-engine-api-conformance-harness.md rename to plans/archive/implementation/code-duplication-consolidation/003-engine-api-conformance-harness.md diff --git a/plans/implementation/code-duplication-consolidation/004-shared-engine-json-transport.md b/plans/archive/implementation/code-duplication-consolidation/004-shared-engine-json-transport.md similarity index 100% rename from plans/implementation/code-duplication-consolidation/004-shared-engine-json-transport.md rename to plans/archive/implementation/code-duplication-consolidation/004-shared-engine-json-transport.md diff --git a/plans/implementation/code-duplication-consolidation/005-shared-fetch-escalation-seam.md b/plans/archive/implementation/code-duplication-consolidation/005-shared-fetch-escalation-seam.md similarity index 100% rename from plans/implementation/code-duplication-consolidation/005-shared-fetch-escalation-seam.md rename to plans/archive/implementation/code-duplication-consolidation/005-shared-fetch-escalation-seam.md diff --git a/plans/implementation/code-duplication-consolidation/006-core-request-validation-helpers.md b/plans/archive/implementation/code-duplication-consolidation/006-core-request-validation-helpers.md similarity index 100% rename from plans/implementation/code-duplication-consolidation/006-core-request-validation-helpers.md rename to plans/archive/implementation/code-duplication-consolidation/006-core-request-validation-helpers.md diff --git a/plans/implementation/code-duplication-consolidation/007-one-repository-target-field-set.md b/plans/archive/implementation/code-duplication-consolidation/007-one-repository-target-field-set.md similarity index 100% rename from plans/implementation/code-duplication-consolidation/007-one-repository-target-field-set.md rename to plans/archive/implementation/code-duplication-consolidation/007-one-repository-target-field-set.md diff --git a/plans/implementation/code-duplication-consolidation/008-searchengine-implementation-macro.md b/plans/archive/implementation/code-duplication-consolidation/008-searchengine-implementation-macro.md similarity index 100% rename from plans/implementation/code-duplication-consolidation/008-searchengine-implementation-macro.md rename to plans/archive/implementation/code-duplication-consolidation/008-searchengine-implementation-macro.md diff --git a/plans/implementation/knowledge-delta/004-brief-delta-production-and-honest-diagnostics.md b/plans/archive/implementation/knowledge-delta/004-brief-delta-production-and-honest-diagnostics.md similarity index 100% rename from plans/implementation/knowledge-delta/004-brief-delta-production-and-honest-diagnostics.md rename to plans/archive/implementation/knowledge-delta/004-brief-delta-production-and-honest-diagnostics.md diff --git a/plans/implementation/knowledge-delta/005-verified-model-cutoff-coverage.md b/plans/archive/implementation/knowledge-delta/005-verified-model-cutoff-coverage.md similarity index 100% rename from plans/implementation/knowledge-delta/005-verified-model-cutoff-coverage.md rename to plans/archive/implementation/knowledge-delta/005-verified-model-cutoff-coverage.md diff --git a/plans/implementation/knowledge-delta/006-opt-in-index-onboarding-and-seeding.md b/plans/archive/implementation/knowledge-delta/006-opt-in-index-onboarding-and-seeding.md similarity index 100% rename from plans/implementation/knowledge-delta/006-opt-in-index-onboarding-and-seeding.md rename to plans/archive/implementation/knowledge-delta/006-opt-in-index-onboarding-and-seeding.md diff --git a/plans/implementation/knowledge-delta/007-live-discovery-quality-qualification.md b/plans/archive/implementation/knowledge-delta/007-live-discovery-quality-qualification.md similarity index 100% rename from plans/implementation/knowledge-delta/007-live-discovery-quality-qualification.md rename to plans/archive/implementation/knowledge-delta/007-live-discovery-quality-qualification.md diff --git a/plans/implementation/mcp-tool-surface-succession/001-search-schema-single-sourcing.md b/plans/archive/implementation/mcp-tool-surface-succession/001-search-schema-single-sourcing.md similarity index 100% rename from plans/implementation/mcp-tool-surface-succession/001-search-schema-single-sourcing.md rename to plans/archive/implementation/mcp-tool-surface-succession/001-search-schema-single-sourcing.md diff --git a/plans/implementation/mcp-tool-surface-succession/002-evidence-bundle-input-projection.md b/plans/archive/implementation/mcp-tool-surface-succession/002-evidence-bundle-input-projection.md similarity index 100% rename from plans/implementation/mcp-tool-surface-succession/002-evidence-bundle-input-projection.md rename to plans/archive/implementation/mcp-tool-surface-succession/002-evidence-bundle-input-projection.md diff --git a/plans/implementation/mcp-tool-surface-succession/003-tool-inventory-parity.md b/plans/archive/implementation/mcp-tool-surface-succession/003-tool-inventory-parity.md similarity index 100% rename from plans/implementation/mcp-tool-surface-succession/003-tool-inventory-parity.md rename to plans/archive/implementation/mcp-tool-surface-succession/003-tool-inventory-parity.md diff --git a/plans/implementation/mcp-tool-surface-succession/004-repository-read-consolidation.md b/plans/archive/implementation/mcp-tool-surface-succession/004-repository-read-consolidation.md similarity index 100% rename from plans/implementation/mcp-tool-surface-succession/004-repository-read-consolidation.md rename to plans/archive/implementation/mcp-tool-surface-succession/004-repository-read-consolidation.md diff --git a/plans/implementation/python-pypi-distribution/005-packaged-artifact-asset-completeness.md b/plans/archive/implementation/python-pypi-distribution/005-packaged-artifact-asset-completeness.md similarity index 100% rename from plans/implementation/python-pypi-distribution/005-packaged-artifact-asset-completeness.md rename to plans/archive/implementation/python-pypi-distribution/005-packaged-artifact-asset-completeness.md diff --git a/plans/closure/adaptive-fetch-routing/002-status.md b/plans/closure/adaptive-fetch-routing/002-status.md index c5ee0eb9..6cb5080e 100644 --- a/plans/closure/adaptive-fetch-routing/002-status.md +++ b/plans/closure/adaptive-fetch-routing/002-status.md @@ -4,7 +4,7 @@ Status: closed Recommendation: closed; every M002 acceptance criterion passes on the exact candidate. The candidate is local and unpushed; no hosted CI result is claimed. Implementation candidate: `24f045729f8409dadc96b4c2455253d8a9c7b6ec` Baseline: `b7f74971c09017ad139084db7ddbfa0508d1871a` -Plan: `plans/implementation/adaptive-fetch-routing/002-batch-per-target-capability-parity.md` +Plan: `plans/archive/implementation/adaptive-fetch-routing/002-batch-per-target-capability-parity.md` Roadmap: `plans/subsystems/adaptive-fetch-routing-roadmap.md` M002 Related: ADR-0001, ADR-0008, ADR-0011, ADR-0014; `plans/implementation/pdf-ingestion-fidelity/008-local-workspace-and-batch-ingestion.md` diff --git a/plans/closure/adaptive-fetch-routing/003-status.md b/plans/closure/adaptive-fetch-routing/003-status.md index bf7b8319..203243ff 100644 --- a/plans/closure/adaptive-fetch-routing/003-status.md +++ b/plans/closure/adaptive-fetch-routing/003-status.md @@ -4,7 +4,7 @@ Status: closed Recommendation: closed; the accepted M003 criteria pass on the exact implementation candidate. Implementation candidate: `59ff64ad00940573ee520ecf19d7b5c0abcb1c87` Baseline: `b7f74971c09017ad139084db7ddbfa0508d1871a` -Plan: `plans/implementation/adaptive-fetch-routing/003-opt-in-webpage-screenshot-artifacts.md` +Plan: `plans/archive/implementation/adaptive-fetch-routing/003-opt-in-webpage-screenshot-artifacts.md` Roadmap: `plans/subsystems/adaptive-fetch-routing-roadmap.md` M003 Accepted decision: `plans/adrs/ADR-0015-opt-in-webpage-screenshot-artifacts.md` diff --git a/plans/closure/agentic-retrieval-integrity/014-status.md b/plans/closure/agentic-retrieval-integrity/014-status.md index d0131cdc..bc6da760 100644 --- a/plans/closure/agentic-retrieval-integrity/014-status.md +++ b/plans/closure/agentic-retrieval-integrity/014-status.md @@ -2,7 +2,7 @@ Status: closed (M030 path 1; solve-count clause superseded) -Source plan: `plans/implementation/agentic-retrieval-integrity/014-pass-cookie-lifetime-and-egress-binding.md` +Source plan: `plans/archive/implementation/agentic-retrieval-integrity/014-pass-cookie-lifetime-and-egress-binding.md` Roadmap: `plans/subsystems/agentic-retrieval-integrity-roadmap.md` diff --git a/plans/closure/agentic-retrieval-integrity/029-status.md b/plans/closure/agentic-retrieval-integrity/029-status.md index 144e4573..834776d9 100644 --- a/plans/closure/agentic-retrieval-integrity/029-status.md +++ b/plans/closure/agentic-retrieval-integrity/029-status.md @@ -2,7 +2,7 @@ Status: closed -Source plan: plans/implementation/agentic-retrieval-integrity/029-unified-fetch-tool-and-legacy-aliases.md +Source plan: plans/archive/implementation/agentic-retrieval-integrity/029-unified-fetch-tool-and-legacy-aliases.md Roadmap: plans/subsystems/agentic-retrieval-integrity-roadmap.md @@ -36,5 +36,5 @@ The canonical inventory replaces advertised web_fetch and batch_fetch with fetch - The implementation candidate is `3416da6231702dcabc22b2c8e32e94dd88cb20e4`; the closure record and status updates are committed separately as required. No push was made. - Pyright could not execute due to the machine's missing libsimdjson.33.dylib. Python compileall, wheel build/install, and installed-wheel pytest passed; type checking remains unverified. -- M014 remains conditionally closed. Startpage's captured approximately 20-minute Expires lifetime exceeds its default 240-second ceiling; Mojeek's captured response publishes no lifetime. Avoiding a dead-cookie replay is stale-token avoidance, not evidence of a solve-count reduction. M030 is proposed to reconcile the acceptance criterion; see `plans/closure/agentic-retrieval-integrity/014-status.md` and `plans/implementation/agentic-retrieval-integrity/030-m014-solve-count-acceptance-reconciliation.md`. +- M014 remains conditionally closed. Startpage's captured approximately 20-minute Expires lifetime exceeds its default 240-second ceiling; Mojeek's captured response publishes no lifetime. Avoiding a dead-cookie replay is stale-token avoidance, not evidence of a solve-count reduction. M030 is proposed to reconcile the acceptance criterion; see `plans/closure/agentic-retrieval-integrity/014-status.md` and `plans/archive/implementation/agentic-retrieval-integrity/030-m014-solve-count-acceptance-reconciliation.md`. - No change was made to the closed tool-surface-consolidation roadmap, repo_fetch, or other non-fetch tool contracts. diff --git a/plans/closure/agentic-retrieval-integrity/030-status.md b/plans/closure/agentic-retrieval-integrity/030-status.md index 5aefb57f..1afec373 100644 --- a/plans/closure/agentic-retrieval-integrity/030-status.md +++ b/plans/closure/agentic-retrieval-integrity/030-status.md @@ -2,7 +2,7 @@ Status: closed -Source plan: `plans/implementation/agentic-retrieval-integrity/030-m014-solve-count-acceptance-reconciliation.md` +Source plan: `plans/archive/implementation/agentic-retrieval-integrity/030-m014-solve-count-acceptance-reconciliation.md` Roadmap: `plans/subsystems/agentic-retrieval-integrity-roadmap.md` diff --git a/plans/closure/agentic-retrieval-integrity/031-status.md b/plans/closure/agentic-retrieval-integrity/031-status.md index 6c6b8000..3a877089 100644 --- a/plans/closure/agentic-retrieval-integrity/031-status.md +++ b/plans/closure/agentic-retrieval-integrity/031-status.md @@ -2,7 +2,7 @@ Status: closed -Source plan: `plans/implementation/agentic-retrieval-integrity/031-fetch-path-challenge-solve-parity.md` +Source plan: `plans/archive/implementation/agentic-retrieval-integrity/031-fetch-path-challenge-solve-parity.md` Roadmap: `plans/subsystems/agentic-retrieval-integrity-roadmap.md` diff --git a/plans/closure/agentic-retrieval-integrity/032-status.md b/plans/closure/agentic-retrieval-integrity/032-status.md index a770203c..602fb621 100644 --- a/plans/closure/agentic-retrieval-integrity/032-status.md +++ b/plans/closure/agentic-retrieval-integrity/032-status.md @@ -2,7 +2,7 @@ Status: closed -Source plan: `plans/implementation/agentic-retrieval-integrity/032-altcha-on-the-general-fetch-path.md` +Source plan: `plans/archive/implementation/agentic-retrieval-integrity/032-altcha-on-the-general-fetch-path.md` Roadmap: `plans/subsystems/agentic-retrieval-integrity-roadmap.md` diff --git a/plans/closure/agentic-retrieval-integrity/033-status.md b/plans/closure/agentic-retrieval-integrity/033-status.md index 46de15d5..0643780e 100644 --- a/plans/closure/agentic-retrieval-integrity/033-status.md +++ b/plans/closure/agentic-retrieval-integrity/033-status.md @@ -2,7 +2,7 @@ Status: closed -Source plan: `plans/implementation/agentic-retrieval-integrity/033-fetch-side-pass-cookie-reuse.md` +Source plan: `plans/archive/implementation/agentic-retrieval-integrity/033-fetch-side-pass-cookie-reuse.md` Roadmap: `plans/subsystems/agentic-retrieval-integrity-roadmap.md` diff --git a/plans/closure/agentic-retrieval-integrity/034-status.md b/plans/closure/agentic-retrieval-integrity/034-status.md index 1c3a4732..26e96f0f 100644 --- a/plans/closure/agentic-retrieval-integrity/034-status.md +++ b/plans/closure/agentic-retrieval-integrity/034-status.md @@ -2,7 +2,7 @@ Status: closed -Source plan: `plans/implementation/agentic-retrieval-integrity/034-fetch-side-stale-pass-cookie-recovery.md` +Source plan: `plans/archive/implementation/agentic-retrieval-integrity/034-fetch-side-stale-pass-cookie-recovery.md` Roadmap: `plans/subsystems/agentic-retrieval-integrity-roadmap.md` diff --git a/plans/closure/agentic-retrieval-integrity/035-status.md b/plans/closure/agentic-retrieval-integrity/035-status.md index c8e14197..8c2c4370 100644 --- a/plans/closure/agentic-retrieval-integrity/035-status.md +++ b/plans/closure/agentic-retrieval-integrity/035-status.md @@ -2,7 +2,7 @@ Status: closed -Source plan: `plans/implementation/agentic-retrieval-integrity/035-browser-challenge-completion.md` +Source plan: `plans/archive/implementation/agentic-retrieval-integrity/035-browser-challenge-completion.md` Roadmap: `plans/subsystems/agentic-retrieval-integrity-roadmap.md` diff --git a/plans/closure/agentic-retrieval-integrity/036-status.md b/plans/closure/agentic-retrieval-integrity/036-status.md index a91df7cc..b52ee5d6 100644 --- a/plans/closure/agentic-retrieval-integrity/036-status.md +++ b/plans/closure/agentic-retrieval-integrity/036-status.md @@ -2,7 +2,7 @@ Status: closed -Source plan: `plans/implementation/agentic-retrieval-integrity/036-unified-fetch-repo-item-budget-and-outcome.md` +Source plan: `plans/archive/implementation/agentic-retrieval-integrity/036-unified-fetch-repo-item-budget-and-outcome.md` Roadmap: `plans/subsystems/agentic-retrieval-integrity-roadmap.md` diff --git a/plans/closure/agentic-retrieval-integrity/037-status.md b/plans/closure/agentic-retrieval-integrity/037-status.md index 205760c8..bb7b028d 100644 --- a/plans/closure/agentic-retrieval-integrity/037-status.md +++ b/plans/closure/agentic-retrieval-integrity/037-status.md @@ -2,7 +2,7 @@ Status: closed -Source plan: `plans/implementation/agentic-retrieval-integrity/037-local-repo-search-relevance-and-scope.md` +Source plan: `plans/archive/implementation/agentic-retrieval-integrity/037-local-repo-search-relevance-and-scope.md` Roadmap: `plans/subsystems/agentic-retrieval-integrity-roadmap.md` diff --git a/plans/closure/agentic-retrieval-integrity/038-status.md b/plans/closure/agentic-retrieval-integrity/038-status.md index 4eb588e3..bef8d184 100644 --- a/plans/closure/agentic-retrieval-integrity/038-status.md +++ b/plans/closure/agentic-retrieval-integrity/038-status.md @@ -2,7 +2,7 @@ Status: closed -Source plan: `plans/implementation/agentic-retrieval-integrity/038-security-search-native-advisory-routing.md` +Source plan: `plans/archive/implementation/agentic-retrieval-integrity/038-security-search-native-advisory-routing.md` Roadmap: `plans/subsystems/agentic-retrieval-integrity-roadmap.md` diff --git a/plans/closure/agentic-retrieval-integrity/039-status.md b/plans/closure/agentic-retrieval-integrity/039-status.md index 0e9fd20a..ddaf0f79 100644 --- a/plans/closure/agentic-retrieval-integrity/039-status.md +++ b/plans/closure/agentic-retrieval-integrity/039-status.md @@ -2,7 +2,7 @@ Status: closed -Source plan: `plans/implementation/agentic-retrieval-integrity/039-fetch-emitted-payload-budget.md` +Source plan: `plans/archive/implementation/agentic-retrieval-integrity/039-fetch-emitted-payload-budget.md` Roadmap: `plans/subsystems/agentic-retrieval-integrity-roadmap.md` diff --git a/plans/closure/agentic-retrieval-integrity/040-status.md b/plans/closure/agentic-retrieval-integrity/040-status.md index f20439eb..2d8e1d42 100644 --- a/plans/closure/agentic-retrieval-integrity/040-status.md +++ b/plans/closure/agentic-retrieval-integrity/040-status.md @@ -2,7 +2,7 @@ Status: closed -Source plan: `plans/implementation/agentic-retrieval-integrity/040-local-content-aware-candidate-generation.md` +Source plan: `plans/archive/implementation/agentic-retrieval-integrity/040-local-content-aware-candidate-generation.md` Roadmap: `plans/subsystems/agentic-retrieval-integrity-roadmap.md` diff --git a/plans/closure/agentic-retrieval-integrity/041-status.md b/plans/closure/agentic-retrieval-integrity/041-status.md index 13bc81da..a2d984bd 100644 --- a/plans/closure/agentic-retrieval-integrity/041-status.md +++ b/plans/closure/agentic-retrieval-integrity/041-status.md @@ -2,7 +2,7 @@ Status: closed -Source plan: `plans/implementation/agentic-retrieval-integrity/041-linked-worktree-identity-resolution.md` +Source plan: `plans/archive/implementation/agentic-retrieval-integrity/041-linked-worktree-identity-resolution.md` Roadmap: `plans/subsystems/agentic-retrieval-integrity-roadmap.md` M041 diff --git a/plans/closure/agentic-retrieval-integrity/042-status.md b/plans/closure/agentic-retrieval-integrity/042-status.md index 08c0ebe9..1f1561f8 100644 --- a/plans/closure/agentic-retrieval-integrity/042-status.md +++ b/plans/closure/agentic-retrieval-integrity/042-status.md @@ -2,7 +2,7 @@ Status: closed -Source plan: `plans/implementation/agentic-retrieval-integrity/042-fetch-item-shape-diagnostics.md` +Source plan: `plans/archive/implementation/agentic-retrieval-integrity/042-fetch-item-shape-diagnostics.md` Roadmap: `plans/subsystems/agentic-retrieval-integrity-roadmap.md` M042 diff --git a/plans/closure/agentic-retrieval-integrity/043-status.md b/plans/closure/agentic-retrieval-integrity/043-status.md index 46e43f8e..89bb549d 100644 --- a/plans/closure/agentic-retrieval-integrity/043-status.md +++ b/plans/closure/agentic-retrieval-integrity/043-status.md @@ -2,7 +2,7 @@ Status: closed -Source plan: `plans/implementation/agentic-retrieval-integrity/043-local-repo-search-empty-result-determinism.md` +Source plan: `plans/archive/implementation/agentic-retrieval-integrity/043-local-repo-search-empty-result-determinism.md` Roadmap: `plans/subsystems/agentic-retrieval-integrity-roadmap.md` M043 @@ -178,7 +178,7 @@ On candidate `5a218a4`: green on `57f5fed` and the six runs before it and red from `bc52970`, the first commit containing the M005 catalog, whose `catalog.json` was missing from `[package] include`. It remains outside M043's gate, but it is a regression owned by - `plans/implementation/python-pypi-distribution/005-packaged-artifact-asset-completeness.md`. + `plans/archive/implementation/python-pypi-distribution/005-packaged-artifact-asset-completeness.md`. ## Gates diff --git a/plans/closure/agentic-retrieval-integrity/044-status.md b/plans/closure/agentic-retrieval-integrity/044-status.md index bdb97fe0..e357bc85 100644 --- a/plans/closure/agentic-retrieval-integrity/044-status.md +++ b/plans/closure/agentic-retrieval-integrity/044-status.md @@ -2,7 +2,7 @@ Status: closed -Source plan: `plans/implementation/agentic-retrieval-integrity/044-challenge-solving-on-by-default.md` +Source plan: `plans/archive/implementation/agentic-retrieval-integrity/044-challenge-solving-on-by-default.md` Roadmap: `plans/subsystems/agentic-retrieval-integrity-roadmap.md` M044 @@ -103,7 +103,7 @@ document, a script-rendered shell whose text lives in the embedded i18n dictiona results after the browser completes it, reusing the pass cookie on the next search; Yahoo renders a complete results page with no visible challenge. The defect is our client's detection and challenge handling, not the address. Brave's classification is corrected under -`plans/implementation/agentic-retrieval-integrity/045-browser-fidelity-provider-access.md` +`plans/archive/implementation/agentic-retrieval-integrity/045-browser-fidelity-provider-access.md` work package 1 (a non-success challenge page is now `blocked`, not `rate_limited`); work package 2 of that milestone owns browser-rendered SERP access, which is what actually produces results. diff --git a/plans/closure/agentic-retrieval-integrity/045-status.md b/plans/closure/agentic-retrieval-integrity/045-status.md index 01f3a0f6..ebbbd8e8 100644 --- a/plans/closure/agentic-retrieval-integrity/045-status.md +++ b/plans/closure/agentic-retrieval-integrity/045-status.md @@ -2,7 +2,7 @@ Status: closed -Source plan: `plans/implementation/agentic-retrieval-integrity/045-browser-fidelity-provider-access.md` +Source plan: `plans/archive/implementation/agentic-retrieval-integrity/045-browser-fidelity-provider-access.md` Roadmap: `plans/subsystems/agentic-retrieval-integrity-roadmap.md` M045 diff --git a/plans/closure/agentic-retrieval-integrity/046-status.md b/plans/closure/agentic-retrieval-integrity/046-status.md index 1e9eafb7..dc6099b3 100644 --- a/plans/closure/agentic-retrieval-integrity/046-status.md +++ b/plans/closure/agentic-retrieval-integrity/046-status.md @@ -2,7 +2,7 @@ Status: closed -Source plan: `plans/implementation/agentic-retrieval-integrity/046-fetch-browser-escalation-parity.md` +Source plan: `plans/archive/implementation/agentic-retrieval-integrity/046-fetch-browser-escalation-parity.md` Roadmap: `plans/subsystems/agentic-retrieval-integrity-roadmap.md` M046 diff --git a/plans/closure/browser-artifact-availability/003-status.md b/plans/closure/browser-artifact-availability/003-status.md index 8ceec2d6..43d48052 100644 --- a/plans/closure/browser-artifact-availability/003-status.md +++ b/plans/closure/browser-artifact-availability/003-status.md @@ -3,7 +3,7 @@ Status: closed Recommendation: closed; all M003 acceptance gates passed on the exact candidate. PR-linked Python run 43897293446 attempt 7 and all displayed PR checks passed. PR #16 merged on 2026-11-16T21:05:25Z as `aea34eeb89749e3196712d9e9b9741f75c58e760`; no release was published. Implementation candidate: `fb99a43734bd4f2329bdfa2ba4315b403c2cd985` -Plan: `plans/implementation/browser-artifact-availability/003-distribution-and-live-qualification.md` +Plan: `plans/archive/implementation/browser-artifact-availability/003-distribution-and-live-qualification.md` Roadmap: `plans/subsystems/browser-artifact-availability-roadmap.md` M003 ADR: `plans/adrs/ADR-0014-browser-artifact-availability-and-render-bounds.md` diff --git a/plans/closure/code-duplication-consolidation/001-status.md b/plans/closure/code-duplication-consolidation/001-status.md index e6cbbcaa..9c90fbf1 100644 --- a/plans/closure/code-duplication-consolidation/001-status.md +++ b/plans/closure/code-duplication-consolidation/001-status.md @@ -7,7 +7,7 @@ Candidate: the working tree on `feat/auto-20261117-044c4885` above baseline commit. The canonical gate ran on exactly this tree; its output and the diff fingerprint are in `plans/closure/code-duplication-consolidation/gate.md`. -Source plan: `plans/implementation/code-duplication-consolidation/001-test-support-harness-and-default-arguments.md` +Source plan: `plans/archive/implementation/code-duplication-consolidation/001-test-support-harness-and-default-arguments.md` Roadmap: `plans/subsystems/code-duplication-consolidation-roadmap.md` M001 diff --git a/plans/closure/code-duplication-consolidation/002-status.md b/plans/closure/code-duplication-consolidation/002-status.md index 6c55e4f2..cde501b9 100644 --- a/plans/closure/code-duplication-consolidation/002-status.md +++ b/plans/closure/code-duplication-consolidation/002-status.md @@ -7,7 +7,7 @@ Candidate: the working tree on `feat/auto-20261117-044c4885` above baseline commit. The canonical gate ran on exactly this tree; its output and the diff fingerprint are in `plans/closure/code-duplication-consolidation/gate.md`. -Source plan: `plans/implementation/code-duplication-consolidation/002-provider-capability-declaration-compaction.md` +Source plan: `plans/archive/implementation/code-duplication-consolidation/002-provider-capability-declaration-compaction.md` Roadmap: `plans/subsystems/code-duplication-consolidation-roadmap.md` M002 diff --git a/plans/closure/code-duplication-consolidation/003-status.md b/plans/closure/code-duplication-consolidation/003-status.md index e1fdf54e..ed9ddee6 100644 --- a/plans/closure/code-duplication-consolidation/003-status.md +++ b/plans/closure/code-duplication-consolidation/003-status.md @@ -7,7 +7,7 @@ Candidate: the working tree on `feat/auto-20261117-044c4885` above baseline commit. The canonical gate ran on exactly this tree; its output and the diff fingerprint are in `plans/closure/code-duplication-consolidation/gate.md`. -Source plan: `plans/implementation/code-duplication-consolidation/003-engine-api-conformance-harness.md` +Source plan: `plans/archive/implementation/code-duplication-consolidation/003-engine-api-conformance-harness.md` Roadmap: `plans/subsystems/code-duplication-consolidation-roadmap.md` M003 diff --git a/plans/closure/code-duplication-consolidation/004-status.md b/plans/closure/code-duplication-consolidation/004-status.md index 0707cc62..5d00f120 100644 --- a/plans/closure/code-duplication-consolidation/004-status.md +++ b/plans/closure/code-duplication-consolidation/004-status.md @@ -7,7 +7,7 @@ Candidate: the working tree on `feat/auto-20261117-044c4885` above baseline commit. The canonical gate ran on exactly this tree; its output and the diff fingerprint are in `plans/closure/code-duplication-consolidation/gate.md`. -Source plan: `plans/implementation/code-duplication-consolidation/004-shared-engine-json-transport.md` +Source plan: `plans/archive/implementation/code-duplication-consolidation/004-shared-engine-json-transport.md` Roadmap: `plans/subsystems/code-duplication-consolidation-roadmap.md` M004 diff --git a/plans/closure/code-duplication-consolidation/005-status.md b/plans/closure/code-duplication-consolidation/005-status.md index 39f48120..ca1c4c9e 100644 --- a/plans/closure/code-duplication-consolidation/005-status.md +++ b/plans/closure/code-duplication-consolidation/005-status.md @@ -7,7 +7,7 @@ Candidate: the working tree on `feat/auto-20261117-044c4885` above baseline commit. The canonical gate ran on exactly this tree; its output and the diff fingerprint are in `plans/closure/code-duplication-consolidation/gate.md`. -Source plan: `plans/implementation/code-duplication-consolidation/005-shared-fetch-escalation-seam.md` +Source plan: `plans/archive/implementation/code-duplication-consolidation/005-shared-fetch-escalation-seam.md` Roadmap: `plans/subsystems/code-duplication-consolidation-roadmap.md` M005 diff --git a/plans/closure/code-duplication-consolidation/006-status.md b/plans/closure/code-duplication-consolidation/006-status.md index fa31b38b..cfdc2825 100644 --- a/plans/closure/code-duplication-consolidation/006-status.md +++ b/plans/closure/code-duplication-consolidation/006-status.md @@ -7,7 +7,7 @@ Candidate: the working tree on `feat/auto-20261117-044c4885` above baseline commit. The canonical gate ran on exactly this tree; its output and the diff fingerprint are in `plans/closure/code-duplication-consolidation/gate.md`. -Source plan: `plans/implementation/code-duplication-consolidation/006-core-request-validation-helpers.md` +Source plan: `plans/archive/implementation/code-duplication-consolidation/006-core-request-validation-helpers.md` Roadmap: `plans/subsystems/code-duplication-consolidation-roadmap.md` M006 diff --git a/plans/closure/code-duplication-consolidation/007-status.md b/plans/closure/code-duplication-consolidation/007-status.md index 70b2e08c..e38b1439 100644 --- a/plans/closure/code-duplication-consolidation/007-status.md +++ b/plans/closure/code-duplication-consolidation/007-status.md @@ -7,7 +7,7 @@ Candidate: the working tree on `feat/auto-20261117-044c4885` above baseline commit. The canonical gate ran on exactly this tree; its output and the diff fingerprint are in `plans/closure/code-duplication-consolidation/gate.md`. -Source plan: `plans/implementation/code-duplication-consolidation/007-one-repository-target-field-set.md` +Source plan: `plans/archive/implementation/code-duplication-consolidation/007-one-repository-target-field-set.md` Roadmap: `plans/subsystems/code-duplication-consolidation-roadmap.md` M007 diff --git a/plans/closure/code-duplication-consolidation/008-status.md b/plans/closure/code-duplication-consolidation/008-status.md index a0d86e83..23694032 100644 --- a/plans/closure/code-duplication-consolidation/008-status.md +++ b/plans/closure/code-duplication-consolidation/008-status.md @@ -7,7 +7,7 @@ Candidate: the working tree on `feat/auto-20261117-044c4885` above baseline commit. The canonical gate ran on exactly this tree; its output and the diff fingerprint are in `plans/closure/code-duplication-consolidation/gate.md`. -Source plan: `plans/implementation/code-duplication-consolidation/008-searchengine-implementation-macro.md` +Source plan: `plans/archive/implementation/code-duplication-consolidation/008-searchengine-implementation-macro.md` Roadmap: `plans/subsystems/code-duplication-consolidation-roadmap.md` M008 diff --git a/plans/closure/code-duplication-consolidation/gate.md b/plans/closure/code-duplication-consolidation/gate.md index 044b411c..c2656cd3 100644 --- a/plans/closure/code-duplication-consolidation/gate.md +++ b/plans/closure/code-duplication-consolidation/gate.md @@ -73,14 +73,14 @@ Added files relative to the parent (sha256; this gate record excluded): | `6862e616957e6400fb62a07d3138d2c0f57c876d22701d6f3f2c62a10f4ba232` | `plans/closure/code-duplication-consolidation/006-status.md` | | `94814e73eb6fa0204095cb5d98fbd40e39dfc043624b9799e227ace18bd77166` | `plans/closure/code-duplication-consolidation/007-status.md` | | `cd09850a9c9bfe0f08205c959b582c42c162d0f351c49798d4988dd7961bcd75` | `plans/closure/code-duplication-consolidation/008-status.md` | -| `46dba3f5130734bf8f7f6d6062d1d706a095133b0862e773524357b881225923` | `plans/implementation/code-duplication-consolidation/001-test-support-harness-and-default-arguments.md` | -| `fc087711d034ec26571f3a74d1db0076c52f93c1fe1fc856cc10c4465770637e` | `plans/implementation/code-duplication-consolidation/002-provider-capability-declaration-compaction.md` | -| `0a0aeb0733d1e701e66a0d1a64d4d137759263d8890b9cdd1031a514edd7d4cc` | `plans/implementation/code-duplication-consolidation/003-engine-api-conformance-harness.md` | -| `8c864441be69d7eb59b46350c444c0037235c6d1b8446a508937f94ffe0f28cc` | `plans/implementation/code-duplication-consolidation/004-shared-engine-json-transport.md` | -| `2d4524f1a9ee9459ea85f8e7e374d5c7dd6e27b3537166e8d2aee1715d632b8a` | `plans/implementation/code-duplication-consolidation/005-shared-fetch-escalation-seam.md` | -| `a1f9c229788157018003f36c0d5e613b87f45fceaabffc20c6ab3a17a81616f0` | `plans/implementation/code-duplication-consolidation/006-core-request-validation-helpers.md` | -| `2119bdfe571d440b59229905a50f9f876a2281889814596950c0602649bf939c` | `plans/implementation/code-duplication-consolidation/007-one-repository-target-field-set.md` | -| `4bd33765e112b9c80b8a29617a63953dbe5b03f2de84be36279cc1efe6707877` | `plans/implementation/code-duplication-consolidation/008-searchengine-implementation-macro.md` | +| `46dba3f5130734bf8f7f6d6062d1d706a095133b0862e773524357b881225923` | `plans/archive/implementation/code-duplication-consolidation/001-test-support-harness-and-default-arguments.md` | +| `fc087711d034ec26571f3a74d1db0076c52f93c1fe1fc856cc10c4465770637e` | `plans/archive/implementation/code-duplication-consolidation/002-provider-capability-declaration-compaction.md` | +| `0a0aeb0733d1e701e66a0d1a64d4d137759263d8890b9cdd1031a514edd7d4cc` | `plans/archive/implementation/code-duplication-consolidation/003-engine-api-conformance-harness.md` | +| `8c864441be69d7eb59b46350c444c0037235c6d1b8446a508937f94ffe0f28cc` | `plans/archive/implementation/code-duplication-consolidation/004-shared-engine-json-transport.md` | +| `2d4524f1a9ee9459ea85f8e7e374d5c7dd6e27b3537166e8d2aee1715d632b8a` | `plans/archive/implementation/code-duplication-consolidation/005-shared-fetch-escalation-seam.md` | +| `a1f9c229788157018003f36c0d5e613b87f45fceaabffc20c6ab3a17a81616f0` | `plans/archive/implementation/code-duplication-consolidation/006-core-request-validation-helpers.md` | +| `2119bdfe571d440b59229905a50f9f876a2281889814596950c0602649bf939c` | `plans/archive/implementation/code-duplication-consolidation/007-one-repository-target-field-set.md` | +| `4bd33765e112b9c80b8a29617a63953dbe5b03f2de84be36279cc1efe6707877` | `plans/archive/implementation/code-duplication-consolidation/008-searchengine-implementation-macro.md` | | `037bd5ecd260c9fe454ca2e321df449189a99df39f350321fc02192ae6ef6193` | `plans/subsystems/code-duplication-consolidation-roadmap.md` | | `ab1d9e55980750dcf22711acba2d90e9eaccf17c7b2dbcd07203a9981e965f7e` | `src/core/repo_target.rs` | | `c399cb4135e3b7ee202520b51a487326a3c923dfb687ddf21013476a9ae7daa2` | `src/core/validation.rs` | diff --git a/plans/closure/knowledge-delta/004-status.md b/plans/closure/knowledge-delta/004-status.md index 28c21c81..af9ac08a 100644 --- a/plans/closure/knowledge-delta/004-status.md +++ b/plans/closure/knowledge-delta/004-status.md @@ -2,7 +2,7 @@ Status: closed -Source plan: `plans/implementation/knowledge-delta/004-brief-delta-production-and-honest-diagnostics.md` +Source plan: `plans/archive/implementation/knowledge-delta/004-brief-delta-production-and-honest-diagnostics.md` Roadmap: `plans/subsystems/knowledge-delta-roadmap.md` M004 diff --git a/plans/closure/knowledge-delta/005-status.md b/plans/closure/knowledge-delta/005-status.md index c1560550..f7efc535 100644 --- a/plans/closure/knowledge-delta/005-status.md +++ b/plans/closure/knowledge-delta/005-status.md @@ -2,7 +2,7 @@ Status: closed -Source plan: `plans/implementation/knowledge-delta/005-verified-model-cutoff-coverage.md` +Source plan: `plans/archive/implementation/knowledge-delta/005-verified-model-cutoff-coverage.md` Roadmap: `plans/subsystems/knowledge-delta-corrective-addendum.md` M005 @@ -146,7 +146,7 @@ full `make check` passes on the same tree. `Egress feature qualification` and `Release drift guard` succeeded on the candidate in the same push. The hosted pipeline is green on the final attempt; the two earlier macOS failures are recorded -rather than omitted. The determinism gap they exposed is registered as M043 in `plans/implementation/agentic-retrieval-integrity/043-local-repo-search-empty-result-determinism.md`. +rather than omitted. The determinism gap they exposed is registered as M043 in `plans/archive/implementation/agentic-retrieval-integrity/043-local-repo-search-empty-result-determinism.md`. ## Recommendation diff --git a/plans/closure/knowledge-delta/006-status.md b/plans/closure/knowledge-delta/006-status.md index 99d8f14a..836133be 100644 --- a/plans/closure/knowledge-delta/006-status.md +++ b/plans/closure/knowledge-delta/006-status.md @@ -2,7 +2,7 @@ Status: closed -Source plan: `plans/implementation/knowledge-delta/006-opt-in-index-onboarding-and-seeding.md` +Source plan: `plans/archive/implementation/knowledge-delta/006-opt-in-index-onboarding-and-seeding.md` Roadmap: `plans/subsystems/knowledge-delta-corrective-addendum.md` M006 @@ -149,7 +149,7 @@ full `make check` passes on the same tree. `Egress feature qualification` and `Release drift guard` succeeded on the candidate in the same push. The hosted pipeline is green on the final attempt; the two earlier macOS failures are recorded -rather than omitted. The determinism gap they exposed is registered as M043 in `plans/implementation/agentic-retrieval-integrity/043-local-repo-search-empty-result-determinism.md`. +rather than omitted. The determinism gap they exposed is registered as M043 in `plans/archive/implementation/agentic-retrieval-integrity/043-local-repo-search-empty-result-determinism.md`. ## Recommendation diff --git a/plans/closure/knowledge-delta/007-status.md b/plans/closure/knowledge-delta/007-status.md index 9f396804..990e1479 100644 --- a/plans/closure/knowledge-delta/007-status.md +++ b/plans/closure/knowledge-delta/007-status.md @@ -2,7 +2,7 @@ Status: closed (measurement-only) -Source plan: `plans/implementation/knowledge-delta/007-live-discovery-quality-qualification.md` +Source plan: `plans/archive/implementation/knowledge-delta/007-live-discovery-quality-qualification.md` Roadmap: `plans/subsystems/knowledge-delta-corrective-addendum.md` M007 @@ -196,7 +196,7 @@ full `make check` passes on the same tree. `Egress feature qualification` and `Release drift guard` succeeded on the candidate in the same push. The hosted pipeline is green on the final attempt; the two earlier macOS failures are recorded -rather than omitted. The determinism gap they exposed is registered as M043 in `plans/implementation/agentic-retrieval-integrity/043-local-repo-search-empty-result-determinism.md`. +rather than omitted. The determinism gap they exposed is registered as M043 in `plans/archive/implementation/agentic-retrieval-integrity/043-local-repo-search-empty-result-determinism.md`. ## Recommendation diff --git a/plans/closure/mcp-tool-surface-succession/001-status.md b/plans/closure/mcp-tool-surface-succession/001-status.md index e8cd344b..e4e18d0a 100644 --- a/plans/closure/mcp-tool-surface-succession/001-status.md +++ b/plans/closure/mcp-tool-surface-succession/001-status.md @@ -2,7 +2,7 @@ Status: closed -Source plan: `plans/implementation/mcp-tool-surface-succession/001-search-schema-single-sourcing.md` +Source plan: `plans/archive/implementation/mcp-tool-surface-succession/001-search-schema-single-sourcing.md` Roadmap: `plans/subsystems/mcp-tool-surface-succession-roadmap.md` M001 diff --git a/plans/closure/mcp-tool-surface-succession/002-status.md b/plans/closure/mcp-tool-surface-succession/002-status.md index 6a81251a..1d36ca9e 100644 --- a/plans/closure/mcp-tool-surface-succession/002-status.md +++ b/plans/closure/mcp-tool-surface-succession/002-status.md @@ -2,7 +2,7 @@ Status: closed -Source plan: `plans/implementation/mcp-tool-surface-succession/002-evidence-bundle-input-projection.md` +Source plan: `plans/archive/implementation/mcp-tool-surface-succession/002-evidence-bundle-input-projection.md` Roadmap: `plans/subsystems/mcp-tool-surface-succession-roadmap.md` M002 diff --git a/plans/closure/mcp-tool-surface-succession/003-status.md b/plans/closure/mcp-tool-surface-succession/003-status.md index c5e9551c..0d5a16f1 100644 --- a/plans/closure/mcp-tool-surface-succession/003-status.md +++ b/plans/closure/mcp-tool-surface-succession/003-status.md @@ -2,7 +2,7 @@ Status: closed -Source plan: `plans/implementation/mcp-tool-surface-succession/003-tool-inventory-parity.md` +Source plan: `plans/archive/implementation/mcp-tool-surface-succession/003-tool-inventory-parity.md` Roadmap: `plans/subsystems/mcp-tool-surface-succession-roadmap.md` M003 diff --git a/plans/closure/mcp-tool-surface-succession/004-status.md b/plans/closure/mcp-tool-surface-succession/004-status.md index 12eac711..05248559 100644 --- a/plans/closure/mcp-tool-surface-succession/004-status.md +++ b/plans/closure/mcp-tool-surface-succession/004-status.md @@ -2,7 +2,7 @@ Status: closed -Source plan: `plans/implementation/mcp-tool-surface-succession/004-repository-read-consolidation.md` +Source plan: `plans/archive/implementation/mcp-tool-surface-succession/004-repository-read-consolidation.md` Roadmap: `plans/subsystems/mcp-tool-surface-succession-roadmap.md` M004 diff --git a/plans/closure/python-pypi-distribution/005-status.md b/plans/closure/python-pypi-distribution/005-status.md index 02f722b2..abdff8ca 100644 --- a/plans/closure/python-pypi-distribution/005-status.md +++ b/plans/closure/python-pypi-distribution/005-status.md @@ -2,7 +2,7 @@ Status: closed -Source plan: `plans/implementation/python-pypi-distribution/005-packaged-artifact-asset-completeness.md` +Source plan: `plans/archive/implementation/python-pypi-distribution/005-packaged-artifact-asset-completeness.md` Roadmap: `plans/subsystems/python-pypi-distribution-roadmap.md` M005 diff --git a/plans/registry.md b/plans/registry.md index 409bffee..7c92e57e 100644 --- a/plans/registry.md +++ b/plans/registry.md @@ -24,60 +24,22 @@ Closed or superseded implementation plans are archived under | Subsystem | Status | Roadmap | Current control point or blocker | |---|---|---|---| -| Repository security, supply-chain, and maintenance hardening | active; M001, M002, M003, M004, M005, M007, M008, M009, M010, and M011 closed; M006 superseded by ADR-0014 | `plans/subsystems/repository-hardening-roadmap.md` | M011 closure: `plans/closure/repository-hardening/011-status.md`; chromiumoxide `reqwest` edge is accepted and guard-bounded. | -| Python PyPI distribution and prebuilt SBC wheels | active; M001–M003 closed; M005 closed; M004 blocked | `plans/subsystems/python-pypi-distribution-roadmap.md` | M005 is closed on candidate `ca24ee1ca7ddd355bd8d2170617238b02ddbaafa`: the M005 knowledge-delta catalog and `packaging/release-targets.txt` were missing from `[package] include`, breaking `cargo package` verification and the extracted sdist; both are packaged and `packaging/check-packaged-assets.py` now gates the list. See `plans/closure/python-pypi-distribution/005-status.md`. ARMv7 physical evidence is deferred; keep that wheel experimental. See `plans/closure/python-pypi-distribution/004-status.md`. | +| Repository security, supply-chain, and maintenance hardening | active; M001, M002, M003, M004, M005, M007, M008, M009, M010, and M011 closed; M006 superseded by ADR-0014 | `plans/subsystems/repository-hardening-roadmap.md` | M007: `plans/archive/implementation/repository-hardening/007-corrective-closure-evidence-and-process-ratchet.md` (closed by M010); M011 closure: `plans/closure/repository-hardening/011-status.md`; chromiumoxide `reqwest` edge accepted and guard-bounded. | +| Python PyPI distribution and prebuilt SBC wheels | active; M001–M003, M005 closed; M004 blocked | `plans/subsystems/python-pypi-distribution-roadmap.md` | M004 awaits physical ARMv7 evidence; M005 closure is recorded in `plans/closure/python-pypi-distribution/005-status.md`. | | Retrieval quality evidence extension | closing (M007) | `plans/subsystems/retrieval-quality-evidence-extension-roadmap.md` | Local evidence is complete; hosted Linux, macOS, and Windows CI is required on the merged candidate. | -| Agentic retrieval integrity and context economy | active; M001–M046 closed | `plans/subsystems/agentic-retrieval-integrity-roadmap.md` | M030 path 1 is accepted: M014 is re-scoped to expiry safety; no solve-count reduction is claimed. See both exact-candidate closure records. M029 closed on exact candidate `3416da6231702dcabc22b2c8e32e94dd88cb20e4`; see its closure record. M006–M012 are dependency-ready without plans; M008/M009 remain proposed. M031 is closed on candidate `7f7219beca61bce2247e7cf9bbaad8ef141467b6`; ADR-0017 is accepted, so M032 and M033 are dependency-ready. M032 is closed on candidate `421d4b2bbb81f22d3e74be1f7f3ff22a5d63c54e`. M033 is closed on candidate `5a98682bda4a68ec55dc9e28409fd8269d1f284d`. M034 is closed on candidate `5cf21e8065c77d5609e15a6ed1347033da14b13b`; ADR-0018 is accepted, and the M033 pass-cookie reuse was qualified against a real protected origin. ADR-0019 (accepted 2026-11-19) broadens the permitted challenge class, authorizes browser challenge completion and browser-like identity, and flips the solver on by default. M035 is closed on candidate `55180790c6dc5dbb2ce0d94c186ef88cd7584f48`: the solver now runs before the browser, a script-driven wall is completed by live classification, and an unresolved wall is returned marked. The puzzle-class and identity axes have no milestone yet, so shipped behaviour is otherwise unchanged. The 2026-11-19 agent-facing retrieval review registered corrective M036 (unified fetch repo-item budget and outcome), M037 (local repo-search relevance and scope), and M038 (security-search native advisory routing); all three are closed on implementation candidate `76c1156a2c5418d4b9dab4493eddd9232bdd7b8a` with closure records in `plans/closure/agentic-retrieval-integrity/`. The 2026-11-19 follow-up review registered corrective M039 (fetch emitted-payload budget) and M040 (local content-aware candidate generation); both are closed on implementation candidate `10ed7ed08ac47d80e39ca676ea157ecf0728518c` with closure records in `plans/closure/agentic-retrieval-integrity/`. The 2026-11-20 live workload review registered corrective M041 (linked worktree identity resolution and prefer-local honesty) and M042 (fetch item shape diagnostics); both are closed on implementation candidate `380a55cd7ea7c0b37dc6eff53851926e96e894d0` with closure records in `plans/closure/agentic-retrieval-integrity/`. The 2026-11-20 hosted qualification registered corrective M043 (local repo-search empty-result determinism and incomplete-scan diagnostics) as `ready`: a content-only local match can return an unattributed empty result when the bounded content pass does not complete, and the fixture that exposed it failed twice on the hosted macOS job before passing unchanged. M044 is closed on candidate `7b28436ce913bbed52bd7fdc3ba5cf14f9c85f70`: challenge solving is on by default with a budget that solves Mojeek and Startpage, and Brave 429 / Yahoo 500 are recorded as upstream egress refusals in `plans/closure/agentic-retrieval-integrity/044-status.md`. M043 is closed on implementation candidate `5a218a4a91572f486244cf9881450aff7654e04f`: the cold inventory build was consuming the request deadline before any candidate was scanned, so the scan clock now starts when the build finishes, the content-only fixture requires its `lib.rs` match instead of any non-empty group, and timeout and file-cap outcomes are asserted to state a reason rather than a completed no-match; see `plans/closure/agentic-retrieval-integrity/043-status.md`. M045 is closed on candidate `364014c6fd9c29e6dd082915bd334ccf9bc148dd`: a challenge served with a non-success status is classified as `blocked` with the status in the reason, `brave` and `yahoo` fall back once to a bounded render of the shipped browser and parse the rendered DOM (five results each on this egress, 4.8–5.7 s and 3.8–4.2 s), the browser presents its own Chrome identity instead of `HeadlessChrome/…`, and valued flags now reach Chromium as key/value pairs; no tool, argument, schema property, configuration key, or provider id changed. See `plans/closure/agentic-retrieval-integrity/045-status.md`. M046 is closed on candidate `20c0672ad835796a22b6f4e830757a97753ca49f`: the fetch surfaces escalate once at the non-2xx error seam for the same `429`/`5xx` class `web_search` already serves, under a return rule that keeps a genuine outage an error, and the CLI honours `[fetch.browser].policy` without a new flag; see `plans/closure/agentic-retrieval-integrity/046-status.md`. | -| MCP tool-surface succession | closed; M001–M004 closed | `plans/subsystems/mcp-tool-surface-succession-roadmap.md` | Closed on the implementation tree above baseline `b2abc59`: nine advertised tools with `repo_fetch` callable as an alias (ADR-0022 accepted 2026-11-22), a bounded `build_evidence_bundle` input schema (40,152 → 2,578 B), one inventory asserted across every projection, and single-sourced search vocabularies. Closure records: `plans/closure/mcp-tool-surface-succession/001-status.md` … `004-status.md`. | -| Code duplication consolidation | closed; M001–M008 closed | `plans/subsystems/code-duplication-consolidation-roadmap.md` | All eight milestones are closed on the candidate based on `fb9d6538f8ea2e21e08add43fb3f71ebe6ceaa64`; exact-candidate checks and content fingerprints are in `plans/closure/code-duplication-consolidation/gate.md`. ADR-0023 is accepted, `RepoTarget` is the one locator field set, and the advertised tool surface, schema budgets, and JSON contracts are unchanged. | +| Agentic retrieval integrity and context economy | active; M001–M046 closed | `plans/subsystems/agentic-retrieval-integrity-roadmap.md` | M030 records the M014 acceptance decision; follow-ups and evidence are in the roadmap and closure records. | | PDF ingestion and extraction fidelity | closing | `plans/subsystems/pdf-ingestion-fidelity-roadmap.md` | M001/M002/M007 are implemented with closure records; M006 qualification remains open; M008 is active by user approval against the existing M001 implementation, with M001 exact-candidate status reconciliation still open; M003–M005 are ready. | | Adaptive fetch target routing and artifacts | active (M001 active; M002 and M003 closed) | `plans/subsystems/adaptive-fetch-routing-roadmap.md` | M002 closed on `24f045729f8409dadc96b4c2455253d8a9c7b6ec`; see `plans/closure/adaptive-fetch-routing/002-status.md`. M001's implementation remains committed on that candidate but its closure record is outstanding. M003 closed on candidate `59ff64ad00940573ee520ecf19d7b5c0abcb1c87`; see `plans/closure/adaptive-fetch-routing/003-status.md`. Local PDF behavior remains owned by PDF M008. | -| Browser artifact availability and render bounds | closing (M001–M005 acceptance complete; PR #16 merged as `aea34ee`) | `plans/subsystems/browser-artifact-availability-roadmap.md` | M003 acceptance passed on exact SHA `fb99a43734bd4f2329bdfa2ba4315b403c2cd985`: local fixture, macOS arm64 installer/release smoke, live ten-tool MCP, hosted CI, egress, Eggpack drift/qualification, Windows wrappers, and Python full matrix (`43916322850`, attempt 4; all 34 jobs passed). All seven Eggpack consumer validations, `required_gate`, and aggregate passed; Eggpack target sizes and Python wheel sizes are in the closure record. PR-linked Python run `43897293446`, attempt 7, passed all 34 jobs and all displayed PR checks pass on the same SHA. PR #16 merged as `aea34eeb89749e3196712d9e9b9741f75c58e760` on 2026-11-16T21:05:25Z. See M003 closure and M004/M005 plans. | -| Knowledge-delta research | active; M001–M007 closed | `plans/subsystems/knowledge-delta-roadmap.md` | M001, M002, and M003 are closed on `c0f71909cfe2e6016512423e55b9d00fdb7220c5`; M002 Linux/Windows qualification and footprint records are in the closure record with `threshold_applied=false`; no numeric budget pass is claimed. M004 is a corrective pass to M001 for brief delta production and honest diagnostics, closed on implementation candidate `380a55cd7ea7c0b37dc6eff53851926e96e894d0` with its closure record in `plans/closure/knowledge-delta/`. | - -| Knowledge-delta coverage and quality corrective addendum | closed; M005–M007 closed | `plans/subsystems/knowledge-delta-corrective-addendum.md` | M001–M007 closed, including the M004 corrective to M001 and all three addendum milestones on implementation candidate `e817dfde35372aa307f5580a144d7ededcb55574`. M005 publishes verified cutoff coverage, M006 makes index states distinguishable without changing defaults, and M007 is a measurement-only qualification. No default persistence, crawling, or LLM loop. | +| Browser artifact availability and render bounds | closing (M001–M005 acceptance complete; PR #16 merged) | `plans/subsystems/browser-artifact-availability-roadmap.md` | M003 closure records hosted qualification and artifact sizes. | +| Knowledge-delta research | active; M001–M007 closed | `plans/subsystems/knowledge-delta-roadmap.md` | Closure evidence is linked from the roadmap. | ## Active and dependency-ready implementation plans | Subsystem | Milestone | Status | Plan | Gate | |---|---|---|---|---| -| Repository hardening | M006 chromiumoxide dependency decision | superseded | `plans/archive/implementation/repository-hardening/006-chromiumoxide-zero-reqwest-closure.md` | Superseded by ADR-0014 §6. | -| Repository hardening | M007 corrective closure evidence | closed by M010 | `plans/archive/implementation/repository-hardening/007-corrective-closure-evidence-and-process-ratchet.md` | Required schedule evidence is recorded in `plans/closure/repository-hardening/010-status.md`. | | Python PyPI distribution | M004 physical SBC benchmarking | blocked | `plans/implementation/python-pypi-distribution/004-post-publication-sbc-benchmarking.md` | ARMv7 32-bit physical testing is deferred; do not compile on SBCs. | -| Python PyPI distribution | M005 packaged-artifact asset completeness | closed | `plans/implementation/python-pypi-distribution/005-packaged-artifact-asset-completeness.md` | Corrective to Python M001–M003 and agentic M005: `catalog.json` and `packaging/release-targets.txt` were absent from `[package] include`, so `cargo package` verification and the extracted-sdist rebuild failed; both are packaged and `packaging/check-packaged-assets.py` gates the asset list. Closed on candidate `ca24ee1ca7ddd355bd8d2170617238b02ddbaafa`; see `plans/closure/python-pypi-distribution/005-status.md`. | | Retrieval quality evidence extension | M007 expanded live and consumer acceptance | active | `plans/implementation/retrieval-quality-evidence-extension/001-expanded-live-and-consumer-acceptance.md` | No M006 amendment or production behavior change. | | Retrieval quality evidence extension | M007 cross-domain, extraction, and resource qualification | closing | `plans/implementation/retrieval-quality-evidence-extension/002-cross-domain-extraction-and-resource-qualification.md` | Hosted Linux, macOS, and Windows CI remains. | -| Agentic retrieval integrity | M014 pass-cookie lifetime and egress binding | closed | `plans/implementation/agentic-retrieval-integrity/014-pass-cookie-lifetime-and-egress-binding.md` | M030 path 1 supersedes only the solve-count clause; expiry safety is evidenced and no reduction is claimed. | -| Agentic retrieval integrity | M029 unified fetch tool and legacy aliases | closed | `plans/implementation/agentic-retrieval-integrity/029-unified-fetch-tool-and-legacy-aliases.md` | Closed on exact candidate `3416da6231702dcabc22b2c8e32e94dd88cb20e4`; pinned Rust 1.89 `make check`, docs-check, and installed-wheel tests passed. See `plans/closure/agentic-retrieval-integrity/029-status.md`. | -| Agentic retrieval integrity | M030 M014 expiry-safety acceptance reconciliation | closed | `plans/implementation/agentic-retrieval-integrity/030-m014-solve-count-acceptance-reconciliation.md` | Path 1 accepted; exact-candidate evidence and planning checks are recorded in `plans/closure/agentic-retrieval-integrity/030-status.md`. | -| Agentic retrieval integrity | M031 fetch-path challenge solve parity | closed | `plans/implementation/agentic-retrieval-integrity/031-fetch-path-challenge-solve-parity.md` | Closed on candidate `7f7219beca61bce2247e7cf9bbaad8ef141467b6`; pinned Rust 1.89 `make check` passed with 85 suites and 6,374 tests, and `make docs-check` passed. See `plans/closure/agentic-retrieval-integrity/031-status.md`. | -| Agentic retrieval integrity | M032 ALTCHA on the general fetch path | closed | `plans/implementation/agentic-retrieval-integrity/032-altcha-on-the-general-fetch-path.md` | Closed on candidate `421d4b2bbb81f22d3e74be1f7f3ff22a5d63c54e`; pinned Rust 1.89 `make check` passed with 85 suites and 6,399 tests, and `make docs-check` passed. See `plans/closure/agentic-retrieval-integrity/032-status.md`. | -| Agentic retrieval integrity | M033 fetch-side pass-cookie reuse | closed | `plans/implementation/agentic-retrieval-integrity/033-fetch-side-pass-cookie-reuse.md` | Closed on candidate `5a98682bda4a68ec55dc9e28409fd8269d1f284d`; pinned Rust 1.89 `make check` passed with 85 suites and 6,420 tests, and `make docs-check` passed. See `plans/closure/agentic-retrieval-integrity/033-status.md`. | -| Agentic retrieval integrity | M034 fetch-side stale pass-cookie recovery | closed | `plans/implementation/agentic-retrieval-integrity/034-fetch-side-stale-pass-cookie-recovery.md` | Closed on candidate `5cf21e8065c77d5609e15a6ed1347033da14b13b`; pinned Rust 1.89 `make check` passed with 85 suites and 6,422 tests, and `make docs-check` passed. Corrects M033 known limitation #1: a refused cached pair set evicts and the same call solves. See `plans/closure/agentic-retrieval-integrity/034-status.md`. | -| Agentic retrieval integrity | M035 browser challenge completion | closed | `plans/implementation/agentic-retrieval-integrity/035-browser-challenge-completion.md` | Closed on candidate `55180790c6dc5dbb2ce0d94c186ef88cd7584f48`; pinned Rust 1.89 `make check` passed with 85 suites and 6,430 tests, and `make docs-check` passed. With `policy = auto`, a solvable wall goes to the solver instead of Chrome, a script-driven wall completes in the browser, and an unresolved wall is returned marked rather than as a bare wall. The completion polling loop itself is not in the default gate; see closure residual risk 1. See `plans/closure/agentic-retrieval-integrity/035-status.md`. | -| Agentic retrieval integrity | M036 unified fetch repo-item budget and outcome | closed | `plans/implementation/agentic-retrieval-integrity/036-unified-fetch-repo-item-budget-and-outcome.md` | Corrective to M029: a repo item is charged the same readable-text measure as a web item, truncates before it is omitted, and an omitted item is `ok: false`; no item may report success with no content. Closed on implementation candidate `76c1156a2c5418d4b9dab4493eddd9232bdd7b8a`; pre-commit fingerprint `103dbdf2…` over parent `6146341`. Live and suite evidence in `plans/closure/agentic-retrieval-integrity/036-status.md`. | -| Agentic retrieval integrity | M037 local repo-search relevance and scope | closed | `plans/implementation/agentic-retrieval-integrity/037-local-repo-search-relevance-and-scope.md` | Corrective: a local result requires a query, path/file, or symbol match; a no-match query returns an explicit empty state; a remote-scoped request includes local results only when `include_local: true` is explicit. Closed on implementation candidate `76c1156a2c5418d4b9dab4493eddd9232bdd7b8a`; pre-commit fingerprint `103dbdf2…` over parent `6146341`. Live and suite evidence in `plans/closure/agentic-retrieval-integrity/037-status.md`. | -| Agentic retrieval integrity | M038 security-search native advisory routing | closed | `plans/implementation/agentic-retrieval-integrity/038-security-search-native-advisory-routing.md` | Corrective: an enabled native advisory provider is selected for identifier queries by default, the availability and severity warnings match reality, and a native vulnerability carries a bounded summary. Closed on implementation candidate `76c1156a2c5418d4b9dab4493eddd9232bdd7b8a`; pre-commit fingerprint `103dbdf2…` over parent `6146341`. Live and suite evidence in `plans/closure/agentic-retrieval-integrity/038-status.md`. | -| Agentic retrieval integrity | M039 fetch emitted-payload budget and structural degradation | closed | `plans/implementation/agentic-retrieval-integrity/039-fetch-emitted-payload-budget.md` | Corrective to M036: `max_total_chars` bounds the emitted payload, optional `document`/`lines` structures degrade before the requested text is clipped, and `payload_chars` reports the true emitted size. | -| Agentic retrieval integrity | M040 local content-aware candidate generation and symbol recall | closed | `plans/implementation/agentic-retrieval-integrity/040-local-content-aware-candidate-generation.md` | Corrective to M037: a content or symbol query scans beyond the path-ranked candidate window inside a time/byte bound, bounded git acceleration is used where available, and truncation/no-match describe the scan honestly. | -| Agentic retrieval integrity | M041 linked worktree identity resolution and prefer-local honesty | closed | `plans/implementation/agentic-retrieval-integrity/041-linked-worktree-identity-resolution.md` | Corrective to M037 and M040: a linked git worktree resolves its remote identity through the common directory, so `prefer_local` returns the local copy instead of silently falling back to a remote fetch; a skipped local copy is stated. Closed on implementation candidate `380a55cd7ea7c0b37dc6eff53851926e96e894d0`; live and suite evidence in `plans/closure/agentic-retrieval-integrity/041-status.md`. | -| Agentic retrieval integrity | M042 fetch item shape diagnostics | closed | `plans/implementation/agentic-retrieval-integrity/042-fetch-item-shape-diagnostics.md` | Corrective to M029: a `fetch` item with a missing or unknown `type` tag returns an actionable error naming the accepted shapes instead of a serde untagged-enum failure. Closed on implementation candidate `380a55cd7ea7c0b37dc6eff53851926e96e894d0`; live and suite evidence in `plans/closure/agentic-retrieval-integrity/042-status.md`. | -| Agentic retrieval integrity | M045 browser-fidelity provider access | closed | `plans/implementation/agentic-retrieval-integrity/045-browser-fidelity-provider-access.md` | Closed at `364014c6fd9c29e6dd082915bd334ccf9bc148dd`: a challenge served with a non-success status is classified as `blocked` with the status named, and `brave`/`yahoo` fall back once to a bounded browser render of the result page and parse the rendered DOM (five results each on this egress). Closure: `plans/closure/agentic-retrieval-integrity/045-status.md`. | -| Agentic retrieval integrity | M046 fetch browser-escalation parity | closed | `plans/implementation/agentic-retrieval-integrity/046-fetch-browser-escalation-parity.md` | Closed at `20c0672ad835796a22b6f4e830757a97753ca49f`: `web_fetch`, `batch_fetch` web items, the unified `fetch` tool, and CLI `eggsearch fetch` escalate once at the `FetchError::HttpStatus` seam for the same `429`/`5xx` class `web_search` already serves, under a return rule that keeps a genuine outage an error; refusals, `http_only`, and the CLI surface (no new flag) are unchanged. Closure: `plans/closure/agentic-retrieval-integrity/046-status.md`. Corrective to M045: `fetch` never escalates for the origins M045 fixed, because `src/fetch/client.rs` rejects every non-2xx with `FetchError::HttpStatus` before the automatic escalation decision runs. `auto` gains a `429`/`5xx` trigger under a return rule that keeps a genuine outage as an error; `http_only`, refusals, search semantics, and the CLI surface stay unchanged. | -| Agentic retrieval integrity | M044 challenge solving on by default | closed | `plans/implementation/agentic-retrieval-integrity/044-challenge-solving-on-by-default.md` | Corrective to M035 and ADR-0019 §4: `[search.challenge].enabled` defaults to true at `max_difficulty 6`, `max_attempts 100000000`, `timeout_ms 10000`, so a challenged `mojeek` or `startpage` request returns results without operator configuration; `enabled = false` restores the previous behaviour. Closed on candidate `7b28436ce913bbed52bd7fdc3ba5cf14f9c85f70`; see `plans/closure/agentic-retrieval-integrity/044-status.md`. | -| Agentic retrieval integrity | M043 local repo-search empty-result determinism | closed | `plans/implementation/agentic-retrieval-integrity/043-local-repo-search-empty-result-determinism.md` | Corrective to M037/M040: the cold inventory build was consuming the request deadline before any candidate was scanned, so the scan clock now starts after the build, the content-only fixture requires its match instead of any non-empty group, and timeout and file-cap outcomes state a reason. Closed on implementation candidate `5a218a4a91572f486244cf9881450aff7654e04f`; classification, before/after responses, and the 20-run saturated profile are in `plans/closure/agentic-retrieval-integrity/043-status.md`. No tool, argument, or ranking change. | -| MCP tool-surface succession | M001 search-schema single-sourcing | closed | `plans/implementation/mcp-tool-surface-succession/001-search-schema-single-sourcing.md` | Both profiles now derive `goal`/`research_domain` enums from one constant per vocabulary, and compact allow-lists live with their argument types. Closure: `plans/closure/mcp-tool-surface-succession/001-status.md`. | -| MCP tool-surface succession | M002 evidence-bundle input projection | closed | `plans/implementation/mcp-tool-surface-succession/002-evidence-bundle-input-projection.md` | The advertised input is a bounded passthrough; nested metadata and locators still parse, and pinned bundle/source/fetch IDs are unchanged. Closure: `plans/closure/mcp-tool-surface-succession/002-status.md`. | -| MCP tool-surface succession | M003 one inventory, every projection | closed | `plans/implementation/mcp-tool-surface-succession/003-tool-inventory-parity.md` | `tests/tool_inventory_parity.rs` asserts every projection agrees; the two stale documented counts/lists are replaced by pointers. Closure: `plans/closure/mcp-tool-surface-succession/003-status.md`. | -| MCP tool-surface succession | M004 repository-read consolidation | closed | `plans/implementation/mcp-tool-surface-succession/004-repository-read-consolidation.md` | ADR-0022 accepted; `tools/list` advertises nine, `repo_fetch` still answers with its unchanged response, and a `fetch` repo item returns the same content. Closure: `plans/closure/mcp-tool-surface-succession/004-status.md`. | -| Code duplication consolidation | M001 test support harness and default arguments | closed | `plans/implementation/code-duplication-consolidation/001-test-support-harness-and-default-arguments.md` | Closed; evidence in `plans/closure/code-duplication-consolidation/001-status.md`. | -| Code duplication consolidation | M002 provider capability declaration compaction | closed | `plans/implementation/code-duplication-consolidation/002-provider-capability-declaration-compaction.md` | Closed; evidence in `plans/closure/code-duplication-consolidation/002-status.md`. | -| Code duplication consolidation | M003 engine API conformance harness | closed | `plans/implementation/code-duplication-consolidation/003-engine-api-conformance-harness.md` | Closed; evidence in `plans/closure/code-duplication-consolidation/003-status.md`. | -| Code duplication consolidation | M004 shared engine JSON transport | closed | `plans/implementation/code-duplication-consolidation/004-shared-engine-json-transport.md` | Closed; evidence in `plans/closure/code-duplication-consolidation/004-status.md`. | -| Code duplication consolidation | M005 shared fetch escalation seam | closed | `plans/implementation/code-duplication-consolidation/005-shared-fetch-escalation-seam.md` | Closed; evidence in `plans/closure/code-duplication-consolidation/005-status.md`. | -| Code duplication consolidation | M006 core request validation helpers | closed | `plans/implementation/code-duplication-consolidation/006-core-request-validation-helpers.md` | Closed; evidence in `plans/closure/code-duplication-consolidation/006-status.md`. | -| Code duplication consolidation | M007 one repository-target field set | closed | `plans/implementation/code-duplication-consolidation/007-one-repository-target-field-set.md` | Closed; evidence in `plans/closure/code-duplication-consolidation/007-status.md`. | -| Code duplication consolidation | M008 SearchEngine implementation macro | closed | `plans/implementation/code-duplication-consolidation/008-searchengine-implementation-macro.md` | Closed; evidence in `plans/closure/code-duplication-consolidation/008-status.md`. | | PDF ingestion | M001 PDF fetch contract and budgets | closing | `plans/implementation/pdf-ingestion-fidelity/001-pdf-fetch-contract-and-budgets.md` | Closure record is present. | | PDF ingestion | M002 captured PDF corpus and fidelity lane | closing | `plans/implementation/pdf-ingestion-fidelity/002-captured-pdf-corpus-and-fidelity-lane.md` | Closure record is present. | | PDF ingestion | M003 text-stream fidelity | ready | `plans/implementation/pdf-ingestion-fidelity/003-text-stream-fidelity.md` | Hard dependency: M002. | @@ -87,19 +49,6 @@ Closed or superseded implementation plans are archived under | PDF ingestion | M007 hostile-input and memory bounds | closing | `plans/implementation/pdf-ingestion-fidelity/007-hostile-input-and-memory-bounds.md` | Closure record is present. | | PDF ingestion | M008 local workspace and batch ingestion | active | `plans/implementation/pdf-ingestion-fidelity/008-local-workspace-and-batch-ingestion.md` | Hard dependency M001 remains `closing`; work proceeds against its existing implementation by explicit user approval. Soft dependency M005 is not required. | | Adaptive fetch routing | M001 target-aware fetch routing | active | `plans/implementation/adaptive-fetch-routing/001-target-aware-fetch-routing.md` | Committed on candidate `24f045729f8409dadc96b4c2455253d8a9c7b6ec`; soft integration dependency: PDF M008 for local-PDF end-to-end coverage. Its closure record remains outstanding. | -| Adaptive fetch routing | M002 batch per-target capability parity | closed | `plans/implementation/adaptive-fetch-routing/002-batch-per-target-capability-parity.md` | Closed on candidate `24f045729f8409dadc96b4c2455253d8a9c7b6ec`; `make check` passed with 85 suites and 6,347 tests, and `make docs-check` passed. See `plans/closure/adaptive-fetch-routing/002-status.md`. | -| Adaptive fetch routing | M003 opt-in webpage screenshot artifacts | closed | `plans/implementation/adaptive-fetch-routing/003-opt-in-webpage-screenshot-artifacts.md` | Closed on candidate `59ff64ad00940573ee520ecf19d7b5c0abcb1c87`; `make check`, `make docs-check`, and focused Python installed-wheel schema parity passed. Initial PR run `44324947570` on the preceding head failed Python schema parity; rerun is pending after the correction is pushed. See `plans/closure/adaptive-fetch-routing/003-status.md`; live browser smoke remains unrun. | -| Browser artifact availability | M003 distribution and live qualification | closed | `plans/implementation/browser-artifact-availability/003-distribution-and-live-qualification.md` | All M003 criteria pass on `fb99a43734bd4f2329bdfa2ba4315b403c2cd985`: local realistic-mix (including request-13 cap/request-14 relaunch), macOS arm64 installer/release smoke, live ten-tool MCP, hosted CI/egress/drift, Eggpack qualification and Windows wrappers, and Python full matrix (`43916322850`, attempt 4; all 34 jobs passed). Eggpack target sizes and Python wheel sizes are recorded in the closure. PR-linked Python run `43897293446`, attempt 7, passed all 34 jobs, and all displayed PR checks pass. PR #16 merged as `aea34ee` on 2026-11-16T21:05:25Z; see M003 closure and M004/M005 plans. -| Browser artifact availability | M004 M003 qualification corrective pass | closed | `plans/implementation/browser-artifact-availability/004-m003-qualification-corrective-pass.md` | The Python schema and supported runner corrections pass on `fb99a43734bd4f2329bdfa2ba4315b403c2cd985`; the Windows installer mapping test normalizes checkout line endings. Hosted CI, egress, drift, Windows wrappers, Eggpack qualification, and the full 34-job Python matrix (`43916322850`, attempt 4) all pass. Exact-candidate evidence is in the M003 closure record. | -| Browser artifact availability | M005 session-cap initial render accounting | closed | `plans/implementation/browser-artifact-availability/005-session-cap-initial-render-accounting.md` | Local exact-candidate fixture on `fb99a43734bd4f2329bdfa2ba4315b403c2cd985` confirms cap teardown after render 13 and relaunch on render 14; hosted CI, egress, drift, Windows wrappers, Eggpack qualification, and the full 34-job Python matrix (`43916322850`, attempt 4) pass. Exact-candidate evidence is in the M003 closure record. | -| Knowledge delta | M001 cutoff-aware knowledge brief | closed | `plans/archive/implementation/knowledge-delta/001-cutoff-aware-knowledge-brief.md` | Closed on exact candidate `c0f71909cfe2e6016512423e55b9d00fdb7220c5`; see `plans/closure/knowledge-delta/001-status.md`. | -| Knowledge delta | M002 optional local evidence index | closed | `plans/archive/implementation/knowledge-delta/002-local-evidence-index.md` | Closed on exact candidate `c0f71909cfe2e6016512423e55b9d00fdb7220c5`; Linux/Windows evidence and the no-threshold caveat are in `plans/closure/knowledge-delta/002-status.md`. | -| Knowledge delta | M003 source-driven topic discovery | closed | `plans/archive/implementation/knowledge-delta/003-source-driven-topic-discovery.md` | Closed on exact candidate `c0f71909cfe2e6016512423e55b9d00fdb7220c5`; see `plans/closure/knowledge-delta/003-status.md`. | -| Knowledge delta | M004 brief delta production and honest diagnostics | closed | `plans/implementation/knowledge-delta/004-brief-delta-production-and-honest-diagnostics.md` | Corrective to M001: the shipped default provider set carries no publication dates, so the brief must name that reason instead of returning a bare empty delta list; a resolved cutoff over dated sources still emits deltas with unchanged `kdelta_` identities. Closed on implementation candidate `380a55cd7ea7c0b37dc6eff53851926e96e894d0`; live and suite evidence in `plans/closure/knowledge-delta/004-status.md`. | - -| Knowledge delta corrective | M005 verified model-cutoff coverage | closed | `plans/implementation/knowledge-delta/005-verified-model-cutoff-coverage.md` | Corrective to M001: eleven source-verified cutoffs across OpenAI, Anthropic, and xAI plus five explicit no-published-cutoff dispositions, with the manifest validated in both directions against the bundled snapshot. Closed on implementation candidate `e817dfde35372aa307f5580a144d7ededcb55574`; see `plans/closure/knowledge-delta/005-status.md`. | -| Knowledge delta corrective | M006 opt-in index onboarding and seeding | closed | `plans/implementation/knowledge-delta/006-opt-in-index-onboarding-and-seeding.md` | Corrective to M002/M003: `index_status: disabled` is distinct from `offline`, and an index refresh separates `index_not_seeded` and `index_stale` from `no_matching_index_hits`; the disabled path never opens the database. Closed on implementation candidate `e817dfde35372aa307f5580a144d7ededcb55574`; see `plans/closure/knowledge-delta/006-status.md`. | -| Knowledge delta corrective | M007 live discovery quality qualification | closed (measurement-only) | `plans/implementation/knowledge-delta/007-live-discovery-quality-qualification.md` | Frozen 88-case corpus plus a 15-topic live study; no production change and no recall-improvement claim. Closed on implementation candidate `e817dfde35372aa307f5580a144d7ededcb55574`; see `plans/closure/knowledge-delta/007-status.md`. | ## Closure rule diff --git a/plans/subsystems/adaptive-fetch-routing-roadmap.md b/plans/subsystems/adaptive-fetch-routing-roadmap.md index 5f0a004c..23280c32 100644 --- a/plans/subsystems/adaptive-fetch-routing-roadmap.md +++ b/plans/subsystems/adaptive-fetch-routing-roadmap.md @@ -65,8 +65,8 @@ ADR-0014 accepted browser contract ── interface ──> M001, M003 | Milestone | Class | Status | Handoff | Dependencies | User-visible exit | |---|---|---|---|---|---| | M001 — Target-aware fetch routing | capability | active | `plans/implementation/adaptive-fetch-routing/001-target-aware-fetch-routing.md` | Interface: PDF M001 budget/outcome contract and ADR-0014. Soft integration dependency: PDF M008 for local-PDF end-to-end coverage. Implementation is committed on candidate `24f045729f8409dadc96b4c2455253d8a9c7b6ec`; its closure record remains outstanding. | A URL or typed repo/workspace target reaches the correct existing bounded handler; PDF, HTML, and browser outcomes are explicit and do not cross target boundaries. | -| M002 — Batch per-target capability parity | capability | closed | `plans/implementation/adaptive-fetch-routing/002-batch-per-target-capability-parity.md` | Interface: M001 target contract and PDF M008 batch/local-PDF contract. Closed on candidate `24f045729f8409dadc96b4c2455253d8a9c7b6ec`; `make check` passed with 6,347 tests and the closure record is `plans/closure/adaptive-fetch-routing/002-status.md`. | Applicable URL and repo/workspace target controls work per item, with single-target semantics and preserved batch order, errors, IDs, budgets, and telemetry. | -| M003 — Opt-in webpage screenshots | capability | closed | `plans/implementation/adaptive-fetch-routing/003-opt-in-webpage-screenshot-artifacts.md` | Closed on candidate `59ff64ad00940573ee520ecf19d7b5c0abcb1c87`; `make check` and `make docs-check` passed. See `plans/closure/adaptive-fetch-routing/003-status.md`. Live browser smoke remains unrun. | An explicit request returns a bounded webpage screenshot as MCP image content; absent/false preserves the existing response. | +| M002 — Batch per-target capability parity | capability | closed | `plans/archive/implementation/adaptive-fetch-routing/002-batch-per-target-capability-parity.md` | Interface: M001 target contract and PDF M008 batch/local-PDF contract. Closed on candidate `24f045729f8409dadc96b4c2455253d8a9c7b6ec`; `make check` passed with 6,347 tests and the closure record is `plans/closure/adaptive-fetch-routing/002-status.md`. | Applicable URL and repo/workspace target controls work per item, with single-target semantics and preserved batch order, errors, IDs, budgets, and telemetry. | +| M003 — Opt-in webpage screenshots | capability | closed | `plans/archive/implementation/adaptive-fetch-routing/003-opt-in-webpage-screenshot-artifacts.md` | Closed on candidate `59ff64ad00940573ee520ecf19d7b5c0abcb1c87`; `make check` and `make docs-check` passed. See `plans/closure/adaptive-fetch-routing/003-status.md`. Live browser smoke remains unrun. | An explicit request returns a bounded webpage screenshot as MCP image content; absent/false preserves the existing response. | M008 remains the implementation owner for local PDF extraction and `batch_fetch` per-URL PDF page selection. This roadmap consumes its stable interface and must not amend or duplicate that scope. M002 is closed, and M003 is closed on candidate `59ff64ad00940573ee520ecf19d7b5c0abcb1c87` under accepted ADR-0015; see its closure record. diff --git a/plans/subsystems/agentic-retrieval-integrity-roadmap.md b/plans/subsystems/agentic-retrieval-integrity-roadmap.md index 06aae312..115ee8df 100644 --- a/plans/subsystems/agentic-retrieval-integrity-roadmap.md +++ b/plans/subsystems/agentic-retrieval-integrity-roadmap.md @@ -164,7 +164,7 @@ ADR-0011 fetch document addressing ──> M019 fetch document budget ──> M0 | M011 — Anubis solver and operator difficulty ceiling | capability | `plans/archive/implementation/agentic-retrieval-integrity/011-anubis-solver-and-difficulty-ceiling.md` | hard M010 | Raising `max_difficulty` is the supported way to pay for a harder challenge; the default ceiling leaves Startpage `blocked` with a named reason | | M012 — Startpage payload extraction | capability | `plans/archive/implementation/agentic-retrieval-integrity/012-startpage-payload-extraction.md` | hard M011 (capture and live proof) | A solved Startpage SERP yields parsed rows; unsolved stays `blocked`, drift stays `parse_error` | | M013 — challenge solver conformance corrections | invariant (corrective) | `plans/archive/implementation/agentic-retrieval-integrity/013-challenge-solver-conformance-corrections.md` | none (ADR-0010 accepted) | A prefixed deployment and a `slow` deployment both solve; a spent, over-budget, or unprojectable challenge fails closed with a named reason before any hashing | -| M014 — pass-cookie lifetime and egress binding | capability | `plans/implementation/agentic-retrieval-integrity/014-pass-cookie-lifetime-and-egress-binding.md` | none | A cookie is never reused beyond a usable published lifetime or the configured ceiling; expired or malformed lifetimes disable reuse, while providers publishing no lifetime retain the existing ceiling fallback; no solve-count reduction is claimed | +| M014 — pass-cookie lifetime and egress binding | capability | `plans/archive/implementation/agentic-retrieval-integrity/014-pass-cookie-lifetime-and-egress-binding.md` | none | A cookie is never reused beyond a usable published lifetime or the configured ceiling; expired or malformed lifetimes disable reuse, while providers publishing no lifetime retain the existing ceiling fallback; no solve-count reduction is claimed | | M015 — challenge solvability observability | capability | `plans/archive/implementation/agentic-retrieval-integrity/015-challenge-solvability-observability.md` | none | An operator can see solve attempts, outcomes by bound, and cookie cache hits without reading logs, and no secret material appears | | M016 — Anubis `metarefresh` solver | capability | `plans/archive/implementation/agentic-retrieval-integrity/016-anubis-metarefresh-solver.md` | ADR-0010 | A deployment offering only the no-JavaScript method is reachable with zero hashing, and the echoed payload contains only published values | | M017 — routing shipped-set evidence and keyword predicate | invariant (corrective to M006) | `plans/archive/implementation/agentic-retrieval-integrity/017-routing-shipped-set-evidence-and-keyword-predicate.md` | hard M004, M005, M006 | The shipped default provider set is measured, so `intent_mode` is decided by evidence; and no routing entry can be one that rejects a keyword query | @@ -179,24 +179,24 @@ ADR-0011 fetch document addressing ──> M019 fetch document budget ──> M0 | M026 — unsupported extension refusal | invariant (corrective) | `plans/archive/implementation/agentic-retrieval-integrity/026-anubis-extension-fail-closed.md` | none | A non-empty `extensions` list fails closed before submission with an attributable reason; no extension is authorized | | M027 — `css-load` extension | capability | `plans/archive/implementation/agentic-retrieval-integrity/027-anubis-css-load-extension.md` | hard ADR-0012 acceptance; hard M026 | A `css-load` challenge is satisfied with one bounded same-origin GET; unknown and `headless` stay refused | | M028 — WASM `sha256` method | capability | `plans/archive/implementation/agentic-retrieval-integrity/028-anubis-wasm-sha256-method.md` | hard ADR-0013 acceptance; M026 | A `sha256` challenge solves under the fast-equivalent ceiling; `argon2id`/`hashx` stay refused | -| M029 — unified fetch tool and legacy aliases | capability | `plans/implementation/agentic-retrieval-integrity/029-unified-fetch-tool-and-legacy-aliases.md` | interface ADR-0016 accepted | One canonical nine-tool inventory advertises `fetch` for one or many web/repo items; `web_fetch` and `batch_fetch` remain callable with legacy behavior but are absent from discovery and `next_actions`; full and compact schemas are smaller than baseline | -| M030 — M014 expiry-safety acceptance reconciliation | invariant (corrective) | `plans/implementation/agentic-retrieval-integrity/030-m014-solve-count-acceptance-reconciliation.md` | operational: user-selected path 1 | M014's expiry-safety criterion is evidenced; its original solve-count-reduction clause is superseded, not met, and no reduction is claimed | -| M031 — fetch-path challenge solve parity | capability | `plans/implementation/agentic-retrieval-integrity/031-fetch-path-challenge-solve-parity.md` | hard ADR-0017 (accepted) | Every fetch surface that can observe a published challenge attempts one bounded solve and one replay through a single shared implementation; `repo_fetch` and the CLI gain the classification the MCP web family already has; the `batch_fetch` residual is proven by test and its stale note corrected | -| M032 — ALTCHA on the general fetch path | capability | `plans/implementation/agentic-retrieval-integrity/032-altcha-on-the-general-fetch-path.md` | hard ADR-0017 (accepted); hard M031 | A general fetch that meets a published ALTCHA PBKDF2 challenge solves it under the same ceilings and replays once; a challenge or verify endpoint that cannot be derived same-origin fails closed as `unsupported scheme` | -| M033 — fetch-side pass-cookie reuse | capability | `plans/implementation/agentic-retrieval-integrity/033-fetch-side-pass-cookie-reuse.md` | hard ADR-0017 (accepted); hard M031; interface M014 | A fetch-side pass cookie is reused for the issuing origin only, within its published lifetime and the operator ceiling, never past expiry, and is evicted when the upstream rejects it | -| M034 — fetch-side stale pass-cookie recovery | capability | `plans/implementation/agentic-retrieval-integrity/034-fetch-side-stale-pass-cookie-recovery.md` | hard ADR-0017 (accepted); hard ADR-0018 (accepted); hard M031; hard M033 | A fetch that meets a refused cached pass cookie evicts it and recovers in the same call, so the caller never has to await a second fetch to get a document; one solve and one replay of a solved pair set per call still hold | -| M035 — browser challenge completion | capability | `plans/implementation/agentic-retrieval-integrity/035-browser-challenge-completion.md` | hard ADR-0019 (accepted); hard M031, M034 | Under `policy = auto` a solvable wall reaches the solver instead of Chrome, a script-driven wall completes in the browser and returns the document, and an unresolved wall is returned marked rather than as a bare wall | -| M036 — unified fetch repo-item budget and outcome | invariant (corrective) | `plans/implementation/agentic-retrieval-integrity/036-unified-fetch-repo-item-budget-and-outcome.md` | hard M029 (closed); interface adaptive M002 (closed) | A repo item is charged the same readable-text measure as a web item, truncates before it is omitted, and an omitted item is `ok: false`; no item reports success with no content | -| M037 — local repo-search relevance and scope | invariant (corrective) | `plans/implementation/agentic-retrieval-integrity/037-local-repo-search-relevance-and-scope.md` | none; interface M006 (closed) | A local result requires a query, path/file, or symbol match; a no-match query returns an explicit empty state; a remote-scoped request includes local results only when `include_local: true` is explicit | -| M038 — security-search native advisory routing | capability (corrective) | `plans/implementation/agentic-retrieval-integrity/038-security-search-native-advisory-routing.md` | none; interface M006 (closed) | An enabled native advisory provider is selected for identifier queries by default, the availability and severity warnings match reality, and a native vulnerability carries a bounded summary | -| M039 — fetch emitted-payload budget | invariant (corrective to M036) | `plans/implementation/agentic-retrieval-integrity/039-fetch-emitted-payload-budget.md` | hard M036 (closed) | `max_total_chars` bounds the emitted payload; optional `document`/`lines` degrade before the requested text is clipped, and `payload_chars` reports the true emitted size | -| M040 — local content-aware candidate generation | capability (corrective to M037) | `plans/implementation/agentic-retrieval-integrity/040-local-content-aware-candidate-generation.md` | hard M037 (closed) | A content or symbol query finds matches beyond the path-ranked window inside a scan bound; truncation and no-match describe the scan honestly | -| M041 — linked worktree identity resolution and prefer-local honesty | capability (corrective to M037, M040) | `plans/implementation/agentic-retrieval-integrity/041-linked-worktree-identity-resolution.md` | hard M037 (closed); hard M040 (closed) | A checkout in a linked git worktree resolves its remote identity through the common directory, so `prefer_local` returns the local copy instead of silently falling back to a remote fetch; a skipped local copy is stated | -| M042 — fetch item shape diagnostics | invariant (corrective to M029) | `plans/implementation/agentic-retrieval-integrity/042-fetch-item-shape-diagnostics.md` | hard M029 (closed) | A `fetch` item with a missing or unknown `type` tag returns an actionable error naming the accepted shapes; no fetch error names a private Rust type | -| M046 — fetch browser-escalation parity | correctness (corrective to M045) | `plans/implementation/agentic-retrieval-integrity/046-fetch-browser-escalation-parity.md` | hard M045 (closed); interface ADR-0019 (accepted) | Closed at `20c0672ad835796a22b6f4e830757a97753ca49f`: `fetch`, `batch_fetch`, the `fetch` alias, and the CLI escalate once to the browser for the same `429`/`5xx` class that `web_search` already escalates, under a return rule that keeps a genuine outage as `http_status`; refusals, `http_only`, and the CLI surface (no new flag) are unchanged. Closure: `plans/closure/agentic-retrieval-integrity/046-status.md`. | -| M045 — browser-fidelity provider access | correctness | `plans/implementation/agentic-retrieval-integrity/045-browser-fidelity-provider-access.md` | hard ADR-0006, ADR-0019 (accepted); interface M044 (closed) | Closed at `364014c6fd9c29e6dd082915bd334ccf9bc148dd`: a challenge served with a non-success status is classified as `blocked` with the status in the reason, and `brave` and `yahoo` fall back once to a bounded render of the shipped browser and parse the rendered DOM, so both return five results on this egress (4.8–5.7 s and 3.8–4.2 s). The browser presents its own Chrome identity instead of `HeadlessChrome/…`, and valued flags now reach Chromium as key/value pairs. No tool, argument, schema property, configuration key, or provider id changed. Closure: `plans/closure/agentic-retrieval-integrity/045-status.md`. | -| M044 — challenge solving on by default | invariant (corrective to M035, ADR-0019 §4) | `plans/implementation/agentic-retrieval-integrity/044-challenge-solving-on-by-default.md` | hard ADR-0019 (accepted); interface M035 (closed) | Closed at `7b28436ce913bbed52bd7fdc3ba5cf14f9c85f70`: `[search.challenge].enabled` defaults to true at `max_difficulty 6`, `max_attempts 100000000`, `timeout_ms 10000`, so a challenged `mojeek` or `startpage` request returns results without operator configuration (1.6 s / 2.6 s first, then sub-second reuse); `enabled = false` restores the previous behaviour. Closure: `plans/closure/agentic-retrieval-integrity/044-status.md`. | -| M043 — local repo-search empty-result determinism | invariant (corrective to M037, M040) | `plans/implementation/agentic-retrieval-integrity/043-local-repo-search-empty-result-determinism.md` | hard M037 (closed); hard M040 (closed); interface M041 (closed) | A local `repo_search` whose bounded content pass did not run or was clipped is distinguishable from a true no-match, and the content-only positive fixture is deterministic under saturated parallel load | +| M029 — unified fetch tool and legacy aliases | capability | `plans/archive/implementation/agentic-retrieval-integrity/029-unified-fetch-tool-and-legacy-aliases.md` | interface ADR-0016 accepted | One canonical nine-tool inventory advertises `fetch` for one or many web/repo items; `web_fetch` and `batch_fetch` remain callable with legacy behavior but are absent from discovery and `next_actions`; full and compact schemas are smaller than baseline | +| M030 — M014 expiry-safety acceptance reconciliation | invariant (corrective) | `plans/archive/implementation/agentic-retrieval-integrity/030-m014-solve-count-acceptance-reconciliation.md` | operational: user-selected path 1 | M014's expiry-safety criterion is evidenced; its original solve-count-reduction clause is superseded, not met, and no reduction is claimed | +| M031 — fetch-path challenge solve parity | capability | `plans/archive/implementation/agentic-retrieval-integrity/031-fetch-path-challenge-solve-parity.md` | hard ADR-0017 (accepted) | Every fetch surface that can observe a published challenge attempts one bounded solve and one replay through a single shared implementation; `repo_fetch` and the CLI gain the classification the MCP web family already has; the `batch_fetch` residual is proven by test and its stale note corrected | +| M032 — ALTCHA on the general fetch path | capability | `plans/archive/implementation/agentic-retrieval-integrity/032-altcha-on-the-general-fetch-path.md` | hard ADR-0017 (accepted); hard M031 | A general fetch that meets a published ALTCHA PBKDF2 challenge solves it under the same ceilings and replays once; a challenge or verify endpoint that cannot be derived same-origin fails closed as `unsupported scheme` | +| M033 — fetch-side pass-cookie reuse | capability | `plans/archive/implementation/agentic-retrieval-integrity/033-fetch-side-pass-cookie-reuse.md` | hard ADR-0017 (accepted); hard M031; interface M014 | A fetch-side pass cookie is reused for the issuing origin only, within its published lifetime and the operator ceiling, never past expiry, and is evicted when the upstream rejects it | +| M034 — fetch-side stale pass-cookie recovery | capability | `plans/archive/implementation/agentic-retrieval-integrity/034-fetch-side-stale-pass-cookie-recovery.md` | hard ADR-0017 (accepted); hard ADR-0018 (accepted); hard M031; hard M033 | A fetch that meets a refused cached pass cookie evicts it and recovers in the same call, so the caller never has to await a second fetch to get a document; one solve and one replay of a solved pair set per call still hold | +| M035 — browser challenge completion | capability | `plans/archive/implementation/agentic-retrieval-integrity/035-browser-challenge-completion.md` | hard ADR-0019 (accepted); hard M031, M034 | Under `policy = auto` a solvable wall reaches the solver instead of Chrome, a script-driven wall completes in the browser and returns the document, and an unresolved wall is returned marked rather than as a bare wall | +| M036 — unified fetch repo-item budget and outcome | invariant (corrective) | `plans/archive/implementation/agentic-retrieval-integrity/036-unified-fetch-repo-item-budget-and-outcome.md` | hard M029 (closed); interface adaptive M002 (closed) | A repo item is charged the same readable-text measure as a web item, truncates before it is omitted, and an omitted item is `ok: false`; no item reports success with no content | +| M037 — local repo-search relevance and scope | invariant (corrective) | `plans/archive/implementation/agentic-retrieval-integrity/037-local-repo-search-relevance-and-scope.md` | none; interface M006 (closed) | A local result requires a query, path/file, or symbol match; a no-match query returns an explicit empty state; a remote-scoped request includes local results only when `include_local: true` is explicit | +| M038 — security-search native advisory routing | capability (corrective) | `plans/archive/implementation/agentic-retrieval-integrity/038-security-search-native-advisory-routing.md` | none; interface M006 (closed) | An enabled native advisory provider is selected for identifier queries by default, the availability and severity warnings match reality, and a native vulnerability carries a bounded summary | +| M039 — fetch emitted-payload budget | invariant (corrective to M036) | `plans/archive/implementation/agentic-retrieval-integrity/039-fetch-emitted-payload-budget.md` | hard M036 (closed) | `max_total_chars` bounds the emitted payload; optional `document`/`lines` degrade before the requested text is clipped, and `payload_chars` reports the true emitted size | +| M040 — local content-aware candidate generation | capability (corrective to M037) | `plans/archive/implementation/agentic-retrieval-integrity/040-local-content-aware-candidate-generation.md` | hard M037 (closed) | A content or symbol query finds matches beyond the path-ranked window inside a scan bound; truncation and no-match describe the scan honestly | +| M041 — linked worktree identity resolution and prefer-local honesty | capability (corrective to M037, M040) | `plans/archive/implementation/agentic-retrieval-integrity/041-linked-worktree-identity-resolution.md` | hard M037 (closed); hard M040 (closed) | A checkout in a linked git worktree resolves its remote identity through the common directory, so `prefer_local` returns the local copy instead of silently falling back to a remote fetch; a skipped local copy is stated | +| M042 — fetch item shape diagnostics | invariant (corrective to M029) | `plans/archive/implementation/agentic-retrieval-integrity/042-fetch-item-shape-diagnostics.md` | hard M029 (closed) | A `fetch` item with a missing or unknown `type` tag returns an actionable error naming the accepted shapes; no fetch error names a private Rust type | +| M046 — fetch browser-escalation parity | correctness (corrective to M045) | `plans/archive/implementation/agentic-retrieval-integrity/046-fetch-browser-escalation-parity.md` | hard M045 (closed); interface ADR-0019 (accepted) | Closed at `20c0672ad835796a22b6f4e830757a97753ca49f`: `fetch`, `batch_fetch`, the `fetch` alias, and the CLI escalate once to the browser for the same `429`/`5xx` class that `web_search` already escalates, under a return rule that keeps a genuine outage as `http_status`; refusals, `http_only`, and the CLI surface (no new flag) are unchanged. Closure: `plans/closure/agentic-retrieval-integrity/046-status.md`. | +| M045 — browser-fidelity provider access | correctness | `plans/archive/implementation/agentic-retrieval-integrity/045-browser-fidelity-provider-access.md` | hard ADR-0006, ADR-0019 (accepted); interface M044 (closed) | Closed at `364014c6fd9c29e6dd082915bd334ccf9bc148dd`: a challenge served with a non-success status is classified as `blocked` with the status in the reason, and `brave` and `yahoo` fall back once to a bounded render of the shipped browser and parse the rendered DOM, so both return five results on this egress (4.8–5.7 s and 3.8–4.2 s). The browser presents its own Chrome identity instead of `HeadlessChrome/…`, and valued flags now reach Chromium as key/value pairs. No tool, argument, schema property, configuration key, or provider id changed. Closure: `plans/closure/agentic-retrieval-integrity/045-status.md`. | +| M044 — challenge solving on by default | invariant (corrective to M035, ADR-0019 §4) | `plans/archive/implementation/agentic-retrieval-integrity/044-challenge-solving-on-by-default.md` | hard ADR-0019 (accepted); interface M035 (closed) | Closed at `7b28436ce913bbed52bd7fdc3ba5cf14f9c85f70`: `[search.challenge].enabled` defaults to true at `max_difficulty 6`, `max_attempts 100000000`, `timeout_ms 10000`, so a challenged `mojeek` or `startpage` request returns results without operator configuration (1.6 s / 2.6 s first, then sub-second reuse); `enabled = false` restores the previous behaviour. Closure: `plans/closure/agentic-retrieval-integrity/044-status.md`. | +| M043 — local repo-search empty-result determinism | invariant (corrective to M037, M040) | `plans/archive/implementation/agentic-retrieval-integrity/043-local-repo-search-empty-result-determinism.md` | hard M037 (closed); hard M040 (closed); interface M041 (closed) | A local `repo_search` whose bounded content pass did not run or was clipped is distinguishable from a true no-match, and the content-only positive fixture is deterministic under saturated parallel load | M001–M005 are closed at `c9912fc0e4824c4ec6b1231be2057fb4cd0ba8ab` (baseline `cd81f4d`). Each closure record in `plans/closure/agentic-retrieval-integrity/` records the implementation evidence, and the closure @@ -247,7 +247,7 @@ exposed M011's mandatory-`redir` defect. - M031 is `closed` on implementation candidate `7f7219beca61bce2247e7cf9bbaad8ef141467b6`: the bounded Anubis solve moved into the shared `src/challenge_replay/` module, the remote `repo_fetch` path and the CLI `eggsearch fetch` command now attempt a bounded solve and one replay, the recorded `batch_fetch` residual is proven by a behavioral test and its stale documentation corrected, and two static guards keep the fetch layer free of the solver and keep one shared implementation. Pinned Rust 1.89 `make check` passed with 85 suites and 6,374 tests, `make docs-check` passed, and the packaging and planning contracts passed. Fetch-path solves now record under the ledger label `fetch`. Evidence: `plans/closure/agentic-retrieval-integrity/031-status.md`. - M032 is `closed` on implementation candidate `421d4b2bbb81f22d3e74be1f7f3ff22a5d63c54e`: the shared `src/challenge_replay/` module gained an ALTCHA branch beside the Anubis one, so a general fetch that meets a published ALTCHA PBKDF2 wall attempts one bounded solve and one replay on the MCP web family, the remote `repo_fetch` path, and the CLI. The new `src/challenge_replay/altcha.rs` derives the challenge document and the verification endpoint from the page's own widget publication, same-origin only, and refuses a cross-origin, scheme-changing, credentialed, query-bearing, over-long, or off-shape endpoint before any request is issued. One ALTCHA solve implementation serves the engine side and the fetch side; a published PBKDF2 `cost` above the solver's ceiling is refused as malformed rather than started, because the cost is the work factor of one counter iteration. Two static guards keep the ownership and the same-origin gate, and a property test proves a derived endpoint is never cross-origin. Pinned Rust 1.89 `make check` passed with 85 suites and 6,399 tests, `make docs-check` passed, and the packaging and planning contracts passed. Evidence: `plans/closure/agentic-retrieval-integrity/032-status.md`. - M033 is `closed` on implementation candidate `5a98682bda4a68ec55dc9e28409fd8269d1f284d`: the shared `src/challenge_replay/` module gained a process-local, origin-keyed pass-cookie cache, so a second challenged fetch to the same origin replays the stored pair set and performs no solve, on the MCP web family, the remote `repo_fetch` path, and the CLI. The reuse window is M014's unchanged rule — the upstream-published lifetime clamped by `cookie_ttl_seconds` — and the cache is bounded to 32 origins and 64 KiB, is never written to disk, and evicts a pair set the upstream rejects. A fetch that crossed an origin stores nothing and reuses nothing, because the issuing origin cannot be established without following the redirect. A new static guard keeps the cache single-owner and disk-free, and the `doctor` egress warning now names the fetch path without adding a warning. Pinned Rust 1.89 `make check` passed with 85 suites and 6,420 tests, `make docs-check` passed, and the packaging and planning contracts passed. Evidence: `plans/closure/agentic-retrieval-integrity/033-status.md`. -- M030 is `closed`: the user selected path 1, re-scoping only M014's solve-count-reduction clause to expiry safety. Existing deterministic tests and the recorded Startpage expiry-boundary observation satisfy the replacement criterion; Mojeek's no-lifetime fallback is unchanged. Solve-count reduction remains unproven. The closure record, plan, roadmap, and registry carry this disposition together. Evidence: `plans/implementation/agentic-retrieval-integrity/030-m014-solve-count-acceptance-reconciliation.md` and `plans/closure/agentic-retrieval-integrity/030-status.md`. +- M030 is `closed`: the user selected path 1, re-scoping only M014's solve-count-reduction clause to expiry safety. Existing deterministic tests and the recorded Startpage expiry-boundary observation satisfy the replacement criterion; Mojeek's no-lifetime fallback is unchanged. Solve-count reduction remains unproven. The closure record, plan, roadmap, and registry carry this disposition together. Evidence: `plans/archive/implementation/agentic-retrieval-integrity/030-m014-solve-count-acceptance-reconciliation.md` and `plans/closure/agentic-retrieval-integrity/030-status.md`. - M035 is `closed` on implementation candidate `55180790c6dc5dbb2ce0d94c186ef88cd7584f48`: under `policy = auto` the solver runs before the browser, so a solvable wall no longer reaches Chrome; a script-driven wall is completed by polling live `classify_response` instead of four title diff --git a/plans/subsystems/browser-artifact-availability-roadmap.md b/plans/subsystems/browser-artifact-availability-roadmap.md index 7b0f0c3c..27c02241 100644 --- a/plans/subsystems/browser-artifact-availability-roadmap.md +++ b/plans/subsystems/browser-artifact-availability-roadmap.md @@ -177,7 +177,7 @@ live tool-surface verification is recorded in the closure record. ### M004 — M003 qualification corrective pass (infrastructure/evidence) — closed -Implementation plan: `plans/implementation/browser-artifact-availability/004-m003-qualification-corrective-pass.md`. +Implementation plan: `plans/archive/implementation/browser-artifact-availability/004-m003-qualification-corrective-pass.md`. Correct the Python request-type schema coverage and unsupported macOS arm64 runner mapping found by M003 qualification. Preserve M003's blocked status and all @@ -192,7 +192,7 @@ can be considered for closure. ### M005 — Session-cap initial render accounting (infrastructure correction) — closed -Implementation plan: `plans/implementation/browser-artifact-availability/005-session-cap-initial-render-accounting.md`. +Implementation plan: `plans/archive/implementation/browser-artifact-availability/005-session-cap-initial-render-accounting.md`. The M003 realistic-mix cap probe found that the baseline increments `requests_this_session` in `begin_render` before a cold browser launch, then the diff --git a/plans/subsystems/code-duplication-consolidation-roadmap.md b/plans/subsystems/code-duplication-consolidation-roadmap.md index 1808cd31..49b495fd 100644 --- a/plans/subsystems/code-duplication-consolidation-roadmap.md +++ b/plans/subsystems/code-duplication-consolidation-roadmap.md @@ -162,7 +162,7 @@ the safety net for M004; M005, M006, and M008 are independent; M007 waits for it Class: infrastructure. Objective: one integration-test harness and `Default` on the three tool argument structs that tests build field by field, so a new argument stops touching dozens of sites. Implementation plan: -`plans/implementation/code-duplication-consolidation/001-test-support-harness-and-default-arguments.md`. +`plans/archive/implementation/code-duplication-consolidation/001-test-support-harness-and-default-arguments.md`. Dependencies: none. Exit: eight suites compile against one helper module, the field-by-field literal count drops materially, and no production behaviour or schema changes. @@ -170,7 +170,7 @@ literal count drops materially, and no production behaviour or schema changes. Class: polish. Objective: express each provider's capability set as `none()` plus the flags it actually enables, pinned by a full-matrix test. Implementation plan: -`plans/implementation/code-duplication-consolidation/002-provider-capability-declaration-compaction.md`. +`plans/archive/implementation/code-duplication-consolidation/002-provider-capability-declaration-compaction.md`. Dependencies: none. Exit: every `KNOWN_PROVIDER_IDS` descriptor is identical to the pinned matrix, and the declaration block shrinks by hundreds of lines. @@ -178,7 +178,7 @@ matrix, and the declaration block shrinks by hundreds of lines. Class: infrastructure. Objective: one table-driven suite covering the invariants the nine forge API engines currently re-test by copy, then delete the copies. Implementation plan: -`plans/implementation/code-duplication-consolidation/003-engine-api-conformance-harness.md`. +`plans/archive/implementation/code-duplication-consolidation/003-engine-api-conformance-harness.md`. Dependencies: none. Exit: the shared invariants are asserted once per engine from one table and the duplicated engine tests are gone, with no production change. @@ -186,7 +186,7 @@ the duplicated engine tests are gone, with no production change. Class: infrastructure. Objective: one bounded JSON GET helper plus shared small helpers for the forge engines, so each engine owns only its request parameters and its `convert`. Implementation -plan: `plans/implementation/code-duplication-consolidation/004-shared-engine-json-transport.md`. +plan: `plans/archive/implementation/code-duplication-consolidation/004-shared-engine-json-transport.md`. Dependencies: hard M003 (the conformance suite is the safety net). Exit: the duplicated send/status/parse block is gone, error mapping is unchanged, and M003 stays green. @@ -195,7 +195,7 @@ send/status/parse block is gone, error mapping is unchanged, and M003 stays gree Class: infrastructure. Objective: one orchestration for the gated-status escalation used by the MCP fetch surfaces and the CLI, with the render supplied as a callback so no layer inversion is introduced. Implementation plan: -`plans/implementation/code-duplication-consolidation/005-shared-fetch-escalation-seam.md`. +`plans/archive/implementation/code-duplication-consolidation/005-shared-fetch-escalation-seam.md`. Dependencies: none; interface ADR-0017 §4. Exit: one implementation of the deadline floor, timeout, return rule, and completion accounting; the CLI keeps its surface and the MCP keeps its permits, profiles, and screenshots. @@ -204,7 +204,7 @@ permits, profiles, and screenshots. Class: polish. Objective: one set of bounds helpers behind the four request validators, keeping each validator's error type and messages. Implementation plan: -`plans/implementation/code-duplication-consolidation/006-core-request-validation-helpers.md`. +`plans/archive/implementation/code-duplication-consolidation/006-core-request-validation-helpers.md`. Dependencies: none. Exit: four validators delegate the shared checks; every existing validator test and error string is unchanged. @@ -213,7 +213,7 @@ test and error string is unchanged. Class: compatibility + infrastructure. Objective: one `RepoTarget` field set composed into the four repository-target shapes, one locator-to-request conversion, and a parity test, under ADR-0023. Implementation plan: -`plans/implementation/code-duplication-consolidation/007-one-repository-target-field-set.md`. +`plans/archive/implementation/code-duplication-consolidation/007-one-repository-target-field-set.md`. Dependencies: hard ADR-0023 acceptance. Exit: one field list, unchanged JSON contract, measured schema bytes inside budget, and `repo_fetch` still answers identically as an alias. @@ -221,7 +221,7 @@ schema bytes inside budget, and `repo_fetch` still answers identically as an ali Class: polish. Objective: replace 39 forwarding `impl SearchEngine` blocks with one macro and per-engine call expressions. Implementation plan: -`plans/implementation/code-duplication-consolidation/008-searchengine-implementation-macro.md`. +`plans/archive/implementation/code-duplication-consolidation/008-searchengine-implementation-macro.md`. Dependencies: soft M004 (same directory, import churn). Exit: the trait scaffolding exists once, every engine name and behaviour is unchanged, and the engine suite count is unchanged. @@ -278,11 +278,11 @@ target; it is the absence of a second place to edit for the fields, helpers, and | Milestone | Class | Status | Implementation plan | Blockers | |---|---|---|---|---| -| M001 | infrastructure | closed | `plans/implementation/code-duplication-consolidation/001-test-support-harness-and-default-arguments.md` | Closed; `plans/closure/code-duplication-consolidation/001-status.md` | -| M002 | polish | closed | `plans/implementation/code-duplication-consolidation/002-provider-capability-declaration-compaction.md` | Closed; `plans/closure/code-duplication-consolidation/002-status.md` | -| M003 | infrastructure | closed | `plans/implementation/code-duplication-consolidation/003-engine-api-conformance-harness.md` | Closed; `plans/closure/code-duplication-consolidation/003-status.md` | -| M004 | infrastructure | closed | `plans/implementation/code-duplication-consolidation/004-shared-engine-json-transport.md` | Closed; `plans/closure/code-duplication-consolidation/004-status.md` | -| M005 | infrastructure | closed | `plans/implementation/code-duplication-consolidation/005-shared-fetch-escalation-seam.md` | Closed; `plans/closure/code-duplication-consolidation/005-status.md` | -| M006 | polish | closed | `plans/implementation/code-duplication-consolidation/006-core-request-validation-helpers.md` | Closed; `plans/closure/code-duplication-consolidation/006-status.md` | -| M007 | compatibility | closed | `plans/implementation/code-duplication-consolidation/007-one-repository-target-field-set.md` | Closed; `plans/closure/code-duplication-consolidation/007-status.md` | -| M008 | polish | closed | `plans/implementation/code-duplication-consolidation/008-searchengine-implementation-macro.md` | Closed; `plans/closure/code-duplication-consolidation/008-status.md` | +| M001 | infrastructure | closed | `plans/archive/implementation/code-duplication-consolidation/001-test-support-harness-and-default-arguments.md` | Closed; `plans/closure/code-duplication-consolidation/001-status.md` | +| M002 | polish | closed | `plans/archive/implementation/code-duplication-consolidation/002-provider-capability-declaration-compaction.md` | Closed; `plans/closure/code-duplication-consolidation/002-status.md` | +| M003 | infrastructure | closed | `plans/archive/implementation/code-duplication-consolidation/003-engine-api-conformance-harness.md` | Closed; `plans/closure/code-duplication-consolidation/003-status.md` | +| M004 | infrastructure | closed | `plans/archive/implementation/code-duplication-consolidation/004-shared-engine-json-transport.md` | Closed; `plans/closure/code-duplication-consolidation/004-status.md` | +| M005 | infrastructure | closed | `plans/archive/implementation/code-duplication-consolidation/005-shared-fetch-escalation-seam.md` | Closed; `plans/closure/code-duplication-consolidation/005-status.md` | +| M006 | polish | closed | `plans/archive/implementation/code-duplication-consolidation/006-core-request-validation-helpers.md` | Closed; `plans/closure/code-duplication-consolidation/006-status.md` | +| M007 | compatibility | closed | `plans/archive/implementation/code-duplication-consolidation/007-one-repository-target-field-set.md` | Closed; `plans/closure/code-duplication-consolidation/007-status.md` | +| M008 | polish | closed | `plans/archive/implementation/code-duplication-consolidation/008-searchengine-implementation-macro.md` | Closed; `plans/closure/code-duplication-consolidation/008-status.md` | diff --git a/plans/subsystems/knowledge-delta-corrective-addendum.md b/plans/subsystems/knowledge-delta-corrective-addendum.md index 7ab896e2..a9f73cc8 100644 --- a/plans/subsystems/knowledge-delta-corrective-addendum.md +++ b/plans/subsystems/knowledge-delta-corrective-addendum.md @@ -8,7 +8,7 @@ Owner: model-cutoff metadata, knowledge-index operability, and evidence-quality Controlling documents: `plans/000-long-term-specification.md` §§1–4, 7–9; `plans/001-terminology-and-domain-model.md` §§1–3; `plans/002-long-term-roadmap.md`; `plans/003-planning-process.md`; accepted ADR-0006, ADR-0020, ADR-0021. -Predecessor (closed, not reopened): `plans/subsystems/knowledge-delta-roadmap.md` M001–M004; `plans/archive/implementation/knowledge-delta/001-cutoff-aware-knowledge-brief.md`, `002-local-evidence-index.md`, `003-source-driven-topic-discovery.md`, plus the corrective `plans/implementation/knowledge-delta/004-brief-delta-production-and-honest-diagnostics.md`; exact candidates `c0f71909cfe2e6016512423e55b9d00fdb7220c5` (M001–M003) and `380a55cd7ea7c0b37dc6eff53851926e96e894d0` (M004); closure evidence `plans/closure/knowledge-delta/001-status.md` through `004-status.md`. +Predecessor (closed, not reopened): `plans/subsystems/knowledge-delta-roadmap.md` M001–M004; `plans/archive/implementation/knowledge-delta/001-cutoff-aware-knowledge-brief.md`, `002-local-evidence-index.md`, `003-source-driven-topic-discovery.md`, plus the corrective `plans/archive/implementation/knowledge-delta/004-brief-delta-production-and-honest-diagnostics.md`; exact candidates `c0f71909cfe2e6016512423e55b9d00fdb7220c5` (M001–M003) and `380a55cd7ea7c0b37dc6eff53851926e96e894d0` (M004); closure evidence `plans/closure/knowledge-delta/001-status.md` through `004-status.md`. ## 1. Purpose and corrective classification @@ -36,9 +36,9 @@ The original workstream owns bounded evidence retrieval and the index implementa | Milestone | Primary class | Status | Handoff | Dependencies | User-visible exit | |---|---|---|---|---|---| -| M005 — Verified model-cutoff coverage | capability | closed | `plans/implementation/knowledge-delta/005-verified-model-cutoff-coverage.md` | Hard: closed M001 and accepted ADR-0020; all satisfied. No unresolved architectural decision. | Priority model IDs resolve to sourced, precision-preserving verified cutoffs or explicit, auditable unknowns, with more than the existing single verified record. | -| M006 — Opt-in index setup and seeding | capability | closed | `plans/implementation/knowledge-delta/006-opt-in-index-onboarding-and-seeding.md` | Hard: closed M002/M003 and accepted ADR-0021; all satisfied. Independent of M005. | Operator can explicitly enable index, retain approved evidence, inspect state, restart and retrieve related-topic hits with no implicit persistence. | -| M007 — Live discovery quality qualification | capability | closed | `plans/implementation/knowledge-delta/007-live-discovery-quality-qualification.md` | Hard: closed M001–M003; satisfied. Interface: existing live/index/related schema. Soft: M005 catalog and M006 setup for realistic evaluations. | Quantified precision/recall, dating and cost on held-out and live cases; any change to ranking/expansion has measured gain and guard-bounded regression. | +| M005 — Verified model-cutoff coverage | capability | closed | `plans/archive/implementation/knowledge-delta/005-verified-model-cutoff-coverage.md` | Hard: closed M001 and accepted ADR-0020; all satisfied. No unresolved architectural decision. | Priority model IDs resolve to sourced, precision-preserving verified cutoffs or explicit, auditable unknowns, with more than the existing single verified record. | +| M006 — Opt-in index setup and seeding | capability | closed | `plans/archive/implementation/knowledge-delta/006-opt-in-index-onboarding-and-seeding.md` | Hard: closed M002/M003 and accepted ADR-0021; all satisfied. Independent of M005. | Operator can explicitly enable index, retain approved evidence, inspect state, restart and retrieve related-topic hits with no implicit persistence. | +| M007 — Live discovery quality qualification | capability | closed | `plans/archive/implementation/knowledge-delta/007-live-discovery-quality-qualification.md` | Hard: closed M001–M003; satisfied. Interface: existing live/index/related schema. Soft: M005 catalog and M006 setup for realistic evaluations. | Quantified precision/recall, dating and cost on held-out and live cases; any change to ranking/expansion has measured gain and guard-bounded regression. | M005 and M006 were implemented together and closed on the same candidate; M007 built its corpus in parallel but qualified the behavior after both changes, so no integration gap has to be recorded. All three are **closed** on implementation candidate `e817dfde35372aa307f5580a144d7ededcb55574`. diff --git a/plans/subsystems/knowledge-delta-roadmap.md b/plans/subsystems/knowledge-delta-roadmap.md index ce984cf4..a8fb9434 100644 --- a/plans/subsystems/knowledge-delta-roadmap.md +++ b/plans/subsystems/knowledge-delta-roadmap.md @@ -106,10 +106,10 @@ not asserted complete. | M001 — Cutoff-aware knowledge brief | capability | closed | `plans/archive/implementation/knowledge-delta/001-cutoff-aware-knowledge-brief.md` | Closed on candidate `c0f71909cfe2e6016512423e55b9d00fdb7220c5`; see `plans/closure/knowledge-delta/001-status.md`. | | M002 — Optional local evidence index | infrastructure | closed | `plans/archive/implementation/knowledge-delta/002-local-evidence-index.md` | Closed on candidate `c0f71909cfe2e6016512423e55b9d00fdb7220c5`; Linux/Windows records and target qualification are in `plans/closure/knowledge-delta/002-status.md`; no numeric threshold pass is claimed. | | M003 — Source-driven topic discovery | capability | closed | `plans/archive/implementation/knowledge-delta/003-source-driven-topic-discovery.md` | Closed on candidate `c0f71909cfe2e6016512423e55b9d00fdb7220c5`; omission fixture and negative controls are in `plans/closure/knowledge-delta/003-status.md`. | -| M004 — Brief delta production and honest diagnostics | capability (corrective to M001) | closed | `plans/implementation/knowledge-delta/004-brief-delta-production-and-honest-diagnostics.md` | Closed on candidate `380a55cd7ea7c0b37dc6eff53851926e96e894d0`; see `plans/closure/knowledge-delta/004-status.md`. Hard dependency M001 (closed); interface ADR-0020 and ADR-0021 (both accepted). A brief over a provider set with no result timestamps names that reason instead of returning a bare empty delta list; a resolved cutoff over dated sources still emits deltas with unchanged `kdelta_` identities; a live brief still does not open the index. | -| M005 — Verified model-cutoff coverage | capability (corrective to M001) | closed | `plans/implementation/knowledge-delta/005-verified-model-cutoff-coverage.md` | Closed on candidate `e817dfde35372aa307f5580a144d7ededcb55574`; see `plans/closure/knowledge-delta/005-status.md`. Eleven verified cutoffs across OpenAI, Anthropic, and xAI, five explicit no-published-cutoff dispositions, a manifest validated against the bundled snapshot in both directions, and `model_resolution.catalog_as_of`. | -| M006 — Opt-in index onboarding and seeding | capability (corrective to M002 and M003) | closed | `plans/implementation/knowledge-delta/006-opt-in-index-onboarding-and-seeding.md` | Closed on candidate `e817dfde35372aa307f5580a144d7ededcb55574`; see `plans/closure/knowledge-delta/006-status.md`. `index_status: disabled` is distinct from `offline`; an index refresh separates `index_not_seeded` and `index_stale` from `no_matching_index_hits`; the disabled path never opens the database. No default or schema change. | -| M007 — Live discovery quality qualification | capability (corrective to M003) | closed (measurement-only) | `plans/implementation/knowledge-delta/007-live-discovery-quality-qualification.md` | Closed on candidate `e817dfde35372aa307f5580a144d7ededcb55574`; see `plans/closure/knowledge-delta/007-status.md`. Frozen 88-case corpus plus a 15-topic live study. No production change and no recall-improvement claim; the ablation shows the shipped index expansion is what recovers withheld evidence, and provider breadth limits live discovery. | +| M004 — Brief delta production and honest diagnostics | capability (corrective to M001) | closed | `plans/archive/implementation/knowledge-delta/004-brief-delta-production-and-honest-diagnostics.md` | Closed on candidate `380a55cd7ea7c0b37dc6eff53851926e96e894d0`; see `plans/closure/knowledge-delta/004-status.md`. Hard dependency M001 (closed); interface ADR-0020 and ADR-0021 (both accepted). A brief over a provider set with no result timestamps names that reason instead of returning a bare empty delta list; a resolved cutoff over dated sources still emits deltas with unchanged `kdelta_` identities; a live brief still does not open the index. | +| M005 — Verified model-cutoff coverage | capability (corrective to M001) | closed | `plans/archive/implementation/knowledge-delta/005-verified-model-cutoff-coverage.md` | Closed on candidate `e817dfde35372aa307f5580a144d7ededcb55574`; see `plans/closure/knowledge-delta/005-status.md`. Eleven verified cutoffs across OpenAI, Anthropic, and xAI, five explicit no-published-cutoff dispositions, a manifest validated against the bundled snapshot in both directions, and `model_resolution.catalog_as_of`. | +| M006 — Opt-in index onboarding and seeding | capability (corrective to M002 and M003) | closed | `plans/archive/implementation/knowledge-delta/006-opt-in-index-onboarding-and-seeding.md` | Closed on candidate `e817dfde35372aa307f5580a144d7ededcb55574`; see `plans/closure/knowledge-delta/006-status.md`. `index_status: disabled` is distinct from `offline`; an index refresh separates `index_not_seeded` and `index_stale` from `no_matching_index_hits`; the disabled path never opens the database. No default or schema change. | +| M007 — Live discovery quality qualification | capability (corrective to M003) | closed (measurement-only) | `plans/archive/implementation/knowledge-delta/007-live-discovery-quality-qualification.md` | Closed on candidate `e817dfde35372aa307f5580a144d7ededcb55574`; see `plans/closure/knowledge-delta/007-status.md`. Frozen 88-case corpus plus a 15-topic live study. No production change and no recall-improvement claim; the ablation shows the shipped index expansion is what recovers withheld evidence, and provider breadth limits live discovery. | ## 7. Cross-cutting requirements diff --git a/plans/subsystems/mcp-tool-surface-succession-roadmap.md b/plans/subsystems/mcp-tool-surface-succession-roadmap.md index c01253af..c810b77f 100644 --- a/plans/subsystems/mcp-tool-surface-succession-roadmap.md +++ b/plans/subsystems/mcp-tool-surface-succession-roadmap.md @@ -147,7 +147,7 @@ M001, M002, and M003 are dependency-ready now and are ordered by risk, not value Class: infrastructure. Objective: one maintained source per advertised search argument list and per goal vocabulary, with the full and compact profiles advertising the same accepted values. Implementation plan: -`plans/implementation/mcp-tool-surface-succession/001-search-schema-single-sourcing.md`. +`plans/archive/implementation/mcp-tool-surface-succession/001-search-schema-single-sourcing.md`. Exit: a drift in either direction fails a test; no accepted value and no advertised byte budget changes. @@ -156,14 +156,14 @@ budget changes. Class: infrastructure + polish. Objective: cut the `build_evidence_bundle` input schema to a bounded passthrough projection without narrowing the runtime types or changing bundle identity. Implementation plan: -`plans/implementation/mcp-tool-surface-succession/002-evidence-bundle-input-projection.md`. +`plans/archive/implementation/mcp-tool-surface-succession/002-evidence-bundle-input-projection.md`. Exit: measured reduction with unchanged acceptance fixtures and a lowered byte ceiling. ### M003 — One inventory, every projection Class: infrastructure. Objective: make the inventory projections agree by test and remove duplicated counts from prose. Implementation plan: -`plans/implementation/mcp-tool-surface-succession/003-tool-inventory-parity.md`. +`plans/archive/implementation/mcp-tool-surface-succession/003-tool-inventory-parity.md`. Exit: injected drift in any projection fails; the two known stale statements are corrected or replaced by pointers. @@ -171,7 +171,7 @@ replaced by pointers. Class: capability + compatibility. Objective: advertise `fetch` as the only repository read operation and keep `repo_fetch` as a callable compatibility alias. Implementation plan: -`plans/implementation/mcp-tool-surface-succession/004-repository-read-consolidation.md`. +`plans/archive/implementation/mcp-tool-surface-succession/004-repository-read-consolidation.md`. Dependencies: hard ADR-0022 acceptance; soft M003. Exit: nine advertised tools, `repo_fetch` still callable with its current request and response, every projection and document updated in the same candidate. @@ -216,10 +216,10 @@ recorded decision to keep ten. | Milestone | Status | Implementation plan | Closure record | Blockers | |---|---|---|---|---| -| M001 | closed | `plans/implementation/mcp-tool-surface-succession/001-search-schema-single-sourcing.md` | `plans/closure/mcp-tool-surface-succession/001-status.md` | None | -| M002 | closed | `plans/implementation/mcp-tool-surface-succession/002-evidence-bundle-input-projection.md` | `plans/closure/mcp-tool-surface-succession/002-status.md` | None | -| M003 | closed | `plans/implementation/mcp-tool-surface-succession/003-tool-inventory-parity.md` | `plans/closure/mcp-tool-surface-succession/003-status.md` | None | -| M004 | closed | `plans/implementation/mcp-tool-surface-succession/004-repository-read-consolidation.md` | `plans/closure/mcp-tool-surface-succession/004-status.md` | ADR-0022 accepted 2026-11-22 | +| M001 | closed | `plans/archive/implementation/mcp-tool-surface-succession/001-search-schema-single-sourcing.md` | `plans/closure/mcp-tool-surface-succession/001-status.md` | None | +| M002 | closed | `plans/archive/implementation/mcp-tool-surface-succession/002-evidence-bundle-input-projection.md` | `plans/closure/mcp-tool-surface-succession/002-status.md` | None | +| M003 | closed | `plans/archive/implementation/mcp-tool-surface-succession/003-tool-inventory-parity.md` | `plans/closure/mcp-tool-surface-succession/003-status.md` | None | +| M004 | closed | `plans/archive/implementation/mcp-tool-surface-succession/004-repository-read-consolidation.md` | `plans/closure/mcp-tool-surface-succession/004-status.md` | ADR-0022 accepted 2026-11-22 | ## 13. Post-milestone measurements diff --git a/src/challenge_replay/altcha.rs b/src/challenge_replay/altcha.rs index f4d044a2..d03a9679 100644 --- a/src/challenge_replay/altcha.rs +++ b/src/challenge_replay/altcha.rs @@ -1,13 +1,4 @@ -//! ALTCHA solving for the general fetch path. -//! -//! ADR-0017 admits ALTCHA PBKDF2 challenges into the fetch-path permitted -//! class. `src/challenge_replay/mod.rs` owns the detect → solve → replay → -//! classify sequence; this module owns the two page-shaped decisions that -//! sequence needs: which challenge document the page publishes, and which -//! same-origin endpoint verifies a solution. -//! -//! The derivation rule is fixed and bounded. Every refusal happens before a -//! request is issued and reuses an existing refusal key. +//! Bounded, same-origin ALTCHA challenge derivation and replay. use std::time::{Duration, Instant}; diff --git a/src/challenge_replay/cache.rs b/src/challenge_replay/cache.rs index 5dc63df8..88ffa4dc 100644 --- a/src/challenge_replay/cache.rs +++ b/src/challenge_replay/cache.rs @@ -1,12 +1,4 @@ -//! Process-local, origin-keyed pass-cookie cache for the fetch path. -//! -//! ADR-0017 keeps the fetch-path solve and replay in one shared module. This -//! module owns the reuse half of that contract: the pair sets a fetch issued, -//! keyed by the origin that issued them. -//! -//! The cache is process-local. A stored pair set lives in memory for the life -//! of the process and never reaches the filesystem, a response, a diagnostic, -//! or a log. +//! In-memory pass-cookie cache, scoped by origin and bounded by size and expiry. use std::collections::HashMap; use std::sync::{Mutex, OnceLock}; diff --git a/src/challenge_replay/mod.rs b/src/challenge_replay/mod.rs index bfce5ff4..9eac02c3 100644 --- a/src/challenge_replay/mod.rs +++ b/src/challenge_replay/mod.rs @@ -1,25 +1,4 @@ -//! Shared challenge solve-and-replay orchestration for every fetch surface. -//! -//! ADR-0017 assigns the detect, solve, replay, and classify sequence to one -//! module outside `src/fetch/**` and `src/meta/**`, so the MCP tool layer and -//! the CLI share a single implementation. `src/fetch/**` keeps detection and -//! marking only and never imports the solver. -//! -//! The contract is unchanged from the solve this module replaced: at most one -//! solve and one replay per fetch call, inside the operator's difficulty, -//! attempt, and wall-clock ceilings; the replayed cookie is sent on the first -//! hop only; and every other outcome leaves the original response untouched. -//! -//! ADR-0018 refines that contract for one case. A stored pair set the upstream -//! refuses is presented once as a reuse probe; the probe is neither a solve -//! nor a replay of a solved pair set, because no solve produced it. The -//! refusal evicts the entry and the same call continues into the ordinary -//! solve path, so the call's single solve and single replay are spent on the -//! freshly issued pair set. -//! -//! The Anubis and ALTCHA branches share that sequence. The ALTCHA branch -//! lives in `altcha`, which owns the page-shaped endpoint derivation the -//! ALTCHA solve needs. +//! Shared bounded challenge solve-and-replay orchestration for fetch surfaces. pub mod altcha; pub mod cache; @@ -104,19 +83,9 @@ pub struct SolvedReplay { pub lifetime: PublishedLifetime, } -/// Solve the challenge published on `response` and replay the request once. +/// Reuse a valid same-origin pass cookie or solve and replay once. /// -/// A stored pair set for the request's own origin is replayed before any -/// solve is attempted. A pair set the upstream refuses is evicted, and the -/// same call continues into the ordinary solve path with the challenge page it -/// already holds, so a caller never has to await a second fetch for the -/// document. -/// -/// Returns the replayed response when the challenge was solved and the replay -/// is not itself a challenge page. Every other outcome — solving disabled, no -/// parseable challenge, a refusal at any ceiling, an error, an exhausted -/// deadline, or a challenged replay — returns `None`, so the caller keeps the -/// original response exactly as it was. +/// Returns `None` for any unsuccessful outcome; callers retain the original response. pub async fn replay_challenge( client: &FetchClient, url: &str, diff --git a/src/commands/fetch.rs b/src/commands/fetch.rs index 04b45052..8241a62f 100644 --- a/src/commands/fetch.rs +++ b/src/commands/fetch.rs @@ -15,10 +15,7 @@ use eggsearch::fetch::browser::{ EscalationOutcome, EscalationRequest, RenderPolicy, }; -/// CLI display cap for links. Distinct from [`crate::fetch::extract::MAX_LINKS`] -/// (the in-memory extractor cap) because the CLI is human-facing and only -/// needs enough links to be useful for a glance at the page; the extractor -/// returns more so that programmatic consumers can pick from a richer set. +/// CLI-visible link cap; the extractor retains more for programmatic consumers. const CLI_DISPLAY_MAX_LINKS: usize = 20; #[allow(clippy::too_many_arguments)] @@ -317,10 +314,7 @@ async fn fetch_response( } } -/// The render policy the operator configured for this process. -/// -/// A disabled browser is `http_only` whatever the policy spelling says, which -/// is how the MCP server reads the same section. +/// Resolve the CLI policy; a disabled browser forces `http_only`, matching MCP behavior. #[cfg(feature = "browser")] fn cli_render_policy(settings: &BrowserConfig) -> RenderPolicy { if settings.enabled { @@ -354,11 +348,7 @@ fn json_payload(response: &WebFetchResponse) -> serde_json::Value { #[cfg(test)] mod tests { use super::*; - /// A mock server whose origin carries no pass cookie from an earlier test. - /// - /// The fetch-side pass-cookie cache is process-local and keyed by origin, - /// and a loopback port can be recycled between tests, so every challenge - /// test starts from an origin that holds no pair set. + /// Mock origin without a cached pass cookie, avoiding loopback-port reuse between tests. fn challenge_server() -> httpmock::MockServer { let server = httpmock::MockServer::start(); if let Some(origin) = eggsearch::challenge_replay::cache::origin_key(&server.url("/")) { diff --git a/src/fetch/browser/classify.rs b/src/fetch/browser/classify.rs index bb242da9..ebaf8a69 100644 --- a/src/fetch/browser/classify.rs +++ b/src/fetch/browser/classify.rs @@ -12,11 +12,7 @@ pub enum FetchDisposition { } impl FetchDisposition { - /// Whether a rendered page is still a script-driven wall. - /// - /// The two dispositions a browser render waits on and reports when it cannot - /// get past them. A detected challenge family is a wall whatever its - /// classification says, so callers check detection as well. + /// Whether the browser should wait for a scripted wall to clear. #[must_use] pub fn is_script_wall(&self) -> bool { matches!( @@ -46,10 +42,7 @@ pub fn classify_response( let title_lower = title.unwrap_or("").to_lowercase(); let body_lower = String::from_utf8_lossy(body_snippet).to_lowercase(); - // A wall marker outranks the document status. Origins serve their - // challenge with a non-success status (Brave answers 429 with its - // proof-of-work page), so a status-first classification would settle - // the render before the page's own script has had a chance to run. + // Classify challenge markers before status; some solvable walls arrive as 429. if is_interactive_challenge(&title_lower, &body_lower) { return FetchDisposition::InteractiveChallenge; } @@ -59,11 +52,7 @@ pub fn classify_response( if is_javascript_shell(&title_lower, text_len, &body_lower) { return FetchDisposition::JavascriptShell; } - // After client-side rendering the DOM is authoritative: an - // interstitial status whose document now carries a real page is a - // served page. The rule is limited to the two statuses an - // interstitial is actually served with, so a denial or an outage is - // still reported as such. + // After rendering, accept substantial content only for 202/429; other failures remain failures. if matches!(status, 202 | 429) && text_len >= RENDERED_CONTENT_MIN_CHARS { return FetchDisposition::UsefulContent; } @@ -77,12 +66,7 @@ pub fn classify_response( } } -/// Whether a rendered page replaces the status error that caused the render. -/// -/// A render is accepted when it ended on a success or redirect status, or when -/// it completed a recognised wall. A `5xx` page the browser only re-rendered is -/// still the origin's outage, so the caller keeps its original error rather -/// than returning an error page as a document. +/// Accept rendered content only on success/redirect or after a recognized wall completes. #[must_use] pub fn rendered_result_serves(status: Option, challenge_completed: bool) -> bool { challenge_completed || status.is_some_and(|status| (200..400).contains(&status)) @@ -96,10 +80,7 @@ fn is_interactive_challenge(title_lower: &str, body: &str) -> bool { return true; } - // Widget and endpoint markers only. A bare "captcha" substring also - // matches a page that merely *offers* a traditional CAPTCHA beside its - // scripted challenge (Brave's proof-of-work page does), and treating that - // as interactive would refuse a page the origin serves to a browser. + // Match explicit widget markers; generic "captcha" text may accompany a solvable wall. let indicators = [ "cf-turnstile", "challenge-platform", diff --git a/src/fetch/browser/lifecycle.rs b/src/fetch/browser/lifecycle.rs index 9839528b..4d840210 100644 --- a/src/fetch/browser/lifecycle.rs +++ b/src/fetch/browser/lifecycle.rs @@ -148,14 +148,8 @@ impl BrowserLifecycle { } } - /// The identity the launched browser presents. - /// - /// Headless Chrome announces itself with a `HeadlessChrome/` token that - /// origins gate on, while the process is the same Chrome build in every - /// other respect. The browser therefore presents that build's own identity - /// rather than the mode it runs in: browser-like, never a third party's - /// (ADR-0019 §5). An unparseable version leaves the flag off rather than - /// claiming a build that was not detected. + /// Identity presented to origins instead of the headless token. + /// Uses the detected Chrome version; omits the flag if it cannot be parsed. fn browser_user_agent(version: &str) -> Option { let major = super::profiles::parse_browser_major_version(version)?; let platform = if cfg!(target_os = "macos") { @@ -237,9 +231,7 @@ impl BrowserLifecycle { bc = bc.chrome_executable(&disc.path); - // chromiumoxide's builder takes a key and a value and renders the - // `--key=value` pair itself, so a flag passed as one `--key=value` - // string becomes `----key=value` and is silently ignored by Chrome. + // chromiumoxide takes flag keys and values separately; a `--key=value` key becomes `----key=value`. if let Some(user_agent) = Self::browser_user_agent(&disc.version) { bc = bc.arg(("user-agent", user_agent.as_str())); } diff --git a/src/fetch/browser/navigate.rs b/src/fetch/browser/navigate.rs index 2c557ade..a8c4d80b 100644 --- a/src/fetch/browser/navigate.rs +++ b/src/fetch/browser/navigate.rs @@ -176,17 +176,7 @@ async fn render_once( } }; - // Every request the page makes — navigation, redirects, and - // subresources alike — is paused by CDP Fetch interception and - // re-validated against the SSRF policy. Validating only the initial URL - // would leave redirect-based escapes open, and Chromium resolving DNS - // internally means each hop must be checked as it is requested. - // - // Note: the resolved addresses are checked but not pinned to the request. - // A split-horizon resolver (public answer here, link-local answer for - // Chromium) is therefore not covered; the HTTP path pins via - // `resolved_addresses`. Unlike the HTTP path, the check runs on the - // validation answer only. + // Revalidate each browser request; unlike HTTP fetch, Chromium's resolved addresses are checked but not pinned. let interceptor = enforce_policy_per_request(&page).await; let captured: Arc>> = Arc::new(StdMutex::new(None)); @@ -218,9 +208,7 @@ async fn enforce_policy_per_request(page: &Page) -> Option = std::collections::HashSet::new(); let mut paused = listener; while let Some(event) = paused.next().await { @@ -558,13 +546,7 @@ async fn page_sample(page: &Page, status: u16, content_type: Option<&str>) -> Pa } } -/// Click the page's own verification control once per render. -/// -/// Some scripted walls gate their challenge script behind a button the page -/// renders ("Verify"). Clicking it is the same act as letting the challenge -/// script run: no image, OCR, or human judgement is involved, and a wall that -/// only an interactive CAPTCHA answers never matches this label set. Returns -/// whether a click was dispatched. +/// Click a scripted "Verify" control once; interactive CAPTCHA labels are excluded. async fn click_verification_control(page: &Page) -> bool { const SCRIPT: &str = r#"(() => { const label = (el) => ((el.innerText || el.value || el.getAttribute('aria-label') || '') + '').trim(); diff --git a/src/fetch/browser/types.rs b/src/fetch/browser/types.rs index 01a6fbc3..ac9d2613 100644 --- a/src/fetch/browser/types.rs +++ b/src/fetch/browser/types.rs @@ -165,11 +165,7 @@ impl Default for BrowserConfig { } impl BrowserConfig { - /// The browser configuration described by the `[fetch.browser]` section. - /// - /// The render policy is parsed from its operator spelling so the CLI and - /// the MCP server read one setting into one value; an unrecognised - /// spelling falls back to `http_only`, exactly as the server does. + /// Browser settings from `[fetch.browser]`; unknown render policies default to `http_only`. #[must_use] pub fn from_settings(settings: &crate::core::config::FetchBrowserSection) -> Self { let policy: RenderPolicy = diff --git a/src/fetch/challenge.rs b/src/fetch/challenge.rs index b84cb8be..20114636 100644 --- a/src/fetch/challenge.rs +++ b/src/fetch/challenge.rs @@ -71,14 +71,8 @@ pub fn warnings(challenge: Option) -> Vec bool { matches!(status, 429 | 500..=599) diff --git a/src/mcp/tools/batch_fetch.rs b/src/mcp/tools/batch_fetch.rs index e0392d4a..30e9b684 100644 --- a/src/mcp/tools/batch_fetch.rs +++ b/src/mcp/tools/batch_fetch.rs @@ -187,22 +187,15 @@ pub(crate) async fn run_batch_fetch_with_item_windows_and_progress( BatchFetchItem, BatchFetchItemType, BatchFetchResponse, BatchFetchResult, }; - // Policy check if matches!(fetch_allowed(state.config.fetch.enabled), Policy::Deny) { return Err(ToolError::Validation(web_fetch_denied_message())); } - // Validate items non-empty if args.items.is_empty() { return Err(ToolError::Validation("items must not be empty".to_string())); } - // Validate top-level budget arguments. Per-item `max_chars` is - // validated below in the pre-validation loop. A zero top-level - // budget is rejected here because silently promoting it to 1 - // (via `.max(1)` later) would contradict the bounded-budget - // contract and could return content when the caller requested - // zero total output. + // Reject zero budgets instead of silently raising them to one. if let Some(0) = args.max_items { return Err(ToolError::Validation("max_items must be > 0".to_string())); } @@ -228,7 +221,6 @@ pub(crate) async fn run_batch_fetch_with_item_windows_and_progress( } let addressed = args.offset.is_some() || args.limit.is_some(); - // Resolve effective limits let batch_max_items = args .max_items .unwrap_or(state.config.fetch.batch_max_items) @@ -242,7 +234,6 @@ pub(crate) async fn run_batch_fetch_with_item_windows_and_progress( .min(state.config.fetch.batch_max_total_chars_cap); let continue_on_error = args.continue_on_error.unwrap_or(true); - // Validate item count if args.items.len() > state.config.fetch.batch_max_items_cap { return Err(ToolError::Validation(format!( "items count ({}) exceeds batch_max_items_cap ({})", @@ -344,7 +335,6 @@ pub(crate) async fn run_batch_fetch_with_item_windows_and_progress( }; // Pre-validate all items before launching any fetches. - // Locator checks use shared fetch-locator and repo-request validators. for (i, item) in effective_items.iter().enumerate() { let focus_q = item.focus_query(); let focus_chunks = item.focus_max_chunks(); @@ -545,20 +535,9 @@ pub(crate) async fn run_batch_fetch_with_item_windows_and_progress( let concurrency = state.config.fetch.batch_concurrency; let semaphore = Arc::new(tokio::sync::Semaphore::new(concurrency)); - // Execute fetches in ordered bounded waves, preserving input order. - // - // When continue_on_error=true (default): each wave spawns up to - // `concurrency` tasks concurrently via JoinSet. Budget tracking - // and abort checks happen between waves. - // - // When continue_on_error=false: effective_concurrency is set to 1 - // so items are fetched one at a time, preserving strict - // abort-on-first-failure semantics. + // Execute ordered waves; `continue_on_error = false` limits each wave to one item. let effective_concurrency = if continue_on_error { concurrency } else { 1 }; - // Results are recorded by item index and emitted in index order. Wave - // results arrive in JoinSet completion order and skipped items are - // discovered during the spawn loop, so a plain `Vec` of pushes would - // interleave them and desynchronize the index-based accounting below. + // Store by item index because JoinSet results arrive in completion order. let mut results: Vec> = vec![None; effective_items.len()]; let mut images: Vec> = std::iter::repeat_with(|| None) .take(effective_items.len()) @@ -570,7 +549,6 @@ pub(crate) async fn run_batch_fetch_with_item_windows_and_progress( let mut aborted = false; for wave_start in (0..effective_items.len()).step_by(effective_concurrency) { - // Pre-wave checks: skip remaining items if aborted or budget exhausted if aborted || budget_exhausted { if budget_exhausted && budget_warning.is_none() { if let Some(item) = effective_items.get(wave_start) { @@ -611,25 +589,17 @@ pub(crate) async fn run_batch_fetch_with_item_windows_and_progress( let wave_end = (wave_start + effective_concurrency).min(effective_items.len()); let remaining_budget = total_cap.saturating_sub(total_payload_chars); - // Divide remaining budget across wave items to prevent concurrent - // overshoot. Each item gets at most per_wave_item_budget chars. + // Divide the remaining output budget across concurrent items. let wave_len = wave_end - wave_start; let per_wave_item_budget = remaining_budget .checked_div(wave_len) .unwrap_or(remaining_budget); let item_budget_cap = per_item_cap.max(1).min(per_wave_item_budget.max(1)); - // Maximum number of wave items that can be safely spawned without - // overshooting the total budget. Every spawn reserves at least one - // character of `remaining_budget`, so the reservation count and the - // item count share the same unit: when remaining_budget is smaller - // than the wave length, the tail is skipped before launching. + // Limit launches to what the remaining output budget can reserve. let launchable = remaining_budget; let mut join_set = tokio::task::JoinSet::new(); let mut wave_indices = Vec::new(); - // Number of items already spawned in this wave. Each spawn - // reserves at least 1 character of the remaining budget so the - // aggregate response cannot exceed max_total_chars. let mut spawned_in_wave: usize = 0; for (i, item) in effective_items @@ -688,9 +658,7 @@ pub(crate) async fn run_batch_fetch_with_item_windows_and_progress( join_set.spawn(fetch_future); } - // Collect all wave results keyed by their returned index. - // JoinSet::join_next() returns whichever task completes first, - // so we must not associate results by iteration order. + // JoinSet yields completion order; collect results by item index. let mut wave_results: std::collections::BTreeMap< usize, (BatchFetchResult, Option), @@ -703,23 +671,17 @@ pub(crate) async fn run_batch_fetch_with_item_windows_and_progress( wave_results.insert(local, (batch_result, image)); } Ok(Err(tool_err)) => { - // Tool error without an index — cannot know which item. - // This should be rare; make_batch_fetch_future returns - // BatchFetchResult for known failures. Record as a - // special internal error that will be attached to a - // synthesized failure after collection. + // Attach unindexed errors to a synthesized failure after collection. tracing::warn!("batch_fetch tool error without index: {tool_err}"); } Err(join_err) => { - // Task panic/cancellation — index is lost. Will be - // synthesized as a failure for missing indices below. + // Panics and cancellations become failures for missing indices below. tracing::warn!("batch_fetch task panicked: {join_err}"); } } } - // Push results in input order, synthesizing failures for any - // indices that are missing (panic, cancellation, or tool error). + // Preserve input order and synthesize failures for missing task indices. for idx in &wave_indices { match wave_results.remove(idx) { Some((mut batch_result, image)) => { @@ -779,7 +741,7 @@ pub(crate) async fn run_batch_fetch_with_item_windows_and_progress( results[*idx] = Some(batch_result); } None => { - // Index was not returned — task panicked or tool error. + // The task panicked or returned an unindexed error. if !continue_on_error { aborted = true; } @@ -806,14 +768,12 @@ pub(crate) async fn run_batch_fetch_with_item_windows_and_progress( progress.dispatch(wave_end, effective_items.len()); - // Check budget after wave completes if total_payload_chars >= total_cap { budget_exhausted = true; } } - // Every item index is filled by the wave loop above (spawned, skipped, or - // synthesized as a failure), so flattening yields input order. + // The wave loop fills every index, so flattening preserves input order. let results: Vec = results.into_iter().flatten().collect(); if let Some(warning) = budget_warning { @@ -832,7 +792,6 @@ pub(crate) async fn run_batch_fetch_with_item_windows_and_progress( let mut cache_misses = 0usize; let mut cache_bypassed = 0usize; let mut cache_not_cacheable = 0usize; - // `results` is in input order, so this pairs each result with its own item. for (item_index, (result, item)) in results.iter().zip(effective_items.iter()).enumerate() { debug_assert_eq!( result.index, diff --git a/src/mcp/tools/web_fetch.rs b/src/mcp/tools/web_fetch.rs index 3874c8ef..9a384cc9 100644 --- a/src/mcp/tools/web_fetch.rs +++ b/src/mcp/tools/web_fetch.rs @@ -754,12 +754,7 @@ async fn run_web_fetch_inner( } Ok(_) => {} Err(reval_err) => { - // Revalidation failed. Serve the cached body - // instead of immediately re-requesting the same - // origin unconditionally: that doubles the load - // on an origin that has just signalled it is - // unhealthy, and the cause was previously - // discarded entirely. + // Serve cached content after revalidation fails; retrying would add load to an unhealthy origin. tracing::warn!( url = trimmed_url, error = %reval_err, @@ -1080,13 +1075,7 @@ async fn run_web_fetch_inner( #[allow(unused_mut)] let mut suppress_retry = false; - // A browser-gated origin answers an automated client with a - // status instead of a document, so there is nothing to - // classify and the browser is the only reader left. The - // escalation runs before the failure is recorded: the - // status is the origin refusing this client, not an outage, - // and an origin the browser served must not be charged to - // the HTTP circuit breaker. + // Escalate before circuit-breaker accounting: browser success means the HTTP identity was refused, not the origin. #[cfg(feature = "browser")] if !gated_escalation_spent { if let Some(status) = gated_status(&failure, &render_policy) { diff --git a/src/meta/engines/mod.rs b/src/meta/engines/mod.rs index 6facdff3..fab9a667 100644 --- a/src/meta/engines/mod.rs +++ b/src/meta/engines/mod.rs @@ -897,18 +897,12 @@ pub use cisa_kev::CisaKevEngine; pub use github_advisory::GithubAdvisoryEngine; pub use nvd::NvdEngine; pub use rustsec::RustSecEngine; -// Browser-like UA used as the fallback when no operator-supplied UA is provided. -// Mimic a real browser as closely as possible to avoid bot-detection rejections -// from HTML providers — but only when the operator has not configured their own. +// Browser-like default UA unless the operator configured one. const DEFAULT_USER_AGENT: &str = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) \ Chrome/124.0.0.0 Safari/537.36"; -/// Read an HTTP response body with a streaming byte cap. -/// -/// Checks `Content-Length` upfront and streams at most `max_bytes + 1` -/// bytes, aborting when the cap is crossed. Returns the buffered body -/// on success or `EngineError::ParseFailed` on overflow. +/// Stream response bytes under a hard cap, returning a parse error on overflow. pub async fn read_bounded_body( mut response: eggfetch_core::Response, engine: &'static str, @@ -935,13 +929,7 @@ pub async fn read_bounded_body( Ok(body) } -/// Append one streamed chunk to `body` under a hard byte cap. -/// -/// Returns `Ok(())` when the chunk fits within `max_bytes`, or an -/// `EngineError::ParseFailed` overflow error otherwise. This is the -/// single implementation of the streaming cap semantics shared by -/// `read_bounded_body` (and exercised by the `bounded_response_reader` -/// fuzz target). +/// Append a streamed chunk unless it would exceed `max_bytes`. pub fn push_bounded_chunk( body: &mut Vec, chunk: &[u8], @@ -968,13 +956,8 @@ pub fn is_http_url(url: &str) -> bool { .is_some_and(|u| matches!(u.scheme(), "http" | "https")) } -/// Build the eggfetch client used by the vendored search engines. -/// -/// We intentionally do **not** enable a cookie store on this client: -/// a long-lived MCP server should not persist cookies across requests -/// or across operator sessions. Cookies were historically needed for -/// certain HTML providers but are no longer required for any of the -/// vendored engines. +/// Build the shared eggfetch client for vendored search engines. +/// Cookies are not persisted across requests or operator sessions. pub fn build_http_client(user_agent: Option<&str>) -> anyhow::Result { build_http_client_with_egress(user_agent, &crate::core::config::EgressSection::default()) } @@ -1030,8 +1013,7 @@ pub fn map_request_error(engine: &'static str, error: eggfetch_core::Error) -> E } } -// Pick the UA the client will actually send: the operator's configured value -// if present, otherwise the browser-like fallback. +// Prefer the operator's UA; otherwise use the browser-like fallback. fn resolve_user_agent(user_agent: Option<&str>) -> &str { user_agent.unwrap_or(DEFAULT_USER_AGENT) } @@ -1065,12 +1047,7 @@ pub(crate) struct ScrapeShape { pub(crate) blocked_markers: &'static [PageMarker], } -/// Classify one scraper parse result into the three-outcome contract. -/// -/// Parsed rows are returned unchanged. With no rows, a documented -/// empty-state marker yields `Ok(vec![])`, a challenge or consent marker -/// yields [`EngineError::Blocked`], and anything else is a structural -/// [`EngineError::ParseFailed`] whose reason names the result container. +/// Return results, explicit empty, blocked, or structural-parse-failure outcomes for a scraper. pub(crate) fn finalize_scrape( engine: &'static str, document: &scraper::Html, diff --git a/src/meta/local_backend_tests.rs b/src/meta/local_backend_tests.rs index dadfa7a6..d7ce1920 100644 --- a/src/meta/local_backend_tests.rs +++ b/src/meta/local_backend_tests.rs @@ -307,7 +307,6 @@ fn find_symbol_match_case_insensitive_hint() { let file_path = dir.path().join("app.py"); fs::write(&file_path, "def my_function():\n pass\n").unwrap(); - // Hint is lowercase "my_function", symbol in code is also "my_function" let content = std::fs::read_to_string(&file_path).unwrap(); let result = find_symbols_in_text(&content, "my_function"); assert!(result.is_some()); @@ -325,7 +324,6 @@ fn score_file_content_match_finds_file_without_path_match() { size: 100, language: Some("rust".to_string()), }; - // File name doesn't match "my_function" at all, but content does let content = "fn my_function() { let x = 1; }"; let score = LocalWorkspaceBackend::score_file( &file, @@ -349,7 +347,6 @@ fn score_file_content_token_match_capped() { size: 100, language: Some("rust".to_string()), }; - // Multiple token matches in content, but capped at +30 let content = "foo bar baz qux"; let score = LocalWorkspaceBackend::score_file( &file, @@ -358,8 +355,6 @@ fn score_file_content_token_match_capped() { None, Some(content), ); - // 50 (no full match since "foo bar baz" not in "foo bar baz qux" as substring) - // Actually "foo bar baz" IS in "foo bar baz qux" -> +50, plus tokens capped at +30 assert!(score >= 50.0, "content scoring should work: {score}"); assert!(score <= 100.0, "token score should be capped: {score}"); } @@ -373,14 +368,12 @@ fn score_file_no_content_matches_nothing() { size: 100, language: None, }; - // No path match, no content provided let score = LocalWorkspaceBackend::score_file(&file, "special", &["special"], None, None); assert_eq!(score, 0.0, "no match without content should be 0"); } #[test] fn symbol_match_outranks_content_only_match() { - // File with symbol definition match (engine.rs has "Engine" in path) let symbol_file = LocalFileEntry { path: PathBuf::from("/test/engine.rs"), relative_path: "engine.rs".to_string(), @@ -397,7 +390,6 @@ fn symbol_match_outranks_content_only_match() { Some(symbol_content), ); - // File with content-only match (docs.txt has no path match) let content_file = LocalFileEntry { path: PathBuf::from("/test/docs.txt"), relative_path: "docs.txt".to_string(), @@ -494,7 +486,6 @@ fn to_source_cards_populates_file_classification() { ]; let cards = LocalWorkspaceBackend::to_source_cards(&matches, &roots, false, None); assert_eq!(cards.len(), 2); - // Find cards by path let engine_card = cards .iter() .find(|c| { @@ -537,7 +528,6 @@ fn to_source_cards_populates_match_confidence() { enclosing_symbol: None, is_exact_definition: None, }]; - // No repo identity = no local_repo_match let cards = LocalWorkspaceBackend::to_source_cards(&matches, &roots, false, None); assert!(cards[0].metadata.local_repo_match.is_none()); }