Skip to content

Raise unknown-model context assumption to 500k - #7

Merged
qduc merged 2 commits into
mainfrom
codex/context-fallback-500k
Nov 11, 2026
Merged

qduc merged 2 commits into
mainfrom
codex/context-fallback-500k

Conversation

@qduc

@qduc qduc commented Nov 11, 2026 •

Copy link
Copy Markdown
Owner

Unknown models currently schedule automatic compaction using a 128,000-token assumption. Raise the shared DEFAULT_ASSUMED_CONTEXT_WINDOW to 500,000 so consumers and the core's conservative compaction path use the same value.

Known catalogue capacities and explicit host input ceilings remain authoritative. This remains a scheduling assumption, not evidence of provider capacity or a hard admission limit.

Validation: core package build/pack and typecheck passed. No-network before/after probes exercised the actual built compaction scheduler: an unknown model stays below the maintenance threshold at 399,999 measured tokens and reaches it at 400,000 with ratio 0.8. Independent checks also verified ratio 0.5, known 128K/256K capacities, explicit input/raw-trigger overrides, invalid settings, unsettled tools and admission beyond the unknown assumption.

Consumer integration: Term2 #248 temporarily patches the existing published prerelease using the exact owner-built constant/declaration, pending a future published version containing this source change. The package build artifact is verification-only; neither PR publishes or vendors a new core version.

No npm publication, version release, merge, or live-model call is included.

@qduc
qduc marked this pull request as ready for review November 11, 2026 09:39
@qduc
qduc merged commit c69dde5 into main Nov 11, 2026
1 check passed
qduc added a commit that referenced this pull request Nov 11, 2026
This reverts commit c69dde5.

500,000 tokens is Term2's choice for models it cannot size, so it does
not belong in the shared core. The core keeps its previous value while
the host-supplied assumption is designed; Term2 continues to apply its
own value in the meantime.


Claude-Session: https://claude.ai/code/session_01JqbJBBoCXgqyyFZaYn5Co4

Co-authored-by: Claude <noreply@anthropic.com>
qduc added a commit that referenced this pull request Nov 11, 2026
Carries the two changes merged since alpha.2: the 500,000-token
unknown-model context assumption (#7) and cache-creation usage with
whole-request price tiers (#8). Term2 currently applies both as a pnpm
patch over alpha.2; publishing this version lets it pin the release and
drop the patch.


Claude-Session: https://claude.ai/code/session_01JqbJBBoCXgqyyFZaYn5Co4

Co-authored-by: Claude <noreply@anthropic.com>
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