Skip to content

Give strategy cards a separate request-count lifetime - #45

Merged
isaacslee merged 1 commit into
mainfrom
strategy-cadence
Dec 3, 2026
Merged

isaacslee merged 1 commit into
mainfrom
strategy-cadence

Conversation

@isaacslee

Copy link
Copy Markdown
Member

What this changes

Pi, OpenCode, and Claude Code can hold a strategy for an explicit number of requests while the model commitment continues. The request modules track the strategy's own age and spend a deck entry only for a fresh card. Model renewals start a fresh strategy commitment and continue the existing deck cycle.

Why

The interval lets developers compare a sustained strategy with per-request or model-coupled draws. A model hold of five and strategy hold of two can produce commitments of lengths 2, 2, 1. The sequence study measures request exposure under that truncation.

Verification

  • Rust 1.88 formatting, Clippy, 150 tests, release build, strict TypeScript checks for Pi and OpenCode, and Claude Code module syntax.
  • Eight requests per native conversation in Pi 1.7.0, OpenCode 2.4.1, and Claude Code 2.1.335 on Linux against loopback providers. Each provider saw the journaled guidance on all eight requests. Four cards were dealt in two complete cycles, each held for two requests.
  • Exact analysis and 350 sampler conversations per method with two cards and ten requests. A finite deck's exact first-card exposure variance was 0.5 requests squared, compared with 4.5 for independent draws. The measured variances were 0.497 and 4.609.

Give strategy cards their own cadence during a model commitment in Pi, OpenCode, and Claude Code. Measure the resulting request exposure and repeat counts through the Claude Code sampler.
Copilot AI balanced review requested due to automatic review settings December 3, 2026 02:08

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 b7b4add into main Dec 3, 2026
6 checks passed
@isaacslee
isaacslee deleted the strategy-cadence branch December 3, 2026 02:12
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