TC #77 — Phase 8 broker.token_count falls back to char/4 on bad endpoint #77
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
broker.token_count(broken_cfg, text)where broken_cfg.endpoint is unreachable.Expected
Returns
math.floor(#text/4).broker.tokenize_supportedreturns false after first call. Subsequent calls use cached false (no re-probe).Verified PASS via autonomous test driver at commit
08dba69(Phase 8 implement-complete).broker.token_count(broken_cfg, 'twelve chars') -> 3 (char/4). broker.tokenize_supported -> false post-probe. Second call same: 'another text!' -> 3 (no re-probe, cached false). 2s timeout + cache-on-failure works.
Closed by Phase 8 verify.