Speech-to-code — operations, security, rollout
Operations
Section titled “Operations”Observability
Section titled “Observability”- Emit correlation IDs from Oratio/MCP (
correlation_idJSON fields) and join withRUST_LOG=vox_mcp_speech=debug. - KPI schema:
contracts/speech-to-code/kpi-baseline.schema.json. - Benchmark manifest:
contracts/speech-to-code/benchmark-fixtures.manifest.txt. - Schema drift guards:
cargo test -p vox-integration-tests --test speech_schema_parity. - Optional canary gate: set
VOX_SPEECH_CANARY_KPIto a KPI JSON file and runcargo test -p vox-integration-tests --test speech_canary— thresholds default fromcanary_policy.example.json.
Security and privacy
Section titled “Security and privacy”- MCP
vox_validate_fileresolves relative paths against the bound repository root and rejects canonical paths outside it (including traversal via..and absolute paths in other trees). - Avoid persisting raw audio in shared logs; redact paths if needed. MCP
vox_oratio_listenlogs path basename only for protected path-like tokens when LLM polish rejects a correction. - Speech trace / training rows: follow repo retention policy; use
mens/schemas/speech_to_code_trace.schema.jsononly for opt-in export. - Labeling rubric (human QA):
contracts/speech-to-code/labeling_rubric.md.
Release gates
Section titled “Release gates”- Compile:
cargo check -p vox-mcp -p vox-oratio -p vox-lsp -p vox-audio-ingress(andcargo check -p vox-cli --features oratio-micwhen shipping mic capture). - Quality: MCP
validate_fileandvox_generate_codemust usevalidate_document_with_hir;vox_speech_to_codedelegates to the same codegen path. - Contract: MCP registry includes
vox_speech_to_code(contracts/mcp/tool-registry.canonical.yaml); integration testsspeech_schema_parity/ manifest guards stay green. - Regression: run
cargo test -p vox-oratio -p vox-lsp -p vox-corpusspeech-related tests.
Incremental rollout stages
Section titled “Incremental rollout stages”- Transcript-only: HTTP ingress + MCP transcribe; no automated codegen.
- Draft codegen:
vox_speech_to_codewithvalidate:falsefor exploratory drafts only. - Validated codegen (default path):
validate:true(default), bounded retries, HIR gate unchanged. - Broader tooling: expand intent/routing; keep destructive repo operations behind explicit human confirmation outside this tool.
Canary / rollback (MENS)
Section titled “Canary / rollback (MENS)”- Promote speech-tuned checkpoints only when compile-pass@k on the frozen benchmark set improves vs baseline.
- Roll back if p95 latency or error-rate SLO regresses (define per deployment).