Repository navigation
T27 OS keys: an OpenRouter free tier after the z.ai flash tier, paid last; the KEYS-tab request line follows in #11289 - #11290
Merged
Merged
Conversation
…s, then the paid profiles, and a missing OpenRouter key skips its tier (Refs #11285) keys.t27: PROFILE_TIER / profile_rank put the chain in tier order (CT_ZAI_FREE, CT_OR_FREE, CT_PAID); next_profile walks by rank, so a pane whose z.ai keys all rest moves to OpenRouter when a key is stored and to the paid profile (or the give-up line) when it is not. The openrouter profile now names three free ids (public list 2026-10-20, not yet measured on a key: none is stored) at model steps 0..2 (MODELS_DEFAULT/SECOND/THIRD, MODEL_STEPS 3) through the same Anthropic-protocol variables as before; its paid ~anthropic tier names are gone. needs_key_request(provider, stored_count) and KEY_REQUEST_OPENROUTER are the predicate and the line for the KEYS tab (FR-003; the tab itself is not here). MAX_FAILOVERS 24 -> 48 for two multi-model free tiers. session_store.t27: model_ok accepts "/" and ":" so an OpenRouter id is not dropped from the --model flag (quoted in single quotes, so plain bytes). pty_logic.t27: pane-level tests of the whole walk (z.ai keys and models, then OpenRouter's three ids, then the paid profile, then the give-up), of the skip with no OpenRouter key, and of the command line and environment of an OpenRouter pane. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…last; the KEYS-tab request line follows in #11289 (Closes #11285) Merge of master plus sealing, gates run on the merged tree with t27c from master: tests clean with vacuous passes 0, seal --verify MATCH, tri types ratchet CLEAN, dupe_scan failure set a subset of master's. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
gHashTag
enabled auto-merge (squash)
October 20, 2026 09:29
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #11285
T27 OS keys: an OpenRouter free tier after the z.ai flash tier, paid last; the KEYS-tab request line follows in #11289
Gates run on the merged tree (t27c from master): 3 spec(s) with tests clean and vacuous passes 0, seal --verify MATCH, tri types ratchet CLEAN, dupe_scan failure set a subset of master's (inherited red).
TEST specs/t27os/keys.t27 tests=[91] fail=[0] vacuous=[0]
TEST specs/t27os/pty_logic.t27 tests=[48] fail=[0] vacuous=[0]
TEST specs/t27os/session_store.t27 tests=[16] fail=[0] vacuous=[0]
SEAL specs/t27os/keys.t27 :: all hashes MATCH
SEAL specs/t27os/pty_logic.t27 :: all hashes MATCH
SEAL specs/t27os/session_store.t27 :: all hashes MATCH
TYPES RATCHET: CLEAN
DUPE failing=4 extra-vs-master=[]
🤖 Generated with Claude Code