Skip to content

atlas search: query-time parameter surface — every retrieval knob as a CLI flag / raw-query field, no hardcoded constants (extends #5741, #5668) #5774

Todo

Description

@dezren39

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)

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).

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

  1. developing-today commented on Nov 5, 2026

    @developing-today
    Contributor
  2. dezren39 commented on Nov 5, 2026

    @dezren39
    MemberAuthor

    Companion issue: #5773 — the query-understanding front-end (spell correction + planner/rewriter) whose stage toggles and variant selection this parameter surface exposes.

  3. added
    queue/queued
    task/triage
    on Nov 5, 2026
  4. dezren39 commented on Nov 5, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · done

  5. removed
    queue/queued
    on Nov 5, 2026
  6. dezren39 commented on Nov 8, 2026

    @dezren39
    MemberAuthor

    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.

  7. dezren39 commented on Nov 8, 2026

    @dezren39
    MemberAuthor

    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.

  8. added
    work/assigned
    queue/claimed
    status/in-progress
    on Nov 8, 2026
  9. developing-today commented on Nov 8, 2026

    @developing-today
    Contributor

    🤖 Agent note · handed off

  10. dezren39 commented on Nov 8, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · handed off

  11. removed
    status/in-progress
    on Nov 8, 2026
  12. 70 remaining items

  13. added
    kind/feature
    on Nov 29, 2026
  14. dezren39 commented on Nov 29, 2026

    @dezren39
    MemberAuthor

    🤖 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; --raw preserves 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.

  15. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Census 2026-11-29 (Felix):

  16. added
    status/triaged
    effort/m
    area/infra
    on Nov 29, 2026
  17. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    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 criteria section derived from the body's own principle (original text untouched). Priority unchanged (normal).

  18. developing-today-fleet commented on Nov 30, 2026

    @developing-today-fleet
    Contributor

    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) — SearchParametersV1 in atlas-proto, defaults as data in query-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/v1 record's parameters block 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 extends build_trace_record to 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.

  19. developing-today-fleet commented on Nov 30, 2026

    @developing-today-fleet
    Contributor

    Slice landed — lane 0900-AA (Xaltha, 2026-11-30). PR #17237 MERGED (merge commit 310bd13): the atlas-query-trace/v1 record now carries the full effective parameter vector — parameters.query_parameters (the complete SearchParametersV1, serialized from the same struct the CLI flags and the raw query format populate, so recorded names = surface names) plus parameters.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 new traced_search_records_the_full_effective_parameter_vector test 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.

  20. developing-today-fleet commented on Nov 30, 2026

    @developing-today-fleet
    Contributor

    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: SearchParametersV1 in 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 with Refs #5774 (issue stays open for the #5773-gated stages), merge on green.

  21. developing-today-fleet commented on Nov 30, 2026

    @developing-today-fleet
    Contributor

    Verification — lane 0900-AT, 2026-11-30 (PR #17259, head 3633c0c).

    • Run 46461858720 (branch head, remote dispatch): cargo test -p atlas-proto -p atlas-core --lib -p atlas-search — success: atlas-core lib 381 passed / 0 failed (includes the new query_parameters_control_signal_multipliers_distinct_from_weights oracle 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).
    • Full-package run 46460650705 failed only on 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.
    • First dispatch 46459304701 was a masked no-verdict (executor CARGO_HOME not writable by the test user; my | tail hid the exit) — discarded, not counted.

    Merging on this verification (merge commit). #5774 stays open for the #5773-gated stages.

  22. added a commit that references this issue on Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/infraeffort/mepic/atlas-programkind/featurepriority/normalstatus/triagedstatus:to-dotask/fix

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions