Skip to content

fix(dash): size the keep-alive savings window from the billed tier - #959

Merged
amiddavid merged 1 commit into
mainfrom
fix/ka-billed-tier
Nov 8, 2026
Merged

amiddavid merged 1 commit into
mainfrom
fix/ka-billed-tier

Conversation

@amiddavid

@amiddavid amiddavid commented Nov 8, 2026 •

Copy link
Copy Markdown
Collaborator

Behavior change — needs a human developer's yes

  • Who: keep-alive savings on threads that ask 1h but are billed 5m (for example Sonnet on Bedrock), and on mixed 1h-head/5m-tail writes.
  • Old: the check allowed a ping up to 60 minutes before the rescued request.
  • New: it allows 5 minutes. A rescue with a ping 6 to 60 minutes earlier loses its credit. The figure on the Keep-alive tab goes down for those threads.
  • Unchanged: threads billed whole at 1h keep the 60-minute window. 5m threads and OpenAI are unchanged.
  • Switch: none. It is a read-time check, so it also fixes history already stored.

Summary

What changed

  • Window is 1h only if the request asked 1h and the entry was billed whole at 1h (cache_write_1h >= cache_write).
  • If the rescued request wrote, its own columns decide.
  • If it only read, the latest earlier non-ping row of the same thread that wrote decides.
  • No known write means 5 minutes. Smaller window, smaller credit.
  • Cost: the lookup sits inside the EXISTS, behind the > 0 guard. Order is unchanged. It runs only for credited rows. For a credited read-only row it can run once per candidate ping. It is an index seek on idx_requests_tenant_session.
  • Measured on 200k rows, 197 sessions, about 5% pings, 2% credited: the full-table SUM went from 4.8 s to 5.3 s (about 10%).
  • The lookup alias is bw, not w. TestCacheThreadsQueryIsIndexed bans a SEARCH w plan line. That ban targets a per-thread subquery, which this is not.
  • Known gap, as in factsCTE: "asked 1h" is the row's cache_ttl, not every breakpoint.

How to test

  • New TestKaSavedWindowFollowsTheBilledTier (9 cases). It failed 4 cases before the fix.
  • New TestKaSavedInheritsFromTheLatestWriteOfTheSameThread (4 cases, 2 controls). Dropping bw.thread_id = r.thread_id fails the cross-thread case. Flipping ORDER BY to ASC fails the latest-write case.
  • Mutation: with dash/keepalive.go from origin/main, the test fails the same 4 cases.
  • go test -race ./dash passes, run as ^Test[A-J] and ^Test[K-Z] (one run hits the 10-minute limit on the box). go vet and gofmt clean.
  • TestKaSavedCreditsAOneHourRescue now seeds a whole 1h write, since the tier comes from the billed write.

PR #930 (accountant)

Out of scope

  • The write-time credit floor (keepaliveCreditFloorMs) still uses CacheTTL.
  • The "every breakpoint" gap.

Data dependence

Metadata only (timestamps, token counts, tier). No row in docs/data-dependence.md changes.

🤖 Generated with Claude Code

@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.319 offload-review skill, @amiddavid's session fresh 1 of 2 1 of 2 6325668dd0b3 blocking

Verdict: blocking

The code is correct as written. One finding, and it is a missing test, not a wrong line.

Findings

  1. dash/keepalive.go:208-212 — no test pins the thread boundary of the new inherit lookup
    • What fails: the inherit subquery scopes by bw.thread_id = r.thread_id. Every row in TestKaSavedWindowFollowsTheBilledTier (dash/keepalive_ttl_test.go:93) has thread_id = '', because kaAgent/kaCredit/kaPing never set ThreadID. So all test rows share one thread. If a later edit drops the bw.thread_id term, no test fails. Then a read-only rescued row on thread B of a session inherits a whole-1h write from thread A. It gets the 60-minute window. That is the same over-credit class this PR removes.
    • Proof: mkEvent (dash/store_test.go:12) sets no ThreadID; the new test builds every event from kaAgent/kaPing/kaCredit (dash/keepalive_ttl_test.go:117-126). Event.ThreadID exists and is stored (dash/event.go:138, dash/store.go:585). The keeper's rule is per thread: tier1h is keyed per thread (keepalive/keeper.go:471-474, 958-960). So the thread scope of the subquery is load-bearing and matches the keeper, but nothing tests it.
    • Fix: add one case to TestKaSavedWindowFollowsTheBilledTier. Set w.ThreadID = "a:H" on the 1h writer and leave the rescued row on "". Ping 30 minutes before. Want: no credit. This case fails today if the bw.thread_id term is removed.

Non-blocking

  • dash/keepalive.go:165-166 — the comment claims "the rule of keepalive.ResolveTier" but the ask half is looser. cache_ttl = 'ephemeral_1h' means ANY breakpoint asked 1h (apply.ttlTier → bodyAsksExtendedTTL, apply/apply.go:1043-1058). ResolveTier needs EVERY breakpoint (keepalive/keeper.go:269-271). A mixed ask whose new write lands wholly at 1h still gets the 1h window. The write-ratio check neutralizes most of this, and the PR body names the gap. But the comment here does not. factsCTE states the same gap as "a known gap" (dash/keepalive.go:1322-1326). Add one sentence here too.
  • dash/keepalive.go:207 — when r itself wrote, r's own columns decide the window. That is the tier of the entry r leaves, not the entry r read before its own write. It matches ResolveTier and test case 8, so it is stated behavior. Rare cost: a 1h-billed head read by a row whose own new write is billed 5m loses the 1h window. Under-credit, narrow case. Fine as shipped.
  • dash/keepalive.go:204-205 — "it never runs for an uncredited row" is true, but "once per credited row" (PR body) may not be. The bw subquery sits in the last AND term of the EXISTS's WHERE. It is correlated to r only. SQLite can re-evaluate it for each candidate ping row kp that reaches that term. So the count may be pings-per-credited-row, not 1. Each run is an idx_requests_tenant_session lookup, so the cost stays small. Worth one measurement on the 2.1 GB corpus before the comment's claim is trusted.
  • dash/keepalive.go:172 — duplicated sentence. "A one-hour thread is reachable from a ping up to an hour earlier. A 1-hour thread is pinged at 59 minutes..." Say it once.

What I checked

  • The full diff (2 files) and the code around each change: kaSavedGate, kaSavedSince, kaSaved, and every caller (Overview, KeepAliveLedger, KeepAliveNetUSDByTenant, KeepAliveSessions, KeepAliveLive, savings.go, spendexplain.go, cachestate.go, campaignsavings.go, overview_lean.go, query.go, keepalivestrategy.go). All pass alias "r." over FROM requests r, so the new r.thread_id references resolve everywhere.
  • The SQL against keepalive.ResolveTier (keepalive/keeper.go:269-277) and the keeper's tier1h threading (keeper.go:893-984). The write half (cache_write_1h >= cache_write) and the inherit half (latest earlier non-ping writer of the thread) match, including the "unknown is 5m" default.
  • modelinfo.CacheLifetimeSQL (internal/modelinfo/cachelifetime.go:51-56): the new billedHour lands in the WHEN slot; the OpenAI branch stays first, so the subquery never runs for OpenAI rows.
  • Schema: thread_id and cache_write_1h exist, NOT NULL DEFAULT 0 (dash/schema.go:68, 154); idx_requests_tenant_session exists (dash/schema.go:317). Tenant scoping of the subquery is by correlation, so a crafted filter cannot widen it.
  • Both tests, line by line, with the fixture helpers (kaAgent, kaPing, kaCredit, mkEvent). All 9 cases' expected outcomes follow from the new rule; I traced each window arithmetic by hand.
  • That the new window is never wider than the old one: billedHour implies cache_ttl = 'ephemeral_1h', so the change only removes credits. That is the direction issue #957 asks for.
  • That credited rows only exist for Anthropic-family and OpenAI GPT-5.6+ providers (keepalive/ping.go:107-115), so the ttlTier default branch (a non-1h-asking provider labelled ephemeral_1h) cannot reach this gate.
  • Issue #957 and the PR description. The PR names the behavior change at the top, states data dependence (metadata only, no row changes), and checks the #930 accountant path. That satisfies the repo's behavior-change and data-dependence rules, pending the human developer's yes the issue itself calls for.
  • No live tests were run (not approved). Go is not on this machine.

@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.319 offload-review skill, @amiddavid's session fresh 2 of 2 1 of 2 6325668dd0b3 blocking

Verdict: blocking

Findings

  1. dash/keepalive.go:208 — the inherit lookup's thread scope and latest-writer rule have no test
    • What fails: a later change that drops AND bw.thread_id = r.thread_id, or flips ORDER BY bw.ts DESC to ASC, keeps the whole suite green while changing which rows get credit. Cross-thread inheritance would let a subagent's 1h write set the main thread's window. Earliest-writer-wins would let an early 1h write override a later 5m write.
    • Proof: TestKaSavedWindowFollowsTheBilledTier (dash/keepalive_ttl_test.go:93) builds every row from kaAgent, kaPing and kaCredit. None of these sets ThreadID (dash/keepalivetab_test.go:29-63, dash/store_test.go:12), so all rows share thread_id ''. Each case also adds at most one writer row (dash/keepalive_ttl_test.go:118-121). So both scoping rules of the new subquery are untested. The sibling feature pins exactly these two rules: TestCacheThreadsTakesEachThreadsTTLFromItsLatestWrite (dash/cachestate_test.go:213) covers per-thread tier and latest-write-wins.
    • Fix: add two cases to the table. One: an earlier 1h writer in a different thread of the same session — the rescued row must NOT inherit (5m window). Two: a 5m write after a 1h write in the same thread — the latest write must win (5m window), matching ResolveTier's chain.

Non-blocking

  • dash/keepalive.go:172-174: the inserted sentence duplicates the next one ("A one-hour thread is reachable from a ping up to an hour earlier. A 1-hour thread is pinged at 59 minutes"). Trim one.
  • The SQL can over-credit against ResolveTier in two narrow cases, both toward the larger window: cache_ttl records ANY breakpoint asking 1h where ResolveTier needs EVERY (declared in the PR and in factsCTE), and a read-only row that asks 5m breaks ResolveTier's chain while the SQL skips read-only rows and inherits from the last writer (undeclared). SavedUSD is documented as a ceiling, and the SQL is a superset of ResolveTier in every case I traced, so no rescue the keeper would call 1h loses its credit. One comment line would cover the second case.
  • "It runs once per credited row" (PR body): the scalar subquery sits in the EXISTS's WHERE clause, so SQLite evaluates it once per candidate ping row of a credited read-only 1h-ask row. SQLite does not cache correlated scalar subqueries. The cost stays bounded (credited rows × session pings × an indexed walk of the session), and the 314 ms figure in the comment predates the subquery. No defect claimed, but the claim is stronger than proven. A measurement on the corpus would settle it.
  • dash/keepalive.go:211: bw.ts < r.ts excludes a writer that lands in the same millisecond as the rescued row. ResolveTier's chain is sequential, so such a write would count. The tie-break (ORDER BY bw.ts DESC, bw.id DESC) is already there; only the filter is strict. Narrow, and it errs toward the smaller credit.

What I checked

  • The full diff (dash/keepalive.go, dash/keepalive_ttl_test.go) and the code around each change.
  • SQL construction: paren balance of billedHour, alias scoping (r, kp, bw are distinct; every caller passes "r."), CASE branch order (openai first, then r.cache_ttl and r.cache_write, so the subquery runs only for a read-only 1h-ask credited row), COALESCE(..., 0) for the no-writer case, cache_write_1h is NOT NULL DEFAULT 0.
  • Semantics against keepalive.ResolveTier (keepalive/keeper.go:269): traced own-write, inherit, mixed-write, and no-writer cases. The SQL window is a superset of ResolveTier in every case, so the change never removes credit from a thread the keeper itself treats as 1h.
  • All ten inline sites of kaSaved/kaSavedSince: same alias, no bw/kp collisions elsewhere, and the campaign query's placeholder order is unaffected (the subquery adds no bind parameters).
  • Plan guards: the SEARCH w ban in TestCacheThreadsQueryIsIndexed does not match SEARCH bw; idx_requests_tenant_session (tenant_id, session_id, ts) exists and fits the subquery.
  • Other tests: fixtures with cache_ttl '' or ephemeral_5m are unchanged (the new gate narrows only ephemeral_1h rows); the demo builder seeds CacheWrite1h = CacheWrite on 1h rows (dash/demodb_test.go:152), so demo rescued rows keep their credit.
  • PR body: the behavior change is named at the top with old and new behavior; data dependence is stated (metadata only, no row change), which matches the dashboard row in docs/data-dependence.md.
  • Not run: builds and tests. Live tests are not approved for this review, and Go is not on this machine. This is a static review.

)

kaSavedGate used the tier the rescued request asked for (cache_ttl).
A 1h ask billed at 5m, or a mixed write, got a 60-minute window for a
5-minute entry. The window now follows the billed tier, with the rule of
keepalive.ResolveTier. Unknown tier means 5 minutes.

Closes #957

Assisted-By: Claude (Anthropic AI) <[email protected]>
Signed-off-by: DAVID AMID <[email protected]>
@amiddavid

Copy link
Copy Markdown
Collaborator Author

Round 1 answers. Head is now d1be5bb4 (one commit, force-pushed).

Reviewer 1, finding 1, and Reviewer 2, finding 1 (no test for the thread scope and latest-write rule): fixed.

  • New TestKaSavedInheritsFromTheLatestWriteOfTheSameThread, with ThreadID set.
  • A 1h writer on another thread of the session gives no credit (5m window).
  • A 1h write then a later 5m write on the same thread gives no credit (latest wins).
  • Each has a control that must be credited.
  • Mutation: dropping bw.thread_id = r.thread_id fails the cross-thread case. Flipping ORDER BY to ASC fails the latest-write case and its control.

Duplicated sentence at keepalive.go ~172 (both reviewers): fixed. It is said once.

Ask half looser than ResolveTier (R1), and a read-only 5m-ask row does not break the chain (R2): fixed. One comment line now states both.

Cost claim "once per credited row" (both reviewers): corrected, and measured.

  • The PR body and the comment now say it can run once per candidate ping of a credited read-only row.
  • 200k rows, 197 sessions, about 5% pings, 2% credited: full-table SUM 4.8 s old, 5.3 s new (about 10%).
  • Plan: SEARCH bw USING INDEX idx_requests_tenant_session (tenant_id=? AND session_id=? AND ts<?). No scan.
  • I did not run the 2.1 GB corpus.

bw.ts < r.ts is strict (R2): left as is. A writer in the same millisecond as the rescued row is ignored. That gives the smaller window, so the smaller credit. This is the fail-safe direction.

r's own columns decide when r wrote (R1): left as is. This is the tier of the entry r leaves, as in ResolveTier. Case 8 pins it. The cost is a rare under-credit.

Tests on the box: go test -race ./dash passes as ^Test[A-J] and ^Test[K-Z]. go vet and gofmt are clean.

@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.319 offload-review skill, @amiddavid's session resumed 1 of 2 2 of 2 d1be5bb4a83e approve

Verdict: approve

All round-1 findings are fixed or rejected with a reason that holds. The new commit changes comments and adds one test. No new finding.

Findings

None.

Earlier findings

  1. Mine, round 1 — no test pins the thread boundary of the inherit lookup: fixed. TestKaSavedInheritsFromTheLatestWriteOfTheSameThread (dash/keepalive_ttl_test.go:141) sets ThreadID on the writer and the rescued row. I traced all four cases by hand:
    • Cross-thread: a 1h writer on a:H, rescued row on "" → the subquery finds no writer in the rescued row's thread → 5m window → ping 30 min earlier gives no credit. Dropping bw.thread_id = r.thread_id makes the writer match → 1h window → the case fails. The pin works.
    • Latest-write: a 1h write then a later 5m write on the same thread → the latest (5m) wins → no credit. Flipping ORDER BY bw.ts DESC to ASC picks the 1h write → the case fails.
    • Both controls (same-thread 1h writer; 5m write then later 1h write) must be credited, and the ASC mutation also breaks the second control. A broken fixture cannot pass for the wrong reason.
  2. Reviewer 2, round 1, finding 1 (same gap, plus the latest-writer rule): fixed by the same test. I checked it myself; the two mutations above are exactly the two rules that reviewer named.
  3. Non-blocking, both reviewers — duplicated sentence at keepalive.go:172: fixed. The comment now says it once.
  4. Non-blocking, mine — the ask half is looser than ResolveTier and was not stated in the comment: fixed. The comment now says "The ask half is 'any breakpoint asked 1h', looser than ResolveTier's 'every' (as factsCTE notes)" (dash/keepalive.go:171-172).
  5. Non-blocking, reviewer 2 — a read-only 5m-ask row does not break the SQL chain, undeclared: fixed. The comment now states it (dash/keepalive.go:172-173). I checked the claim: the subquery skips read-only rows (bw.cache_write > 0), and the keeper also keeps the chain (tier1h is not updated by a read-only row, keepalive/keeper.go:958-960). Both sides agree.
  6. Non-blocking, both reviewers — "runs once per credited row" was stronger than proven: fixed. The comment now says "SQLite may run it once per candidate ping", with a measurement: 4.8 s to 5.3 s for a full-table SUM on 200k rows, and a plan that seeks idx_requests_tenant_session. The claim is now hedged and measured. Not running the 2.1 GB corpus is fine; the comment no longer asserts what was not measured.
  7. Non-blocking, reviewer 2 — bw.ts < r.ts is strict: rejected by the author. The reason: a writer in the same millisecond as the rescued row is ignored, which gives the smaller window and the smaller credit. I checked the direction; it is the fail-safe way. Accept.
  8. Non-blocking, mine — r's own columns decide the window when r wrote: rejected by the author. The reason: this is the tier of the entry r leaves, as in ResolveTier, and test case 8 pins it. I said "fine as shipped" in round 1. Accept.

Non-blocking

  • None new. The new comment line "4.8 s to 5.3 s on 200k rows" is a test-fixture measurement under -race, not the production corpus. The comment does not claim otherwise, so nothing to fix.

What I checked

  • Last review: round 1, 6325668dd0b3f86079d366af4f9d8004502f350e, 2026-11-08T15:57:22Z.
  • New commits read: 1 — d1be5bb4 "fix(dash): size the keep-alive savings window from the billed tier (#957)" (force-push; the round-1 head 6325668d is replaced).
  • 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: the commit d1be5bb4 (comment rewrite plus TestKaSavedInheritsFromTheLatestWriteOfTheSameThread) and the author's round-1 answer comment at 2026-11-08T16:14:41Z. I verified every claim in that comment against the code; each held.
  • The full diff 6325668d..d1be5bb4: only dash/keepalive.go (comments) and dash/keepalive_ttl_test.go (the new test). No SQL or behavior changed since round 1, so my round-1 reading of kaSavedGate, ResolveTier parity, callers, schema, and indexes still stands.
  • The new test, line by line: fixture helpers, thread scoping, window arithmetic for all four cases, and both mutations the author claims (drop bw.thread_id; flip ORDER BY to ASC). Each mutation fails at least one case, and the ASC mutation also fails a control.
  • The commit message: DCO sign-off and Assisted-By: attribution follow the repo conventions.
  • No live tests were run (not approved). Go is not on this machine.

@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.319 offload-review skill, @amiddavid's session resumed 2 of 2 2 of 2 d1be5bb4a83e approve

Verdict: approve

Findings

None. The one commit since my last review fixes my finding and Reviewer 1's finding, and I found no new defect in it.

Status of earlier findings

  1. Mine, round 1, and Reviewer 1's finding 1 (the same finding — I checked it myself in round 1): fixed.

    • TestKaSavedInheritsFromTheLatestWriteOfTheSameThread (dash/keepalive_ttl_test.go:141) sets ThreadID on the writers and on the rescued row.
    • I traced all four cases by hand. Cross-thread case: the 1h writer sits on a:H, the rescued row on "", so the inherit lookup finds no writer and the window is 5 minutes; the ping 30 minutes before gives no credit. Latest-write case: a 1h write at base and a 5m write at base+10min on the same thread; the latest write decides, so 5 minutes, no credit. Both controls (same-thread 1h writer; 5m then 1h write) credit through the 60-minute window.
    • I checked both mutations myself. Dropping bw.thread_id = r.thread_id makes the cross-thread case inherit and fail. Flipping ORDER BY bw.ts DESC to ASC makes the latest-write case pick the early 1h writer and fail, and its control pick the early 5m writer and fail. The ping at 30 minutes before the rescue separates the two windows cleanly (30 min is inside 1h, outside 5m).
    • The controls are a good design: a broken fixture cannot pass for the right reason.
  2. My round-1 non-blocking notes: all addressed.

    • Duplicated sentence: removed. The comment says it once (dash/keepalive.go:174).
    • The two divergences from ResolveTier (any-vs-every breakpoint ask; a read-only 5m-ask row not breaking the chain): both stated in the comment now (dash/keepalive.go:173-174). The wording matches what I traced in round 1 — both err toward the larger window, the documented ceiling direction.
    • The cost claim: corrected and measured. The comment now says SQLite may run the lookup once per candidate ping, names the index seek, and gives 4.8 s to 5.3 s on 200k rows. The author's reply gives the halves: 4.8 s before the change, 5.3 s after, about 10% — the full-table pass dominates, not the subquery. That answers my round-1 concern.
    • bw.ts < r.ts strict: the author left it as is, with the reason that a same-millisecond writer is ignored and the credit is smaller. I accept the reason. I verified the direction myself in round 1; it is the fail-safe one.
  3. Reviewer 1's non-blocking notes: addressed or rightly rejected.

    • Ask half looser than ResolveTier: documented (same comment line as mine).
    • r's own columns decide when r wrote: left as is. The reason is right — it matches ResolveTier's own-write branch, and test case 8 pins it. I verified the same match in round 1.
    • Cost claim: measured, as above.

Non-blocking

  • dash/keepalive.go:172: "4.8 s to 5.3 s on 200k rows" reads as a range of one query. It is old against new (the reply states the halves). One word ("from 4.8 s to 5.3 s") would fix the reading.
  • dash/keepalive.go:174: the line runs long after the merge ("...inherits the last writer's tier. A 1-hour thread is pinged at 59 minutes..."). Cosmetic only.

What I checked

  • Last review: round 1, 6325668, 2026-11-08T15:58:30Z.
  • New commits read: 1 — d1be5bb "fix(dash): size the keep-alive savings window from the billed tier (#957)".
  • Read in full: 2 reviews, 1 comment, 0 inline comments (from the three files in my folder).
  • New items since my last review: the author's round-1 answers (comment at 2026-11-08T16:14:41Z) and commit d1be5bb. I read both in full and checked every claim in them against the code.
  • The new commit's diff line by line: the new test (all four cases traced by hand, both mutations traced by hand) and the rewritten comment block (read in the file, claims checked against the author's measurement and my round-1 traces).
  • Reviewer 1's round-1 review, read in full for the first time this round. Their finding 1 is the same as mine; their non-blocking items overlap with mine or are settled above. Nothing in it is unaddressed.
  • Not run: builds and tests. Live tests are not approved for this review, and Go is not on this machine. This is a static review. The author reports go test -race ./dash, go vet and gofmt clean on the box; I could not verify that myself.

@amiddavid

Copy link
Copy Markdown
Collaborator Author

Behavior change approved by a human developer.

The repo owner (@amiddavid) approved the behavior change of #959 in the authoring session on 2026-11-08. He was asked "yes or no to #959's behavior change" and answered "yes for both".

@amiddavid
amiddavid merged commit 354fcb3 into main Nov 8, 2026
7 checks passed
@github-project-automation github-project-automation Bot moved this from New/ToDo to Done in Rossoctl Issue Prioritization Nov 8, 2026
boazdavid added a commit that referenced this pull request Nov 9, 2026
Resolve dash/keepalive.go. #959 changed the keep-alive window's tier from the
row's cache_ttl to the billed tier (billedHour). This PR turned the inline
EXISTS into the probe function with the accountant cases (#912, #919). Keep the
probe, and give it billedHour as its tier.

The requests INSERT has 95 columns, 95 placeholders and 95 bound arguments.
requestCols and the Scan of scanRequest have 88 each.

Assisted-By: Claude (Anthropic AI) <[email protected]>
Signed-off-by: DAVID BOAZ <[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.

Keep-alive savings filter uses the asked TTL, not the billed TTL

1 participant