Skip to content

feat(probes): debug/probes/query returns watermark_ms (#235 close-out) - #2325

Merged
joelteply merged 2 commits into
canaryfrom
fix/probe-query-watermark
Aug 16, 2026
Merged

joelteply merged 2 commits into
canaryfrom
fix/probe-query-watermark

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

The query command now hands back the resume cursor (watermark_ms = newest matched captured_at_ms + 1, or the caller's since_ms when nothing matched). Polling callers pass it straight back as --since-ms; old rows can no longer be misread as fresh. 6 module tests green; the honest-zero contract is unchanged.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

…wns the resume cursor (#235 close-out)

Every hand-rolled `since` computation on 2026-08-16 got it wrong at least
once (whole-file counts read as fresh counts, twice). The result now carries
`watermark_ms`: newest matched captured_at_ms + 1, or the caller's own
since_ms passed through when nothing matched. Pass it as --since-ms on the
next call and stale rows are structurally impossible — the cursor lives in
the command, not in N callers' arithmetic.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…, #235 tail)

Measured 2026-08-16: a caller passed --classPrefix=serving, serde silently
dropped the unknown key, and the 'filtered' query returned all 9,093 events
unfiltered. On THE diagnostic command a silently-vacuous filter is the worst
failure shape there is — natural synonyms now resolve per Joel's #328 rule.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply
joelteply merged commit 50a65a6 into canary Aug 16, 2026
5 checks passed
@joelteply
joelteply deleted the fix/probe-query-watermark branch August 16, 2026 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant