Skip to content

Measure model exposure and verify native renewal gates - #43

Merged
isaacslee merged 2 commits into
mainfrom
renewal-exposure
Dec 3, 2026
Merged

isaacslee merged 2 commits into
mainfrom
renewal-exposure

Conversation

@isaacslee

Copy link
Copy Markdown
Member

What this changes

  • Extend the renewal study to compute exact request exposure variance and switching under weighted independent model draws and finite pools. Exercise each lifetime through the Pi sampler and run both model policies in CI.
  • Record native verification of renewal keeps and redraws on OpenCode and Claude Code and make the compatibility table easier to scan.

Why

A pool balances the number of draws in a cycle, while requests count how long each draw stays active. At 24 requests with a 3:2:1 pool, a fixed hold of four balances request exposure exactly, while a 25% renewal gate leaves an expected first-model exposure of 12 with variance 19.595 requests squared.

Verification

  • Checked the exact calculation against a two-request case and a complete, constant-length pool cycle. Ran the two study commands used by CI and 500 sampler sessions per lifetime for both finite and independent models. Fixed pools had zero measured exposure variance. For random lifetimes, mean switches were 4.136 for the pool and 3.514 for independent draws.
  • Claude Code 2.1.331 and OpenCode 2.4.1 each ran 12 requests per session in Linux under WSL and natively on Windows 11 against loopback providers. All 12 journaled models matched provider requests in each verified run. Each run showed both renewal outcomes. The Windows scratch directories contained spaces and Hangul.

Compute exact exposure variance and switch counts under fixed and random lifetimes, then measure both through the Pi sampler.
Copilot AI balanced review requested due to automatic review settings December 3, 2026 00:15

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@isaacslee
isaacslee merged commit 3871721 into main Dec 3, 2026
6 checks passed
@isaacslee
isaacslee deleted the renewal-exposure branch December 3, 2026 00:19
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.

2 participants