{
  "_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-0151",
    "kind": "work",
    "objective": "Ship the capability control plane end to end: normalized verb namespace, executor registry seeded from the device-control repo ontology, resolver, and an observe-act-verify-receipt invoke loop that promotes verified capabilities into the directory.",
    "detail": "The build is the control plane; the researched repos (Beeper CLI, platform-imessage, Baileys, Playwright/CDP, Appium/WDA, iPhone Mirroring, Tart, CUA, Stagehand, LOCAL_EXEC, AppleScript) are horizontal executors it selects between. Proven live with real, non-destructive invocations on the attached Mac: DEVICE.EXEC (resolved to local-exec, verified act_ok) and APP.ACT app.open (resolved to osascript-ax, observe-before/after state transition verified), each receipted; DEVICE.EXEC promoted candidate->verified->stable->directory row DCAP_DEVICE_EXEC_MAC.",
    "state": "completed",
    "priority": 1,
    "revision": 5,
    "depends_on": [],
    "permitted_capabilities": [],
    "acceptance_tests": [
      {
        "id": "invoke_live",
        "type": "http_ok",
        "url": "/api/capability-invoke"
      },
      {
        "id": "control_plane",
        "type": "contains",
        "url": "/api/capability-invoke",
        "needle": "control_plane",
        "scope": "raw"
      },
      {
        "id": "page_section",
        "type": "contains",
        "url": "/device-capability-ledger",
        "needle": "The control plane",
        "scope": "raw"
      },
      {
        "id": "executors",
        "type": "sql_count_at_least",
        "sql": "SELECT COUNT(*) FROM capability_executors",
        "min": 40
      },
      {
        "id": "verified_invocations",
        "type": "sql_count_at_least",
        "sql": "SELECT COUNT(*) FROM capability_invocations WHERE result='verified'",
        "min": 3
      },
      {
        "id": "stable",
        "type": "sql_count_at_least",
        "sql": "SELECT COUNT(*) FROM discovered_capabilities WHERE lifecycle='stable'",
        "min": 1
      },
      {
        "id": "promoted",
        "type": "sql_count_at_least",
        "sql": "SELECT COUNT(*) FROM directory WHERE key LIKE 'DCAP_%'",
        "min": 1
      }
    ],
    "required_evidence": [
      "invocation_receipts",
      "promoted_directory_key"
    ],
    "parent_task": "WT-0145",
    "supersedes": null,
    "failure": null,
    "failure_count": 0,
    "last_result": {
      "accepted": true,
      "tests_declared": 7,
      "tests_passed": 7,
      "tests_inherited_from": null,
      "results": [
        {
          "id": "invoke_live",
          "ok": true,
          "detail": "HTTP 200 https://miscsubjects.com/api/capability-invoke"
        },
        {
          "id": "control_plane",
          "ok": true,
          "detail": "contains \"control_plane\" in https://miscsubjects.com/api/capability-invoke (scope=raw) → true"
        },
        {
          "id": "page_section",
          "ok": true,
          "detail": "contains \"The control plane\" in https://miscsubjects.com/device-capability-ledger (scope=raw) → true"
        },
        {
          "id": "executors",
          "ok": true,
          "detail": "count=72 (need 40)"
        },
        {
          "id": "verified_invocations",
          "ok": true,
          "detail": "count=4 (need 3)"
        },
        {
          "id": "stable",
          "ok": true,
          "detail": "count=1 (need 1)"
        },
        {
          "id": "promoted",
          "ok": true,
          "detail": "count=1 (need 1)"
        }
      ],
      "missing_evidence": []
    },
    "completed_at": "2026-09-07T22:43:38-07:00",
    "created_at": "2026-09-07T22:43:36-07:00",
    "updated_at": "2026-09-07T22:43:38-07:00",
    "audit": "/api/work/task/WT-0151/audit",
    "submit_to": "/api/work/task/WT-0151/submit"
  }
}