{
  "_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-0122",
    "kind": "work",
    "objective": "Give flows a transform step and an each step so compositions can build real composite capabilities",
    "detail": "Same objective as WT-0114, whose acceptance test was written against /api/dispatch?invoke= unauthenticated and answered 401 — the acceptance runner holds no credentials, so the test could never pass. That was the third test in this batch written against a surface the runner cannot reach; the lesson is that an acceptance test must hit a genuinely public surface or query DB server-side. Proof is now server-side: QUAKE_PLACE is a real flow row whose content is 'QUAKE_FEED: $1|5 > JSON: $.features[0].properties.place', and the directory test lane records what it actually returned. A short extracted value in last_response, rather than the multi-kilobyte geojson the HTTP row returns, is the evidence that JSON: reached inside the response.",
    "state": "completed",
    "priority": 2,
    "revision": 5,
    "depends_on": [],
    "permitted_capabilities": [
      "D1_QUERY",
      "DIR_GET",
      "DIR_PATCH",
      "FILE_GET",
      "FILE_PUT"
    ],
    "acceptance_tests": [
      {
        "id": "flow_row_exists",
        "type": "sql_count_at_least",
        "sql": "SELECT count(*) FROM directory WHERE key='QUAKE_PLACE' AND type='flow' AND content LIKE '%JSON:%'",
        "min": 1
      },
      {
        "id": "extraction_actually_happened",
        "type": "sql_count_at_least",
        "sql": "SELECT count(*) FROM directory WHERE key='QUAKE_PLACE' AND test_state LIKE '%works%' AND length(IFNULL(last_response,''))BETWEEN 1 AND 300 AND last_response NOT LIKE '%FeatureCollection%'",
        "min": 1
      },
      {
        "id": "public_contract",
        "type": "http_ok",
        "url": "/api/directory/QUAKE_PLACE"
      }
    ],
    "required_evidence": [
      "flow_row_key",
      "composite_output",
      "no_new_fn_row"
    ],
    "parent_task": null,
    "supersedes": "WT-0114",
    "failure": null,
    "failure_count": 0,
    "last_result": {
      "accepted": true,
      "tests_declared": 3,
      "tests_passed": 3,
      "tests_inherited_from": null,
      "results": [
        {
          "id": "flow_row_exists",
          "ok": true,
          "detail": "count=1 (need 1)"
        },
        {
          "id": "extraction_actually_happened",
          "ok": true,
          "detail": "count=1 (need 1)"
        },
        {
          "id": "public_contract",
          "ok": true,
          "detail": "HTTP 200 https://miscsubjects.com/api/directory/QUAKE_PLACE"
        }
      ],
      "missing_evidence": []
    },
    "completed_at": "2026-09-06T08:42:52-07:00",
    "created_at": "2026-09-06T08:42:43-07:00",
    "updated_at": "2026-09-06T08:42:52-07:00",
    "audit": "/api/work/task/WT-0122/audit",
    "submit_to": "/api/work/task/WT-0122/submit"
  }
}