{
  "schema": "nodus.memory-peak-result.v1",
  "scope": "Actual CPython traced allocations in three authored cases; not RSS, native/GPU memory, timing or capacity.",
  "python_version": "3.9.6",
  "python_implementation": "CPython",
  "source_sha256": "4497a0b535bc4bc1e9e5bc853f56eb9987bcd2171bc4e1c44bc0eaf80af77ccc",
  "fixture_sha256": "d546b1bf23c6e590f2b2e1d1323b899b1ede173238838a3f81d03ab35778f81f",
  "protocol_sha256": "bdd703637cabd8a6da9e32e2c9354bef777f277849ac3b30a6d51e94df7f0244",
  "units": "tracemalloc bytes",
  "case_count": 3,
  "readings_per_case": 4,
  "cases": [
    {
      "id": "no_payload",
      "baseline_payload_bytes": 1024,
      "requested_payload_bytes": 0,
      "observed_payload_length_while_held": 0,
      "payload_held_at_during": false,
      "payload_held_at_after": false,
      "baseline_held_through_after": true,
      "readings": {
        "pre_reset": {
          "current_bytes": 1081,
          "peak_bytes": 1081
        },
        "before": {
          "current_bytes": 1137,
          "peak_bytes": 1137
        },
        "during": {
          "current_bytes": 1193,
          "peak_bytes": 1193
        },
        "after": {
          "current_bytes": 1249,
          "peak_bytes": 1249
        }
      },
      "deltas": {
        "during_current_minus_before_current": 56,
        "after_current_minus_before_current": 112,
        "after_peak_minus_before_current": 112,
        "after_peak_minus_after_current": 0
      },
      "error": null,
      "owned_references_cleared": true,
      "tracing_stopped": true
    },
    {
      "id": "transient_payload",
      "baseline_payload_bytes": 1024,
      "requested_payload_bytes": 4194304,
      "observed_payload_length_while_held": 4194304,
      "payload_held_at_during": true,
      "payload_held_at_after": false,
      "baseline_held_through_after": true,
      "readings": {
        "pre_reset": {
          "current_bytes": 1081,
          "peak_bytes": 1081
        },
        "before": {
          "current_bytes": 1137,
          "peak_bytes": 1137
        },
        "during": {
          "current_bytes": 4195582,
          "peak_bytes": 4195582
        },
        "after": {
          "current_bytes": 1277,
          "peak_bytes": 4195638
        }
      },
      "deltas": {
        "during_current_minus_before_current": 4194445,
        "after_current_minus_before_current": 140,
        "after_peak_minus_before_current": 4194501,
        "after_peak_minus_after_current": 4194361
      },
      "error": null,
      "owned_references_cleared": true,
      "tracing_stopped": true
    },
    {
      "id": "held_payload",
      "baseline_payload_bytes": 1024,
      "requested_payload_bytes": 4194304,
      "observed_payload_length_while_held": 4194304,
      "payload_held_at_during": true,
      "payload_held_at_after": true,
      "baseline_held_through_after": true,
      "readings": {
        "pre_reset": {
          "current_bytes": 1081,
          "peak_bytes": 1081
        },
        "before": {
          "current_bytes": 1137,
          "peak_bytes": 1137
        },
        "during": {
          "current_bytes": 4195582,
          "peak_bytes": 4195582
        },
        "after": {
          "current_bytes": 4195638,
          "peak_bytes": 4195638
        }
      },
      "deltas": {
        "during_current_minus_before_current": 4194445,
        "after_current_minus_before_current": 4194501,
        "after_peak_minus_before_current": 4194501,
        "after_peak_minus_after_current": 0
      },
      "error": null,
      "owned_references_cleared": true,
      "tracing_stopped": true
    }
  ],
  "control_count": 10,
  "controls": [
    {
      "id": "complete_order_and_four_readings",
      "passed": true,
      "evaluation_error": null
    },
    {
      "id": "valid_current_peak_pairs",
      "passed": true,
      "evaluation_error": null
    },
    {
      "id": "peak_monotone_within_each_reset_interval",
      "passed": true,
      "evaluation_error": null
    },
    {
      "id": "before_covers_held_baseline",
      "passed": true,
      "evaluation_error": null
    },
    {
      "id": "transient_during_delta_covers_payload",
      "passed": true,
      "evaluation_error": null
    },
    {
      "id": "transient_current_drops_after_release",
      "passed": true,
      "evaluation_error": null
    },
    {
      "id": "transient_peak_preserves_during_current",
      "passed": true,
      "evaluation_error": null
    },
    {
      "id": "held_final_delta_covers_payload",
      "passed": true,
      "evaluation_error": null
    },
    {
      "id": "no_payload_instrumentation_below_declared_large_payload",
      "passed": true,
      "evaluation_error": null
    },
    {
      "id": "owned_reference_and_tracer_cleanup",
      "passed": true,
      "evaluation_error": null
    }
  ],
  "all_controls_passed": true,
  "tracing_inactive_at_exit": true,
  "interpretation_limits": [
    "Counters include tracked observation overhead; exact bytes can differ on rerun.",
    "reset_peak retains current allocations; baseline held through after.",
    "The no-payload case does not mean zero traced memory.",
    "Object release is not proof that physical pages were returned to the OS.",
    "No whole-process, native-extension, GPU, capacity or performance guarantee."
  ]
}
