{
  "schema": "dispatch-package-entry-wiring-audit.wiring_matrix.v1",
  "ts_kst": "2026-05-20 14:50 KST",
  "audit_mode": "read-only · evidence-from-source",
  "audit_method": "grep+sed source-of-truth — dispatch_callback_contract symbols + +49 era callback_owner_enforcer symbols + cokacdir --cron invocation sites + build_prompt/dispatch function bodies",
  "two_systems_observed": {
    "system_A_pre_existing_2553plus49": {
      "modules": [
        "dispatch/callback_owner_enforcer.py (30119B)",
        "dispatch/cron_dispatch_guard.py (21498B)",
        "dispatch/executor_completion_contract.py (7855B)",
        "anu_v3/callback_owner_validator.py",
        "anu_v3/self_collector_guard.py",
        "anu_v3/callback_4tuple_registry.py",
        "anu_v3/authoritative_verdict_selector.py",
        "anu_v3/writeback_binding_conflict_guard.py",
        "utils/normal_completion_callback_collector_entrypoint.py"
      ],
      "exposure": "dispatch.py shim + dispatch/core.py + dispatch/prompt.py facades (re-export)",
      "production_invocation": "NOT_INVOKED_BY_DISPATCH_INIT_PRODUCTION_PATH (dispatch/__init__.py:dispatch() 4336 lines · grep returns 0 hits for callback_owner_enforcer/enforce_callback_owner/guard_callback_registration/build_anu_owned/assert_collector·verify_post_registration_owner)"
    },
    "system_B_task_2614_2620": {
      "modules": [
        "anu_v3/dispatch_callback_contract.py (19342B · 11 callable symbols incl. assert_collector_key_is_independent_anu / classify_dispatch_contract / evaluate / RecoveryWatcher / run_self_check)",
        "schemas/dispatch_callback_contract.schema.json",
        "dispatch/normal_fallback_callback_helper.py (12878B · created 2553+49 era · task-2620 §2.1 ADDITIVE WIRING added defensive fail-closed call to assert_collector_key_is_independent_anu BEFORE producing cokacdir argv)",
        "scripts/run_batch_hold_adjudicator.py (sample dogfood entrypoint)",
        "tests/regression/test_dispatch_callback_contract.py"
      ],
      "exposure": "dispatch.py shim (task-2620 §2.1 ADDITIVE PATCH lines 50+) + dispatch/prompt.py facade (re-export build_anu_owned_callback_request/verify_post_registration_owner)",
      "production_invocation": "NOT_INVOKED_BY_DISPATCH_INIT_PRODUCTION_PATH (dispatch/__init__.py:dispatch() · grep returns 0 hits for dispatch_callback_contract / normal_fallback_callback_helper / assert_collector_key_is_independent_anu / build_anu_owned)"
    }
  },
  "production_dispatch_path_chain_verified": {
    "claude_md_daily_pattern": "python3 /home/jay/workspace/dispatch.py --team <team> --task-file <path> --level <normal|critical|security>",
    "actual_call_chain": [
      "dispatch.py shim (67 lines · sys.path inject + from dispatch.core import main)",
      "dispatch/core.py:main (re-export from dispatch import main)",
      "dispatch/__init__.py:main (line 4226)",
      "dispatch/__init__.py:dispatch (line 3282) — production fn",
      "dispatch/__init__.py:build_prompt (line 1924 · delegates to prompts.team_prompts.build_prompt)",
      "dispatch/__init__.py:3850 cmd = [cokacdir, --cron, prompt, --key BOT_KEYS[team]]",
      "subprocess.run(cmd) — external cokacdir invocation"
    ],
    "callback_owner_enforcement_in_chain": "NONE_CODE_LEVEL — dispatch/__init__.py 의 dispatch() 본체와 build_prompt 본체 어디에도 callback_owner_enforcer / dispatch_callback_contract / build_anu_owned_callback_request 호출 없음(grep 검증 0 hits). 강제는 prompt 내용(executor 에게 ANU-key callback 발사 지시) + 콜렉터 측 검증(callback_owner_enforcer 가 spawn 된 collector 세션에서 호출될 때)에 의존."
  },
  "per_site_classification": [
    {
      "site_id": "Site #1",
      "location": "dispatch.py shim — task-2620 §2.1 ADDITIVE PATCH (import 추가)",
      "classification": "SURFACE_REEXPORT_ONLY",
      "evidence": "import 만 추가 · production dispatch.dispatch() 가 본 shim 의 re-export 를 호출하지 않음 · 회장 caveat 정확",
      "production_effect": "외부 호출자가 'import dispatch' 후 dispatch.assert_collector_key_is_independent_anu 를 직접 사용할 때만 활성. 자동 enforce 아님."
    },
    {
      "site_id": "Site #2",
      "location": "dispatch/normal_fallback_callback_helper.py:build_anu_owned_callback_request (라인 148~169 § task-2620 §2.1 결선)",
      "classification": "WIRED_HELPER_BUILDER (내부 enforcement chain 정합 · 호출 시 fail-closed)",
      "evidence": "task-2620 §2.1 ADDITIVE WIRING이 assert_collector_key_is_independent_anu 를 defensive 호출 — 호출되면 PASS-only argv 만 산출. 그러나 production dispatch.dispatch() 가 본 helper 를 호출하지 않음(grep 0 hits).",
      "production_effect": "scripts/run_batch_hold_adjudicator.py (dogfood) 또는 명시적으로 dispatch.prompt facade 를 통해 helper 를 import 한 caller 에서만 활성. 일상 dispatch.py --team 경로에서는 미활성."
    },
    {
      "site_id": "scripts/run_batch_hold_adjudicator.py",
      "location": "task-2615 integration dogfood entrypoint",
      "classification": "WIRED_SCRIPT_ONLY (dogfood 한정)",
      "evidence": "import + 실 invoke trace 확인됨(task-2615 result.json actual_execution_proof)",
      "production_effect": "운영용 일상 dispatch 가 아닌 sample/dogfood 한정"
    },
    {
      "site_id": "tests/regression/test_dispatch_callback_contract.py",
      "location": "12 regression cases",
      "classification": "WIRED_TEST_ONLY",
      "evidence": "regression 12 cases PASS · runtime 검증 한정 (production 호출 없음)"
    },
    {
      "site_id": "dispatch/__init__.py:dispatch (line 3282)",
      "location": "production dispatch entry — 4336-line core",
      "classification": "NOT_WIRED (production critical gap)",
      "evidence": "grep 0 hits for dispatch_callback_contract/normal_fallback_callback_helper/callback_owner_enforcer/assert_collector_key_is_independent_anu/build_anu_owned_callback_request — production dispatch path 에 code-level callback owner enforcement 게이트 부재"
    },
    {
      "site_id": "dispatch/__init__.py:build_prompt (line 1924)",
      "location": "prompt 조립 entry",
      "classification": "NOT_WIRED",
      "evidence": "prompts.team_prompts.build_prompt 로 delegate · callback contract 호출 없음"
    },
    {
      "site_id": "dispatch/core.py",
      "location": "facade",
      "classification": "SURFACE_REEXPORT_ONLY",
      "evidence": "from dispatch.callback_owner_enforcer + dispatch.cron_dispatch_guard re-export · 본체 dispatch 함수가 그 symbol을 호출하지 않음"
    },
    {
      "site_id": "dispatch/prompt.py",
      "location": "facade",
      "classification": "SURFACE_REEXPORT_ONLY",
      "evidence": "build_anu_owned_callback_request + verify_post_registration_owner re-export · 본체 build_prompt 가 호출하지 않음"
    },
    {
      "site_id": "S03~S07 (task-2620 OUT_OF_SCOPE_DOCUMENTED 5 사이트)",
      "location": "task-2620 runtime-wiring-audit.json 참조",
      "classification": "UNKNOWN_NEEDS_FOLLOWUP (본 audit scope 외 · backlog 유지)",
      "evidence": "task-2620 audit 가 OUT_OF_SCOPE_DOCUMENTED 로 표기 · 본 audit 는 dispatch package entry 에 집중하여 S03~S07 재평가 미수행(별도 backlog)"
    }
  ],
  "callback_contract_enforcement_check": {
    "normal_callback_mandatory": {
      "code_level_at_dispatch_time": false,
      "prompt_level": true,
      "evidence": "dispatch prompt 내용이 executor 에게 ANU-key normal callback 발사 지시 · code 게이트 부재"
    },
    "anu_key_fallback_safety_net_mandatory": {
      "code_level_at_dispatch_time": false,
      "live_anu_manual_registration": true,
      "evidence": "live ANU 가 dispatch 시점에 별도 cokacdir --cron 으로 수동 등록 · dispatch.dispatch() 자체는 fallback 등록 0"
    },
    "fallback_recovery_only_no_dual_purpose": {
      "doctrine_persisted": true,
      "memory": "feedback_no_dual_purpose_watcher_260520",
      "code_enforcement": false,
      "evidence": "정책 박제됨 · 자동 enforce 코드 없음 · 수동 준수 의존"
    },
    "normal_received_cancel_on_success": {
      "code_level": false,
      "manual": true,
      "evidence": "collector adjudication 시 ANU 가 수동으로 cancel"
    }
  },
  "summary": {
    "production_wide_wiring": "NOT_CONFIRMED — 회장 task-2620 caveat 정확. 두 callback enforcement 시스템(+49 era · task-2614/2620) 모두 production dispatch.dispatch() 본체에 code-level 결선 0. 강제는 prompt-instruction + collector-side validation + live ANU 수동 등록에 의존.",
    "site_2_meaning": "helper 내부 enforcement chain 은 정합(invoke 되면 fail-closed) — 그러나 production dispatch.dispatch() 가 helper 를 호출하지 않으므로 production-wide 결선 아님.",
    "wiring_gap_severity": "non-Critical HIGH (defense-in-depth absent · 활성 침해/credential write 없음 · prompt-based + collector-side 검증으로 운영상 작동해옴). Critical7 진성 false (forbidden-path/credential/permission expansion 활성 위반 아님).",
    "system_works_because": "(1) dispatch prompt 가 ANU-key callback 발사를 텍스트로 명시 (2) collector_owner_enforcer 모듈이 callback 발사된 후 collector 세션에서 invoke 되어 fail-closed (3) live ANU 가 dispatch 시점 fallback safety-net 수동 등록 — code-level dispatch-time gate 부재의 공백을 정책/수동/사후 검증이 메워옴"
  }
}
