{
  "schema": "agent-rerun-receipt.v1",
  "record": {
    "id": "20261016T122849Z_aider_byok_zai_glm-5.3-flash_417eeb",
    "taskId": "retry-after-v1",
    "taskTitle": "Strict HTTP Retry-After parser (synthetic test input)",
    "agent": "aider",
    "requestedModel": "byok/zai/glm-5.3-flash",
    "resolvedModel": "byok/zai/glm-5.3-flash",
    "wallSeconds": 8.01,
    "inputTokens": 822,
    "outputTokens": 417,
    "totalTokens": 1239,
    "costUsd": 0.0003318,
    "energyWh": null,
    "assertionsPassed": 20,
    "assertionsTotal": 20,
    "observedNativeModel": null,
    "modelIdentityStatus": null,
    "modelIdentityEvidence": null,
    "providerResponseModel": null,
    "reasoningEffort": "low",
    "family": "matched-harness",
    "status": "PASS",
    "tier": "cloud/BYOK",
    "diagnosticOnly": false,
    "comparisonEligible": true,
    "cohort": "current-model",
    "resultNote": null,
    "limitations": [
      "Exploratory n=1 synthetic task; not a general coding-agent ranking.",
      "Exploratory arm E; JSON/DuckDB/Neon canonical admission NOT_VERIFIED."
    ],
    "evidenceFile": "20261016T122849Z_aider_byok_zai_glm-5.3-flash_417eeb.json",
    "archived": false,
    "supersededBy": "20261016T124926Z_aider_byok_zai_glm-5.3-flash_170c14"
  },
  "sourceRecord": {
    "id": "20261016T122849Z_aider_byok_zai_glm-5.3-flash_417eeb",
    "originalCampaign": "agent_comparison_20261015",
    "rerun": true,
    "correctionOf": null,
    "cohort": "original-model",
    "family": "same-model-harness-rerun",
    "taskId": "retry-after-v1",
    "taskTitle": "Strict HTTP Retry-After parser (synthetic test input)",
    "agent": "aider",
    "requestedModel": "byok/zai/glm-5.3-flash",
    "resolvedModel": "byok/zai/glm-5.3-flash",
    "status": "PASS",
    "wallSeconds": 8.01,
    "inputTokens": 822,
    "outputTokens": 417,
    "totalTokens": 1239,
    "costUsd": 0.0003318,
    "energyWh": null,
    "assertionsPassed": 20,
    "assertionsTotal": 20,
    "observedCodePass": true,
    "exitCode": 0,
    "evidencePaths": [
      "artifacts/agent_comparison_completion_repair_20261016/matrix/20261016T122849Z_aider_byok_zai_glm-5.3-flash_417eeb"
    ],
    "arm": "E",
    "admission": "NOT_VERIFIED",
    "limitations": [
      "Exploratory n=1 synthetic task; not a general coding-agent ranking.",
      "Exploratory arm E; JSON/DuckDB/Neon canonical admission NOT_VERIFIED."
    ],
    "freeze": {
      "task_sha256": "6c229fd3a8dda211432b4ff70838fa0cb73b325bc778da52ab0cdd280619a5fe",
      "oracle_sha256": "3675736119622cac168d711045426c6678bd08212b9bedf1aab71126a7ef1a76",
      "starter_sha256": "595a2a41e7bfd09ad28045cb3be95f0126d702eb25e6f53c723c0b77c46b44e2",
      "frozen_before_execution_at": 1792153729.752841
    },
    "mutableRuntimeFiles": [
      "budget_ledger.json"
    ],
    "terminalBudgetSnapshot": "budget_ledger_at_terminal.json",
    "rawStatus": "PASS",
    "metadataTransportDiagnosticCount": 0,
    "diagnosticOnly": false,
    "tokenSource": "provider",
    "accountingComplete": true,
    "identityVerified": true,
    "providerCallCount": 1,
    "partialInputTokens": 822,
    "partialOutputTokens": 417,
    "partialTotalTokens": 1239,
    "partialEstimatedCostUsd": 0.0003318,
    "reportedAdditiveReasoningTokens": null,
    "reportedReasoningTokens": null,
    "allCallsReportReasoning": false,
    "tokensPerSecond": 154.682,
    "knownTokensIncludingAdditiveReasoning": 1239,
    "knownTokensIncludingAdditiveReasoningPerSecond": 154.682,
    "generationCensored": false,
    "budgetControls": {
      "schema": "agent_comparison_rerun_policy.v1",
      "temperature": 0.0,
      "timeout_seconds": 240,
      "per_request_output_tokens": 8192,
      "proxy_shared_max_input_tokens": 160000,
      "proxy_shared_max_output_tokens": 32000,
      "proxy_reservation": "entire request UTF8 bytes +32/message+128; providerusage settled after eachcall; failclosed ifmissing",
      "maximum_input_tokens": 160000,
      "total_token_budget": 400000,
      "max_turns": 24,
      "proxy_read_timeout_seconds": 270,
      "verdict_stream_idle_timeout_seconds": 240,
      "aider_request_timeout_seconds": 240,
      "reasoning": {
        "mode": "effort",
        "effort": "low"
      },
      "models": "exact pins, no failover",
      "task_file": "solution.py",
      "hidden_oracle_fed_to_agent": false,
      "producer_location": "outside candidate workspace; candidate read denied",
      "aider_context": "live exact catalog context metadata; history ceiling=min(inputbudget,context/2)",
      "appendix_model_changed": false
    },
    "reasoningEffort": "low",
    "sharedProxyCapsEnforced": true,
    "actualBelowCommonCaps": true,
    "timeoutSeconds": 240,
    "terminalError": null,
    "terminalCompleted": true,
    "agentFailureReason": null,
    "sameGatewayInstance": true,
    "comparisonEligible": true,
    "publicEvidencePath": "artifacts/agent_comparison_completion_repair_20261016/matrix/public_evidence/20261016T122849Z_aider_byok_zai_glm-5.3-flash_417eeb.json",
    "publicEvidenceSha256": "51260e2408e97cc706e74965da0b66920a8ade3031dc1d4d558a1a0a9501c1a5"
  },
  "sourceFile": "artifacts/agent_comparison_completion_repair_20261016/matrix/reviewed-summary.json",
  "sourceFileSha256": "cfdb4bb21c1038588f0951f2cbe4774e077c01691d7e0e53434881d3b9a16419",
  "files": [
    {
      "path": "artifacts/agent_comparison_completion_repair_20261016/matrix/20261016T122849Z_aider_byok_zai_glm-5.3-flash_417eeb/budget_ledger.json",
      "sha256": "4214c3988d162e1db075c770718c28b6379069e36e21d55de5f4d9f6d1f8dcf9",
      "bytes": 116
    },
    {
      "path": "artifacts/agent_comparison_completion_repair_20261016/matrix/20261016T122849Z_aider_byok_zai_glm-5.3-flash_417eeb/budget_ledger_at_terminal.json",
      "sha256": "4214c3988d162e1db075c770718c28b6379069e36e21d55de5f4d9f6d1f8dcf9",
      "bytes": 116
    },
    {
      "path": "artifacts/agent_comparison_completion_repair_20261016/matrix/20261016T122849Z_aider_byok_zai_glm-5.3-flash_417eeb/ddc8e7981d904be2b3d6b2ee50fd9c11.http.json",
      "sha256": "1e59a50dc3d6db42e13fba247a3fe83c1a939e105d6bf1b3c8004d504062e05e",
      "bytes": 103
    },
    {
      "path": "artifacts/agent_comparison_completion_repair_20261016/matrix/20261016T122849Z_aider_byok_zai_glm-5.3-flash_417eeb/ddc8e7981d904be2b3d6b2ee50fd9c11.request.json",
      "sha256": "391df3ea3b84955507ee2649a8db7ec9e585af446d4e7300f10018da14e4ccd4",
      "bytes": 4518
    },
    {
      "path": "artifacts/agent_comparison_completion_repair_20261016/matrix/20261016T122849Z_aider_byok_zai_glm-5.3-flash_417eeb/ddc8e7981d904be2b3d6b2ee50fd9c11.response.txt",
      "sha256": "18951072bfcc5cbd3cd28ed057085a324e5c6f450bd6237a7440574b73f90981",
      "bytes": 98594
    },
    {
      "path": "artifacts/agent_comparison_completion_repair_20261016/matrix/20261016T122849Z_aider_byok_zai_glm-5.3-flash_417eeb/ddc8e7981d904be2b3d6b2ee50fd9c11.timing.json",
      "sha256": "ed93c62b0c2a8870ad0c7a7ba29541286e0d4cd1c0e0f7783b1510e076f839e2",
      "bytes": 305
    },
    {
      "path": "artifacts/agent_comparison_completion_repair_20261016/matrix/20261016T122849Z_aider_byok_zai_glm-5.3-flash_417eeb/freeze.json",
      "sha256": "13597e3d5ecd37507586a25091b2916dfe8075f937b8ece0e0e39efc64611cf9",
      "bytes": 313,
      "content": "{\n  \"task_sha256\": \"6c229fd3a8dda211432b4ff70838fa0cb73b325bc778da52ab0cdd280619a5fe\",\n  \"oracle_sha256\": \"3675736119622cac168d711045426c6678bd08212b9bedf1aab71126a7ef1a76\",\n  \"starter_sha256\": \"595a2a41e7bfd09ad28045cb3be95f0126d702eb25e6f53c723c0b77c46b44e2\",\n  \"frozen_before_execution_at\": 1792153729.752841\n}",
      "contentRedacted": false,
      "publishedContentSha256": "13597e3d5ecd37507586a25091b2916dfe8075f937b8ece0e0e39efc64611cf9"
    },
    {
      "path": "artifacts/agent_comparison_completion_repair_20261016/matrix/20261016T122849Z_aider_byok_zai_glm-5.3-flash_417eeb/health_after.json",
      "sha256": "1efd9c0723c90b4ced7d91c9cee3fca32433b80a610a7abe3090ee2fe6869c51",
      "bytes": 1326
    },
    {
      "path": "artifacts/agent_comparison_completion_repair_20261016/matrix/20261016T122849Z_aider_byok_zai_glm-5.3-flash_417eeb/health_before.json",
      "sha256": "6dee02f3db6bb4800c14a64f24bd7ff847490d30d46e9ec1ef671bb8f1a69bdc",
      "bytes": 1327
    },
    {
      "path": "artifacts/agent_comparison_completion_repair_20261016/matrix/20261016T122849Z_aider_byok_zai_glm-5.3-flash_417eeb/invocation.json",
      "sha256": "12ee84a1f838f6998b6614277352a28957da7d56f9dc805fefb17ee341615a0e",
      "bytes": 1993
    },
    {
      "path": "artifacts/agent_comparison_completion_repair_20261016/matrix/20261016T122849Z_aider_byok_zai_glm-5.3-flash_417eeb/launch.json",
      "sha256": "89a739a23a6711b0f32742f98124244ab14c2dfadfb328eaea663619edeeb4d2",
      "bytes": 166
    },
    {
      "path": "artifacts/agent_comparison_completion_repair_20261016/matrix/20261016T122849Z_aider_byok_zai_glm-5.3-flash_417eeb/model_preflight.json",
      "sha256": "748411648fed77c30cb2d14783d744e38de039b56420a5df9f46751d092fee9e",
      "bytes": 2622
    },
    {
      "path": "artifacts/agent_comparison_completion_repair_20261016/matrix/20261016T122849Z_aider_byok_zai_glm-5.3-flash_417eeb/oracle.stderr.txt",
      "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
      "bytes": 0,
      "content": "",
      "contentRedacted": false,
      "publishedContentSha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
    },
    {
      "path": "artifacts/agent_comparison_completion_repair_20261016/matrix/20261016T122849Z_aider_byok_zai_glm-5.3-flash_417eeb/oracle.stdout.txt",
      "sha256": "5b22a02f39f6be766ee28b0cdfca80c3244449283a14f0786cda512f6659a6fd",
      "bytes": 1582,
      "content": "{\"passed\": 20, \"total\": 20, \"cases\": [{\"input\": \"0\", \"expected\": 0, \"actual\": 0, \"pass\": true}, {\"input\": \" 120\\t\", \"expected\": 120, \"actual\": 120, \"pass\": true}, {\"input\": \"0007\", \"expected\": 7, \"actual\": 7, \"pass\": true}, {\"input\": \"-1\", \"expected\": null, \"actual\": null, \"pass\": true}, {\"input\": \"+1\", \"expected\": null, \"actual\": null, \"pass\": true}, {\"input\": \"1.5\", \"expected\": null, \"actual\": null, \"pass\": true}, {\"input\": \"\\uff11\\uff12\", \"expected\": null, \"actual\": null, \"pass\": true}, {\"input\": \"\\u0661\\u0662\", \"expected\": null, \"actual\": null, \"pass\": true}, {\"input\": \"\", \"expected\": null, \"actual\": null, \"pass\": true}, {\"input\": null, \"expected\": null, \"actual\": null, \"pass\": true}, {\"input\": 4, \"expected\": null, \"actual\": null, \"pass\": true}, {\"input\": \"Wed, 21 Oct 2015 07:28:00 GMT\", \"expected\": 1, \"actual\": 1, \"pass\": true}, {\"input\": \"Wed, 21 Oct 2015 07:28:01 GMT\", \"expected\": 2, \"actual\": 2, \"pass\": true}, {\"input\": \"Wed, 21 Oct 2015 07:27:00 GMT\", \"expected\": 0, \"actual\": 0, \"pass\": true}, {\"input\": \"Tue, 21 Oct 2015 07:28:00 GMT\", \"expected\": null, \"actual\": null, \"pass\": true}, {\"input\": \"Wed, 21 Oct 2015 07:28:00 UTC\", \"expected\": null, \"actual\": null, \"pass\": true}, {\"input\": \"wed, 21 Oct 2015 07:28:00 GMT\", \"expected\": null, \"actual\": null, \"pass\": true}, {\"input\": \"Wed, 31 Feb 2015 07:28:00 GMT\", \"expected\": null, \"actual\": null, \"pass\": true}, {\"input\": \"Wed, 21 Oct 2015 07:28:00 GMT trailing\", \"expected\": null, \"actual\": null, \"pass\": true}, {\"input\": \"Wed, 21 Oct 2015 07:28:00 +0000\", \"expected\": null, \"actual\": null, \"pass\": true}]}\n",
      "contentRedacted": false,
      "publishedContentSha256": "5b22a02f39f6be766ee28b0cdfca80c3244449283a14f0786cda512f6659a6fd"
    },
    {
      "path": "artifacts/agent_comparison_completion_repair_20261016/matrix/20261016T122849Z_aider_byok_zai_glm-5.3-flash_417eeb/policy.json",
      "sha256": "aa2362c5aaad91ed6dc21abdc1030403e87157de1bc1675908f2559b29adbdc9",
      "bytes": 943,
      "content": "{\n  \"schema\": \"agent_comparison_rerun_policy.v1\",\n  \"temperature\": 0.0,\n  \"timeout_seconds\": 240,\n  \"per_request_output_tokens\": 8192,\n  \"proxy_shared_max_input_tokens\": 160000,\n  \"proxy_shared_max_output_tokens\": 32000,\n  \"proxy_reservation\": \"entire request UTF8 bytes +32/message+128; providerusage settled after eachcall; failclosed ifmissing\",\n  \"maximum_input_tokens\": 160000,\n  \"total_token_budget\": 400000,\n  \"max_turns\": 24,\n  \"proxy_read_timeout_seconds\": 270,\n  \"verdict_stream_idle_timeout_seconds\": 240,\n  \"aider_request_timeout_seconds\": 240,\n  \"reasoning\": {\n    \"mode\": \"effort\",\n    \"effort\": \"low\"\n  },\n  \"models\": \"exact pins, no failover\",\n  \"task_file\": \"solution.py\",\n  \"hidden_oracle_fed_to_agent\": false,\n  \"producer_location\": \"outside candidate workspace; candidate read denied\",\n  \"aider_context\": \"live exact catalog context metadata; history ceiling=min(inputbudget,context/2)\",\n  \"appendix_model_changed\": false\n}",
      "contentRedacted": false,
      "publishedContentSha256": "aa2362c5aaad91ed6dc21abdc1030403e87157de1bc1675908f2559b29adbdc9"
    },
    {
      "path": "artifacts/agent_comparison_completion_repair_20261016/matrix/20261016T122849Z_aider_byok_zai_glm-5.3-flash_417eeb/product_source.json",
      "sha256": "975f3a00f185e9b85bc682c1cd4328ef3095d688906de32290374354438c2ef7",
      "bytes": 660,
      "content": "{\n  \"head\": \"29c79e665a08eac9d03bda26de1e0f8eddccccb9\",\n  \"files\": {\n    \"scripts/benchmarks/agent_comparison_rerun_20261016.py\": \"c625b691551051e1f0a3d8dea1fbb3ea6db797578005f86122099572c7acb0b0\",\n    \"tools/verdict-code/verdict_code/agent.py\": \"d69203aaa46e6b60f35dd5ca3b99d1e1566abb7f0ba604430469530434af7b28\",\n    \"tools/verdict-code/verdict_code/tools/__init__.py\": \"609350f15bbdec4099405afe9ddddddf7b2caa7d2d03cc53e0276d6ab8d3bd57\",\n    \"tools/verdict-code/verdict_code/main.py\": \"a85ce7b0392f06dccf14062386096285766aa7ecd8c9d8203aca63fe2f9a9c37\",\n    \"tools/verdict-code/VERSION\": \"178a491d1c5069072fa1764932d4babf4df7a814c007eb0994d49d70be18d08c\"\n  }\n}",
      "contentRedacted": false,
      "publishedContentSha256": "975f3a00f185e9b85bc682c1cd4328ef3095d688906de32290374354438c2ef7"
    },
    {
      "path": "artifacts/agent_comparison_completion_repair_20261016/matrix/20261016T122849Z_aider_byok_zai_glm-5.3-flash_417eeb/prompt.txt",
      "sha256": "6c229fd3a8dda211432b4ff70838fa0cb73b325bc778da52ab0cdd280619a5fe",
      "bytes": 837,
      "content": "Synthetic benchmark task: Retry-After parsing. Implement `retry_after(value, now)` in solution.py using only Python standard library. now is an aware UTC datetime. Return a nonnegative integer number of seconds or None for invalid input. Strings containing only ASCII decimal digits after surrounding whitespace return that integer. Otherwise accept an RFC HTTP-date of form `Wed, 21 Oct 2015 07:28:00 GMT`, case sensitive, validated weekday must agree with date. For a valid HTTP date return max(0, ceil((date-now).total_seconds())). Reject non-string inputs, signs, fractions, non-ASCII digits, extra text, and non-GMT timezone names. Do not change any other source file. Hidden tests are unavailable. Write the implementation to disk and finish. Do not install dependencies, access network, use other models, or edit unrelated paths.\n",
      "contentRedacted": false,
      "publishedContentSha256": "6c229fd3a8dda211432b4ff70838fa0cb73b325bc778da52ab0cdd280619a5fe"
    },
    {
      "path": "artifacts/agent_comparison_completion_repair_20261016/matrix/20261016T122849Z_aider_byok_zai_glm-5.3-flash_417eeb/reasoning_preflight.json",
      "sha256": "bf989a20ecee480e99a526bd9bbcec4a110bd3148371f1b6ed6010d2f2ae1926",
      "bytes": 244
    },
    {
      "path": "artifacts/agent_comparison_completion_repair_20261016/matrix/20261016T122849Z_aider_byok_zai_glm-5.3-flash_417eeb/result.json",
      "sha256": "8ef55b6729b3530ecf9e81a72577666e08aef4762f3bb5dbe569853202ca0da7",
      "bytes": 4016
    },
    {
      "path": "artifacts/agent_comparison_completion_repair_20261016/matrix/20261016T122849Z_aider_byok_zai_glm-5.3-flash_417eeb/sandbox.sb",
      "sha256": "0e0bcdf38d65e991edfc739fa50cdad8f72cc98c0a28b8deeaa983c483e38112",
      "bytes": 5672
    },
    {
      "path": "artifacts/agent_comparison_completion_repair_20261016/matrix/20261016T122849Z_aider_byok_zai_glm-5.3-flash_417eeb/sandbox_preflight.json",
      "sha256": "8415d156075475eba2b82a04636f833e85484020de5e6424f6140cd0ac61390f",
      "bytes": 93
    },
    {
      "path": "artifacts/agent_comparison_completion_repair_20261016/matrix/20261016T122849Z_aider_byok_zai_glm-5.3-flash_417eeb/stderr.txt",
      "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
      "bytes": 0
    },
    {
      "path": "artifacts/agent_comparison_completion_repair_20261016/matrix/20261016T122849Z_aider_byok_zai_glm-5.3-flash_417eeb/stdout.txt",
      "sha256": "0baabe490ceccfe608c0e5e7cda4f6f29b5d52c3662115d40e647c94ca08c9bf",
      "bytes": 1658
    },
    {
      "path": "artifacts/agent_comparison_completion_repair_20261016/matrix/20261016T122849Z_aider_byok_zai_glm-5.3-flash_417eeb/workspace/aider_model_metadata.json",
      "sha256": "65fdb697b19fba7c305e50470dd2ab65675867ecfd638667e5872bdc1bb8b945",
      "bytes": 188
    },
    {
      "path": "artifacts/agent_comparison_completion_repair_20261016/matrix/20261016T122849Z_aider_byok_zai_glm-5.3-flash_417eeb/workspace/aider_settings.yml",
      "sha256": "0ab3f3d66000a8c8e9fcdaaa1f2019f963abc701b8612e662e123d22ed78b413",
      "bytes": 198
    },
    {
      "path": "artifacts/agent_comparison_completion_repair_20261016/matrix/20261016T122849Z_aider_byok_zai_glm-5.3-flash_417eeb/workspace/chat_history.md",
      "sha256": "599d91fad522fb0cd26f0d9437717be258eac93566868a20ed7dd899eceee9e3",
      "bytes": 3784
    },
    {
      "path": "artifacts/agent_comparison_completion_repair_20261016/matrix/20261016T122849Z_aider_byok_zai_glm-5.3-flash_417eeb/workspace/solution.py",
      "sha256": "ce7b6f78cf574e1d06273d160aaf9c8def40a58f4473665d778e916e70e2a7a0",
      "bytes": 1244,
      "content": "import re\nfrom datetime import datetime, timezone\n\n_HTTP_DATE_RE = re.compile(\n    r\"^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), \"\n    r\"(\\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\\d{4}) \"\n    r\"(\\d{2}):(\\d{2}):(\\d{2}) GMT$\"\n)\n\n_MONTHS = {\n    \"Jan\": 1, \"Feb\": 2, \"Mar\": 3, \"Apr\": 4, \"May\": 5, \"Jun\": 6,\n    \"Jul\": 7, \"Aug\": 8, \"Sep\": 9, \"Oct\": 10, \"Nov\": 11, \"Dec\": 12,\n}\n\n_WEEKDAYS = [\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"]\n\n\ndef retry_after(value, now):\n    \"\"\"Parse an HTTP Retry-After header according to the task contract.\"\"\"\n    if not isinstance(value, str):\n        return None\n\n    stripped = value.strip()\n\n    if stripped.isascii() and stripped.isdigit():\n        return int(stripped)\n\n    m = _HTTP_DATE_RE.match(value)\n    if not m:\n        return None\n\n    weekday_name, day, month_name, year, hh, mm, ss = m.groups()\n    month = _MONTHS[month_name]\n\n    try:\n        dt = datetime(\n            int(year), month, int(day),\n            int(hh), int(mm), int(ss),\n            tzinfo=timezone.utc,\n        )\n    except ValueError:\n        return None\n\n    if _WEEKDAYS[dt.weekday()] != weekday_name:\n        return None\n\n    delta = (dt - now).total_seconds()\n    return max(0, -(-delta // 1) and int(-(-delta // 1)))\n",
      "contentRedacted": false,
      "publishedContentSha256": "ce7b6f78cf574e1d06273d160aaf9c8def40a58f4473665d778e916e70e2a7a0"
    }
  ],
  "disclosure": "Synthetic inputs and observed execution. Original-byte hashes retained; selected source and oracle outputs reproduced. Private provider transcripts remain local.",
  "reviewedEvidence": {
    "provenance": "Synthetic test input; actual installed CLI execution; reviewed public-safe evidence fixture.",
    "runId": "20261016T122849Z_aider_byok_zai_glm-5.3-flash_417eeb",
    "task": "Synthetic benchmark task: Retry-After parsing. Implement `retry_after(value, now)` in solution.py using only Python standard library. now is an aware UTC datetime. Return a nonnegative integer number of seconds or None for invalid input. Strings containing only ASCII decimal digits after surrounding whitespace return that integer. Otherwise accept an RFC HTTP-date of form `Wed, 21 Oct 2015 07:28:00 GMT`, case sensitive, validated weekday must agree with date. For a valid HTTP date return max(0, ceil((date-now).total_seconds())). Reject non-string inputs, signs, fractions, non-ASCII digits, extra text, and non-GMT timezone names. Do not change any other source file. Hidden tests are unavailable. Write the implementation to disk and finish. Do not install dependencies, access network, use other models, or edit unrelated paths.\n",
    "freeze": {
      "task_sha256": "6c229fd3a8dda211432b4ff70838fa0cb73b325bc778da52ab0cdd280619a5fe",
      "oracle_sha256": "3675736119622cac168d711045426c6678bd08212b9bedf1aab71126a7ef1a76",
      "starter_sha256": "595a2a41e7bfd09ad28045cb3be95f0126d702eb25e6f53c723c0b77c46b44e2",
      "frozen_before_execution_at": 1792153729.752841
    },
    "candidateCode": "import re\nfrom datetime import datetime, timezone\n\n_HTTP_DATE_RE = re.compile(\n    r\"^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), \"\n    r\"(\\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\\d{4}) \"\n    r\"(\\d{2}):(\\d{2}):(\\d{2}) GMT$\"\n)\n\n_MONTHS = {\n    \"Jan\": 1, \"Feb\": 2, \"Mar\": 3, \"Apr\": 4, \"May\": 5, \"Jun\": 6,\n    \"Jul\": 7, \"Aug\": 8, \"Sep\": 9, \"Oct\": 10, \"Nov\": 11, \"Dec\": 12,\n}\n\n_WEEKDAYS = [\"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\", \"Sun\"]\n\n\ndef retry_after(value, now):\n    \"\"\"Parse an HTTP Retry-After header according to the task contract.\"\"\"\n    if not isinstance(value, str):\n        return None\n\n    stripped = value.strip()\n\n    if stripped.isascii() and stripped.isdigit():\n        return int(stripped)\n\n    m = _HTTP_DATE_RE.match(value)\n    if not m:\n        return None\n\n    weekday_name, day, month_name, year, hh, mm, ss = m.groups()\n    month = _MONTHS[month_name]\n\n    try:\n        dt = datetime(\n            int(year), month, int(day),\n            int(hh), int(mm), int(ss),\n            tzinfo=timezone.utc,\n        )\n    except ValueError:\n        return None\n\n    if _WEEKDAYS[dt.weekday()] != weekday_name:\n        return None\n\n    delta = (dt - now).total_seconds()\n    return max(0, -(-delta // 1) and int(-(-delta // 1)))\n",
    "oracle": {
      "passed": 20,
      "total": 20,
      "cases": [
        {
          "input": "0",
          "expected": 0,
          "actual": 0,
          "pass": true
        },
        {
          "input": " 120\t",
          "expected": 120,
          "actual": 120,
          "pass": true
        },
        {
          "input": "0007",
          "expected": 7,
          "actual": 7,
          "pass": true
        },
        {
          "input": "-1",
          "expected": null,
          "actual": null,
          "pass": true
        },
        {
          "input": "+1",
          "expected": null,
          "actual": null,
          "pass": true
        },
        {
          "input": "1.5",
          "expected": null,
          "actual": null,
          "pass": true
        },
        {
          "input": "１２",
          "expected": null,
          "actual": null,
          "pass": true
        },
        {
          "input": "١٢",
          "expected": null,
          "actual": null,
          "pass": true
        },
        {
          "input": "",
          "expected": null,
          "actual": null,
          "pass": true
        },
        {
          "input": null,
          "expected": null,
          "actual": null,
          "pass": true
        },
        {
          "input": 4,
          "expected": null,
          "actual": null,
          "pass": true
        },
        {
          "input": "Wed, 21 Oct 2015 07:28:00 GMT",
          "expected": 1,
          "actual": 1,
          "pass": true
        },
        {
          "input": "Wed, 21 Oct 2015 07:28:01 GMT",
          "expected": 2,
          "actual": 2,
          "pass": true
        },
        {
          "input": "Wed, 21 Oct 2015 07:27:00 GMT",
          "expected": 0,
          "actual": 0,
          "pass": true
        },
        {
          "input": "Tue, 21 Oct 2015 07:28:00 GMT",
          "expected": null,
          "actual": null,
          "pass": true
        },
        {
          "input": "Wed, 21 Oct 2015 07:28:00 UTC",
          "expected": null,
          "actual": null,
          "pass": true
        },
        {
          "input": "wed, 21 Oct 2015 07:28:00 GMT",
          "expected": null,
          "actual": null,
          "pass": true
        },
        {
          "input": "Wed, 31 Feb 2015 07:28:00 GMT",
          "expected": null,
          "actual": null,
          "pass": true
        },
        {
          "input": "Wed, 21 Oct 2015 07:28:00 GMT trailing",
          "expected": null,
          "actual": null,
          "pass": true
        },
        {
          "input": "Wed, 21 Oct 2015 07:28:00 +0000",
          "expected": null,
          "actual": null,
          "pass": true
        }
      ]
    },
    "providerCalls": [
      {
        "requestEvidence": "artifacts/agent_comparison_completion_repair_20261016/matrix/20261016T122849Z_aider_byok_zai_glm-5.3-flash_417eeb/ddc8e7981d904be2b3d6b2ee50fd9c11.request.json",
        "requestSha256": "391df3ea3b84955507ee2649a8db7ec9e585af446d4e7300f10018da14e4ccd4",
        "responseSha256": "18951072bfcc5cbd3cd28ed057085a324e5c6f450bd6237a7440574b73f90981",
        "httpStatus": 200,
        "requestedModel": "byok/zai/glm-5.3-flash",
        "resolvedModel": "byok/zai/glm-5.3-flash",
        "backendModel": "zai/glm-5.3-flash",
        "resolutionSource": "explicit_byok_route",
        "generationControls": {
          "max_tokens": 8192,
          "temperature": 0.0,
          "reasoning_choice": {
            "mode": "effort",
            "effort": "low"
          },
          "auto_failover": false,
          "stream": true
        },
        "inputTokens": 822,
        "outputTokens": 417,
        "totalTokens": 1239,
        "costUsd": 0.0003318,
        "energyWh": null,
        "finishReasons": [
          "stop"
        ],
        "additiveReasoningTokens": null,
        "nestedReasoningTokens": null
      }
    ],
    "gatewayBefore": {
      "status": "healthy",
      "service": "local_gateway",
      "mode": "full",
      "port": 6120,
      "timestamp": "2026-10-16T12:28:49.843600+00:00",
      "uptime_seconds": 4970.3142030239105,
      "server_start_time": 1792148759.529398,
      "git_sha": "8fd6e78eed8972be1b897c1665177b04e989b0f5",
      "build_time": "2026-10-16T07:05:23-04:00",
      "version": "8fd6e78eed8972be1b897c1665177b04e989b0f5",
      "interop_min": 1,
      "interop_max": 1,
      "dependencies": {
        "event_stream": "http://localhost:6102"
      },
      "lightrag": {
        "enabled": true,
        "status": "online",
        "files_indexed": 8020,
        "url": "http://127.0.0.1:6150"
      },
      "cloud_relay": {
        "connected": true,
        "authenticated": true
      },
      "context_status": {
        "summary": "ok",
        "target_context": 65536,
        "providers": [
          {
            "provider": "ollama",
            "status": "ok",
            "actual_context": 131072,
            "target_context": 65536,
            "model": "deepseek-r1:7b"
          },
          {
            "provider": "lmstudio",
            "status": "ok",
            "actual_context": 262144,
            "target_context": 65536,
            "model": "verdict-4-35b-toolterse-v5-mlx"
          },
          {
            "provider": "llamacpp",
            "status": "context_unknown",
            "actual_context": null,
            "target_context": 65536,
            "model": null
          }
        ]
      }
    },
    "gatewayAfter": {
      "status": "healthy",
      "service": "local_gateway",
      "mode": "full",
      "port": 6120,
      "timestamp": "2026-10-16T12:28:58.037256+00:00",
      "uptime_seconds": 4978.507859945297,
      "server_start_time": 1792148759.529398,
      "git_sha": "8fd6e78eed8972be1b897c1665177b04e989b0f5",
      "build_time": "2026-10-16T07:05:23-04:00",
      "version": "8fd6e78eed8972be1b897c1665177b04e989b0f5",
      "interop_min": 1,
      "interop_max": 1,
      "dependencies": {
        "event_stream": "http://localhost:6102"
      },
      "lightrag": {
        "enabled": true,
        "status": "online",
        "files_indexed": 8020,
        "url": "http://127.0.0.1:6150"
      },
      "cloud_relay": {
        "connected": true,
        "authenticated": true
      },
      "context_status": {
        "summary": "ok",
        "target_context": 65536,
        "providers": [
          {
            "provider": "ollama",
            "status": "ok",
            "actual_context": 131072,
            "target_context": 65536,
            "model": "deepseek-r1:7b"
          },
          {
            "provider": "lmstudio",
            "status": "ok",
            "actual_context": 262144,
            "target_context": 65536,
            "model": "verdict-4-35b-toolterse-v5-mlx"
          },
          {
            "provider": "llamacpp",
            "status": "context_unknown",
            "actual_context": null,
            "target_context": 65536,
            "model": null
          }
        ]
      }
    },
    "rawArtifacts": "artifacts/agent_comparison_completion_repair_20261016/matrix/20261016T122849Z_aider_byok_zai_glm-5.3-flash_417eeb",
    "rawResultSha256": "8ef55b6729b3530ecf9e81a72577666e08aef4762f3bb5dbe569853202ca0da7",
    "rawEvidenceHashes": {
      "health_before.json": "6dee02f3db6bb4800c14a64f24bd7ff847490d30d46e9ec1ef671bb8f1a69bdc",
      "stdout.txt": "0baabe490ceccfe608c0e5e7cda4f6f29b5d52c3662115d40e647c94ca08c9bf",
      "policy.json": "aa2362c5aaad91ed6dc21abdc1030403e87157de1bc1675908f2559b29adbdc9",
      "health_after.json": "1efd9c0723c90b4ced7d91c9cee3fca32433b80a610a7abe3090ee2fe6869c51",
      "model_preflight.json": "748411648fed77c30cb2d14783d744e38de039b56420a5df9f46751d092fee9e",
      "sandbox_preflight.json": "8415d156075475eba2b82a04636f833e85484020de5e6424f6140cd0ac61390f",
      "budget_ledger_at_terminal.json": "4214c3988d162e1db075c770718c28b6379069e36e21d55de5f4d9f6d1f8dcf9",
      "prompt.txt": "6c229fd3a8dda211432b4ff70838fa0cb73b325bc778da52ab0cdd280619a5fe",
      "ddc8e7981d904be2b3d6b2ee50fd9c11.timing.json": "ed93c62b0c2a8870ad0c7a7ba29541286e0d4cd1c0e0f7783b1510e076f839e2",
      "oracle.stdout.txt": "5b22a02f39f6be766ee28b0cdfca80c3244449283a14f0786cda512f6659a6fd",
      "ddc8e7981d904be2b3d6b2ee50fd9c11.http.json": "1e59a50dc3d6db42e13fba247a3fe83c1a939e105d6bf1b3c8004d504062e05e",
      "sandbox.sb": "0e0bcdf38d65e991edfc739fa50cdad8f72cc98c0a28b8deeaa983c483e38112",
      "stderr.txt": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
      "ddc8e7981d904be2b3d6b2ee50fd9c11.request.json": "391df3ea3b84955507ee2649a8db7ec9e585af446d4e7300f10018da14e4ccd4",
      "reasoning_preflight.json": "bf989a20ecee480e99a526bd9bbcec4a110bd3148371f1b6ed6010d2f2ae1926",
      "launch.json": "89a739a23a6711b0f32742f98124244ab14c2dfadfb328eaea663619edeeb4d2",
      "ddc8e7981d904be2b3d6b2ee50fd9c11.response.txt": "18951072bfcc5cbd3cd28ed057085a324e5c6f450bd6237a7440574b73f90981",
      "invocation.json": "12ee84a1f838f6998b6614277352a28957da7d56f9dc805fefb17ee341615a0e",
      "oracle.stderr.txt": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
      "freeze.json": "13597e3d5ecd37507586a25091b2916dfe8075f937b8ece0e0e39efc64611cf9",
      "product_source.json": "975f3a00f185e9b85bc682c1cd4328ef3095d688906de32290374354438c2ef7",
      "workspace/aider_model_metadata.json": "65fdb697b19fba7c305e50470dd2ab65675867ecfd638667e5872bdc1bb8b945",
      "workspace/solution.py": "ce7b6f78cf574e1d06273d160aaf9c8def40a58f4473665d778e916e70e2a7a0",
      "workspace/chat_history.md": "599d91fad522fb0cd26f0d9437717be258eac93566868a20ed7dd899eceee9e3",
      "workspace/aider_settings.yml": "0ab3f3d66000a8c8e9fcdaaa1f2019f963abc701b8612e662e123d22ed78b413"
    },
    "productSource": {
      "head": "29c79e665a08eac9d03bda26de1e0f8eddccccb9",
      "files": {
        "scripts/benchmarks/agent_comparison_rerun_20261016.py": "c625b691551051e1f0a3d8dea1fbb3ea6db797578005f86122099572c7acb0b0",
        "tools/verdict-code/verdict_code/agent.py": "d69203aaa46e6b60f35dd5ca3b99d1e1566abb7f0ba604430469530434af7b28",
        "tools/verdict-code/verdict_code/tools/__init__.py": "609350f15bbdec4099405afe9ddddddf7b2caa7d2d03cc53e0276d6ab8d3bd57",
        "tools/verdict-code/verdict_code/main.py": "a85ce7b0392f06dccf14062386096285766aa7ecd8c9d8203aca63fe2f9a9c37",
        "tools/verdict-code/VERSION": "178a491d1c5069072fa1764932d4babf4df7a814c007eb0994d49d70be18d08c"
      }
    },
    "protocol": {
      "schema": "agent_comparison_rerun_policy.v1",
      "temperature": 0.0,
      "timeout_seconds": 240,
      "per_request_output_tokens": 8192,
      "proxy_shared_max_input_tokens": 160000,
      "proxy_shared_max_output_tokens": 32000,
      "proxy_reservation": "entire request UTF8 bytes +32/message+128; providerusage settled after eachcall; failclosed ifmissing",
      "maximum_input_tokens": 160000,
      "total_token_budget": 400000,
      "max_turns": 24,
      "proxy_read_timeout_seconds": 270,
      "verdict_stream_idle_timeout_seconds": 240,
      "aider_request_timeout_seconds": 240,
      "reasoning": {
        "mode": "effort",
        "effort": "low"
      },
      "models": "exact pins, no failover",
      "task_file": "solution.py",
      "hidden_oracle_fed_to_agent": false,
      "producer_location": "outside candidate workspace; candidate read denied",
      "aider_context": "live exact catalog context metadata; history ceiling=min(inputbudget,context/2)",
      "appendix_model_changed": false
    }
  }
}
