{
  "schema_version": 1,
  "status": "research-candidate",
  "observations": 84,
  "versions": [
    "1.4.3",
    "1.5.0"
  ],
  "population": "Six deliberately constructed files; not a statistical sample",
  "claims": [
    {
      "id": "seek-zero-disables-comparison",
      "statement": "A seek to zero can return the full sample sequence while the configured MD5 flag remains true and an incorrect stored sum is not rejected at finish.",
      "witness": {
        "case": "wrong-md5",
        "mode": "seek0",
        "expected": {
          "flag_after_process": 1,
          "process_ok": 1,
          "finish_ok": 1,
          "samples": 4096,
          "matches_full_input": true
        }
      },
      "source_ids": [
        "decoder-api",
        "1.4.3:src/libFLAC/stream_decoder.c"
      ]
    },
    {
      "id": "finish-is-separate",
      "statement": "A fresh enabled pass can report successful processing before finish reports the stored-MD5 mismatch.",
      "witness": {
        "case": "wrong-md5",
        "mode": "enabled",
        "expected": {
          "process_ok": 1,
          "finish_ok": 0,
          "error_count": 0,
          "samples": 4096
        }
      },
      "source_ids": [
        "decoder-api"
      ]
    },
    {
      "id": "reset-restores-check",
      "statement": "Reset after seek restores mismatch detection in the tested fresh full pass.",
      "witness": {
        "case": "wrong-md5",
        "mode": "seekreset",
        "expected": {
          "reset_ok": 1,
          "finish_ok": 0,
          "matches_full_input": true
        }
      },
      "source_ids": [
        "decoder-api"
      ]
    },
    {
      "id": "missing-reference-warning",
      "statement": "The tested default CLI test accepts an unset sample digest with a warning; strict warning policy rejects it.",
      "witness": {
        "case": "unset-md5",
        "mode": "cli",
        "expected": {
          "exit": 0
        }
      },
      "control": {
        "case": "unset-md5",
        "mode": "cli-strict",
        "expected": {
          "exit": 1
        }
      },
      "source_ids": [
        "cli-manual",
        "1.4.3:src/flac/decode.c"
      ]
    },
    {
      "id": "callbacks-are-evidence",
      "statement": "The observer reaches end-of-stream and finish success with default checking despite error callbacks and missing samples.",
      "witness": {
        "case": "frame-bitflip",
        "mode": "default",
        "expected": {
          "process_ok": 1,
          "finish_ok": 1,
          "error_count": 3,
          "samples": 3840,
          "matches_full_input": false
        }
      },
      "source_ids": [
        "1.4.3:include/FLAC/stream_decoder.h"
      ]
    },
    {
      "id": "metadata-scope",
      "statement": "Changing the speaker-mask comment leaves decoded sample bytes and compressed audio frames unchanged; strict CLI testing succeeds.",
      "witness": {
        "case": "back-speakers",
        "mode": "cli-strict",
        "expected": {
          "exit": 0
        }
      },
      "source_ids": [
        "rfc9639"
      ],
      "limits": "Metadata semantics checked; no player routing measured."
    },
    {
      "id": "rate-scope",
      "statement": "The same sample bytes encoded at twice the sample rate retain sample MD5 but have half the declared duration.",
      "witness": {
        "case": "double-rate",
        "mode": "enabled",
        "expected": {
          "matches_full_input": true,
          "finish_ok": 1,
          "samples": 4096
        }
      },
      "source_ids": [
        "rfc9639"
      ],
      "limits": "Arithmetic duration from sample count/rate, not wall-clock measurement."
    }
  ]
}
