Skip to content

fix(benches): correct release guard decision gating - #13

Merged
goblinmode2700 merged 3 commits into
mainfrom
release/0.3.0b4-regression-gate
Aug 14, 2026
Merged

fix(benches): correct release guard decision gating#13
goblinmode2700 merged 3 commits into
mainfrom
release/0.3.0b4-regression-gate

Conversation

@goblinmode2700

Copy link
Copy Markdown
Owner

Intent

Correct the 0.3.0b4 release guard's basic statistical decision error without changing codec behavior: Python collects raw timings and R owns inference. For a non-inferiority endpoint at the predeclared +3% regression margin, declare regression and block only when the simultaneous Bonferroni interval's lower bound exceeds +3%; declare non-inferiority only when its upper bound is below +3%; otherwise emit an explicit INCONCLUSIVE decision that remains published evidence but does not block release. Preserve improvement-family gating, fail closed on invalid evidence, update the public release/GitHub Actions path and executable tests, do not rerun the long benchmark while implementing or fish for a different result, keep version 0.3.0b4, and ship the correction safely.

What Changed

  • Classify non-inferiority intervals that cross the +3% margin as INCONCLUSIVE, preserving them as evidence without blocking release; established regressions and unmet improvement endpoints still fail the gate.
  • Validate R-owned endpoint roles, statuses, failure lists, inconclusive lists, and aggregate gate decisions before accepting release evidence.
  • Update release reporting, documentation, and executable regression coverage for the corrected decision behavior.

Risk Assessment

✅ Low: The change is well-bounded and consistently implements the required non-inferiority, improvement-gating, evidence-validation, and release-path behavior.

Testing

No prior baseline test output was supplied; targeted pytest checks, same-evidence base/target R reproductions, exact-boundary and tamper probes, manifest-bound publication, release-path inspection, and version/codec smoke checks all succeeded without running the long benchmark or full suite.

Evidence: Published INCONCLUSIVE release evidence
{
  "raw_sha256": "45e5493c639cf4969a23e354734046c56d0ecd163f6f2cdf6d78fdbb42e1c2a2",
  "analysis": {
    "analysis_schema_version": 1,
    "engine": "R stats",
    "r_version": "R version 4.4.2 (2024-10-31)",
    "raw_sha256": "45e5493c639cf4969a23e354734046c56d0ecd163f6f2cdf6d78fdbb42e1c2a2",
    "analyzer_sha256": "d96b6c44b86742f906fc94548a041cbab18c7e68c9835581a1593bd0379d31fb",
    "run_id": "synthetic-release-guard-inconclusive",
    "family": "release-guard",
    "alpha": 0.05,
    "adjustment": "simultaneous Bonferroni intervals across the declared family",
    "model": "paired log process means with balanced order term",
    "gate_decision": "INCONCLUSIVE",
    "failure_endpoints": [],
    "inconclusive_endpoints": [
      "untyped-nested-record-decode@46"
    ],
    "planning": {
      "pairs": 36,
      "interval_family_size": 22,
      "confirmatory_family_size": 22,
      "family_target_power": 0.8,
      "per_endpoint_power_target": 0.990909090909091,
      "planning_sd_log": 0.03,
      "bonferroni_noninferiority_endpoint_power": 0.9927123253129289,
      "bonferroni_improvement_endpoint_power": {},
      "bonferroni_family_power_lower_bound": 0.8396711568844348,
      "minimum_even_pairs": 36,
      "power_qualified": true,
      "family_power_method": "Bonferroni simultaneous-interval endpoint power with df = pairs - 2; union-bound lower probability that every confirmatory endpoint passes"
    },
    "endpoints": [
      {
        "id": "typed-decode@64",
        "label": "typed decode",
        "role": "non_inferiority",
        "estimate_log": -1.58911396337911e-11,
        "estimate_pct": -1.589113963366483e-09,
        "standard_error_log": 0.0007001399802814866,
        "degrees_freedom": 34,
        "order_effect_pct": 1.373286681822423e-09,
        "simultaneous_ci_lower_pct": -0.2308181325783612,
        "simultaneous_ci_upper_pct": 0.23135213207106,
        "p_improvement": 0.9999999999999998,
        "p_noninferiority": 2.913522459531735e-31,
        "p_regression": 1,
        "status": "non_inferior"
      },
      {
        "id": "typed-decode@4096",
        "label": "typed decode",
        "role": "non_inferiority",
        "estimate_log": -1.58911396337911e-11,
        "estimate_pct": -1.589113963366483e-09,
        "standard_error_log": 0.0007001399802814866,
        "degrees_freedom": 34,
        "order_effect_pct": 1.373286681822423e-09,
        "simultaneous_ci_lower_pct": -0.2308181325783612,
        "simultaneous_ci_upper_pct": 0.23135213207106,
        "p_improvement": 0.9999999999999998,
        "p_noninferiority": 2.913522459531735e-31,
        "p_regression": 1,
        "status": "non_inferior"
      },
      {
        "id": "typed-encode@64",
        "label": "typed encode",
        "role": "non_inferiority",
        "estimate_log": -1.58911396337911e-11,
        "estimate_pct": -1.589113963366483e-09,
        "standard_error_log": 0.0007001399802814866,
        "degrees_freedom": 34,
        "order_effect_pct": 1.373286681822423e-09,
        "simultaneous_ci_lower_pct": -0.2308181325783612,
        "simultaneous_ci_upper_pct": 0.23135213207106,
        "p_improvement": 0.9999999999999998,
        "p_noninferiority": 2.913522459531735e-31,
        "p_regression": 1,
        "status": "non_inferior"
      },
      {
        "id": "typed-encode@4096",
        "label": "typed encode",
        "role": "non_inferiority",
        "estimate_log": -1.58911396337911e-11,
        "estimate_pct": -1.589113963366483e-09,
        "standard_error_log": 0.0007001399802814866,
        "degrees_freedom": 34,
        "order_effect_pct": 1.373286681822423e-09,
        "simultaneous_ci_lower_pct": -0.2308181325783612,
        "simultaneous_ci_upper_pct": 0.23135213207106,
        "p_improvement": 0.9999999999999998,
        "p_noninferiority": 2.913522459531735e-31,
        "p_regression": 1,
        "status": "non_inferior"
      },
      {
        "id": "functional-decode@16",
        "label": "functional decode",
        "role": "non_inferiority",
        "estimate_log": -1.58911396337911e-11,
        "estimate_pct": -1.589113963366483e-09,
        "standard_error_log": 0.0007001399802814866,
        "degrees_freedom": 34,
        "order_effect_pct": 1.373286681822423e-09,
        "simultaneous_ci_lower_pct": -0.2308181325783612,
        "simultaneous_ci_upper_pct": 0.23135213207106,
        "p_improvement": 0.9999999999999998,
        "p_noninferiority": 2.913522459531735e-31,
        "p_regression": 1,
        "status": "non_inferior"
      },
      {
        "id": "functional-decode@4096",
        "label": "functional decode",
        "role": "non_inferiority",
        "estimate_log": -1.58911396337911e-11,
        "estimate_pct": -1.589113963366483e-09,
        "standard_error_log": 0.0007001399802814866,
        "degrees_freedom": 34,
        "order_effect_pct": 1.373286681822423e-09,
        "simultaneous_ci_lower_pct": -0.2308181325783612,
        "simultaneous_ci_upper_pct": 0.23135213207106,
        "p_improvement": 0.9999999999999998,
        "p_noninferiority": 2.913522459531735e-31,
        "p_regression": 1,
        "status": "non_inferior"
      },
      {
        "id": "functional-encode@16",
        "label": "functional encode",
        "role": "non_inferiority",
        "estimate_log": -1.58911396337911e-11,
        "estimate_pct": -1.589113963366483e-09,
        "standard_error_log": 0.0007001399802814866,
        "degrees_freedom": 34,
        "order_effect_pct": 1.373286681822423e-09,
        "simultaneous_ci_lower_pct": -0.2308181325783612,
        "simultaneous_ci_upper_pct": 0.23135213207106,
        "p_improvement": 0.9999999999999998,
        "p_noninferiority": 2.913522459531735e-31,
        "p_regression": 1,
        "status": "non_inferior"
      },
      {
        "id": "functional-encode@4096",
        "label": "functional encode",
        "role": "non_inferiority",
        "estimate_log": -1.58911396337911e-11,
        "estimate_pct": -1.589113963366483e-09,
        "standard_error_log": 0.0007001399802814866,
        "degrees_freedom": 34,
        "order_effect_pct": 1.373286681822423e-09,
        "simultaneous_ci_lower_pct": -0.2308181325783612,
        "simultaneous_ci_upper_pct": 0.23135213207106,
        "p_improvement": 0.9999999999999998,
        "p_noninferiority": 2.913522459531735e-31,
        "p_regression": 1,
        "status": "non_inferior"
      },
      {
        "id": "untyped-decode@64",
        "label": "untyped decode",
        "role": "non_inferiority",
        "estimate_log": -1.58911396337911e-11,
        "estimate_pct": -1.589113963366483e-09,
        "standard_error_log": 0.0007001399802814866,
        "degrees_freedom": 34,
        "order_effect_pct": 1.373286681822423e-09,
        "simultaneous_ci_lower_pct": -0.2308181325783612,
        "simultaneous_ci_upper_pct": 0.23135213207106,
        "p_improvement": 0.9999999999999998,
        "p_noninferiority": 2.913522459531735e-31,
        "p_regression": 1,
        "status": "non_inferior"
      },
      {
        "id": "untyped-decode@4096",
        "label": "untyped decode",
        "role": "non_inferiority",
        "estimate_log": -1.58911396337911e-11,
        "estimate_pct": -1.589113963366483e-09,
        "standard_error_log": 0.0007001399802814866,
        "degrees_freedom": 34,
        "order_effect_pct": 1.373286681822423e-09,
        "simultaneous_ci_lower_pct": -0.2308181325783612,
        "simultaneous_ci_upper_pct": 0.23135213207106,
        "p_improvement": 0.9999999999999998,
        "p_noninferiority": 2.913522459531735e-31,
        "p_regression": 1,
        "status": "non_inferior"
      },
      {
        "id": "untyped-encode@64",
        "label": "untyped encode",
        "role": "non_inferiority",
        "estimate_log": -1.58911396337911e-11,
        "estimate_pct": -1.589113963366483e-09,
        "standard_error_log": 0.0007001399802814866,
        "degrees_freedom": 34,
        "order_effect_pct": 1.373286681822423e-09,
        "simultaneous_ci_lower_pct": -0.2308181325783612,
        "simultaneous_ci_upper_pct": 0.23135213207106,
        "p_improvement": 0.9999999999999998,
        "p_noninferiority": 2.913522459531735e-31,
        "p_regression": 1,
        "status": "non_inferior"
      },
      {
        "id": "untyped-encode@4096",
        "label": "untyped encode",
        "role": "non_inferiority",
        "estimate_log": -1.58911396337911e-11,
        "estimate_pct": -1.589113963366483e-09,
        "standard_error_log": 0.0007001399802814866,
        "degrees_freedom": 34,
        "order_effect_pct": 1.373286681822423e-09,
        "simultaneous_ci_lower_pct": -0.2308181325783612,
        "simultaneous_ci_upper_pct": 0.23135213207106,
        "p_improvement": 0.9999999999999998,
        "p_noninferiority": 2.913522459531735e-31,
        "p_regression": 1,
        "status": "non_inferior"
      },
      {
        "id": "keyed-decode@512",
        "label": "keyed decode",
        "role": "non_inferiority",
        "estimate_log": -1.58911396337911e-11,
        "estimate_pct": -1.589113963366483e-09,
        "standard_error_log": 0.0007001399802814866,
        "degrees_freedom": 34,
        "order_effect_pct": 1.373286681822423e-09,
        "simultaneous_ci_lower_pct": -0.2308181325783612,
        "simultaneous_ci_upper_pct": 0.23135213207106,
        "p_improvement": 0.9999999999999998,
        "p_noninferiority": 2.913522459531735e-31,
        "p_regression": 1,
        "status": "non_inferior"
      },
      {
        "id": "entry-decode@512",
        "label": "entry decode",
        "role": "non_inferiority",
        "estimate_log": -1.58911396337911e-11,
        "estimate_pct": -1.589113963366483e-09,
        "standard_error_log": 0.0007001399802814866,
        "degrees_freedom": 34,
        "order_effect_pct": 1.373286681822423e-09,
        "simultaneous_ci_lower_pct": -0.2308181325783612,
        "simultaneous_ci_upper_pct": 0.23135213207106,
        "p_improvement": 0.9999999999999998,
        "p_noninferiority": 2.913522459531735e-31,
        "p_regression": 1,
        "status": "non_inferior"
      },
      {
        "id": "entry-encode@512",
        "label": "entry encode",
        "role": "non_inferiority",
        "estimate_log": -1.58911396337911e-11,
        "estimate_pct": -1.589113963366483e-09,
        "standard_error_log": 0.0007001399802814866,
        "degrees_freedom": 34,
        "order_effect_pct": 1.373286681822423e-09,
        "simultaneous_ci_lower_pct": -0.2308181325783612,
        "simultaneous_ci_upper_pct": 0.23135213207106,
        "p_improvement": 0.9999999999999998,
        "p_noninferiority": 2.913522459531735e-31,
        "p_regression": 1,
        "status": "non_inferior"
      },
      {
        "id": "wide-dict-encode@512",
        "label": "wide dict encode",
        "role": "non_inferiority",
        "estimate_log": -1.58911396337911e-11,
        "estimate_pct": -1.589113963366483e-09,
        "standard_error_log": 0.0007001399802814866,
        "degrees_freedom": 34,
        "order_effect_pct": 1.373286681822423e-09,
        "simultaneous_ci_lower_pct": -0.2308181325783612,
        "simultaneous_ci_upper_pct": 0.23135213207106,
        "p_improvement": 0.9999999999999998,
        "p_noninferiority": 2.913522459531735e-31,
        "p_regression": 1,
        "status": "non_inferior"
      },
      {
        "id": "control-nested-tag-decode@512",
        "label": "control nested-tag decode",
        "role": "non_inferiority",
        "estimate_log": -1.58911396337911e-11,
        "estimate_pct": -1.589113963366483e-09,
        "standard_error_log": 0.0007001399802814866,
        "degrees_freedom": 34,
        "order_effect_pct": 1.373286681822423e-09,
        "simultaneous_ci_lower_pct": -0.2308181325783612,
        "simultaneous_ci_upper_pct": 0.23135213207106,
        "p_improvement": 0.9999999999999998,
        "p_noninferiority": 2.913522459531735e-31,
        "p_regression": 1,
        "status": "non_inferior"
      },
      {
        "id": "control-untyped-decode@512",
        "label": "control untyped decode",
        "role": "non_inferiority",
        "estimate_log": -1.58911396337911e-11,
        "estimate_pct": -1.589113963366483e-09,
        "standard_error_log": 0.0007001399802814866,
        "degrees_freedom": 34,
        "order_effect_pct": 1.373286681822423e-09,
        "simultaneous_ci_lower_pct": -0.2308181325783612,
        "simultaneous_ci_upper_pct": 0.23135213207106,
        "p_improvement": 0.9999999999999998,
        "p_noninferiority": 2.913522459531735e-31,
        "p_regression": 1,
        "status": "non_inferior"
      },
      {
        "id": "untyped-nested-record-decode@46",
        "label": "untyped nested-record decode",
        "role": "non_inferiority",
        "estimate_log": 0.03052920355720312,
        "estimate_pct": 3.099999847657404,
        "standard_error_log": 0.00910182064222724,
        "degrees_freedom": 34,
        "order_effect_pct": 2.181356833133728e-08,
        "simultaneous_ci_lower_pct": 0.04882792949416159,
        "simultaneous_ci_upper_pct": 6.244222831653707,
        "p_improvement": 0.9999572409394548,
        "p_noninferiority": 0.5421399544618906,
        "p_regression": 0.4578600455381094,
        "status": "inconclusive"
      },
      {
        "id": "untyped-irregular-decode@4096",
        "label": "untyped irregular decode",
        "role": "non_inferiority",
        "estimate_log": -1.58911396337911e-11,
        "estimate_pct": -1.589113963366483e-09,
        "standard_error_log": 0.0007001399802814866,
        "degrees_freedom": 34,
        "order_effect_pct": 1.373286681822423e-09,
        "simultaneous_ci_lower_pct": -0.2308181325783612,
        "simultaneous_ci_upper_pct": 0.23135213207106,
        "p_improvement": 0.9999999999999998,
        "p_noninferiority": 2.913522459531735e-31,
        "p_regression": 1,
        "status": "non_inferior"
      },
      {
        "id": "untyped-distinct-32-key-decode@4096",
        "label": "untyped distinct-32-key decode",
        "role": "non_inferiority",
        "estimate_log": -1.58911396337911e-11,
        "estimate_pct": -1.589113963366483e-09,
        "standard_error_log": 0.0007001399802814866,
        "degrees_freedom": 34,
        "order_effect_pct": 1.373286681822423e-09,
        "simultaneous_ci_lower_pct": -0.2308181325783612,
        "simultaneous_ci_upper_pct": 0.23135213207106,
        "p_improvement": 0.9999999999999998,
        "p_noninferiority": 2.913522459531735e-31,
        "p_regression": 1,
        "status": "non_inferior"
      },
      {
        "id": "untyped-distinct-512-key-decode@4096",
        "label": "untyped distinct-512-key decode",
        "role": "non_inferiority",
        "estimate_log": -1.58911396337911e-11,
        "estimate_pct": -1.589113963366483e-09,
        "standard_error_log": 0.0007001399802814866,
        "degrees_freedom": 34,
        "order_effect_pct": 1.373286681822423e-09,
        "simultaneous_ci_lower_pct": -0.2308181325783612,
        "simultaneous_ci_upper_pct": 0.23135213207106,
        "p_improvement": 0.9999999999999998,
        "p_noninferiority": 2.913522459531735e-31,
        "p_regression": 1,
        "status": "non_inferior"
      }
    ]
  },
  "required_untyped_shape_metrics": [
    "untyped-distinct-32-key-decode@4096",
    "untyped-distinct-512-key-decode@4096",
    "untyped-irregular-decode@4096",
    "untyped-nested-record-decode@46"
  ]
}
Evidence: Manifest-conformant raw timing evidence
{
  "schema_version": 1,
  "kind": "paired_ab_raw",
  "run_id": "synthetic-release-guard-inconclusive",
  "source_revision": "bd936f346a3fb5b9119c5bb710903b02798f734e",
  "manifest_sha256": "72aecb402f63410f316ae22254a9c332d703b4bf089b9aa464d9a21fed3aca8d",
  "family": {
    "name": "release-guard",
    "description": "Risk-ranked release regression panel; the complete grid remains exploratory.",
    "pairs": 36,
    "regression_margin_pct": 3.0,
    "improvement_margin_pct": 1.0,
    "gating": true,
    "alpha": 0.05,
    "target_power": 0.8,
    "planning_sd_log": 0.03,
    "samples_per_process": 3,
    "target_milliseconds": 25.0
  },
  "endpoints": [
    {
      "id": "typed-decode@64",
      "module": "bench_typed",
      "args": [
        64
      ],
      "section": "decode_us",
      "metric": "typed_direct",
      "sampler_metric": "decode.typed_direct",
      "label": "typed decode",
      "role": "non_inferiority"
    },
    {
      "id": "typed-decode@4096",
      "module": "bench_typed",
      "args": [
        4096
      ],
      "section": "decode_us",
      "metric": "typed_direct",
      "sampler_metric": "decode.typed_direct",
      "label": "typed decode",
      "role": "non_inferiority"
    },
    {
      "id": "typed-encode@64",
      "module": "bench_typed",
      "args": [
        64
      ],
      "section": "encode_us",
      "metric": "typed_direct_whole",
      "sampler_metric": "encode.typed_direct",
      "label": "typed encode",
      "role": "non_inferiority"
    },
    {
      "id": "typed-encode@4096",
      "module": "bench_typed",
      "args": [
        4096
      ],
      "section": "encode_us",
      "metric": "typed_direct_whole",
      "sampler_metric": "encode.typed_direct",
      "label": "typed encode",
      "role": "non_inferiority"
    },
    {
      "id": "functional-decode@16",
      "module": "bench_typed",
      "args": [
        16
      ],
      "section": "decode_us",
      "metric": "functional",
      "sampler_metric": "decode.functional",
      "label": "functional decode",
      "role": "non_inferiority"
    },
    {
      "id": "functional-decode@4096",
      "module": "bench_typed",
      "args": [
        4096
      ],
      "section": "decode_us",
      "metric": "functional",
      "sampler_metric": "decode.functional",
      "label": "functional decode",
      "role": "non_inferiority"
    },
    {
      "id": "functional-encode@16",
      "module": "bench_typed",
      "args": [
        16
      ],
      "section": "encode_us",
      "metric": "functional",
      "sampler_metric": "encode.functional",
      "label": "functional encode",
      "role": "non_inferiority"
    },
    {
      "id": "functional-encode@4096",
      "module": "bench_typed",
      "args": [
        4096
      ],
      "section": "encode_us",
      "metric": "functional",
      "sampler_metric": "encode.functional",
      "label": "functional encode",
      "role": "non_inferiority"
    },
    {
      "id": "untyped-decode@64",
      "module": "bench_codecs",
      "args": [
        64
      ],
      "section": "decode_us",
      "metric": "msgspec_toon",
      "sampler_metric": "decode.msgspec_toon",
      "label": "untyped decode",
      "role": "non_inferiority"
    },
    {
      "id": "untyped-decode@4096",
      "module": "bench_codecs",
      "args": [
        4096
      ],
      "section": "decode_us",
      "metric": "msgspec_toon",
      "sampler_metric": "decode.msgspec_toon",
      "label": "untyped decode",
      "role": "non_inferiority"
    },
    {
      "id": "untyped-encode@64",
      "module": "bench_codecs",
      "args": [
        64
      ],
      "section": "encode_us",
      "metric": "msgspec_toon",
      "sampler_metric": "encode.msgspec_toon",
      "label": "untyped encode",
      "role": "non_inferiority"
    },
    {
      "id": "untyped-encode@4096",
      "module": "bench_codecs",
      "args": [
        4096
      ],
      "section": "encode_us",
      "metric": "msgspec_toon",
      "sampler_metric": "encode.msgspec_toon",
      "label": "untyped encode",
      "role": "non_inferiority"
    },
    {
      "id": "keyed-decode@512",
      "module": "bench_typed",
      "args": [
        512
      ],
      "section": "decode_us",
      "metric": "keyed_document",
      "sampler_metric": "decode.keyed_document",
      "label": "keyed decode",
      "role": "non_inferiority"
    },
    {
      "id": "entry-decode@512",
      "module": "bench_typed",
      "args": [
        512
      ],
      "section": "decode_us",
      "metric": "entry_document",
      "sampler_metric": "decode.entry_document",
      "label": "entry decode",
      "role": "non_inferiority"
    },
    {
      "id": "entry-encode@512",
      "module": "bench_typed",
      "args": [
        512
      ],
      "section": "encode_us",
      "metric": "entry_document",
      "sampler_metric": "encode.entry_document",
      "label": "entry encode",
      "role": "non_inferiority"
    },
    {
      "id": "wide-dict-encode@512",
      "module": "bench_typed",
      "args": [
        512
      ],
      "section": "encode_us",
      "metric": "wide_dict_document",
      "sampler_metric": "encode.wide_dict_document",
      "label": "wide dict encode",
      "role": "non_inferiority"
    },
    {
      "id": "control-nested-tag-decode@512",
      "module": "bench_control_patterns",
      "args": [
        512
      ],
      "section": "decode_us",
      "metric": "nested_concrete",
      "sampler_metric": "control.decode.nested_concrete",
      "label": "control nested-tag decode",
      "role": "non_inferiority"
    },
    {
      "id": "control-untyped-decode@512",
      "module": "bench_control_patterns",
      "args": [
        512
      ],
      "section": "decode_us",
      "metric": "untyped_nested",
      "sampler_metric": "control.decode.untyped_nested",
      "label": "control untyped decode",
      "role": "non_inferiority"
    },
    {
      "id": "untyped-nested-record-decode@46",
      "module": "bench_untyped_shapes",
      "args": [
        46
      ],
      "section": "decode_us",
      "metric": "nested_records",
      "sampler_metric": "decode.nested_records",
      "label": "untyped nested-record decode",
      "role": "non_inferiority"
    },
    {
      "id": "untyped-irregular-decode@4096",
      "module": "bench_untyped_shapes",
      "args": [
        4096
      ],
      "section": "decode_us",
      "metric": "irregular",
      "sampler_metric": "decode.irregular",
      "label": "untyped irregular decode",
      "role": "non_inferiority"
    },
    {
      "id": "untyped-distinct-32-key-decode@4096",
      "module": "bench_key_cardinality",
      "args": [
        4096
      ],
      "section": "decode_us",
      "metric": "distinct_keys_32",
      "sampler_metric": "decode.distinct_keys_32",
      "label": "untyped distinct-32-key decode",
      "role": "non_inferiority"
    },
    {
      "id": "untyped-distinct-512-key-decode@4096",
      "module": "bench_key_cardinality",
      "args": [
        4096
      ],
      "section": "decode_us",
      "metric": "distinct_keys_512",
      "sampler_metric": "decode.distinct_keys_512",
      "label": "untyped distinct-512-key decode",
      "role": "non_inferiority"
    }
  ],
  "builds": {
    "baseline": {
      "python": "synthetic",
      "guard_tag": "v0.3.0b3"
    },
    "current": {
      "python": "synthetic"
    }
  },
  "workers": [
    {
      "pair": 0,
      "build": "baseline",
      "period": 1,
      "python": "3.13.1",
      "package": {
        "path": "/synthetic-baseline/msgspec_toon/__init__.py",
        "sha256": "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc"
      },
      "extension": {
        "path": "/synthetic-baseline/msgspec_toon/_native.so",
        "sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
        "instrumented": false
      },
      "cell_order": [
        "typed-decode@64",
        "typed-decode@4096",
        "typed-encode@64",
        "typed-encode@4096",
        "functional-decode@16",
        "functional-decode@4096",
        "functional-encode@16",
   

... [1357090 bytes truncated] ...

 {
      "cell_id": "untyped-distinct-512-key-decode@4096",
      "pair": 30,
      "build": "baseline",
      "period": 2,
      "order_index": 21,
      "sample": 0,
      "loops": 100,
      "elapsed_ns": 114000000
    },
    {
      "cell_id": "untyped-distinct-512-key-decode@4096",
      "pair": 30,
      "build": "baseline",
      "period": 2,
      "order_index": 21,
      "sample": 1,
      "loops": 100,
      "elapsed_ns": 114000000
    },
    {
      "cell_id": "untyped-distinct-512-key-decode@4096",
      "pair": 30,
      "build": "baseline",
      "period": 2,
      "order_index": 21,
      "sample": 2,
      "loops": 100,
      "elapsed_ns": 114000000
    },
    {
      "cell_id": "untyped-distinct-512-key-decode@4096",
      "pair": 30,
      "build": "current",
      "period": 1,
      "order_index": 21,
      "sample": 0,
      "loops": 100,
      "elapsed_ns": 113431423
    },
    {
      "cell_id": "untyped-distinct-512-key-decode@4096",
      "pair": 30,
      "build": "current",
      "period": 1,
      "order_index": 21,
      "sample": 1,
      "loops": 100,
      "elapsed_ns": 113431423
    },
    {
      "cell_id": "untyped-distinct-512-key-decode@4096",
      "pair": 30,
      "build": "current",
      "period": 1,
      "order_index": 21,
      "sample": 2,
      "loops": 100,
      "elapsed_ns": 113431423
    },
    {
      "cell_id": "untyped-distinct-512-key-decode@4096",
      "pair": 31,
      "build": "baseline",
      "period": 2,
      "order_index": 21,
      "sample": 0,
      "loops": 100,
      "elapsed_ns": 121000000
    },
    {
      "cell_id": "untyped-distinct-512-key-decode@4096",
      "pair": 31,
      "build": "baseline",
      "period": 2,
      "order_index": 21,
      "sample": 1,
      "loops": 100,
      "elapsed_ns": 121000000
    },
    {
      "cell_id": "untyped-distinct-512-key-decode@4096",
      "pair": 31,
      "build": "baseline",
      "period": 2,
      "order_index": 21,
      "sample": 2,
      "loops": 100,
      "elapsed_ns": 121000000
    },
    {
      "cell_id": "untyped-distinct-512-key-decode@4096",
      "pair": 31,
      "build": "current",
      "period": 1,
      "order_index": 21,
      "sample": 0,
      "loops": 100,
      "elapsed_ns": 121000000
    },
    {
      "cell_id": "untyped-distinct-512-key-decode@4096",
      "pair": 31,
      "build": "current",
      "period": 1,
      "order_index": 21,
      "sample": 1,
      "loops": 100,
      "elapsed_ns": 121000000
    },
    {
      "cell_id": "untyped-distinct-512-key-decode@4096",
      "pair": 31,
      "build": "current",
      "period": 1,
      "order_index": 21,
      "sample": 2,
      "loops": 100,
      "elapsed_ns": 121000000
    },
    {
      "cell_id": "untyped-distinct-512-key-decode@4096",
      "pair": 32,
      "build": "baseline",
      "period": 2,
      "order_index": 21,
      "sample": 0,
      "loops": 100,
      "elapsed_ns": 100000000
    },
    {
      "cell_id": "untyped-distinct-512-key-decode@4096",
      "pair": 32,
      "build": "baseline",
      "period": 2,
      "order_index": 21,
      "sample": 1,
      "loops": 100,
      "elapsed_ns": 100000000
    },
    {
      "cell_id": "untyped-distinct-512-key-decode@4096",
      "pair": 32,
      "build": "baseline",
      "period": 2,
      "order_index": 21,
      "sample": 2,
      "loops": 100,
      "elapsed_ns": 100000000
    },
    {
      "cell_id": "untyped-distinct-512-key-decode@4096",
      "pair": 32,
      "build": "current",
      "period": 1,
      "order_index": 21,
      "sample": 0,
      "loops": 100,
      "elapsed_ns": 100501252
    },
    {
      "cell_id": "untyped-distinct-512-key-decode@4096",
      "pair": 32,
      "build": "current",
      "period": 1,
      "order_index": 21,
      "sample": 1,
      "loops": 100,
      "elapsed_ns": 100501252
    },
    {
      "cell_id": "untyped-distinct-512-key-decode@4096",
      "pair": 32,
      "build": "current",
      "period": 1,
      "order_index": 21,
      "sample": 2,
      "loops": 100,
      "elapsed_ns": 100501252
    },
    {
      "cell_id": "untyped-distinct-512-key-decode@4096",
      "pair": 33,
      "build": "baseline",
      "period": 2,
      "order_index": 21,
      "sample": 0,
      "loops": 100,
      "elapsed_ns": 107000000
    },
    {
      "cell_id": "untyped-distinct-512-key-decode@4096",
      "pair": 33,
      "build": "baseline",
      "period": 2,
      "order_index": 21,
      "sample": 1,
      "loops": 100,
      "elapsed_ns": 107000000
    },
    {
      "cell_id": "untyped-distinct-512-key-decode@4096",
      "pair": 33,
      "build": "baseline",
      "period": 2,
      "order_index": 21,
      "sample": 2,
      "loops": 100,
      "elapsed_ns": 107000000
    },
    {
      "cell_id": "untyped-distinct-512-key-decode@4096",
      "pair": 33,
      "build": "current",
      "period": 1,
      "order_index": 21,
      "sample": 0,
      "loops": 100,
      "elapsed_ns": 106466335
    },
    {
      "cell_id": "untyped-distinct-512-key-decode@4096",
      "pair": 33,
      "build": "current",
      "period": 1,
      "order_index": 21,
      "sample": 1,
      "loops": 100,
      "elapsed_ns": 106466335
    },
    {
      "cell_id": "untyped-distinct-512-key-decode@4096",
      "pair": 33,
      "build": "current",
      "period": 1,
      "order_index": 21,
      "sample": 2,
      "loops": 100,
      "elapsed_ns": 106466335
    },
    {
      "cell_id": "untyped-distinct-512-key-decode@4096",
      "pair": 34,
      "build": "baseline",
      "period": 2,
      "order_index": 21,
      "sample": 0,
      "loops": 100,
      "elapsed_ns": 114000000
    },
    {
      "cell_id": "untyped-distinct-512-key-decode@4096",
      "pair": 34,
      "build": "baseline",
      "period": 2,
      "order_index": 21,
      "sample": 1,
      "loops": 100,
      "elapsed_ns": 114000000
    },
    {
      "cell_id": "untyped-distinct-512-key-decode@4096",
      "pair": 34,
      "build": "baseline",
      "period": 2,
      "order_index": 21,
      "sample": 2,
      "loops": 100,
      "elapsed_ns": 114000000
    },
    {
      "cell_id": "untyped-distinct-512-key-decode@4096",
      "pair": 34,
      "build": "current",
      "period": 1,
      "order_index": 21,
      "sample": 0,
      "loops": 100,
      "elapsed_ns": 114000000
    },
    {
      "cell_id": "untyped-distinct-512-key-decode@4096",
      "pair": 34,
      "build": "current",
      "period": 1,
      "order_index": 21,
      "sample": 1,
      "loops": 100,
      "elapsed_ns": 114000000
    },
    {
      "cell_id": "untyped-distinct-512-key-decode@4096",
      "pair": 34,
      "build": "current",
      "period": 1,
      "order_index": 21,
      "sample": 2,
      "loops": 100,
      "elapsed_ns": 114000000
    },
    {
      "cell_id": "untyped-distinct-512-key-decode@4096",
      "pair": 35,
      "build": "baseline",
      "period": 2,
      "order_index": 21,
      "sample": 0,
      "loops": 100,
      "elapsed_ns": 121000000
    },
    {
      "cell_id": "untyped-distinct-512-key-decode@4096",
      "pair": 35,
      "build": "baseline",
      "period": 2,
      "order_index": 21,
      "sample": 1,
      "loops": 100,
      "elapsed_ns": 121000000
    },
    {
      "cell_id": "untyped-distinct-512-key-decode@4096",
      "pair": 35,
      "build": "baseline",
      "period": 2,
      "order_index": 21,
      "sample": 2,
      "loops": 100,
      "elapsed_ns": 121000000
    },
    {
      "cell_id": "untyped-distinct-512-key-decode@4096",
      "pair": 35,
      "build": "current",
      "period": 1,
      "order_index": 21,
      "sample": 0,
      "loops": 100,
      "elapsed_ns": 121606515
    },
    {
      "cell_id": "untyped-distinct-512-key-decode@4096",
      "pair": 35,
      "build": "current",
      "period": 1,
      "order_index": 21,
      "sample": 1,
      "loops": 100,
      "elapsed_ns": 121606515
    },
    {
      "cell_id": "untyped-distinct-512-key-decode@4096",
      "pair": 35,
      "build": "current",
      "period": 1,
      "order_index": 21,
      "sample": 2,
      "loops": 100,
      "elapsed_ns": 121606515
    }
  ]
}
- Evidence: Corrected target R result (local file: /var/folders/pt/19wwr80d5bs38zmww5rm2vsc0000gn/T/no-mistakes-evidence/01KZZMYEE88J6HQ6QGS8TV71HT/release-guard-inconclusive-result.json) - Evidence: Base incorrect FAIL result (local file: /var/folders/pt/19wwr80d5bs38zmww5rm2vsc0000gn/T/no-mistakes-evidence/01KZZMYEE88J6HQ6QGS8TV71HT/release-guard-inconclusive-base-result.json) - Evidence: Exact +3% boundary result (local file: /var/folders/pt/19wwr80d5bs38zmww5rm2vsc0000gn/T/no-mistakes-evidence/01KZZMYEE88J6HQ6QGS8TV71HT/release-guard-exact-margin-result.json)
Evidence: End-to-end release decision transcript
Base: FAIL, with the uncertain endpoint incorrectly blocking.
Target: INCONCLUSIVE, failure_endpoints=[], inconclusive_endpoints=[untyped-nested-record-decode@46].
Simultaneous interval: [+0.049%, +6.244%].
Release-report validation accepted and persisted the result.
Evidence: Public release-path proof
GitHub evidence command: make release-performance
Uploaded evidence: benches/ab-guard-raw.json and benches/ab-guard-r.json
Publication depends on the evidence job: true
Evidence: Version and codec smoke evidence
Package version: 0.3.0b4
Cargo version: 0.3.0-beta.4
Typed encode/decode roundtrip equal: true

Pipeline

Updates from git push no-mistakes

✅ **intent** - passed

✅ No issues found.

✅ **Rebase** - passed

✅ No issues found.

🔧 **Review** - 1 issue found → auto-fixed ✅
  • 🚨 benches/_panel.py:262 - The acceptance criterion requires “fail closed on invalid evidence,” but this hunk accepts INCONCLUSIVE solely by enum membership. A result whose endpoint is regressed (or whose failure_endpoints is nonempty) can claim INCONCLUSIVE, pass this validator and release_guard, and avoid blocking publication. At this shared boundary, reject disagreement between the R-emitted endpoint roles/statuses, failure_endpoints, inconclusive_endpoints, and gate_decision without recomputing inference in Python.

🔧 Fix: Validate release gate evidence consistency
✅ Re-checked - no issues remain.

✅ **Test** - passed

✅ No issues found.

  • git diff --name-status 33daa52a0aa5de3b5d442e2aad470b2a150951b0..bd936f346a3fb5b9119c5bb710903b02798f734e
  • .venv/bin/python -m pytest -q tests/test_performance_evidence.py::test_r_owns_directional_decisions_order_term_and_insufficient_precision tests/test_performance_evidence.py::test_r_does_not_treat_an_inconclusive_noninferiority_interval_as_a_regression tests/test_performance_evidence.py::test_ab_cli_blocks_only_an_r_fail_decision tests/test_performance_evidence.py::test_one_simultaneous_family_spans_mixed_confirmatory_roles tests/test_performance_evidence.py::test_r_result_digest_and_engine_fail_closed tests/test_performance_evidence.py::test_r_result_rejects_disagreement_between_endpoint_and_gate_decisions tests/test_performance_evidence.py::test_missing_r_fails_closed_without_python_inference tests/test_release_report.py::test_performance_evidence_check_requires_and_validates_all_four_outputs tests/test_release_report.py::test_release_guard_preserves_each_required_untyped_shape tests/test_release_report.py::test_release_guard_rejects_an_exploratory_r_decision
  • Executed base and target analyze_ab.R against identical synthetic raw timings to reproduce the regression and compare decisions
  • Executed the target R analyzer on a complete 36-pair, 22-endpoint manifest-conformant release-guard fixture
  • Executed scripts/release-report.py::release_guard(...) in required-evidence mode and persisted its accepted INCONCLUSIVE output
  • Executed the R analyzer on an interval exactly equal to +3%; it returned INCONCLUSIVE
  • Relabeled the INCONCLUSIVE result as PASS and confirmed release_guard(...) rejected the inconsistent evidence
  • make -n release-performance RELEASE_BENCH_VENV=.venv
  • Semantically loaded .github/workflows/wheels.yml with PyYAML and verified the evidence command, uploaded guard files, and publication dependency
  • Executed a typed msgspec_toon.encode/decode roundtrip and queried Python/Cargo package versions
  • git status --short
✅ **Document** - passed

✅ No issues found.

✅ **Lint** - passed

✅ No issues found.

✅ **Push** - passed

✅ No issues found.

@goblinmode2700
goblinmode2700 merged commit 8e0dd51 into main Aug 14, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant