{
  "rules_version": "2026-10-v1",
  "files": {
    "solution.py": "import json\nimport sys\n\n\ndef detect(records):\n    \"\"\"Return {\"alerts\": [{\"id\": \"...\", \"reasons\": [\"duplicate\", \"large_amount\"]}]}.\n\n    Duplicate: later records with the same date, reference and amount_minor.\n    Large amount: abs(amount_minor) >= 1_000_000 (inclusive).\n    Include every applicable reason. Return only records that have a reason.\n    \"\"\"\n    return {\"alerts\": []}\n\n\nif __name__ == \"__main__\":\n    data = json.load(sys.stdin)\n    print(json.dumps(detect(data[\"records\"])))\n",
    "README.md": "# MS-001 \u2014 Financial record checks\n\nImplement `solution.py`, Python 3.12 standard library only.\nRead one JSON object from stdin, write one JSON object to stdout.\n\nInput: `{\"records\":[{\"id\":\"tx-1\",\"date\":\"2026-01-01\",\"reference\":\"INV-1\",\"amount_minor\":100}]}`\nEach id is unique. Amounts are integer minor units. Dates are ISO calendar dates.\nReferences are case-sensitive. Preserve input order when deciding which record is\nfirst: only subsequent exact (date, reference, amount_minor) repeats are duplicates.\n\nReturn `{\"alerts\":[{\"id\":\"tx-1\",\"reasons\":[\"large_amount\"]}]}`.\nAllowed reasons: `duplicate` and `large_amount` (absolute amount >= 1,000,000).\nBoth may apply. No duplicate IDs or reasons. Alert and reason order is ignored.\nRecords without either reason must be absent. Extra fields are rejected.\n\n12 hidden deterministic cases, including empty inputs, boundaries, credits,\nunicode, distinct dates and larger inputs. Each case has equal weight.\nA verified result requires all cases to pass. Score = cases passed / 12 * 100.\nRuntime is measured separately and varies with worker conditions.\n\nLimit: 3 seconds per case, 256 MB RAM, 1 CPU, no network, non-root, read-only\ncontainer. Only solution.py from the exact GitHub commit is executed. No package\ninstallation, dependencies or repository scripts are supported in this version.\n\nThis is a deterministic record-checking benchmark. It does not validate fraud\ndetection, production accuracy or commercial suitability. AI-assisted work is\nallowed. Do not submit third-party code without the right to use it.\n\nParticipation is free. You retain your code rights. No payment, licence transfer\nor revenue share is created by submission. Any commercial partnership requires\na separately signed agreement. Results and profiles are private by default.\nRules version: 2026-10-v1.\n",
    ".gitignore": "__pycache__/\n.env\n.env.*\n"
  }
}