Skip to main content

ADR-033: Optional governed OpenRouter audio transcription

Retired 2026-11-14 (#1179): operator decision. Seraph no longer has voice input; the operator dictates with their own tool. Removed: the push-to-talk control and its cockpit dock section, /api/audio/*, guardian/audio_ingress.py, guardian/audio_worker.py, guardian/audio_native_executor.py, the audio_ingress_cleanup scheduler job, the audio documentation settings endpoints and UI, the audio effective-grant entries and the audio chat transfer envelope. No audio_transcription_v1 run can be admitted, reserved or contacted (audio_route_retired), and a setup.v3 audio slot can never be enabled again. Kept, unused: the audio_ingress_jobs, audio_consent_grants and audio documentation tables and their rows (no destructive migration; dropping them is a separate operator decision), the stored setup.v3 schema, and the read-only fences that let generic accounting recovery and Work-board origin checks still read historical audio runs. Everything below is the historical decision record; none of it describes a current capability.

Status: Accepted architecture target under #1022, adopted on 2026-10-09 after independent review. Acceptance authorizes bounded implementation, not activation or shipped audio. Development Status owns capability availability. No provider probe or inference is authorized by this decision.

Operator decision (2026-10-16): #1022 ships against its Acceptance with the live route disabled and shown to operators as "Voice route unavailable". The transcript-correction path is verified with a scripted transcription at the owned transport. Enabling the live route remains tracked follow-up work and needs the source-attested endpoint, codec and pricing evidence this ADR requires. Numbered 033 because ADR-032 belongs to #1009.

ADR-035 status note (2026-11-13): Under ADR-035 the OpenRouter audio route is never activated and audio stays "Voice route unavailable". A later NEAR TEE audio slot (openai/whisper-large-v3) needs its own ticket amending ADR-035 with source-attested endpoint, codec and pricing evidence; this ADR's quarantine, transcript-correction, consent and Task-allowance invariants carry over.

Decision class: Narrowly superseding ADR-024's exactly-three-slot restriction in a new setup version. ADR-006 provider boundary, ADR-024's three existing route contracts/invariants, ADR-026 current Python ownership and original authority/accounting remain.

Source basis: The inspected preimplementation revision was ae8566d88bc77c6996754105d807755ce2e43d39. Source line references below record that dated design basis; they do not claim those owners already implement the target.

Context​

#1022 requires quarantined voice, separately enabled modality/egress/budget and transcript correction before creating an executable intent. Current AudioTransport is explicitly intercepted-only and default worker has no transport. Current fabric capability enum and route mapping have no audio; setup.v2 is closed to three slots. The zero-cost, processing-relative intercepted admission is not governed paid voice. A text-model alias or permanent product fixture would violate these contracts.

Current PTT selects the first locally supported audio/webm;codecs=opus, audio/webm, audio/mp4 through MediaRecorder.isTypeSupported (PttAudioControl.tsx:36–39). Browser recording support does not prove upstream support or actual emitted codec. Current backend recognizes WebM/Opus and MP4/AAC by container bytes and uses fixed /usr/bin/ffprobe/ffmpeg to normalize to mono 16 kHz signed-16 WAV. WAV also has an existing bounded local normalizer. Compressed format/provider compatibility, executable availability and enforcement of decoder isolation must be explicit readiness gates.

Decision​

Extend only existing model-fabric settings/repository/vault/proof/selector/admission/accounting and existing audio owner. Add optional disabled audio slot in seraph.openrouter.setup.v3; preserve exactly the three v2 slots when v2 is stored. No implicit extension of v2. No model/upstream default, provider fallback, local model, downloads, tunnel, dependency/service, parallel queue or ledger.

SlotProfileTask classAdapterCapability
audioopenrouter.audioaudio_transcriptionopenai_compatible_chatexactly text,audio_input

Existing text/vision/embedding mappings/capabilities/profiles remain unchanged. Unknown classes remain route_slot_unmapped. The existing chat adapter contacts only https://openrouter.ai/api/v1/chat/completions, with exact operator-selected qualified model and proof-bound single upstream endpoint, provider.only/exact endpoint selection, no fallbacks, deny collection/retention, require_parameters, ZDR, no redirects. No /audio/transcriptions or speech output in this decision. STT and chat-audio formats/pricing are not interchangeable.

Closed configuration and compatibility​

Every object below rejects extra fields; literal booleans and strict integers are mandatory; all floats must be finite. Identifier/ref fields use existing bounded validators (max 128 unless existing type is tighter), except the exact endpoint slug type below; digests are exactly 64 lowercase hexadecimal characters, revisions positive strict integers, times timezone-aware UTC. No arbitrary URL/path fields or caller-supplied Root authority.

OpenRouterSetupV3 retains all v2 top-level fields and validation, changes only schema_version to literal v3 and closes routes to {text,vision,embedding,audio}. Each may be null/disabled. Audio retains OpenRouterRoute fields {model_id,enabled,capabilities,allowed_upstreams,temperature,max_output_tokens,timeout_seconds,zero_data_retention,request_cost_bound_microusd}; its capabilities must be exactly text,audio_input, upstream selection exactly one proof-bound endpoint, temperature 0–2, output tokens 1–8192, timeout 1–60 seconds, ZDR true and request cost bound strict 1..deployment ceiling microusd. Existing shared deployment ceiling/queue/owner limits persist; max_inflight remains exactly 1 across all purposes, no new ceiling. Existing limits may be tighter; audio never relaxes them. Transcript output is text only.

ExactOpenRouterEndpointSlugV3 is ASCII, length 1..128, full-match ^[a-z0-9][a-z0-9_.:-]{0,63}(?:/[a-z0-9][a-z0-9_.:-]{0,63})?$, with total length checked separately. No whitespace, URL syntax, percent encoding, backslash, query, fragment, wildcard, trailing slash or additional slash; reject rather than normalize. It admits documented complete suffix forms such as deepinfra/turbo and google-vertex/us-east5. Syntax alone establishes no identity: the exact string must equal the selected metadata endpoint tag and source-attested single endpoint witness. Base tags are admitted only if the source witness establishes that tag denotes exactly the selected endpoint with no broader variants; otherwise audio_endpoint_not_exact. Unsupported official tag grammar remains blocked pending separate typed amendment. Apply this validator ONLY to setup.v3 audio's singleton allowed_upstreams; v3 text/vision/embedding retain the existing v2 validator, and every v1/v2 payload/storage validator remains unchanged. Send the unmodified full string as singleton provider.only. Returning a provider display name or base slug cannot satisfy post-contact exact endpoint evidence.

Add ModelCapability.AUDIO_INPUT="audio_input" to the closed enum; global enum membership is not legacy setup authorization. Freeze v1/v2 capability allowlists to their current accepted values and reject audio_input there. Keep the existing adapter set unchanged; audio uses openai_compatible_chat. Add only the v3 audio slot/profile projection and v3-aware task-class mapping audio_transcription -> audio; a v1/v2 setup on this runtime path returns audio_setup_v3_required, never its legacy/default text profile. Existing three mappings/round trips remain unchanged. Add canonical audio_transcription route spec: INTERACTIVE workload, exactly TEXT+AUDIO_INPUT, task class audio_transcription, external-untrusted provenance with instruction_authority=false, interactive priority. Required grants still include authenticated INGRESS plus MODEL_INFERENCE and both server-issued audio consent boundaries. Add purpose consent key audio only in v3; the existing vision/embedding/text consent and route behavior remain. The setup v3 serialized field set is exactly the existing OpenRouterSetup dataclass field set (configuration.py:89–121), with only the schema literal and closed route/purpose sets extended; no extra acknowledgment field is stored there. The settings-save request adds strict boolean audio_egress_acknowledged only for a reviewed v3 audio edit, then records purpose_consents.audio=final egress_revision using the current revoked-intermediate/active-final publication protocol.

New revision-bound audio_egress_acknowledged is required on newly enabled/changed audio slot, alongside existing cloud acknowledgment, with exact selected profile/purpose hash. Existing settings API owns this input and explicit save/CAS; GET does not probe. Store acknowledgment through existing consent ownership. Audio model grant on original AudioIngressJob and capture grant are separately necessary. Transcript confirmation and private channel delivery remain separate permissions.

Pure v1→existing v2 projection→v3 or pure v2→v3 copies old route objects, key reference, revision/consents, deployment budget and original receipts unchanged; sets audio=null. It neither seeds proofs nor enables a purpose. Persist only explicit save. Legacy PUT against legacy stored schema remains accepted as current contract; after stored v3, legacy schema PUT returns existing schema-upgrade conflict rather than silently dropping audio. Disabling/revoking audio immediately blocks new/queued contact, preserves contacted liabilities and old original profile binding. Settings shows configuration_required/blocked/ready plus effective profile, proof expiry, grant, decoder and budget reasons; no readiness inferred from text route or metadata alone.

Exact endpoint and format proof​

Extend existing ModelRouteProof ownership with closed AudioEndpointWitnessV1 referenced by exact profile proof: {schema_version,profile_hash,model_id,upstream_endpoint_tag,api_kind,input_format,container,codec,output_kind,max_duration_millis,max_input_bytes,max_output_tokens,metadata_digest,format_evidence_digest,pricing_witness_digest,observed_at,expires_at}. Literals: schema audio-endpoint-witness.v1, api_kind chat_completions, output_kind text; input_format one of wav,webm,m4a. Allowed container/codec/input_format triples are exactly wav/pcm_s16le/wav, webm/opus/webm, mp4/aac/m4a. max_duration_millis is strict 1..60000, max_input_bytes strict 1..10485760 (WAV ≤2097152), max_output_tokens strict 1..8192; selected actual payload/output bounds cannot exceed these witness bounds. upstream_endpoint_tag uses ExactOpenRouterEndpointSlugV3, model_id uses the existing qualified model validator, refs/digests use their named validators. Format evidence must identify this exact model/upstream API endpoint and codec/container, not model-wide modalities, a common-format list, STT documentation or guessed MIME. Expiry must be bounded by existing proof expiry and ≤24 hours; observed_at cannot be future. Changed profile/endpoint/format/pricing revokes readiness.

Endpoint metadata documentation currently shows model-level architecture and per-endpoint tag/pricing/parameters; it does not document an authoritative endpoint-specific audio codec/format field. Unresolved evidence contract: no selected endpoint or supported format/pricing was probed here, and no endpoint availability is asserted. Before enabling, existing operator capability setup must have exact advertised endpoint format/codec evidence from official selected upstream/API documentation tied to the metadata endpoint identity and current pricing witness. If metadata does not expose format, official endpoint documentation is an explicit additional evidence source, never a fabricated metadata field. Missing/ambiguous evidence blocks audio_format_unverified. This decision does not authorize a live readiness request.

Production audio readiness requires current source-attested endpoint/format/pricing evidence through the existing proof repository, with origin distinguished as official_documentation, never test_fixture. No readiness call/canary, quality campaign, model judge or external request is an implementation/acceptance prerequisite. This decision schedules no future inference proof. Ordinary later operator product use remains under current explicit grants/positive budgets. If the selected endpoint cannot provide source-attested exact endpoint identity, bounded billing and format evidence, audio remains audioNotReady; do not mint ModelRouteProof from scripted responses or configuration alone.

Recorder formats and bounded local conversion​

Prefer direct native compressed input only when exact endpoint witness proves the actual inspected container+codec and pricing unit: WebM/Opus maps input_format webm; MP4/AAC maps m4a. MIME or browser platform names alone never prove bytes or upstream compatibility. Current packet builders normalize WAV; extending native compressed payload requires typed format-aware validation and physical source readback, not changing WAV field labels. Validate source duration/stream count using the bounded existing inspector before any contact. If exact source format is unsupported, choose conversion only when the same endpoint proves WAV PCM16 support and the current locked converter is available/enforced. Otherwise block visibly. No silent model change or compressed→WAV conversion without current local capability/readiness.

Reuse current bounds: raw ≤10,485,760 bytes, duration >0 and ≤60,000 ms, WAV ≤2,097,152 bytes, retention ≤900 seconds; exactly one audio stream, channels 1–2 and rate 8000–192000 Hz before conversion; output exactly mono 16000 Hz PCM signed16. Local decoder runs existing absolute executable paths, one thread, CPU ≤5 seconds, address space ≤268,435,456 bytes, output file ≤2,097,152 bytes; probe/convert each wall ≤8 seconds, combined decode wall ≤16 seconds and ≤remaining original deadline. Proposed additional hardening required before activation: bounded pipe draining ≤65,536 bytes each (current communicate only truncates after collection), local file-only protocol whitelist on both commands, allowlisted container demuxers, process-group termination/reap, mandatory verified resource bounds instead of current best-effort ignored failures. Fixed paths alone do not prove no network.

Absent executables, unsupported resource enforcement/format, timeout or failed cleanup yields bounded decoder_unavailable/blocked, never installation or download. Browser WAV recording redesign is out of this decision; use existing browser recorder plus current converter or proven native support. Linux proof does not imply macOS executable locations/resource controls or Safari format support. A peer lacking the locked decoder can use only a separately proven native path with bounded local stream inspection; if that inspection is unavailable it is blocked. Report actual platform/recorder format and recovery reason. Do not ask users to tunnel, download a model or provide secrets.

Closed ingress, transcription and review boundaries​

AudioTranscriptionRequestV1 is an internal closed object with exactly {schema_version,audio_job_id,workflow_job_id,operation_id,owner_principal_id,original_root_id,conversation_session_id,capture_binding_digest,source_attachment_ref,source_digest,input_format,input_digest,profile_hash,endpoint_witness_ref,policy_digest,capture_grant_ref,model_grant_ref,original_deadline_at,max_calls,reserved_cost_microusd,max_output_bytes}. schema literal audio-transcription-request.v1; max_calls exactly 1; cost strict 1..1,000,000,000 and within the original selected audio bound; max_output_bytes strict 1..80000. No Goal/Task/plan fields: this private operation predates them. IDs use the bounded identifier grammar; source_attachment_ref is the immutable bounded AudioIngressJob.attachment_id (max 128, existing identifier grammar), resolved only through the linked row and its attachment_ref_json. Revalidate that existing mapping through conversation/identity.py::validate_attachment_refs against the original owner, capture hash, consent references, session and quarantine receipt; never accept a raw path or browser-chosen ref as authority. Digests/revisions/timestamps use the common grammar. original_root_id is server-resolved OperatorSession.id, equal to the capture operator_session_id. No browser-supplied Root or amount acts as authority. The internal writer physically reads current no-follow quarantine bytes and verifies digest/format immediately before contact. original_deadline_at is fixed when capture is accepted, positive and ≤ captured_at+900 seconds, capture grant expiry, cloud-upload grant expiry and original Root absolute expiry; processing, queue waits, decoder work and correction consume it. No timeout/grant/reconnect replacement extends it.

InputAudioPartV1 is exactly {type:"input_audio",input_audio:{data,format}}. data is canonical standard base64 of the physically verified bytes (no URL/data URI), length ≤4*ceil(10,485,760/3), with decoded bytes ≤source-format cap; format is wav|webm|m4a and must equal the witness. Extend the existing OpenRouterInputAudio dataclass/as_payload (audio_ingress.py:278–292) with this closed bounded contract and use it only in the existing nonstreaming governed chat serialization; text/vision payload handling stays unchanged. audio cannot invoke SDK generic request dictionaries to evade this variant.

Provider request: one bounded transcription-only system instruction and one input_audio part with raw standard base64/data and exact witnessed format, stream=false, max_tokens from audio route; no tools/functions, URLs, arbitrary provider options or audio-output modalities. Entire response body ≤262144 bytes. Require exactly one successful choice with plain nonempty text content ≤20000 characters and ≤80000 UTF-8 bytes, no NUL, no audio/refusal/tool/function fields, no streamed/audio chunks, no extra choices, no truncated/length finish. Require effective model/upstream identity bound to proof and sanitized provider generation ID plus validated usage/cost. Malformed output is never transcript_ready. Missing exact identity/billing evidence after contact leaves unresolved liability; never assume zero spend.

AudioTranscriptionResultV1 {schema_version,audio_job_id,operation_id,transcript,transcript_digest,effective_model_id,effective_upstream_endpoint_tag,provider_generation_id,actual_cost_microusd,contact_state}. schema literal audio-transcription-result.v1; success contact_state settled; strict nonnegative actual cost (zero only authoritative provider receipt), other string bounds above. Unknown/non-success contact uses existing durable error/contact receipt and no successful result object. Persist review transcript privately in existing AudioIngressJob, not logs/outbox/model proof. Current corrected transcript digest/confirmation fence remains authoritative. Only explicit exact corrected confirmation creates the canonical Message; a separate fresh Goal/native-budget Task action then creates one planless C1 intent; never execute model-suggested commands, create Task from unconfirmed text or mutate/replay previous actions.

Single original owner, native binding and separate later Task​

Source reality: AudioIngressJob currently owns capture/review metadata (db/models.py:220–275) and has no workflow link/revision/budget; AudioIngressWorker.process uses a process task map plus intercepted-only transport (audio_worker.py:738–790,2174–2251) and zero-cost broker request (2513–2525). WorkflowRunState and DurableJobSpec allow null Goal/revision (db/models.py:1853–1855, job_runtime.py:2098–2128,2763–2766); _validate_admission_authority only checks generic principal/session fields (1002–1055). These nullable fields are representability, not existing audio authority. Actual source caller types are InferenceRequestContext, TrustPrincipal, RemoteInferenceReceiptBinding; there is no ModelCallerContext or RootOwner class in this tree. Root is the current OperatorSession validated by auth/service.py/auth/ownership.py; its identity/principal/grants/expiry/revocation remain authoritative.

Adopt one canonical execution owner: a normal WorkflowRunState job_kind audio_transcription_v1 with current Python repository/lease machinery; AudioIngressJob is immutable capture identity plus mutable review/status projection. No separate lifecycle decision in audio row, separate scheduler, polling loop or ephemeral inference job. Existing process_audio/AudioIngressWorker.process invokes one bounded executor under its Workflow lease; local task maps may retain cancellation handles but cannot admit, dispatch or settle independently. Broker queue remains the one shared serial queue; Workflow queue state does not add a provider queue.

Add one closed optional typed amendment AudioNativeAdmissionBindingV1 to DurableJobRepository.admit_job(...,audio_admission=None) and corresponding audio boundary methods; not a generic browser mapping. Exactly {schema_version,audio_job_id,workflow_job_id,operation_id,owner_principal_id,original_root_id,conversation_session_id,capture_binding_digest,capture_grant_ref,model_grant_ref,profile_hash,endpoint_witness_ref,policy_digest,original_deadline_at,audio_budget_microusd,max_calls}. Literal audio-native-admission.v1; max_calls=1; audio budget positive within deployment ceiling; other fields as above. It is constructed server-side after current Root/token/INGRESS/MODEL_INFERENCE and issued-grant validation; no bearer token/secret persists. Workflow spec identity has owner_kind=user, same operator principal, job_kind=audio_transcription_v1, capability_version=audio-transcription-v1, idempotency_scope=audio-ingress, idempotency_key=original request_id; job_id=audio-transcription:+SHA256(audio_job_id) first 40 lowercase hex. spec has session_id=conversation_session_id, operator_session_id=original_root_id, Goal/Goal revision/plan/parent/source_task_id all null, resource_claims=(remote_inference,), max_attempts=1, original deadline, selected positive audio budget and its canonical digest. admission rejects missing proof for this kind or an audio binding supplied for another kind. This follows the existing selected-context typed admission pattern; it does not import that capability's Task authority. Extend protected typed authority projection/validation in job_runtime.py so generic _safe_structure cannot erase/truncate the immutable audio binding or admit a lookalike dict.

Add nullable AudioIngressJob.workflow_job_id (unique FK to WorkflowRunState.run_identity), nullable immutable execution_binding_digest, and strict nonnegative revision initialized 0 through existing db/engine.py additive migration. Workflow protected declared_authority records the exact AudioNativeAdmissionBindingV1; no new authority table. Audio admission occurs in the same canonical DB transaction: lock original Root and issued audio grants plus existing Audio row; validate full immutable capture identity, expiry, current policy and no prior contact; insert/replay Workflow native row; CAS-bind Audio row with old revision/workflow_job_id null. Immutable existing binding replay returns the same pair; any changed amount, Root, operation, grants, profile or deadline conflicts. Bind existing capture rows only on fresh explicit audio execution grant; historical intercepted attempts/proofs/costs never become production authority. Captures without v3/grant remain private and blocked; core startup is unaffected.

Single writer methods on DurableJobRepository own native admission, lease claim, contact fence, cancel/revoke, terminal settlement and review publication. Their transaction CAS checks both Workflow revision+lease fence and Audio revision+immutable link. Roll back both on either failed CAS. Audio helpers forward to this owner, including cancel/expiry/restart cleanup; they cannot directly _update_if_status a bound job's execution/contact/terminal state. Legacy unbound intercepted rows preserve historical read/cleanup behavior and never get provider transport. Inference account reserve/contact/settle/reconcile stays in the existing accounting owners/reservations and broker receipts; its native workflow transaction rechecks linked audio fence before publication. No reservation movement or second ledger is permitted.

Before contact claim the actual workflow lease, build the native InferenceRequestContext with exact session/job TrustPrincipal rebinding: authenticate_session(original_root_id,touch=False), preserve that authenticated principal/grants, then dataclasses.replace(principal,session_id=conversation_session_id,job_id=workflow_job_id,operator_session_id=original_root_id), following the current native planner replacement pattern (general_task_planner.py:146) and TrustPrincipal fields (trust_contract.py:97–108); validate current native binding before accepting this rebinding, fixed original deadline and positive pricing witness reserve (never caller_context's token proxy/capped estimate). Bind RemoteInferenceReceiptBinding(repository,lease_owner,fencing_token,workflow_job_id) around the existing governed broker/adapter operation. accounting.py:357–416 currently creates model_inference_ephemeral_v1 when binding is absent: audio must reject that path with audio_native_binding_required, validate current native job kind/binding and reserve through existing reserve_inference_cost. Request.job_id must equal the workflow ID. Add the v3 audio profile/runtime branch to current accounting policy selection; no generic v2-only fall-through. Missing durable binding blocks before any network.

Original owner selects and discloses one audio-only budget B_audio>0 and one model call before capture/execution grant. Server-issued cloud_upload grant gains nullable immutable audio_execution_binding_json for this closed binding; null legacy grants authorize no provider transcription. The grant reference plus original native job binds the selected money/one-call allowance; client request amounts are a selection request, never direct authority. Accounting rejects reserve R>B_audio or owner/deployment remaining limit; calls=1 is enforced durably through original operation id/contact checkpoint and max_attempts=1. Proven non-contact may release the existing reservation; post-contact cancel/timeout/malformed/unknown identity or cost cannot refund or retry. No new grant renews the same Audio job. Current native accounting may use route's configured bound as reservation: require that bound >=the positive conservative pricing R and ≤B_audio before contact; never silently lower R to a money cap.

Only after durable settled transcript review and explicit exact corrected confirmation does the current SessionManager persist one Message, with original message identity and confirmed digest fence. Then the operator performs a new explicit Task action: selects a current owned Goal/revision and its ordinary native C1 budget/call allowance, producing one planless C1 intent/Task under current authority. Existing Goal may be selected; no Goal is required at capture. If Goal creation is needed it occurs through its existing explicit owner surface before the Task action. No future Task budget is preallocated at capture. Audio B_audio/reservation/call/Unknown liability cannot be transferred, erased, refunded into or renewed by this fresh Task; both may charge the same existing deployment ceiling. Confirmation alone is no MODEL_INFERENCE or execution grant for that Task. Corrections stay local and free; repeat transcription is a separate new capture/action with fresh identity, never retry of an uncertain original call.

Recovery: before-contact crash can reclaim original Workflow under original deadline/current authority without making a new grant; after the durable contact checkpoint, missing settlement becomes Unknown, no dispatch replay. Settled transcript publication needs current original Root/grants/policy and both CAS fences. Revoked/expired original authority suppresses late transcript adoption while original accounting still settles or records Unknown. Workflow complete with transcript_ready projection is execution-terminal; local review/confirm/cancel cleanup is another paired CAS transition against the same immutable execution link, never another model attempt. Cleanup failure retains private quota/liability metadata and visible recovery; no success receipt asserts deletion before physical readback.

Closed AudioPricingWitnessV1 {schema_version,model_id,upstream_endpoint_tag,api_kind,pricing_digest,billing_units,unit_rates_microusd,maximum_billable_units,reserve_microusd,observed_at,expires_at}. schema_version literal audio-pricing-witness.v1, api_kind literal chat_completions; units are a finite subset of request,input_token,output_token,input_audio_second,input_audio_token; exact decimal nonnegative rates and bounded positive maxima for every chargeable unit. No unsupported unit may be ignored. Compute R=max(1,ceil(sum(rate_i*max_units_i))) in microusd using Decimal upward rounding, including request, all possible input/audio/output/reasoning charges. R≤audio route bound and B_audio/deployment remaining; otherwise block. Audio token/sec conversion or reasoning charge bound must be officially documented for the exact endpoint with finite witness; absent upper bound blocks audio_pricing_unbounded. A configured arbitrary money cap does not prove actual maximum charge. STT per-second price never prices chat input_audio. Settlement captures actual provider cost through existing capture_inference_usage/reservation owner; missing/inconsistent cost remains Unknown for explicit existing reconciliation, not free success. No live price is asserted by this decision.

Pricing vectors contain 1–5 distinct units and matching keys only; decimal rates serialize as canonical non-exponent strings ≤64 characters, finite 0..1,000,000,000 microusd/unit; token maxima strict 1..9,007,199,254,740,991, request maxima exactly 1, audio-second maximum positive Decimal ≤60. Aggregate selected money caps and per-operation reserves are strict 0..1,000,000,000 microusd and further limited by the existing deployment maximum, with audio positive. The original audio call limit is exactly 1; subsequent Task limits come only from its separate native C1 action. No mathematical upper bound is inferred from these validation caps: exact official charge-unit upper bound evidence is still required. If a charge cannot fit this closed witness, keep audio blocked and request a separately reviewed contract amendment rather than drop the charge.

Security, lifecycle and stop conditions​

Original Root/pairing/grant/profile/witness revocation blocks before source read, contact and final transcript adoption. Temp raw/normalized files remain in existing private quota-bound quarantine; no-follow/current workspace checks, digest readback and cleanup on success/cancel/revoke/expiry remain. Preserve transcript review only until confirmation/expiry policy; failure/cleanup unresolved visible. Default transport remains degraded unless all configured proof/consent/accounting/format/local processing gates pass. Current Python start/stop owner only; transfer later under ADR-026 bridge, no future imports.

If a current source conflicts with these fixed interfaces, report exact line rather than infer architecture. Stop before contact on unsupported platform/format/decoder resource enforcement, missing endpoint proof or pricing bound, unknown billing unit, missing positive original reservation, stale authority/grant/profile, expired original deadline, exhausted aggregate ceiling or unresolved prior contact. Keep Work authoritative and do not claim full #1022 acceptance from scripted transport alone.

Ordinary validation and non-applicable claims​

Isolated SQLite/workspace/ASGI/local HTTP provider fixture exercises actual private formats/normalization, route/schema migration, original accounting/broker serial admission, finite cost settlement and Unknown recovery. Scripted replacement is only final provider transport; kernel-deny external sockets, scrub credentials and assert zero external provider contacts/spend. Negative oversize/audio chunks/tool calls/malformed/cost/identity witnesses fail closed. PTT tests confirm chosen recorder MIME, unavailable permission/resource state and editable exact confirmation→same Message→one Task. Cached type/build only where changed. No eval, benchmark/quality harness, live inference/readiness requests, installs or provider probes during implementation. Native macOS/Safari/live upstream operation remain explicitly unexecuted until separate actual operator receipts; they are not silently claimed by Linux fixtures.

Official evidence (checked 2026-10-09)​

  • OpenRouter audio input: base64 input_audio/chat route, format varies by provider; common formats are not endpoint proof.
  • OpenRouter model endpoint metadata: endpoint tags/parameters/pricing, architecture at model level; documented example has no endpoint codec/format property. No authenticated metadata request ran.
  • OpenRouter provider routing: explicit selection/fallback and retention controls; proposed route rejects provider defaults.
  • OpenRouter STT: separate transcription endpoint and provider-dependent duration/token pricing. This is not chat-audio pricing evidence.
  • MediaRecorder specification editor's draft, dated 16 March 2026, is work in progress rather than a claimed final standard: runtime MIME capability check. MDN explanation: recording can still fail from resource limits. No browser/platform support matrix is inferred.
  • FFmpeg protocol documentation: protocol_whitelist restricts allowed input protocols; fixed command path is not protocol isolation. Existing implementation lacks this flag and must be hardened before activation.

Activation limits: Exact source-attested endpoint codec, identity and finite chat-audio pricing evidence remain required. No available endpoint has been established here. Common formats, model-level modalities, STT pricing, configuration and scripted fixtures cannot activate audio. Missing source-owned evidence keeps audio blocked; native macOS and Safari operation remain unverified.

Ordered current-owner implementation packet (accepted target)​

  1. Extend current configuration/contracts/settings/proof repositories with v3-only slot/capability/full-slug validator and source-attested closed evidence. Default all audio configuration/proofs to absent; preserve populated v1/v2 round trips/readbacks. Endpoint format, exact identity and charge bound unresolved means audioNotReady.
  2. Extend db/engine.py/models.py and job_runtime.py only with the nullable link/revision/grant binding and fixed typed audio-native admission/projection/CAS methods. Prove actual Goal-less native job admission plus exact Root/grants, immutable binding, no ephemeral job and no split-brain before transport work.
  3. Refactor the existing async governed chat HTTP transfer in llm_runtime.py (_governed_research_chat_completion:1638–1710) into one shared private bounded-transfer callable parameterized by a closed trusted envelope kind research|audio, retaining the research 64 KiB/16 KiB limits exactly and audio 256 KiB/80 KiB limits. Existing async research wrapper remains unchanged in contract; audio serializes only InputAudioPartV1 and strict transcript validation. Do not use synchronous unbounded .json() chat path (1585–1637), another provider client, SDK or detached thread. Existing selector/preflight/policy/accounting/shared broker owns both dispatches. Single endpoint, no fallback/redirect/retry/ambient proxy.
  4. Existing AudioIngressWorker's bounded process callable executes under canonical Workflow lease and receipt binding. Replace its intercepted zero-cost submission only for native-bound audio; retain isolated intercepted test seam as nonproduction. Harden decoder with file-only protocol_whitelist, explicit matching demuxer (wav|matroska,webm|mov as locked executable supports), bounded JSON/pipe/output drains, verified limits and process-group kill/reap; reject unsupported enforcement/platform/cleanup visibly. Do not download/install anything.
  5. Use current app.py lifespan (342+,422–430) to explicitly start/stop the existing worker's registration and task handles: stop admission first, cancel/wait within original deadlines, close sockets/process groups, route durable outcomes through Workflow writer, then cleanup readback. Existing scheduler audio_ingress_cleanup only triggers the canonical cleanup owner; no polling/execution loop or composition ownership state. Later #1007 integrates these current Python callables exactly once; no future bridge imports or migrations now.
  6. Update current audio API/PTT settings controls with explicit one-call audio budget disclosure and corrected transcript review; wire fresh selected Goal/native budget Task submission separately through current C1 owner. Legacy capture/status/cleanup reads remain; v1/v2 configuration yields visible audio_setup_v3_required, missing proof/decoder/budget yields blocked. New native execution fields are server-issued/readback-only; legacy process requests cannot infer a paid grant. Stale save/confirm/CAS returns 409; missing authority 403; unsupported local/profile capability remains a bounded blocked receipt. No raw/transcript secrets in logs/outbox.
  7. Provider-free ordinary tests use disposable DB/workspace and final owned HTTP transport substitution: populated v1/v2 migration/no-proof preservation; full suffix provider.only and mismatch denial; missing native binding; concurrent admission/cancel/revoke/lease/restart/contactUnknown/late publication; positive reserve/one-call/no transfer/fresh Task action; actual local converter protocols/resources/process closure; corrected Message and exactly one planless Task. Deny external inference sockets and ambient credentials, assert zero external contacts/spend. Test failures block implementation acceptance; none of these mechanics claim model quality/current upstream/native macOS/Safari availability.

Scoped documentary and pre-capture amendment (2026-10-09)​

The audio-only documentary owner is the existing ModelFabricRepository, with separate canonical attestation/source records and private exact source bytes. It never stores documentary claims as empirical ModelRouteProof, health, latency, canary or successful inference evidence. Existing v1/v2 and all text/vision/embedding proof and routing predicates remain unchanged.

An explicit current authenticated original Root may select one existing owner-private Vault key name for selected-v3-profile metadata only. Loopback is insufficient authentication. Management keys have account-level administrative scope; this feature restricts their use to exactly GET /api/v1/key and GET /api/v1/models/{author}/{slug}/endpoints on the fixed verified OpenRouter HTTPS authority. Missing or rotated owner metadata credentials block; inference/environment credentials cannot substitute. Bounded retained responses are private; explicit acquire/accept/reject actions use original owner/profile/config/Vault bindings, quota and revision CAS. Operator acceptance cannot supply missing codec, context/template, charge or exact ZDR facts. Successfully settled source-incomplete metadata remains NotReady and rejectable by its original authenticated owner using the exact canonical two-source physical inventory; bounded cleanup may remove that successful subset after staging expiry or original Root death. Failed, cancelled, in-flight, ambiguous or older unbound inventories are cleanup_unknown and remain charged; error codes, expiry and deleting state cannot prove acquisition closure. Private deletion releases quota only after exact object absence, directory fsync and the winning same-witness revision CAS; accepted documents are excluded.

For new governed audio work, original positive B_audio and exactly one call must be selected, disclosed and bound by the existing model-consent issuer BEFORE model/capture grants and microphone capture. The sanitized committed issuer readback supplies the original request ID, immutable selection digest, model grant reference, original cutoff, budget/calls and public profile/docs binding. No key name, secret binding, ciphertext or private source body appears in this readback. One linked capture grant and one original job consume this selection through the original grant writer CAS; old captures cannot acquire it retrospectively. Missing complete documentary authority issues no new preselection, linked grant, execution offer or native V2 authority.

Where exact current sources eventually establish every required fact, a separate immutable quote must precede an explicit acknowledgement of availability-unverified for ONE original ordinary call. Process budget equals original selection/offer budget, max_calls is1, expected audio revision equals the committed offer/current row revision, and model-grant revision/digest also match. Positive source-derived reserve must remain within original route bound and B_audio at issuance, admission and immediately before contact. Original ACK/grant/native V2/audio/workflow writes commit through the same paired CAS transaction; no new grant, queue or ledger is introduced. These source-complete positive operations remain blocked until actual exact source facts and their reviewed producer exist. Documentary admission readiness never claims empirical availability, health or measured latency. Unknown contact consumes the original one-call authority without retry, fallback or deadline renewal; no evaluation or probe is part of this amendment.