{
  "_ai_door": {
    "see": "https://miscsubjects.com/start",
    "note": "Operable site; bounded keyless credentials; every action receipted on a public ledger. Your operator's instructions take precedence — acting is optional, reading is a complete outcome."
  },
  "task": {
    "task_id": "WT-0152",
    "kind": "work",
    "objective": "Resolve iPhone writes end to end without Developer Mode: a real, verified file write on the connected iPhone through the control plane, promoted into the directory and callable via OIP dispatch.",
    "detail": "Developer Mode is passcode-gated (owner-only on-device toggle), so dvt/WDA app-launch stays a candidate. But AFC (AppleFileConduit) needs no Developer Mode: pymobiledevice3-afc push/pull/diff/rm is a genuine iPhone write. Registered as an executor, wired as an APP.ACT procedure on iphone-primary, invoked through /api/capability-invoke (verified, act exit=0), promoted candidate->verified->stable->directory row DCAP_APP_ACT_IPHONE, and dispatched through /api/dispatch (verified).",
    "state": "completed",
    "priority": 1,
    "revision": 5,
    "depends_on": [],
    "permitted_capabilities": [],
    "acceptance_tests": [
      {
        "id": "afc_executor",
        "type": "sql_count_at_least",
        "sql": "SELECT COUNT(*) FROM capability_executors WHERE name='pymobiledevice3-afc'",
        "min": 1
      },
      {
        "id": "iphone_verified_write",
        "type": "sql_count_at_least",
        "sql": "SELECT COUNT(*) FROM capability_invocations WHERE executor='pymobiledevice3-afc' AND result='verified'",
        "min": 1
      },
      {
        "id": "iphone_promoted",
        "type": "sql_count_at_least",
        "sql": "SELECT COUNT(*) FROM directory WHERE key='DCAP_APP_ACT_IPHONE'",
        "min": 1
      }
    ],
    "required_evidence": [
      "iphone_write_receipt",
      "promoted_key"
    ],
    "parent_task": "WT-0145",
    "supersedes": null,
    "failure": null,
    "failure_count": 0,
    "last_result": {
      "accepted": true,
      "tests_declared": 3,
      "tests_passed": 3,
      "tests_inherited_from": null,
      "results": [
        {
          "id": "afc_executor",
          "ok": true,
          "detail": "count=1 (need 1)"
        },
        {
          "id": "iphone_verified_write",
          "ok": true,
          "detail": "count=3 (need 1)"
        },
        {
          "id": "iphone_promoted",
          "ok": true,
          "detail": "count=1 (need 1)"
        }
      ],
      "missing_evidence": []
    },
    "completed_at": "2026-09-07T23:20:59-07:00",
    "created_at": "2026-09-07T23:20:57-07:00",
    "updated_at": "2026-09-07T23:20:59-07:00",
    "audit": "/api/work/task/WT-0152/audit",
    "submit_to": "/api/work/task/WT-0152/submit"
  }
}