[Bug] Stabilize vector store pagination for equal creation timestamps #4011
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.44) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.44 · 245 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.329
Shallow Review Depth
shallow_review_depth
0.289
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #4011"
general
weight: 0.35
FAUST-BENCHOU
<!-- markdownlint-disable -->
Closes #4003
<!-- For split PRs that should not auto-close the issue on merge, use: Related #xxxx -->
<!-- The linked issue must be accepted and have exactly one recognized owner. -->
Purpose
Vector store pagination used second-resolution
CreatedAtas its only sort key. When multiple stores were created within the same second,ListStorescopied entries from a Go map whose iteration order is nondeterministic. Cursor pagination usingafterorbeforecould therefore repeat or omit stores.Keep
CreatedAtas the primary sort key and useIDas a deterministic tie-breaker for both ascending and descending order.The change is limited to vector store ordering and regression tests. It does not change cursor formats, timestamp precision, schemas, or unrelated storage behavior.
Assisted-by: Codex GPT-5
Test Plan
gofmtandgit diff --checkgo vet ./pkg/vectorstore ./pkg/apiservermake checkwith the three changed filesmake harness-checkTest Result
gofmt,git diff --check,go vet, pre-commit, architecture checks, and golangci-lint passed.---
<details>
<summary>Semantic Router PR Checklist</summary>
wg/data-plane-networkinggit commit -s</details>
See [CONTRIBUTING.md](../CONTRIBUTING.md) for the full contributor workflow and commit guidance.