{
  "_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-0128",
    "kind": "work",
    "objective": "The browser conversation relay: a reply from any logged-in browser model lands in the build as a durable turn with a receipt, and a browser model can call Directory capabilities by emitting tags, without copy and paste",
    "detail": "Successor of WT-0126 (whose acceptance SQL lost its string quotes in transit). Shipped as the browser-model gateway (bridge/webmodel worker over CDP + functions/_lib/webmodel_gateway.js) and the relay lane (WEBMODEL_AGENT, functions/_lib/webmodel_relay.js). Capture is the provider stream end plus DOM, recorded per turn as capture_method. Proven live 2026-09-06: relay receipt inv_uwnn7ketmh.",
    "state": "completed",
    "priority": 3,
    "revision": 5,
    "depends_on": [],
    "permitted_capabilities": [
      "WEBMODEL_SEND",
      "WEBMODEL_AGENT",
      "D1_QUERY",
      "LEDGER_QUERY"
    ],
    "acceptance_tests": [
      {
        "id": "captured_turns_exist",
        "type": "sql_count_at_least",
        "sql": "SELECT count(*) FROM webmodel_turns WHERE status = 'complete' AND capture_method IS NOT NULL",
        "min": 5
      },
      {
        "id": "more_than_one_vendor",
        "type": "sql_count_at_least",
        "sql": "SELECT count(DISTINCT provider) FROM webmodel_turns WHERE status = 'complete'",
        "min": 3
      },
      {
        "id": "relay_contract_public",
        "type": "http_ok",
        "url": "/api/dispatch?key=WEBMODEL_AGENT"
      },
      {
        "id": "send_contract_public",
        "type": "http_ok",
        "url": "/api/dispatch?key=WEBMODEL_SEND"
      }
    ],
    "required_evidence": [
      "capture_method",
      "one_captured_turn",
      "dispatched_result"
    ],
    "parent_task": null,
    "supersedes": "WT-0126",
    "failure": null,
    "failure_count": 0,
    "last_result": {
      "accepted": true,
      "tests_declared": 4,
      "tests_passed": 4,
      "tests_inherited_from": null,
      "results": [
        {
          "id": "captured_turns_exist",
          "ok": true,
          "detail": "count=37 (need 5)"
        },
        {
          "id": "more_than_one_vendor",
          "ok": true,
          "detail": "count=4 (need 3)"
        },
        {
          "id": "relay_contract_public",
          "ok": true,
          "detail": "HTTP 200 https://miscsubjects.com/api/dispatch?key=WEBMODEL_AGENT"
        },
        {
          "id": "send_contract_public",
          "ok": true,
          "detail": "HTTP 200 https://miscsubjects.com/api/dispatch?key=WEBMODEL_SEND"
        }
      ],
      "missing_evidence": []
    },
    "completed_at": "2026-09-06T11:55:30-07:00",
    "created_at": "2026-09-06T11:55:17-07:00",
    "updated_at": "2026-09-06T11:55:30-07:00",
    "audit": "/api/work/task/WT-0128/audit",
    "submit_to": "/api/work/task/WT-0128/submit"
  }
}