denoize publishes ninety-two versioned JSON contracts for local automation. Their schemas are shipped in every GitHub release and in the crates.io source package:
denoize-automation-v1.schema.jsondescribes a complete model, catalog, trust, cache-health, provenance, and recipe-ABI snapshot.denoize-cli-output-v1.schema.jsondescribes single-file results, streaming results, batch NDJSON events, live-device status NDJSON, and DAW plug-in inspection and measured-latency reports.denoize-diagnostic-v1.schema.jsondescribes bounded degradation measurements, nine independent findings, confidence, native quality dimensions, uncertainty, and a recommended repair pipeline without a source pathname.denoize-assessment-v1.schema.jsondescribes a single-input no-reference assessment or a presentation-checked before/after comparison that explicitly leaves semantic fidelity unassessed.denoize-daw-preset-v1.schema.jsondescribes a compact host- and platform-independent CLAP preset with every stable automatable parameter.denoize-daw-session-v1.schema.jsondescribes the exact preset, channel layout, plug-in identity, and fixed latency policy needed for deterministic session restoration.denoize-plugin-editor-evidence-v1.schema.jsonbinds the tagged CLAP custom-editor source, native embedding stack, per-descriptor rendering/automation/lifecycle observations, real-host report, and explicit platform limitations.denoize-plugin-host-matrix-v1.schema.jsonbinds the VST3 adapter revisions, validator and real-host runs, descriptor geometry, evidence digests, supported claims, and untested host capabilities.denoize-execution-plan-v1.schema.jsondescribes a deterministic, read-only finite-file or batch plan.denoize-execution-plan-v2.schema.jsondescribes a deterministic, read-only bounded-stream plan, including stdin/stdout and durable checkpoint decisions.denoize-execution-receipt-v1.schema.jsondescribes the Ed25519-signed result of a successfully published plan.denoize-execution-receipt-v2.schema.jsondescribes an Ed25519-signed bounded-stream result.denoize-evaluation-corpus-v1.schema.jsondescribes a licensed, checksum-pinned corpus, deterministic preparation, fixed denoize recipe, accepted thresholds, regression tolerances, and any required human listening protocol.denoize-evaluation-corpus-verification-v1.schema.jsondescribes successful offline provenance, containment, hash, decode, and clean/noisy geometry validation.denoize-evaluation-result-v1.schema.jsondescribes signed objective, perceptual, output-quality, performance, listening, threshold, and output-fingerprint evidence.denoize-evaluation-verification-v1.schema.jsondescribes successful authentication and optional manifest binding of an evaluation result.denoize-evaluation-comparison-v1.schema.jsondescribes an authenticated, environment-comparable baseline/candidate regression decision.denoize-listening-result-v1.schema.jsondescribes the bounded human outcome supplied when automation cannot replace a manifest-pinned listening protocol.denoize-hardware-v1.schema.jsondescribes a network-free snapshot of CPU features, compiled accelerator runtimes, runtime availability, and backend accelerator support.denoize-ipc-discovery-v1.schema.jsondescribes the owner-private loopback endpoint and every finite server limit.denoize-ipc-capability-v1.schema.jsondescribes an owner-private bearer capability with explicit roots, actions, priority ceiling, and optional expiry.denoize-ipc-capability-summary-v1.schema.jsondescribes the corresponding token-free capability inventory entry.denoize-ipc-request-v1.schema.jsondescribes every authenticated local IPC request and bounded job specification.denoize-ipc-response-v1.schema.jsondescribes success and structured failure responses for every IPC operation.denoize-job-dry-run-v1.schema.jsondescribes admitted memory, temporary-space, GPU, destination, overwrite, pause, and exact execution-plan decisions before queueing.denoize-job-status-v1.schema.jsondescribes one durable queued, running, controlled, recovering, or terminal job.denoize-job-history-v1.schema.jsondescribes bounded, path-free terminal history linked to plan and receipt digests.denoize-presentation-region-v1.schema.jsondescribes one exact, source-bound interval on the decoded presentation timeline.denoize-project-batch-v1.schema.jsondescribes a sorted, bounded set of deterministic project assembly results.denoize-project-bundle-import-v1.schema.jsondescribes one authenticated no-clobber project-tree import and any omitted source or model payloads.denoize-project-bundle-v1.schema.jsondescribes the authenticated contents, bindings, fingerprints, and explicit source/model payload budgets of an offline project bundle.denoize-project-execution-plan-v1.schema.jsondescribes the exact manifest, timeline, float-WAV destination, publication decision, geometry, and conservative assembly resources.denoize-project-execution-receipt-v1.schema.jsondescribes the project-domain Ed25519-signed identity of a successfully published timeline output.denoize-project-receipt-verification-v1.schema.jsondescribes successful independent signature, optional plan, and rooted output verification for a project receipt.denoize-project-render-v1.schema.jsondescribes completed deterministic assembly, exact output geometry, and the retained-PCM upper bound.denoize-project-v1.schema.jsondescribes a portable source-bound project, its linear sample-accurate timelines, and fingerprinted settings, presets, models, plans, and receipts.denoize-project-v2.schema.jsondescribes the closed durable graph: content-addressed sources/models, rational time, nested graphs, tracks/buses, arbitrary clips, transitions, immutable effect revisions, automation, and repair masks.denoize-project-v2-verification-v1.schema.jsondistinguishes structural graph validation from rooted current-file verification and reports exact manifest identity, graph counts/depth, and verified source/model counts.denoize-project-v2-render-v1.schema.jsondescribes stable-order deterministic rendering, bounded resources, verified sources, decoded PCM identity, and the optional published output fingerprint.denoize-project-v2-journal-entry-v1.schema.jsondescribes one hash-linked, typed, append-only edit command and the exact parent and result roots.denoize-project-v2-journal-inspection-v1.schema.jsondescribes the authenticated complete journal prefix and any recoverable truncated final-record bytes.denoize-project-v2-checkpoint-v1.schema.jsonbinds a compacted snapshot to the prior root and journal-prefix digest.denoize-project-v2-cache-request-v1.schema.jsondescribes the complete manifest/graph/source/effect/model/runtime/output cache identity.denoize-project-v2-cache-key-v1.schema.jsondescribes the domain-separated render-cache digest and its full request.denoize-project-v2-cache-record-v1.schema.jsonbinds one cached output byte fingerprint and decoded PCM digest to its request.denoize-project-v2-cache-verification-v1.schema.jsondescribes a verified hit or explicit fail-closed miss reason.denoize-project-v2-interchange-v1.schema.jsonreports mapped editorial structure and every explicit OTIO/OTIOZ/OTIOD or ADM/BW64 semantic loss.denoize-project-v2-external-inspection-v1.schema.jsondescribes bounded read-only recognition of an external editorial document.denoize-project-v2-provenance-v1.schema.jsondescribes a detached Ed25519-signed, C2PA-2.4-targeted edit assertion binding sources, owner-graph-qualified nested operations/root-clock ranges, models, output bytes, and decoded PCM.denoize-project-verification-v1.schema.jsondescribes read-only verification of every project source and referenced artifact.denoize-project-watch-cycle-v1.schema.jsondescribes one bounded settled-manifest scan, assembly, retry, quarantine, and cancellation report from project watch automation.denoize-receipt-public-key-v1.schema.jsondescribes a distributable receipt-verification key.denoize-receipt-secret-key-v1.schema.jsondescribes the owner-private receipt signing key stored by denoize.denoize-receipt-trust-policy-v1.schema.jsondescribes explicit trusted-key rotation and revocation state.denoize-receipt-verification-v1.schema.jsondescribes successful offline signature and output verification.denoize-receipt-verification-v2.schema.jsondescribes successful offline verification of a bounded-stream receipt, including an exact captured stdout stream.denoize-recommendation-v1.schema.jsondescribes bounded input measurements, local device/calibration evidence, ranked candidates, exclusions, and explicit recommended settings.denoize-release-evidence-v1.schema.jsondescribes the release SBOM, provenance, asset-digest, and source-tree evidence bundle verified before publication.denoize-runtime-model-package-v1.schema.jsondescribes the signed identity, license, frontend, tensor, accelerator, and resource manifest embedded in a custom-model.dmppackage.denoize-runtime-model-package-v2.schema.jsondescribes the signed named graph I/O, recurrent state, channel roles and geometry, latency/context, precision profiles, components, resource bounds, license, and source/checkpoint/training-data provenance of a v2.dmp.denoize-runtime-model-numerical-vectors-v1.schema.jsondescribes bounded named inputs and expected outputs executed on the selected runtime before a v2 model is accepted for audio processing.denoize-restoration-report-v1.schema.jsondescribes deterministic restoration geometry, PCM and mask digests, detected/changed counts, confidence, energy delta, warnings, and closed operation-specific evidence without filesystem paths.denoize-restoration-mask-v1.schema.jsondescribes a channel-ordered RLE mask whose runs distinguish untouched, context-padded, detected, and replaced frames and name every contributing operation. Library and schema-parity tests additionally require exact, gap-free coverage of every frame in every channel.denoize-universal-restoration-report-v1.schema.jsondescribes one fail-closed universal render decision, authenticated model and provenance identity, degradation evidence, signal-safety gates, and exact input/candidate/output PCM and mask digests without filesystem paths.denoize-universal-restoration-mask-v1.schema.jsondescribes exact, gap-freeuntouched/replacedfloat-PCM coverage for every channel and frame selected by universal restoration.denoize-universal-promotion-evidence-v1.schema.jsondescribes Ed25519-signed package/corpus/result identity, all required demographic, material, and degradation strata, nine fidelity/quality/output/ performance metrics per stratum, and a mechanically consistent listening and promotion decision.denoize-target-speaker-report-v1.schema.jsondescribes a fail-closed offline target-speaker decision, authenticated model and promotion identity, path-free enrollment geometry, calibrated presence, signal gates, and accepted input/output PCM bindings. Withheld candidates have no output or candidate digest.denoize-target-speaker-promotion-evidence-v1.schema.jsondescribes Ed25519-signed package/source/checkpoint/corpus/REAL-T/TS-SUPERB identity, 22 target-present/absent strata, content, extraction, identity, leakage, presence, output and quality limits, calibration, and listening evidence.denoize-causal-target-speaker-report-v1.schema.jsondescribes a path-free continuous causal render, both promotion identities, source/model/latency/flush geometry, per-block publication and mute counts, presence transitions, PCM bindings, and non-retained enrollment geometry.denoize-causal-target-speaker-promotion-evidence-v1.schema.jsondescribes Ed25519-signed offline/causal non-inferiority across all 22 strata, recurrent reset/flush, <=100 ms perturbation latency, callback-safety, and absent/present/uncertain/late/stale transition evidence.denoize-target-sound-query-v1.schema.jsondescribes a complete ordered finite class catalog, its revision, and one exact selected ID; labels are audit metadata and open text is not accepted.denoize-target-sound-report-v1.schema.jsondescribes a fail-closed offline preserve/remove decision, complete catalog and model identity, presence and signal/spatial gates, and exact target plus source-derived residual publication without paths.denoize-target-sound-promotion-evidence-v1.schema.jsonauthenticates the package/config/catalog, complete artifact and data-license manifests, per-class present/absent coverage, fourteen semantic/spatial strata, objective results, listening results, and accepted decision.denoize-causal-target-sound-report-v1.schema.jsondescribes the continuous target/residual render, dual evidence identities, exact latency/flush/source clocks, all block decisions, source-clock withheld frames, PCM bindings, and zero partial-removal fallbacks.denoize-causal-target-sound-promotion-evidence-v1.schema.jsonauthenticates exact offline/causal non-inferiority, recurrent reset/flush and snapshot results, <=100 ms named-device end-to-end latency, a paced callback audit, and reset/dropout/overload/resampler/late/stale transitions.denoize-causal-target-sound-snapshot-v1.schema.jsondescribes portable package/config/query/catalog/class-bound generation and frame-clock state with bounded fixed-shape float32 or int64 recurrent tensors.denoize-aec-report-v1.schema.jsondescribes an exact-duration, path-free mono AEC render: explicit microphone/ reference clock mapping, signed delay and confidence, filter/latency geometry, talk-state, adaptation/reset/clipping counts, valid-region ERLE, and domain-separated microphone/reference/output PCM identities.denoize-aec-promotion-evidence-v1.schema.jsondescribes Ed25519-signed implementation/configuration/corpus/result identity, all 17 delay/drift/path/talk/impairment/transition strata, hard fidelity and latency limits, real-device/listening coverage, and the zero-violation paced real-time audit.denoize-microphone-array-report-v1.schema.jsondescribes a path-free, exact-duration microphone-array render with canonical channel identities, authenticated geometry/configuration, active/inactive channels, STFT latency, complete solved/fallback bin decisions, clipping, and domain-separated input/output PCM identities.denoize-microphone-array-promotion-evidence-v1.schema.jsondescribes Ed25519-signed implementation/configuration/corpus/result identity, the exact 12-stratum geometry/noise/meeting/program-stereo matrix, fidelity, leakage, DOA, ASR, listening, and zero-violation paced evidence gates.denoize-meeting-speaker-report-v1.schema.jsonmaps lossless anonymous speaker channels and their presentation-sample activity/overlap ranges, explicit unknown regions, ambiguous permutation windows, and the exact reconstruction residual without paths or embeddings.denoize-meeting-speaker-promotion-evidence-v1.schema.jsonauthenticates the exact package/configuration, corpus and corpus-license manifests, twelve real-meeting/overlap/count/unknown strata, listening, and zero-retention privacy gates.denoize-meeting-track-labels-v1.schema.jsonoptionally binds an anonymous track to explicit consent and an accepted Stage 29 report while requiring that enrollment audio and speaker embeddings were not retained.denoize-music-restoration-report-v1.schema.jsondescribes a deterministic, path-free, candidate-only mono/stereo codec or bandwidth repair with exact source/output clocks, decision regions, full model/data/license BOM, correction identity, peak and stereo preservation measurements, and explicit no-stem/no-mastering declarations.denoize-music-restoration-promotion-evidence-v1.schema.jsonauthenticates the task, exact package/configuration and artifact BOM, training/evaluation license manifests, twelve codec/clean/phase/transient/ stereo/genre strata, full-song coverage, listening evidence, and zero redistribution of restricted artifacts.denoize-update-manifest-v1.schema.jsondescribes the signed channel, source commit, compatibility gate, rollback policy, and exact platform artifact/SBOM/provenance graph.denoize-update-manifest-verification-v1.schema.jsondescribes successful Minisign authentication of that manifest.denoize-update-bundle-v1.schema.jsondescribes complete verification of one candidate plus its offline last-known-good payload.denoize-update-download-v1.schema.jsondescribes a bounded HTTPS download that was authenticated before atomic no-clobber publication.denoize-update-check-v1.schema.jsondescribes a read-only compatibility, availability, and anti-rollback decision.denoize-update-dry-run-v1.schema.jsondescribes read-only staging size and destination actions.denoize-update-apply-v1.schema.jsondescribes the atomically selected candidate, retained last-known-good slot, health deadline, and platform activation handoff.denoize-update-status-v1.schema.jsondescribes bounded managed-slot state and redacted durable diagnostics.denoize-update-health-v1.schema.jsondescribes startup confirmation or offline last-known-good recovery.denoize-watch-state-v1.schema.jsondescribes durable settle observations, retry scheduling, processing state, and completed/quarantined watch-folder jobs.denoize-watch-cycle-v1.schema.jsondescribes one bounded CLI watch scan/attempt report emitted by--json.denoize-watch-quarantine-v1.schema.jsondescribes the exact failed input, attempt count, bounded diagnostic, and quarantine time recorded beside a verified quarantined copy.
Within a schema version, required field names, field types, digest encoding, and documented enum/string values are stable. A future release may add fields, so consumers must ignore unknown fields unless the contract explicitly says they are rejected. Removing a field, changing its type, or changing a documented value requires a new schema identifier and version. Execution plans, receipts, keys, policies, verification reports, presentation regions, project documents, runtime model package manifests, and IPC documents deliberately reject unknown fields because their exact typed representation participates in signing, authorization, admission, trust, or source-binding decisions. Diagnostic, assessment, deterministic and universal restoration reports and masks, universal promotion evidence, all four target-speaker contracts, all six target-sound contracts, both AEC contracts, both microphone-array contracts, and all three meeting-speaker contracts also reject unknown fields so a consumer cannot silently ignore a new safety dimension. Signed plug-in editor evidence and host matrices are closed for the same reason.
denoize-project-v1 contains only portable locators and authenticated
references; it never embeds source audio or model-package bytes in JSON.
Sources bind exact file fingerprints and decoded presentation geometry.
Selections reuse denoize-presentation-region-v1, name an explicit channel map,
and add bounded silence or one crossfade from the immediately preceding
unpadded selection. Timelines are ordered linear paths. Unknown graph records,
branches, arbitrary overlaps, resampling, changed fingerprints, mismatched
timebases, and out-of-bounds regions are rejected.
The manifest, plan, receipt, validation, render, batch, watch, and bundle report types all reject unknown properties and future versions. Manifest, plan, and receipt JSON inputs are bounded regular non-symlink files. Digests use separate domains for the manifest, timeline, plan, and signed receipt payload. A reviewed project plan must equal the independently reconstructed current plan before assembly; a receipt binds that plan digest, manifest/timeline identity, and the verified published output.
The binary .dpb transport is length-delimited and reports its authenticated
contents through denoize-project-bundle-v1. Settings, presets, source
licenses, model public keys, plans, receipts, the manifest, and read-only
verification evidence are carried by default. Source and model-package payloads
are included only when separately requested with a positive aggregate byte
limit. Import authenticates and parses every entry before a no-clobber staged
directory rename. See portable projects for command examples and
the complete containment and publication boundary.
denoize-daw-preset-v1 is the portable, host-independent representation of
the CLAP parameter set. It binds org.penguin425.denoize, a bounded display
name, bypass, amount, threshold, release, dry/wet mix, output gain, and stereo
link. denoize-daw-session-v1 adds mono/stereo port configuration and the
fixed-10ms-v1 policy. The CLAP state extension serializes exactly that
session document; there is no separate opaque host-only state format.
Both contracts are at most 64 KiB, reject unknown properties and future
versions, accept only finite bounded parameter values, and are read from
regular non-symlink files. CLI and Desktop writes validate the complete object
before an atomic no-clobber commit. --replace is the only CLI operation that
permits replacement.
denoize plugin info --json and denoize plugin latency --json use
denoize-cli-output-v1. The latency record includes the host-reported frame
count, the first non-zero frame measured with a bypassed f64 impulse, and a
required matches_reported: true result. Preset/session inspect and create
commands emit their native contracts; validate commands emit the corresponding
CLI validation event.
denoize-neural-daw-session-v1 is the separate neural state document. It
accepts only two closed identity tuples: released
org.penguin425.denoize.neural with gtcrn-dns3, or opt-in experimental
org.penguin425.denoize.neural-hq with dpdfnet2-48khz-hr, each with its exact
graph SHA-256. It also binds fixed-24x10ms-worker-v1, mono/stereo layout,
bypass, mix, output gain, and the explicit overload fallback. Mixing fields
from the two identities fails. Paths, model bytes, audio, worker metrics, and
enrollment material are not state. The same 64 KiB, closed-field,
finite-number, regular-file, atomic no-clobber rules apply. The existing
denoize plugin neural CLI remains GTCRN-specific and rejects HQ state.
denoize plugin neural info --json emits plugin-neural-info under
denoize-cli-output-v1: model install status, stable identity, reference-port
reservation, sample formats, exact scheduler geometry, queue bound, fallbacks,
and the callback prohibitions. plugin neural latency --json emits
plugin-neural-latency; sample_rate is a finite JSON number because CLAP's
ABI permits fractional rates, while frame counts remain integers. It contains
an independent delayed-dry f64 impulse measurement and requires
matches_reported: true. Neural session validation emits
plugin-neural-session-validation; inspect/create emit the native state
contract.
IPC v1 uses length-prefixed JSON over a loopback-only TCP endpoint. The owner-private discovery document publishes the endpoint and all request, response, timeout, connection, queue, history, concurrency, memory, temporary, and GPU limits. Bearer capability documents are secrets: clients should pass their file path to the CLI or desktop backend and must not copy the token into a browser context, log, command line, or history. Revocation blocks new requests; already admitted work remains governed by its durable queue state and explicit control operations.
denoize-job-dry-run-v1 is the admission record. It binds an exact v1 finite or
v2 stream execution plan digest to conservative resource totals, destination
actions, overwrite policy, and pause support. File jobs are non-resumable:
after an uncertain daemon/child failure they are not retried automatically.
Batch and durable stream jobs use verified checkpoints and signed receipts for
recovery. Terminal history retains bounded resource/destination summaries and
plan/receipt fingerprints, but deliberately removes input and output paths;
receipt artifacts that age out of the history bound are pruned as well.
The CLI denoize watch command and desktop Watch folders page atomically
replace one bounded denoize-watch-state-v1 document after discovery and
before/after every due attempt. Its generation is monotonic within the state
file. Portable relative locators identify observations and jobs; absolute
input, output, key, and control paths are deliberately not serialized. Each
content generation is identified by the relative locator plus its exact length
and SHA-256. The
processor_identity is an opaque SHA-256 binding of the version, processing
template, output format, signing-key identity, and explicit model artifacts;
it prevents a changed processor from silently accepting old completion state
without disclosing local paths.
The statuses ready, processing, retry, quarantinePending, completed,
quarantined, and superseded are stable v1 values. A processing status
loaded after restart is converted to a due retry before any processor runs.
Retry timestamps are Unix milliseconds. The watcher clamps a backward wall
clock to the last persisted cycle rather than making a due job run early.
A denoize-watch-quarantine-v1 explanation is written beside the verified
copy before the original input is removed. It contains the package version,
job and source locator, fingerprint, attempt count, bounded final diagnostic,
and Unix-millisecond quarantine time. It is operational evidence, not a signed
success receipt. Successful audio instead uses the existing signed execution
receipt contract and is re-authenticated during crash recovery. The state fixes
the quarantine time, package version, and final processing diagnostic before
copying, so a restart can accept the exact same explanation and finish source
removal without rewriting evidence.
# One compact JSON document. No network access is performed.
denoize models snapshot --json > denoize-automation.json
# The same contract, indented for inspection.
denoize models snapshot --prettyThe root discriminator is "schema": "denoize-automation-v1" with
"schema_version": 1. The document contains:
- the running denoize version and the recipe domain/version/output ABI;
- the active authenticated catalog, rollback floor, signing identity, validity, trust-root identity, and acquisition policy;
- the full active trust-root status and monotonic trusted-time floor;
- cache-wide health counts and path-level issues;
- every catalog model's expected artifact identity, redacted source URL,
offline-bundle license/provenance files, cache status, issues, and validated
installation provenance (or
nullwhen no valid provenance exists).
URLs are redacted using the same policy as human diagnostics: credentials, query strings, and fragments are never serialized. Timestamps are Unix seconds; SHA-256 values are 64 lowercase hexadecimal characters. Paths use the host platform's display representation.
Snapshot capture uses only authenticated local/embedded state and never opens a network connection. Normal catalog loading may persist its monotonic rollback or trusted-time floor. The document is assembled and serialized before any stdout or desktop output is published. If catalog/trust generations change during capture, the command fails with empty stdout instead of mixing identities. The desktop model library's JSONを書出 action writes the identical contract with an atomic replacement.
--json emits one compact result document for normal file processing and one
NDJSON document per batch or live event. Finite processing records carry:
{
"schema": "denoize-cli-output-v1",
"schema_version": 1,
"recipe": {
"domain": "denoize-batch-recipe-v3",
"version": 3,
"output_abi_version": 1,
"digest": "0123456789abcdef..."
}
}The 64-character digest identifies the exact resolved processing/delivery
recipe, including the denoize package version, backend and effective settings,
output codec settings, metadata policy, and any consumed model bytes. It does
not identify the input audio; batch item/input identities remain in the private
resume journal. Batch progress records carry the item recipe digest. A batch
summary can cover multiple recipes, and a stateful streaming result has no
finite-file recipe, so their digest is null while the recipe ABI identity
remains explicit.
JSON is printed only after a normal output has committed. Preflight, decode, processing, encoding, or publication failure therefore cannot emit a successful result document. Batch failure after execution can still produce complete progress and summary NDJSON records describing the failed partition.
New file and streaming results also contain the exact accelerator decision as an additive v1 field. The schema keeps it optional so archived v0.53 v1 documents remain valid:
{
"accelerator": {
"requested": "auto",
"effective": "cpu",
"fallback": "no-available-gpu"
}
}requested is one of cpu, auto, gpu, metal, or cuda; effective is
the concrete cpu, metal, or cuda runtime. fallback is null unless an
auto request deliberately selected CPU because deterministic mode was active,
the backend is CPU-only, or no GPU runtime passed its local availability probe.
The effective runtime participates in finite-file recipe identity.
Live processing emits one event: "status", mode: "live" record for each
connection-state transition and periodic running samples. These ongoing events
do not claim a finite recipe or committed output. Their state is
connecting, priming, running, recovering, or the forward-compatible
unknown fallback. Each record contains independent input/output rates and
channel counts, the current and target playback queue, component and estimated
total latency, the bounded clock correction in ppm, underrun/overflow/drop
counts, reconnect attempts, device generation, levels, and accelerator
selection. Zero rates/channels identify a connection transition before device
geometry is available.
The total latency field is an engineering estimate assembled from callback timing, capture chunking, resampler/backend algorithmic delay, measured processing, and queued playback. It is not an external loopback measurement or an exact device/driver guarantee. Live NDJSON is diagnostic telemetry and does not authenticate output audio.
denoize-presentation-region-v1 represents one half-open interval on decoded
presentation PCM. timescale is the exact decoded sample rate, so start_tick
and duration_ticks map one-to-one to presentation frames after codec delay,
granule, or edit-list handling. All integer fields remain within JavaScript's
exact 2^53 - 1 range.
The locator embeds the source file's byte length and SHA-256 fingerprint. A
consumer must validate that fingerprint, timescale, positive duration, checked
endpoint, and input bounds before returning samples. Replacement bytes, a
different presentation rate, an interval beyond the input, unknown fields, and
future schema versions fail without modifying the source or an existing output.
The locator contains neither an input path nor audio. Stage 14 desktop previews
use this contract for a single bounded interval; the public PresentationRegion
library type is intentionally reusable by the later portable timeline work.
Tauri command failures and asynchronous file, batch, preview, model, and live events use one internal camel-case envelope:
{
"code": "input.not-found",
"parameters": {},
"technicalDetail": "入力ファイルが存在しません"
}code is the application-owned localization key, parameters contains only
schema-defined substitutions, and technicalDetail preserves the bounded
backend explanation for troubleshooting. The Japanese and English WebView
catalogs cover the same exact code set and fall back to operation.failed for
an unknown future code. Backend prose is never used as the localization key.
This envelope is an internal desktop IPC contract, not an additional CLI JSON
automation schema.
denoize plan INPUT OUTPUT emits denoize-execution-plan-v1 for finite-file or
batch processing and additive denoize-execution-plan-v2 for --stream. It
does not create an output, batch directory, resume journal, lock, model-cache
update, or catalog state. Planning still opens and hashes the input, performs
bounded decode and metadata checks, resolves and prepares the effective
backend/model, validates the encoder, and admits the conservative resource
request. A stdin stream is consumed into a bounded anonymous spool because
planning must inspect the exact bytes that execution would consume. A durable
resume plan reads existing checkpoint sidecars without locking, truncating,
repairing, or deleting them. It reports process/checkpoint for resumable work
or skip/completed plus the exact existing-output fingerprint after a commit
whose cleanup was interrupted. Batch planning reports the equivalent exact
process/skip decision and reason for every item. A processing item carries a
null existing fingerprint because its output does not exist yet or will be
replaced. A plan is therefore an executable preflight, not a filename-only
estimate.
Plan paths are portable UTF-8 relative locators. A single-file plan records
only each artifact's filename; a batch plan records paths relative to its input
or output root. Absolute paths, drive prefixes, .., control characters, and
backslashes never enter the document. The input fingerprint, output locator,
and effective recipe derive each stable item ID. The complete plan item and
plan digest additionally bind the consumed-model fingerprint, source
geometry/codec, accelerator, publication mode, and admitted denoize-owned
resources. Every Stage 11 integer is at most 2^53 - 1, so a conforming
document survives an exact Rust/JavaScript/Rust round trip.
Finite execution can publish a signed receipt after its output succeeds:
denoize receipts keygen receipt-secret.json receipt-public.json
denoize plan noisy.wav clean.wav --pretty > plan.json
denoize noisy.wav clean.wav \
--receipt clean.receipt.json --receipt-key receipt-secret.json
denoize receipts verify clean.receipt.json \
--key receipt-public.json --plan plan.json --output-root . --prettyThe receipt authenticates the plan digest and the actual fingerprints of all
published outputs. File and batch receipts use v1; bounded stream receipts use
v2. Batch receipts are emitted only after every planned item has succeeded or
been exactly skipped and all current inputs, models, and outputs have been
rechecked. A resumed stream can likewise authenticate a completed output as a
skipped result without reprocessing. A failure or cancellation leaves no
successful receipt. Audio and receipt files are separate atomic publications
rather than one cross-file transaction: if a destination race or process exit
prevents the final receipt rename after audio commits, denoize preserves the
audio and durable checkpoint evidence so the next identical resume can verify
and publish the matching receipt without overwriting either destination.
For stdout, v2 signs the fingerprint of the complete verified encoded spool
only after the sink accepts and flushes every byte. Save stdout exactly, then
pass that file to receipts verify --output CAPTURED_AUDIO; rooted output
lookup is not used for the - locator. A pipe can still contain partial bytes
after a sink failure and provides neither atomic publication nor restartable
state.
The signer key is deliberately absent from the receipt. Offline verification
must receive either a separately distributed denoize-receipt-public-key-v1
file or a denoize-receipt-trust-policy-v1 file. Policy lookup checks explicit
revocations before trusted keys. Verification authenticates the signature
first, optionally requires exact correspondence to a supplied plan, resolves
each output below the selected root, and independently rehashes it before
emitting denoize-receipt-verification-v1. It does not open the provenance
input or model and does not claim an execution time, duration, host identity,
or user identity.
Secret key JSON is intentionally unencrypted. keygen creates it without
clobbering, as Unix mode 0600 owned by the effective user or with a protected
Windows DACL limited to the owner/OWNER RIGHTS, LocalSystem, and built-in
administrators. Files with extra hard links or broader/inherited access are
rejected where the platform exposes those controls. Keep the secret on a local
ACL-capable filesystem and protect backups; process memory, allocator copies,
and crash dumps remain outside best-effort zeroization. public-key safely
recovers a public companion if publication was interrupted. policy create
supports sorted trusted keys and explicit revoked key IDs for rotation.
All six Stage 11 v1 documents remain accepted without migration. The three additive Stage 12 v2 documents are used only for bounded streams, preserving the v1 signature and plan-digest domains for v0.59 file/batch artifacts. All nine execution documents reject unknown fields and unsupported future schema versions without modifying the source file. Their array, text, locator, and JSON-file sizes are bounded before trust decisions. The v1 stream-checkpoint and v3 batch-journal formats used by v0.58 and v0.59 likewise remain readable; unknown future records fail closed without repair or truncation.
# Compact, network-free host report.
denoize hardware --json > denoize-hardware.json
# The same denoize-hardware-v1 document, indented.
denoize hardware --prettyThe report always lists CPU first, followed by Metal and CUDA. compiled
states whether that runtime exists in this binary for the current target;
available additionally requires its local dependency probe to pass. A failed
probe is described in detail without opening a model or contacting a network.
An available GPU reports its device name and memory_bytes limit: CUDA uses
total global memory, while Metal uses the device's recommended maximum working
set. CUDA also reports its compute_capability; fields that do not apply are
null.
Backend entries distinguish adapters that can be prepared through a tract GPU
runtime from CPU-only implementations.
# Bounded input and local-device recommendation, with no network access.
denoize recommend noisy.wav --goal balanced --json > recommendation.json
# Add fixed on-device calibration evidence and indented output.
denoize recommend noisy.wav --calibrate --prettyThe root discriminator is "schema": "denoize-recommendation-v1" with
"schema_version": 1. The document records the content-detected format and
codec, total frame count when known, analyzed frame count, analysis mode,
SHA-256 of the canonical frame-major f64 samples, bounded signal metrics,
inferred coarse material class, and confidence. It never serializes the input
path. The sample SHA-256 is still a content fingerprint and should be redacted
before sharing when source-audio correlation would be sensitive.
The device section records CPU count, requested accelerator, and locally
available runtimes. When requested, calibration uses the fixed
classical-hifi-v1 half-second fixture, one warmup, and one to nine measured
runs after its fixed scratch allowance passes the supplied memory limit. Its
SHA-256, raw elapsed times, median, and baseline realtime headroom
make the evidence comparable without claiming deterministic wall-clock time.
Candidate headroom is a heuristic combination of that measured baseline and a
documented backend cost class, not a direct neural-backend benchmark.
Every compiled backend has a candidate row. eligible is false when its
managed model is not verified locally, the requested runtime is unavailable,
configuration is invalid, its conservative CPU/model reservation exceeds the
supplied limit, or its GPU reservation exceeds --max-gpu-memory or an
available runtime-reported device limit. estimated_memory_bytes and
estimated_gpu_memory_bytes keep the two address spaces explicit. Backends
that require a caller-supplied model path are reported but excluded because
paths are intentionally absent from this document. Stable reason codes explain
score contributions and exclusions. The first eligible row is repeated as
decision, including reproducible explicit CLI arguments and the effective
strength, adaptive-noise, and VAD values.
Recommendation uses one read-only hardware snapshot plus the embedded signed catalog and read-only artifact verification. It never updates the catalog, migrates model provenance, downloads a model, advances persisted trust state, or creates/tests a CUDA kernel cache. Actual processing revalidates runtime cache writability before model preparation.