GeezerVison is showing github.com — atlas: feedback capture surfaces — API, CLI, UI contract (#6027 follow-on 4) · Issue #9976 · developing-today/code
atlas: feedback capture surfaces — API, CLI, UI contract (#6027 follow-on 4) #9976DescriptionFollow-on 4 of 5 from the #6027 design (doc/2026-11-10T20-41-01Z_design_atlas_retrieval_stats_feedback.md, merged via PR #8251). Parent program: #6018. Independent of follow-ons 2–3 (except the feedback-reference retention exception in follow-on 2).
Scope (design §6.1, §6.4)
- Feedback capture on every surface that returns results: service API field/endpoint, CLI command/prompt, and the UI affordance contract — thumbs up/down reachable in one action, optional comment (up to essay length) riding along.
- Feedback attaches to (query_id, result_id) — never to rank positions (invariant 3). Surfaces report whether the result was opened/expanded before the vote.
- Raw feedback is stored verbatim and never mutated (invariant 4); one active vote per (requester, query_id, chunk_id), re-votes supersede with the superseded record kept.
Acceptance
- A thumbs vote + comment can be cast from the CLI and via the API against a real served result and is retrievable by its IDs.
- A vote on an unopened result is recorded with its opened=false marker.
- Duplicate/re-vote behaviour matches §6.4 (supersede, raw preserved).
Design: doc/2026-11-10T20-41-01Z_design_atlas_retrieval_stats_feedback.md §6. Filed by queue-worker triage of #6027 (task 15280). Activitydeveloping-today commented on Nov 14, 2026 dezren39 commented on Nov 14, 2026
Agent note — task 16850 scoped and parked for a dedicated build session (lane any-a): implementation map for the atlas feedback surfaces
Why parked rather than rushed: this is a multi-surface feature (service API endpoint + CLI command + storage semantics + UI contract) in the atlas-search workspace with a repo-gate test requirement — a dedicated-session build, not a remainder-of-shift job. The map below is the head start.
Verified current state (fresh, 2026-11-14T18:43Z):
- Workspace: pkgs/atlas-search with crates atlas-core, atlas-embed, atlas-proto, atlas-search. query_id plumbing already exists: crates/atlas-core/src/trace.rs and src/search.rs reference query_id (and trace.rs already references feedback), so the §3 trace store is the natural home for raw feedback records; the search response envelope carrying query_id (invariant 1) should be confirmed first.
- No feedback endpoint/CLI exists yet (the issue's premise holds).
Build order for the dedicated session:
- Raw store + record type in atlas-core, beside the trace schema: {feedback_id, query_id, chunk_id | null, vote: up|down, comment: verbatim | null (min supported 64 KiB), requester (drew|agent|user|anonymous per §6.3), ts, opened: bool}. Raw records immutable (invariant 4); one ACTIVE vote per (requester, query_id, chunk_id) — re-vote supersedes, superseded record retained in the raw store (§6.4).
- Service API: POST /feedback {query_id, chunk_id, vote, comment?, opened} + retrieval by (query_id, result_id) for the acceptance check; per-query votes use chunk_id: null.
- CLI:
atlas feedback --query <query_id> --chunk <chunk_id> --up|--down [--comment <text|@file>] per §6.1 (the interactive post-search prompt is surface polish; the flag form is the acceptance surface).
- UI contract: the affordance contract (one action, no form before the vote records) stated in the PR; ranking behaviour and any automated weight/deletion changes are OUT of scope per the packet (nominations only, §7).
- Tests named to the acceptance items: cast+retrieve via API and CLI against a served (query_id, result_id); unopened down-vote stored opened=false; re-vote supersedes with raw preserved. Gate: cargo tests green for the touched atlas crates.
Acceptance caution: 'cargo tests green (repo gate)' for atlas crates is a heavy build (onnxruntime/embeddings in this workspace) — budget the session accordingly and run the touched-crate tests first. dezren39 commented on Nov 14, 2026
Agent note — task 16850 parked for a dedicated build session (lane any-c)
- state: parked (dedicated build session required)
- Task 16850 claimed by lane any-c at 2026-11-14T22:50:13Z; lane assignment is direct.
- Fresh verification this shift: issue atlas: feedback capture surfaces — API, CLI, UI contract (#6027 follow-on 4) #9976 is OPEN with no hard-stop labels, and no PR referencing atlas: feedback capture surfaces — API, CLI, UI contract (#6027 follow-on 4) #9976 exists in any state — the lane any-a implementation map (2026-11-14T18:43Z, on this issue) is still the current state: multi-surface feature (service API endpoint + CLI + raw-store supersede semantics in pkgs/atlas-search) scoped but not started, with a heavy cargo test gate.
- This is a dedicated build session's work, not a 45-minute lane touch: no code changes were made in this touch, and the map's build order stands as the resume plan.
- Resume condition: a dedicated build session claims task 16850 and executes the implementation map on this issue, ending with cargo tests green for the touched atlas crates and a PR recording the acceptance checks.
dezren39 commented on Nov 15, 2026
Agent note — task 16850 picked up (lane code-a)
- state: claimed / in-progress
- task: 16850 · issue: atlas: feedback capture surfaces — API, CLI, UI contract (#6027 follow-on 4) #9976 · kind: small_fix (atlas feedback capture surfaces)
- Fresh revalidation (2026-11-15T02:59Z): issue atlas: feedback capture surfaces — API, CLI, UI contract (#6027 follow-on 4) #9976 is OPEN, no hard-stop labels (no held / user/owned / do-not-merge / do-not-auto-edit), no PR referencing atlas: feedback capture surfaces — API, CLI, UI contract (#6027 follow-on 4) #9976 in any state, and follow-on 1 issue atlas: trace capture — atlas-query-trace/v1 records, fail-closed trace write (#6027 follow-on 1) #9973 (query/result ID model) is CLOSED.
- Lane assignment: direct — this lane works it itself.
- Next: explore pkgs/atlas-search + design §6 on the laptop, create worktree queue/16850-9976-atlas-feedback, implement raw feedback store + API + CLI per the implementation map already on this issue, with tests named to the acceptance items.
dezren39 commented on Nov 15, 2026
Agent note — task 16850 done: feedback capture surfaces implemented and merged (lane code-a)
- PR feat(atlas): feedback capture surfaces — API, CLI, UI contract (#9976) #10419 squash-merged as 637e29c.
- Shipped: atlas-core
feedback module (atlas-feedback/v1 raw JSONL store beside the trace store, in the exact shape load_feedback_votes/load_feedback_refs already read; supersede derived per §6.4 with raw records preserved; per-query votes with chunk_id null; comments to 256 KiB vs the 64 KiB design minimum); service API POST /v1/feedback + POST /feedback and GET retrieval by (query_id, result_id) in both server copies (atlas-search + fleet-search parity mirror); CLI atlas feedback --query … --chunk … --up|--down [--comment …] [--opened], --get, --via-service; UI affordance contract stated in the module docs (thumbs with each result, one action records, no form first, opened reported).
- Acceptance: cast+retrieve via API and CLI against a real (query_id, result_id) ✓ (core + server tests in both copies, live CLI smoke); unopened down-vote stored opened=false ✓; re-vote supersedes with raw preserved ✓; cargo tests green for the touched crates ✓ (atlas-core 93+32, atlas-search 41+11, fleet-search serve 43+11).
- Codex: review run could not complete (usage limits, no findings produced) — disposition recorded on PR feat(atlas): feedback capture surfaces — API, CLI, UI contract (#9976) #10419, comment 6888411693.
- Follow-on 5 (normalisation + decision wiring, §6.2/§7) remains its own filed follow-on; nothing in this PR changes ranking or deletes/weights content.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|