{
  "_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-0107",
    "kind": "work",
    "objective": "The public projection is the primitive of the build: tenant integrations stubbed, content data and one-off scripts excluded, narrative comments and paragraphs removed, every JavaScript file re-parsed, and the manifest proves it",
    "detail": "Owner direction 2026-09-02: the public repository must be the actual technology, not the operator's use of it, with all diary aspects removed before publishing. scripts/publish-mirror.mjs gains a profile: name-based exclusion of the owner's business integrations with stubs at every path the kernel imports (same export names, throw with the path when used), exclusion of content-seeding migrations, protocol primer bodies, session reports, one-off scripts, plans and doctrine skills, a comment scanner that removes narrative comments from JavaScript (state machine over strings, templates, regex literals) and full-line comment groups from SQL, shell, YAML and TOML, a Markdown paragraph filter, in-string marker removal, transforms of failure-vault.json and gates.manifest.json, and two new gates: syntax (every JavaScript file parses as an ES module) and diary (no narrative marker survives anywhere). The manifest at /img/projection/latest.json carries profile.name, stubbed_modules_count, comments_removed and all_gates_ok.",
    "state": "completed",
    "priority": 2,
    "revision": 5,
    "depends_on": [],
    "permitted_capabilities": [
      "git",
      "gh",
      "node scripts/publish-mirror.mjs",
      "PUT /api/r2/img/projection/*",
      "POST /api/coding-law/start",
      "POST /api/coding-law/commit"
    ],
    "acceptance_tests": [
      {
        "id": "manifest_served",
        "type": "http_ok",
        "url": "/img/projection/latest.json"
      },
      {
        "id": "manifest_all_gates_ok",
        "type": "contains",
        "url": "/img/projection/latest.json",
        "needle": "\"all_gates_ok\": true",
        "scope": "raw"
      },
      {
        "id": "manifest_is_primitive",
        "type": "contains",
        "url": "/img/projection/latest.json",
        "needle": "\"name\": \"primitive\"",
        "scope": "raw"
      },
      {
        "id": "manifest_counts_stubs",
        "type": "contains",
        "url": "/img/projection/latest.json",
        "needle": "\"stubbed_modules_count\": ",
        "scope": "raw"
      },
      {
        "id": "manifest_counts_removed_comments",
        "type": "contains",
        "url": "/img/projection/latest.json",
        "needle": "\"comments_removed\": ",
        "scope": "raw"
      },
      {
        "id": "manifest_syntax_gate_present",
        "type": "contains",
        "url": "/img/projection/latest.json",
        "needle": "\"name\": \"syntax\"",
        "scope": "raw"
      },
      {
        "id": "manifest_diary_gate_present",
        "type": "contains",
        "url": "/img/projection/latest.json",
        "needle": "\"name\": \"diary\"",
        "scope": "raw"
      },
      {
        "id": "manifest_records_mirror_commit",
        "type": "contains",
        "url": "/img/projection/latest.json",
        "needle": "\"mirror_commit\": \"",
        "scope": "raw"
      },
      {
        "id": "ledger_mirror_not_projected",
        "type": "not_contains",
        "url": "/img/projection/latest.json",
        "needle": "\"path\": \"ledger-mirror/",
        "scope": "raw"
      },
      {
        "id": "evidence_mirror_commit",
        "type": "evidence_present",
        "field": "mirror_commit"
      }
    ],
    "required_evidence": [
      "mirror_repository",
      "mirror_commit",
      "source_commit",
      "content_hash",
      "gates_passed",
      "stubs",
      "removed",
      "docs_written",
      "manifest_url"
    ],
    "parent_task": null,
    "supersedes": "WT-0106",
    "failure": null,
    "failure_count": 0,
    "last_result": {
      "accepted": true,
      "tests_declared": 10,
      "tests_passed": 10,
      "tests_inherited_from": null,
      "results": [
        {
          "id": "manifest_served",
          "ok": true,
          "detail": "HTTP 200 https://miscsubjects.com/img/projection/latest.json"
        },
        {
          "id": "manifest_all_gates_ok",
          "ok": true,
          "detail": "contains \"\\\"all_gates_ok\\\": true\" in https://miscsubjects.com/img/projection/latest.json (scope=raw) → true"
        },
        {
          "id": "manifest_is_primitive",
          "ok": true,
          "detail": "contains \"\\\"name\\\": \\\"primitive\\\"\" in https://miscsubjects.com/img/projection/latest.json (scope=raw) → true"
        },
        {
          "id": "manifest_counts_stubs",
          "ok": true,
          "detail": "contains \"\\\"stubbed_modules_count\\\": \" in https://miscsubjects.com/img/projection/latest.json (scope=raw) → true"
        },
        {
          "id": "manifest_counts_removed_comments",
          "ok": true,
          "detail": "contains \"\\\"comments_removed\\\": \" in https://miscsubjects.com/img/projection/latest.json (scope=raw) → true"
        },
        {
          "id": "manifest_syntax_gate_present",
          "ok": true,
          "detail": "contains \"\\\"name\\\": \\\"syntax\\\"\" in https://miscsubjects.com/img/projection/latest.json (scope=raw) → true"
        },
        {
          "id": "manifest_diary_gate_present",
          "ok": true,
          "detail": "contains \"\\\"name\\\": \\\"diary\\\"\" in https://miscsubjects.com/img/projection/latest.json (scope=raw) → true"
        },
        {
          "id": "manifest_records_mirror_commit",
          "ok": true,
          "detail": "contains \"\\\"mirror_commit\\\": \\\"\" in https://miscsubjects.com/img/projection/latest.json (scope=raw) → true"
        },
        {
          "id": "ledger_mirror_not_projected",
          "ok": true,
          "detail": "not_contains \"\\\"path\\\": \\\"ledger-mirror/\" in https://miscsubjects.com/img/projection/latest.json (scope=raw) → false"
        },
        {
          "id": "evidence_mirror_commit",
          "ok": true,
          "detail": "checked against required_evidence",
          "evidence_field": "mirror_commit"
        }
      ],
      "missing_evidence": []
    },
    "completed_at": "2026-09-02T20:15:58-07:00",
    "created_at": "2026-09-02T20:14:10-07:00",
    "updated_at": "2026-09-02T20:15:58-07:00",
    "audit": "/api/work/task/WT-0107/audit",
    "submit_to": "/api/work/task/WT-0107/submit"
  }
}