Skip to content

fix(agents): accept Primary-hot warmup KV path - #186

Merged
FluffyAIcode merged 1 commit into
mainfrom
AgentMemory/primary-hot-gate-0717
Jul 17, 2026
Merged

fix(agents): accept Primary-hot warmup KV path#186
FluffyAIcode merged 1 commit into
mainfrom
AgentMemory/primary-hot-gate-0717

Conversation

@FluffyAIcode

Copy link
Copy Markdown
Owner

Summary

  • accept either a complete allens remote hit or an existing Primary local hit during the warmup pass
  • retain strict reused-token, zero-compute, zero-fallback, zero-job-failure requirements
  • continue requiring a Primary local hit for actual inference
  • print compact warm/actual counters when a future gate truly fails

Root cause

After the first successful promotion, repeated deterministic prompts hit Primary on both warmup and actual passes. The gate introduced in PR #185 handled exact allens hits but still required remote_hits >= 1, incorrectly rejecting the hotter local_hits=1 warmup path.

Observed counters were local_hits +2, tokens_reused +80, tokens_computed=0, remote_jobs=0, and fallbacks=0.

Tests

  • Primary-hot, allens-hit, and remote-compute gate paths
  • diagnostic counter output
  • targeted suite — 14 passed
  • full platform-neutral suite — 860 passed, 1 skipped
  • Python compile and diff checks pass

Made with Cursor

Recognize an already-promoted Primary snapshot as a valid full-KV warmup and include exact reuse counters in any future gate failure.

Co-authored-by: Cursor <cursoragent@cursor.com>
@cursor

cursor Bot commented Jul 17, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@FluffyAIcode
FluffyAIcode merged commit afb16a4 into main Jul 17, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant