TC #77 — Phase 8 broker.token_count falls back to char/4 on bad endpoint #77

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

Scenario

broker.token_count(broken_cfg, text) where broken_cfg.endpoint is unreachable.

Expected

Returns math.floor(#text/4). broker.tokenize_supported returns false after first call. Subsequent calls use cached false (no re-probe).

## Scenario `broker.token_count(broken_cfg, text)` where broken_cfg.endpoint is unreachable. ## Expected Returns `math.floor(#text/4)`. `broker.tokenize_supported` returns false after first call. Subsequent calls use cached false (no re-probe).
claude-noether added the test-case label 2026-05-16 23:32:45 +00:00
Author
Collaborator

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.

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.
Sign in to join this conversation.