Repository navigation
Description
Extends #5741 (SPLADE investigation + eval harness) and #5668 (query-embed cache + flags). Design commitments from Drew's direction 2026-11-04.
Principle
Anything not baked into how data is stored must be settable per query — from the fleet-binary CLI flags AND from the raw query format (the full-access path), with identical parameter names in both — so values can be benchmarked and better defaults found without editing code.
If a retrieval constant lives in code today, that's a bug against this principle.
Knob inventory (v1, extensible)
- Per-shard top-k — how many results each shard returns into the fan-out.
- Global fan-in top-k — how many combined results survive the merge.
- Per-signal weights — dense, BM25, SPLADE (the Atlas search: SPLADE investigation — third retrieval signal, eval harness, query-adaptive weighting #5741 adaptive-weighting defaults, overridable per query).
- Per-signal multipliers — score scaling per signal, distinct from the weights.
- Jaccard rescore depth — candidate count entering the Atlas search: Jaccard as a third signal (rescore + ingest dedup); SPLADE as a triggered follow-on #5733 rescore stage.
- Jaccard boost threshold — the overlap at which the rescore boost applies.
- RRF constant k — if reciprocal-rank fusion is used in the merge, its k is a knob, never a hardcoded 0.6.
- Stage toggles — planner and spell correction off / deprioritized / on (companion issue: query-understanding front-end, extends Atlas search: SPLADE investigation — third retrieval signal, eval harness, query-adaptive weighting #5741).
- Hint override — force the query class (code / docs / error / concept) instead of the classifier's call.
- Variant selection — raw / rewritten / both.
- Expand-N — atlas-search service: query-embedding + snapshot result caching, --no-cache/--wait/--expand/--raw flags #5668's existing
--expand Nflag folds into this surface rather than living as a one-off.
Escape hatches as first-class presets
Power users must not need to edit code or config to say "just run my query":
--raw= planner off, spell off, query verbatim, no expansion.- Per-signal weight 0 via flag = signal removed for that query. "No BM25" is one flag, not a config edit — distinct from Atlas search: SPLADE investigation — third retrieval signal, eval harness, query-adaptive weighting #5741's adaptive-weighting rule (weights floored, never zeroed), because that rule binds the automatic classifier, not an explicit user instruction. An explicit 0 is the user's call and is honored.
Defaults are data, not code
- The shipped default vector is whatever Atlas search: SPLADE investigation — third retrieval signal, eval harness, query-adaptive weighting #5741's eval harness last measured best; it ships as a versioned default set, not as constants scattered through the binary.
- Benchmarking = grid runs over the flag space, with the full parameter vector logged alongside the results of every run, so any number is reproducible and attributable to its knobs.
Provenance
Results carry which signals and which variants produced them (the companion issue's raw-only / rewritten-only / both tags, plus per-signal contribution), so a knob change's effect is diagnosable from the output, not guessed.
Boundary (explicit)
- Storage-side parameters are NOT query-time knobs: index tuning (e.g.
max_neighbors), postings construction, shard placement. Changing those is a rebuild/migration decision, governed by docs: Scaler-era Atlas/Turso data architecture revision #5667/atlas staging tier: versioned schema, registry, aggregator with merge-on-close promotion into three-level core #5669, not a flag. - Sensitivity filtering is NOT a knob: it is a safety filter applied before ranking (the id: design: Querying local and remote ID servers v1 #5675/Design: recommendations for ID — similar objects and similar users, across all object types #5732 rules), and no flag may widen it. A parameter surface that can widen visibility is a vulnerability, not a feature.
Open questions
- Preset naming/versioning: how named presets (
--raw, future ones) are versioned so a benchmark citing a preset stays reproducible. - Per-corpus default vectors: the code corpus and the docs corpus may legitimately ship different defaults — one global vector vs per-corpus vectors.
- Guard rails: maximum fan-out caps so an absurd per-shard k can't melt the shards — where the caps live (client, daemon, per-shard) and what error a capped request returns.
Related: #5733 (Jaccard signals), #5667 (Scaler/shard design), #5669 (shard implementation).
Acceptance criteria
- Every knob in the body's v1 inventory is settable per query from the fleet-binary CLI flags AND from the raw query format, under identical parameter names.
- Defaults live as data, not code constants; changing a default requires no code edit.
- Query provenance records the effective parameter values used, per the body's Provenance section.
- No retrieval constant from the inventory remains hardcoded in the query path.
Activity
developing-today commentedon Nov 5, 2026
CODE-1460
dezren39 commentedon Nov 5, 2026
Companion issue: #5773 — the query-understanding front-end (spell correction + planner/rewriter) whose stage toggles and variant selection this parameter surface exposes.
dezren39 commentedon Nov 5, 2026
🤖 Agent note · done
dezren39 commentedon Nov 8, 2026
Partial verification — staying open (2026-11-07 done-task-only audit, tracking: #7016).
Queue task(s) [10180] were marked done, and some work did land:
No merged change closes this issue's full scope, so the done status is not treated as completion. Remainder re-queued as triage task 11752.
dezren39 commentedon Nov 8, 2026
Agent note — picked up, handed off to opencode execution lane (lane
code-u, task 12284, 2026-11-07)Task 12284 (triage: remainder of this issue after partial verification — PR #6262 landed the #5741 evaluation harness, full scope not closed) was claimed by lane
code-uand assigned by the execution-lane system to the opencode lane (assigned_lane: opencode). Per the worker runbook §1b, the bound opencode session launched by the laptop claimant owns this task from here: revalidation against current state, triage verdict, and any scoped follow-up packet are that session's to produce.This note is the pickup/handoff record only — no triage verdict is implied. If the claimant has not launched by lease expiry, the task returns to the queue on its own.
developing-today commentedon Nov 8, 2026
🤖 Agent note · handed off
dezren39 commentedon Nov 8, 2026
🤖 Agent note · handed off
70 remaining items
dezren39 commentedon Nov 29, 2026
🤖 Census note — 2026-11-29 (lane CEN-C04, full-census pass)
Verdict: blocked on evidence, not code. Rechecked firsthand. The query-time parameter contract v1 LANDED (PR #8259 merged 2026-11-10): versioned defaults shared by CLI, raw SearchRequest and atlas-core; independent shard/global top-k; configurable RRF k and signal weights; unsupported non-default controls rejected clearly;
--rawpreserves sensitivity/filter checks. Sole remainder / blocker: measured default selection from a real held-out eval — the checked-in default vector is provisional until that evidence exists, and the synthetic smoke fixture cannot supply it (the PR #11245 held-out result covers only the Jaccard rescore and correctly leaves Jaccard off). Implementing different defaults now would be speculative.Census actions: added labels
priority/normal,kind/feature.developing-today-fleet commentedon Nov 29, 2026
Census 2026-11-29 (Felix):
developing-today-fleet commentedon Nov 29, 2026
Issue census — 2026-11-29
Gaps found: no standard status/* label (only the legacy status:to-do marker), no effort/, no app//area/* label; no acceptance criteria section.
Strengths: the principle is stated as a rule a reviewer can enforce (anything not baked into storage is settable per query, identical names in CLI and raw query; a retrieval constant in code is a bug against this issue), with knob inventory, presets, defaults-as-data, provenance and an explicit boundary section.
Actions: added labels status/triaged, effort/m, area/infra (the legacy status:to-do label left in place); appended a
## Acceptance criteriasection derived from the body's own principle (original text untouched). Priority unchanged (normal).developing-today-fleet commentedon Nov 30, 2026
Lane 0900-AA (Xaltha seat, wave 0900) claiming a bounded slice of #5774.
Premise check (firsthand at origin/main 9425507): the v1 parameter contract already landed (PR #8259) —
SearchParametersV1in atlas-proto, defaults as data inquery-parameters-v1.json, CLI flags with identical names in the atlas-search CLI, validation in atlas-core. The stage toggles / hint / rewritten-variant fields are representable and explicitly rejected until the #5773 front-end lands — that part is not this slice.Gap this slice closes (the issue's Benchmarking + Provenance requirements): the
atlas-query-trace/v1record'sparametersblock records only pool/top_k/vector_backend/weights/filters. A benchmark run is not reproducible from the trace unless the FULL effective parameter vector is logged. This slice extendsbuild_trace_recordto record the complete effective vector (parameters_version, shard_top_k, global_top_k, rrf_k, jaccard_depth, jaccard_threshold, expand, raw_mode, hydrate, variant, group_by_session, mode) alongside the existing fields, with tests. Branch:xaltha/5774-query-params(pushed). Remainder after this slice: per-signal multipliers distinct from weights, and the #5773-gated stages.feat(atlas): record the full effective parameter vector in query trac…
Merge pull request #17237 from developing-today/xaltha/5774-query-params
developing-today-fleet commentedon Nov 30, 2026
Slice landed — lane 0900-AA (Xaltha, 2026-11-30). PR #17237 MERGED (merge commit 310bd13): the
atlas-query-trace/v1record now carries the full effective parameter vector —parameters.query_parameters(the completeSearchParametersV1, serialized from the same struct the CLI flags and the raw query format populate, so recorded names = surface names) plusparameters.mode/expand/group_by_session. Existing fields unchanged (additive only).Verification: remote dispatch run 46449574720 (developing-today-forks/fleet) —
cargo test -p atlas-core --lib: 380 passed, 0 failed, including the newtraced_search_records_the_full_effective_parameter_vectortest asserting the recorded vector against non-default knob values. Full diff read before merge.Remainder on #5774 (stays open): per-signal multipliers distinct from the fusion weights; the planner/spell/hint/rewritten-variant stages (fields representable + rejected until the #5773 query-understanding front-end lands). The Benchmarking requirement (full vector logged with every run) is now met for traced searches.
developing-today-fleet commentedon Nov 30, 2026
Claim — lane 0900-AT (Xaltha seat, wave 0900 general draw), 2026-11-30.
Taking the remainder slice named in lane 0900-AA's surplus list: per-signal multipliers — score scaling per signal, distinct from the per-signal weights — in the #5774 v1 knob inventory.
Premise check (from the issue record): the v1 contract landed (PR #8259:
SearchParametersV1in atlas-proto, defaults-as-data, CLI flags with identical names, validation in atlas-core); AA's trace slice landed today (PR #17237 merged). The multipliers knob is the named unclaimed remainder; planner/spell/hint/variant stages stay #5773-gated and are NOT in this slice.Plan: add per-signal multipliers to
SearchParametersV1+ defaults JSON + CLI flags (identical names) + raw-query parsing, apply them in atlas-core fusion as score scaling distinct from weights, with tests; verify by remote dispatch (cargo test -p atlas-core+ proto), PR withRefs #5774(issue stays open for the #5773-gated stages), merge on green.feat(atlas): per-signal score multipliers, distinct from RRF weights (#…
developing-today-fleet commentedon Nov 30, 2026
Verification — lane 0900-AT, 2026-11-30 (PR #17259, head 3633c0c).
cargo test -p atlas-proto -p atlas-core --lib -p atlas-search— success: atlas-core lib 381 passed / 0 failed (includes the newquery_parameters_control_signal_multipliers_distinct_from_weightsoracle test and the extended traced-search vector test), atlas-proto + atlas-search suites green (12 passed in the final binary; full command exit 0 under pipefail).atlas-core --test stage :: provision_persists_an_absolute_db_path— a venue artifact (test provisions under a CWD-relative path the runner checkout denies). Baseline run 46461940386 on unmodified main fails identically (same test, same Permission denied), so it is pre-existing and unrelated to this diff.| tailhid the exit) — discarded, not counted.Merging on this verification (merge commit). #5774 stays open for the #5773-gated stages.
Merge pull request #17259 from developing-today/xaltha/5774-signal-mu…