Guth
NewsDocs
Page actions
View as Markdown ↗
Explore MCP tools ↗

instrument implementation / implementation-contract

Sample/Bit-Rate File Size Estimator implementation

A source-bound implementation contract for Sample/Bit-Rate File Size Estimator; deployment and executable qualification remain separate.

Status: VERIFIED_CLEANLifecycle: implementation-contract

Binding contract

This record describes what an executable surface must bind and validate. It does not claim that a public calculator, package, or production route is deployed.

Record owner
Guth Instruments
Lifecycle
verified-clean
Evidence ID
t4-244
Effect
Computation or source lookup only

Input and validation requirements

The estimator can produce a non-finite Infinity result for finite but extremely large numeric inputs because plain arithmetic has no overflow rejection. The bitrate unit convention can also change the result from 960000 bytes to 983040 bytes if kbps is interpreted as binary rather than decimal.

Required corrections

No binding erratum is attached to this unique-name record. Implementers must still preserve the declared units, domain, and failure behavior.

Inspectable interface fixture

The sample below is evidence for interface and validation tests, not a production implementation.

{
  "inputs": {
    "format": "PCM",
    "duration_seconds": 60,
    "sample_rate_hz": 44100,
    "bit_depth_bits_per_sample": 16,
    "channels": 2
  },
  "expected_outputs": {
    "size_bytes": 10584000,
    "size_MB_decimal": 10.584,
    "size_MiB": 10.09368896484375
  },
  "working": "60 × 44100 = 2646000 sample frames; 2646000 × 16 = 42336000 bits per channel pair accounting through the formula; 42336000 × 2 channels = 84672000 bits; 84672000 ÷ 8 = 10584000 bytes; 10584000 ÷ 1000000 = 10.584 MB; 10584000 ÷ 1048576 = 10.09368896484375 MiB."
}

Other records

Sources and evidence

These pointers bind the page to evidence. They do not grant authority or collapse verification into deployment.

  • VERIFIED_LEDGER.json
  • evidence-tranche4/tranche4-results.json