Repository navigation
feat(atlas): feedback normalisation + decision wiring, nominations only (#9977) - #10422
Conversation
…ly (#9977) Follow-on 5 of the #6027 design (doc sections 6.2-6.4, 7): - atlas-core `feedback_normalise` module: atlas-feedback-normalised/v1 derivatives over the raw feedback store (invariant 4 — raw records preserved verbatim alongside; derivatives regenerated, never appended). Deterministic phrase-rule classifier emits the section 6.2 categories (wrong-content, stale-content, right-file-wrong-chunk, ranking-too-low, ranking-too-high, missing-result, duplicate-or-near-duplicate, other), a first-sentence summary, and about_chunk_id when a comment names a different chunk. Vote-only and superseded records skip the pass. - Section 6.4 self-feedback: an agent voting on a result served to a query that same agent issued (trace requester identity) is flagged and weighted 0; other agents keep the ordinary 0.25 weight (6.3). - trace_stats: FeedbackVote carries the comment; per-embed feedback aggregates gain normalised category counts (identical comments from one requester collapsed per embed, 6.4), self_feedback_votes, and the existing unique-requester counts; per-query votes (chunk_id: null) load via load_query_feedback_votes and aggregate at window level with missing-result counts. - Weekly report decision wiring (section 7), nominations only: retention_reingest_candidate (stale-content), content_review_candidate (wrong-content), ranking_change_candidate (recurring ranking-too-low, eval-gated), self_feedback_process_finding (clusters), and ingestion_candidate (per-query missing-result) — every detail names its unique-requester figure. Markdown gains the per-window feedback table. No automated deletion, ranking, or weight change. - CLI: `atlas traces normalise` runs the pass over the feedback store (query requesters read from the traces dir) and writes the per-day derivative file; stats/report commands feed per-query votes through. Tests (oracle: design sections 6-7): classifier categories incl. multi-category and other-fallback, raw preservation, self-feedback weight 0 + flag, supersede/vote-only skip, about-chunk, derivative round-trip; stats self-feedback exclusion + category collapse, per-query loader + missing-result aggregation, report nominations with unique-requester figures. atlas-core 102, atlas-search 41+11 green; CLI smoke: normalise 3 raw -> 3 derivatives (1 self-feedback), report nominates retention_reingest + ingestion on the fixture. Co-authored-by: repo-worker-code (lane any-c) <fleet@developing.today>
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Warning Review limit reachedYou'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 17 minutes. View limit details
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. |
|
Codex disposition (lane any-c, task 16851): the Codex code review on head |
Implements #9977 — follow-on 5 (last) of the #6027 design (
doc/2026-11-10T20-41-01Z_design_atlas_retrieval_stats_feedback.md§§6.2–6.4, 7). Gates verified fresh before starting: #9975 closed 2026-11-15T01:41Z and #9976 closed 2026-11-15T03:14Z, bothstatus:done.What lands
atlas-core::feedback_normalise):atlas-feedback-normalised/v1derivatives over the raw feedback store. Raw records are preserved verbatim alongside the derivative (invariant 4); derivatives are regenerated per day, never appended (§6.2.3). A deterministic phrase-rule classifier emits the §6.2 categories —wrong-content,stale-content,right-file-wrong-chunk,ranking-too-low,ranking-too-high,missing-result,duplicate-or-near-duplicate,other— plus a first-sentence summary andabout_chunk_idwhen a comment explicitly names a different chunk. Vote-only and superseded records skip the pass.self_feedback_votescounter — excluded from weighted thumbs, category counts, and unique-requester figures. Agents judging other sessions keep 0.25. Identical comments from one requester collapse to one category count per embed. Per-embed aggregates carrynormalised_categoriesnext to the existing unique-requester counts.load_query_feedback_votesloads thechunk_id: nullrecords the chunk loader skips; they aggregate at window level (query_feedback) withmissing_result_votes.retention_reingest_candidate(weighted down-vote concentration +stale-content→ re-ingest first),content_review_candidate(wrong-content→ human review before any deletion),ranking_change_candidate(recurringranking-too-low, eval-gated),self_feedback_process_finding(self-feedback clusters), andingestion_candidate(per-querymissing-result). Every nomination detail names its unique-requester figure. The markdown report gains the per-window feedback table. No automated deletion, ranking change, or weight change ships — nominations only, per the issue scope.atlas traces normaliseruns the pass over the feedback store (query requesters from the traces dir) and writes the per-day derivative file;traces stats/traces reportfeed per-query votes through.Acceptance mapping
otherfallback; verbatim-preservation test.self_feedback: true, weight: 0.0).retention_reingest_candidateandingestion_candidateon the fixture.Tests
Oracle: design §§6–7, named in each test module.
cargo test -p atlas-core— 102 passed (6 newfeedback_normalise, 3 newtrace_stats; all pre-existing green).cargo test -p atlas-search— 41 + 11 (cli_parity) passed.traces normalise→ 3 raw → 3 derivatives, 1 self-feedback;traces report→ nominations + feedback aggregates as above.cargo fmt --checkclean for the touched crates (one pre-existing diff intrace_ingest.rsleft untouched).Queue: task 16851, lane any-c.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.