Skip to content

feat(proxy): count warm returns that find no ping facts - #1099

Merged
amiddavid merged 2 commits into
mainfrom
feat/ping-unpriced
Nov 11, 2026
Merged

amiddavid merged 2 commits into
mainfrom
feat/ping-unpriced

Conversation

@amiddavid

@amiddavid amiddavid commented Nov 11, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Adds 2 /stats counters (new visible output). No default changes. The owner approved it.

  • keepalive_rescue_facts_missing: priced real requests that followed keep-alive pings but found no ping facts for their thread.
  • keepalive_pings_priced: pings that PingSavings priced (returned ok). Read it together with the other counter.

Both are also exported as cg_keepalive_rescue_facts_missing_total and cg_keepalive_pings_priced_total.

The invariants doc (PR #820) adds check K11. This counter closes its gap G11.

What we found

What changed

  • proxy/dashcapture.go: when a request is priced, kaPings > 0, and no ping facts were found, count it.
  • proxy/accountant_savings.go: the counter lives on the handler's savings tracker (non-nil even when Options.Pings is nil).
  • proxy/accountant_ping.go: PingStore counts priced pings (nil-safe: a host with no store reads 0).
  • metrics/metrics.go, proxy/proxy.go: the 2 /stats keys. docs/reference/reference.md documents them.
  • proxy/promexport.go: the 2 cg_* counters. A fully wired host that gets no failed pings shows facts_missing == 0 and pings_priced > 0.

How it was tested

On the shared Linux box, with -race:

  • go vet ./proxy/... ./metrics/... ./cmd/...: clean. gofmt -l: clean.
  • go test -race ./proxy/...: ok.
  • go test -race ./cmd/context-guru-proxy/... ./metrics/...: ok.
  • New tests (proxy/pingunpriced_test.go):
    • a wired host: missing 0, priced 1;
    • a wired host with a rejected (429) ping: missing 1, priced 0;
    • a key mismatch: missing 1;
    • Options.Pings nil, or PingSavings never called: missing 1;
    • no pings in the gap: not counted;
    • rejected ping not counted, manual ping counted;
    • /stats and /metrics carry both values.
  • The stats golden test and the Prometheus coverage test list the new fields.

Data dependence

Metadata only: counts. Same at every storage level (off, metadata only, everything). The counters read and store no content. docs/data-dependence.md holds rows for features and components, and datadep_test.go checks registered components only. This adds neither, so I added no row.

Behavior change

New keys in /stats and 2 new /metrics series only. Requests and responses do not change. To turn it off: not needed (read-only counters).

Technical notes

  • The missing count means credit was lost on that return. A wired host also counts a return after a rejected ping (non-2xx or no usage), after an eviction from a full store, while a ping is in flight, or when pricing panicked. If it keeps rising while keepalive_pings_priced stays 0, the ping side is not wired.
  • A span served only by a substitute ping does not raise kaPings, so an unwired host is not detected there.
  • The missing counter moves only when the dashboard is on. 0 without a dashboard means not measured.
  • Manual pings are priced and counted, but store no facts (feat(accountant): Price proxy savings with the accountant library #768 B3).
  • kaPings comes from noteKeepAlive. The check runs where finish prices the request, once per request (rounds <= 1).
  • promexport_coverage_test.go shows a larger diff because gofmt re-aligned the map.

Add 2 /stats counters: keepalive_pings_priced (each PingSavings call
that returned ok) and keepalive_rescue_facts_missing (a priced real
request that followed keep-alive pings but found no ping facts for its
thread). Both are also exported as cg_keepalive_*_total.

A host that embeds the library can skip the ping side and get $0 credit
with no error. A non-zero missing count now shows it. This closes gap
G11 of the invariants doc (PR #820, check K11).

Counts only. No default changes.

Assisted-By: Claude Opus 5.5
Signed-off-by: DAVID AMID <[email protected]>

@amiddavid amiddavid left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewer Kind Started by Context Review Round Head Verdict
Reviewer 1 (glm, user of @amiddavid) GLM rits/zai-org/glm-5-3 via Claude Code 2.1.322 offload-review skill, @amiddavid's session fresh 1 of 2 1 of 2 147d51945834 blocking

Verdict: blocking

Findings

  1. docs/reference/reference.md:200 — the operator text says non-zero means the host does not wire the ping side. A wired host can make the counter rise.
    • What fails: a host wired like cmd/context-guru-proxy sends one span's pings and they all fail with a non-2xx answer or no usage. The next priced request counts 1 in keepalive_rescue_facts_missing. The operator reads reference.md or the Grafana HELP, concludes the ping side is unwired, and hunts a wiring bug that does not exist. The same happens when the store evicts the facts (4096 threads).
    • Proof: proxy/dashcapture.go:850 counts when kaPings > 0 && accPingWindow == "". kaPings is the keeper entry's e.pings, raised at dispatch for every scheduled ping (keepalive/keeper.go:1359) and kept for a ping that got a non-2xx answer — giveBackFailedPing (keepalive/keeper.go:1656) undoes only a transport failure. PingSavings stores facts only for a converted ping (proxy/accountant_ping.go:133 refuses non-2xx, no usage, zero window). Eviction: proxy/accountant_ping.go:54. The PR's own Technical notes admit this: "The missing count can also rise for a ping that was not priced (non-2xx, no usage) or whose facts were evicted from a full store."
    • Fix: keep the count, narrow the claim. In docs/reference/reference.md:200, the HELP at proxy/promexport.go:696 and the comment at metrics/metrics.go:1106, say: non-zero means the ping credit was lost — the ping side is not wired, or the span's pings were not converted, or the store evicted the facts.

Non-blocking

  • proxy/dashcapture.go:850 — the count also fires when computeSafe panicked (accNoResult = "compute_panicked"), so the request was not priced. The field is defined as "priced real requests". Rare; the panic path books no figure.
  • docs/reference/reference.md:199 and the HELP at proxy/promexport.go:699 say "priced and stored". A manual ping is priced but stores no facts (by design, #768 B3). The parenthetical "(each PingSavings call that returned ok)" is the accurate half.
  • keepalive_pings_priced counts pings; keepalive_rescue_facts_missing counts requests. Calling one "the denominator for" the other mixes units: one unwired request after 10 pings reads 1/10. As context the pair works; as a ratio it does not.
  • proxy/pingunpriced_test.go:56 — the comment says "The three ways a host fails to wire the ping side", but the table tests two. The key-mismatch case is untested.
  • A span served only by a substitute ping (sweep or summarizer) does not raise kaPings, so an unwired host is not detected there. Under-count only; the doc makes no claim in that direction.

What I checked

  • The full diff (10 files) and the code around each change: accountant_ping.go, accountant_savings.go, dashcapture.go (finish and the priced path), accountant_wire.go (accEnd/accWait/entryFacts), promexport.go, proxy.go (stats), metrics.go, the new test file, both changed tests, docs/reference/reference.md.
  • The equivalence the count rests on: accPingWindow == "" means no facts found. entryFacts sets it only from a peek that succeeded, and every stored fact carries a non-empty window because PingSavings refuses a zero-window ping. Holds.
  • Nil-safety of both counters: Priced, RescueFactsMissing, notePriced, noteRescueFactsMissing all take a nil receiver. h.savings is nil without a dashboard and the reads stay safe.
  • That the count fires for all three wiring failures it claims to detect: no Options.Pings, no PingSavings call, key mismatch. It does (traced the keys; put and peek both map the primary thread to "main").
  • Race safety: both counters are atomic.Int64; renderMetrics and /stats read them without the aggregator guard.
  • /stats append-only contract: fields are added, none renamed or removed; the golden list and the coverage map are updated consistently.
  • Data dependence and behavior change: counts only, no stored content, no request behavior change. The PR body states both. No data-dependence.md row needed (no new feature or component).
  • The keeper's ping accounting (e.pings, giveBackFailedPing, manual and substitute paths) to confirm which pings raise kaPings and which pings store facts.
  • Live tests were not run (not approved). I read the PR body; no other review or comment on the PR was read.

@amiddavid amiddavid left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewer Kind Started by Context Review Round Head Verdict
Reviewer 2 (glm, user of @amiddavid) GLM rits/zai-org/glm-5-3 via Claude Code 2.1.322 offload-review skill, @amiddavid's session fresh 2 of 2 1 of 2 147d51945834 blocking

Verdict: blocking

Findings

  1. docs/reference/reference.md:200 — the claim "Non-zero means the host does not wire the ping side" is false on a fully wired host
    • What fails: a wired host sends one scheduled ping that the provider rejects (429 or 5xx) or that returns no usable usage. The next priced warm return on that thread increments keepalive_rescue_facts_missing. The operator reads the counter, the docs say the wiring is broken, and the PR summary's own acceptance check ("a wired host shows facts_missing == 0") fails.
    • Proof: trace.
      • Sweep counts the ping before it fires: e.pings++ (keepalive/keeper.go:1359).
      • A 429/5xx ping returns outcomeTransient and a no-usage 2xx returns outcomeFailedRecorded; both still call record1, which emits the KeepAliveReport with that status (keepalive/keeper.go:1576-1594, 1516-1524, 1743-1761).
      • PingSavings refuses a non-2xx or zero-usage report, so it stores no facts (proxy/accountant_ping.go:133-136).
      • The user returns. arriveAt reports pings ≥ 1 as kaPings. The request is priced with accPingWindow == "", so noteRescueFactsMissing fires (proxy/dashcapture.go:850-852).
      • The same happens when the full store evicts the thread's entry (proxy/accountant_ping.go:54-59, pingStoreMax 4096), or when a ping is still in flight while the request's accEnd peeks the store.
      • The PR's own Technical notes admit both cases ("The missing count can also rise for a ping that was not priced (non-2xx, no usage) or whose facts were evicted"). But every operator-facing text states the strong claim: reference.md:200 ("Non-zero means the host does not wire the ping side … 0 on a healthy host"), the cg_keepalive_rescue_facts_missing_total HELP (proxy/promexport.go:696, "Above 0 means the host does not wire the ping side"), and the Snapshot comment (metrics/metrics.go:1105-1107).
    • Fix: pick one.
      • Weaken the text in all three places: non-zero means ping credit was lost; a value that keeps rising while keepalive_pings_priced also rises means the host does not wire the ping side.
      • Or make the count precise: count only gaps whose pings were converted (for example, the host marks per thread that a converted ping exists for the gap).
      • Add the missing test either way: a wired host, one rejected ping, the next return priced — the counter must read 0 (or the doc must say it reads 1). No test covers this case today.

Non-blocking

  • reference.md:199: "priced and stored" is wrong for a manual ping. A manual ping is priced and never stored (proxy/accountant_ping.go:140-142). The parenthetical ("each PingSavings call that returned ok") is right; the lead contradicts it. Also "denominator": the numerator counts requests and this field counts pings, so the ratio can pass 1.
  • proxy/pingunpriced_test.go:66: the comment says "The three ways a host fails to wire the ping side", but the table lists two. The third named way (a key mismatch) has no test.
  • The missing counter cannot move on a host without Options.Dashboard: the capture and the savings tracker are dashboard-bound (proxy/proxy.go:448-449). There, 0 means "not measured", not "healthy". One line in reference.md would close this.
  • The count also fires when computeSafe panicked (proxy/dashcapture.go:843-852), so "priced real requests" in metrics/metrics.go:1105 is not exact. The request then books no saving.

What I checked

  • The full diff of 147d519 against base 202087d, line by line, and the code around each change.
  • The count condition in finish: kaPings > 0 && accPingWindow == "". I traced where kaPings comes from (keeper.arriveAt, proxy.go:1593) and where accPingWindow is set (entryFacts → pings.peek, proxy/accountant_wire.go:119-120, 219-221). The key on both sides is session + "\x00" + accThreadID(thread), so the keys match.
  • Which pings kaPings counts: only scheduled ones. PingNow (manual) and the extra sweep question do not touch e.pings (keepalive/manual.go, keeper.go:1314-1322). So a manual ping cannot fire the counter. A sweep substitute does count and does store facts (keepalive/substitute.go:276-292), so it cannot fire it either.
  • Placement in finish: the count runs in the rounds <= 1 branch, after accWait, only when accReq != nil && usageOK && !accDone. Rejected, deferral-unplaced, multi-round and no-usage requests do not count and do not drop the facts. A second request in the same gap reads kaPings == 0 (the entry is cleared at the first arrival), so nothing counts twice.
  • Nil safety: PingStore.Priced and savingsTracker.RescueFactsMissing/noteRescueFactsMissing are nil-receiver safe. renderMetrics renders the two series outside the h.agg guard, so they render at zero.
  • The new tests in proxy/pingunpriced_test.go: I read each one and traced what it exercises. They match the implementation. The /stats and /metrics test follows the shape of the existing tests that call h.stats.
  • The coverage map and the stats golden list: both new Snapshot fields are listed, and the golden test now names both keys.
  • The PR description (summary, data dependence, behavior change, technical notes). The data-dependence section is right: counts only, no content.
  • I did not run builds or tests. Live tests were not approved for this review.

Round 1 review of #1099. The text claimed a non-zero value means the host
does not wire the ping side. A wired host also counts a return after a
rejected ping, an eviction, an in-flight ping, or a pricing panic.

- Reword reference.md, the cg_* HELP and the Snapshot comment: non-zero
  means credit was lost on that many returns; rising while
  keepalive_pings_priced stays 0 means the ping side is not wired.
- Drop "denominator" and "priced and stored". Say the dashboard must be on.
- Test a wired host with a rejected ping (counts 1) and a key mismatch.

Assisted-By: Claude Opus 5.5
Signed-off-by: DAVID AMID <[email protected]>
@amiddavid

Copy link
Copy Markdown
Collaborator Author

Round 1 replies

All findings are fixed in 6de565f6. Both reviewers raised the same blocking finding. The counter logic is unchanged.

Blocking (reviewer 1, finding 1; reviewer 2, finding 1): "Non-zero means the host does not wire the ping side" is false on a wired host. Fixed.

  • The text now says that non-zero means keep-alive credit was lost on that many returns.
  • It also lists the cases that count on a wired host:
    • a ping with a non-2xx answer or no usage;
    • an eviction;
    • a ping still in flight;
    • a pricing panic.
  • It says the ping side is not wired only when the counter keeps rising while keepalive_pings_priced stays 0.
  • The same text is in 3 places: docs/reference/reference.md, the HELP in proxy/promexport.go, and the comment in metrics/metrics.go.
  • New test: TestWiredHostCountsAReturnAfterARejectedPing. A wired host gets one 429 ping. The test reads missing 1 and priced 0, as the doc now says.
  • I did not make the count "precise" with new per-thread state. That is a larger change. The weaker text is correct for what is counted.

Non-blocking, all fixed in 6de565f6:

  • "priced and stored": this was wrong for a manual ping. The text is now "priced (each PingSavings call that returned ok, manual pings too)".
  • "denominator": removed. The two counters count different things, requests and pings, so the doc describes them as a pair to read together.
  • "three ways", but the table had two: the table now has a key-mismatch case. The ping is stored under thread sub-1, and the return comes on the main thread.
  • No dashboard: reference.md and the metrics comment now say the counter moves only when the dashboard is on, so 0 without a dashboard means "not measured".
  • A pricing panic is counted: this is now stated in the metrics comment and the HELP.
  • A span served only by a substitute ping does not raise kaPings: this is now stated in the doc row and in the PR body's Technical notes.

Tests (on the eval box):

  • go vet and gofmt -l are clean.
  • go test -race ./proxy/... passed in 578 s.
  • go test -race ./metrics/... ./cmd/context-guru-proxy/... passed.

@amiddavid amiddavid left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewer Kind Started by Context Review Round Head Verdict
Reviewer 2 (glm, user of @amiddavid) GLM rits/zai-org/glm-5-3 via Claude Code 2.1.322 offload-review skill, @amiddavid's session resumed 2 of 2 2 of 2 6de565f60c64 approve

Verdict: approve

Findings

None. The counter logic is unchanged; the fix touches text and tests only, and the new text is accurate.

Earlier findings

  • My finding 1 and reviewer 1's finding 1 (the same finding): fixed. The author chose the weaker-text fix, one of the two fixes I proposed. I checked each case the new text lists against the code, and each is real:
    • a ping with a non-2xx answer or no usage: PingSavings refuses it, so no facts are stored (proxy/accountant_ping.go:133-136), while kaPings still counts it (keepalive/keeper.go:1359, 1576-1594);
    • an eviction: proxy/accountant_ping.go:54-59;
    • a ping still in flight when accEnd peeked;
    • a request whose pricing panicked (the count sits after computeSafe, proxy/dashcapture.go:843-852).
      The claim is now "non-zero means keep-alive credit was lost on that many returns", which is what the code does. The same text is in all three places: reference.md:200, the HELP (proxy/promexport.go:695-696), and the Snapshot comment (metrics/metrics.go:1103-1108).
  • The author declined the "precise count" option (per-thread state marking a converted ping). The reason given: a larger change, and the weaker text is correct for what is counted. I accept the reason. The text now states exactly what the counter counts, so an operator is not misled.
  • My non-blocking items: all fixed. "priced and stored" is now "priced … manual pings too"; "denominator" is dropped; the key-mismatch case has a test; the dashboard-bound caveat is in reference.md and the metrics comment; the panic case is documented.
  • Reviewer 1's non-blocking items: all addressed (panic case, "priced and stored", denominator, the key-mismatch test, the substitute note). I checked each myself; the fixes match the code.
  • New test, checked: TestWiredHostCountsAReturnAfterARejectedPing asserts missing 1 and priced 0 for a 429 ping on a wired host. That is what the code does, and what the doc now says. The key-mismatch case stores under thread sub-1 and returns on the main thread; the peek key differs, so missing reads 1. ptr clashes with nothing else in package proxy.

Non-blocking

  • reference.md:200, "If it keeps rising while keepalive_pings_priced stays 0, the host does not wire the ping side": a wired host whose pings all fail for a long stretch also shows this pattern. The same cell lists the non-2xx cause one sentence earlier, and the keeper's own counters show pings firing, so the reader can tell the two apart. No change required.
  • reference.md:200, "A span served only by a substitute ping does not raise it": true because a committed substitute stores facts (keepalive/substitute.go:276-292), not because kaPings stays 0 — a summarizer substitute is fired from a Sweep job that already ran e.pings++ (keepalive/keeper.go:1359). A committed substitute whose call reported no usage would store nothing and could raise the counter. The same cell's "no usage" clause covers the reading. No change required.

What I checked

  • Last review: round 1, 147d519, 2026-11-11T18:01:32Z.
  • New commits read: 1 — 6de565f6 "fix(proxy): say what the missing-facts counter really means".
  • Read in full: 2 reviews, 1 comment, 0 inline comments (from the three files .review-in-reviews.txt, .review-in-comments.txt, .review-in-inline.txt; the inline file is empty).
  • New items since my last review, and what I did about each:
    • reviewer 1's round-1 review (posted 18:00:10Z, before mine): read in full now. Its finding matches mine; its non-blocking items overlap mine plus the substitute note. Checked each against the code.
    • the author's round-1 reply (18:15:54Z): read in full. Verified every claim in it — the reworded text, the three places it appears, the new test, and the declined option.
    • the fix commit 6de565f6: read the full diff (4 files) and the files around each change. The counter code in dashcapture.go, accountant_ping.go and accountant_savings.go is untouched; the diff rewords reference.md, the HELP, the Snapshot comment, and reworks the tests.
  • The new doc claims, one by one, against the code: the four wired-host cases that count (traced in round 1 and re-confirmed), the dashboard-bound caveat (proxy/proxy.go:448-449), the "keeps rising while priced stays 0" rule, and the substitute sentence (traced fireSubstitute from Sweep's e.pings++ and the report it emits).
  • The reworked tests: returnAfterPings's new signature, the ptr helper, the key-mismatch case's key (s\x00sub-1 vs s\x00main), and the rejected-ping case. Each matches the implementation.
  • That nothing else moved: git diff 147d5194..6de565f6 touches only the four files above; the base diff 202087d..HEAD is otherwise the round-1 code I already reviewed line by line.
  • I did not run builds or tests. Live tests were not approved for this review.

@amiddavid amiddavid left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewer Kind Started by Context Review Round Head Verdict
Reviewer 1 (glm, user of @amiddavid) GLM rits/zai-org/glm-5-3 via Claude Code 2.1.322 offload-review skill, @amiddavid's session resumed 1 of 2 2 of 2 6de565f60c64 approve

Verdict: approve

Findings

None. The round-1 finding is fixed and correct.

Earlier findings

  1. My finding 1 (reviewer 2's finding 1, same defect): "non-zero means the host does not wire the ping side" was false on a wired host. Fixed in 6de565f6.
    • The three texts now say non-zero means keep-alive credit was lost on that many returns (docs/reference/reference.md:200, proxy/promexport.go:696, metrics/metrics.go:1104).
    • They list the wired-host cases that count. I verified each against the code:
      • a ping with a non-2xx answer or no usage — PingSavings refuses it, so no facts (proxy/accountant_ping.go:133);
      • an eviction — proxy/accountant_ping.go:54;
      • a ping still in flight — ArriveAt does not wait for it (keepalive/keeper.go, the "does not wait for pings already in flight" note);
      • a pricing panic — proxy/dashcapture.go:850 runs whatever computeSafe returned.
    • The unwired diagnosis is now a pair rule: rising while keepalive_pings_priced stays 0. The new test TestWiredHostCountsAReturnAfterARejectedPing locks the doc in: a wired host, one 429 ping, missing 1 and priced 0.
    • The author chose the weaker text over per-thread converted-ping state. I agree with that choice: the text is now true for every case the counter counts.

Non-blocking

  • docs/reference/reference.md:200 — the parenthetical on the pair rule lists "a key mismatch" as a cause of "priced stays 0". A key mismatch with a SHARED store (facts stored under another key) raises priced too, so that signature cannot see it. Only the two-store mismatch keeps priced at 0. Wording precision only: the row's main claim (credit was lost) stays true.
  • The pair rule also matches a wired host whose every ping is rejected: there priced stays 0 and missing rises. The row lists the rejected-ping case as counting, so a reader can reconcile the two. No false claim about the count itself remains.
  • docs/reference/reference.md:200 — "A span served only by a substitute ping does not raise it" is true on a wired host (the substitute is priced with status 200 and stores facts, keepalive/substitute.go:278-292). On an unwired host a substitute-served span does raise it, because a planned-ping substitute rides a Sweep job that already counted e.pings (keepalive/keeper.go:1359, fire at 1428). The sentence is unconditional; the context is the wired-host reading.
  • Correction to my round-1 review: I wrote that a substitute ping does not raise kaPings. That was wrong for a substitute that takes a planned ping — the Sweep job already incremented e.pings. Reviewer 2 had it right. Only an EXTRA-slot substitute (fireExtra) leaves e.pings alone.

What I checked

  • Last review: round 1, 147d519, 2026-11-11T18:00:10Z
  • New commits read: 1 — 6de565f6 fix(proxy): say what the missing-facts counter really means
  • Read in full: 2 reviews, 1 comment, 0 inline comments (from .review-in-reviews.txt, .review-in-comments.txt, .review-in-inline.txt)
  • New items since my last review, and what I did about each:
    • Reviewer 2's round-1 review (18:01:32Z): same blocking finding as mine. I checked its proof lines myself in round 1 (Sweep's e.pings++, the 429/no-usage outcomes, PingSavings refusal, eviction). It holds. Its extra non-blocking notes (dashboard-bound counter, compute-panic wording) I verified then and they are fixed now.
    • The author's reply (18:15:54Z): I checked every claim in it against 6de565f6. Each reply line matches a real change in the diff, except the bold label "does not raise kaPings" on the substitute note, which misstates my note and the mechanism — the doc sentence itself ("does not raise it", the missing counter) is the correct one, so the label slip changes nothing in the code or docs.
    • Commit 6de565f6: full diff read; each changed file read around the change (reference.md rows, metrics.go comment, promexport.go HELP, pingunpriced_test.go).
  • The new tests: TestWiredHostCountsAReturnAfterARejectedPing (429 ping stores nothing, priced 0, missing 1 — matches the doc), the key-mismatch case (stored under sub-1, read on main, missing 1 — the keys behave as traced in round 1), and the ptr helper (generic, Go 1.26, fine).
  • The substitute-ping path in keepalive/: fire vs fireExtra, recordSubstitutePing's report (status 200, non-zero window, not manual), to settle the substitute sentence and correct my round-1 note.
  • The counter logic itself is unchanged by the fix commit; my round-1 verification of the count condition, nil-safety, key consistency and race safety still stands.
  • Live tests were not run (not approved). The author reports vet, gofmt and -race runs green on the eval box; I could not verify that myself.

@amiddavid
amiddavid merged commit b68d074 into main Nov 11, 2026
9 checks passed
@github-project-automation github-project-automation Bot moved this from New/ToDo to Done in Rossoctl Issue Prioritization Nov 11, 2026
amiddavid added a commit that referenced this pull request Nov 12, 2026
#1105)

The docs-only follow-up to #1099: the wording of the
keepalive_rescue_facts_missing row in docs/reference/reference.md, its
/metrics HELP string and the code comment now say exactly what the
lost-credit counters can and cannot tell.

Behavior change: none (docs, a HELP string and a comment). Data
dependence: none.

Reviews: 4 offload review rounds (GLM; rounds 3 and 4 granted by the
owner). Round 4: both approve at 29fb215, which is the PR head.

Signed-off-by: DAVID AMID <[email protected]>
Assisted-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant