Skip to content

feat(tts): Grok stability + security hygiene - #4

Merged
Bartok9 merged 1 commit into
mainfrom
feat/grok-tts-stability-hygiene
Jul 11, 2026
Merged

Bartok9 merged 1 commit into
mainfrom
feat/grok-tts-stability-hygiene

Conversation

@Bartok9

@Bartok9 Bartok9 commented Jul 11, 2026

Copy link
Copy Markdown
Owner

Summary

Same as hygiene pass for Grok TTS on Bartok fork.

  • SoT docs, SECURITY env-only, fictitious SMS examples, expanded tests (17)

Note

Low Risk
Docs, comments, docstring examples, and mocked unit tests only; no production TTS or auth logic changes in the diff.

Overview
Hygiene pass for Grok TTS: env-only API keys, clearer ops docs, and safer examples—no change to live TTS HTTP behavior in this diff.

SECURITY.md adds a Secrets & API keys (env-only) section: never commit real keys, use .env / placeholders, fail closed without hard-coded secrets, and redact values in health/runtime checks (with a pointer to Grok TTS docs).

docs/features/grok-tts.md documents tts_providers/grok_provider.py as the single source of truth vs the thin registry adapter, adds a short enable/quick-start flow (check-runtime.sh, mocked pytest), clarifies missing-key test runs, and documents optional voice_tech_radar.py usage.

scripts/check-runtime.sh comments state it always exits 0 so CI/boot can run without keys; unset XAI_API_KEY is informational only.

routes/transcripts.py replaces real-looking E.164s in the SMS parser docstring with fictitious example numbers and warns against committing real numbers in fixtures.

tests/test_grok_tts_provider.py adds mocked coverage for HTTP 500, empty 200 bodies, health_check without a key, and default voice_id eve when voice is omitted.

Reviewed by Cursor Bugbot for commit 660e464. Bugbot is set up for automated code reviews on this repo. Configure here.

… tests

- Document single source of truth (tts_providers vs registry adapter)
- SECURITY.md: never commit XAI_API_KEY; env-only + redacted check-runtime
- transcripts.py docstring: EXAMPLE fictitious E.164s only
- Expand Grok provider tests (HTTP 500, empty body, health missing key, default eve)
- check-runtime / radar manual ops notes
@Bartok9
Bartok9 merged commit 8c50794 into main Jul 11, 2026
3 checks passed
@Bartok9
Bartok9 deleted the feat/grok-tts-stability-hygiene branch July 11, 2026 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant