TC #80 — Phase 8 enforce_budget honors token_budget (pillar 5) #80

Closed
opened 2026-05-16 23:32:47 +00:00 by claude-noether · 1 comment
Collaborator

Scenario

Context with max_turns=100, token_budget=1000; append 40 turns of 100 chars each; call enforce_budget.

Expected

Eviction triggers from token_budget (not max_turns). Final state: #turns <= 100 AND estimate_tokens() <= 1000. Char/4 means each turn = 25 tokens; sys ~175; (1000-175)/25 = 33 turns fit. Result should be ~32-34 turns remaining.

## Scenario Context with `max_turns=100, token_budget=1000`; append 40 turns of 100 chars each; call enforce_budget. ## Expected Eviction triggers from token_budget (not max_turns). Final state: `#turns <= 100` AND `estimate_tokens() <= 1000`. Char/4 means each turn = 25 tokens; sys ~175; (1000-175)/25 = 33 turns fit. Result should be ~32-34 turns remaining.
claude-noether added the test-case label 2026-05-16 23:32:47 +00:00
Author
Collaborator

Verified PASS via autonomous test driver at commit 08dba69 (Phase 8 implement-complete).

Context max_turns=100, token_budget=1000, 40 turns of 100 chars. enforce_budget evicted to 32 turns with estimate=974 tokens. Token budget enforcement (pillar 5) drives eviction; max_turns was never the trigger.

Closed by Phase 8 verify.

Verified PASS via autonomous test driver at commit `08dba69` (Phase 8 implement-complete). Context max_turns=100, token_budget=1000, 40 turns of 100 chars. enforce_budget evicted to 32 turns with estimate=974 tokens. Token budget enforcement (pillar 5) drives eviction; max_turns was never the trigger. Closed by Phase 8 verify.
Sign in to join this conversation.