Skip to content

feat(keepalive): weigh a ping chain against the miss it protects (#1420) - #1428

Merged
amiddavid merged 4 commits into
mainfrom
feat/ping-value-guard
Nov 25, 2026
Merged

amiddavid merged 4 commits into
mainfrom
feat/ping-value-guard

Conversation

@amiddavid

@amiddavid amiddavid commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

BEHAVIOR CHANGE: needs the owner's yes before merge

  • Who it affects: every keep-alive user. Most of all GPT-5.4+ and Haiku 5.5 sessions with a long prompt.
  • Old behavior: a ping was refused ("over budget") when its projected cost was above a flat $0.50. This blocked GPT-5.5 above about 500K and GPT-5.6 above about 625K.
  • New behavior: the planned pings of one idle span are allowed when their total cost is below one cache miss. The refusal reason is the new not worth it. A flat cap exists only if the operator sets keepalive_max_usd_per_ping.
  • Side effect to read: pings on very large prefixes that the old cap refused now run. Pings on small prefixes where the chain costs more than the miss are now refused (rare: a miss costs 9x to 11x a ping).
  • Manager strategies: the strategy form's "Max $/ping" now reads "0 = no flat cap" (it said "0 = default"). A strategy at 0 leaves the account's own cap in place. Only a strategy value other than 0 replaces it. Before, a strategy's 0 replaced the account cap with the $0.50 default.
  • How to turn it off: set keepalive_max_usd_per_ping: 0.5 in the account's cache: block. The flat cap applies again, on top of the value rule. An old strategy file that wrote 0.5 keeps that cap.

Local tests: waived (owner rule)

Fixes #1420

Summary

  • The guard now compares value: planned ping chain cost against the miss it protects.
  • One function, keepalive.Policy.PingVerdict, decides. The live keeper, the manual Ping button and the replay all call it.
  • The flat cap is opt-in. No default. No strategy sets it.

What changed

  • keepalive/value.go (new): PingVerdict, MissUSD, PingCap.
  • keepalive/keeper.go: the entry keeps missUSD. pingable() and the record-time reasons use the verdict. PingPrompt is exported.
  • Config: the loader no longer fills 0.50. The five built-in strategies no longer write keepalive_max_usd_per_ping.
  • Replay (campaign/replay.go, campaign/adapt.go) uses the same verdict, with the row's stake as the miss.
  • proxy/keepalivectl.go uses keepalive.PingPrompt (the cleanup) and reports max_usd_per_ping only when the operator set one.
  • Reason not worth it added to the plugin (TS and both cg.py copies), the dashboard text and the docs.

Answers to the issue's questions

  1. Per ping or per session? Per session. The K pings of one idle span protect one return, so K pings are weighed against one miss. K is the planned count after the wait plan at record time (Policy.MaxPings). It is 1 when none is planned, and for a manual press. The cost: a long tool wait (K up to 8) on a small-margin prefix can now be refused where one ping would pass. Keep-alive never ends a chain early once the rule passes.
  2. 1-hour ping cost. The projection reads the read rate and still does. No path knowingly sends a ping that writes: a ping on a 1-hour entry is a read. The 1-hour-on-wait probe is a read on proven routes. A route whose switch rewrites is already switched off by the existing probe check. What changed: the miss side uses the 1-hour write rate (2x input) for an entry billed at the 1-hour tier. See Open questions.
  3. Count of "over budget" refusals. Not measurable from the store. The reason lives only in memory (PingState). The dashboard database has no column for it. Local databases are too small to estimate: the cg2 database has 33 rows, all under 100K tokens. Only a total skipped counter exists. An operator can read the live reasons from GET /api/cachestate (ping_reason) and count over budget before and not worth it after.

Miss / ping cost ratio, and where the rule refuses

Priced with the real projectedPingUSD (output budget included) and projectedMissUSD, in a throwaway test that is not committed.

Price assumptions per million tokens: Sonnet $3 input and $15 output; GPT-5.5 $5 input, $0.50 read, $30 output; GPT-5.6 $4 input and $0.40 read (from the issue), output assumed at $24 (6x input). The repo has no real GPT-5.6 price.

Model 50K 200K 600K Rule refuses from K
claude-sonnet-5-5, 5m 23.95 23.99 24.00 24
claude-sonnet-5-5, 1h 38.92 38.98 38.99 39
gpt-5.6 8.83 8.96 8.99 9
gpt-5.5 8.83 8.96 8.99 9

No default planned chain is refused. Only an operator who raises K by hand to 24+ on Anthropic or 9+ on OpenAI can get a refusal, and the chain is then refused, not trimmed. The default maximum is K=8 (tool wait). On OpenAI K=8 would pass with under 10% margin.

How it was tested

macOS, Go 1.27.4.

  • go build ./..., go vet on the changed packages.
  • Plain go test on keepalive, campaign, config, tenant, dash, proxy (all ok). -race -run on the new tests (ok).
  • go test ./proxy did not compile on origin/main until test(proxy): pass the prompt-size price callback in the predictive agent test #1426. I merged main (commit 6482789). Plain go test ./proxy/ ./keepalive/ ./campaign/ and go vet ./... pass.
  • Plugin: claude plugin test context-guru-plugin: 128 pass.
  • New tests: GPT-5.5 at 600K with a chain of 1 passes; a chain of 10 is refused with not worth it; an explicit cap refuses; no cap is not a cap; unpriced and unknown-miss pings pass; 1-hour miss uses the 2x write rate; Record path holds the $0.60 ping; replay and live agree on a grid.
  • Mutations (each failed tests): invert the comparison (13 failures); ignore the chain length (9); drop the explicit cap (7).

Data dependence

None. The rule reads prices, token counts and the planned ping count. No stored customer data. No row in docs/data-dependence.md changes. Level off, metadata only, everything: the same.

Open questions

  • Owner: yes to this behavior change?
  • Old strategy files and stored strategies with max_usd_per_ping: 0.5 keep it as an explicit cap. Clear it where the operator wants the value rule alone.
  • 1-hour probe on an unproven route could rewrite at 2x. The rule does not price that, so the probe is not blocked. Say if you want it priced.
  • Strategy 0 (owner): should a strategy's 0 leave the account cap alone? I chose yes, so a strategy never removes a cap the operator set.
  • Clamp (owner): should a chain that is too long be trimmed to the largest K that fits, instead of refused? Today it is refused. No default plan is affected.
  • Summary and sweep substitutes keep the $0.50 default cap (Policy.Ceiling). They cost more than a ping, so I did not remove their cap without a yes.

Technical notes

  • Miss = prefix x (write rate - read rate), at Price.At(prefix + 1). On OpenAI the write rate is the input rate (CacheWrite5mFor).
  • Fail open: a zero ping cost or a zero miss cost (unpriced) is allowed.
  • "Explicit cap" is MaxUSDPerPing > 0. Zero is unset, negative is "no cap", as before. The loader's fill of 0.50 is removed, so a set value is always the operator's. This follows the existing zero-means-unset pattern. A pointer would have changed the stored tenant schema.
  • The arm response and the dashboard confirm text no longer state a $0.50 ping limit when none is set. The arm answer reports the effective cap after the manager strategy, for the session's own provider.
  • A miss is priced at the 1-hour write rate when the policy writes at 1 hour (HeadTTL1h; OneHourAlways on a main thread, since a subagent keeps the 5-minute cache) or plans the 1-hour ping. This is the cautious side.
  • The arm answer takes the provider from the session's own last request (DB.LastBilledProvider), so a manager strategy's cap is reported only where it is enforced. Strategies do not apply to OpenAI.
  • Replay weighs the miss at the ping's tier and the live wait-plan count (never above live). On a 1-hour entry replay uses the 5-minute rate, so it is stricter than live, never looser. TestReplayDecidesLikeTheLiveKeeper runs a real keeper.
  • On OpenAI the write rate is the input rate before GPT-5.6 and 1.25x input from GPT-5.6.

@amiddavid amiddavid added the openai OpenAI / Codex traffic and pricing label Nov 25, 2026

@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.332 offload-review skill, @amiddavid's session fresh 2 of 2 1 of 2 64827896ffa5 blocking

Verdict: blocking

Findings

  1. dash/ui/tabs/strategies.js:170 — the strategy form still says "Max $/ping (0 = default)", but 0 now means "no flat cap".

    • What fails: an operator edits a manager strategy and leaves the field at 0. The label says 0 = the default. Before this PR, 0 resolved to the $0.50 default. After it, 0 means no cap at all; only the value rule applies. The operator believes a $0.50 guard is in force while none is.
    • Proof: ApplyStrategy (keepalive/strategy.go:72) copies the stored 0 into Policy.MaxUSDPerPing. PingCap (keepalive/value.go:51) maps 0 to +Inf. The old path resolved 0 to $0.50 through Ceiling() (keepalive/types.go:300). The form writes 0 when the field is blank (Number(usdCap.value) || 0, strategies.js:224). The PR updated the arm text (dash/ui/tabs/keepalive.js:472) but not this label.
    • Fix: change the label to say 0 = no cap and the value rule applies. Update the hint the same way.
  2. keepalive/types.go:141 — the MaxUSDPerPing field comment contradicts the new guard.

    • What fails: the comment says "Read it through Ceiling(), never directly: zero here means UNCONFIGURED, and for a spend guard that has to resolve to the default rather than to infinity." The ping guard this PR adds reads the field through PingCap, and zero resolves to infinity there. A future editor who follows the comment undoes the value rule.
    • Proof: keepalive/value.go:51-55 (PingCap maps 0 to +Inf) and value.go:69 (PingVerdict reads p.PingCap()). Ceiling() still resolves 0 to the default, but only the summary and sweep substitutes use it (keepalive/substitute.go:136, 462).
    • Fix: update the comment. Say: pings read it through PingCap() (0 = no cap, the value rule applies); summary and sweep substitutes read it through Ceiling() (0 = the default).

Non-blocking

  • Stale comments left above the new code: proxy/keepalivectl.go:176-179 still tells the old Ceiling() story ("the guard resolves to the default instead") directly above the new PingCap() code. dash/ui/tabs/keepalive.js:469-471 still says "The per-ping ceiling resolves to the service default on an account that configured none."
  • TestReplayDecidesLikeTheLiveKeeper (campaign/campaign_test.go:398) is circular: both sides call PingVerdict, so it pins DefaultK to the verdict, not the keeper. Also the replay's Stake is priced at the row's own prompt size with no 1-hour rate (campaign/replay.go:185, 200), while the keeper's missUSD is priced at the ping's prompt tier with the 1-hour rate (keepalive/keeper.go:1287). The "decide alike" claim holds through the shared function only, not through the same numbers.
  • armedView (proxy/keepalivectl.go:182) reports the cap from the account document only. A manager strategy that sets its own cap is enforced (ApplyStrategy) but not reported. The drift is pre-existing; the gap widens from "0.50 reported vs 0.25 enforced" to "absent reported vs 0.50 enforced".
  • No test covers the positive branch of the arm response: an operator who sets a cap should see it reported. Only the absent case is tested (proxy/keepalivectl_test.go:166).
  • docs/how-to/cache-keepalive.md says "On OpenAI the write rate is the input rate." GPT-5.6 and later charge 1.25x input (internal/modelinfo/cachefrac.go:57). The code is right; the sentence is not.
  • The miss side uses the entry's billed tier (ttl1h) but not HeadTTL1h or OneHourOnWait, where a miss would rewrite at the 1-hour rate. This understates the miss, so the guard refuses more, not less. Conservative direction only.
  • Process: the behavior change is named at the top of the PR and the owner's yes is still an open question. Merge must wait for it (RELEASING.md, "Behavior changes need a human's permission").

What I checked

  • The full diff base..HEAD and both commits. The merge (6482789) brings only #1426's two-parameter price callback in proxy/predictive_agent_test.go. No other content.
  • value.go math: PingCap, MissUSD, PingVerdict. Fail open holds: an unpriced ping (pingUSD 0) and an unknown miss (missUSD 0) are both allowed. The operator's cap applies on top. The >= boundary refuses a chain that costs exactly the miss, as the docs state.
  • Record paths: automatic, manual-hold and the press (PingNow). The chain count K is pol.MaxPings after WaitPings, so the tool-wait and human/background extras are included. The 1-hour swap sets K to 1. The sweep stops at MaxPings, so the counted chain matches what is sent. The manual-only entry counts 1 ping and the cap it was admitted under; this matches the record-time press check.
  • Pricing: both sides read Price.At at the ping's prompt size (prefix + 1). A 1-hour entry prices its miss at the 1-hour write rate. The OpenAI write frac rules (1.0 before GPT-5.6, 1.25 from GPT-5.6) come from CacheWriteFracFor, as before.
  • Config: the loader no longer fills 0.50; the five built-in strategies drop the key; an old file that wrote 0.5 keeps it as an explicit cap; validate still rejects negatives, so "no cap" by negative value stays a Policy-level escape hatch only.
  • Reason not worth it: added to hooks/model.ts, both cg.py copies, the dashboard text and the docs. No consumer of the reason list was missed.
  • max_usd_per_ping consumers: the arm response omits the key when no cap is set; keepalive.js handles the absent key; strategies.js is finding 1.
  • The summary and sweep substitutes keep the $0.50 default through Ceiling(). Deliberate and documented in the PR.
  • Data dependence: none. The rule reads prices, token counts and the planned count. The keep-alive row needs no edit. Stated in the PR.
  • I did not run builds or tests. Live tests are 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 @amiddaid) GLM rits/zai-org/glm-5-3 via Claude Code 2.1.332 offload-review skill, @amiddaid's session fresh 1 of 2 1 of 2 64827896ffa5 blocking

Verdict: blocking

Findings

  1. dash/ui/tabs/strategies.js:170 — the manager-strategy form still says "Max $/ping (0 = default)", but 0 now means "no flat cap"
    • What fails: a manager creates a keep-alive strategy and leaves "Max $/ping" at its default 0. The label promises a default cap. The strategy now enforces none: only the value rule applies. A second effect: ApplyStrategy (keepalive/strategy.go:72) copies the strategy's 0 onto the policy, so while the strategy's window is open it also removes an account's explicit keepalive_max_usd_per_ping (say 0.25). Before this PR the same clobber landed on the $0.50 default; now it lands on "no cap".
    • Proof: the form input starts at '0' (strategies.js:77) and the submit sends max_usd_per_ping: Number(usdCap.value) || 0 (strategies.js:224). ApplyStrategy writes it straight onto the policy (keepalive/strategy.go:72). Policy.PingCap() (keepalive/value.go) maps 0 to +Inf, so PingVerdict never refuses on a cap. Before this PR, Policy.Ceiling() mapped 0 to DefaultMaxUSDPerPing ($0.50) and pingable() enforced it. The PR updates the account path, the arm dialog and the docs, but not this form or the manager-strategy path. The PR's own docs claim "No default and no strategy sets it" (docs/how-to/cache-keepalive.md:86); this UI tells a manager the opposite.
    • Fix: update the label and the hint to say 0 means no flat cap and the value rule decides. Decide whether a strategy's 0 should leave the account's own cap alone instead of replacing it. Name the manager-strategy path in the behavior-change note either way.

Non-blocking

  • dash/cachestate.go:56 — the comment lists the ping_reason values and lacks the new not worth it.
  • keepalive/keeper.go:181 — the pingUSD field comment still says "Checked against pol.MaxUSDPerPing before anything is sent". The check is now PingVerdict.
  • campaign/campaign_test.go:64 — TestReplayDecidesLikeTheLiveKeeper compares DefaultK() with the same PingVerdict call on the same inputs. Both sides call one function, so it cannot fail on a divergence. It also does not cover the live keeper's wait-plan count (K up to 8), which the live verdict() weighs; the replay weighs the base K. The test's comment claims more than it tests.
  • keepalive/value.go:64-71 — PingVerdict treats missUSD <= 0 as "unknown, fail open". A price list that states write <= read also gives 0 and then fails open, though the miss is known and free. Degenerate input; the comment names only the unknown case.
  • dash/keepalive.go:1540 — the comment says the replay gate is "the request path's, in the same order". The replay models neither the old $0.50 ceiling nor the new value rule. Pre-existing shape, unchanged by this PR.
  • docs/dashboard.md:405 — "the per-ping cost ceiling" for manual holds now reads incomplete: with no operator cap, only the value rule applies.

What I checked

  • Full diff 9c64a6a3..HEAD (26 files), including the merge commit's conflict resolution in proxy/predictive_agent_test.go (clean pick-up of #1426's price-callback signature).
  • keepalive/value.go: PingVerdict, MissUSD, PingCap against internal/modelinfo (CacheReadFor, CacheWrite5mFor, CacheWrite1hFor, Price.At, tier rules). OpenAI write = input rate (CacheWriteFracFor returns 1.0), as the docs claim. Tier pricing raises both sides together, as designed.
  • keepalive/keeper.go Record path: pol.MaxPings is the wait-plan count before the entry is built (line 1095), so verdict() weighs the real planned chain. The manual-hold branch admits a press at pings=1; verdict() on a manual-only entry counts 1 (zeroed policy) and the cap it was admitted under — the two agree. Post-record MaxPings mutations (lines 1721, 1735, 1785) only touch 1-hour-on-wait entries, where the 1-hour miss is ~19x the ping.
  • PingNow (manual.go): a live auto entry already passed the chain verdict at record, and a manual-only entry counts 1, so the press gate cannot refuse a press that was admitted.
  • Fail open: an unpriced model gives pingUSD 0 and missUSD 0 and passes; an unknown price gives missUSD 0 and passes; the operator's explicit cap still refuses.
  • Config: Resolved() no longer fills 0.50; old strategy files keep their 0.5 as the operator's own cap (config/strategy_test.go, the 1-hour-head exclusion matches its fixture, which never wrote the key). FromConfig passes the raw value through.
  • Summary and sweep substitutes still use Policy.Ceiling() ($0.50 default), as the PR body and docs state (keepalive/substitute.go:136,462).
  • Reason plumbing: not worth it added to the TS hook model, both cg.py copies, the docs; the 409 press path maps ErrTooCostly to "over budget" for both cap and value refusals, and the plugin handles that error string.
  • armedView: max_usd_per_ping is now absent when no cap is set; the dash arm dialog handles absence (undefined > 0 is false).
  • Repo rules: the verdict logic lives in the library (keepalive), hosts only report; no client rule added; data dependence stated in the PR body (metadata only, no row change); the behavior change is named at the top of the PR with old/new behavior and how to turn it off.
  • No builds or tests were run (live tests not approved).

@amiddavid

Copy link
Copy Markdown
Collaborator Author

Replies to round 1 (both reviewers blocked)

Fixed in 570df569.

Finding 1, both reviewers: the strategy form says "0 = default". Fixed.

  • dash/ui/tabs/strategies.js: the label now says "0 = no flat cap". The hint says the value rule decides and the account's own cap stays.
  • ApplyStrategy (keepalive/strategy.go): a strategy's 0 no longer replaces the account's cap. Only a value other than 0 replaces it, and a negative value still means no cap.
  • New tests: an account cap of 0.25 with a strategy at 0 keeps 0.25. A strategy at 0.40 sets 0.40. A strategy at −1 sets no cap.
  • The behavior-change block names the manager-strategy path. An open question asks the owner to confirm that a strategy's 0 leaves the account cap alone.

Finding 2, reviewer 2: the MaxUSDPerPing comment. Fixed. Pings read it through PingCap(), where 0 means no cap and the value rule applies. The summary and sweep substitutes read it through Ceiling(), where 0 means the $0.50 default.

Non-blocking notes:

  • Stale comments: fixed in dash/cachestate.go (it now lists not worth it), the pingUSD field, proxy/keepalivectl.go, dash/ui/tabs/keepalive.js, dash/keepalive.go and docs/dashboard.md (manual holds).
  • The OpenAI write rate in the docs: fixed. The input rate before GPT-5.6, and 1.25x input from GPT-5.6.
  • PingVerdict with a miss ≤ 0: the comment now names an unknown price and a degenerate one. Both fail open.
  • The circular replay test: fixed. TestReplayDecidesLikeTheLiveKeeper now records through a real keeper with a stub host, so it runs the keeper's real verdict(). It compares that with the replay's DefaultK over six output rates.
    • The replay prices the miss at the ping's prompt tier, with a new Miss field on RowFacts.
    • It uses the wait-plan K when the row has the wait cause. A new test checks that the replay K is never above the live K.
    • The replay has no 1-hour rate, so it is stricter than live, never looser.
  • The 1-hour miss under HeadTTL1h / OneHourAlways: fixed. The miss uses the 1-hour write rate there, and tests cover both. OneHourOnWait alone does not change the rate, because it applies only to long waits.
  • armedView reports the account cap only: fixed. It now reports the effective cap after the manager strategy. A test checks that a set cap of 0.25 is reported.

Tests (macOS, Go 1.27.4):

  • go build ./... and go vet ./... are clean.
  • Plain go test passes on keepalive, campaign, config, proxy and dash.
  • Mutations: a strategy's 0 that clobbers the account cap fails 1 test. Dropping the 1-hour miss rate fails 1. Inverting the value comparison fails 11.

Local tests: waived (owner rule)

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

Verdict: approve

Findings

None. The fix commit 570df56 addresses every round-1 finding from both reviewers, and it introduces no new defect I can show.

Earlier findings

  • My finding 1 (strategies.js "0 = default" label) — fixed. The label now says "0 = no flat cap" and the hint names the value rule and that the account's own cap stays (dash/ui/tabs/strategies.js:170). Verified in the file.
  • My finding 2 (types.go MaxUSDPerPing comment) — fixed. The comment now states both readers: PingCap() for pings (0 = no cap, the value rule decides) and Ceiling() for the summary and sweep substitutes (0 = the $0.50 default). It matches the code.
  • Reviewer 1's finding 1 (same label, plus the strategy clobber of the account cap) — fixed, and I checked the deeper half myself. ApplyStrategy (keepalive/strategy.go:72-75) now replaces the cap only when the strategy states a value other than 0; -1 still means "no cap". TestApplyStrategyKeepsTheAccountCapWhenTheStrategySetsNone covers 0-keeps-0.25, 0.40-replaces, -1-clears and none-at-all. The behavior-change block in the PR body now names the manager-strategy path. An old stored strategy with 0.5 still replaces (0.5 != 0), which keeps the PR's promise to old files.
  • My non-blocking notes — all fixed: the stale comments (proxy/keepalivectl.go, dash/ui/tabs/keepalive.js, dash/cachestate.go, dash/keepalive.go, the pingUSD field, docs/dashboard.md manual holds); the OpenAI write-rate sentence (now "input rate before GPT-5.6, 1.25x from GPT-5.6", which matches CacheWriteFracFor); the missing positive-branch arm test (TestArmingReportsAnAccountCap); the PingVerdict comment on a miss ≤ 0; the armedView strategy drift.
  • The circular replay test — fixed beyond what I asked. TestReplayDecidesLikeTheLiveKeeper now records through a real keeper with a stub host, so the live side is kaEntry.verdict() through Record, not the same function call. I checked the numbers meet: the stub prices every prompt size the same, pingOutputBudget("/v1/messages") is 1, so the replay's prefix x CacheRead + out x 1 equals the live projectedPingUSD, and its Stake(prefix, read, write) equals the live MissUSD at the 5-minute rate. The new Miss field on RowFacts is priced at the ping's prompt tier (campaign/replay.go:177-184), as the keeper does.
  • The 1-hour miss under HeadTTL1h / OneHourOnWait — fixed. missAtOneHour (keepalive/keeper.go:1302) prices the miss at the 1-hour write rate for HeadTTL1h, OneHourAlways and an entry whose plan swapped to the 1-hour ping. TestMissIsPricedAtOneHourWhenThePolicyWritesAtOneHour covers both policy flags. The reply's wording "OneHourOnWait alone does not change the rate" is right: the rate changes only when the swap fired for this entry, which is what oneHour carries.
  • armedView — fixed. It now reports the effective cap through keeper.resolvePolicy (proxy/keepalivectl.go:182-187), which layers the manager strategy and the session override exactly as the record path does. Campaigns do not touch MaxUSDPerPing (campaign/decision.go Apply sets counts only), and the override never carries it, so the report matches enforcement.

Non-blocking

  • armedView resolves with the provider hard-coded to Anthropic. For an OpenAI session armed by hand, enforcement skips the strategy layer (Resolve with OpenAI: true) but the report applies it. A gap needs a strategy that sets a cap and an armed OpenAI session. Narrow, and the same class as the pre-existing drift.
  • Under OneHourAlways, a subagent entry's miss is priced at the 1-hour write rate, though subagents keep the 5-minute cache under that policy. Some worthy subagent pings are refused. The code comment names the cautious side; spend-safe direction only.
  • TestReplayChainNeverExceedsTheLiveWaitPlan's main property holds by construction: replayChain returns max(pol.MaxPings, WaitPings(...)) and the test compares it with max(pol.MaxPings, live). The tool-wait K=8 assertion is the part that can fail. Harmless.
  • The owner's yes to the behavior change is still an open question in the PR body. Merge must wait for it (RELEASING.md). Not a code defect.

What I checked

  • Last review: round 1, 64827896ffa500ab99e14e3128ad8a1e23a13267, 2026-11-25T17:26:35Z.
  • New commits read: 1 — 570df56 "fix(keepalive): round 1 review fixes for the ping value rule (#1420)". Full diff read, plus the code around each change.
  • 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).
  • New items since my last review: reviewer 1's round-1 review (17:26:35Z order in the list; read in full, no finding I disagree with), the author's reply comment (17:37:49Z; every claim in it checked against the code, all confirmed), and the fix commit 570df56.
  • ApplyStrategy and armedView read in the current files, not only the diff. resolvePolicy's signature and layering checked (proxy/keepalive.go:495); campaigns and overrides cannot change the cap, so the reported cap is the enforced one.
  • replayChain (campaign/adapt.go): for Anthropic rows it is max(base, WaitPings(cause, subagent)), which is never above the live count; OpenAI rows keep the base, as live does (the wait plan is Anthropic-only). On a 1-hour-billed row the replay weighs a 5-minute miss against the larger chain, so it is stricter than live, never looser — the commit's claim holds.
  • The new tests' math checked by hand: the stub price (no tiers), the output budget of 1 on /v1/messages, the 5-minute and 1-hour miss formulas (3.75e-6 and 2x input minus 0.3e-6 read), and the prefix 49,776 in TestMissIsPricedAtOneHourWhenThePolicyWritesAtOneHour.
  • RowFacts.Miss has one constructor (campaign/replay.go:207) and it sets the field; the dash replay documents that it models neither the value rule nor the cap (dash/keepalive.go).
  • No new behavior change beyond the ones already named: the strategy-at-0 change is in the PR body's behavior-change block, with an open question for the owner.
  • I did not run builds or tests. Live tests are 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 @amiddaid) GLM rits/zai-org/glm-5-3 via Claude Code 2.1.332 offload-review skill, @amiddaid's session resumed 1 of 2 2 of 2 570df56926d2 blocking

Verdict: blocking

Earlier findings

  • My finding 1 (strategies form "0 = default" + the cap clobber): fixed. The label and hint now say 0 = no flat cap and that the account's cap stays (dash/ui/tabs/strategies.js:170). ApplyStrategy replaces the account's cap only when the strategy's value is not 0 (keepalive/strategy.go:72-76). TestApplyStrategyKeepsTheAccountCapWhenTheStrategySetsNone covers 0-keeps, 0.40-replaces and -1-replaces. The PR body names the manager-strategy path and asks the owner to confirm the 0-keeps choice.
  • Reviewer 2's finding 1 (same form label): fixed the same way. Agree with reviewer 2, finding 1; it was also my finding 1.
  • Reviewer 2's finding 2 (the MaxUSDPerPing comment): fixed. keepalive/types.go now says pings read it through PingCap() (0 = no cap) and the substitutes through Ceiling() (0 = the $0.50 default).
  • Reviewer 2's non-blocking notes: all fixed — the stale comments (cachestate.go, pingUSD, keepalivectl.go, keepalive.js, dash/keepalive.go, docs/dashboard.md), the OpenAI write-rate sentence (now "input rate before GPT-5.6, 1.25x from GPT-5.6", which matches chargesCacheWritePremium), the PingVerdict miss-≤-0 comment, the circular replay test, the 1-hour miss under HeadTTL1h/OneHourAlways, and the arm answer's positive branch (TestArmingReportsAnAccountCap).
  • My non-blocking notes: all fixed except the process one below.

Findings

  1. proxy/keepalivectl.go:184 — the arm answer resolves the cap as an Anthropic session for every session, so on an OpenAI session it can state a cap nobody enforces
    • What fails: a manager strategy sets Max $/ping to 0.40 and its window is open. A user arms the Ping button on an OpenAI session of the same account. armedView calls resolvePolicy with the provider hardcoded to bschemas.Anthropic, so the strategy layer applies and the answer reports max_usd_per_ping: 0.40. The request path resolves the same session with provider OpenAI, and keepalive.Resolve skips the strategy layer for OpenAI (keepalive/resolve.go:61). The enforced cap is the account's, possibly none. The arm dialog then says "No single ping may cost more than $0.40" while the pings on that session are not capped by it. This is the exact defect the round-1 fix set out to remove: a report that states a limit nobody enforces.
    • Proof: pol, _ = h.keeper.resolvePolicy(tn, session, bschemas.Anthropic, tn.Cache, predDecision{}, false) (keepalivectl.go:183-185). resolvePolicyWindows fills in.Strategies only when the provider is not OpenAI (proxy/keepalive.go:508-514), and Resolve applies strategies only on the non-OpenAI branch (keepalive/resolve.go:56-61). Armed OpenAI sessions exist: Override.ApplyOpenAI (keepalive/override.go:165) is the arm path for them.
    • Fix: derive the provider from the session's own model — armedView already fetches it (worstCase returns the model of the session's last billed request) — or skip the strategy layer when that model is an OpenAI model. Failing that, say in the answer that the cap is the Anthropic-side one.

Non-blocking

  • campaign/campaign_test.go:131 — TestReplayChainNeverExceedsTheLiveWaitPlan mostly asserts replayChain == max(base, WaitPings), which is the function's own definition. Only the tool-wait pin (K=8) and the OpenAI branch test behavior. The main parity test (TestReplayDecidesLikeTheLiveKeeper) is now genuine and good.
  • keepalive/strategy.go:72-76 — a strategy cannot carry a negative cap through the manager API (ValidStrategyBounds refuses < 0), so the "-1 replaces" branch is reachable only by building a tenant.Strategy by hand. The test covers it anyway. Harmless.
  • Process: the PR body still asks "Owner: yes to this behavior change?". Merge must wait for that yes (RELEASING.md, "Behavior changes need a human's permission").

What I checked

  • Last review: round 1, 6482789, 2026-11-25T17:27:09Z.
  • New commits read: 1 — 570df56 "fix(keepalive): round 1 review fixes for the ping value rule (#1420)". Full diff read, plus the code around each change.
  • Read in full: 2 reviews, 1 comment, 0 inline comments (from the three saved files). The comment file holds only the author's reply at 17:37:49Z; the inline file is empty.
  • New items since my last review: the author's reply comment (checked claim by claim below) and commit 570df56 (reviewed as a first review).
  • ApplyStrategy: the 0-keeps change and its test. A negative strategy cap still replaces; the API refuses negatives, so that branch is hand-built only.
  • missAtOneHour (keeper.go): HeadTTL1h, OneHourAlways and the per-entry 1-hour-ping flag now price the miss at the 1-hour write rate. OneHourOnWait alone does not, which matches the reply: the flag matters only when the plan actually switched this entry to the 1-hour ping, and that sets the oneHour variable the code reads. The new test covers both policy flags through a real Record.
  • The rewritten TestReplayDecidesLikeTheLiveKeeper: traced both sides. The live side records through a real keeper (stub host prices one flat rate; no ping fires because Now is fixed and the idle is 240 s), so Entry returns held exactly when the entry's verdict is OK — turn 1, prefix 90k over the 80k floor, no tool gate (WaitPlan off), no thinking, no terminal tool. The replay side builds Ping and Miss from the same rates and prefix, and both weigh K=2. The comparison is now real, not circular.
  • replayChain and defaultPlan: WaitPings never returns less than the base, so max(base, WaitPings) equals the live count for a matching cause. On a 1-hour entry the replay weighs a larger chain against a smaller (5-minute) miss, so it refuses more than live, never less — the comment's claim holds.
  • RowFacts.Miss in campaign/replay.go: priced at the ping's prompt tier through the same price callback (autoPrice returns q.CacheWrite at that size), matching live MissUSD's tier choice; rows without a ping-tier price fall back to the row's rates.
  • armedView's new resolvePolicy call: locking is safe (strategyList, activeOverride take their own locks), the nil-keeper guard is present, the just-armed override does not touch MaxUSDPerPing (Override.Apply sets Idle, MaxPings, MinPrefixTokens, WaitPlan only), and the new test's fixture wiring exists. The provider hardcode is finding 1.
  • The PR body diff since round 1: the behavior-change block now names manager strategies, and the open question about a strategy's 0 is there.
  • No builds or tests were run (live tests not approved).

@amiddavid

Copy link
Copy Markdown
Collaborator Author

Owner decisions (David Amid, 2026-11-25)

  • Above the limit, refuse the chain, as now. When an operator sets more planned pings than pay off, the rule refuses the chain. It does not trim it.
  • A strategy with 0 leaves the account cap in place. It never removes a cap the operator set. Only a value above 0 replaces it.
  • The owner granted round 3 for the armedView provider fix.
  • The merge yes for this behavior change is still open. The owner gives it in the integrator session.

@amiddavid

Copy link
Copy Markdown
Collaborator Author

Replies to round 2

Fixed in 40a3473a.

Reviewer 1, finding 1, and reviewer 2's matching note: armedView hardcodes the Anthropic provider. Fixed.

  • The arm answer now takes the provider of the session's own last request, through a new DB.LastBilledProvider (dash/keepalive.go). It passes that provider to resolvePolicy. When the session has no row, it falls back to Anthropic.
  • The new test TestArmingReportsTheStrategyCapOnlyWhereItIsEnforced uses a strategy with a 0.40 cap. An Anthropic session reports 0.40. An OpenAI session reports no cap.
  • A mutation that hardcodes Anthropic again makes the OpenAI case fail.

Reviewer 2: a subagent entry under OneHourAlways was priced at the 1-hour miss. Fixed. Under OneHourAlways a subagent keeps the 5-minute cache, so its miss is now priced at the 5-minute rate. HeadTTL1h still prices a subagent at 1 hour, because that policy applies to subagents too. The extended TestMissIsPricedAtOneHourWhenThePolicyWritesAtOneHour covers both cases. A mutation that prices the subagent at 1 hour makes it fail.

Both reviewers: TestReplayChainNeverExceedsTheLiveWaitPlan restates its own definition. Fixed. The test is now TestReplayChainFollowsTheWaitPlan. It pins K=8 on a tool wait and the base K=2 on an OpenAI row.

Reviewer 1: the "−1 replaces" branch is reachable only by hand. Kept. The test documents the branch. It is harmless.

Owner decisions (David Amid, 2026-11-25), recorded in the comment above:

  • Refuse the chain above the limit; do not trim it.
  • A strategy's 0 leaves the account cap in place.
  • Round 3 is granted.
  • The merge yes comes in the integrator session.

Tests (macOS, Go 1.27.4): build and go vet ./... are clean. Plain go test passes on keepalive, campaign and proxy. -race -run on the new tests passes.

Local tests: waived (owner rule)

@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.332 offload-review skill, @amiddavid's session resumed 2 of 2 3 of 3 40a3473adf73 approve

Verdict: approve

Findings

None. The round-3 commit 40a3473 fixes the one open finding and my two open notes, and it introduces no new defect I can show.

Earlier findings

  • Reviewer 1's round-2 finding 1 (armedView hardcodes the Anthropic provider) — fixed, and I checked the fix myself. armedView now reads the provider of the session's own last request through the new DB.LastBilledProvider (dash/keepalive.go:1961) and passes it to resolvePolicy (proxy/keepalivectl.go:184-190). I verified the whole chain:
    • LastBilledProvider copies LastBilledPrefix's query shape: same table, same Filter.where(), same ordering, same ErrNoRows handling. The model and the provider therefore come from the same row, so the report is consistent with worstCase beside it.
    • The stored value round-trips: the request path stores string(provider) of a bschemas.ModelProvider (proxy/dashcapture.go:246, proxy.go:1343), and bschemas.OpenAI is the string "openai" (bifrost schemas/bifrost.go:45). The cast back is safe.
    • No row: the provider stays Anthropic, as the comment states. A DB error also falls back to Anthropic (see Non-blocking).
    • TestArmingReportsTheStrategyCapOnlyWhereItIsEnforced covers both sides: a 0.40 strategy cap reported on an Anthropic session, absent on an OpenAI one. The helpers it uses exist (keeper.setStrategies, mgrFixture.record).
  • My round-2 note (OneHourAlways priced a subagent's miss at the 1-hour rate) — fixed. missAtOneHour now takes the subagent flag: OneHourAlways counts only on a main thread (keepalive/keeper.go:1305-1307). This matches the policy's design — subagents keep the 5-minute cache under OneHourAlways — and HeadTTL1h still prices a subagent at 1 hour, which also matches its design ("it also applies to subagent requests"). The extended test covers all four combinations through a real Record. The direction of the change is right too: the 5-minute miss is the true cost of a subagent's rewrite.
  • My round-2 note (the chain test restated its own definition) — fixed. TestReplayChainFollowsTheWaitPlan now pins the two behaviors that can fail: K=8 on a tool wait and the base K=2 on an OpenAI row.
  • My round-2 process note (the owner's yes) — addressed. The owner decisions comment (2026-11-25) records: refuse the chain above the limit, do not trim; a strategy's 0 leaves the account cap; round 3 granted; the merge yes is given in the integrator session. That is the RELEASING.md path.
  • Reviewer 1's round-2 note (the "-1 replaces" branch is reachable only by hand) — kept by the author, with a reason. I accept the reason: ValidStrategyBounds refuses negative caps through the API, so the branch exists only for a hand-built tenant.Strategy, and the test documents it. No live path reaches it with a surprise.

Non-blocking

  • On a DB error (not ErrNoRows), LastBilledProvider returns the error and armedView silently falls back to Anthropic. An OpenAI session could then report a strategy cap that is not enforced. This needs a failing query on exactly the call whose twin (worstCase's) runs beside it, and the answer is a report, not a gate. Negligible.
  • The merge yes is still open by design: the owner gives it in the integrator session. The hand-off block must state where it stands.

What I checked

  • Last review: round 2, 570df56926d27569bcb3123e0095a012c5883c33, 2026-11-25T17:42:49Z.
  • New commits read: 1 — 40a3473 "fix(keepalive): round 2 review fixes for the ping value rule (#1420)". Full diff read, plus the code around each change.
  • Read in full: 4 reviews, 3 comments, 0 inline comments (from the three files .review-in-reviews.txt, .review-in-comments.txt, .review-in-inline.txt). The first 79 lines of the reviews file are the two round-1 reviews, unchanged since I read them in full in round 2; the rest I read now.
  • New items since my last review: reviewer 1's round-2 review (17:45:15Z, read in full; its finding 1 matched my round-2 non-blocking note and I verified the fix), the owner decisions comment (17:54:33Z), the author's round-2 reply (17:55:10Z; every claim checked against the code, all confirmed), and the fix commit 40a3473.
  • LastBilledProvider compared line by line with LastBilledPrefix (dash/keepalive.go:1944-1972): same filter, same ordering, same no-row contract.
  • The provider round trip: newCapture takes the provider as a string from string(provider) (proxy/dashcapture.go:232-246), bschemas.OpenAI = "openai", so bschemas.ModelProvider(p) restores the exact value. resolvePolicy compares against bschemas.OpenAI on the same type.
  • missAtOneHour's new subagent parameter traced to its call site: IsSubagentThread(threadID) is in scope at the kaEntry literal, and oneHour (the 1-hour-ping plan) can never be true for a subagent, since LongWait returns false for one — so no path double-counts.
  • The new and changed tests read for their math and fixtures: TestArmingReportsTheStrategyCapOnlyWhereItIsEnforced (strategy helpers and window cover "now"), TestMissIsPricedAtOneHourWhenThePolicyWritesAtOneHour (four cases, 5-minute and 1-hour formulas), TestReplayChainFollowsTheWaitPlan (K=8 and OpenAI base pins).
  • No new behavior change beyond those already named and decided: the subagent miss fix is a correction inside the named value rule, in the refuse-more direction.
  • I did not run builds or tests. Live tests are 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 @amiddaid) GLM rits/zai-org/glm-5-3 via Claude Code 2.1.332 offload-review skill, @amiddaid's session resumed 1 of 2 3 of 3 40a3473adf73 approve

Verdict: approve

Findings

None. The round-2 fix commit 40a3473a fixes my round-2 finding and reviewer 2's two round-2 notes, and it introduces no defect I can show.

Earlier findings

  • My round-2 finding 1 (armedView hardcoded the Anthropic provider): fixed. armedView now asks DB.LastBilledProvider for the provider of the session's own last request and passes it to resolvePolicy (proxy/keepalivectl.go:184-190). I checked the whole chain: capture.provider comes from the handler's bschemas.ModelProvider string, dash stores it on the row, bschemas.OpenAI is the string "openai", so the provider read back is the one the request path used, and Resolve skips the strategy layer exactly when the report now does. LastBilledProvider (dash/keepalive.go:1963) mirrors LastBilledPrefix row for row, so the provider comes from the same latest row whose model worstCase shows. The new test TestArmingReportsTheStrategyCapOnlyWhereItIsEnforced covers both directions: an Anthropic session reports the strategy's 0.40, an OpenAI session reports no cap. All helpers it uses exist (setStrategies, mgrFixture.record, TargetAll, the all-day window).
  • Reviewer 2's round-2 note (a subagent under OneHourAlways priced its miss at the 1-hour rate): fixed. missAtOneHour now takes the subagent flag and keeps OneHourAlways main-thread only (keepalive/keeper.go:1306). The premise is right: under C a subagent is never relabelled and keeps the 5-minute cache (keepalive/onehour.go:497, 505-506), while HeadTTL1h asks for the 1-hour tier on every request, subagents included — the fix keeps that one at 1 hour. The extended test covers all four combinations.
  • My round-2 non-blocking note (the replay-chain test restated its definition): fixed. TestReplayChainFollowsTheWaitPlan now pins the two behaviors that can fail: K=8 on a tool wait and the base K=2 on an OpenAI row.
  • My round-2 non-blocking note (the "-1 replaces" branch is hand-reachable only): kept by the author, with the test documenting it. The reason is right: the branch is harmless and the API refuses negatives anyway. Accepted.
  • Owner decisions (comment at 17:54:33Z): checked against the code. Refuse-don't-trim matches PingVerdict (it returns VerdictNotWorth, never a trimmed count). A strategy's 0 leaving the account cap matches ApplyStrategy. Round 3 was granted for the provider fix — this review is that round. The merge yes stays with the integrator session.

Non-blocking

  • proxy/keepalivectl.go:186-190 — when the session has no request row, or the dashboard read fails, armedView falls back to Anthropic and may state a strategy cap that an OpenAI session would not enforce. The code comment names the fallback. A session with no rows has nothing to ping yet (the turn gate), so the window is small.
  • Process: the merge yes for the behavior change is still open. The owner says it is given in the integrator session (comment at 17:54:33Z). Merge must wait for it (RELEASING.md).

What I checked

  • Last review: round 2, 570df56, 2026-11-25T17:45:15Z.
  • New commits read: 1 — 40a3473 "fix(keepalive): round 2 review fixes for the ping value rule (#1420)". Full diff read, plus the code around each change.
  • Read in full: 4 reviews, 2 comments, 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: reviewer 2's round-2 review (17:42:49Z, approve; its two non-blocking notes are both fixed in 40a3473 — I verified both myself), the owner-decisions comment (17:54:33Z; each decision checked against the code, see above), the author's round-2 reply (17:55:10Z; every claim checked), and commit 40a3473 (reviewed as a first review).
  • LastBilledProvider: query shape, ErrNoRows handling and the Filter match LastBilledPrefix exactly. The provider string round-trips: the proxy's capture.provider is the bschemas.ModelProvider string of the request, dash.Event.Provider stores it, and the comparison in resolvePolicyWindows is against bschemas.OpenAI ("openai").
  • missAtOneHour's subagent premise: OneHourAlways relabels main threads only (onehour.go:497), subagents are never relabelled (onehour.go:505-506), HeadTTL1h has no thread restriction. The test's four cases match.
  • The renamed TestReplayChainFollowsTheWaitPlan: both assertions can fail on a real regression; the circular property is gone.
  • The new arm test's fixture wiring: setStrategies swaps under lock, mgrFixture.record sets tenant and session, the strategy's target mode and window constants exist.
  • No builds or tests were run (live tests not approved).

The flat $0.50 per-ping cap blocked GPT-5.5 pings above about 500K
tokens after #1407. Such a ping saves 9x to 11x its cost.

- Value rule: allow the planned pings of one idle span when they cost
  less than one miss (prefix x (write rate - read rate)), both priced
  at the tier of the prompt size. Live keeper and replay call one
  function, Policy.PingVerdict.
- keepalive_max_usd_per_ping is now an opt-in flat cap on top. The
  loader no longer fills 0.50 and no strategy sets it.
- Summary and sweep calls keep their $0.50 default cap.
- New reason "not worth it". "over budget" now means the operator cap.
- keepalive.PingPrompt replaces the proxy's own prefix + 1 sum.

Fixes #1420

Assisted-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: DAVID AMID <[email protected]>
- A manager strategy's flat cap of 0 now leaves the account's own cap
  in place. Only a value other than 0 replaces it.
- The strategy form says 0 = no flat cap.
- A miss is priced at the 1-hour write rate when the policy writes at
  1 hour (HeadTTL1h, OneHourAlways) or plans the 1-hour ping.
- Replay weighs the miss at the ping's tier and the live wait-plan
  count (never more than live). The replay-versus-live test now goes
  through a real keeper.
- The arm answer reports the effective cap after the manager strategy.
- Fix stale comments and the OpenAI write-rate sentence.

Assisted-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: DAVID AMID <[email protected]>
- The arm answer resolves the policy with the provider of the
  session's own last request, so the manager strategy cap is reported
  only where it is enforced (not on an OpenAI session).
- A subagent keeps the 5-minute cache under OneHourAlways, so its
  miss is priced at the 5-minute rate.
- Replace the replay chain test that restated its own definition with
  a pin on the K=8 tool wait and the OpenAI base count.

Assisted-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: DAVID AMID <[email protected]>
@amiddavid
amiddavid force-pushed the feat/ping-value-guard branch from 40a3473 to 1239741 Compare November 25, 2026 18:05
@amiddavid

Copy link
Copy Markdown
Collaborator Author

Round 3: both approve. Commits re-signed.

  • Both reviewers approve round 3, at 40a3473a. Their notes are non-blocking: armedView falls back to Anthropic when the session has no row or the database read fails. The code comment names this fallback, and a session with no rows has nothing to ping yet.
  • The merge commit 64827896 had no Signed-off-by line. Every commit is now re-signed (git rebase -r --exec "git commit --amend -s --no-edit") and force-pushed with lease, as 12397417. The tree is identical. The approvals at 40a3473a still count:
approved: 40a3473adf73 (base 9c64a6a336bd) patch-id e58c150824d5
head:     12397417fe79 (base 9c64a6a336bd) patch-id e58c150824d5
SAME CHANGE: only the base moved. The approval of 40a3473adf73 still counts. Say so on the PR.

Local tests: waived (owner rule)

@amiddavid
amiddavid merged commit e35d7ea into main Nov 25, 2026
12 checks passed
@github-project-automation github-project-automation Bot moved this from New/ToDo to Done in Rossoctl Issue Prioritization Nov 25, 2026
amiddavid added a commit that referenced this pull request Nov 26, 2026
chore(plugins): bump the plugin versions for v0.7.10

- Claude Code plugin: 0.7.9 -> 0.7.10 (#1428: "not worth it" reason for a
  skipped ping chain; #1461: shows "saving pending" for a ping)
- Codex: 0.2.14 -> 0.2.15 (#1428: "not worth it" reason; cgcache test clock)
- OpenCode: PINNED_VERSION v0.7.9 -> v0.7.10 (index.js, README, install
  how-to, tests). The new installer holds no proxy version.
- Pi 0.1.8 and Bob 0.1.3: unchanged (no change since v0.7.9)

Release bump for v0.7.10.

docs(scripts): the cortex-with-cg.sh examples name v0.7.10

A review note on #1511. Comment lines only.

Release bump for v0.7.10. Part A, heavy CI and the release dry run passed on 17e5633 except TestCGScriptsAreVendoredIntoCodex, fixed by #1518; the plugin step passed again on 97faea9 (one load flake, TestProjectThenUserScopeKeepsTwoPorts, passed 3 of 3 on a re-run). Part B passed 7 of 7. Owner: "notes are ok".

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

Labels

openai OpenAI / Codex traffic and pricing

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

keepalive: the per-ping cost cap blocks the most valuable pings since #1407

1 participant