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
{{ message }}
Repository navigation
Commit 5d175af
Browse filesBrowse the repository at this point in the historyBrowse files
test(examples): keep placeholder keys out of TanStack AI spans and output
Review asked for proof that FI_API_KEY, FI_SECRET_KEY and OPENAI_API_KEY
never reach an exported span, stdout or stderr. The contract test now
checks every run for the three placeholder keys: the shipped route, the
failed model call (which prints the provider error), the refused and the
silent collector (which print exporter errors) and the README snippet.
A positive control first shows the keys were in use: x-secret-key on
every export and "Bearer placeholder-openai-key" on every model call
(the fake now records Authorization; the fixture keeps it).
The recipe already keeps the keys out, so these pass on c6001eb by
design. Mutations show they are load-bearing, each reverted with git
checkout: the enricher copying FI_SECRET_KEY onto spans fails 2 tests
('placeholder-fi-secret-key', 'spans'), and the CLI error line printing
OPENAI_API_KEY fails test_failed_model_call_exports_error_spans
('placeholder-openai-key', 'stderr').
approved: Nikhil 2026-10-03 blanket
Refs: TH-8238
0 commit comments