{
  "schema": "agent-rerun-receipt.v1",
  "record": {
    "id": "20261016T122849Z_aider_byok_qwen_qwen3-coder-flash_0cda6e",
    "taskId": "retry-after-v1",
    "taskTitle": "Strict HTTP Retry-After parser (synthetic test input)",
    "agent": "aider",
    "requestedModel": "byok/qwen/qwen3-coder-flash",
    "resolvedModel": "byok/qwen/qwen3-coder-flash",
    "wallSeconds": 11.421,
    "inputTokens": 847,
    "outputTokens": 529,
    "totalTokens": 1376,
    "costUsd": 0.0010475999999999999,
    "energyWh": null,
    "assertionsPassed": 16,
    "assertionsTotal": 20,
    "observedNativeModel": null,
    "modelIdentityStatus": null,
    "modelIdentityEvidence": null,
    "providerResponseModel": null,
    "reasoningEffort": "default",
    "family": "matched-harness",
    "status": "FAIL",
    "tier": "cloud/BYOK",
    "diagnosticOnly": false,
    "comparisonEligible": true,
    "cohort": "historical-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_qwen_qwen3-coder-flash_0cda6e.json",
    "archived": true
  },
  "sourceRecord": {
    "id": "20261016T122849Z_aider_byok_qwen_qwen3-coder-flash_0cda6e",
    "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/qwen/qwen3-coder-flash",
    "resolvedModel": "byok/qwen/qwen3-coder-flash",
    "status": "FAIL",
    "wallSeconds": 11.421,
    "inputTokens": 847,
    "outputTokens": 529,
    "totalTokens": 1376,
    "costUsd": 0.0010475999999999999,
    "energyWh": null,
    "assertionsPassed": 16,
    "assertionsTotal": 20,
    "observedCodePass": false,
    "exitCode": 0,
    "evidencePaths": [
      "artifacts/agent_comparison_completion_repair_20261016/matrix/20261016T122849Z_aider_byok_qwen_qwen3-coder-flash_0cda6e"
    ],
    "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.626105
    },
    "mutableRuntimeFiles": [
      "budget_ledger.json"
    ],
    "terminalBudgetSnapshot": "budget_ledger_at_terminal.json",
    "rawStatus": "FAIL",
    "metadataTransportDiagnosticCount": 0,
    "diagnosticOnly": false,
    "tokenSource": "provider",
    "accountingComplete": true,
    "identityVerified": true,
    "providerCallCount": 1,
    "partialInputTokens": 847,
    "partialOutputTokens": 529,
    "partialTotalTokens": 1376,
    "partialEstimatedCostUsd": 0.0010475999999999999,
    "reportedAdditiveReasoningTokens": null,
    "reportedReasoningTokens": null,
    "allCallsReportReasoning": false,
    "tokensPerSecond": 120.48,
    "knownTokensIncludingAdditiveReasoning": 1376,
    "knownTokensIncludingAdditiveReasoningPerSecond": 120.48,
    "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": "default"
      },
      "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": "default",
    "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_qwen_qwen3-coder-flash_0cda6e.json",
    "publicEvidenceSha256": "6c9454372e1fe1332ef20ca7d097be69ba545d19b9bac48cf7f89435cff537f0"
  },
  "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_qwen_qwen3-coder-flash_0cda6e/budget_ledger.json",
      "sha256": "ab31e5c561f98e3cfb4570a2b36257f24ce3cb4465655fae63c05e705e8971c5",
      "bytes": 116
    },
    {
      "path": "artifacts/agent_comparison_completion_repair_20261016/matrix/20261016T122849Z_aider_byok_qwen_qwen3-coder-flash_0cda6e/budget_ledger_at_terminal.json",
      "sha256": "ab31e5c561f98e3cfb4570a2b36257f24ce3cb4465655fae63c05e705e8971c5",
      "bytes": 116
    },
    {
      "path": "artifacts/agent_comparison_completion_repair_20261016/matrix/20261016T122849Z_aider_byok_qwen_qwen3-coder-flash_0cda6e/daf33c0c90774d0db1880d0505641b01.http.json",
      "sha256": "1e59a50dc3d6db42e13fba247a3fe83c1a939e105d6bf1b3c8004d504062e05e",
      "bytes": 103
    },
    {
      "path": "artifacts/agent_comparison_completion_repair_20261016/matrix/20261016T122849Z_aider_byok_qwen_qwen3-coder-flash_0cda6e/daf33c0c90774d0db1880d0505641b01.request.json",
      "sha256": "a6d9d5b916308b07b32be8baf17b9c19ce13717d66f8e1e36ec149b079e88e73",
      "bytes": 4501
    },
    {
      "path": "artifacts/agent_comparison_completion_repair_20261016/matrix/20261016T122849Z_aider_byok_qwen_qwen3-coder-flash_0cda6e/daf33c0c90774d0db1880d0505641b01.response.txt",
      "sha256": "efacfa2989a0fc5f9fe482a9016ce85450e581e57ef7c78782f0a0ecf6668970",
      "bytes": 42456
    },
    {
      "path": "artifacts/agent_comparison_completion_repair_20261016/matrix/20261016T122849Z_aider_byok_qwen_qwen3-coder-flash_0cda6e/daf33c0c90774d0db1880d0505641b01.timing.json",
      "sha256": "ffd297f2265607f9e3f84a357d16ccc17704d206a78837a220fe97f4d8ed2333",
      "bytes": 306
    },
    {
      "path": "artifacts/agent_comparison_completion_repair_20261016/matrix/20261016T122849Z_aider_byok_qwen_qwen3-coder-flash_0cda6e/freeze.json",
      "sha256": "a0ab47e09d8b61c344dac63c060a58f6006e737e0a2329f8d68a4dd97561266e",
      "bytes": 313,
      "content": "{\n  \"task_sha256\": \"6c229fd3a8dda211432b4ff70838fa0cb73b325bc778da52ab0cdd280619a5fe\",\n  \"oracle_sha256\": \"3675736119622cac168d711045426c6678bd08212b9bedf1aab71126a7ef1a76\",\n  \"starter_sha256\": \"595a2a41e7bfd09ad28045cb3be95f0126d702eb25e6f53c723c0b77c46b44e2\",\n  \"frozen_before_execution_at\": 1792153729.626105\n}",
      "contentRedacted": false,
      "publishedContentSha256": "a0ab47e09d8b61c344dac63c060a58f6006e737e0a2329f8d68a4dd97561266e"
    },
    {
      "path": "artifacts/agent_comparison_completion_repair_20261016/matrix/20261016T122849Z_aider_byok_qwen_qwen3-coder-flash_0cda6e/health_after.json",
      "sha256": "d73404ec34126a8473ab4f21394e732b9ff920dabaca4c4fcc0f1855d08ef910",
      "bytes": 1326
    },
    {
      "path": "artifacts/agent_comparison_completion_repair_20261016/matrix/20261016T122849Z_aider_byok_qwen_qwen3-coder-flash_0cda6e/health_before.json",
      "sha256": "67db0289ddc6bbfe0ada06c0f07cc2340a925b9177c9a01b2965a1c08c185a36",
      "bytes": 1326
    },
    {
      "path": "artifacts/agent_comparison_completion_repair_20261016/matrix/20261016T122849Z_aider_byok_qwen_qwen3-coder-flash_0cda6e/invocation.json",
      "sha256": "e23959731be03bc5ca24d854be1bc45c3491433e1369520c6f0f4e5d935c6aae",
      "bytes": 2023
    },
    {
      "path": "artifacts/agent_comparison_completion_repair_20261016/matrix/20261016T122849Z_aider_byok_qwen_qwen3-coder-flash_0cda6e/launch.json",
      "sha256": "d14ef4068cbf01dc607bf3ff6b75e08694580a0cad66865de4c5fc3857918713",
      "bytes": 175
    },
    {
      "path": "artifacts/agent_comparison_completion_repair_20261016/matrix/20261016T122849Z_aider_byok_qwen_qwen3-coder-flash_0cda6e/model_preflight.json",
      "sha256": "204d481e1d7b44bb8ab4f51234c2c0f3d2c05b0a8a44c7f6509e67455614ba0e",
      "bytes": 1996
    },
    {
      "path": "artifacts/agent_comparison_completion_repair_20261016/matrix/20261016T122849Z_aider_byok_qwen_qwen3-coder-flash_0cda6e/oracle.stderr.txt",
      "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
      "bytes": 0,
      "content": "",
      "contentRedacted": false,
      "publishedContentSha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
    },
    {
      "path": "artifacts/agent_comparison_completion_repair_20261016/matrix/20261016T122849Z_aider_byok_qwen_qwen3-coder-flash_0cda6e/oracle.stdout.txt",
      "sha256": "e0180a4c9399877a08d38fcb87e9904b3b972503299d3ba2692de171d90689c1",
      "bytes": 1582,
      "content": "{\"passed\": 16, \"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\": 12, \"pass\": false}, {\"input\": \"\\u0661\\u0662\", \"expected\": null, \"actual\": 12, \"pass\": false}, {\"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\": 0, \"pass\": false}, {\"input\": \"Wed, 21 Oct 2015 07:28:01 GMT\", \"expected\": 2, \"actual\": 1, \"pass\": false}, {\"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": "e0180a4c9399877a08d38fcb87e9904b3b972503299d3ba2692de171d90689c1"
    },
    {
      "path": "artifacts/agent_comparison_completion_repair_20261016/matrix/20261016T122849Z_aider_byok_qwen_qwen3-coder-flash_0cda6e/policy.json",
      "sha256": "79464c36a3d2f7094195db502cd93bdd8f67ba27004c9c9e234b314828ed23d2",
      "bytes": 923,
      "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\": \"default\"\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": "79464c36a3d2f7094195db502cd93bdd8f67ba27004c9c9e234b314828ed23d2"
    },
    {
      "path": "artifacts/agent_comparison_completion_repair_20261016/matrix/20261016T122849Z_aider_byok_qwen_qwen3-coder-flash_0cda6e/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_qwen_qwen3-coder-flash_0cda6e/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_qwen_qwen3-coder-flash_0cda6e/result.json",
      "sha256": "9b28d03ceba9cfeb5106064a14b320f9966698548cf54296a9a79749217c72e4",
      "bytes": 3934
    },
    {
      "path": "artifacts/agent_comparison_completion_repair_20261016/matrix/20261016T122849Z_aider_byok_qwen_qwen3-coder-flash_0cda6e/sandbox.sb",
      "sha256": "7e3b065238380d5d333a7546656dd0e6ffb511f99fbc9312ae33463e1edebc3b",
      "bytes": 5767
    },
    {
      "path": "artifacts/agent_comparison_completion_repair_20261016/matrix/20261016T122849Z_aider_byok_qwen_qwen3-coder-flash_0cda6e/sandbox_preflight.json",
      "sha256": "8415d156075475eba2b82a04636f833e85484020de5e6424f6140cd0ac61390f",
      "bytes": 93
    },
    {
      "path": "artifacts/agent_comparison_completion_repair_20261016/matrix/20261016T122849Z_aider_byok_qwen_qwen3-coder-flash_0cda6e/stderr.txt",
      "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
      "bytes": 0
    },
    {
      "path": "artifacts/agent_comparison_completion_repair_20261016/matrix/20261016T122849Z_aider_byok_qwen_qwen3-coder-flash_0cda6e/stdout.txt",
      "sha256": "30903d6baecc605fbbb48392bb7ae537c6863df86054cf18a35347833cee5979",
      "bytes": 2618
    },
    {
      "path": "artifacts/agent_comparison_completion_repair_20261016/matrix/20261016T122849Z_aider_byok_qwen_qwen3-coder-flash_0cda6e/workspace/aider_model_metadata.json",
      "sha256": "ada82fdd18582891c3fcc8b8d9dcbe6c757d5b77fc8de800d876af9c5a12113d",
      "bytes": 191
    },
    {
      "path": "artifacts/agent_comparison_completion_repair_20261016/matrix/20261016T122849Z_aider_byok_qwen_qwen3-coder-flash_0cda6e/workspace/aider_settings.yml",
      "sha256": "4ba97a75a95360348572d83e0cb315a87a66d4a9dce25d9d60abb0ab6667ed49",
      "bytes": 187
    },
    {
      "path": "artifacts/agent_comparison_completion_repair_20261016/matrix/20261016T122849Z_aider_byok_qwen_qwen3-coder-flash_0cda6e/workspace/chat_history.md",
      "sha256": "f0c37aedd9d69d8292d884382c6c2b9aa3d88d880a2154a7704eab0ac796f60d",
      "bytes": 4719
    },
    {
      "path": "artifacts/agent_comparison_completion_repair_20261016/matrix/20261016T122849Z_aider_byok_qwen_qwen3-coder-flash_0cda6e/workspace/solution.py",
      "sha256": "110283f86957409dd60d2f4abc7fc335bf3aaca71f89b984001e3f898542351a",
      "bytes": 2190,
      "content": "import re\nfrom datetime import datetime, timezone\n\ndef retry_after(value, now):\n    \"\"\"Parse an HTTP Retry-After header according to the task contract.\"\"\"\n    # Handle numeric values\n    if isinstance(value, str):\n        # Strip whitespace and check if it's all ASCII digits\n        stripped = value.strip()\n        if re.match(r'^\\d+$', stripped):\n            return int(stripped)\n    \n    # Handle HTTP-date format\n    if isinstance(value, str):\n        # Check if it matches the expected format\n        # Format: \"Wed, 21 Oct 2015 07:28:00 GMT\"\n        pattern = r'^([A-Za-z]{3}), (\\d{2}) ([A-Za-z]{3}) (\\d{4}) (\\d{2}):(\\d{2}):(\\d{2}) GMT$'\n        match = re.match(pattern, value)\n        \n        if match:\n            # Extract components\n            weekday, day, month, year, hour, minute, second = match.groups()\n            \n            # Validate weekday (must match the actual date)\n            # Create a datetime object to check the weekday\n            try:\n                # Month names mapping\n                months = {\n                    'Jan': 1, 'Feb': 2, 'Mar': 3, 'Apr': 4,\n                    'May': 5, 'Jun': 6, 'Jul': 7, 'Aug': 8,\n                    'Sep': 9, 'Oct': 10, 'Nov': 11, 'Dec': 12\n                }\n                \n                month_num = months[month]\n                date_obj = datetime(\n                    int(year), \n                    month_num, \n                    int(day), \n                    int(hour), \n                    int(minute), \n                    int(second),\n                    tzinfo=timezone.utc\n                )\n                \n                # Check if the weekday matches\n                weekdays = ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']\n                expected_weekday = weekdays[date_obj.weekday()]\n                \n                if weekday != expected_weekday:\n                    return None\n                \n                # Calculate difference\n                diff = (date_obj - now).total_seconds()\n                return max(0, int(diff) if diff >= 0 else 0)\n                \n            except (ValueError, KeyError):\n                return None\n    \n    # Invalid input\n    return None\n",
      "contentRedacted": false,
      "publishedContentSha256": "110283f86957409dd60d2f4abc7fc335bf3aaca71f89b984001e3f898542351a"
    }
  ],
  "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_qwen_qwen3-coder-flash_0cda6e",
    "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.626105
    },
    "candidateCode": "import re\nfrom datetime import datetime, timezone\n\ndef retry_after(value, now):\n    \"\"\"Parse an HTTP Retry-After header according to the task contract.\"\"\"\n    # Handle numeric values\n    if isinstance(value, str):\n        # Strip whitespace and check if it's all ASCII digits\n        stripped = value.strip()\n        if re.match(r'^\\d+$', stripped):\n            return int(stripped)\n    \n    # Handle HTTP-date format\n    if isinstance(value, str):\n        # Check if it matches the expected format\n        # Format: \"Wed, 21 Oct 2015 07:28:00 GMT\"\n        pattern = r'^([A-Za-z]{3}), (\\d{2}) ([A-Za-z]{3}) (\\d{4}) (\\d{2}):(\\d{2}):(\\d{2}) GMT$'\n        match = re.match(pattern, value)\n        \n        if match:\n            # Extract components\n            weekday, day, month, year, hour, minute, second = match.groups()\n            \n            # Validate weekday (must match the actual date)\n            # Create a datetime object to check the weekday\n            try:\n                # Month names mapping\n                months = {\n                    'Jan': 1, 'Feb': 2, 'Mar': 3, 'Apr': 4,\n                    'May': 5, 'Jun': 6, 'Jul': 7, 'Aug': 8,\n                    'Sep': 9, 'Oct': 10, 'Nov': 11, 'Dec': 12\n                }\n                \n                month_num = months[month]\n                date_obj = datetime(\n                    int(year), \n                    month_num, \n                    int(day), \n                    int(hour), \n                    int(minute), \n                    int(second),\n                    tzinfo=timezone.utc\n                )\n                \n                # Check if the weekday matches\n                weekdays = ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']\n                expected_weekday = weekdays[date_obj.weekday()]\n                \n                if weekday != expected_weekday:\n                    return None\n                \n                # Calculate difference\n                diff = (date_obj - now).total_seconds()\n                return max(0, int(diff) if diff >= 0 else 0)\n                \n            except (ValueError, KeyError):\n                return None\n    \n    # Invalid input\n    return None\n",
    "oracle": {
      "passed": 16,
      "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": 12,
          "pass": false
        },
        {
          "input": "١٢",
          "expected": null,
          "actual": 12,
          "pass": false
        },
        {
          "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": 0,
          "pass": false
        },
        {
          "input": "Wed, 21 Oct 2015 07:28:01 GMT",
          "expected": 2,
          "actual": 1,
          "pass": false
        },
        {
          "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_qwen_qwen3-coder-flash_0cda6e/daf33c0c90774d0db1880d0505641b01.request.json",
        "requestSha256": "a6d9d5b916308b07b32be8baf17b9c19ce13717d66f8e1e36ec149b079e88e73",
        "responseSha256": "efacfa2989a0fc5f9fe482a9016ce85450e581e57ef7c78782f0a0ecf6668970",
        "httpStatus": 200,
        "requestedModel": "byok/qwen/qwen3-coder-flash",
        "resolvedModel": "byok/qwen/qwen3-coder-flash",
        "backendModel": "qwen/qwen3-coder-flash",
        "resolutionSource": "explicit_byok_route",
        "generationControls": {
          "max_tokens": 8192,
          "temperature": 0.0,
          "reasoning_choice": {
            "mode": "default"
          },
          "auto_failover": false,
          "stream": true
        },
        "inputTokens": 847,
        "outputTokens": 529,
        "totalTokens": 1376,
        "costUsd": 0.0010475999999999999,
        "energyWh": null,
        "finishReasons": [
          "stop"
        ],
        "additiveReasoningTokens": null,
        "nestedReasoningTokens": null
      }
    ],
    "gatewayBefore": {
      "status": "healthy",
      "service": "local_gateway",
      "mode": "full",
      "port": 6120,
      "timestamp": "2026-10-16T12:28:49.743015+00:00",
      "uptime_seconds": 4970.213618993759,
      "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:29:01.376997+00:00",
      "uptime_seconds": 4981.847601890564,
      "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_qwen_qwen3-coder-flash_0cda6e",
    "rawResultSha256": "9b28d03ceba9cfeb5106064a14b320f9966698548cf54296a9a79749217c72e4",
    "rawEvidenceHashes": {
      "health_before.json": "67db0289ddc6bbfe0ada06c0f07cc2340a925b9177c9a01b2965a1c08c185a36",
      "stdout.txt": "30903d6baecc605fbbb48392bb7ae537c6863df86054cf18a35347833cee5979",
      "policy.json": "79464c36a3d2f7094195db502cd93bdd8f67ba27004c9c9e234b314828ed23d2",
      "health_after.json": "d73404ec34126a8473ab4f21394e732b9ff920dabaca4c4fcc0f1855d08ef910",
      "daf33c0c90774d0db1880d0505641b01.timing.json": "ffd297f2265607f9e3f84a357d16ccc17704d206a78837a220fe97f4d8ed2333",
      "model_preflight.json": "204d481e1d7b44bb8ab4f51234c2c0f3d2c05b0a8a44c7f6509e67455614ba0e",
      "daf33c0c90774d0db1880d0505641b01.request.json": "a6d9d5b916308b07b32be8baf17b9c19ce13717d66f8e1e36ec149b079e88e73",
      "daf33c0c90774d0db1880d0505641b01.response.txt": "efacfa2989a0fc5f9fe482a9016ce85450e581e57ef7c78782f0a0ecf6668970",
      "sandbox_preflight.json": "8415d156075475eba2b82a04636f833e85484020de5e6424f6140cd0ac61390f",
      "budget_ledger_at_terminal.json": "ab31e5c561f98e3cfb4570a2b36257f24ce3cb4465655fae63c05e705e8971c5",
      "prompt.txt": "6c229fd3a8dda211432b4ff70838fa0cb73b325bc778da52ab0cdd280619a5fe",
      "oracle.stdout.txt": "e0180a4c9399877a08d38fcb87e9904b3b972503299d3ba2692de171d90689c1",
      "sandbox.sb": "7e3b065238380d5d333a7546656dd0e6ffb511f99fbc9312ae33463e1edebc3b",
      "stderr.txt": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
      "daf33c0c90774d0db1880d0505641b01.http.json": "1e59a50dc3d6db42e13fba247a3fe83c1a939e105d6bf1b3c8004d504062e05e",
      "launch.json": "d14ef4068cbf01dc607bf3ff6b75e08694580a0cad66865de4c5fc3857918713",
      "invocation.json": "e23959731be03bc5ca24d854be1bc45c3491433e1369520c6f0f4e5d935c6aae",
      "oracle.stderr.txt": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
      "freeze.json": "a0ab47e09d8b61c344dac63c060a58f6006e737e0a2329f8d68a4dd97561266e",
      "product_source.json": "975f3a00f185e9b85bc682c1cd4328ef3095d688906de32290374354438c2ef7",
      "workspace/aider_model_metadata.json": "ada82fdd18582891c3fcc8b8d9dcbe6c757d5b77fc8de800d876af9c5a12113d",
      "workspace/solution.py": "110283f86957409dd60d2f4abc7fc335bf3aaca71f89b984001e3f898542351a",
      "workspace/chat_history.md": "f0c37aedd9d69d8292d884382c6c2b9aa3d88d880a2154a7704eab0ac796f60d",
      "workspace/aider_settings.yml": "4ba97a75a95360348572d83e0cb315a87a66d4a9dce25d9d60abb0ab6667ed49"
    },
    "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": "default"
      },
      "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
    }
  }
}
