{
  "version": 4,
  "program": "edited_file_patch_review_v4",
  "title": "Review the diff of the just-edited file",
  "kind": "conditional-gross-recorded-usage-replay-estimate",
  "policy": {
    "root": "/testbed",
    "maxOutputBytes": 32768,
    "timeoutSeconds": 10,
    "sourceEditGrammar": "Unchanged bounded sed substitution or single literal pathlib write from rerun-v2",
    "requiresRegisteredRepository": true,
    "requiresRegularFileAndUnchangedState": true,
    "requiresNoExternalDiffOrTextconv": true
  },
  "trajectories": 2498,
  "issues": 500,
  "denominator": {
    "calls": 129846,
    "callsWithUsage": 129846,
    "inputTokens": 3201225688,
    "inputTokensReportedCalls": 129846,
    "outputTokens": 42377608,
    "outputTokensReportedCalls": 129846,
    "totalTokens": 3243603296,
    "totalTokensReportedCalls": 129846,
    "cachedInputTokens": 2498865874,
    "cachedInputTokensReportedCalls": 121228,
    "cacheCreationInputTokens": 31547900,
    "cacheCreationInputTokensReportedCalls": 40589,
    "reasoningOutputTokens": 23075825,
    "reasoningOutputTokensReportedCalls": 129846,
    "sourceReportedCostSum": 1344.591070199989,
    "callsWithReportedCost": 129846
  },
  "proposals": 1574,
  "matchedCalls": 4,
  "unmatchedProposals": 1570,
  "proposalMatchPercent": 0.25412960609911056,
  "matchedIssues": 4,
  "matchedUsage": {
    "calls": 4,
    "callsWithUsage": 4,
    "inputTokens": 121735,
    "inputTokensReportedCalls": 4,
    "outputTokens": 225,
    "outputTokensReportedCalls": 4,
    "totalTokens": 121960,
    "totalTokensReportedCalls": 4,
    "cachedInputTokens": 110488,
    "cachedInputTokensReportedCalls": 4,
    "cacheCreationInputTokens": 267,
    "cacheCreationInputTokensReportedCalls": 1,
    "reasoningOutputTokens": 65,
    "reasoningOutputTokensReportedCalls": 4,
    "sourceReportedCostSum": 0.0251073,
    "callsWithReportedCost": 4
  },
  "callPercent": 0.0030805723703464104,
  "tokenPercent": 0.003760015910404353,
  "matchesWithReasoningOrProse": 4,
  "diagnostics": {
    "nextCommandDiffers": 1559,
    "nextNotSingletonOrMissingResult": 11
  },
  "cohorts": {
    "deepseek32": {
      "trajectories": 500,
      "issues": 500,
      "denominator": {
        "calls": 43683,
        "callsWithUsage": 43683,
        "inputTokens": 1177730550,
        "inputTokensReportedCalls": 43683,
        "outputTokens": 13441973,
        "outputTokensReportedCalls": 43683,
        "totalTokens": 1191172523,
        "totalTokensReportedCalls": 43683,
        "cachedInputTokens": 798975703,
        "cachedInputTokensReportedCalls": 43683,
        "cacheCreationInputTokens": 0,
        "cacheCreationInputTokensReportedCalls": 0,
        "reasoningOutputTokens": 7941114,
        "reasoningOutputTokensReportedCalls": 43683,
        "sourceReportedCostSum": 223.9232482499986,
        "callsWithReportedCost": 43683
      },
      "proposals": 530,
      "matchedCalls": 0,
      "unmatchedProposals": 530,
      "proposalMatchPercent": 0.0,
      "matchedIssues": 0,
      "matchedUsage": {
        "calls": 0,
        "callsWithUsage": 0,
        "inputTokens": 0,
        "inputTokensReportedCalls": 0,
        "outputTokens": 0,
        "outputTokensReportedCalls": 0,
        "totalTokens": 0,
        "totalTokensReportedCalls": 0,
        "cachedInputTokens": 0,
        "cachedInputTokensReportedCalls": 0,
        "cacheCreationInputTokens": 0,
        "cacheCreationInputTokensReportedCalls": 0,
        "reasoningOutputTokens": 0,
        "reasoningOutputTokensReportedCalls": 0,
        "sourceReportedCostSum": 0,
        "callsWithReportedCost": 0
      },
      "callPercent": 0.0,
      "tokenPercent": 0.0,
      "matchesWithReasoningOrProse": 0,
      "diagnostics": {
        "nextCommandDiffers": 529,
        "nextNotSingletonOrMissingResult": 1
      }
    },
    "gemini3flash": {
      "trajectories": 498,
      "issues": 498,
      "denominator": {
        "calls": 28054,
        "callsWithUsage": 28054,
        "inputTokens": 847926935,
        "inputTokensReportedCalls": 28054,
        "outputTokens": 10071357,
        "outputTokensReportedCalls": 28054,
        "totalTokens": 857998292,
        "totalTokensReportedCalls": 28054,
        "cachedInputTokens": 613767718,
        "cachedInputTokensReportedCalls": 19436,
        "cacheCreationInputTokens": 0,
        "cacheCreationInputTokensReportedCalls": 0,
        "reasoningOutputTokens": 7549905,
        "reasoningOutputTokensReportedCalls": 28054,
        "sourceReportedCostSum": 177.98206539999973,
        "callsWithReportedCost": 28054
      },
      "proposals": 232,
      "matchedCalls": 2,
      "unmatchedProposals": 230,
      "proposalMatchPercent": 0.8620689655172413,
      "matchedIssues": 2,
      "matchedUsage": {
        "calls": 2,
        "callsWithUsage": 2,
        "inputTokens": 89537,
        "inputTokensReportedCalls": 2,
        "outputTokens": 96,
        "outputTokensReportedCalls": 2,
        "totalTokens": 89633,
        "totalTokensReportedCalls": 2,
        "cachedInputTokens": 79598,
        "cachedInputTokensReportedCalls": 2,
        "cacheCreationInputTokens": 0,
        "cacheCreationInputTokensReportedCalls": 0,
        "reasoningOutputTokens": 50,
        "reasoningOutputTokensReportedCalls": 2,
        "sourceReportedCostSum": 0.0092374,
        "callsWithReportedCost": 2
      },
      "callPercent": 0.007129108148570614,
      "tokenPercent": 0.010446757392845719,
      "matchesWithReasoningOrProse": 2,
      "diagnostics": {
        "nextCommandDiffers": 230
      }
    },
    "gpt52": {
      "trajectories": 500,
      "issues": 500,
      "denominator": {
        "calls": 17520,
        "callsWithUsage": 17520,
        "inputTokens": 322598043,
        "inputTokensReportedCalls": 17520,
        "outputTokens": 6692906,
        "outputTokensReportedCalls": 17520,
        "totalTokens": 329290949,
        "totalTokensReportedCalls": 17520,
        "cachedInputTokens": 267596032,
        "cachedInputTokensReportedCalls": 17520,
        "cacheCreationInputTokens": 0,
        "cacheCreationInputTokensReportedCalls": 0,
        "reasoningOutputTokens": 4871131,
        "reasoningOutputTokensReportedCalls": 17520,
        "sourceReportedCostSum": 236.78350885000094,
        "callsWithReportedCost": 17520
      },
      "proposals": 557,
      "matchedCalls": 1,
      "unmatchedProposals": 556,
      "proposalMatchPercent": 0.17953321364452424,
      "matchedIssues": 1,
      "matchedUsage": {
        "calls": 1,
        "callsWithUsage": 1,
        "inputTokens": 19081,
        "inputTokensReportedCalls": 1,
        "outputTokens": 41,
        "outputTokensReportedCalls": 1,
        "totalTokens": 19122,
        "totalTokensReportedCalls": 1,
        "cachedInputTokens": 18048,
        "cachedInputTokensReportedCalls": 1,
        "cacheCreationInputTokens": 0,
        "cacheCreationInputTokensReportedCalls": 0,
        "reasoningOutputTokens": 8,
        "reasoningOutputTokensReportedCalls": 1,
        "sourceReportedCostSum": 0.00554015,
        "callsWithReportedCost": 1
      },
      "callPercent": 0.005707762557077625,
      "tokenPercent": 0.005807022652177422,
      "matchesWithReasoningOrProse": 1,
      "diagnostics": {
        "nextCommandDiffers": 554,
        "nextNotSingletonOrMissingResult": 2
      }
    },
    "opus45": {
      "trajectories": 500,
      "issues": 500,
      "denominator": {
        "calls": 16446,
        "callsWithUsage": 16446,
        "inputTokens": 330622219,
        "inputTokensReportedCalls": 16446,
        "outputTokens": 4806100,
        "outputTokensReportedCalls": 16446,
        "totalTokens": 335428319,
        "totalTokensReportedCalls": 16446,
        "cachedInputTokens": 314095302,
        "cachedInputTokensReportedCalls": 16446,
        "cacheCreationInputTokens": 13695410,
        "cacheCreationInputTokensReportedCalls": 16446,
        "reasoningOutputTokens": 1193410,
        "reasoningOutputTokensReportedCalls": 16446,
        "sourceReportedCostSum": 376.95399849999967,
        "callsWithReportedCost": 16446
      },
      "proposals": 188,
      "matchedCalls": 1,
      "unmatchedProposals": 187,
      "proposalMatchPercent": 0.5319148936170213,
      "matchedIssues": 1,
      "matchedUsage": {
        "calls": 1,
        "callsWithUsage": 1,
        "inputTokens": 13117,
        "inputTokensReportedCalls": 1,
        "outputTokens": 88,
        "outputTokensReportedCalls": 1,
        "totalTokens": 13205,
        "totalTokensReportedCalls": 1,
        "cachedInputTokens": 12842,
        "cachedInputTokensReportedCalls": 1,
        "cacheCreationInputTokens": 267,
        "cacheCreationInputTokensReportedCalls": 1,
        "reasoningOutputTokens": 7,
        "reasoningOutputTokensReportedCalls": 1,
        "sourceReportedCostSum": 0.010329749999999999,
        "callsWithReportedCost": 1
      },
      "callPercent": 0.0060805058980907215,
      "tokenPercent": 0.003936757647466253,
      "matchesWithReasoningOrProse": 1,
      "diagnostics": {
        "nextCommandDiffers": 179,
        "nextNotSingletonOrMissingResult": 8
      }
    },
    "sonnet45": {
      "trajectories": 500,
      "issues": 500,
      "denominator": {
        "calls": 24143,
        "callsWithUsage": 24143,
        "inputTokens": 522347941,
        "inputTokensReportedCalls": 24143,
        "outputTokens": 7365272,
        "outputTokensReportedCalls": 24143,
        "totalTokens": 529713213,
        "totalTokensReportedCalls": 24143,
        "cachedInputTokens": 504431119,
        "cachedInputTokensReportedCalls": 24143,
        "cacheCreationInputTokens": 17852490,
        "cacheCreationInputTokensReportedCalls": 24143,
        "reasoningOutputTokens": 1520265,
        "reasoningOutputTokensReportedCalls": 24143,
        "sourceReportedCostSum": 328.9482491999996,
        "callsWithReportedCost": 24143
      },
      "proposals": 67,
      "matchedCalls": 0,
      "unmatchedProposals": 67,
      "proposalMatchPercent": 0.0,
      "matchedIssues": 0,
      "matchedUsage": {
        "calls": 0,
        "callsWithUsage": 0,
        "inputTokens": 0,
        "inputTokensReportedCalls": 0,
        "outputTokens": 0,
        "outputTokensReportedCalls": 0,
        "totalTokens": 0,
        "totalTokensReportedCalls": 0,
        "cachedInputTokens": 0,
        "cachedInputTokensReportedCalls": 0,
        "cacheCreationInputTokens": 0,
        "cacheCreationInputTokensReportedCalls": 0,
        "reasoningOutputTokens": 0,
        "reasoningOutputTokensReportedCalls": 0,
        "sourceReportedCostSum": 0,
        "callsWithReportedCost": 0
      },
      "callPercent": 0.0,
      "tokenPercent": 0.0,
      "matchesWithReasoningOrProse": 0,
      "diagnostics": {
        "nextCommandDiffers": 67
      }
    }
  },
  "byPartition": {
    "discovery": {
      "trajectories": 484,
      "issues": 97,
      "denominator": {
        "calls": 24158,
        "callsWithUsage": 24158,
        "inputTokens": 573984641,
        "inputTokensReportedCalls": 24158,
        "outputTokens": 8010454,
        "outputTokensReportedCalls": 24158,
        "totalTokens": 581995095,
        "totalTokensReportedCalls": 24158,
        "cachedInputTokens": 440339396,
        "cachedInputTokensReportedCalls": 22502,
        "cacheCreationInputTokens": 5773511,
        "cacheCreationInputTokensReportedCalls": 7347,
        "reasoningOutputTokens": 4345227,
        "reasoningOutputTokensReportedCalls": 24158,
        "sourceReportedCostSum": 244.4874665399989,
        "callsWithReportedCost": 24158
      },
      "proposals": 335,
      "matchedCalls": 1,
      "unmatchedProposals": 334,
      "proposalMatchPercent": 0.29850746268656714,
      "matchedIssues": 1,
      "matchedUsage": {
        "calls": 1,
        "callsWithUsage": 1,
        "inputTokens": 57743,
        "inputTokensReportedCalls": 1,
        "outputTokens": 40,
        "outputTokensReportedCalls": 1,
        "totalTokens": 57783,
        "totalTokensReportedCalls": 1,
        "cachedInputTokens": 48512,
        "cachedInputTokensReportedCalls": 1,
        "cacheCreationInputTokens": 0,
        "cacheCreationInputTokensReportedCalls": 0,
        "reasoningOutputTokens": 16,
        "reasoningOutputTokensReportedCalls": 1,
        "sourceReportedCostSum": 0.0071611,
        "callsWithReportedCost": 1
      },
      "callPercent": 0.004139415514529348,
      "tokenPercent": 0.009928434190669596,
      "matchesWithReasoningOrProse": 1,
      "diagnostics": {
        "nextCommandDiffers": 332,
        "nextNotSingletonOrMissingResult": 2
      }
    },
    "validation": {
      "trajectories": 2014,
      "issues": 403,
      "denominator": {
        "calls": 105688,
        "callsWithUsage": 105688,
        "inputTokens": 2627241047,
        "inputTokensReportedCalls": 105688,
        "outputTokens": 34367154,
        "outputTokensReportedCalls": 105688,
        "totalTokens": 2661608201,
        "totalTokensReportedCalls": 105688,
        "cachedInputTokens": 2058526478,
        "cachedInputTokensReportedCalls": 98726,
        "cacheCreationInputTokens": 25774389,
        "cacheCreationInputTokensReportedCalls": 33242,
        "reasoningOutputTokens": 18730598,
        "reasoningOutputTokensReportedCalls": 105688,
        "sourceReportedCostSum": 1100.1036036599905,
        "callsWithReportedCost": 105688
      },
      "proposals": 1239,
      "matchedCalls": 3,
      "unmatchedProposals": 1236,
      "proposalMatchPercent": 0.24213075060532688,
      "matchedIssues": 3,
      "matchedUsage": {
        "calls": 3,
        "callsWithUsage": 3,
        "inputTokens": 63992,
        "inputTokensReportedCalls": 3,
        "outputTokens": 185,
        "outputTokensReportedCalls": 3,
        "totalTokens": 64177,
        "totalTokensReportedCalls": 3,
        "cachedInputTokens": 61976,
        "cachedInputTokensReportedCalls": 3,
        "cacheCreationInputTokens": 267,
        "cacheCreationInputTokensReportedCalls": 1,
        "reasoningOutputTokens": 49,
        "reasoningOutputTokensReportedCalls": 3,
        "sourceReportedCostSum": 0.0179462,
        "callsWithReportedCost": 3
      },
      "callPercent": 0.002838543637877526,
      "tokenPercent": 0.002411211386254667,
      "matchesWithReasoningOrProse": 3,
      "diagnostics": {
        "nextCommandDiffers": 1227,
        "nextNotSingletonOrMissingResult": 9
      }
    }
  },
  "split": "SHA256(autotoken-v4:instance_id)%5==0 discovery, grouped across models. Only discovery inspected before freezing exact edited-file diff rule; this corpus was previously studied, not untouched external validation.",
  "sourceManifestSha256": "73cccd8079f5c3150015207a7d102f1a4409c7996f0ea9ae1305f1b45239247b",
  "plannerSha256": "7f013e01015b1b72cbd9b6e42b5df9e1e91eb1ab46c324e09bd8fdb2b1374414",
  "editDetectorSha256": "a19ae88918d77afb5db77bf1f0a703250500ada73107a37310bbb21a813eb44e",
  "limitations": [
    "The edited filename and cwd come from the prior successful source command, never the future label.",
    "Exact means same normalized git diff argv/file/cwd; optional pathspec separator, quote spelling and trailing whitespace are canonicalized.",
    "Whole-repository diffs, pipelines, redirects, alternate flags and bundled commands receive no exact credit.",
    "Source mutation and historical repository/filesystem state are not reconstructed. Future execution requires explicit patch-review policy, registered repository, unchanged regular file and disabled external diff/textconv configuration.",
    "A successful bounded observed diff does not establish patch correctness; removing model reasoning may change task quality.",
    "Usage belongs to original model calls; avoided calls/tokens are conditional gross estimates before routing/execution/fallback costs and future context/cache effects.",
    "Cache and reasoning details are subsets of input/output totals, never added again.",
    "Discovery and validation partition this already-used corpus; no untouched external validation claim.",
    "No recorded command is executed and no paid inference occurs."
  ]
}
