{
  "_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-0183",
    "kind": "work",
    "objective": "Lane 8 of the connections layer: identity-scoped authority, typed operations, fallback order. Capability tokens carry an identity ceiling (none < bot < service < owner) and dispatch refuses an owner-identity row under a lower ceiling; every directory row with a connection_id must carry a non-empty input_schema or the row test fails; operations name an ordered list of connections and dispatch walks it on failure, recording which one delivered.",
    "detail": "Design context in bridge/client-bridge/HANDOFF.md. Sending as the owner must require a higher grant than sending as a bot. The executor-health chain in the capability control plane is the precedent for the walk; here the order is stored on the operation. Refusals are ledgered with the ceiling that stopped them.",
    "state": "superseded",
    "priority": 1,
    "revision": 2,
    "depends_on": [
      "WT-0176",
      "WT-0177"
    ],
    "permitted_capabilities": [
      "CODE_LEASE_START",
      "CODE_LEASE_COMMIT",
      "DEPLOY_LEASE",
      "D1_QUERY",
      "DIR_PATCH",
      "LOCAL_EXEC",
      "KV_PUT_JSON",
      "KV_GET_JSON",
      "CAP_MINT",
      "CAP_EXPLAIN"
    ],
    "acceptance_tests": [
      {
        "id": "schema_enforced",
        "type": "sql_count_at_least",
        "sql": "SELECT COUNT(*) FROM directory WHERE connection_id IS NOT NULL AND connection_id<>'' AND input_schema IS NOT NULL AND input_schema<>''",
        "min": 40
      },
      {
        "id": "no_untyped",
        "type": "sql_count_at_least",
        "sql": "SELECT CASE WHEN COUNT(*)=0 THEN 1 ELSE 0 END FROM directory WHERE connection_id IS NOT NULL AND connection_id<>'' AND enabled=1 AND (input_schema IS NULL OR input_schema='')",
        "min": 1
      },
      {
        "id": "ceiling_documented",
        "type": "contains",
        "url": "/api/directory/CAP_EXPLAIN",
        "needle": "identity_ceiling",
        "scope": "raw"
      },
      {
        "id": "fallback_order",
        "type": "sql_count_at_least",
        "sql": "SELECT COUNT(*) FROM operation_connections",
        "min": 10
      },
      {
        "id": "evidence",
        "type": "evidence_present",
        "field": "refused_owner_send_trace"
      }
    ],
    "required_evidence": [
      "refused_owner_send_trace",
      "fallback_walk_trace"
    ],
    "parent_task": null,
    "supersedes": null,
    "failure": null,
    "failure_count": 0,
    "last_result": null,
    "completed_at": null,
    "created_at": "2026-09-10T22:36:03-07:00",
    "updated_at": "2026-09-10T23:10:59-07:00",
    "audit": "/api/work/task/WT-0183/audit",
    "submit_to": "/api/work/task/WT-0183/submit"
  }
}