Skip to content

feat(atlas): query-time parameter contract v1 (#5774) - #8259

Merged
dezren39 merged 2 commits into
mainfrom
queue/13641-5774-atlas-query-params
Nov 10, 2026
Merged

dezren39 merged 2 commits into
mainfrom
queue/13641-5774-atlas-query-params

Conversation

@dezren39

@dezren39 dezren39 commented Nov 10, 2026 •

Copy link
Copy Markdown
Member

Refs #5774 (does not close it — per its acceptance, #5774 stays open until the designed controls are usable AND defaults have measured evidence; the defaults here preserve current production behavior and remain provisional).

Implements the Atlas query-time parameter contract v1 (task 13641):

  • Versioned defaults artifact: pkgs/atlas-search/crates/atlas-proto/query-parameters-v1.json, shared by the CLI, raw SearchRequest and atlas-core; names match across surfaces (CLI adds only --).
  • Represented: per-shard top-k, global fan-in top-k, fts/vector weights, Jaccard depth/threshold, RRF k, planner/spell toggles, query-class hint, raw/rewritten/both variant, Expand-N.
  • Wired end-to-end: independent shard/global top-k (FanoutQuery), configurable RRF k and per-signal weights in fusion (hardcoded RRF_K removed).
  • Unsupported non-default controls are rejected with a clear error, never silently ignored: Jaccard controls, planner/spell enablement, query-class hint, rewritten/both variants.
  • --raw: planner off, spell off, verbatim query, no expansion; sensitivity/filter checks are not bypassed (raw + non-zero expand is rejected).

Tests (oracle: the contract's parity/validation rules + unchanged default behavior):

  • cargo test -p atlas-core — 65 passed (incl. new fusion parameter test and shard fanout tests)
  • cargo test -p atlas-search --test cli_parity — 11 passed
  • Re-run after merging current main: all green again.

Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

repo-worker-code-k added 2 commits November 10, 2026 14:53
Versioned per-query parameter contract (query-parameters-v1.json in atlas-proto) shared by CLI, raw SearchRequest and atlas-core with matching names: shard_top_k/global_top_k independent, RRF k and per-signal weights as query-time controls, Expand-N carried through. Non-default controls with no implementation yet (Jaccard, planner/spell, query-class hint, rewritten/both variants) are rejected clearly instead of silently ignored. --raw = planner off, spell off, verbatim, no expansion; never bypasses sensitivity/filter checks. Defaults preserve current production behavior, provisional until held-out measurements exist.

Tests: cargo test -p atlas-core (65 passed); cargo test -p atlas-search --test cli_parity (11 passed).
@dezren39
dezren39 requested a review from a team as a code owner November 10, 2026 20:55
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-10T20:55:57.293343Z
We couldn’t complete this review. Comment @codex review to try again.
3d53ee7 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@coderabbitai

coderabbitai Bot commented Nov 10, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 44 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 60aa0180-a597-43c3-8f09-c958a4c39e18
Commits

Reviewing files that changed from the base of the PR and between 3f208ad and 3d53ee7.

Files ignored due to path filters: 1

  • pkgs/atlas-search/Cargo.lock is excluded by !**/*.lock
Files selected for processing: 12

  • pkgs/atlas-search/crates/atlas-core/Cargo.toml
  • pkgs/atlas-search/crates/atlas-core/src/fusion.rs
  • pkgs/atlas-search/crates/atlas-core/src/lib.rs
  • pkgs/atlas-search/crates/atlas-core/src/search.rs
  • pkgs/atlas-search/crates/atlas-core/src/shards/scan.rs
  • pkgs/atlas-search/crates/atlas-core/src/types.rs
  • pkgs/atlas-search/crates/atlas-core/tests/shards.rs
  • pkgs/atlas-search/crates/atlas-proto/query-parameters-v1.json
  • pkgs/atlas-search/crates/atlas-proto/src/lib.rs
  • pkgs/atlas-search/crates/atlas-search/src/main.rs
  • pkgs/atlas-search/crates/atlas-search/src/server.rs
  • pkgs/atlas-search/crates/atlas-search/tests/cli_parity.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@dezren39

Copy link
Copy Markdown
Member Author

agent-note:v1
lane: code-d
task: 13641
issue: #5774
pr: #8259
stage: merge_ready
Codex gate disposition: the Codex review on head 3d53ee7 FAILED TO COMPLETE — Codex usage limits reached (see the connector's own comment on this PR); it issued NO findings (no review, no inline comments). There is therefore no undispositioned Codex finding. Merging on the targeted-test evidence instead: cargo test -p atlas-core 65 passed and cargo test -p atlas-search --test cli_parity 11 passed, re-run green after merging current main. This mirrors the PR #8203 disposition (2026-11-10).
Refs #5774 only: the issue stays open per its acceptance until defaults have measured evidence.

@dezren39
dezren39 merged commit 92169ec into main Nov 10, 2026
1 of 9 checks passed
@dezren39
dezren39 deleted the queue/13641-5774-atlas-query-params branch November 10, 2026 20:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant