TC #80 — Phase 8 enforce_budget honors token_budget (pillar 5) #80
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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 <= 100ANDestimate_tokens() <= 1000. Char/4 means each turn = 25 tokens; sys ~175; (1000-175)/25 = 33 turns fit. Result should be ~32-34 turns remaining.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.