TC #84 — Phase 8 broker.token_count cache key is endpoint-only (R6) #84

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

Scenario

Two model configs with same endpoint but different model names; both call broker.token_count.

Expected

Only ONE /tokenize probe fires (the second call hits the cached endpoint entry). broker.tokenize_supported(cfg1) == broker.tokenize_supported(cfg2). Validates R6 simplification — B1 says model field is ignored on the wire, so endpoint-only keying is correct.

## Scenario Two model configs with same endpoint but different model names; both call broker.token_count. ## Expected Only ONE /tokenize probe fires (the second call hits the cached endpoint entry). `broker.tokenize_supported(cfg1) == broker.tokenize_supported(cfg2)`. Validates R6 simplification — B1 says model field is ignored on the wire, so endpoint-only keying is correct.
claude-noether added the test-case label 2026-05-16 23:32:50 +00:00
Author
Collaborator

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

Two model_cfgs with same endpoint, different model names. After ONE probe via cfg1, broker.tokenize_supported(cfg2) also returns true (cached entry shared). Endpoint-only cache key per R6; B1 confirms /tokenize ignores the model field on this broker.

Closed by Phase 8 verify.

Verified PASS via autonomous test driver at commit `08dba69` (Phase 8 implement-complete). Two model_cfgs with same endpoint, different model names. After ONE probe via cfg1, broker.tokenize_supported(cfg2) also returns true (cached entry shared). Endpoint-only cache key per R6; B1 confirms /tokenize ignores the model field on this broker. Closed by Phase 8 verify.
Sign in to join this conversation.