Add reproducible ranker calibration harness - #190
Conversation
Signed-off-by: Weiwei Zheng <heymrbox@gmail.com>
Codex reviewFiles reviewed
FindingsBlockingNone. Should-fix
Nit
Per-category coverage
Verdictchanges-requested |
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
Signed-off-by: Weiwei Zheng <heymrbox@gmail.com>
|
Addressed the deterministic replay and documentation findings in 95063e3.
Verification: make pre-pr passed, including race tests, builds, generated-code drift, and sample admission. The synthetic-trace/defaults concern remains open because it needs a product decision: keep the explicitly provisional defaults selected by the synthetic fixture, or retain the previous production defaults until a sanitized captured C1 trace is available. |
Codex reviewFiles reviewed
FindingsBlocking
Should-fixNone. NitNone. Per-category coverage
Verdictchanges-requested |
Signed-off-by: Weiwei Zheng <heymrbox@gmail.com>
|
Addressed the patch-coverage gap in 24e2579 by covering trace, sweep, observation, and marshal validation/error paths. The calibration package now reports 98.9% statement coverage locally. Verification: go test -cover ./internal/index/calibration and the full pre-push make ci gate passed. |
Codex reviewFiles reviewed
No generated files were changed. FindingsBlockingNone. Should-fix
Nit
Per-category coverage
Verdictchanges-requested |
Signed-off-by: Weiwei Zheng <heymrbox@gmail.com>
|
Addressed the blocking synthetic-data/defaults finding in 789191c.
Verification: make pre-pr and make cover-check pass; production default code and reference docs now have no drift from main. |
Codex reviewFiles reviewed
FindingsBlockingNone. Should-fix
Nit
Per-category coverage
Verdictchanges-requested |
Signed-off-by: Weiwei Zheng <heymrbox@gmail.com>
|
Addressed the latest review in d30cc3a. The replay trace now carries independent prefix-freshness and replica-stat timestamps, and replay feeds them into the index as separate observations. That lets calibration model fresh cache locality alongside stale pressure data correctly. I also tightened the harness around the review nits: millisecond durations reject overflow, a nil injected clock safely keeps the default clock, result files are replaced atomically, and command-level tests cover generate/check/stale/malformed flows. Verification passed locally:
|
Codex reviewFiles reviewed
FindingsBlockingNone. Should-fix
NitNone. Per-category coverage
Verdictchanges-requested |
Signed-off-by: Weiwei Zheng <heymrbox@gmail.com>
|
Addressed the two validation findings in 2c4eed2. Calibration traces now have to include at least one prefix observation and one tenant-hot observation, so every supported ranking mode contributes evidence to the selected five-knob result. Input validation also rejects negative Focused regression tests cover each rejected shape, and the full |
Codex reviewFiles reviewed
FindingsBlockingNone. Should-fix
Nit
Per-category coverage
Verdictchanges-requested |
Signed-off-by: Weiwei Zheng <heymrbox@gmail.com>
|
Addressed the replay-state findings in c25c817. Replay now reconstructs the post-sweep production state at each observation timestamp: prefix and statistics reports at or beyond the configured TTL are excluded before lookup, so stale serving entries cannot create a tenant-hot candidate. Sweep values that would overflow the production ranker’s Added regressions for TTL-expired serving state and oversized pressure/bias values. |
Codex reviewFiles reviewed
FindingsBlocking
Should-fix
NitNone. Per-category coverage
Verdictchanges-requested |
Signed-off-by: Weiwei Zheng <heymrbox@gmail.com>
|
Addressed the trace-contract findings in 6280a83. The harness no longer treats an unobserved counterfactual as a miss. Every replica row must explicitly declare Prefix hashes are now opaque The design note and fixture were updated, and |
Codex reviewFiles reviewed
FindingsBlockingNone. Should-fixNone. NitNone. Per-category coverage
Verdictapprove |
Summary
Linked issues
N/A - tracked internally; no public GitHub issue.
Checklist
Vendor-neutral naming (required - see CONTRIBUTING.md)
Quality
Contracts