feat(search): enable dual-substrate auto-gating by default (opt-out via ADEN_LEXICON_OFF)#39
Merged
Merged
Conversation
…ia ADEN_LEXICON_OFF) End-to-end OFF vs ON bench with the shipped binary confirmed it never regresses and clearly helps: prose synonym-bridge R@1 0/15 -> 15/15; code rank-of-gold improved (rrf_fuse 18 -> 1, cosine_similarity 20 -> 5; harness MRR 0.216 -> 0.289). query_index now auto-gates by default (routed by query shape + corpus substrate); ADEN_LEXICON_OFF disables, ADEN_LEXICON_EXPAND / ADEN_PPMI_RERANK still force a single lever. Grounded + corpus-gated, so it no-ops where it would not help. Docs (retrieval-levers/README/CHANGELOG) updated.
This was referenced Jun 20, 2026
RioPlay
added a commit
that referenced
this pull request
Jun 20, 2026
commands.adoc: - asm --depth default: 3 → 2 (matches code) - mcp install: add missing --surface <essential|standard|full> flag - viz: add missing --scope and --resolution flags; remove bogus -j alias - heal: add structured flag table (--propose/--fix/--gc/--since/--apply/--watch) - status: document savings estimate output block ai-integration.adoc: - Replace two-tier Core/Extended model with three-tier Essential/Standard/Full - Fix tool assignments: search/list/communities/impact-diff were in wrong tier - Fix env var: ADEN_MCP_FULL=1 → ADEN_MCP_SURFACE=standard|full (legacy alias noted) - Document --surface flag at install time retrieval-levers.adoc: - Fix polarity: auto-gating is OFF by default, opt-in via ADEN_LEXICON_ON - Reframe ADEN_LEXICON_OFF as kill switch, not primary disable mechanism - Fix rerank trigger: code_anchor_fraction → query_looks_codey (query text only) - Fix NL-over-code behavior: expands only, does not rerank - Document PR #39/PR #40 revert history in status section architecture.adoc: - Add aden-paths node to Mermaid crate diagram - Remove duplicate aden-mcp Phase 2 row (already shipped as Phase 0) security-model.adoc: - Replace CanPerform (not a valid EdgeType) with Invokes in semantics example - Update malicious-contract-injection threat: moot since store-first (ADR-003) .agent/quick-ref.adoc: - Add --features watch caveat to aden watch entry crates/aden-cli/src/commands/init.rs: - Fix misleading "Knowledge graph built in .aden/store." message; store is in per-user data dir since ADR-003 docs/adr-008-current-implementation-state.adoc (new): - Document current scope extensions beyond original ADRs: Wave 3 edges (Supersedes/Justifies/AssociatedWith), GEN_LOGIC_VERSION=4, store-first architecture, MCP three-tier surface, dual-substrate retrieval (opt-in) Co-authored-by: RioPlay (Ernest Hamblen) <rioplay@rioplay.dev>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Flips the dual-substrate retrieval levers (merged in #38) from opt-in to on by default, with an opt-out.
query_indexauto-gates by detected text (prose -> grounded OEWN expansion, code -> PPMI rerank), routed by query shape + corpus substrate.ADEN_LEXICON_OFFdisables entirely;ADEN_LEXICON_EXPAND/ADEN_PPMI_RERANKstill force a single lever.Why (end-to-end OFF vs ON bench, shipped binary)
No regression: the code lever reranks the hybrid base (never worse than hybrid), and both levers are grounded + corpus-gated, so they no-op where they would not help (prose lever needs the OEWN store; absent it, retrieval is unchanged).
Safety
cargo test --workspace: 0 failures with default-on active.cargo denyunaffected (no dep changes).Docs updated:
docs/retrieval-levers.adoc, README, CHANGELOG.