You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
X-1: registered freepi (OAuth device flow + API key) with aliases fp/free-pi, 29 upstream models, base URL https://api.freepi.ai/v1/chat/completions, and web catalog artwork.
X-2: ForwardFreepi executor with a per-token capacity-one FIFO queue, x-client-version header (env FREEPI_CLI_VERSION, 426 auto-lift with one retry), max_tokens clamp to 256 (env FREEPI_MIN_MAX_TOKENS, cap 4096), and bounded queue wait.
X-3: OAuth device-flow helper with consent recorded before token poll (version "4", 6s timeout, 899s device-code lifetime).
X-4: 24h conversation-to-account affinity pin.
X-5: /client-version fixture test (min, default_model, models) from a manual 2026-11-30 probe.
X-6: FreePI added to both free-tier catalogs (ad-supported credits, no invented monthly cap).
X-7: guard tests freepi_present and freepi_queue_limit_1 in dispatch_lane_test.go with mutation proof (removing the registry entry made the guard fail; restoring returned green).
Not implemented (reported, not claimed)
The 403 ads_required auto-handshake and the 200 pin-mismatch synthetic-403 path from the upstream executor are not ported. They need a live FreePI account to verify and are owner-gated.
The device-flow backend helper is not wired into the AddConnectionModal UI; no live account was available for an end-to-end validation.
Per the live 2026-11-30 /client-version probe, three models are flagged free (the brief listed four); the test asserts live evidence.
Verification
Each new behavior was TDD-led: failing test observed before implementation, green after. Queue serialization, clamp, device-flow ordering, affinity and models fixture all pass.
go vet ./... and go test ./... -count=1 green; bun test src scripts 939 pass; bun run ratchet:svelte green (0 new errors, 63 baseline).
No credential value appears in code, tests or fixtures.
Added
AUD-1: admin-only DELETE /api/audit with optional ?before=<RFC3339> for partial clear. Reuses pruneAuditLogsBefore; anonymous callers get 401/403.
AUD-2: two-step Clear button in AuditLogView.svelte with confirmation, list refresh, and id/zh translations. Clearing starts a fresh hash chain.
UI-1: hashed API keys no longer show disabled eye/copy buttons that read as broken controls; a permanent "stored hashed - rotate to copy" hint replaces them and Regenerate stays in the row menu.
Verified already present (no code change)
UI-2: web/src/lib/clipboard.test.ts already covers the textarea/execCommand fallback for non-secure contexts and the navigator.clipboard.writeText reject path; handleCopy reports success/failure via notifications.
UI-3: internal/handlers/dashboard/apikeys_reveal_test.go already guards revealable=true for legacy plaintext rows and revealable=false for hash-only rows, with the NOT_REVEALABLE tooltip on the hashed row.
Verification
AUD-1 TDD: TestHandleClearAuditLogs failed with undefined HandleClearAuditLogs, then passed after adding Repo methods, handler and route. TestDeleteAuditRequiresAdmin confirms auth gating.
go vet ./... and go test ./... -count=1 green; bun test src scripts 939 pass; bun run ratchet:svelte green (0 new errors, 63 baseline).
Added
O-5: bounded the semantic cache by bytes (64 MiB total, 512 KiB per entry) with env overrides (9ROUTERX_SEMANTIC_CACHE_MAX_BYTES, 9ROUTERX_SEMANTIC_CACHE_MAX_ENTRY_BYTES) and byte-aware LRU eviction.
O-6: added a singleflight helper that collapses concurrent identical prompt-cache misses into one upstream call (non-streaming only).
Verified already present (no code change)
O-7: per-provider circuit breaker with closed/degraded/open/half-open states, exponential backoff capped at 8x, 1-probe half-open, and controller integration before dispatch already exist in internal/resilience/ with controller_test.go, circuitbreaker_test.go and resilience_wiring_test.go. SQLite persistence of breaker state is NOT implemented; recorded as a gap rather than claimed.
O-8: cache_control is already handled in internal/translator/openai_filter.go (preserve quirk), internal/proxy/executor/transform.go (per-provider strip) and usage parsing in internal/handlers/chat/usage.go + internal/translator/response.go. The task's premise that cache_control is absent from internal/ is stale (150 hits in v1.5.67 baseline).
Verification
O-5 TDD: byte-budget tests failed with undefined NewLRUStoreWithBytes, then passed after implementation.
O-6 TDD: singleflight tests failed with undefined promptMissFlight, then passed after implementation; stabilized with a hold window and verified 10/10 consecutive runs.
go vet ./... and go test ./... -count=1 green; bun test src scripts green.
Existing breaker and cache_control test suites green; no existing test was weakened or removed.
Added
O-1: cached resolved DNS addresses in the safe transport (45s success TTL, 3s error TTL). The SSRF ControlContext guard still checks the resolved address on every dial; literals bypass the resolver.
O-2: optional 9ROUTERX_GOMEMLIMIT soft heap limit. Unset keeps the Go default; invalid values are logged and ignored. Documented in README and wiki/operations.md.
O-3: Vite manualChunks splits the Svelte runtime and Tailwind packages into a separate vendor chunk.
O-4: per-regime stall timeout resolver with a 120s free-tier budget; per-provider timeout and the global env override take precedence.
Verification
Each task ID was TDD-led: failing tests observed before implementation (TestAddrCache*, TestParseMemoryLimit, the manualChunks config test, TestResolveStallTimeoutForRegime), then green after the fix.
go vet ./... and go test ./... -count=1 green; bun test src scripts 939 pass; bun run build and bun run ratchet:svelte green (0 new svelte errors, 63 baseline).
Build output contains separate vendor-*.js and index-*.js chunks.