GeezerVison is showing github.com — feat(atlas): feedback capture surfaces — API, CLI, UI contract (#9976) by dezren39 · Pull Request #10419 · developing-today/code
Conversation
dezren39
commented
Nov 15, 2026
•
edited by blacksmith-sh
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Implements #9976 — follow-on 4 of the #6027 design (doc/2026-11-10T20-41-01Z_design_atlas_retrieval_stats_feedback.md §6.1/§6.4). Queue task 16850, lane code-a.
What ships
atlas-core — new feedback module (atlas-feedback/v1)
- Raw feedback records appended verbatim, one JSONL file per day under the Atlas state root (
feedback/atlas-feedback-YYYY-MM-DD.jsonl), beside the trace store — invariant 4 (raw never mutated). The stored shape is exactly what follow-ons 2–3 already read: load_feedback_votes (stats) and load_feedback_refs (retention exception) consume these files unchanged; a test pins that seam.
- Record:
{feedback_id, query_id, chunk_id | null, vote: up|down, comment: verbatim | null, requester {kind, id}, ts, opened}. Feedback attaches to (query_id, chunk_id) — the §2 result identity — never to rank positions (invariant 3). Per-query votes use chunk_id: null.
- Supersede (§6.4) is a derived view, never a rewrite: one ACTIVE vote per
(requester, query_id, chunk_id); earlier records for the key are reported active: false with superseded_by naming the active record, and stay in the raw store.
- Comments: up to 256 KiB accepted (design §6.1 minimum supported: 64 KiB); over the ceiling is a validation error, never a truncation. Requester kinds validated against §6.3 (
drew | agent | user | anonymous).
Service API (both server copies, parity-mirrored)
POST /v1/feedback and POST /feedback → 201 with the stored record. Authenticated like every /v1 route (client token = the surface's credential); the requester in the body may be anonymous per §6.3.
GET /v1/feedback and GET /feedback with ?query_id=<id>[&chunk_id=<id>] → every raw record for the query (narrowed to one result when chunk_id is given), each with its supersede state.
- The store directory is injectable (
start_server_with_feedback_dir) so tests run against a temp store; production uses the sink default.
CLI
atlas feedback --query <query_id> [--chunk <chunk_id>] --up|--down [--comment <text|@file>] [--opened] [--requester-kind/--requester-id] — the §6.1 flag form; standalone writes the local store, --via-service casts through the service API.
atlas feedback --query <id> [--chunk <id>] --get retrieves by IDs (local store or --via-service).
UI affordance contract (the UI surface of this follow-on; stated in the feedback module docs): a UI renders one thumbs-up and one thumbs-down control with each result; activating one records the vote in that single action — no navigation, no form before the vote records; the optional comment is offered after/alongside; the surface reports opened = whether the result was opened/expanded before the vote.
Out of scope per the packet: ranking behaviour changes, automated deletion/weight changes (nominations only, §7 — that is follow-on 5).
Acceptance checks (issue #9976)
- Thumbs vote + comment cast from the CLI and via the API against a real served result, retrievable by its IDs — core
cast_and_retrieve_by_query_and_result_ids, server feedback_routes_cast_and_retrieve_by_ids (both copies), plus a live CLI smoke (cast down + comment → --get returned the same feedback_id).
- A vote on an unopened result is recorded with
opened=false — core unopened_down_vote_is_stored_with_opened_false; server test casts opened: false and asserts the stored record.
- Duplicate/re-vote behaviour matches §6.4 (supersede, raw preserved) — core
revote_supersedes_and_the_raw_record_is_preserved; server test re-votes and retrieves both raw records with exactly one active.
- Cargo tests green for the touched atlas crates — see below.
Tests
Oracle for the new tests: design §6 (named in each test module).
cargo test -p atlas-core — 93 unit + 32 integration, all pass (6 new feedback tests).
cargo test -p atlas-search — 41 unit + 11 cli-parity, all pass (new server route test + CLI parse test).
cargo test -p fleet-search --features serve — 43 unit + 11 serve-contract, all pass (mirrored route test included).
- CLI smoke against a temp store: cast + retrieve verified end-to-end.
Parity note
check-fleet-search-parity.sh already fails at the base commit (ff161a7) on render.rs (atlas carries a query_id: text line the fleet copy lacks) and on the trace-capture section of server.rs (fleet copy still calls the untraced executor) — pre-existing divergence from the #9973/#9974 follow-ons, left untouched here. Every feedback change in this PR is mirrored in both server.rs copies; the guard's remaining diff contains no feedback code.
![Autofix with [code]smith](/api/image?u=https%3A%2F%2Fcamo.githubusercontent.com%2F33b6f70f3541c4e93f4503d29cbfec051fa1b040d8e0ae9313a51c4ece44a627%2F68747470733a2f2f70722d636f6d6d656e74732d6173736574732e626c61636b736d6974682e73682f636f6465736d6974682f6175746f6669782d776974682d636f6465736d6974682d6461726b2d33782e706e67)
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Follow-on 4 of the #6027 design (doc section 6.1/6.4):
- atlas-core `feedback` module: atlas-feedback/v1 raw records
appended verbatim to a per-day JSONL store beside the trace
store (invariant 4), in exactly the shape load_feedback_votes /
load_feedback_refs already read. One active vote per
(requester, query_id, chunk_id) is a derived view — re-votes
supersede, superseded records stay in the raw store.
Per-query votes store chunk_id: null; unopened votes store
opened=false; comments up to 256 KiB (design minimum: 64 KiB).
- Service API: POST /v1/feedback and POST /feedback (201, stored
record echoed), GET /v1/feedback and GET /feedback?query_id=
[&chunk_id=] retrieval with supersede state; authenticated
like every /v1 route, requester may be anonymous (s6.3).
Mirrored in fleet-search's server.rs per the parity contract.
- CLI: `atlas feedback --query <id> [--chunk <id>] --up|--down
[--comment <text|@file>] [--opened]`, `--get` retrieval, and
--via-service through the service API.
- UI affordance contract stated in the feedback module docs:
thumbs rendered with each result, one action records the
vote, no form before recording, opened reported by the surface.
Tests (oracle: design s6): core cast+retrieve by IDs, unopened
down-vote opened=false, re-vote supersede with raw preserved,
per-query null chunk, 64 KiB comment; server route cast/retrieve
in both server copies; CLI parse. atlas-core, atlas-search and
fleet-search (serve) suites all green; CLI smoke cast+retrieve
verified against a temp store.
Note: check-fleet-search-parity.sh already fails at base
(ff161a7) on render.rs and the trace-capture section of
server.rs — pre-existing divergence from the #9973/#9974
follow-ons, untouched here; the feedback changes are mirrored
in both copies.
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-15T03:12:19.774751Z We couldn’t complete this review. Comment @codex review to try again. |
cd25841 |
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.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
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, add credits to your account and enable them for code reviews in your settings.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
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:
59cd8f50-8721-4d3a-92ec-31f78469cad8
Commits
-
Reviewing files that changed from the base of the PR and between ff161a7 and cd25841.
Files selected for processing: 6
-
pkgs/atlas-search/crates/atlas-core/src/feedback.rs
pkgs/atlas-search/crates/atlas-core/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/src/service.rs
pkgs/fleet/crates/fleet-search/src/server.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
-
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Agent note — task 16850, PR #10419 merge-ready (lane code-a)
- Codex disposition: the Codex code review on commit cd25841 did not complete — the connector reports its usage limits are reached and the review run failed with no findings produced (comments 6888398032, 6888398446). There are no Codex findings to fix or reply to; this note is the disposition record. CodeRabbit likewise rate-limited without findings.
- Merge criteria: PR is MERGEABLE, no held labels, diff matches issue atlas: feedback capture surfaces — API, CLI, UI contract (#6027 follow-on 4) #9976's scope, and targeted tests were verified locally on the laptop before opening:
cargo test -p atlas-core (93+32 pass), cargo test -p atlas-search (41+11 pass), cargo test -p fleet-search --features serve (43+11 pass), plus a live CLI smoke (cast + retrieve by IDs, opened=false stored).
- Proceeding to squash-merge under the standing merge authority; CI runs on main.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Nov 15, 2026
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|