GeezerVison is showing github.com — atlas search: query-time parameter surface — every retrieval knob as a CLI flag / raw-query field, no hardcoded constants (extends #5741, #5668) · Issue #5774 · developing-today/code
atlas search: query-time parameter surface — every retrieval knob as a CLI flag / raw-query field, no hardcoded constants (extends #5741, #5668) #5774DescriptionExtends #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 N flag 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":
Defaults are data, not code
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)
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). Activitydeveloping-today commented on Nov 5, 2026 dezren39 commented on 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 commented on Nov 5, 2026 🤖 Agent note · done
- Agent: queue worker (repo-worker-code), lane code-x
- Session / ID: task 10180
- Found via: queue claim
- Task: Triage issue atlas search: query-time parameter surface — every retrieval knob as a CLI flag / raw-query field, no hardcoded constants (extends #5741, #5668) #5774 at current main — verified open, no held/user/owned/do-not-merge/do-not-auto-edit labels.
- Expectation: Triage outcome: this is a design specification, not a small fix. Scope is clear: expose every retrieval knob (per-shard/global top-k, per-signal weights/multipliers, Jaccard depth/threshold, RRF k, stage toggles, hint/variant/Expand-N) as identical CLI + raw-query parameters, with --raw preset, explicit weight-0 honoured, versioned default vector from issue Atlas search: SPLADE investigation — third retrieval signal, eval harness, query-adaptive weighting #5741 eval, and provenance tags. Boundaries are explicit: storage-side params and sensitivity filtering are NOT knobs. No code change in this triage task.
- Links: Depends on / extends issue Atlas search: SPLADE investigation — third retrieval signal, eval harness, query-adaptive weighting #5741 and issue atlas-search service: query-embedding + snapshot result caching, --no-cache/--wait/--expand/--raw flags #5668; related issue Atlas search: Jaccard as a third signal (rescore + ingest dedup); SPLADE as a triggered follow-on #5733, issue docs: Scaler-era Atlas/Turso data architecture revision #5667, issue atlas staging tier: versioned schema, registry, aggregator with merge-on-close promotion into three-level core #5669. Open questions needing resolution in design/implementation: preset versioning, per-corpus defaults, fan-out caps. Next: a scoped implementation task should be enqueued separately; this design issue stays open until that work lands.
dezren39 commented on 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 commented on 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-u and 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 commented on Nov 8, 2026 🤖 Agent note · handed off
dezren39 commented on Nov 8, 2026 🤖 Agent note · handed off
dezren39 commented on Nov 17, 2026 agent-note:v1
lane: code-f (openchamber-scheduled-lane)
task: 18370
issue: #5774
stage: triaged
verdict: contract landed; remaining work is evidence-gated, no fix packet queued
Fresh check (2026-11-17): #5774 is OPEN. PR #8259 (feat(atlas): query-time parameter contract v1, merge 92169ec, merged 2026-11-10T20:57:42Z) is MERGED. No open PR references #5774. No hard-stop labels (held / user/owned / do-not-merge / do-not-auto-edit).
What the merged PR covers: the versioned default set (atlas-proto/query-parameters-v1.json) shared by CLI, raw SearchRequest and atlas-core; independent shard vs global top-k; configurable RRF k and signal weights; unsupported non-default controls (Jaccard, planner/spell, hint, rewritten/both variants) rejected clearly; --raw does not bypass sensitivity/filter checks.
What remains open: the acceptance requires measured defaults from a real held-out eval. The eval fixture is synthetic smoke-only, so no default can be chosen from current evidence. Implementing more now would be speculative. Planner/spell (#5773), cache (#5668) and Jaccard (#5733) stay with their owning issues.
Disposition: keep OPEN. No new fix packet queued, because the next step is blocked on held-out eval data, not on code. Revisit when a held-out measurement exists.
dezren39 commented on Nov 17, 2026
Agent note — triage concurrence (lane any-j, task 19891)
State: triaged — this packet is the triage follow-on of task 18370, and its triage of record stands. Verified fresh this shift (2026-11-17):
Disposition (concurring with task 18370): keep #5774 OPEN, no fix packet queued. The only remainder is measured default selection, which the issue's own acceptance gates on real held-out measurements; the current eval fixture is synthetic smoke-only, so there is no code step to route. Revisit when a held-out measurement exists. Planner/spell (#5773), cache (#5668) and Jaccard (#5733) remain with their owning issues. dezren39 commented on Nov 24, 2026
Second-pass verdict (pass 2, task 21847, coverage reconciliation tracking #14158): issue OPEN, correctly open. Fresh state 2026-11-24T08:10Z concurs with standing triage (tasks 18370, 19891, 2026-11-17):
Disposition: keep OPEN, no follow-on packet queued. Next check when held-out eval evidence lands. developing-today-fleet commented on Nov 26, 2026
Triage re-verification (OpenChamber scheduled lane oc-code-07, task 24845, 2026-11-26)
#5774 remains OPEN. The query-time contract and supported wiring are implemented by merged PR #8259 (merge 92169eca65b36e8dfe79d3a54b815dfe7d1d529c): versioned defaults shared across CLI/raw request/core, separate shard/global top-k, configurable RRF and signal weights, explicit rejection of unsupported non-default controls, and sensitivity/filter checks preserved under --raw. The earlier implementation task 13641 is done.
The remaining acceptance is not another code-surface fix: the checked-in vector is provisional until a real held-out evaluation selects defaults. The related held-out result in PR #11245 is specifically the Jaccard rescore test; it missed its near-exact bar and correctly leaves Jaccard off. It does not establish the broader per-query default vector in #5774. #5741 is closed with the evaluator landed, but its documented scope/results do not supply that query-parameter default selection. No new measurement evidence or open PR for #5774 was found in this check.
Disposition: keep #5774 open for the distinct default-selection evidence; do not create a duplicate implementation task. The planner/spell, cache, and Jaccard behavior remain in their owning issues (#5773, #5668, #5733). No code or worktree changes. developing-today-fleet commented on Nov 27, 2026 Triage recheck — code-f, 2026-11-27 (queue task 25358)
Standing verdict holds: keep OPEN, no new packet. Fresh reads concur with tasks 18370 / 19891 / 21847 / 24845:
- atlas search: query-time parameter surface — every retrieval knob as a CLI flag / raw-query field, no hardcoded constants (extends #5741, #5668) #5774 is OPEN. PR feat(atlas): query-time parameter contract v1 (#5774) #8259 (query-time parameter contract v1) MERGED 2026-11-10T20:57:42Z — versioned defaults shared by CLI/raw request/core, independent shard/global top-k, configurable RRF k and signal weights, explicit rejection of unsupported non-default controls,
--raw preserves sensitivity/filter checks.
- No open PR references atlas search: query-time parameter surface — every retrieval knob as a CLI flag / raw-query field, no hardcoded constants (extends #5741, #5668) #5774; no held-out eval evidence has appeared since the last checks.
- The only remainder is measured default selection from a real held-out eval, which the issue acceptance gates on evidence the synthetic smoke fixture cannot supply. Implementing now would be speculative. Planner/spell (atlas search: query-understanding front-end — spell correction + LLM query planner/rewriter as toggleable stages, dual submission with provenance (extends #5741) #5773), cache (atlas-search service: query-embedding + snapshot result caching, --no-cache/--wait/--expand/--raw flags #5668), Jaccard (Atlas search: Jaccard as a third signal (rescore + ingest dedup); SPLADE as a triggered follow-on #5733) stay with their owning issues.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|