GeezerVison is showing github.com — atlas: statistics aggregation + weekly report (#6027 follow-on 3) · Issue #9975 · developing-today/code
atlas: statistics aggregation + weekly report (#6027 follow-on 3) #9975DescriptionFollow-on 3 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. Depends on follow-ons 1–2 (trace capture + ingestion).
Scope (design §§5, 7)
- Daily batch aggregation over stored traces (never a parallel instrumentation path — invariant 5): per-embed shard-stage survival counts, final-rank distributions (top 1/2/3, top 1–5 presence), branch survival skew (FTS vs vector).
- The weekly statistics report, itself an artifact in the "statistics and reports" source class, surfacing the §7 nominations (retention candidates, protected embeds, ranking-change candidates) with the aggregate + window cited.
- Any aggregate with no consumer after two reporting cycles is named in the report before removal (invariant 6).
Acceptance
- A weekly report is produced from real traces with the §5 aggregates; every number in it is derivable from stored traces (spot-check one aggregate end-to-end).
- Report lands in the statistics-and-reports source set.
Design: doc/2026-11-10T20-41-01Z_design_atlas_retrieval_stats_feedback.md §§5, 7. 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 16849 BLOCKED on its merge gate (lane code-a, 2026-11-14)
This task's spec gates the start on both predecessors being merged: "Start only when both are merged" (#9973 + #9974, traces captured and ingested).
Checked at 2026-11-14T18:46Z:
The statistics aggregation has no ingested trace corpus to compute over until #9974 lands, so task 16849 is dependency-blocked on #9974 (fleet queue block --reason-class dependency --blocked-by-issue developing-today/code#9974, 3-day TTL with recheck). It re-serves when #9974 closes. dezren39 commented on Nov 15, 2026
Agent note — task 16849 picked up (lane any-c, 2026-11-14)
Revalidated fresh: issue #9975 is OPEN with no hard-stop labels. Its merge gate has now CLEARED — #9973 is CLOSED and #9974 is CLOSED (2026-11-15T01:08Z, implementing PR #10364 merged: trace ingestion + retention as statistics-and-reports corpus). The previous dependency block (lane code-a, 2026-11-14) is stale; the broker re-served task 16849 and this lane claimed it direct.
Next: read design §§5, 7 and the #9974 ingestion surface, then implement the daily aggregation + weekly statistics report in a dedicated worktree. dezren39 commented on Nov 15, 2026
Agent note — task 16849 DONE, fixed_merged (lane any-c, 2026-11-14)
PR #10418 merged: merge commit ff161a7297933d3aa7e8c2da4fe0be785756fadf (2026-11-15T01:40:43Z).
What landed (design §§5, 7):
atlas-core::trace_stats: daily batch aggregation over stored atlas-query-trace/v1 records over rolling 7/28-day windows — per-embed shard-stage survival split by branch, final-rank distribution (1/2/3, top 1–5, below 5), exposure, and feedback aggregates joined on chunk_id with §6.3 weights, reported alongside and never merged.
- Weekly statistics report: one
atlas-weekly-statistics-report/v1 record landed in the "statistics and reports" source class, carrying §7 nominations only (protected embeds, retention candidates, ranking-change candidates, branch-skew shifts); every aggregate names its decision consumer (invariant 6).
- CLI:
atlas-search traces stats and atlas-search traces report with strict --today validation and repeatable --feedback.
Acceptance: §5 aggregates from stored traces ✓ · weekly report produced and ingested into the statistics-and-reports source set ✓ · every number derivable from stored traces — rank-1 aggregate spot-checked end-to-end by raw recount in tests ✓ · cargo tests green — atlas-core lib 87/87 on the branch and re-verified 87/87 on merged main ✓.
Review gates: Codex review failed on usage limits with no findings posted (dispositioned on PR #10418); CodeRabbit still pending at merge under standing merge authority, fix-forward if it posts.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|