Skip to content

feat(kin): keep-warm works from a new company's first idle hour and remembers its pace across releases - #1105

Merged
GLDRoger merged 5 commits into
kinfrom
train-19-1129/step-4
Nov 29, 2026
Merged

GLDRoger merged 5 commits into
kinfrom
train-19-1129/step-4

Conversation

@GLDRoger

Copy link
Copy Markdown
Owner

A new Kin host needed twenty long gaps on one exact cache fingerprint before it would keep anything warm, so the first idle hours of a new company always went cold. Each release can change that fingerprint, which made the keep-warm ping forget what it had learned about a person's pace.

  • Demand is counted per company, agent and seat across fingerprints, so a release no longer resets it. Only real turns count. Pings and compaction never do.
  • A seat with little history may ping in its first three windows after a real turn, then waits for another one. Each ping still needs a warm cache entry, the usual budget and pause gates, and no company turn running.
  • Price samples stay with the bytes that produced them. A new seat with a single measured opening is priced from that opening, and a ping that rewrites only the prefix counts as a miss: one miss waits for a newer real turn, and two in a row stop speculative pings.

People-change: Kin can keep the shared instructions warm in a new company's first idle hour and doesn't forget its pace when it updates.

Checked as part of train 19's one check at the tip.

An independent review by Claude Opus 5.5 found it LANDS AFTER FIXES, and its fix plus one short builder round are on this branch.

🤖 Generated with Claude Code

GLDRoger and others added 5 commits November 29, 2026 22:16
Learn demand from the seat across releases and bound speculative startup pings to three windows until enough comparable returns are observed. Reuse measured price samples without letting a fingerprint change or a compaction reset the wrong clock.

People-change: Keep-warm can work on a company’s first idle hour and keeps the usage rhythm it learned across releases.

Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
With no paired history, the price comes from one opening, whose written
tokens include its first message. A missed ping rewrites only the shared
prefix, so it cost less than that "rewrite" and was never classed as a
miss: the one-miss wait and the two-miss stop never fired on a new host.
A ping is now a miss when it costs more than the rewrite or reads no more
than a cold opening reads, the same test the upkeep log already uses.

People-change: on a new company, keep-warm now stops after its pings keep missing instead of paying a full rewrite in every window.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Exercise the registered job on the test clock, including settings reload at send and the empty cache map after host restart. Document the measured Opus keep-warm cost without changing the request or schedule.

People-change: None; this clarifies the cost estimate and tests the existing keep-warm behavior.

Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
Merges feat/kin-cache-keep-warm-from-day-one (96cf1e6) as step 4 of train 19.

People-change: none

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
People-change: none

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@GLDRoger
GLDRoger merged commit 96292f0 into kin Nov 29, 2026
14 of 17 checks passed
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-29T22:28:50.083938Z 3714e54 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant