Skip to content

Trace source refresh decisions - #31

Merged
tonywangcn merged 2 commits into
mainfrom
codex/feat/source-decision-tracing
Oct 14, 2026
Merged

tonywangcn merged 2 commits into
mainfrom
codex/feat/source-decision-tracing

Conversation

@tonywangcn

Copy link
Copy Markdown
Member

Summary

  • Record the actual source plan and per-source fetch/admission outcomes for each refresh.
  • Retain bounded opaque traces behind the operator route, including overlapping cooldown reasons, exploration, failure/censoring, and current-contract protections.
  • Document the endpoint, Redis schema, retention, and privacy boundary.

Verification

  • make check (includes go vet, unit tests, and race tests)
  • Focused monitor/store trace regressions

Record the source planner decisions and fetch outcomes from the refresh that uses them. Retain bounded, opaque traces on the operator route so cooldown eligibility, exploration, censored observations, and actual fetches remain distinguishable without storing source or proxy URLs.
Avoid the deprecated ZRevRange call while preserving the bounded newest-first trace index read.
@tonywangcn
tonywangcn merged commit 7c7cc20 into main Oct 14, 2026
2 checks passed
@tonywangcn
tonywangcn deleted the codex/feat/source-decision-tracing branch October 14, 2026 07:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant