Skip to content

Revert the 500k unknown-model assumption in core - #10

Merged
qduc merged 1 commit into
mainfrom
claude/revert-core-500k
Nov 11, 2026
Merged

qduc merged 1 commit into
mainfrom
claude/revert-core-500k

Conversation

@qduc

@qduc qduc commented Nov 11, 2026

Copy link
Copy Markdown
Owner

Reverts #7 (c69dde5). DEFAULT_ASSUMED_CONTEXT_WINDOW goes back to 128,000 and the README paragraph describing the 500,000-token assumption is removed.

500,000 tokens is Term2's choice for models it cannot size. Putting that number in the shared core makes every other host inherit one consumer's policy, so it does not belong here.

This does not change Term2's behavior today: it applies its own value through a pnpm patch over the published 0.2.0-alpha.2. Nothing was published with #7 in it; the release PR #9 is back in draft.

Follow-up, not in this PR: the core still falls back to its own constant when a model has no catalogue capacity (recovery-compaction.ts). For the host to own the number, that path should take the assumption from the host instead.

Verification

On Node 24 / pnpm 11.7.0 at this commit: pnpm build, pnpm typecheck, pnpm test (wire 13, repo 8) and node scripts/agent-package-smoke.mjs pass. pnpm smoke:checkout was not run locally; CI runs it.


Generated by Claude Code

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.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JqbJBBoCXgqyyFZaYn5Co4
@qduc
qduc merged commit cb39c03 into main Nov 11, 2026
1 check passed
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