Portable
One local contract can compile into plain prompts, compact prompts, JSON, or ASCII-safe runtime instructions.
Independent public draft · format 0.1
VOICE.md makes observable interaction behavior portable across models, harnesses, applications, audiences, and spoken surfaces.
Why another file?
System prompts bury voice rules inside provider-specific integration code. VoiceMD makes the contract discoverable, reviewable, compilable, and testable.
One local contract can compile into plain prompts, compact prompts, JSON, or ASCII-safe runtime instructions.
Specify openings, structure, lexicon, uncertainty, disagreement, formatting, and spoken behavior—not vague personality adjectives.
Deterministic lint rules and inline evaluation cases turn reviewed communication decisions into executable checks.
Progressive adoption
Teams can begin with Markdown and add structure only when they need deterministic selection, compilation, or validation.
A non-empty Markdown contract. No structured parser required.
Valid structured frontmatter plus concrete communication guidance.
Activation, authority, audience, surface, tone, speech, or hierarchy.
At least one effective deterministic rule or executable inline test.
Deterministic resolution
The reference algorithm keeps project-wide defaults and local specialization predictable without remote prompt fetching.
~/.config/voicemd/VOICE.mdoptional global source/repo/VOICE.mdproject contract/repo/service/VOICE.override.mdnearest source winsselected contractprofile + audience + surface + toneDiscovery
Inheritance
extendsMerge
Activation
Reference implementation
The CLI discovers hierarchy, validates conformance, compiles runtime instructions, lints output, runs inline tests, and installs managed adapters.
Package publication is a separate release gate from this static site.
$ pip install voicemd
$ voicemd init
$ voicemd validate --strict
$ voicemd compile --compact
$ voicemd test
# optional Azure Voice proof lab
$ pip install "voicemd[azure-voice]"
initdiscovervalidatecompilelint
testinstalluninstalldoctorserve
Compatibility layer
VoiceMD does not claim native vendor adoption of the filename. Managed adapters map the contract into official instruction and Agent Skills surfaces.
One scenario, three contracts
These exact L3 fixtures encode the expected contrast for the same incident facts. They are executable contract examples, not provider output or a model ranking.
Operational
incident_commanderThe service is degraded. No data loss is reported. The ninety-fifth percentile latency is 840 milliseconds. Keep the rollout paused while we verify the cause.
Status → evidence → immediate action
Support
calm_supportI know this disruption is frustrating. The service is degraded, with 840-millisecond latency, but no data loss is reported. Please keep the rollout paused while the team investigates the unconfirmed cause.
Acknowledge impact → verified state → manageable next step
Executive
executive_briefDecision: keep the rollout paused. The service is degraded, with 840-millisecond latency and no reported data loss. The cause is unconfirmed, so resuming now creates avoidable operational risk.
Decision → material evidence → unresolved risk