{
  "_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": "WF-0013",
    "kind": "failure",
    "objective": "Repair: batch test executed an outbound send",
    "detail": "A failure object attached to WT-0184. Close it by enforcing the missing invariant at the shared layer, repairing every affected object, adding the regression test and the deploy blocker, then submitting runtime evidence.",
    "state": "completed",
    "priority": 1,
    "revision": 5,
    "depends_on": [],
    "permitted_capabilities": [
      "capability-census",
      "capability-invoke",
      "D1_QUERY",
      "LOCAL_EXEC"
    ],
    "acceptance_tests": [
      {
        "type": "sql_count_at_least",
        "sql": "SELECT COUNT(*) FROM discovered_capabilities WHERE executor IN ('shortcuts-run','jxa','app-intent','open-url','http-replay')",
        "min": 200
      },
      {
        "type": "sql_count_at_least",
        "sql": "SELECT COUNT(*) FROM discovered_capabilities WHERE executor IN ('shortcuts-run','jxa') AND verified=1",
        "min": 10
      },
      {
        "type": "contains",
        "url": "https://miscsubjects.com/api/events/unified",
        "needle": "not_found"
      },
      {
        "type": "contains",
        "url": "https://miscsubjects.com/api/capability-census",
        "needle": "shortcuts-run"
      },
      {
        "type": "evidence_present",
        "field": "recorder_receipt"
      },
      {
        "type": "evidence_present",
        "field": "unified_sample"
      }
    ],
    "required_evidence": [
      "repair",
      "regression_test",
      "deploy_blocker",
      "repaired_objects",
      "runtime_evidence"
    ],
    "parent_task": "WT-0184",
    "supersedes": null,
    "failure": {
      "failure_class": "batch test executed an outbound send",
      "layer": "functions/_lib/invocation_record.js OUTWARD classifier — IMSG_SEND, IMSG_SEND_CHAT, IMSG_REPLY, IMSG_REACT_LATEST were not classified as outward, so POST /api/directory/<key>/test {run:true} ran them with their example arguments and four iMessages left the owner account (one heart tapback + Sounds good to the build test line, On my way to a 555 number, Running 10 minutes late to a 3-person group chat)",
      "missing_invariant": "a row that sends, reacts, edits, unsends or creates a chat on any messaging transport is outward and is never run by a test unless force=true",
      "repair": "OUTWARD extended with IMSG_ write verbs, IMESSAGE_SEND, HOME_, APPLE_SHORTCUT/JXA/SAFARI_JS, MAC_ GUI/HS/VM write verbs, DCAP_",
      "regression_test": "functions/_lib/invocation_record.test.mjs asserts testPlan(IMSG_SEND).runnable === false",
      "deploy_blocker": "the test file runs in the ship pre-phase",
      "repaired_objects": [
        "functions/_lib/invocation_record.js"
      ],
      "runtime_evidence": "chat.db rows 677500-677504 at 06:43-06:44 PDT 2026-09-11"
    },
    "failure_count": 0,
    "last_result": {
      "accepted": true,
      "tests_declared": 6,
      "tests_passed": 6,
      "tests_inherited_from": null,
      "results": [
        {
          "id": "sql_count_at_least",
          "ok": true,
          "detail": "count=1610 (need 200)"
        },
        {
          "id": "sql_count_at_least",
          "ok": true,
          "detail": "count=28 (need 10)"
        },
        {
          "id": "contains",
          "ok": true,
          "detail": "contains \"not_found\" in https://miscsubjects.com/api/events/unified (scope=content) → true"
        },
        {
          "id": "contains",
          "ok": true,
          "detail": "contains \"shortcuts-run\" in https://miscsubjects.com/api/capability-census (scope=content) → true"
        },
        {
          "id": "evidence_present",
          "ok": true,
          "detail": "checked against required_evidence",
          "evidence_field": "recorder_receipt"
        },
        {
          "id": "evidence_present",
          "ok": true,
          "detail": "checked against required_evidence",
          "evidence_field": "unified_sample"
        }
      ],
      "missing_evidence": []
    },
    "completed_at": "2026-09-11T07:02:28-07:00",
    "created_at": "2026-09-11T06:50:28-07:00",
    "updated_at": "2026-09-11T07:02:28-07:00",
    "audit": "/api/work/task/WF-0013/audit",
    "submit_to": "/api/work/task/WF-0013/submit"
  }
}