Skip to content

Session-cap eviction lists the whole Session on every Observation #479

Open

Description

@possiblyneal

Land the evictOverCap change (StateKV.count in place of a full list). Measured: observe p50 255 → 24 ms on Sessions under the cap.

Verified 2026-11-18 on fdc3d459: failing repro, fix, npm test, eval:gate, and eval:gate:rules pass (eval:suite not run: not class 2). The repro tests, the fix and the evidence are in the verdict. The fix is on branch verify/469-scope-reloads (worktree tmp/wt/verify-469), not committed. Run npm run build before committing.

Part of #448.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingready-for-agentFully specified, ready for an AFK agent

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions