{
  "_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-0000",
    "kind": "migration",
    "objective": "Move operational authority out of CLAUDE.md, STATE.md, AGENTS.md and the supervising session into canonical infrastructure",
    "detail": "Dependencies removed: knowing what work exists (was STATE.md prose) → work_tasks rows; assignment and priority (was a Claude session) → leaseNext() with dependency resolution; permitted actions (was CLAUDE.md) → task.capabilities plus 54 law rows; acceptance (was an agent's assertion) → runAcceptance() executed by the infrastructure; failure recording (was a paragraph in a report) → child failure tasks; audit (was a chat transcript) → hash-chained work_actions mirrored into the event ledger; next action (was a model's judgement) → next_eligible_action computed from state, dependency and priority.",
    "state": "completed",
    "priority": 1,
    "revision": 5,
    "depends_on": [],
    "permitted_capabilities": [],
    "acceptance_tests": [
      {
        "id": "machine_projection",
        "type": "http_ok",
        "url": "/api/work"
      },
      {
        "id": "human_projection",
        "type": "http_ok",
        "url": "/a/the-work-object"
      },
      {
        "id": "cold_start",
        "type": "contains",
        "url": "/api/work/bootstrap",
        "needle": "no previous agent's report"
      },
      {
        "id": "law_published",
        "type": "contains",
        "url": "/a/agent-work-law",
        "needle": "Work exists only as a task object"
      },
      {
        "id": "skill_public",
        "type": "contains",
        "url": "/api/skills/agent-work-law",
        "needle": "agent-work-law"
      },
      {
        "id": "footer_links_it",
        "type": "contains",
        "url": "/a/the-work-object",
        "needle": "Agent work law"
      },
      {
        "id": "build_page_amended",
        "type": "contains",
        "url": "/a/the-build-end-to-end",
        "needle": "Who operates this build, and where its operating authority lives"
      },
      {
        "id": "invariants_live",
        "type": "sql_count_at_least",
        "sql": "SELECT COUNT(*) AS n FROM laws WHERE enabled=1",
        "min": 50
      },
      {
        "id": "tasks_exist",
        "type": "sql_count_at_least",
        "sql": "SELECT COUNT(*) AS n FROM work_tasks",
        "min": 39
      },
      {
        "id": "audit_chained",
        "type": "sql_count_at_least",
        "sql": "SELECT COUNT(*) AS n FROM work_actions",
        "min": 40
      },
      {
        "id": "cold_agent_completed_one",
        "type": "sql_count_at_least",
        "sql": "SELECT COUNT(*) AS n FROM work_actions WHERE agent='cold-sonnet' AND result='accepted'",
        "min": 1
      }
    ],
    "required_evidence": [
      "cold_agent_invocation",
      "leased_task",
      "acceptance_verdict",
      "audit_url",
      "pointer_files",
      "remaining_bypasses"
    ],
    "parent_task": null,
    "supersedes": null,
    "failure": null,
    "failure_count": 0,
    "last_result": {
      "accepted": true,
      "tests_declared": 11,
      "tests_passed": 11,
      "results": [
        {
          "id": "machine_projection",
          "ok": true,
          "detail": "HTTP 200 https://miscsubjects.com/api/work"
        },
        {
          "id": "human_projection",
          "ok": true,
          "detail": "HTTP 200 https://miscsubjects.com/a/the-work-object"
        },
        {
          "id": "cold_start",
          "ok": true,
          "detail": "contains \"no previous agent's report\" in https://miscsubjects.com/api/work/bootstrap → true"
        },
        {
          "id": "law_published",
          "ok": true,
          "detail": "contains \"Work exists only as a task object\" in https://miscsubjects.com/a/agent-work-law → true"
        },
        {
          "id": "skill_public",
          "ok": true,
          "detail": "contains \"agent-work-law\" in https://miscsubjects.com/api/skills/agent-work-law → true"
        },
        {
          "id": "footer_links_it",
          "ok": true,
          "detail": "contains \"Agent work law\" in https://miscsubjects.com/a/the-work-object → true"
        },
        {
          "id": "build_page_amended",
          "ok": true,
          "detail": "contains \"Who operates this build, and where its operating authority l\" in https://miscsubjects.com/a/the-build-end-to-end → true"
        },
        {
          "id": "invariants_live",
          "ok": true,
          "detail": "count=54 (need 50)"
        },
        {
          "id": "tasks_exist",
          "ok": true,
          "detail": "count=40 (need 39)"
        },
        {
          "id": "audit_chained",
          "ok": true,
          "detail": "count=46 (need 40)"
        },
        {
          "id": "cold_agent_completed_one",
          "ok": true,
          "detail": "count=1 (need 1)"
        }
      ],
      "missing_evidence": []
    },
    "lease": null,
    "completed_at": "2026-08-04T16:54:51-07:00",
    "created_at": "2026-08-04T16:54:49-07:00",
    "updated_at": "2026-08-04T16:54:51-07:00",
    "audit": "/api/work/task/WT-0000/audit",
    "submit_to": "/api/work/task/WT-0000/submit"
  }
}