{
  "before": {
    "sha": "e4c315a896942c5138ab42e01efe2f86d9e0d0d6",
    "rows": [
      {
        "run": 0,
        "warmup": true,
        "elapsedMs": 45.608215,
        "nestedOrphanFound": true,
        "report": {
          "_tag": "Success",
          "value": {
            "trigger": "manual",
            "startedAt": "2026-11-30T14:08:10.379Z",
            "finishedAt": "2026-11-30T14:08:10.398Z",
            "entries": [
              {
                "kind": "worktree",
                "outcome": "kept",
                "reason": "No thread uses this worktree",
                "path": "$FIXTURE/data/worktrees/repository/replay/repo-wt",
                "projectPath": null,
                "threadId": null,
                "threadTitle": null,
                "bytes": 8192,
                "files": null
              }
            ],
            "counts": {
              "removed": 0,
              "kept": 1,
              "failed": 0
            },
            "omittedCount": 0,
            "bytesFreed": 0
          }
        },
        "spans": [
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "b98ee96862c76511bf3e364c9d0ffc80",
            "spanId": "cebf8a1d11c01fc9",
            "parentSpanId": "385fe0d7da267c81",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690378822373",
            "endTimeUnixNano": "1796047690378986458",
            "durationMs": 0.164085,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      WITH RECURSIVE retained_checkpoint_threads(thread_id) AS (\n        SELECT thread_id FROM orchestration_v2_projection_threads WHERE deleted_at IS NULL\n        UNION\n        SELECT json_extract(t\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.041,
              "db.client.connection.wait_time_ms": 0.059239
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanCheckpointRefs",
            "traceId": "b98ee96862c76511bf3e364c9d0ffc80",
            "spanId": "385fe0d7da267c81",
            "parentSpanId": "b31ca510df0a2895",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690378805638",
            "endTimeUnixNano": "1796047690379024395",
            "durationMs": 0.218757,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.retryLeftovers",
            "traceId": "b98ee96862c76511bf3e364c9d0ffc80",
            "spanId": "51fcc42273e9fce8",
            "parentSpanId": "b31ca510df0a2895",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690379041510",
            "endTimeUnixNano": "1796047690379133178",
            "durationMs": 0.091668,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveGitWorktreePath",
            "traceId": "b98ee96862c76511bf3e364c9d0ffc80",
            "spanId": "f06ba7c822b43d77",
            "parentSpanId": "fe327f1d125cf51c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690379177984",
            "endTimeUnixNano": "1796047690379402260",
            "durationMs": 0.224276,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveWorktreeT3Home",
            "traceId": "b98ee96862c76511bf3e364c9d0ffc80",
            "spanId": "fe327f1d125cf51c",
            "parentSpanId": "f220b09f695989ea",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690379169982",
            "endTimeUnixNano": "1796047690379422450",
            "durationMs": 0.252468,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "b98ee96862c76511bf3e364c9d0ffc80",
            "spanId": "cfdf913b7c5c5e21",
            "parentSpanId": "f220b09f695989ea",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690379695908",
            "endTimeUnixNano": "1796047690379821225",
            "durationMs": 0.125317,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n          SELECT t.payload_json, p.workspace_root AS \"workspaceRoot\"\n          FROM orchestration_v2_projection_threads t\n          JOIN projection_projects p ON p.project_id = t.project_id\n         \u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.038,
              "db.client.connection.wait_time_ms": 0.057967
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "BEGIN",
            "traceId": "b98ee96862c76511bf3e364c9d0ffc80",
            "spanId": "99bafcee879fe7d3",
            "parentSpanId": "06f382972801e0ae",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690379983678",
            "endTimeUnixNano": "1796047690380043728",
            "durationMs": 0.06005,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "BEGIN"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "b98ee96862c76511bf3e364c9d0ffc80",
            "spanId": "56f5319c9583ec00",
            "parentSpanId": "37c8b354c0e3dc1f",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690380154093",
            "endTimeUnixNano": "1796047690380306230",
            "durationMs": 0.152137,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n            SELECT\n              t.thread_id,\n              t.payload_json,\n              t.fork_run_ids_json,\n              CASE\n                WHEN json_extract(t.payload_json, '$.forkedFrom.type'\u2026[truncated]",
              "db.client.connection.wait_time_ms": 0.015423
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "b98ee96862c76511bf3e364c9d0ffc80",
            "spanId": "d9076f3429914fb4",
            "parentSpanId": "37c8b354c0e3dc1f",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690380343285",
            "endTimeUnixNano": "1796047690380404887",
            "durationMs": 0.061602,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n        SELECT MAX(sequence) AS snapshot_sequence\n        FROM orchestration_events\n        WHERE application_event_version = 2\n          AND aggregate_kind = 'thread'\n      ",
              "db.client.connection.wait_time_ms": 0.008814
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readShellSnapshotRows",
            "traceId": "b98ee96862c76511bf3e364c9d0ffc80",
            "spanId": "37c8b354c0e3dc1f",
            "parentSpanId": "06f382972801e0ae",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690380072701",
            "endTimeUnixNano": "1796047690380424807",
            "durationMs": 0.352106,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "COMMIT",
            "traceId": "b98ee96862c76511bf3e364c9d0ffc80",
            "spanId": "943157766c0a17fc",
            "parentSpanId": "06f382972801e0ae",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690380441402",
            "endTimeUnixNano": "1796047690380481642",
            "durationMs": 0.04024,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "COMMIT"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sql.transaction",
            "traceId": "b98ee96862c76511bf3e364c9d0ffc80",
            "spanId": "06f382972801e0ae",
            "parentSpanId": "df33e3a8aa24936c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690379914595",
            "endTimeUnixNano": "1796047690380507931",
            "durationMs": 0.593336,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.client.connection.wait_time_ms": 0.06067,
              "db.connection": "reader",
              "db.lock_wait_ms": 0.041
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.pendingBackgroundDataByThreadId",
            "traceId": "b98ee96862c76511bf3e364c9d0ffc80",
            "spanId": "946f81fc414e2e10",
            "parentSpanId": "cf30d2a1620547fd",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690380553600",
            "endTimeUnixNano": "1796047690380561561",
            "durationMs": 0.007961,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.decodeShellSnapshot",
            "traceId": "b98ee96862c76511bf3e364c9d0ffc80",
            "spanId": "cf30d2a1620547fd",
            "parentSpanId": "df33e3a8aa24936c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690380536915",
            "endTimeUnixNano": "1796047690380573730",
            "durationMs": 0.036815,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "b98ee96862c76511bf3e364c9d0ffc80",
            "spanId": "7fc40ecc702233e9",
            "parentSpanId": "05c57a491b63c54a",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690380613048",
            "endTimeUnixNano": "1796047690380753598",
            "durationMs": 0.14055,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.038,
              "db.client.connection.wait_time_ms": 0.048122
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectStoreV2.listShells",
            "traceId": "b98ee96862c76511bf3e364c9d0ffc80",
            "spanId": "05c57a491b63c54a",
            "parentSpanId": "df33e3a8aa24936c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690380582993",
            "endTimeUnixNano": "1796047690380856742",
            "durationMs": 0.273749,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.readThreads",
            "traceId": "b98ee96862c76511bf3e364c9d0ffc80",
            "spanId": "df33e3a8aa24936c",
            "parentSpanId": "f220b09f695989ea",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690379881495",
            "endTimeUnixNano": "1796047690380868620",
            "durationMs": 0.987125,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "b98ee96862c76511bf3e364c9d0ffc80",
            "spanId": "da1a39ecabf80d83",
            "parentSpanId": "f220b09f695989ea",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690380909261",
            "endTimeUnixNano": "1796047690381060457",
            "durationMs": 0.151196,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.048,
              "db.client.connection.wait_time_ms": 0.061712
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "b98ee96862c76511bf3e364c9d0ffc80",
            "spanId": "8b9359b54a3c595f",
            "parentSpanId": "6db449b81c26a134",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690381143301",
            "endTimeUnixNano": "1796047690381248398",
            "durationMs": 0.105097,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT DISTINCT json_extract(payload_json, '$.worktreePath') AS \"worktreePath\"\n      FROM orchestration_v2_projection_threads\n      WHERE json_extract(payload_json, '$.worktreePath') IS NOT NUL\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.045,
              "db.client.connection.wait_time_ms": 0.055172
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "b98ee96862c76511bf3e364c9d0ffc80",
            "spanId": "879ee0701d7322ec",
            "parentSpanId": "188f6a8de80f9a87",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690382738123",
            "endTimeUnixNano": "1796047690384122120",
            "durationMs": 1.383997,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "b98ee96862c76511bf3e364c9d0ffc80",
            "spanId": "188f6a8de80f9a87",
            "parentSpanId": "0a9b44ff6cb26d75",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690382570773",
            "endTimeUnixNano": "1796047690384935906",
            "durationMs": 2.365133,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "b98ee96862c76511bf3e364c9d0ffc80",
            "spanId": "0a9b44ff6cb26d75",
            "parentSpanId": "4d7376b7d8bc43cb",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690382515480",
            "endTimeUnixNano": "1796047690385135945",
            "durationMs": 2.620465,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/plain-notes",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "b98ee96862c76511bf3e364c9d0ffc80",
            "spanId": "343f65257e087a35",
            "parentSpanId": "2a05f52ed2e14d87",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690385415423",
            "endTimeUnixNano": "1796047690386799600",
            "durationMs": 1.384177,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "b98ee96862c76511bf3e364c9d0ffc80",
            "spanId": "2a05f52ed2e14d87",
            "parentSpanId": "244d1965a30fc359",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690385228573",
            "endTimeUnixNano": "1796047690387537603",
            "durationMs": 2.30903,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "b98ee96862c76511bf3e364c9d0ffc80",
            "spanId": "244d1965a30fc359",
            "parentSpanId": "4d7376b7d8bc43cb",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690385174943",
            "endTimeUnixNano": "1796047690387728628",
            "durationMs": 2.553685,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/plain-notes",
              "git.args_count": 3
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "b98ee96862c76511bf3e364c9d0ffc80",
            "spanId": "4d7376b7d8bc43cb",
            "parentSpanId": "6db449b81c26a134",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690382480127",
            "endTimeUnixNano": "1796047690387858533",
            "durationMs": 5.378406,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Failure",
              "cause": "GitCommandError: Git command failed in GitVcsDriver.listWorktreePaths ($FIXTURE/fx/plain-notes): Git command exited with a non-zero status. (not_a_repository)\n    at file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:1635:11\n    at executeWorktreeList (file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:7803:5)\n    at executeWorktreeList (definition) (file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:1681:38)\n    at StorageCleanup.reportOrphanWorktrees (file://$CHECKOUT/apps/server/src/storageCleanup.ts:1967:12)\n    at StorageCleanup.reportOrphanWorktrees (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:556:40)\n    at StorageCleanup.cleanWorktrees (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2193:37)\n    at StorageCleanup.cleanWorktrees (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:1208:33)\n    at StorageCleanup.sweep (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2293:24)\n    at StorageCleanup.sweep (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2162:24)\n    at DrainableWorker.makeDrainableWorker (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2290:25)\n    at DrainableWorker.makeDrainableWorker (definition) (file://$CHECKOUT/packages/shared/src/DrainableWorker.ts:20:43)"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "b98ee96862c76511bf3e364c9d0ffc80",
            "spanId": "b0462c69f3d778a2",
            "parentSpanId": "a84bb23c8d742407",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690388284048",
            "endTimeUnixNano": "1796047690389650169",
            "durationMs": 1.366121,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "b98ee96862c76511bf3e364c9d0ffc80",
            "spanId": "a84bb23c8d742407",
            "parentSpanId": "7cc302be46f7f4a0",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690388101225",
            "endTimeUnixNano": "1796047690390650694",
            "durationMs": 2.549469,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "b98ee96862c76511bf3e364c9d0ffc80",
            "spanId": "7cc302be46f7f4a0",
            "parentSpanId": "0a70327ee60e7ed2",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690388052432",
            "endTimeUnixNano": "1796047690390847578",
            "durationMs": 2.795146,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo/packages/app",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "b98ee96862c76511bf3e364c9d0ffc80",
            "spanId": "0a70327ee60e7ed2",
            "parentSpanId": "6db449b81c26a134",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690388026233",
            "endTimeUnixNano": "1796047690390868539",
            "durationMs": 2.842306,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "b98ee96862c76511bf3e364c9d0ffc80",
            "spanId": "9e3a2794c02f617e",
            "parentSpanId": "bcf563f2216cfa8c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690391142458",
            "endTimeUnixNano": "1796047690392585795",
            "durationMs": 1.443337,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "b98ee96862c76511bf3e364c9d0ffc80",
            "spanId": "bcf563f2216cfa8c",
            "parentSpanId": "15d4407add3943cf",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690390986726",
            "endTimeUnixNano": "1796047690393694211",
            "durationMs": 2.707485,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "b98ee96862c76511bf3e364c9d0ffc80",
            "spanId": "15d4407add3943cf",
            "parentSpanId": "67bd0476402ec7a6",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690390946335",
            "endTimeUnixNano": "1796047690393899928",
            "durationMs": 2.953593,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo-link",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "b98ee96862c76511bf3e364c9d0ffc80",
            "spanId": "67bd0476402ec7a6",
            "parentSpanId": "6db449b81c26a134",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690390903722",
            "endTimeUnixNano": "1796047690393923523",
            "durationMs": 3.019801,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "b98ee96862c76511bf3e364c9d0ffc80",
            "spanId": "e1643010894ecd09",
            "parentSpanId": "fd4b52b7ccf7ce8c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690394192485",
            "endTimeUnixNano": "1796047690395539127",
            "durationMs": 1.346642,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "b98ee96862c76511bf3e364c9d0ffc80",
            "spanId": "fd4b52b7ccf7ce8c",
            "parentSpanId": "be44fb50e715cd5e",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690394029541",
            "endTimeUnixNano": "1796047690396445210",
            "durationMs": 2.415669,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "b98ee96862c76511bf3e364c9d0ffc80",
            "spanId": "be44fb50e715cd5e",
            "parentSpanId": "0e6c8327a463295c",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690393988059",
            "endTimeUnixNano": "1796047690396648885",
            "durationMs": 2.660826,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "b98ee96862c76511bf3e364c9d0ffc80",
            "spanId": "0e6c8327a463295c",
            "parentSpanId": "6db449b81c26a134",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690393952777",
            "endTimeUnixNano": "1796047690396670577",
            "durationMs": 2.7178,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "b98ee96862c76511bf3e364c9d0ffc80",
            "spanId": "a08b19f2b8034340",
            "parentSpanId": "6db449b81c26a134",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690397049213",
            "endTimeUnixNano": "1796047690397098737",
            "durationMs": 0.049524,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "b98ee96862c76511bf3e364c9d0ffc80",
            "spanId": "bb6285b8209b2ebb",
            "parentSpanId": "6db449b81c26a134",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690397241730",
            "endTimeUnixNano": "1796047690397286587",
            "durationMs": 0.044857,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "b98ee96862c76511bf3e364c9d0ffc80",
            "spanId": "f0da64ed75474639",
            "parentSpanId": "6db449b81c26a134",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690397407087",
            "endTimeUnixNano": "1796047690397444633",
            "durationMs": 0.037546,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "b98ee96862c76511bf3e364c9d0ffc80",
            "spanId": "cdac2d9cf7ec4b0b",
            "parentSpanId": "6db449b81c26a134",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690397538183",
            "endTimeUnixNano": "1796047690397560336",
            "durationMs": 0.022153,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "storageCleanup.measureWorktree",
            "traceId": "b98ee96862c76511bf3e364c9d0ffc80",
            "spanId": "129745d032d15a10",
            "parentSpanId": "6db449b81c26a134",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690397596981",
            "endTimeUnixNano": "1796047690398094755",
            "durationMs": 0.497774,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.reportOrphanWorktrees",
            "traceId": "b98ee96862c76511bf3e364c9d0ffc80",
            "spanId": "6db449b81c26a134",
            "parentSpanId": "f220b09f695989ea",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690381127958",
            "endTimeUnixNano": "1796047690398141855",
            "durationMs": 17.013897,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanWorktrees",
            "traceId": "b98ee96862c76511bf3e364c9d0ffc80",
            "spanId": "f220b09f695989ea",
            "parentSpanId": "b31ca510df0a2895",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690379148951",
            "endTimeUnixNano": "1796047690398152160",
            "durationMs": 19.003209,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.sweep",
            "traceId": "b98ee96862c76511bf3e364c9d0ffc80",
            "spanId": "b31ca510df0a2895",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690378775193",
            "endTimeUnixNano": "1796047690398208344",
            "durationMs": 19.433151,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          }
        ]
      },
      {
        "run": 1,
        "warmup": true,
        "elapsedMs": 20.611441999999997,
        "nestedOrphanFound": true,
        "report": {
          "_tag": "Success",
          "value": {
            "trigger": "manual",
            "startedAt": "2026-11-30T14:08:10.400Z",
            "finishedAt": "2026-11-30T14:08:10.419Z",
            "entries": [
              {
                "kind": "worktree",
                "outcome": "kept",
                "reason": "No thread uses this worktree",
                "path": "$FIXTURE/data/worktrees/repository/replay/repo-wt",
                "projectPath": null,
                "threadId": null,
                "threadTitle": null,
                "bytes": 8192,
                "files": null
              }
            ],
            "counts": {
              "removed": 0,
              "kept": 1,
              "failed": 0
            },
            "omittedCount": 0,
            "bytesFreed": 0
          }
        },
        "spans": [
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "5fe7aec686dfc3f6aed492cf25c0fc03",
            "spanId": "49ffb2e9f4c3118b",
            "parentSpanId": "24325dce21cb9aaa",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690399995204",
            "endTimeUnixNano": "1796047690400165047",
            "durationMs": 0.169843,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      WITH RECURSIVE retained_checkpoint_threads(thread_id) AS (\n        SELECT thread_id FROM orchestration_v2_projection_threads WHERE deleted_at IS NULL\n        UNION\n        SELECT json_extract(t\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.046,
              "db.client.connection.wait_time_ms": 0.063565
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanCheckpointRefs",
            "traceId": "5fe7aec686dfc3f6aed492cf25c0fc03",
            "spanId": "24325dce21cb9aaa",
            "parentSpanId": "df6407dade28f622",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690399980882",
            "endTimeUnixNano": "1796047690400208542",
            "durationMs": 0.22766,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.retryLeftovers",
            "traceId": "5fe7aec686dfc3f6aed492cf25c0fc03",
            "spanId": "34ec0a1d1b315b2e",
            "parentSpanId": "df6407dade28f622",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690400230395",
            "endTimeUnixNano": "1796047690400323624",
            "durationMs": 0.093229,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveGitWorktreePath",
            "traceId": "5fe7aec686dfc3f6aed492cf25c0fc03",
            "spanId": "c100fc942254a4ab",
            "parentSpanId": "283ba02954c93fe4",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690400369573",
            "endTimeUnixNano": "1796047690400564043",
            "durationMs": 0.19447,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveWorktreeT3Home",
            "traceId": "5fe7aec686dfc3f6aed492cf25c0fc03",
            "spanId": "283ba02954c93fe4",
            "parentSpanId": "f08b83e6e1713427",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690400363153",
            "endTimeUnixNano": "1796047690400574058",
            "durationMs": 0.210905,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "5fe7aec686dfc3f6aed492cf25c0fc03",
            "spanId": "9bd43f9d6fd6a832",
            "parentSpanId": "f08b83e6e1713427",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690400791403",
            "endTimeUnixNano": "1796047690400907937",
            "durationMs": 0.116534,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n          SELECT t.payload_json, p.workspace_root AS \"workspaceRoot\"\n          FROM orchestration_v2_projection_threads t\n          JOIN projection_projects p ON p.project_id = t.project_id\n         \u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.038,
              "db.client.connection.wait_time_ms": 0.054502
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "BEGIN",
            "traceId": "5fe7aec686dfc3f6aed492cf25c0fc03",
            "spanId": "04903297eeb9a262",
            "parentSpanId": "8cee0878e5786f9d",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690401042689",
            "endTimeUnixNano": "1796047690401099113",
            "durationMs": 0.056424,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "BEGIN"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "5fe7aec686dfc3f6aed492cf25c0fc03",
            "spanId": "f2a2fe7514ed1d4e",
            "parentSpanId": "6970030a24e1386b",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690401204921",
            "endTimeUnixNano": "1796047690401418760",
            "durationMs": 0.213839,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n            SELECT\n              t.thread_id,\n              t.payload_json,\n              t.fork_run_ids_json,\n              CASE\n                WHEN json_extract(t.payload_json, '$.forkedFrom.type'\u2026[truncated]",
              "db.client.connection.wait_time_ms": 0.014191
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "5fe7aec686dfc3f6aed492cf25c0fc03",
            "spanId": "c84338934699073a",
            "parentSpanId": "6970030a24e1386b",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690401482666",
            "endTimeUnixNano": "1796047690401553652",
            "durationMs": 0.070986,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n        SELECT MAX(sequence) AS snapshot_sequence\n        FROM orchestration_events\n        WHERE application_event_version = 2\n          AND aggregate_kind = 'thread'\n      ",
              "db.client.connection.wait_time_ms": 0.009564
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readShellSnapshotRows",
            "traceId": "5fe7aec686dfc3f6aed492cf25c0fc03",
            "spanId": "6970030a24e1386b",
            "parentSpanId": "8cee0878e5786f9d",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690401127786",
            "endTimeUnixNano": "1796047690401573712",
            "durationMs": 0.445926,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "COMMIT",
            "traceId": "5fe7aec686dfc3f6aed492cf25c0fc03",
            "spanId": "4562df9a60b5f0cc",
            "parentSpanId": "8cee0878e5786f9d",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690401583897",
            "endTimeUnixNano": "1796047690401627793",
            "durationMs": 0.043896,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "COMMIT"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sql.transaction",
            "traceId": "5fe7aec686dfc3f6aed492cf25c0fc03",
            "spanId": "8cee0878e5786f9d",
            "parentSpanId": "c170b0647a71d6ae",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690400984542",
            "endTimeUnixNano": "1796047690401653691",
            "durationMs": 0.669149,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.client.connection.wait_time_ms": 0.050876,
              "db.connection": "reader",
              "db.lock_wait_ms": 0.033
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.pendingBackgroundDataByThreadId",
            "traceId": "5fe7aec686dfc3f6aed492cf25c0fc03",
            "spanId": "24f32cf8c0736c6b",
            "parentSpanId": "81878134ea7a7673",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690401700191",
            "endTimeUnixNano": "1796047690401706390",
            "durationMs": 0.006199,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.decodeShellSnapshot",
            "traceId": "5fe7aec686dfc3f6aed492cf25c0fc03",
            "spanId": "81878134ea7a7673",
            "parentSpanId": "c170b0647a71d6ae",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690401683165",
            "endTimeUnixNano": "1796047690401717497",
            "durationMs": 0.034332,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "5fe7aec686dfc3f6aed492cf25c0fc03",
            "spanId": "93e3c74740f25bfe",
            "parentSpanId": "c500ccab534e2b9e",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690401758528",
            "endTimeUnixNano": "1796047690401903705",
            "durationMs": 0.145177,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.038,
              "db.client.connection.wait_time_ms": 0.051136
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectStoreV2.listShells",
            "traceId": "5fe7aec686dfc3f6aed492cf25c0fc03",
            "spanId": "c500ccab534e2b9e",
            "parentSpanId": "c170b0647a71d6ae",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690401726630",
            "endTimeUnixNano": "1796047690401987700",
            "durationMs": 0.26107,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.readThreads",
            "traceId": "5fe7aec686dfc3f6aed492cf25c0fc03",
            "spanId": "c170b0647a71d6ae",
            "parentSpanId": "f08b83e6e1713427",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690400952834",
            "endTimeUnixNano": "1796047690402000229",
            "durationMs": 1.047395,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "5fe7aec686dfc3f6aed492cf25c0fc03",
            "spanId": "3a95e8e58a56ec20",
            "parentSpanId": "f08b83e6e1713427",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690402035962",
            "endTimeUnixNano": "1796047690402168901",
            "durationMs": 0.132939,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.032,
              "db.client.connection.wait_time_ms": 0.058187
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "5fe7aec686dfc3f6aed492cf25c0fc03",
            "spanId": "8c008a71c61053c8",
            "parentSpanId": "75f203cab98bfc9c",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690402240738",
            "endTimeUnixNano": "1796047690402377583",
            "durationMs": 0.136845,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT DISTINCT json_extract(payload_json, '$.worktreePath') AS \"worktreePath\"\n      FROM orchestration_v2_projection_threads\n      WHERE json_extract(payload_json, '$.worktreePath') IS NOT NUL\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.072,
              "db.client.connection.wait_time_ms": 0.082123
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "5fe7aec686dfc3f6aed492cf25c0fc03",
            "spanId": "52357527e39513b9",
            "parentSpanId": "1b38067e59783506",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690403664505",
            "endTimeUnixNano": "1796047690404942204",
            "durationMs": 1.277699,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "5fe7aec686dfc3f6aed492cf25c0fc03",
            "spanId": "1b38067e59783506",
            "parentSpanId": "6a94e9834706241a",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690403494481",
            "endTimeUnixNano": "1796047690405807697",
            "durationMs": 2.313216,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "5fe7aec686dfc3f6aed492cf25c0fc03",
            "spanId": "6a94e9834706241a",
            "parentSpanId": "90f06531390880eb",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690403451006",
            "endTimeUnixNano": "1796047690406038111",
            "durationMs": 2.587105,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/plain-notes",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "5fe7aec686dfc3f6aed492cf25c0fc03",
            "spanId": "0ca7ee82ec20996f",
            "parentSpanId": "2aa6dbf1782d9414",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690406315796",
            "endTimeUnixNano": "1796047690407581297",
            "durationMs": 1.265501,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "5fe7aec686dfc3f6aed492cf25c0fc03",
            "spanId": "2aa6dbf1782d9414",
            "parentSpanId": "675c91d388fc7d52",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690406129638",
            "endTimeUnixNano": "1796047690408422053",
            "durationMs": 2.292415,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "5fe7aec686dfc3f6aed492cf25c0fc03",
            "spanId": "675c91d388fc7d52",
            "parentSpanId": "90f06531390880eb",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690406075938",
            "endTimeUnixNano": "1796047690408642512",
            "durationMs": 2.566574,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/plain-notes",
              "git.args_count": 3
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "5fe7aec686dfc3f6aed492cf25c0fc03",
            "spanId": "90f06531390880eb",
            "parentSpanId": "75f203cab98bfc9c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690403414742",
            "endTimeUnixNano": "1796047690408730634",
            "durationMs": 5.315892,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Failure",
              "cause": "GitCommandError: Git command failed in GitVcsDriver.listWorktreePaths ($FIXTURE/fx/plain-notes): Git command exited with a non-zero status. (not_a_repository)\n    at file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:1635:11\n    at executeWorktreeList (file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:7803:5)\n    at executeWorktreeList (definition) (file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:1681:38)\n    at StorageCleanup.reportOrphanWorktrees (file://$CHECKOUT/apps/server/src/storageCleanup.ts:1967:12)\n    at StorageCleanup.reportOrphanWorktrees (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:556:40)\n    at StorageCleanup.cleanWorktrees (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2193:37)\n    at StorageCleanup.cleanWorktrees (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:1208:33)\n    at StorageCleanup.sweep (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2293:24)\n    at StorageCleanup.sweep (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2162:24)\n    at DrainableWorker.makeDrainableWorker (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2290:25)\n    at DrainableWorker.makeDrainableWorker (definition) (file://$CHECKOUT/packages/shared/src/DrainableWorker.ts:20:43)"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "5fe7aec686dfc3f6aed492cf25c0fc03",
            "spanId": "83acfae88f04b451",
            "parentSpanId": "c4f9f54bbc32516b",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690409113846",
            "endTimeUnixNano": "1796047690410253449",
            "durationMs": 1.139603,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "5fe7aec686dfc3f6aed492cf25c0fc03",
            "spanId": "c4f9f54bbc32516b",
            "parentSpanId": "4e04ea7abd20a616",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690408950512",
            "endTimeUnixNano": "1796047690411142437",
            "durationMs": 2.191925,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "5fe7aec686dfc3f6aed492cf25c0fc03",
            "spanId": "4e04ea7abd20a616",
            "parentSpanId": "7131515d859b0bff",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690408907799",
            "endTimeUnixNano": "1796047690411349666",
            "durationMs": 2.441867,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo/packages/app",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "5fe7aec686dfc3f6aed492cf25c0fc03",
            "spanId": "7131515d859b0bff",
            "parentSpanId": "75f203cab98bfc9c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690408886126",
            "endTimeUnixNano": "1796047690411371439",
            "durationMs": 2.485313,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "5fe7aec686dfc3f6aed492cf25c0fc03",
            "spanId": "52321dfa7c38ecb0",
            "parentSpanId": "eb6f2a603e1f943f",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690411611918",
            "endTimeUnixNano": "1796047690413288563",
            "durationMs": 1.676645,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "5fe7aec686dfc3f6aed492cf25c0fc03",
            "spanId": "eb6f2a603e1f943f",
            "parentSpanId": "58bdced3ccd9adc7",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690411460762",
            "endTimeUnixNano": "1796047690414604829",
            "durationMs": 3.144067,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "5fe7aec686dfc3f6aed492cf25c0fc03",
            "spanId": "58bdced3ccd9adc7",
            "parentSpanId": "20bb1d8da0ea89e6",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690411416236",
            "endTimeUnixNano": "1796047690414787853",
            "durationMs": 3.371617,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo-link",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "5fe7aec686dfc3f6aed492cf25c0fc03",
            "spanId": "20bb1d8da0ea89e6",
            "parentSpanId": "75f203cab98bfc9c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690411395475",
            "endTimeUnixNano": "1796047690414807412",
            "durationMs": 3.411937,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "5fe7aec686dfc3f6aed492cf25c0fc03",
            "spanId": "f8889cc3d336f108",
            "parentSpanId": "868047b3a11798e9",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690415035843",
            "endTimeUnixNano": "1796047690416308204",
            "durationMs": 1.272361,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "5fe7aec686dfc3f6aed492cf25c0fc03",
            "spanId": "868047b3a11798e9",
            "parentSpanId": "044ba563e4c8b2ff",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690414886180",
            "endTimeUnixNano": "1796047690417483720",
            "durationMs": 2.59754,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "5fe7aec686dfc3f6aed492cf25c0fc03",
            "spanId": "044ba563e4c8b2ff",
            "parentSpanId": "6a7d8180a0434093",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690414849745",
            "endTimeUnixNano": "1796047690417698621",
            "durationMs": 2.848876,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "5fe7aec686dfc3f6aed492cf25c0fc03",
            "spanId": "6a7d8180a0434093",
            "parentSpanId": "75f203cab98bfc9c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690414830527",
            "endTimeUnixNano": "1796047690417726233",
            "durationMs": 2.895706,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "5fe7aec686dfc3f6aed492cf25c0fc03",
            "spanId": "bf725345f8e441e6",
            "parentSpanId": "75f203cab98bfc9c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690418074803",
            "endTimeUnixNano": "1796047690418121503",
            "durationMs": 0.0467,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "5fe7aec686dfc3f6aed492cf25c0fc03",
            "spanId": "ab3bd71c4187611e",
            "parentSpanId": "75f203cab98bfc9c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690418253230",
            "endTimeUnixNano": "1796047690418310285",
            "durationMs": 0.057055,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "5fe7aec686dfc3f6aed492cf25c0fc03",
            "spanId": "24a0b2e51fea6b76",
            "parentSpanId": "75f203cab98bfc9c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690418441661",
            "endTimeUnixNano": "1796047690418472888",
            "durationMs": 0.031227,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "5fe7aec686dfc3f6aed492cf25c0fc03",
            "spanId": "5a50d1c264343453",
            "parentSpanId": "75f203cab98bfc9c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690418577004",
            "endTimeUnixNano": "1796047690418601340",
            "durationMs": 0.024336,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "storageCleanup.measureWorktree",
            "traceId": "5fe7aec686dfc3f6aed492cf25c0fc03",
            "spanId": "caf07f8150991304",
            "parentSpanId": "75f203cab98bfc9c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690418638816",
            "endTimeUnixNano": "1796047690419238852",
            "durationMs": 0.600036,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.reportOrphanWorktrees",
            "traceId": "5fe7aec686dfc3f6aed492cf25c0fc03",
            "spanId": "75f203cab98bfc9c",
            "parentSpanId": "f08b83e6e1713427",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690402228100",
            "endTimeUnixNano": "1796047690419292953",
            "durationMs": 17.064853,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanWorktrees",
            "traceId": "5fe7aec686dfc3f6aed492cf25c0fc03",
            "spanId": "f08b83e6e1713427",
            "parentSpanId": "df6407dade28f622",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690400339408",
            "endTimeUnixNano": "1796047690419305272",
            "durationMs": 18.965864,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.sweep",
            "traceId": "5fe7aec686dfc3f6aed492cf25c0fc03",
            "spanId": "df6407dade28f622",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690399954453",
            "endTimeUnixNano": "1796047690419359643",
            "durationMs": 19.40519,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          }
        ]
      },
      {
        "run": 2,
        "warmup": true,
        "elapsedMs": 21.804474999999996,
        "nestedOrphanFound": true,
        "report": {
          "_tag": "Success",
          "value": {
            "trigger": "manual",
            "startedAt": "2026-11-30T14:08:10.420Z",
            "finishedAt": "2026-11-30T14:08:10.441Z",
            "entries": [
              {
                "kind": "worktree",
                "outcome": "kept",
                "reason": "No thread uses this worktree",
                "path": "$FIXTURE/data/worktrees/repository/replay/repo-wt",
                "projectPath": null,
                "threadId": null,
                "threadTitle": null,
                "bytes": 8192,
                "files": null
              }
            ],
            "counts": {
              "removed": 0,
              "kept": 1,
              "failed": 0
            },
            "omittedCount": 0,
            "bytesFreed": 0
          }
        },
        "spans": [
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "76625b3cf928a4f62028c6ca92894327",
            "spanId": "cea75c23cb0a1570",
            "parentSpanId": "2a7ffc69ab3e2187",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690420608719",
            "endTimeUnixNano": "1796047690420795428",
            "durationMs": 0.186709,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      WITH RECURSIVE retained_checkpoint_threads(thread_id) AS (\n        SELECT thread_id FROM orchestration_v2_projection_threads WHERE deleted_at IS NULL\n        UNION\n        SELECT json_extract(t\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.047,
              "db.client.connection.wait_time_ms": 0.063575
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanCheckpointRefs",
            "traceId": "76625b3cf928a4f62028c6ca92894327",
            "spanId": "2a7ffc69ab3e2187",
            "parentSpanId": "e43fd058f8d390c0",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690420594778",
            "endTimeUnixNano": "1796047690420838202",
            "durationMs": 0.243424,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.retryLeftovers",
            "traceId": "76625b3cf928a4f62028c6ca92894327",
            "spanId": "1e0b4044d19506fa",
            "parentSpanId": "e43fd058f8d390c0",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690420858021",
            "endTimeUnixNano": "1796047690420950670",
            "durationMs": 0.092649,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveGitWorktreePath",
            "traceId": "76625b3cf928a4f62028c6ca92894327",
            "spanId": "307f70f33bf6496c",
            "parentSpanId": "f7baa2a75e59a680",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690420991721",
            "endTimeUnixNano": "1796047690421175546",
            "durationMs": 0.183825,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveWorktreeT3Home",
            "traceId": "76625b3cf928a4f62028c6ca92894327",
            "spanId": "f7baa2a75e59a680",
            "parentSpanId": "cccdefaf58b6ba45",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690420985131",
            "endTimeUnixNano": "1796047690421183497",
            "durationMs": 0.198366,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "76625b3cf928a4f62028c6ca92894327",
            "spanId": "a4d83ded36a34de1",
            "parentSpanId": "cccdefaf58b6ba45",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690421432449",
            "endTimeUnixNano": "1796047690421543275",
            "durationMs": 0.110826,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n          SELECT t.payload_json, p.workspace_root AS \"workspaceRoot\"\n          FROM orchestration_v2_projection_threads t\n          JOIN projection_projects p ON p.project_id = t.project_id\n         \u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.036,
              "db.client.connection.wait_time_ms": 0.051928
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "BEGIN",
            "traceId": "76625b3cf928a4f62028c6ca92894327",
            "spanId": "85a403f0ef8b089c",
            "parentSpanId": "ddab79c06bbf0f07",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690421670886",
            "endTimeUnixNano": "1796047690421720249",
            "durationMs": 0.049363,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "BEGIN"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "76625b3cf928a4f62028c6ca92894327",
            "spanId": "a896380cded701aa",
            "parentSpanId": "3001dab49ee42ec3",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690421822923",
            "endTimeUnixNano": "1796047690421920178",
            "durationMs": 0.097255,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n            SELECT\n              t.thread_id,\n              t.payload_json,\n              t.fork_run_ids_json,\n              CASE\n                WHEN json_extract(t.payload_json, '$.forkedFrom.type'\u2026[truncated]",
              "db.client.connection.wait_time_ms": 0.01331
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "76625b3cf928a4f62028c6ca92894327",
            "spanId": "d25c0a4300ede412",
            "parentSpanId": "3001dab49ee42ec3",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690421961470",
            "endTimeUnixNano": "1796047690422015170",
            "durationMs": 0.0537,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n        SELECT MAX(sequence) AS snapshot_sequence\n        FROM orchestration_events\n        WHERE application_event_version = 2\n          AND aggregate_kind = 'thread'\n      ",
              "db.client.connection.wait_time_ms": 0.007321
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readShellSnapshotRows",
            "traceId": "76625b3cf928a4f62028c6ca92894327",
            "spanId": "3001dab49ee42ec3",
            "parentSpanId": "ddab79c06bbf0f07",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690421746478",
            "endTimeUnixNano": "1796047690422033357",
            "durationMs": 0.286879,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "COMMIT",
            "traceId": "76625b3cf928a4f62028c6ca92894327",
            "spanId": "970d5522742e33e4",
            "parentSpanId": "ddab79c06bbf0f07",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690422042280",
            "endTimeUnixNano": "1796047690422067868",
            "durationMs": 0.025588,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "COMMIT"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sql.transaction",
            "traceId": "76625b3cf928a4f62028c6ca92894327",
            "spanId": "ddab79c06bbf0f07",
            "parentSpanId": "37da25bcf60e51d9",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690421616174",
            "endTimeUnixNano": "1796047690422090352",
            "durationMs": 0.474178,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.client.connection.wait_time_ms": 0.047951,
              "db.connection": "reader",
              "db.lock_wait_ms": 0.03
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.pendingBackgroundDataByThreadId",
            "traceId": "76625b3cf928a4f62028c6ca92894327",
            "spanId": "97239d7b276caca4",
            "parentSpanId": "b39bf44211c34be8",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690422137022",
            "endTimeUnixNano": "1796047690422143652",
            "durationMs": 0.00663,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.decodeShellSnapshot",
            "traceId": "76625b3cf928a4f62028c6ca92894327",
            "spanId": "b39bf44211c34be8",
            "parentSpanId": "37da25bcf60e51d9",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690422121379",
            "endTimeUnixNano": "1796047690422159265",
            "durationMs": 0.037886,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "76625b3cf928a4f62028c6ca92894327",
            "spanId": "34209a369c3b2082",
            "parentSpanId": "b572be35d72cb88d",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690422208539",
            "endTimeUnixNano": "1796047690422366004",
            "durationMs": 0.157465,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.041,
              "db.client.connection.wait_time_ms": 0.05354
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectStoreV2.listShells",
            "traceId": "76625b3cf928a4f62028c6ca92894327",
            "spanId": "b572be35d72cb88d",
            "parentSpanId": "37da25bcf60e51d9",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690422172355",
            "endTimeUnixNano": "1796047690422464681",
            "durationMs": 0.292326,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.readThreads",
            "traceId": "76625b3cf928a4f62028c6ca92894327",
            "spanId": "37da25bcf60e51d9",
            "parentSpanId": "cccdefaf58b6ba45",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690421586189",
            "endTimeUnixNano": "1796047690422477471",
            "durationMs": 0.891282,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "76625b3cf928a4f62028c6ca92894327",
            "spanId": "a3d5b0795ac18aa6",
            "parentSpanId": "cccdefaf58b6ba45",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690422510670",
            "endTimeUnixNano": "1796047690422629698",
            "durationMs": 0.119028,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.034,
              "db.client.connection.wait_time_ms": 0.048112
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "76625b3cf928a4f62028c6ca92894327",
            "spanId": "60887fe7bbedbc7c",
            "parentSpanId": "87da0061e6bb2873",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690422697229",
            "endTimeUnixNano": "1796047690422790368",
            "durationMs": 0.093139,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT DISTINCT json_extract(payload_json, '$.worktreePath') AS \"worktreePath\"\n      FROM orchestration_v2_projection_threads\n      WHERE json_extract(payload_json, '$.worktreePath') IS NOT NUL\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.04,
              "db.client.connection.wait_time_ms": 0.049724
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "76625b3cf928a4f62028c6ca92894327",
            "spanId": "53a96a914ed3de88",
            "parentSpanId": "1f54b58149379287",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690424061277",
            "endTimeUnixNano": "1796047690425345275",
            "durationMs": 1.283998,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "76625b3cf928a4f62028c6ca92894327",
            "spanId": "1f54b58149379287",
            "parentSpanId": "b217bada12264f0f",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690423897902",
            "endTimeUnixNano": "1796047690426163077",
            "durationMs": 2.265175,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "76625b3cf928a4f62028c6ca92894327",
            "spanId": "b217bada12264f0f",
            "parentSpanId": "b8a3ca55185481c6",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690423861608",
            "endTimeUnixNano": "1796047690426385278",
            "durationMs": 2.52367,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/plain-notes",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "76625b3cf928a4f62028c6ca92894327",
            "spanId": "b5595c2a371f675d",
            "parentSpanId": "d06bd1ce28bddbc1",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690426629884",
            "endTimeUnixNano": "1796047690427848705",
            "durationMs": 1.218821,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "76625b3cf928a4f62028c6ca92894327",
            "spanId": "d06bd1ce28bddbc1",
            "parentSpanId": "c081118f87ce29d3",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690426474722",
            "endTimeUnixNano": "1796047690428771714",
            "durationMs": 2.296992,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "76625b3cf928a4f62028c6ca92894327",
            "spanId": "c081118f87ce29d3",
            "parentSpanId": "b8a3ca55185481c6",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690426420441",
            "endTimeUnixNano": "1796047690428950681",
            "durationMs": 2.53024,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/plain-notes",
              "git.args_count": 3
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "76625b3cf928a4f62028c6ca92894327",
            "spanId": "b8a3ca55185481c6",
            "parentSpanId": "87da0061e6bb2873",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690423836280",
            "endTimeUnixNano": "1796047690429023159",
            "durationMs": 5.186879,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Failure",
              "cause": "GitCommandError: Git command failed in GitVcsDriver.listWorktreePaths ($FIXTURE/fx/plain-notes): Git command exited with a non-zero status. (not_a_repository)\n    at file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:1635:11\n    at executeWorktreeList (file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:7803:5)\n    at executeWorktreeList (definition) (file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:1681:38)\n    at StorageCleanup.reportOrphanWorktrees (file://$CHECKOUT/apps/server/src/storageCleanup.ts:1967:12)\n    at StorageCleanup.reportOrphanWorktrees (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:556:40)\n    at StorageCleanup.cleanWorktrees (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2193:37)\n    at StorageCleanup.cleanWorktrees (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:1208:33)\n    at StorageCleanup.sweep (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2293:24)\n    at StorageCleanup.sweep (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2162:24)\n    at DrainableWorker.makeDrainableWorker (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2290:25)\n    at DrainableWorker.makeDrainableWorker (definition) (file://$CHECKOUT/packages/shared/src/DrainableWorker.ts:20:43)"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "76625b3cf928a4f62028c6ca92894327",
            "spanId": "a52c80fa7ef1ee98",
            "parentSpanId": "6f9251cb89580b53",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690429398730",
            "endTimeUnixNano": "1796047690432668124",
            "durationMs": 3.269394,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "76625b3cf928a4f62028c6ca92894327",
            "spanId": "6f9251cb89580b53",
            "parentSpanId": "516a6b119cd10b03",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690429221265",
            "endTimeUnixNano": "1796047690433651273",
            "durationMs": 4.430008,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "76625b3cf928a4f62028c6ca92894327",
            "spanId": "516a6b119cd10b03",
            "parentSpanId": "69df79ce33a441fd",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690429181796",
            "endTimeUnixNano": "1796047690433868508",
            "durationMs": 4.686712,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo/packages/app",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "76625b3cf928a4f62028c6ca92894327",
            "spanId": "69df79ce33a441fd",
            "parentSpanId": "87da0061e6bb2873",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690429159703",
            "endTimeUnixNano": "1796047690433891462",
            "durationMs": 4.731759,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "76625b3cf928a4f62028c6ca92894327",
            "spanId": "66613cd99bcc9328",
            "parentSpanId": "854fb47e3ee66611",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690434139623",
            "endTimeUnixNano": "1796047690435384362",
            "durationMs": 1.244739,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "76625b3cf928a4f62028c6ca92894327",
            "spanId": "854fb47e3ee66611",
            "parentSpanId": "fa4d27473e2a8eba",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690433982158",
            "endTimeUnixNano": "1796047690436325388",
            "durationMs": 2.34323,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "76625b3cf928a4f62028c6ca92894327",
            "spanId": "fa4d27473e2a8eba",
            "parentSpanId": "f312adcd5afb2055",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690433942608",
            "endTimeUnixNano": "1796047690436515022",
            "durationMs": 2.572414,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo-link",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "76625b3cf928a4f62028c6ca92894327",
            "spanId": "f312adcd5afb2055",
            "parentSpanId": "87da0061e6bb2873",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690433921657",
            "endTimeUnixNano": "1796047690436534771",
            "durationMs": 2.613114,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "76625b3cf928a4f62028c6ca92894327",
            "spanId": "ca5cd11b084e2e55",
            "parentSpanId": "7b3b64a2b3d723e0",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690436781349",
            "endTimeUnixNano": "1796047690438162322",
            "durationMs": 1.380973,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "76625b3cf928a4f62028c6ca92894327",
            "spanId": "7b3b64a2b3d723e0",
            "parentSpanId": "94504919bcedc768",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690436615972",
            "endTimeUnixNano": "1796047690439155486",
            "durationMs": 2.539514,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "76625b3cf928a4f62028c6ca92894327",
            "spanId": "94504919bcedc768",
            "parentSpanId": "40fc1e1649d202c6",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690436573819",
            "endTimeUnixNano": "1796047690439361444",
            "durationMs": 2.787625,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "76625b3cf928a4f62028c6ca92894327",
            "spanId": "40fc1e1649d202c6",
            "parentSpanId": "87da0061e6bb2873",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690436557485",
            "endTimeUnixNano": "1796047690439382285",
            "durationMs": 2.8248,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "76625b3cf928a4f62028c6ca92894327",
            "spanId": "d7fff8abd52d6bd5",
            "parentSpanId": "87da0061e6bb2873",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690439768702",
            "endTimeUnixNano": "1796047690439819959",
            "durationMs": 0.051257,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "76625b3cf928a4f62028c6ca92894327",
            "spanId": "ced4d667d24c5a53",
            "parentSpanId": "87da0061e6bb2873",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690439963103",
            "endTimeUnixNano": "1796047690439998125",
            "durationMs": 0.035022,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "76625b3cf928a4f62028c6ca92894327",
            "spanId": "3fa2a27ea28dcb95",
            "parentSpanId": "87da0061e6bb2873",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690440118535",
            "endTimeUnixNano": "1796047690440138415",
            "durationMs": 0.01988,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "76625b3cf928a4f62028c6ca92894327",
            "spanId": "c046f6b91c8d3401",
            "parentSpanId": "87da0061e6bb2873",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690440235920",
            "endTimeUnixNano": "1796047690440257102",
            "durationMs": 0.021182,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "storageCleanup.measureWorktree",
            "traceId": "76625b3cf928a4f62028c6ca92894327",
            "spanId": "1cea638c9473af57",
            "parentSpanId": "87da0061e6bb2873",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690440313486",
            "endTimeUnixNano": "1796047690440953362",
            "durationMs": 0.639876,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.reportOrphanWorktrees",
            "traceId": "76625b3cf928a4f62028c6ca92894327",
            "spanId": "87da0061e6bb2873",
            "parentSpanId": "cccdefaf58b6ba45",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690422686192",
            "endTimeUnixNano": "1796047690440996156",
            "durationMs": 18.309964,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanWorktrees",
            "traceId": "76625b3cf928a4f62028c6ca92894327",
            "spanId": "cccdefaf58b6ba45",
            "parentSpanId": "e43fd058f8d390c0",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690420963869",
            "endTimeUnixNano": "1796047690441014784",
            "durationMs": 20.050915,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.sweep",
            "traceId": "76625b3cf928a4f62028c6ca92894327",
            "spanId": "e43fd058f8d390c0",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690420568819",
            "endTimeUnixNano": "1796047690441080162",
            "durationMs": 20.511343,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          }
        ]
      },
      {
        "run": 3,
        "warmup": true,
        "elapsedMs": 21.977292000000006,
        "nestedOrphanFound": true,
        "report": {
          "_tag": "Success",
          "value": {
            "trigger": "manual",
            "startedAt": "2026-11-30T14:08:10.442Z",
            "finishedAt": "2026-11-30T14:08:10.463Z",
            "entries": [
              {
                "kind": "worktree",
                "outcome": "kept",
                "reason": "No thread uses this worktree",
                "path": "$FIXTURE/data/worktrees/repository/replay/repo-wt",
                "projectPath": null,
                "threadId": null,
                "threadTitle": null,
                "bytes": 8192,
                "files": null
              }
            ],
            "counts": {
              "removed": 0,
              "kept": 1,
              "failed": 0
            },
            "omittedCount": 0,
            "bytesFreed": 0
          }
        },
        "spans": [
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "a455767cea3b1413caaea12d8ebb3ae2",
            "spanId": "322b84fc519bf841",
            "parentSpanId": "1bee7d90c3a03b72",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690442406132",
            "endTimeUnixNano": "1796047690442631960",
            "durationMs": 0.225828,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      WITH RECURSIVE retained_checkpoint_threads(thread_id) AS (\n        SELECT thread_id FROM orchestration_v2_projection_threads WHERE deleted_at IS NULL\n        UNION\n        SELECT json_extract(t\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.046,
              "db.client.connection.wait_time_ms": 0.076004
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanCheckpointRefs",
            "traceId": "a455767cea3b1413caaea12d8ebb3ae2",
            "spanId": "1bee7d90c3a03b72",
            "parentSpanId": "5cbfdb2fbfb2a02a",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690442390609",
            "endTimeUnixNano": "1796047690442673482",
            "durationMs": 0.282873,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.retryLeftovers",
            "traceId": "a455767cea3b1413caaea12d8ebb3ae2",
            "spanId": "ad68fd23adf2dd2c",
            "parentSpanId": "5cbfdb2fbfb2a02a",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690442697007",
            "endTimeUnixNano": "1796047690442776556",
            "durationMs": 0.079549,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveGitWorktreePath",
            "traceId": "a455767cea3b1413caaea12d8ebb3ae2",
            "spanId": "647a8566447283d8",
            "parentSpanId": "4c5121df0ba0f48e",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690442818088",
            "endTimeUnixNano": "1796047690443007461",
            "durationMs": 0.189373,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveWorktreeT3Home",
            "traceId": "a455767cea3b1413caaea12d8ebb3ae2",
            "spanId": "4c5121df0ba0f48e",
            "parentSpanId": "bab99993f7bd221e",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690442811708",
            "endTimeUnixNano": "1796047690443014972",
            "durationMs": 0.203264,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "a455767cea3b1413caaea12d8ebb3ae2",
            "spanId": "7498cb36691cdb71",
            "parentSpanId": "bab99993f7bd221e",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690443263503",
            "endTimeUnixNano": "1796047690443393167",
            "durationMs": 0.129664,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n          SELECT t.payload_json, p.workspace_root AS \"workspaceRoot\"\n          FROM orchestration_v2_projection_threads t\n          JOIN projection_projects p ON p.project_id = t.project_id\n         \u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.037,
              "db.client.connection.wait_time_ms": 0.065899
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "BEGIN",
            "traceId": "a455767cea3b1413caaea12d8ebb3ae2",
            "spanId": "c43ddbccfb887f9b",
            "parentSpanId": "e249567b841deb5c",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690443534157",
            "endTimeUnixNano": "1796047690443585694",
            "durationMs": 0.051537,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "BEGIN"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "a455767cea3b1413caaea12d8ebb3ae2",
            "spanId": "0fba05d8edcf74e9",
            "parentSpanId": "93839179ae8b19d4",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690443688919",
            "endTimeUnixNano": "1796047690443796640",
            "durationMs": 0.107721,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n            SELECT\n              t.thread_id,\n              t.payload_json,\n              t.fork_run_ids_json,\n              CASE\n                WHEN json_extract(t.payload_json, '$.forkedFrom.type'\u2026[truncated]",
              "db.client.connection.wait_time_ms": 0.015994
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "a455767cea3b1413caaea12d8ebb3ae2",
            "spanId": "523f6ce8f3c3ff1a",
            "parentSpanId": "93839179ae8b19d4",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690443835478",
            "endTimeUnixNano": "1796047690443886924",
            "durationMs": 0.051446,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n        SELECT MAX(sequence) AS snapshot_sequence\n        FROM orchestration_events\n        WHERE application_event_version = 2\n          AND aggregate_kind = 'thread'\n      ",
              "db.client.connection.wait_time_ms": 0.008783
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readShellSnapshotRows",
            "traceId": "a455767cea3b1413caaea12d8ebb3ae2",
            "spanId": "93839179ae8b19d4",
            "parentSpanId": "e249567b841deb5c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690443612234",
            "endTimeUnixNano": "1796047690443904871",
            "durationMs": 0.292637,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "COMMIT",
            "traceId": "a455767cea3b1413caaea12d8ebb3ae2",
            "spanId": "11aaad1f3bff2d3b",
            "parentSpanId": "e249567b841deb5c",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690443916859",
            "endTimeUnixNano": "1796047690443942327",
            "durationMs": 0.025468,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "COMMIT"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sql.transaction",
            "traceId": "a455767cea3b1413caaea12d8ebb3ae2",
            "spanId": "e249567b841deb5c",
            "parentSpanId": "13a488423c468b2b",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690443475179",
            "endTimeUnixNano": "1796047690443965171",
            "durationMs": 0.489992,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.client.connection.wait_time_ms": 0.051287,
              "db.connection": "reader",
              "db.lock_wait_ms": 0.033
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.pendingBackgroundDataByThreadId",
            "traceId": "a455767cea3b1413caaea12d8ebb3ae2",
            "spanId": "98f45f561c0e4b09",
            "parentSpanId": "c5b6b0b9f21b7118",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690444009858",
            "endTimeUnixNano": "1796047690444016288",
            "durationMs": 0.00643,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.decodeShellSnapshot",
            "traceId": "a455767cea3b1413caaea12d8ebb3ae2",
            "spanId": "c5b6b0b9f21b7118",
            "parentSpanId": "13a488423c468b2b",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690443992783",
            "endTimeUnixNano": "1796047690444028085",
            "durationMs": 0.035302,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "a455767cea3b1413caaea12d8ebb3ae2",
            "spanId": "1fba237078245429",
            "parentSpanId": "0bdf5d5d93f73b67",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690444066743",
            "endTimeUnixNano": "1796047690444202155",
            "durationMs": 0.135412,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.033,
              "db.client.connection.wait_time_ms": 0.042123
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectStoreV2.listShells",
            "traceId": "a455767cea3b1413caaea12d8ebb3ae2",
            "spanId": "0bdf5d5d93f73b67",
            "parentSpanId": "13a488423c468b2b",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690444037159",
            "endTimeUnixNano": "1796047690444299531",
            "durationMs": 0.262372,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.readThreads",
            "traceId": "a455767cea3b1413caaea12d8ebb3ae2",
            "spanId": "13a488423c468b2b",
            "parentSpanId": "bab99993f7bd221e",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690443444463",
            "endTimeUnixNano": "1796047690444312200",
            "durationMs": 0.867737,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "a455767cea3b1413caaea12d8ebb3ae2",
            "spanId": "c8adad60a1fbf55a",
            "parentSpanId": "bab99993f7bd221e",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690444343086",
            "endTimeUnixNano": "1796047690444595122",
            "durationMs": 0.252036,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.029,
              "db.client.connection.wait_time_ms": 0.042494
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "a455767cea3b1413caaea12d8ebb3ae2",
            "spanId": "8cbaf252b9d9bc2f",
            "parentSpanId": "10a0f288ca7d8285",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690444688472",
            "endTimeUnixNano": "1796047690444804946",
            "durationMs": 0.116474,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT DISTINCT json_extract(payload_json, '$.worktreePath') AS \"worktreePath\"\n      FROM orchestration_v2_projection_threads\n      WHERE json_extract(payload_json, '$.worktreePath') IS NOT NUL\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.047,
              "db.client.connection.wait_time_ms": 0.058958
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "a455767cea3b1413caaea12d8ebb3ae2",
            "spanId": "b0c4878520b04578",
            "parentSpanId": "68edca55544e53e4",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690446180371",
            "endTimeUnixNano": "1796047690449983743",
            "durationMs": 3.803372,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "a455767cea3b1413caaea12d8ebb3ae2",
            "spanId": "68edca55544e53e4",
            "parentSpanId": "8cdb5e4220986fd5",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690446014153",
            "endTimeUnixNano": "1796047690450824118",
            "durationMs": 4.809965,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "a455767cea3b1413caaea12d8ebb3ae2",
            "spanId": "8cdb5e4220986fd5",
            "parentSpanId": "f94c3198691301cf",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690445973201",
            "endTimeUnixNano": "1796047690451012710",
            "durationMs": 5.039509,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/plain-notes",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "a455767cea3b1413caaea12d8ebb3ae2",
            "spanId": "16a91a45577dc319",
            "parentSpanId": "71b2cdf673bd8ff1",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690451248232",
            "endTimeUnixNano": "1796047690452387083",
            "durationMs": 1.138851,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "a455767cea3b1413caaea12d8ebb3ae2",
            "spanId": "71b2cdf673bd8ff1",
            "parentSpanId": "922e64f9005648b7",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690451087111",
            "endTimeUnixNano": "1796047690453137564",
            "durationMs": 2.050453,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "a455767cea3b1413caaea12d8ebb3ae2",
            "spanId": "922e64f9005648b7",
            "parentSpanId": "f94c3198691301cf",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690451045810",
            "endTimeUnixNano": "1796047690453327418",
            "durationMs": 2.281608,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/plain-notes",
              "git.args_count": 3
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "a455767cea3b1413caaea12d8ebb3ae2",
            "spanId": "f94c3198691301cf",
            "parentSpanId": "10a0f288ca7d8285",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690445951639",
            "endTimeUnixNano": "1796047690453420086",
            "durationMs": 7.468447,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Failure",
              "cause": "GitCommandError: Git command failed in GitVcsDriver.listWorktreePaths ($FIXTURE/fx/plain-notes): Git command exited with a non-zero status. (not_a_repository)\n    at file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:1635:11\n    at executeWorktreeList (file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:7803:5)\n    at executeWorktreeList (definition) (file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:1681:38)\n    at StorageCleanup.reportOrphanWorktrees (file://$CHECKOUT/apps/server/src/storageCleanup.ts:1967:12)\n    at StorageCleanup.reportOrphanWorktrees (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:556:40)\n    at StorageCleanup.cleanWorktrees (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2193:37)\n    at StorageCleanup.cleanWorktrees (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:1208:33)\n    at StorageCleanup.sweep (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2293:24)\n    at StorageCleanup.sweep (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2162:24)\n    at DrainableWorker.makeDrainableWorker (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2290:25)\n    at DrainableWorker.makeDrainableWorker (definition) (file://$CHECKOUT/packages/shared/src/DrainableWorker.ts:20:43)"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "a455767cea3b1413caaea12d8ebb3ae2",
            "spanId": "b718fd117a522e8d",
            "parentSpanId": "b833b4cbe7e2ec3e",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690453791391",
            "endTimeUnixNano": "1796047690454937483",
            "durationMs": 1.146092,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "a455767cea3b1413caaea12d8ebb3ae2",
            "spanId": "b833b4cbe7e2ec3e",
            "parentSpanId": "15cbd9c831645cd3",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690453639925",
            "endTimeUnixNano": "1796047690455801504",
            "durationMs": 2.161579,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "a455767cea3b1413caaea12d8ebb3ae2",
            "spanId": "15cbd9c831645cd3",
            "parentSpanId": "4d475bc53e7d0e0d",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690453599665",
            "endTimeUnixNano": "1796047690455972490",
            "durationMs": 2.372825,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo/packages/app",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "a455767cea3b1413caaea12d8ebb3ae2",
            "spanId": "4d475bc53e7d0e0d",
            "parentSpanId": "10a0f288ca7d8285",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690453570531",
            "endTimeUnixNano": "1796047690455991378",
            "durationMs": 2.420847,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "a455767cea3b1413caaea12d8ebb3ae2",
            "spanId": "ed744e3b1c6cb51c",
            "parentSpanId": "6bdfc7d646a88148",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690456216234",
            "endTimeUnixNano": "1796047690457407523",
            "durationMs": 1.191289,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "a455767cea3b1413caaea12d8ebb3ae2",
            "spanId": "6bdfc7d646a88148",
            "parentSpanId": "21e84e5688c8545b",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690456067171",
            "endTimeUnixNano": "1796047690458397192",
            "durationMs": 2.330021,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "a455767cea3b1413caaea12d8ebb3ae2",
            "spanId": "21e84e5688c8545b",
            "parentSpanId": "79ed76712701d991",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690456031898",
            "endTimeUnixNano": "1796047690458608838",
            "durationMs": 2.57694,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo-link",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "a455767cea3b1413caaea12d8ebb3ae2",
            "spanId": "79ed76712701d991",
            "parentSpanId": "10a0f288ca7d8285",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690456014272",
            "endTimeUnixNano": "1796047690458629829",
            "durationMs": 2.615557,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "a455767cea3b1413caaea12d8ebb3ae2",
            "spanId": "334383036f149703",
            "parentSpanId": "90f9c3a741f9a7b6",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690458859673",
            "endTimeUnixNano": "1796047690460139885",
            "durationMs": 1.280212,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "a455767cea3b1413caaea12d8ebb3ae2",
            "spanId": "90f9c3a741f9a7b6",
            "parentSpanId": "4cd66cac91c90e25",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690458709038",
            "endTimeUnixNano": "1796047690461082133",
            "durationMs": 2.373095,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "a455767cea3b1413caaea12d8ebb3ae2",
            "spanId": "4cd66cac91c90e25",
            "parentSpanId": "c7549750ce6546c6",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690458670801",
            "endTimeUnixNano": "1796047690461295091",
            "durationMs": 2.62429,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "a455767cea3b1413caaea12d8ebb3ae2",
            "spanId": "c7549750ce6546c6",
            "parentSpanId": "10a0f288ca7d8285",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690458652594",
            "endTimeUnixNano": "1796047690461321681",
            "durationMs": 2.669087,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "a455767cea3b1413caaea12d8ebb3ae2",
            "spanId": "33c5400f393aa42c",
            "parentSpanId": "10a0f288ca7d8285",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690461722770",
            "endTimeUnixNano": "1796047690461782990",
            "durationMs": 0.06022,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "a455767cea3b1413caaea12d8ebb3ae2",
            "spanId": "0ac5e2613305b344",
            "parentSpanId": "10a0f288ca7d8285",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690461945613",
            "endTimeUnixNano": "1796047690461979273",
            "durationMs": 0.03366,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "a455767cea3b1413caaea12d8ebb3ae2",
            "spanId": "f6684d6f4dbbdef5",
            "parentSpanId": "10a0f288ca7d8285",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690462124220",
            "endTimeUnixNano": "1796047690462159382",
            "durationMs": 0.035162,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "a455767cea3b1413caaea12d8ebb3ae2",
            "spanId": "7aae2dc8dbb70d55",
            "parentSpanId": "10a0f288ca7d8285",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690462266012",
            "endTimeUnixNano": "1796047690462305951",
            "durationMs": 0.039939,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "storageCleanup.measureWorktree",
            "traceId": "a455767cea3b1413caaea12d8ebb3ae2",
            "spanId": "9f097bf4c3f0f802",
            "parentSpanId": "10a0f288ca7d8285",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690462364138",
            "endTimeUnixNano": "1796047690463028711",
            "durationMs": 0.664573,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.reportOrphanWorktrees",
            "traceId": "a455767cea3b1413caaea12d8ebb3ae2",
            "spanId": "10a0f288ca7d8285",
            "parentSpanId": "bab99993f7bd221e",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690444674752",
            "endTimeUnixNano": "1796047690463087849",
            "durationMs": 18.413097,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanWorktrees",
            "traceId": "a455767cea3b1413caaea12d8ebb3ae2",
            "spanId": "bab99993f7bd221e",
            "parentSpanId": "5cbfdb2fbfb2a02a",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690442791848",
            "endTimeUnixNano": "1796047690463100458",
            "durationMs": 20.30861,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.sweep",
            "traceId": "a455767cea3b1413caaea12d8ebb3ae2",
            "spanId": "5cbfdb2fbfb2a02a",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690442352933",
            "endTimeUnixNano": "1796047690463175560",
            "durationMs": 20.822627,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          }
        ]
      },
      {
        "run": 4,
        "warmup": true,
        "elapsedMs": 20.46378200000001,
        "nestedOrphanFound": true,
        "report": {
          "_tag": "Success",
          "value": {
            "trigger": "manual",
            "startedAt": "2026-11-30T14:08:10.464Z",
            "finishedAt": "2026-11-30T14:08:10.483Z",
            "entries": [
              {
                "kind": "worktree",
                "outcome": "kept",
                "reason": "No thread uses this worktree",
                "path": "$FIXTURE/data/worktrees/repository/replay/repo-wt",
                "projectPath": null,
                "threadId": null,
                "threadTitle": null,
                "bytes": 8192,
                "files": null
              }
            ],
            "counts": {
              "removed": 0,
              "kept": 1,
              "failed": 0
            },
            "omittedCount": 0,
            "bytesFreed": 0
          }
        },
        "spans": [
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "48f2aa9aa91b53990a8bb64b47f03648",
            "spanId": "89c71721fa2f44e6",
            "parentSpanId": "42c4d2151d05e8c4",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690464395583",
            "endTimeUnixNano": "1796047690464588261",
            "durationMs": 0.192678,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      WITH RECURSIVE retained_checkpoint_threads(thread_id) AS (\n        SELECT thread_id FROM orchestration_v2_projection_threads WHERE deleted_at IS NULL\n        UNION\n        SELECT json_extract(t\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.051,
              "db.client.connection.wait_time_ms": 0.068553
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanCheckpointRefs",
            "traceId": "48f2aa9aa91b53990a8bb64b47f03648",
            "spanId": "42c4d2151d05e8c4",
            "parentSpanId": "e8a54981648f1750",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690464380681",
            "endTimeUnixNano": "1796047690464629022",
            "durationMs": 0.248341,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.retryLeftovers",
            "traceId": "48f2aa9aa91b53990a8bb64b47f03648",
            "spanId": "a8ced66ee03bae1c",
            "parentSpanId": "e8a54981648f1750",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690464650163",
            "endTimeUnixNano": "1796047690464746678",
            "durationMs": 0.096515,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveGitWorktreePath",
            "traceId": "48f2aa9aa91b53990a8bb64b47f03648",
            "spanId": "fe666a771d4d3e8d",
            "parentSpanId": "73ed1d6ba6380978",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690464789281",
            "endTimeUnixNano": "1796047690464987107",
            "durationMs": 0.197826,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveWorktreeT3Home",
            "traceId": "48f2aa9aa91b53990a8bb64b47f03648",
            "spanId": "73ed1d6ba6380978",
            "parentSpanId": "86aea06690c97e56",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690464782892",
            "endTimeUnixNano": "1796047690464997422",
            "durationMs": 0.21453,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "48f2aa9aa91b53990a8bb64b47f03648",
            "spanId": "3a52c8344ac5eccd",
            "parentSpanId": "86aea06690c97e56",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690465264661",
            "endTimeUnixNano": "1796047690465414826",
            "durationMs": 0.150165,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n          SELECT t.payload_json, p.workspace_root AS \"workspaceRoot\"\n          FROM orchestration_v2_projection_threads t\n          JOIN projection_projects p ON p.project_id = t.project_id\n         \u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.043,
              "db.client.connection.wait_time_ms": 0.077747
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "BEGIN",
            "traceId": "48f2aa9aa91b53990a8bb64b47f03648",
            "spanId": "a49e10cf5b6e7cfa",
            "parentSpanId": "47acb08ec3cea098",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690465579101",
            "endTimeUnixNano": "1796047690465632701",
            "durationMs": 0.0536,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "BEGIN"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "48f2aa9aa91b53990a8bb64b47f03648",
            "spanId": "d5ba07f6ae46bb87",
            "parentSpanId": "12ce92b7eb890228",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690465736256",
            "endTimeUnixNano": "1796047690465869244",
            "durationMs": 0.132988,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n            SELECT\n              t.thread_id,\n              t.payload_json,\n              t.fork_run_ids_json,\n              CASE\n                WHEN json_extract(t.payload_json, '$.forkedFrom.type'\u2026[truncated]",
              "db.client.connection.wait_time_ms": 0.01364
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "48f2aa9aa91b53990a8bb64b47f03648",
            "spanId": "e15877ed5853f831",
            "parentSpanId": "12ce92b7eb890228",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690465912539",
            "endTimeUnixNano": "1796047690465963966",
            "durationMs": 0.051427,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n        SELECT MAX(sequence) AS snapshot_sequence\n        FROM orchestration_events\n        WHERE application_event_version = 2\n          AND aggregate_kind = 'thread'\n      ",
              "db.client.connection.wait_time_ms": 0.008323
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readShellSnapshotRows",
            "traceId": "48f2aa9aa91b53990a8bb64b47f03648",
            "spanId": "12ce92b7eb890228",
            "parentSpanId": "47acb08ec3cea098",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690465660573",
            "endTimeUnixNano": "1796047690465989564",
            "durationMs": 0.328991,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "COMMIT",
            "traceId": "48f2aa9aa91b53990a8bb64b47f03648",
            "spanId": "85c8902155b47fcf",
            "parentSpanId": "47acb08ec3cea098",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690465999730",
            "endTimeUnixNano": "1796047690466027601",
            "durationMs": 0.027871,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "COMMIT"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sql.transaction",
            "traceId": "48f2aa9aa91b53990a8bb64b47f03648",
            "spanId": "47acb08ec3cea098",
            "parentSpanId": "c6960f9cb748ac92",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690465500904",
            "endTimeUnixNano": "1796047690466053900",
            "durationMs": 0.552996,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.client.connection.wait_time_ms": 0.055623,
              "db.connection": "reader",
              "db.lock_wait_ms": 0.037
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.pendingBackgroundDataByThreadId",
            "traceId": "48f2aa9aa91b53990a8bb64b47f03648",
            "spanId": "ef5dd27724c73efd",
            "parentSpanId": "9973bb954cdbc012",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690466102874",
            "endTimeUnixNano": "1796047690466110175",
            "durationMs": 0.007301,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.decodeShellSnapshot",
            "traceId": "48f2aa9aa91b53990a8bb64b47f03648",
            "spanId": "9973bb954cdbc012",
            "parentSpanId": "c6960f9cb748ac92",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690466083715",
            "endTimeUnixNano": "1796047690466133810",
            "durationMs": 0.050095,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "48f2aa9aa91b53990a8bb64b47f03648",
            "spanId": "43ceb531b2cfce51",
            "parentSpanId": "41905e13ea036866",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690466175192",
            "endTimeUnixNano": "1796047690466321811",
            "durationMs": 0.146619,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.045,
              "db.client.connection.wait_time_ms": 0.055042
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectStoreV2.listShells",
            "traceId": "48f2aa9aa91b53990a8bb64b47f03648",
            "spanId": "41905e13ea036866",
            "parentSpanId": "c6960f9cb748ac92",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690466143524",
            "endTimeUnixNano": "1796047690466403743",
            "durationMs": 0.260219,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.readThreads",
            "traceId": "48f2aa9aa91b53990a8bb64b47f03648",
            "spanId": "c6960f9cb748ac92",
            "parentSpanId": "86aea06690c97e56",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690465466753",
            "endTimeUnixNano": "1796047690466418485",
            "durationMs": 0.951732,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "48f2aa9aa91b53990a8bb64b47f03648",
            "spanId": "cff552c1271dfe2b",
            "parentSpanId": "86aea06690c97e56",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690466458505",
            "endTimeUnixNano": "1796047690466579816",
            "durationMs": 0.121311,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.032,
              "db.client.connection.wait_time_ms": 0.04711
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "48f2aa9aa91b53990a8bb64b47f03648",
            "spanId": "ea5d6b1494a7c9f8",
            "parentSpanId": "09e2ff5a81aa54ba",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690466673546",
            "endTimeUnixNano": "1796047690466770621",
            "durationMs": 0.097075,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT DISTINCT json_extract(payload_json, '$.worktreePath') AS \"worktreePath\"\n      FROM orchestration_v2_projection_threads\n      WHERE json_extract(payload_json, '$.worktreePath') IS NOT NUL\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.044,
              "db.client.connection.wait_time_ms": 0.055683
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "48f2aa9aa91b53990a8bb64b47f03648",
            "spanId": "f15daca89240b350",
            "parentSpanId": "0988a90f97791d7c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690468324813",
            "endTimeUnixNano": "1796047690469835530",
            "durationMs": 1.510717,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "48f2aa9aa91b53990a8bb64b47f03648",
            "spanId": "0988a90f97791d7c",
            "parentSpanId": "3de66c92b8a886a7",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690468140217",
            "endTimeUnixNano": "1796047690470699440",
            "durationMs": 2.559223,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "48f2aa9aa91b53990a8bb64b47f03648",
            "spanId": "3de66c92b8a886a7",
            "parentSpanId": "2fa2a5195925b832",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690468102130",
            "endTimeUnixNano": "1796047690470899429",
            "durationMs": 2.797299,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/plain-notes",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "48f2aa9aa91b53990a8bb64b47f03648",
            "spanId": "e9f9ec42fb4d5a14",
            "parentSpanId": "f409245100a3b4dc",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690471147981",
            "endTimeUnixNano": "1796047690472386491",
            "durationMs": 1.23851,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "48f2aa9aa91b53990a8bb64b47f03648",
            "spanId": "f409245100a3b4dc",
            "parentSpanId": "c69d4f44a4e5dd1c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690470977186",
            "endTimeUnixNano": "1796047690473221458",
            "durationMs": 2.244272,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "48f2aa9aa91b53990a8bb64b47f03648",
            "spanId": "c69d4f44a4e5dd1c",
            "parentSpanId": "2fa2a5195925b832",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690470934201",
            "endTimeUnixNano": "1796047690473438302",
            "durationMs": 2.504101,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/plain-notes",
              "git.args_count": 3
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "48f2aa9aa91b53990a8bb64b47f03648",
            "spanId": "2fa2a5195925b832",
            "parentSpanId": "09e2ff5a81aa54ba",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690468079537",
            "endTimeUnixNano": "1796047690473521146",
            "durationMs": 5.441609,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Failure",
              "cause": "GitCommandError: Git command failed in GitVcsDriver.listWorktreePaths ($FIXTURE/fx/plain-notes): Git command exited with a non-zero status. (not_a_repository)\n    at file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:1635:11\n    at executeWorktreeList (file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:7803:5)\n    at executeWorktreeList (definition) (file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:1681:38)\n    at StorageCleanup.reportOrphanWorktrees (file://$CHECKOUT/apps/server/src/storageCleanup.ts:1967:12)\n    at StorageCleanup.reportOrphanWorktrees (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:556:40)\n    at StorageCleanup.cleanWorktrees (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2193:37)\n    at StorageCleanup.cleanWorktrees (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:1208:33)\n    at StorageCleanup.sweep (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2293:24)\n    at StorageCleanup.sweep (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2162:24)\n    at DrainableWorker.makeDrainableWorker (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2290:25)\n    at DrainableWorker.makeDrainableWorker (definition) (file://$CHECKOUT/packages/shared/src/DrainableWorker.ts:20:43)"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "48f2aa9aa91b53990a8bb64b47f03648",
            "spanId": "9c7b2bf9e28d719d",
            "parentSpanId": "05d31136a51aa8f2",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690473877208",
            "endTimeUnixNano": "1796047690475113855",
            "durationMs": 1.236647,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "48f2aa9aa91b53990a8bb64b47f03648",
            "spanId": "05d31136a51aa8f2",
            "parentSpanId": "75baa99ede4055b6",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690473715967",
            "endTimeUnixNano": "1796047690476097084",
            "durationMs": 2.381117,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "48f2aa9aa91b53990a8bb64b47f03648",
            "spanId": "75baa99ede4055b6",
            "parentSpanId": "4e79f176b4b6f0c2",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690473674916",
            "endTimeUnixNano": "1796047690476310553",
            "durationMs": 2.635637,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo/packages/app",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "48f2aa9aa91b53990a8bb64b47f03648",
            "spanId": "4e79f176b4b6f0c2",
            "parentSpanId": "09e2ff5a81aa54ba",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690473656007",
            "endTimeUnixNano": "1796047690476331585",
            "durationMs": 2.675578,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "48f2aa9aa91b53990a8bb64b47f03648",
            "spanId": "ec19ee922d8629c3",
            "parentSpanId": "3154b073a465ee28",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690476576280",
            "endTimeUnixNano": "1796047690477825046",
            "durationMs": 1.248766,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "48f2aa9aa91b53990a8bb64b47f03648",
            "spanId": "3154b073a465ee28",
            "parentSpanId": "cc1c40edb8b13f05",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690476413797",
            "endTimeUnixNano": "1796047690478770858",
            "durationMs": 2.357061,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "48f2aa9aa91b53990a8bb64b47f03648",
            "spanId": "cc1c40edb8b13f05",
            "parentSpanId": "437dd5fa98c822ae",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690476375049",
            "endTimeUnixNano": "1796047690478979480",
            "durationMs": 2.604431,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo-link",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "48f2aa9aa91b53990a8bb64b47f03648",
            "spanId": "437dd5fa98c822ae",
            "parentSpanId": "09e2ff5a81aa54ba",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690476356011",
            "endTimeUnixNano": "1796047690479001263",
            "durationMs": 2.645252,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "48f2aa9aa91b53990a8bb64b47f03648",
            "spanId": "f5e40026082003a0",
            "parentSpanId": "576bcd6021832c1e",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690479248452",
            "endTimeUnixNano": "1796047690480513542",
            "durationMs": 1.26509,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "48f2aa9aa91b53990a8bb64b47f03648",
            "spanId": "576bcd6021832c1e",
            "parentSpanId": "0a9261c906107eb2",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690479092199",
            "endTimeUnixNano": "1796047690481464533",
            "durationMs": 2.372334,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "48f2aa9aa91b53990a8bb64b47f03648",
            "spanId": "0a9261c906107eb2",
            "parentSpanId": "7147b4a09fa5438f",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690479053821",
            "endTimeUnixNano": "1796047690481662849",
            "durationMs": 2.609028,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "48f2aa9aa91b53990a8bb64b47f03648",
            "spanId": "7147b4a09fa5438f",
            "parentSpanId": "09e2ff5a81aa54ba",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690479034803",
            "endTimeUnixNano": "1796047690481682829",
            "durationMs": 2.648026,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "48f2aa9aa91b53990a8bb64b47f03648",
            "spanId": "eca9942beed6100b",
            "parentSpanId": "09e2ff5a81aa54ba",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690482085080",
            "endTimeUnixNano": "1796047690482137618",
            "durationMs": 0.052538,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "48f2aa9aa91b53990a8bb64b47f03648",
            "spanId": "f38dcfde10c36c28",
            "parentSpanId": "09e2ff5a81aa54ba",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690482383045",
            "endTimeUnixNano": "1796047690482419459",
            "durationMs": 0.036414,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "48f2aa9aa91b53990a8bb64b47f03648",
            "spanId": "b76a1ecc738b4b65",
            "parentSpanId": "09e2ff5a81aa54ba",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690482594411",
            "endTimeUnixNano": "1796047690482624305",
            "durationMs": 0.029894,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "48f2aa9aa91b53990a8bb64b47f03648",
            "spanId": "f1127ba56bcee5e4",
            "parentSpanId": "09e2ff5a81aa54ba",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690482768471",
            "endTimeUnixNano": "1796047690482804214",
            "durationMs": 0.035743,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "storageCleanup.measureWorktree",
            "traceId": "48f2aa9aa91b53990a8bb64b47f03648",
            "spanId": "aeef08785eff0e17",
            "parentSpanId": "09e2ff5a81aa54ba",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690482860739",
            "endTimeUnixNano": "1796047690483563649",
            "durationMs": 0.70291,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.reportOrphanWorktrees",
            "traceId": "48f2aa9aa91b53990a8bb64b47f03648",
            "spanId": "09e2ff5a81aa54ba",
            "parentSpanId": "86aea06690c97e56",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690466657041",
            "endTimeUnixNano": "1796047690483616928",
            "durationMs": 16.959887,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanWorktrees",
            "traceId": "48f2aa9aa91b53990a8bb64b47f03648",
            "spanId": "86aea06690c97e56",
            "parentSpanId": "e8a54981648f1750",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690464762291",
            "endTimeUnixNano": "1796047690483642016",
            "durationMs": 18.879725,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.sweep",
            "traceId": "48f2aa9aa91b53990a8bb64b47f03648",
            "spanId": "e8a54981648f1750",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690464357877",
            "endTimeUnixNano": "1796047690483692771",
            "durationMs": 19.334894,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          }
        ]
      },
      {
        "run": 5,
        "warmup": false,
        "elapsedMs": 20.474086,
        "nestedOrphanFound": true,
        "report": {
          "_tag": "Success",
          "value": {
            "trigger": "manual",
            "startedAt": "2026-11-30T14:08:10.485Z",
            "finishedAt": "2026-11-30T14:08:10.504Z",
            "entries": [
              {
                "kind": "worktree",
                "outcome": "kept",
                "reason": "No thread uses this worktree",
                "path": "$FIXTURE/data/worktrees/repository/replay/repo-wt",
                "projectPath": null,
                "threadId": null,
                "threadTitle": null,
                "bytes": 8192,
                "files": null
              }
            ],
            "counts": {
              "removed": 0,
              "kept": 1,
              "failed": 0
            },
            "omittedCount": 0,
            "bytesFreed": 0
          }
        },
        "spans": [
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "b89f9a5b8e3aac3fdee5183466e77653",
            "spanId": "2232dc3cd0740848",
            "parentSpanId": "706f6bca74e948d6",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690484843210",
            "endTimeUnixNano": "1796047690485007085",
            "durationMs": 0.163875,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      WITH RECURSIVE retained_checkpoint_threads(thread_id) AS (\n        SELECT thread_id FROM orchestration_v2_projection_threads WHERE deleted_at IS NULL\n        UNION\n        SELECT json_extract(t\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.043,
              "db.client.connection.wait_time_ms": 0.060801
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanCheckpointRefs",
            "traceId": "b89f9a5b8e3aac3fdee5183466e77653",
            "spanId": "706f6bca74e948d6",
            "parentSpanId": "802117da8a724892",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690484829580",
            "endTimeUnixNano": "1796047690485058692",
            "durationMs": 0.229112,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.retryLeftovers",
            "traceId": "b89f9a5b8e3aac3fdee5183466e77653",
            "spanId": "e1322a555333df4f",
            "parentSpanId": "802117da8a724892",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690485082017",
            "endTimeUnixNano": "1796047690485172632",
            "durationMs": 0.090615,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveGitWorktreePath",
            "traceId": "b89f9a5b8e3aac3fdee5183466e77653",
            "spanId": "3cd93c5e309d41e5",
            "parentSpanId": "a5535af315784a37",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690485222757",
            "endTimeUnixNano": "1796047690485451910",
            "durationMs": 0.229153,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveWorktreeT3Home",
            "traceId": "b89f9a5b8e3aac3fdee5183466e77653",
            "spanId": "a5535af315784a37",
            "parentSpanId": "734fafd0a3674ac7",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690485212822",
            "endTimeUnixNano": "1796047690485467222",
            "durationMs": 0.2544,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "b89f9a5b8e3aac3fdee5183466e77653",
            "spanId": "1166243d321723a7",
            "parentSpanId": "734fafd0a3674ac7",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690485761883",
            "endTimeUnixNano": "1796047690485878877",
            "durationMs": 0.116994,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n          SELECT t.payload_json, p.workspace_root AS \"workspaceRoot\"\n          FROM orchestration_v2_projection_threads t\n          JOIN projection_projects p ON p.project_id = t.project_id\n         \u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.039,
              "db.client.connection.wait_time_ms": 0.059358
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "BEGIN",
            "traceId": "b89f9a5b8e3aac3fdee5183466e77653",
            "spanId": "698aa2acf02f0a1d",
            "parentSpanId": "37c8849d28271ccc",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690486021300",
            "endTimeUnixNano": "1796047690486071335",
            "durationMs": 0.050035,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "BEGIN"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "b89f9a5b8e3aac3fdee5183466e77653",
            "spanId": "510c4c0c946cdfb5",
            "parentSpanId": "26a2a63f81d0bc8c",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690486187729",
            "endTimeUnixNano": "1796047690486297873",
            "durationMs": 0.110144,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n            SELECT\n              t.thread_id,\n              t.payload_json,\n              t.fork_run_ids_json,\n              CASE\n                WHEN json_extract(t.payload_json, '$.forkedFrom.type'\u2026[truncated]",
              "db.client.connection.wait_time_ms": 0.015683
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "b89f9a5b8e3aac3fdee5183466e77653",
            "spanId": "bb5af130513c6e9b",
            "parentSpanId": "26a2a63f81d0bc8c",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690486349601",
            "endTimeUnixNano": "1796047690486397562",
            "durationMs": 0.047961,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n        SELECT MAX(sequence) AS snapshot_sequence\n        FROM orchestration_events\n        WHERE application_event_version = 2\n          AND aggregate_kind = 'thread'\n      ",
              "db.client.connection.wait_time_ms": 0.009324
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readShellSnapshotRows",
            "traceId": "b89f9a5b8e3aac3fdee5183466e77653",
            "spanId": "26a2a63f81d0bc8c",
            "parentSpanId": "37c8849d28271ccc",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690486107629",
            "endTimeUnixNano": "1796047690486419265",
            "durationMs": 0.311636,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "COMMIT",
            "traceId": "b89f9a5b8e3aac3fdee5183466e77653",
            "spanId": "442ead5ed0aae044",
            "parentSpanId": "37c8849d28271ccc",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690486435639",
            "endTimeUnixNano": "1796047690486463841",
            "durationMs": 0.028202,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "COMMIT"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sql.transaction",
            "traceId": "b89f9a5b8e3aac3fdee5183466e77653",
            "spanId": "37c8849d28271ccc",
            "parentSpanId": "109c05e07968610a",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690485964245",
            "endTimeUnixNano": "1796047690486488658",
            "durationMs": 0.524413,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.client.connection.wait_time_ms": 0.050085,
              "db.connection": "reader",
              "db.lock_wait_ms": 0.032
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.pendingBackgroundDataByThreadId",
            "traceId": "b89f9a5b8e3aac3fdee5183466e77653",
            "spanId": "433e9d3395e303ab",
            "parentSpanId": "6247ac123fc5211b",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690486539885",
            "endTimeUnixNano": "1796047690486545934",
            "durationMs": 0.006049,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.decodeShellSnapshot",
            "traceId": "b89f9a5b8e3aac3fdee5183466e77653",
            "spanId": "6247ac123fc5211b",
            "parentSpanId": "109c05e07968610a",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690486518303",
            "endTimeUnixNano": "1796047690486561377",
            "durationMs": 0.043074,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "b89f9a5b8e3aac3fdee5183466e77653",
            "spanId": "8019a44b1b7a9f7e",
            "parentSpanId": "06b03f77a4e40e78",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690486620245",
            "endTimeUnixNano": "1796047690486754435",
            "durationMs": 0.13419,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.038,
              "db.client.connection.wait_time_ms": 0.048482
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectStoreV2.listShells",
            "traceId": "b89f9a5b8e3aac3fdee5183466e77653",
            "spanId": "06b03f77a4e40e78",
            "parentSpanId": "109c05e07968610a",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690486572444",
            "endTimeUnixNano": "1796047690486833684",
            "durationMs": 0.26124,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.readThreads",
            "traceId": "b89f9a5b8e3aac3fdee5183466e77653",
            "spanId": "109c05e07968610a",
            "parentSpanId": "734fafd0a3674ac7",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690485930534",
            "endTimeUnixNano": "1796047690486849958",
            "durationMs": 0.919424,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "b89f9a5b8e3aac3fdee5183466e77653",
            "spanId": "05bb68cd2ed54b6f",
            "parentSpanId": "734fafd0a3674ac7",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690486882066",
            "endTimeUnixNano": "1796047690486990348",
            "durationMs": 0.108282,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.029,
              "db.client.connection.wait_time_ms": 0.042834
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "b89f9a5b8e3aac3fdee5183466e77653",
            "spanId": "a6ee2b5c36b6ec96",
            "parentSpanId": "da3370e2b3455270",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690487063878",
            "endTimeUnixNano": "1796047690487158429",
            "durationMs": 0.094551,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT DISTINCT json_extract(payload_json, '$.worktreePath') AS \"worktreePath\"\n      FROM orchestration_v2_projection_threads\n      WHERE json_extract(payload_json, '$.worktreePath') IS NOT NUL\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.041,
              "db.client.connection.wait_time_ms": 0.050696
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "b89f9a5b8e3aac3fdee5183466e77653",
            "spanId": "f1033f9af12c5598",
            "parentSpanId": "2a3928f34d82c316",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690488669106",
            "endTimeUnixNano": "1796047690489892313",
            "durationMs": 1.223207,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "b89f9a5b8e3aac3fdee5183466e77653",
            "spanId": "2a3928f34d82c316",
            "parentSpanId": "b4fbaff569061c67",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690488507965",
            "endTimeUnixNano": "1796047690490883484",
            "durationMs": 2.375519,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "b89f9a5b8e3aac3fdee5183466e77653",
            "spanId": "b4fbaff569061c67",
            "parentSpanId": "f013bb40a03a1bf2",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690488469487",
            "endTimeUnixNano": "1796047690491104013",
            "durationMs": 2.634526,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/plain-notes",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "b89f9a5b8e3aac3fdee5183466e77653",
            "spanId": "cb0e677b0753f8b3",
            "parentSpanId": "5d099022ea471de5",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690491379144",
            "endTimeUnixNano": "1796047690492622231",
            "durationMs": 1.243087,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "b89f9a5b8e3aac3fdee5183466e77653",
            "spanId": "5d099022ea471de5",
            "parentSpanId": "0ba2181575f76737",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690491195130",
            "endTimeUnixNano": "1796047690493474995",
            "durationMs": 2.279865,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "b89f9a5b8e3aac3fdee5183466e77653",
            "spanId": "0ba2181575f76737",
            "parentSpanId": "f013bb40a03a1bf2",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690491136342",
            "endTimeUnixNano": "1796047690493670828",
            "durationMs": 2.534486,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/plain-notes",
              "git.args_count": 3
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "b89f9a5b8e3aac3fdee5183466e77653",
            "spanId": "f013bb40a03a1bf2",
            "parentSpanId": "da3370e2b3455270",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690488447204",
            "endTimeUnixNano": "1796047690493740592",
            "durationMs": 5.293388,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Failure",
              "cause": "GitCommandError: Git command failed in GitVcsDriver.listWorktreePaths ($FIXTURE/fx/plain-notes): Git command exited with a non-zero status. (not_a_repository)\n    at file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:1635:11\n    at executeWorktreeList (file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:7803:5)\n    at executeWorktreeList (definition) (file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:1681:38)\n    at StorageCleanup.reportOrphanWorktrees (file://$CHECKOUT/apps/server/src/storageCleanup.ts:1967:12)\n    at StorageCleanup.reportOrphanWorktrees (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:556:40)\n    at StorageCleanup.cleanWorktrees (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2193:37)\n    at StorageCleanup.cleanWorktrees (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:1208:33)\n    at StorageCleanup.sweep (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2293:24)\n    at StorageCleanup.sweep (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2162:24)\n    at DrainableWorker.makeDrainableWorker (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2290:25)\n    at DrainableWorker.makeDrainableWorker (definition) (file://$CHECKOUT/packages/shared/src/DrainableWorker.ts:20:43)"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "b89f9a5b8e3aac3fdee5183466e77653",
            "spanId": "78c8de83640fe102",
            "parentSpanId": "d3571f129193b8c4",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690494095683",
            "endTimeUnixNano": "1796047690495604136",
            "durationMs": 1.508453,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "b89f9a5b8e3aac3fdee5183466e77653",
            "spanId": "d3571f129193b8c4",
            "parentSpanId": "5acaaf85a7889c50",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690493940861",
            "endTimeUnixNano": "1796047690496650269",
            "durationMs": 2.709408,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "b89f9a5b8e3aac3fdee5183466e77653",
            "spanId": "5acaaf85a7889c50",
            "parentSpanId": "e2d4a08dfacb923c",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690493896034",
            "endTimeUnixNano": "1796047690496845581",
            "durationMs": 2.949547,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo/packages/app",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "b89f9a5b8e3aac3fdee5183466e77653",
            "spanId": "e2d4a08dfacb923c",
            "parentSpanId": "da3370e2b3455270",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690493877747",
            "endTimeUnixNano": "1796047690496863798",
            "durationMs": 2.986051,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "b89f9a5b8e3aac3fdee5183466e77653",
            "spanId": "c1121ad8acebb988",
            "parentSpanId": "71a08e49d07d74a1",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690497101383",
            "endTimeUnixNano": "1796047690498458651",
            "durationMs": 1.357268,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "b89f9a5b8e3aac3fdee5183466e77653",
            "spanId": "71a08e49d07d74a1",
            "parentSpanId": "acc769f941aeb063",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690496944488",
            "endTimeUnixNano": "1796047690499459085",
            "durationMs": 2.514597,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "b89f9a5b8e3aac3fdee5183466e77653",
            "spanId": "acc769f941aeb063",
            "parentSpanId": "baac229162b95828",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690496906151",
            "endTimeUnixNano": "1796047690499652725",
            "durationMs": 2.746574,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo-link",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "b89f9a5b8e3aac3fdee5183466e77653",
            "spanId": "baac229162b95828",
            "parentSpanId": "da3370e2b3455270",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690496887624",
            "endTimeUnixNano": "1796047690499670561",
            "durationMs": 2.782937,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "b89f9a5b8e3aac3fdee5183466e77653",
            "spanId": "30f094558fe45505",
            "parentSpanId": "8623cb541fb2542a",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690499897520",
            "endTimeUnixNano": "1796047690501163031",
            "durationMs": 1.265511,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "b89f9a5b8e3aac3fdee5183466e77653",
            "spanId": "8623cb541fb2542a",
            "parentSpanId": "8d4519084991ea91",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690499747927",
            "endTimeUnixNano": "1796047690502234792",
            "durationMs": 2.486865,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "b89f9a5b8e3aac3fdee5183466e77653",
            "spanId": "8d4519084991ea91",
            "parentSpanId": "04eb990dde1852c7",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690499710741",
            "endTimeUnixNano": "1796047690502459357",
            "durationMs": 2.748616,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "b89f9a5b8e3aac3fdee5183466e77653",
            "spanId": "04eb990dde1852c7",
            "parentSpanId": "da3370e2b3455270",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690499693666",
            "endTimeUnixNano": "1796047690502482492",
            "durationMs": 2.788826,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "b89f9a5b8e3aac3fdee5183466e77653",
            "spanId": "4c4bfbda2927cad7",
            "parentSpanId": "da3370e2b3455270",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690502890602",
            "endTimeUnixNano": "1796047690502946165",
            "durationMs": 0.055563,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "b89f9a5b8e3aac3fdee5183466e77653",
            "spanId": "8bb8375be26672ff",
            "parentSpanId": "da3370e2b3455270",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690503120605",
            "endTimeUnixNano": "1796047690503153564",
            "durationMs": 0.032959,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "b89f9a5b8e3aac3fdee5183466e77653",
            "spanId": "1fb881e6865595ee",
            "parentSpanId": "da3370e2b3455270",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690503313984",
            "endTimeUnixNano": "1796047690503343759",
            "durationMs": 0.029775,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "b89f9a5b8e3aac3fdee5183466e77653",
            "spanId": "5ce926f361cb1975",
            "parentSpanId": "da3370e2b3455270",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690503469106",
            "endTimeUnixNano": "1796047690503495325",
            "durationMs": 0.026219,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "storageCleanup.measureWorktree",
            "traceId": "b89f9a5b8e3aac3fdee5183466e77653",
            "spanId": "aa74fdbb9846c6a2",
            "parentSpanId": "da3370e2b3455270",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690503528254",
            "endTimeUnixNano": "1796047690504115011",
            "durationMs": 0.586757,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.reportOrphanWorktrees",
            "traceId": "b89f9a5b8e3aac3fdee5183466e77653",
            "spanId": "da3370e2b3455270",
            "parentSpanId": "734fafd0a3674ac7",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690487052701",
            "endTimeUnixNano": "1796047690504155521",
            "durationMs": 17.10282,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanWorktrees",
            "traceId": "b89f9a5b8e3aac3fdee5183466e77653",
            "spanId": "734fafd0a3674ac7",
            "parentSpanId": "802117da8a724892",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690485186864",
            "endTimeUnixNano": "1796047690504171275",
            "durationMs": 18.984411,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.sweep",
            "traceId": "b89f9a5b8e3aac3fdee5183466e77653",
            "spanId": "802117da8a724892",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690484806445",
            "endTimeUnixNano": "1796047690504208991",
            "durationMs": 19.402546,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          }
        ]
      },
      {
        "run": 6,
        "warmup": false,
        "elapsedMs": 22.963955999999996,
        "nestedOrphanFound": true,
        "report": {
          "_tag": "Success",
          "value": {
            "trigger": "manual",
            "startedAt": "2026-11-30T14:08:10.505Z",
            "finishedAt": "2026-11-30T14:08:10.524Z",
            "entries": [
              {
                "kind": "worktree",
                "outcome": "kept",
                "reason": "No thread uses this worktree",
                "path": "$FIXTURE/data/worktrees/repository/replay/repo-wt",
                "projectPath": null,
                "threadId": null,
                "threadTitle": null,
                "bytes": 8192,
                "files": null
              }
            ],
            "counts": {
              "removed": 0,
              "kept": 1,
              "failed": 0
            },
            "omittedCount": 0,
            "bytesFreed": 0
          }
        },
        "spans": [
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "439427ecec6f418b6e1d90a743dec8a4",
            "spanId": "680c666abb4cce4d",
            "parentSpanId": "a85969aac5edcac3",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690505356225",
            "endTimeUnixNano": "1796047690505547381",
            "durationMs": 0.191156,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      WITH RECURSIVE retained_checkpoint_threads(thread_id) AS (\n        SELECT thread_id FROM orchestration_v2_projection_threads WHERE deleted_at IS NULL\n        UNION\n        SELECT json_extract(t\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.045,
              "db.client.connection.wait_time_ms": 0.063044
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanCheckpointRefs",
            "traceId": "439427ecec6f418b6e1d90a743dec8a4",
            "spanId": "a85969aac5edcac3",
            "parentSpanId": "daed485e1c3b032c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690505339350",
            "endTimeUnixNano": "1796047690505591466",
            "durationMs": 0.252116,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.retryLeftovers",
            "traceId": "439427ecec6f418b6e1d90a743dec8a4",
            "spanId": "01a973a4c4c9c502",
            "parentSpanId": "daed485e1c3b032c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690505610915",
            "endTimeUnixNano": "1796047690505696864",
            "durationMs": 0.085949,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveGitWorktreePath",
            "traceId": "439427ecec6f418b6e1d90a743dec8a4",
            "spanId": "ced23a6c2325fa1b",
            "parentSpanId": "c4cd5eacb969edd8",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690505745006",
            "endTimeUnixNano": "1796047690505942180",
            "durationMs": 0.197174,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveWorktreeT3Home",
            "traceId": "439427ecec6f418b6e1d90a743dec8a4",
            "spanId": "c4cd5eacb969edd8",
            "parentSpanId": "2cf66ae49809fc60",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690505737805",
            "endTimeUnixNano": "1796047690505953667",
            "durationMs": 0.215862,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "439427ecec6f418b6e1d90a743dec8a4",
            "spanId": "d974cd4ab5b4ec03",
            "parentSpanId": "2cf66ae49809fc60",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690506227857",
            "endTimeUnixNano": "1796047690506363920",
            "durationMs": 0.136063,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n          SELECT t.payload_json, p.workspace_root AS \"workspaceRoot\"\n          FROM orchestration_v2_projection_threads t\n          JOIN projection_projects p ON p.project_id = t.project_id\n         \u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.055,
              "db.client.connection.wait_time_ms": 0.074972
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "BEGIN",
            "traceId": "439427ecec6f418b6e1d90a743dec8a4",
            "spanId": "b1dc2eb2f1d08ffe",
            "parentSpanId": "33bd3825bcc74c10",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690506514866",
            "endTimeUnixNano": "1796047690506564941",
            "durationMs": 0.050075,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "BEGIN"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "439427ecec6f418b6e1d90a743dec8a4",
            "spanId": "a9a5c9c372f5bdbe",
            "parentSpanId": "4c6755d7980ce482",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690506674584",
            "endTimeUnixNano": "1796047690506777018",
            "durationMs": 0.102434,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n            SELECT\n              t.thread_id,\n              t.payload_json,\n              t.fork_run_ids_json,\n              CASE\n                WHEN json_extract(t.payload_json, '$.forkedFrom.type'\u2026[truncated]",
              "db.client.connection.wait_time_ms": 0.015043
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "439427ecec6f418b6e1d90a743dec8a4",
            "spanId": "b076f1add1139716",
            "parentSpanId": "4c6755d7980ce482",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690506813812",
            "endTimeUnixNano": "1796047690506862205",
            "durationMs": 0.048393,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n        SELECT MAX(sequence) AS snapshot_sequence\n        FROM orchestration_events\n        WHERE application_event_version = 2\n          AND aggregate_kind = 'thread'\n      ",
              "db.client.connection.wait_time_ms": 0.007912
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readShellSnapshotRows",
            "traceId": "439427ecec6f418b6e1d90a743dec8a4",
            "spanId": "4c6755d7980ce482",
            "parentSpanId": "33bd3825bcc74c10",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690506592201",
            "endTimeUnixNano": "1796047690506879140",
            "durationMs": 0.286939,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "COMMIT",
            "traceId": "439427ecec6f418b6e1d90a743dec8a4",
            "spanId": "ee1689a8eaed449b",
            "parentSpanId": "33bd3825bcc74c10",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690506890227",
            "endTimeUnixNano": "1796047690506921513",
            "durationMs": 0.031286,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "COMMIT"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sql.transaction",
            "traceId": "439427ecec6f418b6e1d90a743dec8a4",
            "spanId": "33bd3825bcc74c10",
            "parentSpanId": "4b45e3226e6f4631",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690506458251",
            "endTimeUnixNano": "1796047690506944618",
            "durationMs": 0.486367,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.client.connection.wait_time_ms": 0.050075,
              "db.connection": "reader",
              "db.lock_wait_ms": 0.033
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.pendingBackgroundDataByThreadId",
            "traceId": "439427ecec6f418b6e1d90a743dec8a4",
            "spanId": "e7f8a2fef8705bfd",
            "parentSpanId": "2b756b5ead21a4f8",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690507001002",
            "endTimeUnixNano": "1796047690507009785",
            "durationMs": 0.008783,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.decodeShellSnapshot",
            "traceId": "439427ecec6f418b6e1d90a743dec8a4",
            "spanId": "2b756b5ead21a4f8",
            "parentSpanId": "4b45e3226e6f4631",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690506973371",
            "endTimeUnixNano": "1796047690507019740",
            "durationMs": 0.046369,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "439427ecec6f418b6e1d90a743dec8a4",
            "spanId": "0c7fb945654148d7",
            "parentSpanId": "2e3c67de934cf7bc",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690507058218",
            "endTimeUnixNano": "1796047690507221642",
            "durationMs": 0.163424,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.051,
              "db.client.connection.wait_time_ms": 0.061422
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectStoreV2.listShells",
            "traceId": "439427ecec6f418b6e1d90a743dec8a4",
            "spanId": "2e3c67de934cf7bc",
            "parentSpanId": "4b45e3226e6f4631",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690507028513",
            "endTimeUnixNano": "1796047690507330304",
            "durationMs": 0.301791,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.readThreads",
            "traceId": "439427ecec6f418b6e1d90a743dec8a4",
            "spanId": "4b45e3226e6f4631",
            "parentSpanId": "2cf66ae49809fc60",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690506414366",
            "endTimeUnixNano": "1796047690507341130",
            "durationMs": 0.926764,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "439427ecec6f418b6e1d90a743dec8a4",
            "spanId": "dc3805454b94adc6",
            "parentSpanId": "2cf66ae49809fc60",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690507372267",
            "endTimeUnixNano": "1796047690507672025",
            "durationMs": 0.299758,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.031,
              "db.client.connection.wait_time_ms": 0.046259
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "439427ecec6f418b6e1d90a743dec8a4",
            "spanId": "dd42e45140618d51",
            "parentSpanId": "c0892ca14585cd61",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690507748709",
            "endTimeUnixNano": "1796047690507870702",
            "durationMs": 0.121993,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT DISTINCT json_extract(payload_json, '$.worktreePath') AS \"worktreePath\"\n      FROM orchestration_v2_projection_threads\n      WHERE json_extract(payload_json, '$.worktreePath') IS NOT NUL\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.046,
              "db.client.connection.wait_time_ms": 0.056755
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "439427ecec6f418b6e1d90a743dec8a4",
            "spanId": "c8725a48fbb47c15",
            "parentSpanId": "a442ca30d10c993a",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690509343171",
            "endTimeUnixNano": "1796047690510562052",
            "durationMs": 1.218881,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "439427ecec6f418b6e1d90a743dec8a4",
            "spanId": "a442ca30d10c993a",
            "parentSpanId": "741afa9570bed771",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690509133097",
            "endTimeUnixNano": "1796047690511425412",
            "durationMs": 2.292315,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "439427ecec6f418b6e1d90a743dec8a4",
            "spanId": "741afa9570bed771",
            "parentSpanId": "fd3078cb4acfc2eb",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690509093188",
            "endTimeUnixNano": "1796047690511630058",
            "durationMs": 2.53687,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/plain-notes",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "439427ecec6f418b6e1d90a743dec8a4",
            "spanId": "d9e9648d54639117",
            "parentSpanId": "0ef0dd5e135efdaf",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690511868053",
            "endTimeUnixNano": "1796047690513220313",
            "durationMs": 1.35226,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "439427ecec6f418b6e1d90a743dec8a4",
            "spanId": "0ef0dd5e135efdaf",
            "parentSpanId": "65af579b23af7d73",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690511706201",
            "endTimeUnixNano": "1796047690514005256",
            "durationMs": 2.299055,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "439427ecec6f418b6e1d90a743dec8a4",
            "spanId": "65af579b23af7d73",
            "parentSpanId": "fd3078cb4acfc2eb",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690511660233",
            "endTimeUnixNano": "1796047690514188059",
            "durationMs": 2.527826,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/plain-notes",
              "git.args_count": 3
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "439427ecec6f418b6e1d90a743dec8a4",
            "spanId": "fd3078cb4acfc2eb",
            "parentSpanId": "c0892ca14585cd61",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690509072337",
            "endTimeUnixNano": "1796047690514253898",
            "durationMs": 5.181561,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Failure",
              "cause": "GitCommandError: Git command failed in GitVcsDriver.listWorktreePaths ($FIXTURE/fx/plain-notes): Git command exited with a non-zero status. (not_a_repository)\n    at file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:1635:11\n    at executeWorktreeList (file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:7803:5)\n    at executeWorktreeList (definition) (file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:1681:38)\n    at StorageCleanup.reportOrphanWorktrees (file://$CHECKOUT/apps/server/src/storageCleanup.ts:1967:12)\n    at StorageCleanup.reportOrphanWorktrees (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:556:40)\n    at StorageCleanup.cleanWorktrees (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2193:37)\n    at StorageCleanup.cleanWorktrees (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:1208:33)\n    at StorageCleanup.sweep (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2293:24)\n    at StorageCleanup.sweep (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2162:24)\n    at DrainableWorker.makeDrainableWorker (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2290:25)\n    at DrainableWorker.makeDrainableWorker (definition) (file://$CHECKOUT/packages/shared/src/DrainableWorker.ts:20:43)"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "439427ecec6f418b6e1d90a743dec8a4",
            "spanId": "5bbf5cec163b8d76",
            "parentSpanId": "4d6ba5ea2261b7ec",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690514629358",
            "endTimeUnixNano": "1796047690515820207",
            "durationMs": 1.190849,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "439427ecec6f418b6e1d90a743dec8a4",
            "spanId": "4d6ba5ea2261b7ec",
            "parentSpanId": "d8db1075137ad63c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690514475449",
            "endTimeUnixNano": "1796047690516744288",
            "durationMs": 2.268839,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "439427ecec6f418b6e1d90a743dec8a4",
            "spanId": "d8db1075137ad63c",
            "parentSpanId": "3912d58256d0711b",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690514434677",
            "endTimeUnixNano": "1796047690516917787",
            "durationMs": 2.48311,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo/packages/app",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "439427ecec6f418b6e1d90a743dec8a4",
            "spanId": "3912d58256d0711b",
            "parentSpanId": "c0892ca14585cd61",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690514409450",
            "endTimeUnixNano": "1796047690516937977",
            "durationMs": 2.528527,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "439427ecec6f418b6e1d90a743dec8a4",
            "spanId": "223631affb44bf3b",
            "parentSpanId": "b4fab361019ed8a7",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690517163044",
            "endTimeUnixNano": "1796047690518697446",
            "durationMs": 1.534402,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "439427ecec6f418b6e1d90a743dec8a4",
            "spanId": "b4fab361019ed8a7",
            "parentSpanId": "b8235f2eddba9ee5",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690517013640",
            "endTimeUnixNano": "1796047690519648847",
            "durationMs": 2.635207,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "439427ecec6f418b6e1d90a743dec8a4",
            "spanId": "b8235f2eddba9ee5",
            "parentSpanId": "45fa54b95545a5cc",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690516978618",
            "endTimeUnixNano": "1796047690519864709",
            "durationMs": 2.886091,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo-link",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "439427ecec6f418b6e1d90a743dec8a4",
            "spanId": "45fa54b95545a5cc",
            "parentSpanId": "c0892ca14585cd61",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690516961092",
            "endTimeUnixNano": "1796047690519890368",
            "durationMs": 2.929276,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "439427ecec6f418b6e1d90a743dec8a4",
            "spanId": "c03f522986ae825a",
            "parentSpanId": "91fd4dbba730400e",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690520127012",
            "endTimeUnixNano": "1796047690521351941",
            "durationMs": 1.224929,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "439427ecec6f418b6e1d90a743dec8a4",
            "spanId": "91fd4dbba730400e",
            "parentSpanId": "502b49d2bf891cf6",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690519972731",
            "endTimeUnixNano": "1796047690522265186",
            "durationMs": 2.292455,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "439427ecec6f418b6e1d90a743dec8a4",
            "spanId": "502b49d2bf891cf6",
            "parentSpanId": "ca749a0df3bf1069",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690519933432",
            "endTimeUnixNano": "1796047690522492465",
            "durationMs": 2.559033,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "439427ecec6f418b6e1d90a743dec8a4",
            "spanId": "ca749a0df3bf1069",
            "parentSpanId": "c0892ca14585cd61",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690519915876",
            "endTimeUnixNano": "1796047690522514278",
            "durationMs": 2.598402,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "439427ecec6f418b6e1d90a743dec8a4",
            "spanId": "e6f6e3db1712d12e",
            "parentSpanId": "c0892ca14585cd61",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690522896359",
            "endTimeUnixNano": "1796047690522947886",
            "durationMs": 0.051527,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "439427ecec6f418b6e1d90a743dec8a4",
            "spanId": "63d399576bd20441",
            "parentSpanId": "c0892ca14585cd61",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690523119352",
            "endTimeUnixNano": "1796047690523163588",
            "durationMs": 0.044236,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "439427ecec6f418b6e1d90a743dec8a4",
            "spanId": "eadc8c493b38c87b",
            "parentSpanId": "c0892ca14585cd61",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690523334964",
            "endTimeUnixNano": "1796047690523367493",
            "durationMs": 0.032529,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "439427ecec6f418b6e1d90a743dec8a4",
            "spanId": "8047e49fb637091a",
            "parentSpanId": "c0892ca14585cd61",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690523494222",
            "endTimeUnixNano": "1796047690523524537",
            "durationMs": 0.030315,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "storageCleanup.measureWorktree",
            "traceId": "439427ecec6f418b6e1d90a743dec8a4",
            "spanId": "c518b71ed57ead89",
            "parentSpanId": "c0892ca14585cd61",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690523563215",
            "endTimeUnixNano": "1796047690524176531",
            "durationMs": 0.613316,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.reportOrphanWorktrees",
            "traceId": "439427ecec6f418b6e1d90a743dec8a4",
            "spanId": "c0892ca14585cd61",
            "parentSpanId": "2cf66ae49809fc60",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690507737342",
            "endTimeUnixNano": "1796047690524213587",
            "durationMs": 16.476245,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanWorktrees",
            "traceId": "439427ecec6f418b6e1d90a743dec8a4",
            "spanId": "2cf66ae49809fc60",
            "parentSpanId": "daed485e1c3b032c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690505711165",
            "endTimeUnixNano": "1796047690524225564",
            "durationMs": 18.514399,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.sweep",
            "traceId": "439427ecec6f418b6e1d90a743dec8a4",
            "spanId": "daed485e1c3b032c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690505309505",
            "endTimeUnixNano": "1796047690524284823",
            "durationMs": 18.975318,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          }
        ]
      },
      {
        "run": 7,
        "warmup": false,
        "elapsedMs": 20.792502999999982,
        "nestedOrphanFound": true,
        "report": {
          "_tag": "Success",
          "value": {
            "trigger": "manual",
            "startedAt": "2026-11-30T14:08:10.528Z",
            "finishedAt": "2026-11-30T14:08:10.548Z",
            "entries": [
              {
                "kind": "worktree",
                "outcome": "kept",
                "reason": "No thread uses this worktree",
                "path": "$FIXTURE/data/worktrees/repository/replay/repo-wt",
                "projectPath": null,
                "threadId": null,
                "threadTitle": null,
                "bytes": 8192,
                "files": null
              }
            ],
            "counts": {
              "removed": 0,
              "kept": 1,
              "failed": 0
            },
            "omittedCount": 0,
            "bytesFreed": 0
          }
        },
        "spans": [
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "d5220a0f56378a303c8a5ca9dd12f60c",
            "spanId": "5a64578f482dad1d",
            "parentSpanId": "6081dd7f831f0800",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690528591487",
            "endTimeUnixNano": "1796047690528795271",
            "durationMs": 0.203784,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      WITH RECURSIVE retained_checkpoint_threads(thread_id) AS (\n        SELECT thread_id FROM orchestration_v2_projection_threads WHERE deleted_at IS NULL\n        UNION\n        SELECT json_extract(t\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.056,
              "db.client.connection.wait_time_ms": 0.080771
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanCheckpointRefs",
            "traceId": "d5220a0f56378a303c8a5ca9dd12f60c",
            "spanId": "6081dd7f831f0800",
            "parentSpanId": "aa4da6ab8701d3f7",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690528572559",
            "endTimeUnixNano": "1796047690528842502",
            "durationMs": 0.269943,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.retryLeftovers",
            "traceId": "d5220a0f56378a303c8a5ca9dd12f60c",
            "spanId": "35306d90a03607a6",
            "parentSpanId": "aa4da6ab8701d3f7",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690528861300",
            "endTimeUnixNano": "1796047690528957023",
            "durationMs": 0.095723,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveGitWorktreePath",
            "traceId": "d5220a0f56378a303c8a5ca9dd12f60c",
            "spanId": "a917b430ca1c04d5",
            "parentSpanId": "1474d70d41f438ae",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690529005285",
            "endTimeUnixNano": "1796047690529218283",
            "durationMs": 0.212998,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveWorktreeT3Home",
            "traceId": "d5220a0f56378a303c8a5ca9dd12f60c",
            "spanId": "1474d70d41f438ae",
            "parentSpanId": "dad22d216a171c57",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690528997123",
            "endTimeUnixNano": "1796047690529229640",
            "durationMs": 0.232517,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "d5220a0f56378a303c8a5ca9dd12f60c",
            "spanId": "8374c653409f6901",
            "parentSpanId": "dad22d216a171c57",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690529544290",
            "endTimeUnixNano": "1796047690529664800",
            "durationMs": 0.12051,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n          SELECT t.payload_json, p.workspace_root AS \"workspaceRoot\"\n          FROM orchestration_v2_projection_threads t\n          JOIN projection_projects p ON p.project_id = t.project_id\n         \u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.039,
              "db.client.connection.wait_time_ms": 0.057997
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "BEGIN",
            "traceId": "d5220a0f56378a303c8a5ca9dd12f60c",
            "spanId": "a1a55694dd9b62f3",
            "parentSpanId": "ce2b75623dfea7f2",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690529828405",
            "endTimeUnixNano": "1796047690529900743",
            "durationMs": 0.072338,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "BEGIN"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "d5220a0f56378a303c8a5ca9dd12f60c",
            "spanId": "231b5828f32763a3",
            "parentSpanId": "a08450ad9822d4aa",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690530023186",
            "endTimeUnixNano": "1796047690530158498",
            "durationMs": 0.135312,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n            SELECT\n              t.thread_id,\n              t.payload_json,\n              t.fork_run_ids_json,\n              CASE\n                WHEN json_extract(t.payload_json, '$.forkedFrom.type'\u2026[truncated]",
              "db.client.connection.wait_time_ms": 0.020911
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "d5220a0f56378a303c8a5ca9dd12f60c",
            "spanId": "8f67a172e3a1396e",
            "parentSpanId": "a08450ad9822d4aa",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690530205468",
            "endTimeUnixNano": "1796047690530260721",
            "durationMs": 0.055253,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n        SELECT MAX(sequence) AS snapshot_sequence\n        FROM orchestration_events\n        WHERE application_event_version = 2\n          AND aggregate_kind = 'thread'\n      ",
              "db.client.connection.wait_time_ms": 0.007922
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readShellSnapshotRows",
            "traceId": "d5220a0f56378a303c8a5ca9dd12f60c",
            "spanId": "a08450ad9822d4aa",
            "parentSpanId": "ce2b75623dfea7f2",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690529930627",
            "endTimeUnixNano": "1796047690530289273",
            "durationMs": 0.358646,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "COMMIT",
            "traceId": "d5220a0f56378a303c8a5ca9dd12f60c",
            "spanId": "3166e2c290949080",
            "parentSpanId": "ce2b75623dfea7f2",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690530300280",
            "endTimeUnixNano": "1796047690530341181",
            "durationMs": 0.040901,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "COMMIT"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sql.transaction",
            "traceId": "d5220a0f56378a303c8a5ca9dd12f60c",
            "spanId": "ce2b75623dfea7f2",
            "parentSpanId": "7a3eeb82f783d67c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690529748455",
            "endTimeUnixNano": "1796047690530368722",
            "durationMs": 0.620267,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.client.connection.wait_time_ms": 0.070456,
              "db.connection": "reader",
              "db.lock_wait_ms": 0.05
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.pendingBackgroundDataByThreadId",
            "traceId": "d5220a0f56378a303c8a5ca9dd12f60c",
            "spanId": "9c3856d015e7a728",
            "parentSpanId": "26bfd06e1a9d1109",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690530423494",
            "endTimeUnixNano": "1796047690530437725",
            "durationMs": 0.014231,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.decodeShellSnapshot",
            "traceId": "d5220a0f56378a303c8a5ca9dd12f60c",
            "spanId": "26bfd06e1a9d1109",
            "parentSpanId": "7a3eeb82f783d67c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690530401721",
            "endTimeUnixNano": "1796047690530448381",
            "durationMs": 0.04666,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "d5220a0f56378a303c8a5ca9dd12f60c",
            "spanId": "28b58aa785d1d534",
            "parentSpanId": "c5453d87191b3841",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690530489873",
            "endTimeUnixNano": "1796047690530629321",
            "durationMs": 0.139448,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.036,
              "db.client.connection.wait_time_ms": 0.047561
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectStoreV2.listShells",
            "traceId": "d5220a0f56378a303c8a5ca9dd12f60c",
            "spanId": "c5453d87191b3841",
            "parentSpanId": "7a3eeb82f783d67c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690530458166",
            "endTimeUnixNano": "1796047690530716922",
            "durationMs": 0.258756,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.readThreads",
            "traceId": "d5220a0f56378a303c8a5ca9dd12f60c",
            "spanId": "7a3eeb82f783d67c",
            "parentSpanId": "dad22d216a171c57",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690529710418",
            "endTimeUnixNano": "1796047690530726887",
            "durationMs": 1.016469,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "d5220a0f56378a303c8a5ca9dd12f60c",
            "spanId": "fe1c8ccacf7ea159",
            "parentSpanId": "dad22d216a171c57",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690530754418",
            "endTimeUnixNano": "1796047690530894377",
            "durationMs": 0.139959,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.045,
              "db.client.connection.wait_time_ms": 0.058047
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "d5220a0f56378a303c8a5ca9dd12f60c",
            "spanId": "ef4f598e517441c0",
            "parentSpanId": "4755fcd4fdbcf8d4",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690530994807",
            "endTimeUnixNano": "1796047690531143950",
            "durationMs": 0.149143,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT DISTINCT json_extract(payload_json, '$.worktreePath') AS \"worktreePath\"\n      FROM orchestration_v2_projection_threads\n      WHERE json_extract(payload_json, '$.worktreePath') IS NOT NUL\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.065,
              "db.client.connection.wait_time_ms": 0.077806
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "d5220a0f56378a303c8a5ca9dd12f60c",
            "spanId": "fae34bfc7a0e13ff",
            "parentSpanId": "87d4e4ec80ac4fe5",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690532698743",
            "endTimeUnixNano": "1796047690534130261",
            "durationMs": 1.431518,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "d5220a0f56378a303c8a5ca9dd12f60c",
            "spanId": "87d4e4ec80ac4fe5",
            "parentSpanId": "02cb2e9b141b6f98",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690532507848",
            "endTimeUnixNano": "1796047690535116134",
            "durationMs": 2.608286,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "d5220a0f56378a303c8a5ca9dd12f60c",
            "spanId": "02cb2e9b141b6f98",
            "parentSpanId": "8531b2fe1a1bec52",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690532463221",
            "endTimeUnixNano": "1796047690535370254",
            "durationMs": 2.907033,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/plain-notes",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "d5220a0f56378a303c8a5ca9dd12f60c",
            "spanId": "a7579741c4b19c20",
            "parentSpanId": "a9651718f18da49d",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690535614258",
            "endTimeUnixNano": "1796047690536994110",
            "durationMs": 1.379852,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "d5220a0f56378a303c8a5ca9dd12f60c",
            "spanId": "a9651718f18da49d",
            "parentSpanId": "bfcd277e0696697f",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690535455431",
            "endTimeUnixNano": "1796047690537900103",
            "durationMs": 2.444672,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "d5220a0f56378a303c8a5ca9dd12f60c",
            "spanId": "bfcd277e0696697f",
            "parentSpanId": "8531b2fe1a1bec52",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690535404315",
            "endTimeUnixNano": "1796047690538153922",
            "durationMs": 2.749607,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/plain-notes",
              "git.args_count": 3
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "d5220a0f56378a303c8a5ca9dd12f60c",
            "spanId": "8531b2fe1a1bec52",
            "parentSpanId": "4755fcd4fdbcf8d4",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690532435289",
            "endTimeUnixNano": "1796047690538249285",
            "durationMs": 5.813996,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Failure",
              "cause": "GitCommandError: Git command failed in GitVcsDriver.listWorktreePaths ($FIXTURE/fx/plain-notes): Git command exited with a non-zero status. (not_a_repository)\n    at file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:1635:11\n    at executeWorktreeList (file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:7803:5)\n    at executeWorktreeList (definition) (file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:1681:38)\n    at StorageCleanup.reportOrphanWorktrees (file://$CHECKOUT/apps/server/src/storageCleanup.ts:1967:12)\n    at StorageCleanup.reportOrphanWorktrees (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:556:40)\n    at StorageCleanup.cleanWorktrees (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2193:37)\n    at StorageCleanup.cleanWorktrees (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:1208:33)\n    at StorageCleanup.sweep (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2293:24)\n    at StorageCleanup.sweep (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2162:24)\n    at DrainableWorker.makeDrainableWorker (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2290:25)\n    at DrainableWorker.makeDrainableWorker (definition) (file://$CHECKOUT/packages/shared/src/DrainableWorker.ts:20:43)"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "d5220a0f56378a303c8a5ca9dd12f60c",
            "spanId": "91d91ae1cf0309ec",
            "parentSpanId": "d862391cd8f1abdf",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690538642442",
            "endTimeUnixNano": "1796047690539984597",
            "durationMs": 1.342155,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "d5220a0f56378a303c8a5ca9dd12f60c",
            "spanId": "d862391cd8f1abdf",
            "parentSpanId": "c5c04b44ef6a454a",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690538486269",
            "endTimeUnixNano": "1796047690540833365",
            "durationMs": 2.347096,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "d5220a0f56378a303c8a5ca9dd12f60c",
            "spanId": "c5c04b44ef6a454a",
            "parentSpanId": "bb6110bb3b378ba4",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690538440891",
            "endTimeUnixNano": "1796047690541007575",
            "durationMs": 2.566684,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo/packages/app",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "d5220a0f56378a303c8a5ca9dd12f60c",
            "spanId": "bb6110bb3b378ba4",
            "parentSpanId": "4755fcd4fdbcf8d4",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690538415934",
            "endTimeUnixNano": "1796047690541024581",
            "durationMs": 2.608647,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "d5220a0f56378a303c8a5ca9dd12f60c",
            "spanId": "640fa171fdf2ba17",
            "parentSpanId": "6779df159253132d",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690541246663",
            "endTimeUnixNano": "1796047690542583800",
            "durationMs": 1.337137,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "d5220a0f56378a303c8a5ca9dd12f60c",
            "spanId": "6779df159253132d",
            "parentSpanId": "8fe3805a8dd86113",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690541100274",
            "endTimeUnixNano": "1796047690543463254",
            "durationMs": 2.36298,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "d5220a0f56378a303c8a5ca9dd12f60c",
            "spanId": "8fe3805a8dd86113",
            "parentSpanId": "a5c71ce258c8b0d4",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690541065292",
            "endTimeUnixNano": "1796047690543714459",
            "durationMs": 2.649167,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo-link",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "d5220a0f56378a303c8a5ca9dd12f60c",
            "spanId": "a5c71ce258c8b0d4",
            "parentSpanId": "4755fcd4fdbcf8d4",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690541047595",
            "endTimeUnixNano": "1796047690543740178",
            "durationMs": 2.692583,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "d5220a0f56378a303c8a5ca9dd12f60c",
            "spanId": "e800f6e25667ba55",
            "parentSpanId": "1fb2558f770dbd26",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690543970943",
            "endTimeUnixNano": "1796047690545439246",
            "durationMs": 1.468303,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "d5220a0f56378a303c8a5ca9dd12f60c",
            "spanId": "1fb2558f770dbd26",
            "parentSpanId": "ad266e2f15282761",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690543826236",
            "endTimeUnixNano": "1796047690546214795",
            "durationMs": 2.388559,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "d5220a0f56378a303c8a5ca9dd12f60c",
            "spanId": "ad266e2f15282761",
            "parentSpanId": "b40b47b44892acdb",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690543784414",
            "endTimeUnixNano": "1796047690546407703",
            "durationMs": 2.623289,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "d5220a0f56378a303c8a5ca9dd12f60c",
            "spanId": "b40b47b44892acdb",
            "parentSpanId": "4755fcd4fdbcf8d4",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690543766367",
            "endTimeUnixNano": "1796047690546434233",
            "durationMs": 2.667866,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "d5220a0f56378a303c8a5ca9dd12f60c",
            "spanId": "ba8531c8c093d339",
            "parentSpanId": "4755fcd4fdbcf8d4",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690546789714",
            "endTimeUnixNano": "1796047690546846929",
            "durationMs": 0.057215,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "d5220a0f56378a303c8a5ca9dd12f60c",
            "spanId": "985d0cdd18d00982",
            "parentSpanId": "4755fcd4fdbcf8d4",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690547001590",
            "endTimeUnixNano": "1796047690547025616",
            "durationMs": 0.024026,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "d5220a0f56378a303c8a5ca9dd12f60c",
            "spanId": "6e9f9c63c5c4d3e0",
            "parentSpanId": "4755fcd4fdbcf8d4",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690547145275",
            "endTimeUnixNano": "1796047690547164564",
            "durationMs": 0.019289,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "d5220a0f56378a303c8a5ca9dd12f60c",
            "spanId": "3efed850dc92f135",
            "parentSpanId": "4755fcd4fdbcf8d4",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690547245485",
            "endTimeUnixNano": "1796047690547288298",
            "durationMs": 0.042813,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "storageCleanup.measureWorktree",
            "traceId": "d5220a0f56378a303c8a5ca9dd12f60c",
            "spanId": "b9412645c942fe19",
            "parentSpanId": "4755fcd4fdbcf8d4",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690547324603",
            "endTimeUnixNano": "1796047690547847985",
            "durationMs": 0.523382,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.reportOrphanWorktrees",
            "traceId": "d5220a0f56378a303c8a5ca9dd12f60c",
            "spanId": "4755fcd4fdbcf8d4",
            "parentSpanId": "dad22d216a171c57",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690530979444",
            "endTimeUnixNano": "1796047690547878470",
            "durationMs": 16.899026,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanWorktrees",
            "traceId": "d5220a0f56378a303c8a5ca9dd12f60c",
            "spanId": "dad22d216a171c57",
            "parentSpanId": "aa4da6ab8701d3f7",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690528971505",
            "endTimeUnixNano": "1796047690547885300",
            "durationMs": 18.913795,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.sweep",
            "traceId": "d5220a0f56378a303c8a5ca9dd12f60c",
            "spanId": "aa4da6ab8701d3f7",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690528534111",
            "endTimeUnixNano": "1796047690547920733",
            "durationMs": 19.386622,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          }
        ]
      },
      {
        "run": 8,
        "warmup": false,
        "elapsedMs": 25.150543000000027,
        "nestedOrphanFound": true,
        "report": {
          "_tag": "Success",
          "value": {
            "trigger": "manual",
            "startedAt": "2026-11-30T14:08:10.549Z",
            "finishedAt": "2026-11-30T14:08:10.573Z",
            "entries": [
              {
                "kind": "worktree",
                "outcome": "kept",
                "reason": "No thread uses this worktree",
                "path": "$FIXTURE/data/worktrees/repository/replay/repo-wt",
                "projectPath": null,
                "threadId": null,
                "threadTitle": null,
                "bytes": 8192,
                "files": null
              }
            ],
            "counts": {
              "removed": 0,
              "kept": 1,
              "failed": 0
            },
            "omittedCount": 0,
            "bytesFreed": 0
          }
        },
        "spans": [
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "f87449f8455cbf32cb78d8fc3e5f9971",
            "spanId": "8561131f2a44b8fb",
            "parentSpanId": "23a7a6a6d915ffa9",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690549151502",
            "endTimeUnixNano": "1796047690549332442",
            "durationMs": 0.18094,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      WITH RECURSIVE retained_checkpoint_threads(thread_id) AS (\n        SELECT thread_id FROM orchestration_v2_projection_threads WHERE deleted_at IS NULL\n        UNION\n        SELECT json_extract(t\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.04,
              "db.client.connection.wait_time_ms": 0.056244
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanCheckpointRefs",
            "traceId": "f87449f8455cbf32cb78d8fc3e5f9971",
            "spanId": "23a7a6a6d915ffa9",
            "parentSpanId": "1e1589f40a4e39d2",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690549140125",
            "endTimeUnixNano": "1796047690549372763",
            "durationMs": 0.232638,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.retryLeftovers",
            "traceId": "f87449f8455cbf32cb78d8fc3e5f9971",
            "spanId": "b0ca4a09fc607ed3",
            "parentSpanId": "1e1589f40a4e39d2",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690549392342",
            "endTimeUnixNano": "1796047690549470378",
            "durationMs": 0.078036,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveGitWorktreePath",
            "traceId": "f87449f8455cbf32cb78d8fc3e5f9971",
            "spanId": "880bc73f1ea1ef71",
            "parentSpanId": "3813be4da08e17eb",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690549509997",
            "endTimeUnixNano": "1796047690549684138",
            "durationMs": 0.174141,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveWorktreeT3Home",
            "traceId": "f87449f8455cbf32cb78d8fc3e5f9971",
            "spanId": "3813be4da08e17eb",
            "parentSpanId": "92d5d50291bbf9c6",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690549502997",
            "endTimeUnixNano": "1796047690549699411",
            "durationMs": 0.196414,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "f87449f8455cbf32cb78d8fc3e5f9971",
            "spanId": "b5484e4c6603c9a0",
            "parentSpanId": "92d5d50291bbf9c6",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690549937026",
            "endTimeUnixNano": "1796047690550048132",
            "durationMs": 0.111106,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n          SELECT t.payload_json, p.workspace_root AS \"workspaceRoot\"\n          FROM orchestration_v2_projection_threads t\n          JOIN projection_projects p ON p.project_id = t.project_id\n         \u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.033,
              "db.client.connection.wait_time_ms": 0.049223
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "BEGIN",
            "traceId": "f87449f8455cbf32cb78d8fc3e5f9971",
            "spanId": "56c1ab53481e0a28",
            "parentSpanId": "19a8b33cc60d1152",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690550166418",
            "endTimeUnixNano": "1796047690550217795",
            "durationMs": 0.051377,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "BEGIN"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "f87449f8455cbf32cb78d8fc3e5f9971",
            "spanId": "06c4030adb993e04",
            "parentSpanId": "9fc294e52d2f25d4",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690550325616",
            "endTimeUnixNano": "1796047690550422240",
            "durationMs": 0.096624,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n            SELECT\n              t.thread_id,\n              t.payload_json,\n              t.fork_run_ids_json,\n              CASE\n                WHEN json_extract(t.payload_json, '$.forkedFrom.type'\u2026[truncated]",
              "db.client.connection.wait_time_ms": 0.013751
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "f87449f8455cbf32cb78d8fc3e5f9971",
            "spanId": "c8a81808219ff489",
            "parentSpanId": "9fc294e52d2f25d4",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690550460638",
            "endTimeUnixNano": "1796047690550509190",
            "durationMs": 0.048552,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n        SELECT MAX(sequence) AS snapshot_sequence\n        FROM orchestration_events\n        WHERE application_event_version = 2\n          AND aggregate_kind = 'thread'\n      ",
              "db.client.connection.wait_time_ms": 0.007831
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readShellSnapshotRows",
            "traceId": "f87449f8455cbf32cb78d8fc3e5f9971",
            "spanId": "9fc294e52d2f25d4",
            "parentSpanId": "19a8b33cc60d1152",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690550242091",
            "endTimeUnixNano": "1796047690550523612",
            "durationMs": 0.281521,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "COMMIT",
            "traceId": "f87449f8455cbf32cb78d8fc3e5f9971",
            "spanId": "08a83b5e3059abaa",
            "parentSpanId": "19a8b33cc60d1152",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690550532255",
            "endTimeUnixNano": "1796047690550564373",
            "durationMs": 0.032118,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "COMMIT"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sql.transaction",
            "traceId": "f87449f8455cbf32cb78d8fc3e5f9971",
            "spanId": "19a8b33cc60d1152",
            "parentSpanId": "60ca939fd8983dc9",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690550118306",
            "endTimeUnixNano": "1796047690550585704",
            "durationMs": 0.467398,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.client.connection.wait_time_ms": 0.041633,
              "db.connection": "reader",
              "db.lock_wait_ms": 0.026
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.pendingBackgroundDataByThreadId",
            "traceId": "f87449f8455cbf32cb78d8fc3e5f9971",
            "spanId": "4f353a67e19f8364",
            "parentSpanId": "a07a9b101bcec926",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690550627607",
            "endTimeUnixNano": "1796047690550633536",
            "durationMs": 0.005929,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.decodeShellSnapshot",
            "traceId": "f87449f8455cbf32cb78d8fc3e5f9971",
            "spanId": "a07a9b101bcec926",
            "parentSpanId": "60ca939fd8983dc9",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690550611783",
            "endTimeUnixNano": "1796047690550641999",
            "durationMs": 0.030216,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "f87449f8455cbf32cb78d8fc3e5f9971",
            "spanId": "f6cd2c2534c216cb",
            "parentSpanId": "6220f45f668117bc",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690550675188",
            "endTimeUnixNano": "1796047690550796640",
            "durationMs": 0.121452,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.03,
              "db.client.connection.wait_time_ms": 0.039109
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectStoreV2.listShells",
            "traceId": "f87449f8455cbf32cb78d8fc3e5f9971",
            "spanId": "6220f45f668117bc",
            "parentSpanId": "60ca939fd8983dc9",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690550650652",
            "endTimeUnixNano": "1796047690550862368",
            "durationMs": 0.211716,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.readThreads",
            "traceId": "f87449f8455cbf32cb78d8fc3e5f9971",
            "spanId": "60ca939fd8983dc9",
            "parentSpanId": "92d5d50291bbf9c6",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690550088722",
            "endTimeUnixNano": "1796047690550871682",
            "durationMs": 0.78296,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "f87449f8455cbf32cb78d8fc3e5f9971",
            "spanId": "94860526a9332492",
            "parentSpanId": "92d5d50291bbf9c6",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690550896789",
            "endTimeUnixNano": "1796047690550995396",
            "durationMs": 0.098607,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.023,
              "db.client.connection.wait_time_ms": 0.035383
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "f87449f8455cbf32cb78d8fc3e5f9971",
            "spanId": "c1fa225b83b0b118",
            "parentSpanId": "e4d675e2bc832102",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690551056258",
            "endTimeUnixNano": "1796047690551143097",
            "durationMs": 0.086839,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT DISTINCT json_extract(payload_json, '$.worktreePath') AS \"worktreePath\"\n      FROM orchestration_v2_projection_threads\n      WHERE json_extract(payload_json, '$.worktreePath') IS NOT NUL\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.036,
              "db.client.connection.wait_time_ms": 0.044456
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "f87449f8455cbf32cb78d8fc3e5f9971",
            "spanId": "1e54ce5e70559619",
            "parentSpanId": "cf0b5030bdcb498a",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690552491141",
            "endTimeUnixNano": "1796047690553919885",
            "durationMs": 1.428744,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "f87449f8455cbf32cb78d8fc3e5f9971",
            "spanId": "cf0b5030bdcb498a",
            "parentSpanId": "48ff1e6befdea7c9",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690552325394",
            "endTimeUnixNano": "1796047690554852038",
            "durationMs": 2.526644,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "f87449f8455cbf32cb78d8fc3e5f9971",
            "spanId": "48ff1e6befdea7c9",
            "parentSpanId": "21a0cb3e74ca97d0",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690552284582",
            "endTimeUnixNano": "1796047690555056704",
            "durationMs": 2.772122,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/plain-notes",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "f87449f8455cbf32cb78d8fc3e5f9971",
            "spanId": "dbabd6698eeb7a89",
            "parentSpanId": "5edaad168facc13b",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690555297594",
            "endTimeUnixNano": "1796047690556524396",
            "durationMs": 1.226802,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "f87449f8455cbf32cb78d8fc3e5f9971",
            "spanId": "5edaad168facc13b",
            "parentSpanId": "9eade26670ecfd78",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690555129923",
            "endTimeUnixNano": "1796047690557322148",
            "durationMs": 2.192225,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "f87449f8455cbf32cb78d8fc3e5f9971",
            "spanId": "9eade26670ecfd78",
            "parentSpanId": "21a0cb3e74ca97d0",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690555087240",
            "endTimeUnixNano": "1796047690557508667",
            "durationMs": 2.421427,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/plain-notes",
              "git.args_count": 3
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "f87449f8455cbf32cb78d8fc3e5f9971",
            "spanId": "21a0cb3e74ca97d0",
            "parentSpanId": "e4d675e2bc832102",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690552250982",
            "endTimeUnixNano": "1796047690557578742",
            "durationMs": 5.32776,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Failure",
              "cause": "GitCommandError: Git command failed in GitVcsDriver.listWorktreePaths ($FIXTURE/fx/plain-notes): Git command exited with a non-zero status. (not_a_repository)\n    at file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:1635:11\n    at executeWorktreeList (file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:7803:5)\n    at executeWorktreeList (definition) (file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:1681:38)\n    at StorageCleanup.reportOrphanWorktrees (file://$CHECKOUT/apps/server/src/storageCleanup.ts:1967:12)\n    at StorageCleanup.reportOrphanWorktrees (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:556:40)\n    at StorageCleanup.cleanWorktrees (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2193:37)\n    at StorageCleanup.cleanWorktrees (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:1208:33)\n    at StorageCleanup.sweep (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2293:24)\n    at StorageCleanup.sweep (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2162:24)\n    at DrainableWorker.makeDrainableWorker (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2290:25)\n    at DrainableWorker.makeDrainableWorker (definition) (file://$CHECKOUT/packages/shared/src/DrainableWorker.ts:20:43)"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "f87449f8455cbf32cb78d8fc3e5f9971",
            "spanId": "d626690f70ab97bd",
            "parentSpanId": "7981e5cdc6dfde78",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690557922124",
            "endTimeUnixNano": "1796047690559104210",
            "durationMs": 1.182086,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "f87449f8455cbf32cb78d8fc3e5f9971",
            "spanId": "7981e5cdc6dfde78",
            "parentSpanId": "54a5c608e733bdf5",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690557772040",
            "endTimeUnixNano": "1796047690560015222",
            "durationMs": 2.243182,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "f87449f8455cbf32cb78d8fc3e5f9971",
            "spanId": "54a5c608e733bdf5",
            "parentSpanId": "eaf8dd906bf12da0",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690557731900",
            "endTimeUnixNano": "1796047690560191245",
            "durationMs": 2.459345,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo/packages/app",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "f87449f8455cbf32cb78d8fc3e5f9971",
            "spanId": "eaf8dd906bf12da0",
            "parentSpanId": "e4d675e2bc832102",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690557714294",
            "endTimeUnixNano": "1796047690560209001",
            "durationMs": 2.494707,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "f87449f8455cbf32cb78d8fc3e5f9971",
            "spanId": "31d75b3b7b844ecf",
            "parentSpanId": "cb9a51f05f02e4fc",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690563638294",
            "endTimeUnixNano": "1796047690566672958",
            "durationMs": 3.034664,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "f87449f8455cbf32cb78d8fc3e5f9971",
            "spanId": "cb9a51f05f02e4fc",
            "parentSpanId": "770c34dfeac4297e",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690563475211",
            "endTimeUnixNano": "1796047690567638450",
            "durationMs": 4.163239,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "f87449f8455cbf32cb78d8fc3e5f9971",
            "spanId": "770c34dfeac4297e",
            "parentSpanId": "c698ab68ccf958f2",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690563421921",
            "endTimeUnixNano": "1796047690567867192",
            "durationMs": 4.445271,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo-link",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "f87449f8455cbf32cb78d8fc3e5f9971",
            "spanId": "c698ab68ccf958f2",
            "parentSpanId": "e4d675e2bc832102",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690563396954",
            "endTimeUnixNano": "1796047690567887763",
            "durationMs": 4.490809,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "f87449f8455cbf32cb78d8fc3e5f9971",
            "spanId": "4e0b46de54cfac1f",
            "parentSpanId": "49f2aa1608ffc902",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690568148061",
            "endTimeUnixNano": "1796047690569714541",
            "durationMs": 1.56648,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "f87449f8455cbf32cb78d8fc3e5f9971",
            "spanId": "49f2aa1608ffc902",
            "parentSpanId": "6eccf866bc1918d9",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690567980631",
            "endTimeUnixNano": "1796047690570717159",
            "durationMs": 2.736528,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "f87449f8455cbf32cb78d8fc3e5f9971",
            "spanId": "6eccf866bc1918d9",
            "parentSpanId": "058d5c7827d2c8bc",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690567940201",
            "endTimeUnixNano": "1796047690570936126",
            "durationMs": 2.995925,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "f87449f8455cbf32cb78d8fc3e5f9971",
            "spanId": "058d5c7827d2c8bc",
            "parentSpanId": "e4d675e2bc832102",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690567920672",
            "endTimeUnixNano": "1796047690570956617",
            "durationMs": 3.035945,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "f87449f8455cbf32cb78d8fc3e5f9971",
            "spanId": "a8b5cd530ae3a68d",
            "parentSpanId": "e4d675e2bc832102",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690571405488",
            "endTimeUnixNano": "1796047690571481321",
            "durationMs": 0.075833,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "f87449f8455cbf32cb78d8fc3e5f9971",
            "spanId": "d7cb61131d027a49",
            "parentSpanId": "e4d675e2bc832102",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690571655641",
            "endTimeUnixNano": "1796047690571690934",
            "durationMs": 0.035293,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "f87449f8455cbf32cb78d8fc3e5f9971",
            "spanId": "dbb4898dac976413",
            "parentSpanId": "e4d675e2bc832102",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690571846446",
            "endTimeUnixNano": "1796047690571883632",
            "durationMs": 0.037186,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "f87449f8455cbf32cb78d8fc3e5f9971",
            "spanId": "182dec712da2459c",
            "parentSpanId": "e4d675e2bc832102",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690572008929",
            "endTimeUnixNano": "1796047690572039054",
            "durationMs": 0.030125,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "storageCleanup.measureWorktree",
            "traceId": "f87449f8455cbf32cb78d8fc3e5f9971",
            "spanId": "4ad01e57b6933b12",
            "parentSpanId": "e4d675e2bc832102",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690572080266",
            "endTimeUnixNano": "1796047690572772460",
            "durationMs": 0.692194,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.reportOrphanWorktrees",
            "traceId": "f87449f8455cbf32cb78d8fc3e5f9971",
            "spanId": "e4d675e2bc832102",
            "parentSpanId": "92d5d50291bbf9c6",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690551046643",
            "endTimeUnixNano": "1796047690572816155",
            "durationMs": 21.769512,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanWorktrees",
            "traceId": "f87449f8455cbf32cb78d8fc3e5f9971",
            "spanId": "92d5d50291bbf9c6",
            "parentSpanId": "1e1589f40a4e39d2",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690549483638",
            "endTimeUnixNano": "1796047690572827763",
            "durationMs": 23.344125,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.sweep",
            "traceId": "f87449f8455cbf32cb78d8fc3e5f9971",
            "spanId": "1e1589f40a4e39d2",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690549117141",
            "endTimeUnixNano": "1796047690572880030",
            "durationMs": 23.762889,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          }
        ]
      },
      {
        "run": 9,
        "warmup": false,
        "elapsedMs": 20.642618000000027,
        "nestedOrphanFound": true,
        "report": {
          "_tag": "Success",
          "value": {
            "trigger": "manual",
            "startedAt": "2026-11-30T14:08:10.574Z",
            "finishedAt": "2026-11-30T14:08:10.593Z",
            "entries": [
              {
                "kind": "worktree",
                "outcome": "kept",
                "reason": "No thread uses this worktree",
                "path": "$FIXTURE/data/worktrees/repository/replay/repo-wt",
                "projectPath": null,
                "threadId": null,
                "threadTitle": null,
                "bytes": 8192,
                "files": null
              }
            ],
            "counts": {
              "removed": 0,
              "kept": 1,
              "failed": 0
            },
            "omittedCount": 0,
            "bytesFreed": 0
          }
        },
        "spans": [
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "8e516fa0ccce88e15bd55ab6140c330a",
            "spanId": "d9697b11b1375f55",
            "parentSpanId": "8e7badd34f39a998",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690574308885",
            "endTimeUnixNano": "1796047690574519510",
            "durationMs": 0.210625,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      WITH RECURSIVE retained_checkpoint_threads(thread_id) AS (\n        SELECT thread_id FROM orchestration_v2_projection_threads WHERE deleted_at IS NULL\n        UNION\n        SELECT json_extract(t\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.047,
              "db.client.connection.wait_time_ms": 0.072579
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanCheckpointRefs",
            "traceId": "8e516fa0ccce88e15bd55ab6140c330a",
            "spanId": "8e7badd34f39a998",
            "parentSpanId": "348bc21070fa4d06",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690574290388",
            "endTimeUnixNano": "1796047690574561142",
            "durationMs": 0.270754,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.retryLeftovers",
            "traceId": "8e516fa0ccce88e15bd55ab6140c330a",
            "spanId": "1571804b66eca1fe",
            "parentSpanId": "348bc21070fa4d06",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690574582764",
            "endTimeUnixNano": "1796047690574667110",
            "durationMs": 0.084346,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveGitWorktreePath",
            "traceId": "8e516fa0ccce88e15bd55ab6140c330a",
            "spanId": "659cf2cdb748cb73",
            "parentSpanId": "cbcebd00e86c18a6",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690574718627",
            "endTimeUnixNano": "1796047690574921320",
            "durationMs": 0.202693,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveWorktreeT3Home",
            "traceId": "8e516fa0ccce88e15bd55ab6140c330a",
            "spanId": "cbcebd00e86c18a6",
            "parentSpanId": "6f157859bacf4362",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690574705918",
            "endTimeUnixNano": "1796047690574933268",
            "durationMs": 0.22735,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "8e516fa0ccce88e15bd55ab6140c330a",
            "spanId": "cd27cb262b2d3e9a",
            "parentSpanId": "6f157859bacf4362",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690575206947",
            "endTimeUnixNano": "1796047690575343541",
            "durationMs": 0.136594,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n          SELECT t.payload_json, p.workspace_root AS \"workspaceRoot\"\n          FROM orchestration_v2_projection_threads t\n          JOIN projection_projects p ON p.project_id = t.project_id\n         \u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.04,
              "db.client.connection.wait_time_ms": 0.061031
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "BEGIN",
            "traceId": "8e516fa0ccce88e15bd55ab6140c330a",
            "spanId": "520ce373885bfdc2",
            "parentSpanId": "4bad897be7c49a8d",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690575501797",
            "endTimeUnixNano": "1796047690575558542",
            "durationMs": 0.056745,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "BEGIN"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "8e516fa0ccce88e15bd55ab6140c330a",
            "spanId": "d7c649449a41bf28",
            "parentSpanId": "ea8360a7d9ca76ae",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690575659503",
            "endTimeUnixNano": "1796047690575817629",
            "durationMs": 0.158126,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n            SELECT\n              t.thread_id,\n              t.payload_json,\n              t.fork_run_ids_json,\n              CASE\n                WHEN json_extract(t.payload_json, '$.forkedFrom.type'\u2026[truncated]",
              "db.client.connection.wait_time_ms": 0.015333
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "8e516fa0ccce88e15bd55ab6140c330a",
            "spanId": "be8d41f7de0d0082",
            "parentSpanId": "ea8360a7d9ca76ae",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690575848205",
            "endTimeUnixNano": "1796047690575906061",
            "durationMs": 0.057856,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n        SELECT MAX(sequence) AS snapshot_sequence\n        FROM orchestration_events\n        WHERE application_event_version = 2\n          AND aggregate_kind = 'thread'\n      ",
              "db.client.connection.wait_time_ms": 0.008142
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readShellSnapshotRows",
            "traceId": "8e516fa0ccce88e15bd55ab6140c330a",
            "spanId": "ea8360a7d9ca76ae",
            "parentSpanId": "4bad897be7c49a8d",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690575585753",
            "endTimeUnixNano": "1796047690575920332",
            "durationMs": 0.334579,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "COMMIT",
            "traceId": "8e516fa0ccce88e15bd55ab6140c330a",
            "spanId": "018efbb44e78059a",
            "parentSpanId": "4bad897be7c49a8d",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690575930067",
            "endTimeUnixNano": "1796047690575968645",
            "durationMs": 0.038578,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "COMMIT"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sql.transaction",
            "traceId": "8e516fa0ccce88e15bd55ab6140c330a",
            "spanId": "4bad897be7c49a8d",
            "parentSpanId": "132049669da7a34c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690575443370",
            "endTimeUnixNano": "1796047690575994824",
            "durationMs": 0.551454,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.client.connection.wait_time_ms": 0.049223,
              "db.connection": "reader",
              "db.lock_wait_ms": 0.029
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.pendingBackgroundDataByThreadId",
            "traceId": "8e516fa0ccce88e15bd55ab6140c330a",
            "spanId": "dba4332db4cd9fc2",
            "parentSpanId": "4facaffdc4991877",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690576044758",
            "endTimeUnixNano": "1796047690576050337",
            "durationMs": 0.005579,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.decodeShellSnapshot",
            "traceId": "8e516fa0ccce88e15bd55ab6140c330a",
            "spanId": "4facaffdc4991877",
            "parentSpanId": "132049669da7a34c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690576028885",
            "endTimeUnixNano": "1796047690576059691",
            "durationMs": 0.030806,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "8e516fa0ccce88e15bd55ab6140c330a",
            "spanId": "539cd1eedb2a874f",
            "parentSpanId": "e327101431f76409",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690576114733",
            "endTimeUnixNano": "1796047690576242664",
            "durationMs": 0.127931,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.032,
              "db.client.connection.wait_time_ms": 0.041872
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectStoreV2.listShells",
            "traceId": "8e516fa0ccce88e15bd55ab6140c330a",
            "spanId": "e327101431f76409",
            "parentSpanId": "132049669da7a34c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690576068854",
            "endTimeUnixNano": "1796047690576349594",
            "durationMs": 0.28074,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.readThreads",
            "traceId": "8e516fa0ccce88e15bd55ab6140c330a",
            "spanId": "132049669da7a34c",
            "parentSpanId": "6f157859bacf4362",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690575396019",
            "endTimeUnixNano": "1796047690576362463",
            "durationMs": 0.966444,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "8e516fa0ccce88e15bd55ab6140c330a",
            "spanId": "575333a0411c5d91",
            "parentSpanId": "6f157859bacf4362",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690576393359",
            "endTimeUnixNano": "1796047690576519418",
            "durationMs": 0.126059,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.035,
              "db.client.connection.wait_time_ms": 0.049664
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "8e516fa0ccce88e15bd55ab6140c330a",
            "spanId": "01f99b49dcebea41",
            "parentSpanId": "556df255043a33df",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690576602832",
            "endTimeUnixNano": "1796047690576703562",
            "durationMs": 0.10073,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT DISTINCT json_extract(payload_json, '$.worktreePath') AS \"worktreePath\"\n      FROM orchestration_v2_projection_threads\n      WHERE json_extract(payload_json, '$.worktreePath') IS NOT NUL\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.039,
              "db.client.connection.wait_time_ms": 0.049173
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "8e516fa0ccce88e15bd55ab6140c330a",
            "spanId": "467d5331a7ce5fd8",
            "parentSpanId": "d17a6db6835ff19f",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690578234179",
            "endTimeUnixNano": "1796047690579787239",
            "durationMs": 1.55306,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "8e516fa0ccce88e15bd55ab6140c330a",
            "spanId": "d17a6db6835ff19f",
            "parentSpanId": "157cecd8fe90d8a8",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690578065227",
            "endTimeUnixNano": "1796047690580625912",
            "durationMs": 2.560685,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "8e516fa0ccce88e15bd55ab6140c330a",
            "spanId": "157cecd8fe90d8a8",
            "parentSpanId": "ffd4c44981239342",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690578024316",
            "endTimeUnixNano": "1796047690580814844",
            "durationMs": 2.790528,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/plain-notes",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "8e516fa0ccce88e15bd55ab6140c330a",
            "spanId": "85b2ab30c65b82fe",
            "parentSpanId": "1eb5a09c4c4a1b02",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690581077837",
            "endTimeUnixNano": "1796047690582566802",
            "durationMs": 1.488965,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "8e516fa0ccce88e15bd55ab6140c330a",
            "spanId": "1eb5a09c4c4a1b02",
            "parentSpanId": "0236eabe8efd898d",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690580902515",
            "endTimeUnixNano": "1796047690583320047",
            "durationMs": 2.417532,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "8e516fa0ccce88e15bd55ab6140c330a",
            "spanId": "0236eabe8efd898d",
            "parentSpanId": "ffd4c44981239342",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690580844589",
            "endTimeUnixNano": "1796047690583504993",
            "durationMs": 2.660404,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/plain-notes",
              "git.args_count": 3
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "8e516fa0ccce88e15bd55ab6140c330a",
            "spanId": "ffd4c44981239342",
            "parentSpanId": "556df255043a33df",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690577998477",
            "endTimeUnixNano": "1796047690583579905",
            "durationMs": 5.581428,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Failure",
              "cause": "GitCommandError: Git command failed in GitVcsDriver.listWorktreePaths ($FIXTURE/fx/plain-notes): Git command exited with a non-zero status. (not_a_repository)\n    at file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:1635:11\n    at executeWorktreeList (file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:7803:5)\n    at executeWorktreeList (definition) (file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:1681:38)\n    at StorageCleanup.reportOrphanWorktrees (file://$CHECKOUT/apps/server/src/storageCleanup.ts:1967:12)\n    at StorageCleanup.reportOrphanWorktrees (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:556:40)\n    at StorageCleanup.cleanWorktrees (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2193:37)\n    at StorageCleanup.cleanWorktrees (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:1208:33)\n    at StorageCleanup.sweep (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2293:24)\n    at StorageCleanup.sweep (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2162:24)\n    at DrainableWorker.makeDrainableWorker (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2290:25)\n    at DrainableWorker.makeDrainableWorker (definition) (file://$CHECKOUT/packages/shared/src/DrainableWorker.ts:20:43)"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "8e516fa0ccce88e15bd55ab6140c330a",
            "spanId": "803d33d2741a31ea",
            "parentSpanId": "7d3b3f0616f15f50",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690583974084",
            "endTimeUnixNano": "1796047690585420155",
            "durationMs": 1.446071,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "8e516fa0ccce88e15bd55ab6140c330a",
            "spanId": "7d3b3f0616f15f50",
            "parentSpanId": "bdfe0db9bf7ceb14",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690583803099",
            "endTimeUnixNano": "1796047690586245337",
            "durationMs": 2.442238,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "8e516fa0ccce88e15bd55ab6140c330a",
            "spanId": "bdfe0db9bf7ceb14",
            "parentSpanId": "1d58e55e7801b1c1",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690583762037",
            "endTimeUnixNano": "1796047690586446678",
            "durationMs": 2.684641,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo/packages/app",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "8e516fa0ccce88e15bd55ab6140c330a",
            "spanId": "1d58e55e7801b1c1",
            "parentSpanId": "556df255043a33df",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690583728477",
            "endTimeUnixNano": "1796047690586467269",
            "durationMs": 2.738792,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "8e516fa0ccce88e15bd55ab6140c330a",
            "spanId": "b5dcfbdf671f6cee",
            "parentSpanId": "d3315b43784c50f5",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690586696551",
            "endTimeUnixNano": "1796047690588190563",
            "durationMs": 1.494012,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "8e516fa0ccce88e15bd55ab6140c330a",
            "spanId": "d3315b43784c50f5",
            "parentSpanId": "22b048f8d45d464e",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690586542191",
            "endTimeUnixNano": "1796047690589097839",
            "durationMs": 2.555648,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "8e516fa0ccce88e15bd55ab6140c330a",
            "spanId": "22b048f8d45d464e",
            "parentSpanId": "be57909c657616d3",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690586506287",
            "endTimeUnixNano": "1796047690589292209",
            "durationMs": 2.785922,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo-link",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "8e516fa0ccce88e15bd55ab6140c330a",
            "spanId": "be57909c657616d3",
            "parentSpanId": "556df255043a33df",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690586489923",
            "endTimeUnixNano": "1796047690589310186",
            "durationMs": 2.820263,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "8e516fa0ccce88e15bd55ab6140c330a",
            "spanId": "a230777a2f3548c3",
            "parentSpanId": "e0e4facdc4b8b4aa",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690589559368",
            "endTimeUnixNano": "1796047690590973581",
            "durationMs": 1.414213,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "8e516fa0ccce88e15bd55ab6140c330a",
            "spanId": "e0e4facdc4b8b4aa",
            "parentSpanId": "9562e310f0eb2cea",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690589385608",
            "endTimeUnixNano": "1796047690591801498",
            "durationMs": 2.41589,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "8e516fa0ccce88e15bd55ab6140c330a",
            "spanId": "9562e310f0eb2cea",
            "parentSpanId": "121161c22f9a48f6",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690589349454",
            "endTimeUnixNano": "1796047690591979163",
            "durationMs": 2.629709,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "8e516fa0ccce88e15bd55ab6140c330a",
            "spanId": "121161c22f9a48f6",
            "parentSpanId": "556df255043a33df",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690589332820",
            "endTimeUnixNano": "1796047690591996339",
            "durationMs": 2.663519,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "8e516fa0ccce88e15bd55ab6140c330a",
            "spanId": "ddb68891f32c8f75",
            "parentSpanId": "556df255043a33df",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690592386662",
            "endTimeUnixNano": "1796047690592473351",
            "durationMs": 0.086689,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "8e516fa0ccce88e15bd55ab6140c330a",
            "spanId": "231e6d239b5f86b6",
            "parentSpanId": "556df255043a33df",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690592646690",
            "endTimeUnixNano": "1796047690592684988",
            "durationMs": 0.038298,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "8e516fa0ccce88e15bd55ab6140c330a",
            "spanId": "6dd90be43431c6c4",
            "parentSpanId": "556df255043a33df",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690592836644",
            "endTimeUnixNano": "1796047690592865067",
            "durationMs": 0.028423,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "8e516fa0ccce88e15bd55ab6140c330a",
            "spanId": "36348ae080a19301",
            "parentSpanId": "556df255043a33df",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690592975111",
            "endTimeUnixNano": "1796047690593003974",
            "durationMs": 0.028863,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "storageCleanup.measureWorktree",
            "traceId": "8e516fa0ccce88e15bd55ab6140c330a",
            "spanId": "404be1eb4a2b9114",
            "parentSpanId": "556df255043a33df",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690593039718",
            "endTimeUnixNano": "1796047690593714455",
            "durationMs": 0.674737,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.reportOrphanWorktrees",
            "traceId": "8e516fa0ccce88e15bd55ab6140c330a",
            "spanId": "556df255043a33df",
            "parentSpanId": "6f157859bacf4362",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690576591305",
            "endTimeUnixNano": "1796047690593752482",
            "durationMs": 17.161177,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanWorktrees",
            "traceId": "8e516fa0ccce88e15bd55ab6140c330a",
            "spanId": "6f157859bacf4362",
            "parentSpanId": "348bc21070fa4d06",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690574682583",
            "endTimeUnixNano": "1796047690593761546",
            "durationMs": 19.078963,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.sweep",
            "traceId": "8e516fa0ccce88e15bd55ab6140c330a",
            "spanId": "348bc21070fa4d06",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690574248775",
            "endTimeUnixNano": "1796047690593805251",
            "durationMs": 19.556476,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          }
        ]
      },
      {
        "run": 10,
        "warmup": false,
        "elapsedMs": 19.108546999999987,
        "nestedOrphanFound": true,
        "report": {
          "_tag": "Success",
          "value": {
            "trigger": "manual",
            "startedAt": "2026-11-30T14:08:10.595Z",
            "finishedAt": "2026-11-30T14:08:10.613Z",
            "entries": [
              {
                "kind": "worktree",
                "outcome": "kept",
                "reason": "No thread uses this worktree",
                "path": "$FIXTURE/data/worktrees/repository/replay/repo-wt",
                "projectPath": null,
                "threadId": null,
                "threadTitle": null,
                "bytes": 8192,
                "files": null
              }
            ],
            "counts": {
              "removed": 0,
              "kept": 1,
              "failed": 0
            },
            "omittedCount": 0,
            "bytesFreed": 0
          }
        },
        "spans": [
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "212391312356c7333e093578af17fad6",
            "spanId": "1004147a5d5f1667",
            "parentSpanId": "33d69d767efd77fc",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690594883221",
            "endTimeUnixNano": "1796047690595146955",
            "durationMs": 0.263734,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      WITH RECURSIVE retained_checkpoint_threads(thread_id) AS (\n        SELECT thread_id FROM orchestration_v2_projection_threads WHERE deleted_at IS NULL\n        UNION\n        SELECT json_extract(t\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.04,
              "db.client.connection.wait_time_ms": 0.055373
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanCheckpointRefs",
            "traceId": "212391312356c7333e093578af17fad6",
            "spanId": "33d69d767efd77fc",
            "parentSpanId": "262871d79fcf71fa",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690594873076",
            "endTimeUnixNano": "1796047690595184131",
            "durationMs": 0.311055,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.retryLeftovers",
            "traceId": "212391312356c7333e093578af17fad6",
            "spanId": "f0077745b87857b4",
            "parentSpanId": "262871d79fcf71fa",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690595205373",
            "endTimeUnixNano": "1796047690595357470",
            "durationMs": 0.152097,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveGitWorktreePath",
            "traceId": "212391312356c7333e093578af17fad6",
            "spanId": "0abb91e619f4e9fb",
            "parentSpanId": "50a15fbaee2dd3b7",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690595405201",
            "endTimeUnixNano": "1796047690595589006",
            "durationMs": 0.183805,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveWorktreeT3Home",
            "traceId": "212391312356c7333e093578af17fad6",
            "spanId": "50a15fbaee2dd3b7",
            "parentSpanId": "f887ce9f264af747",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690595397860",
            "endTimeUnixNano": "1796047690595598710",
            "durationMs": 0.20085,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "212391312356c7333e093578af17fad6",
            "spanId": "7c020e9646678627",
            "parentSpanId": "f887ce9f264af747",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690595834382",
            "endTimeUnixNano": "1796047690595975453",
            "durationMs": 0.141071,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n          SELECT t.payload_json, p.workspace_root AS \"workspaceRoot\"\n          FROM orchestration_v2_projection_threads t\n          JOIN projection_projects p ON p.project_id = t.project_id\n         \u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.047,
              "db.client.connection.wait_time_ms": 0.063485
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "BEGIN",
            "traceId": "212391312356c7333e093578af17fad6",
            "spanId": "c2a1f14739dbcca0",
            "parentSpanId": "91119c2a3719b392",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690596103364",
            "endTimeUnixNano": "1796047690596161902",
            "durationMs": 0.058538,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "BEGIN"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "212391312356c7333e093578af17fad6",
            "spanId": "775246f01bfaa17e",
            "parentSpanId": "a92163839c223755",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690596265587",
            "endTimeUnixNano": "1796047690596380939",
            "durationMs": 0.115352,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n            SELECT\n              t.thread_id,\n              t.payload_json,\n              t.fork_run_ids_json,\n              CASE\n                WHEN json_extract(t.payload_json, '$.forkedFrom.type'\u2026[truncated]",
              "db.client.connection.wait_time_ms": 0.027431
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "212391312356c7333e093578af17fad6",
            "spanId": "2d49774e0cee47f7",
            "parentSpanId": "a92163839c223755",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690596421079",
            "endTimeUnixNano": "1796047690596475460",
            "durationMs": 0.054381,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n        SELECT MAX(sequence) AS snapshot_sequence\n        FROM orchestration_events\n        WHERE application_event_version = 2\n          AND aggregate_kind = 'thread'\n      ",
              "db.client.connection.wait_time_ms": 0.011467
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readShellSnapshotRows",
            "traceId": "212391312356c7333e093578af17fad6",
            "spanId": "a92163839c223755",
            "parentSpanId": "91119c2a3719b392",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690596193619",
            "endTimeUnixNano": "1796047690596490362",
            "durationMs": 0.296743,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "COMMIT",
            "traceId": "212391312356c7333e093578af17fad6",
            "spanId": "ecb9e91a2ccdd71a",
            "parentSpanId": "91119c2a3719b392",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690596499636",
            "endTimeUnixNano": "1796047690596532095",
            "durationMs": 0.032459,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "COMMIT"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sql.transaction",
            "traceId": "212391312356c7333e093578af17fad6",
            "spanId": "91119c2a3719b392",
            "parentSpanId": "448ea2f5ac551994",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690596050185",
            "endTimeUnixNano": "1796047690596556571",
            "durationMs": 0.506386,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.client.connection.wait_time_ms": 0.046319,
              "db.connection": "reader",
              "db.lock_wait_ms": 0.029
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.pendingBackgroundDataByThreadId",
            "traceId": "212391312356c7333e093578af17fad6",
            "spanId": "a8c06e46dd57e97d",
            "parentSpanId": "393719f2fed7d61f",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690596597553",
            "endTimeUnixNano": "1796047690596602600",
            "durationMs": 0.005047,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.decodeShellSnapshot",
            "traceId": "212391312356c7333e093578af17fad6",
            "spanId": "393719f2fed7d61f",
            "parentSpanId": "448ea2f5ac551994",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690596583572",
            "endTimeUnixNano": "1796047690596612224",
            "durationMs": 0.028652,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "212391312356c7333e093578af17fad6",
            "spanId": "1a9c59179ca00f50",
            "parentSpanId": "7f8c447ed5f82998",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690596646245",
            "endTimeUnixNano": "1796047690596768899",
            "durationMs": 0.122654,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.032,
              "db.client.connection.wait_time_ms": 0.041963
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectStoreV2.listShells",
            "traceId": "212391312356c7333e093578af17fad6",
            "spanId": "7f8c447ed5f82998",
            "parentSpanId": "448ea2f5ac551994",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690596620537",
            "endTimeUnixNano": "1796047690596852684",
            "durationMs": 0.232147,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.readThreads",
            "traceId": "212391312356c7333e093578af17fad6",
            "spanId": "448ea2f5ac551994",
            "parentSpanId": "f887ce9f264af747",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690596020240",
            "endTimeUnixNano": "1796047690596861457",
            "durationMs": 0.841217,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "212391312356c7333e093578af17fad6",
            "spanId": "2ea44f1947363290",
            "parentSpanId": "f887ce9f264af747",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690596887536",
            "endTimeUnixNano": "1796047690597005482",
            "durationMs": 0.117946,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.026,
              "db.client.connection.wait_time_ms": 0.039679
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "212391312356c7333e093578af17fad6",
            "spanId": "ac5e50f90cf1d2c8",
            "parentSpanId": "d8b7517801d3ab9f",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690597070349",
            "endTimeUnixNano": "1796047690597176858",
            "durationMs": 0.106509,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT DISTINCT json_extract(payload_json, '$.worktreePath') AS \"worktreePath\"\n      FROM orchestration_v2_projection_threads\n      WHERE json_extract(payload_json, '$.worktreePath') IS NOT NUL\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.047,
              "db.client.connection.wait_time_ms": 0.055974
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "212391312356c7333e093578af17fad6",
            "spanId": "7eaff42527a6348e",
            "parentSpanId": "5b45a1580d35cde3",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690598334177",
            "endTimeUnixNano": "1796047690599759717",
            "durationMs": 1.42554,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "212391312356c7333e093578af17fad6",
            "spanId": "5b45a1580d35cde3",
            "parentSpanId": "4c8da3665c123b84",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690598166457",
            "endTimeUnixNano": "1796047690600552191",
            "durationMs": 2.385734,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "212391312356c7333e093578af17fad6",
            "spanId": "4c8da3665c123b84",
            "parentSpanId": "9b05c5d2b66627cf",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690598132716",
            "endTimeUnixNano": "1796047690600758379",
            "durationMs": 2.625663,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/plain-notes",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "212391312356c7333e093578af17fad6",
            "spanId": "ee838d37076b12b5",
            "parentSpanId": "3a11c6f28c1fb037",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690600977917",
            "endTimeUnixNano": "1796047690602455795",
            "durationMs": 1.477878,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "212391312356c7333e093578af17fad6",
            "spanId": "3a11c6f28c1fb037",
            "parentSpanId": "c1f0442d929afa0f",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690600828043",
            "endTimeUnixNano": "1796047690603337612",
            "durationMs": 2.509569,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "212391312356c7333e093578af17fad6",
            "spanId": "c1f0442d929afa0f",
            "parentSpanId": "9b05c5d2b66627cf",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690600787613",
            "endTimeUnixNano": "1796047690603534887",
            "durationMs": 2.747274,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/plain-notes",
              "git.args_count": 3
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "212391312356c7333e093578af17fad6",
            "spanId": "9b05c5d2b66627cf",
            "parentSpanId": "d8b7517801d3ab9f",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690598112236",
            "endTimeUnixNano": "1796047690603602858",
            "durationMs": 5.490622,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Failure",
              "cause": "GitCommandError: Git command failed in GitVcsDriver.listWorktreePaths ($FIXTURE/fx/plain-notes): Git command exited with a non-zero status. (not_a_repository)\n    at file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:1635:11\n    at executeWorktreeList (file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:7803:5)\n    at executeWorktreeList (definition) (file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:1681:38)\n    at StorageCleanup.reportOrphanWorktrees (file://$CHECKOUT/apps/server/src/storageCleanup.ts:1967:12)\n    at StorageCleanup.reportOrphanWorktrees (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:556:40)\n    at StorageCleanup.cleanWorktrees (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2193:37)\n    at StorageCleanup.cleanWorktrees (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:1208:33)\n    at StorageCleanup.sweep (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2293:24)\n    at StorageCleanup.sweep (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2162:24)\n    at DrainableWorker.makeDrainableWorker (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2290:25)\n    at DrainableWorker.makeDrainableWorker (definition) (file://$CHECKOUT/packages/shared/src/DrainableWorker.ts:20:43)"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "212391312356c7333e093578af17fad6",
            "spanId": "8eb2152b9a4d3584",
            "parentSpanId": "2d8615d53204a1fc",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690603958239",
            "endTimeUnixNano": "1796047690605345812",
            "durationMs": 1.387573,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "212391312356c7333e093578af17fad6",
            "spanId": "2d8615d53204a1fc",
            "parentSpanId": "e0575301f943ecae",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690603804569",
            "endTimeUnixNano": "1796047690606144255",
            "durationMs": 2.339686,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "212391312356c7333e093578af17fad6",
            "spanId": "e0575301f943ecae",
            "parentSpanId": "ef1a162b4e8b15ad",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690603763668",
            "endTimeUnixNano": "1796047690606332887",
            "durationMs": 2.569219,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo/packages/app",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "212391312356c7333e093578af17fad6",
            "spanId": "ef1a162b4e8b15ad",
            "parentSpanId": "d8b7517801d3ab9f",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690603745071",
            "endTimeUnixNano": "1796047690606350573",
            "durationMs": 2.605502,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "212391312356c7333e093578af17fad6",
            "spanId": "4ede5287b35a6c61",
            "parentSpanId": "13a41c9a1cbe0264",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690606578564",
            "endTimeUnixNano": "1796047690607930784",
            "durationMs": 1.35222,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "212391312356c7333e093578af17fad6",
            "spanId": "13a41c9a1cbe0264",
            "parentSpanId": "00351a21a142946f",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690606424814",
            "endTimeUnixNano": "1796047690608720694",
            "durationMs": 2.29588,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "212391312356c7333e093578af17fad6",
            "spanId": "00351a21a142946f",
            "parentSpanId": "36b7df152738e0c6",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690606390593",
            "endTimeUnixNano": "1796047690608891389",
            "durationMs": 2.500796,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo-link",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "212391312356c7333e093578af17fad6",
            "spanId": "36b7df152738e0c6",
            "parentSpanId": "d8b7517801d3ab9f",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690606373647",
            "endTimeUnixNano": "1796047690608908034",
            "durationMs": 2.534387,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "212391312356c7333e093578af17fad6",
            "spanId": "f7ae838e7866bfb1",
            "parentSpanId": "d93863d497d033e2",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690609123065",
            "endTimeUnixNano": "1796047690610289998",
            "durationMs": 1.166933,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "212391312356c7333e093578af17fad6",
            "spanId": "d93863d497d033e2",
            "parentSpanId": "a0fb0f4710905424",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690608978960",
            "endTimeUnixNano": "1796047690611084575",
            "durationMs": 2.105615,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "212391312356c7333e093578af17fad6",
            "spanId": "a0fb0f4710905424",
            "parentSpanId": "417d5bd381f1b928",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690608945169",
            "endTimeUnixNano": "1796047690611287098",
            "durationMs": 2.341929,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "212391312356c7333e093578af17fad6",
            "spanId": "417d5bd381f1b928",
            "parentSpanId": "d8b7517801d3ab9f",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690608928945",
            "endTimeUnixNano": "1796047690611311845",
            "durationMs": 2.3829,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "212391312356c7333e093578af17fad6",
            "spanId": "9ce045a72cb445cf",
            "parentSpanId": "d8b7517801d3ab9f",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690611663821",
            "endTimeUnixNano": "1796047690611713605",
            "durationMs": 0.049784,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "212391312356c7333e093578af17fad6",
            "spanId": "cfb1d37f58ae5593",
            "parentSpanId": "d8b7517801d3ab9f",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690611856518",
            "endTimeUnixNano": "1796047690611879583",
            "durationMs": 0.023065,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "212391312356c7333e093578af17fad6",
            "spanId": "55a6fe79ed7ca7b4",
            "parentSpanId": "d8b7517801d3ab9f",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690611999332",
            "endTimeUnixNano": "1796047690612023768",
            "durationMs": 0.024436,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "212391312356c7333e093578af17fad6",
            "spanId": "503c7e85784f2eaa",
            "parentSpanId": "d8b7517801d3ab9f",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690612139762",
            "endTimeUnixNano": "1796047690612171319",
            "durationMs": 0.031557,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "storageCleanup.measureWorktree",
            "traceId": "212391312356c7333e093578af17fad6",
            "spanId": "490963a1b1bb46a1",
            "parentSpanId": "d8b7517801d3ab9f",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690612202996",
            "endTimeUnixNano": "1796047690612895160",
            "durationMs": 0.692164,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.reportOrphanWorktrees",
            "traceId": "212391312356c7333e093578af17fad6",
            "spanId": "d8b7517801d3ab9f",
            "parentSpanId": "f887ce9f264af747",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690597060564",
            "endTimeUnixNano": "1796047690612935290",
            "durationMs": 15.874726,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanWorktrees",
            "traceId": "212391312356c7333e093578af17fad6",
            "spanId": "f887ce9f264af747",
            "parentSpanId": "262871d79fcf71fa",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690595377199",
            "endTimeUnixNano": "1796047690612944965",
            "durationMs": 17.567766,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.sweep",
            "traceId": "212391312356c7333e093578af17fad6",
            "spanId": "262871d79fcf71fa",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690594848590",
            "endTimeUnixNano": "1796047690612988449",
            "durationMs": 18.139859,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          }
        ]
      },
      {
        "run": 11,
        "warmup": false,
        "elapsedMs": 20.892901999999992,
        "nestedOrphanFound": true,
        "report": {
          "_tag": "Success",
          "value": {
            "trigger": "manual",
            "startedAt": "2026-11-30T14:08:10.614Z",
            "finishedAt": "2026-11-30T14:08:10.634Z",
            "entries": [
              {
                "kind": "worktree",
                "outcome": "kept",
                "reason": "No thread uses this worktree",
                "path": "$FIXTURE/data/worktrees/repository/replay/repo-wt",
                "projectPath": null,
                "threadId": null,
                "threadTitle": null,
                "bytes": 8192,
                "files": null
              }
            ],
            "counts": {
              "removed": 0,
              "kept": 1,
              "failed": 0
            },
            "omittedCount": 0,
            "bytesFreed": 0
          }
        },
        "spans": [
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "7cf1cd667b7ee05ca3c95245ff5f3f51",
            "spanId": "b23ef28fae1628df",
            "parentSpanId": "ca3b7d1f33ecf0ed",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690613977126",
            "endTimeUnixNano": "1796047690614135894",
            "durationMs": 0.158768,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      WITH RECURSIVE retained_checkpoint_threads(thread_id) AS (\n        SELECT thread_id FROM orchestration_v2_projection_threads WHERE deleted_at IS NULL\n        UNION\n        SELECT json_extract(t\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.037,
              "db.client.connection.wait_time_ms": 0.053591
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanCheckpointRefs",
            "traceId": "7cf1cd667b7ee05ca3c95245ff5f3f51",
            "spanId": "ca3b7d1f33ecf0ed",
            "parentSpanId": "00976735b2f2e0df",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690613966150",
            "endTimeUnixNano": "1796047690614172228",
            "durationMs": 0.206078,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.retryLeftovers",
            "traceId": "7cf1cd667b7ee05ca3c95245ff5f3f51",
            "spanId": "e62d061264d3f53d",
            "parentSpanId": "00976735b2f2e0df",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690614189774",
            "endTimeUnixNano": "1796047690614295753",
            "durationMs": 0.105979,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveGitWorktreePath",
            "traceId": "7cf1cd667b7ee05ca3c95245ff5f3f51",
            "spanId": "8be345eeec3eafcc",
            "parentSpanId": "0a91b5b7819bf508",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690614335833",
            "endTimeUnixNano": "1796047690614527989",
            "durationMs": 0.192156,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveWorktreeT3Home",
            "traceId": "7cf1cd667b7ee05ca3c95245ff5f3f51",
            "spanId": "0a91b5b7819bf508",
            "parentSpanId": "3d0ece1b0d10b06a",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690614329533",
            "endTimeUnixNano": "1796047690614536753",
            "durationMs": 0.20722,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "7cf1cd667b7ee05ca3c95245ff5f3f51",
            "spanId": "5e1fa003b6df8f7e",
            "parentSpanId": "3d0ece1b0d10b06a",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690614797292",
            "endTimeUnixNano": "1796047690614911252",
            "durationMs": 0.11396,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n          SELECT t.payload_json, p.workspace_root AS \"workspaceRoot\"\n          FROM orchestration_v2_projection_threads t\n          JOIN projection_projects p ON p.project_id = t.project_id\n         \u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.033,
              "db.client.connection.wait_time_ms": 0.051557
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "BEGIN",
            "traceId": "7cf1cd667b7ee05ca3c95245ff5f3f51",
            "spanId": "ffca94f46408e077",
            "parentSpanId": "e5a451ae5fbfbde1",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690615029329",
            "endTimeUnixNano": "1796047690615079544",
            "durationMs": 0.050215,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "BEGIN"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "7cf1cd667b7ee05ca3c95245ff5f3f51",
            "spanId": "d85521aab17630b3",
            "parentSpanId": "11596aa53cb55723",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690615188997",
            "endTimeUnixNano": "1796047690615303268",
            "durationMs": 0.114271,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n            SELECT\n              t.thread_id,\n              t.payload_json,\n              t.fork_run_ids_json,\n              CASE\n                WHEN json_extract(t.payload_json, '$.forkedFrom.type'\u2026[truncated]",
              "db.client.connection.wait_time_ms": 0.020641
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "7cf1cd667b7ee05ca3c95245ff5f3f51",
            "spanId": "786a273fc3f4ae25",
            "parentSpanId": "11596aa53cb55723",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690615346312",
            "endTimeUnixNano": "1796047690615399592",
            "durationMs": 0.05328,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n        SELECT MAX(sequence) AS snapshot_sequence\n        FROM orchestration_events\n        WHERE application_event_version = 2\n          AND aggregate_kind = 'thread'\n      ",
              "db.client.connection.wait_time_ms": 0.009905
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readShellSnapshotRows",
            "traceId": "7cf1cd667b7ee05ca3c95245ff5f3f51",
            "spanId": "11596aa53cb55723",
            "parentSpanId": "e5a451ae5fbfbde1",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690615103669",
            "endTimeUnixNano": "1796047690615413042",
            "durationMs": 0.309373,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "COMMIT",
            "traceId": "7cf1cd667b7ee05ca3c95245ff5f3f51",
            "spanId": "4b40d800008b10f0",
            "parentSpanId": "e5a451ae5fbfbde1",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690615422796",
            "endTimeUnixNano": "1796047690615466311",
            "durationMs": 0.043515,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "COMMIT"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sql.transaction",
            "traceId": "7cf1cd667b7ee05ca3c95245ff5f3f51",
            "spanId": "e5a451ae5fbfbde1",
            "parentSpanId": "456cefcb562c7973",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690614978092",
            "endTimeUnixNano": "1796047690615489456",
            "durationMs": 0.511364,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.client.connection.wait_time_ms": 0.044156,
              "db.connection": "reader",
              "db.lock_wait_ms": 0.025
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.pendingBackgroundDataByThreadId",
            "traceId": "7cf1cd667b7ee05ca3c95245ff5f3f51",
            "spanId": "20a5f389a685c6fc",
            "parentSpanId": "32508d0618382bac",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690615529746",
            "endTimeUnixNano": "1796047690615534573",
            "durationMs": 0.004827,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.decodeShellSnapshot",
            "traceId": "7cf1cd667b7ee05ca3c95245ff5f3f51",
            "spanId": "32508d0618382bac",
            "parentSpanId": "456cefcb562c7973",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690615516516",
            "endTimeUnixNano": "1796047690615552550",
            "durationMs": 0.036034,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "7cf1cd667b7ee05ca3c95245ff5f3f51",
            "spanId": "195a63681e210fd0",
            "parentSpanId": "30de1b2562d90d6b",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690615587853",
            "endTimeUnixNano": "1796047690615707732",
            "durationMs": 0.119879,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.032,
              "db.client.connection.wait_time_ms": 0.042333
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectStoreV2.listShells",
            "traceId": "7cf1cd667b7ee05ca3c95245ff5f3f51",
            "spanId": "30de1b2562d90d6b",
            "parentSpanId": "456cefcb562c7973",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690615561383",
            "endTimeUnixNano": "1796047690615780941",
            "durationMs": 0.219558,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.readThreads",
            "traceId": "7cf1cd667b7ee05ca3c95245ff5f3f51",
            "spanId": "456cefcb562c7973",
            "parentSpanId": "3d0ece1b0d10b06a",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690614951152",
            "endTimeUnixNano": "1796047690615789905",
            "durationMs": 0.838753,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "7cf1cd667b7ee05ca3c95245ff5f3f51",
            "spanId": "d67d16e3b6cf7ffd",
            "parentSpanId": "3d0ece1b0d10b06a",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690615815243",
            "endTimeUnixNano": "1796047690615924486",
            "durationMs": 0.109243,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.023,
              "db.client.connection.wait_time_ms": 0.035062
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "7cf1cd667b7ee05ca3c95245ff5f3f51",
            "spanId": "3a574a1ff0eb8cdc",
            "parentSpanId": "0dea1c5b57b6cbff",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690615994210",
            "endTimeUnixNano": "1796047690616079437",
            "durationMs": 0.085227,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT DISTINCT json_extract(payload_json, '$.worktreePath') AS \"worktreePath\"\n      FROM orchestration_v2_projection_threads\n      WHERE json_extract(payload_json, '$.worktreePath') IS NOT NUL\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.035,
              "db.client.connection.wait_time_ms": 0.043585
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "7cf1cd667b7ee05ca3c95245ff5f3f51",
            "spanId": "38bb55540ee1496c",
            "parentSpanId": "1d3409bbffd32370",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690617687590",
            "endTimeUnixNano": "1796047690618968994",
            "durationMs": 1.281404,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "7cf1cd667b7ee05ca3c95245ff5f3f51",
            "spanId": "1d3409bbffd32370",
            "parentSpanId": "2b651ca42a9d1248",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690617516374",
            "endTimeUnixNano": "1796047690619746596",
            "durationMs": 2.230222,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "7cf1cd667b7ee05ca3c95245ff5f3f51",
            "spanId": "2b651ca42a9d1248",
            "parentSpanId": "0c5b19532557b03b",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690617469183",
            "endTimeUnixNano": "1796047690619931562",
            "durationMs": 2.462379,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/plain-notes",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "7cf1cd667b7ee05ca3c95245ff5f3f51",
            "spanId": "cab6cda966a763da",
            "parentSpanId": "ee133db75a29c216",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690620158191",
            "endTimeUnixNano": "1796047690621411413",
            "durationMs": 1.253222,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "7cf1cd667b7ee05ca3c95245ff5f3f51",
            "spanId": "ee133db75a29c216",
            "parentSpanId": "9683c27ea15233b4",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690620004010",
            "endTimeUnixNano": "1796047690622317767",
            "durationMs": 2.313757,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "7cf1cd667b7ee05ca3c95245ff5f3f51",
            "spanId": "9683c27ea15233b4",
            "parentSpanId": "0c5b19532557b03b",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690619958092",
            "endTimeUnixNano": "1796047690622513479",
            "durationMs": 2.555387,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/plain-notes",
              "git.args_count": 3
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "7cf1cd667b7ee05ca3c95245ff5f3f51",
            "spanId": "0c5b19532557b03b",
            "parentSpanId": "0dea1c5b57b6cbff",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690617446269",
            "endTimeUnixNano": "1796047690622577405",
            "durationMs": 5.131136,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Failure",
              "cause": "GitCommandError: Git command failed in GitVcsDriver.listWorktreePaths ($FIXTURE/fx/plain-notes): Git command exited with a non-zero status. (not_a_repository)\n    at file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:1635:11\n    at executeWorktreeList (file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:7803:5)\n    at executeWorktreeList (definition) (file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:1681:38)\n    at StorageCleanup.reportOrphanWorktrees (file://$CHECKOUT/apps/server/src/storageCleanup.ts:1967:12)\n    at StorageCleanup.reportOrphanWorktrees (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:556:40)\n    at StorageCleanup.cleanWorktrees (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2193:37)\n    at StorageCleanup.cleanWorktrees (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:1208:33)\n    at StorageCleanup.sweep (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2293:24)\n    at StorageCleanup.sweep (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2162:24)\n    at DrainableWorker.makeDrainableWorker (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2290:25)\n    at DrainableWorker.makeDrainableWorker (definition) (file://$CHECKOUT/packages/shared/src/DrainableWorker.ts:20:43)"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "7cf1cd667b7ee05ca3c95245ff5f3f51",
            "spanId": "d730d129c04ee0e0",
            "parentSpanId": "1b0d599b66f33820",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690622916692",
            "endTimeUnixNano": "1796047690624140981",
            "durationMs": 1.224289,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "7cf1cd667b7ee05ca3c95245ff5f3f51",
            "spanId": "1b0d599b66f33820",
            "parentSpanId": "3437026ca3b7b490",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690622768971",
            "endTimeUnixNano": "1796047690624946344",
            "durationMs": 2.177373,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "7cf1cd667b7ee05ca3c95245ff5f3f51",
            "spanId": "3437026ca3b7b490",
            "parentSpanId": "de667c82d8978ebe",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690622730303",
            "endTimeUnixNano": "1796047690625121405",
            "durationMs": 2.391102,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo/packages/app",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "7cf1cd667b7ee05ca3c95245ff5f3f51",
            "spanId": "de667c82d8978ebe",
            "parentSpanId": "0dea1c5b57b6cbff",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690622712697",
            "endTimeUnixNano": "1796047690625136638",
            "durationMs": 2.423941,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "7cf1cd667b7ee05ca3c95245ff5f3f51",
            "spanId": "52b28f1a1dda8e08",
            "parentSpanId": "92c5110b78c2ab2e",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690625373181",
            "endTimeUnixNano": "1796047690626511472",
            "durationMs": 1.138291,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "7cf1cd667b7ee05ca3c95245ff5f3f51",
            "spanId": "92c5110b78c2ab2e",
            "parentSpanId": "345d33c650accb44",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690625210659",
            "endTimeUnixNano": "1796047690627321262",
            "durationMs": 2.110603,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "7cf1cd667b7ee05ca3c95245ff5f3f51",
            "spanId": "345d33c650accb44",
            "parentSpanId": "708acaee77fb06af",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690625176477",
            "endTimeUnixNano": "1796047690627512537",
            "durationMs": 2.33606,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo-link",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "7cf1cd667b7ee05ca3c95245ff5f3f51",
            "spanId": "708acaee77fb06af",
            "parentSpanId": "0dea1c5b57b6cbff",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690625159071",
            "endTimeUnixNano": "1796047690627529423",
            "durationMs": 2.370352,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "7cf1cd667b7ee05ca3c95245ff5f3f51",
            "spanId": "f925d51912545e61",
            "parentSpanId": "2341824eb76c6e4c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690627756111",
            "endTimeUnixNano": "1796047690628937646",
            "durationMs": 1.181535,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "7cf1cd667b7ee05ca3c95245ff5f3f51",
            "spanId": "2341824eb76c6e4c",
            "parentSpanId": "385a6e8a53249820",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690627616653",
            "endTimeUnixNano": "1796047690629750341",
            "durationMs": 2.133688,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "7cf1cd667b7ee05ca3c95245ff5f3f51",
            "spanId": "385a6e8a53249820",
            "parentSpanId": "d1ef87f1d5662845",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690627579357",
            "endTimeUnixNano": "1796047690629929698",
            "durationMs": 2.350341,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "7cf1cd667b7ee05ca3c95245ff5f3f51",
            "spanId": "d1ef87f1d5662845",
            "parentSpanId": "0dea1c5b57b6cbff",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690627551616",
            "endTimeUnixNano": "1796047690629945863",
            "durationMs": 2.394247,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "7cf1cd667b7ee05ca3c95245ff5f3f51",
            "spanId": "f2b63bce85f5a67b",
            "parentSpanId": "0dea1c5b57b6cbff",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690632352788",
            "endTimeUnixNano": "1796047690632417265",
            "durationMs": 0.064477,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "7cf1cd667b7ee05ca3c95245ff5f3f51",
            "spanId": "8bf085eeae1a7d6f",
            "parentSpanId": "0dea1c5b57b6cbff",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690632642261",
            "endTimeUnixNano": "1796047690632677073",
            "durationMs": 0.034812,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "7cf1cd667b7ee05ca3c95245ff5f3f51",
            "spanId": "81177d4197f4da69",
            "parentSpanId": "0dea1c5b57b6cbff",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690632831093",
            "endTimeUnixNano": "1796047690632863972",
            "durationMs": 0.032879,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "7cf1cd667b7ee05ca3c95245ff5f3f51",
            "spanId": "08f905db0b90eeea",
            "parentSpanId": "0dea1c5b57b6cbff",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690632978593",
            "endTimeUnixNano": "1796047690633008598",
            "durationMs": 0.030005,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "storageCleanup.measureWorktree",
            "traceId": "7cf1cd667b7ee05ca3c95245ff5f3f51",
            "spanId": "aab770d1f322f8e8",
            "parentSpanId": "0dea1c5b57b6cbff",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690633045844",
            "endTimeUnixNano": "1796047690633740311",
            "durationMs": 0.694467,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.reportOrphanWorktrees",
            "traceId": "7cf1cd667b7ee05ca3c95245ff5f3f51",
            "spanId": "0dea1c5b57b6cbff",
            "parentSpanId": "3d0ece1b0d10b06a",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690615983904",
            "endTimeUnixNano": "1796047690633778979",
            "durationMs": 17.795075,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanWorktrees",
            "traceId": "7cf1cd667b7ee05ca3c95245ff5f3f51",
            "spanId": "3d0ece1b0d10b06a",
            "parentSpanId": "00976735b2f2e0df",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690614311366",
            "endTimeUnixNano": "1796047690633788333",
            "durationMs": 19.476967,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.sweep",
            "traceId": "7cf1cd667b7ee05ca3c95245ff5f3f51",
            "spanId": "00976735b2f2e0df",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690613940622",
            "endTimeUnixNano": "1796047690633831437",
            "durationMs": 19.890815,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          }
        ]
      },
      {
        "run": 12,
        "warmup": false,
        "elapsedMs": 19.497207000000003,
        "nestedOrphanFound": true,
        "report": {
          "_tag": "Success",
          "value": {
            "trigger": "manual",
            "startedAt": "2026-11-30T14:08:10.635Z",
            "finishedAt": "2026-11-30T14:08:10.653Z",
            "entries": [
              {
                "kind": "worktree",
                "outcome": "kept",
                "reason": "No thread uses this worktree",
                "path": "$FIXTURE/data/worktrees/repository/replay/repo-wt",
                "projectPath": null,
                "threadId": null,
                "threadTitle": null,
                "bytes": 8192,
                "files": null
              }
            ],
            "counts": {
              "removed": 0,
              "kept": 1,
              "failed": 0
            },
            "omittedCount": 0,
            "bytesFreed": 0
          }
        },
        "spans": [
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "76d0db94b9f13a163874f7e6a952dfcb",
            "spanId": "a2638201cb133644",
            "parentSpanId": "5849dfcef974ba8a",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690634906253",
            "endTimeUnixNano": "1796047690635059061",
            "durationMs": 0.152808,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      WITH RECURSIVE retained_checkpoint_threads(thread_id) AS (\n        SELECT thread_id FROM orchestration_v2_projection_threads WHERE deleted_at IS NULL\n        UNION\n        SELECT json_extract(t\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.043,
              "db.client.connection.wait_time_ms": 0.064226
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanCheckpointRefs",
            "traceId": "76d0db94b9f13a163874f7e6a952dfcb",
            "spanId": "5849dfcef974ba8a",
            "parentSpanId": "57bb320c9062f0bf",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690634892743",
            "endTimeUnixNano": "1796047690635095556",
            "durationMs": 0.202813,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.retryLeftovers",
            "traceId": "76d0db94b9f13a163874f7e6a952dfcb",
            "spanId": "b81ea11c10a016b8",
            "parentSpanId": "57bb320c9062f0bf",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690635111289",
            "endTimeUnixNano": "1796047690635190988",
            "durationMs": 0.079699,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveGitWorktreePath",
            "traceId": "76d0db94b9f13a163874f7e6a952dfcb",
            "spanId": "bb1b4f9d217fb732",
            "parentSpanId": "f6e89dc580d57014",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690635227383",
            "endTimeUnixNano": "1796047690635454412",
            "durationMs": 0.227029,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveWorktreeT3Home",
            "traceId": "76d0db94b9f13a163874f7e6a952dfcb",
            "spanId": "f6e89dc580d57014",
            "parentSpanId": "a66285247fc9b193",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690635221073",
            "endTimeUnixNano": "1796047690635465318",
            "durationMs": 0.244245,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "76d0db94b9f13a163874f7e6a952dfcb",
            "spanId": "74b37959452c5c6c",
            "parentSpanId": "a66285247fc9b193",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690635727690",
            "endTimeUnixNano": "1796047690635840098",
            "durationMs": 0.112408,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n          SELECT t.payload_json, p.workspace_root AS \"workspaceRoot\"\n          FROM orchestration_v2_projection_threads t\n          JOIN projection_projects p ON p.project_id = t.project_id\n         \u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.035,
              "db.client.connection.wait_time_ms": 0.056334
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "BEGIN",
            "traceId": "76d0db94b9f13a163874f7e6a952dfcb",
            "spanId": "c51247041b833615",
            "parentSpanId": "63eed91ea6b217de",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690635975550",
            "endTimeUnixNano": "1796047690636023863",
            "durationMs": 0.048313,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "BEGIN"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "76d0db94b9f13a163874f7e6a952dfcb",
            "spanId": "749a8ecc8ebcc873",
            "parentSpanId": "37870dbd0e804b18",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690636136030",
            "endTimeUnixNano": "1796047690636223711",
            "durationMs": 0.087681,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n            SELECT\n              t.thread_id,\n              t.payload_json,\n              t.fork_run_ids_json,\n              CASE\n                WHEN json_extract(t.payload_json, '$.forkedFrom.type'\u2026[truncated]",
              "db.client.connection.wait_time_ms": 0.013931
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "76d0db94b9f13a163874f7e6a952dfcb",
            "spanId": "7fe88b4bd1698e3e",
            "parentSpanId": "37870dbd0e804b18",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690636258072",
            "endTimeUnixNano": "1796047690636314146",
            "durationMs": 0.056074,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n        SELECT MAX(sequence) AS snapshot_sequence\n        FROM orchestration_events\n        WHERE application_event_version = 2\n          AND aggregate_kind = 'thread'\n      ",
              "db.client.connection.wait_time_ms": 0.009234
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readShellSnapshotRows",
            "traceId": "76d0db94b9f13a163874f7e6a952dfcb",
            "spanId": "37870dbd0e804b18",
            "parentSpanId": "63eed91ea6b217de",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690636047027",
            "endTimeUnixNano": "1796047690636326855",
            "durationMs": 0.279828,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "COMMIT",
            "traceId": "76d0db94b9f13a163874f7e6a952dfcb",
            "spanId": "4d9f2ff8b6153484",
            "parentSpanId": "63eed91ea6b217de",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690636336009",
            "endTimeUnixNano": "1796047690636365613",
            "durationMs": 0.029604,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "COMMIT"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sql.transaction",
            "traceId": "76d0db94b9f13a163874f7e6a952dfcb",
            "spanId": "63eed91ea6b217de",
            "parentSpanId": "bb398c1f8e33a6d0",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690635923523",
            "endTimeUnixNano": "1796047690636389008",
            "durationMs": 0.465485,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.client.connection.wait_time_ms": 0.044586,
              "db.connection": "reader",
              "db.lock_wait_ms": 0.027
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.pendingBackgroundDataByThreadId",
            "traceId": "76d0db94b9f13a163874f7e6a952dfcb",
            "spanId": "cde7bde21d1e5307",
            "parentSpanId": "17c67ba134aba1da",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690636435377",
            "endTimeUnixNano": "1796047690636440816",
            "durationMs": 0.005439,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.decodeShellSnapshot",
            "traceId": "76d0db94b9f13a163874f7e6a952dfcb",
            "spanId": "17c67ba134aba1da",
            "parentSpanId": "bb398c1f8e33a6d0",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690636415748",
            "endTimeUnixNano": "1796047690636450190",
            "durationMs": 0.034442,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "76d0db94b9f13a163874f7e6a952dfcb",
            "spanId": "222aa4ea8d206367",
            "parentSpanId": "ae971f4049a27850",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690636486634",
            "endTimeUnixNano": "1796047690636592562",
            "durationMs": 0.105928,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.03,
              "db.client.connection.wait_time_ms": 0.039138
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectStoreV2.listShells",
            "traceId": "76d0db94b9f13a163874f7e6a952dfcb",
            "spanId": "ae971f4049a27850",
            "parentSpanId": "bb398c1f8e33a6d0",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690636458342",
            "endTimeUnixNano": "1796047690636678190",
            "durationMs": 0.219848,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.readThreads",
            "traceId": "76d0db94b9f13a163874f7e6a952dfcb",
            "spanId": "bb398c1f8e33a6d0",
            "parentSpanId": "a66285247fc9b193",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690635893859",
            "endTimeUnixNano": "1796047690636687003",
            "durationMs": 0.793144,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "76d0db94b9f13a163874f7e6a952dfcb",
            "spanId": "4309299029601114",
            "parentSpanId": "a66285247fc9b193",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690636712051",
            "endTimeUnixNano": "1796047690636836967",
            "durationMs": 0.124916,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.032,
              "db.client.connection.wait_time_ms": 0.044226
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "76d0db94b9f13a163874f7e6a952dfcb",
            "spanId": "b7d9c3b03bbec195",
            "parentSpanId": "41140aacd118ee90",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690636904428",
            "endTimeUnixNano": "1796047690637010076",
            "durationMs": 0.105648,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT DISTINCT json_extract(payload_json, '$.worktreePath') AS \"worktreePath\"\n      FROM orchestration_v2_projection_threads\n      WHERE json_extract(payload_json, '$.worktreePath') IS NOT NUL\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.047,
              "db.client.connection.wait_time_ms": 0.059799
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "76d0db94b9f13a163874f7e6a952dfcb",
            "spanId": "fab4ef01bd21d8d4",
            "parentSpanId": "560f37decf8831cc",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690638403998",
            "endTimeUnixNano": "1796047690640045090",
            "durationMs": 1.641092,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "76d0db94b9f13a163874f7e6a952dfcb",
            "spanId": "560f37decf8831cc",
            "parentSpanId": "5e872151a451ee15",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690638224290",
            "endTimeUnixNano": "1796047690640997703",
            "durationMs": 2.773413,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "76d0db94b9f13a163874f7e6a952dfcb",
            "spanId": "5e872151a451ee15",
            "parentSpanId": "314bef55e7733adc",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690638185792",
            "endTimeUnixNano": "1796047690641211483",
            "durationMs": 3.025691,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/plain-notes",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "76d0db94b9f13a163874f7e6a952dfcb",
            "spanId": "caf36f7484029710",
            "parentSpanId": "ada81c52aeab355c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690641479042",
            "endTimeUnixNano": "1796047690642751443",
            "durationMs": 1.272401,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "76d0db94b9f13a163874f7e6a952dfcb",
            "spanId": "ada81c52aeab355c",
            "parentSpanId": "583e24a1ad10725c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690641306845",
            "endTimeUnixNano": "1796047690643556025",
            "durationMs": 2.24918,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "76d0db94b9f13a163874f7e6a952dfcb",
            "spanId": "583e24a1ad10725c",
            "parentSpanId": "314bef55e7733adc",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690641242449",
            "endTimeUnixNano": "1796047690643733230",
            "durationMs": 2.490781,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/plain-notes",
              "git.args_count": 3
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "76d0db94b9f13a163874f7e6a952dfcb",
            "spanId": "314bef55e7733adc",
            "parentSpanId": "41140aacd118ee90",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690638164460",
            "endTimeUnixNano": "1796047690643798497",
            "durationMs": 5.634037,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Failure",
              "cause": "GitCommandError: Git command failed in GitVcsDriver.listWorktreePaths ($FIXTURE/fx/plain-notes): Git command exited with a non-zero status. (not_a_repository)\n    at file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:1635:11\n    at executeWorktreeList (file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:7803:5)\n    at executeWorktreeList (definition) (file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:1681:38)\n    at StorageCleanup.reportOrphanWorktrees (file://$CHECKOUT/apps/server/src/storageCleanup.ts:1967:12)\n    at StorageCleanup.reportOrphanWorktrees (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:556:40)\n    at StorageCleanup.cleanWorktrees (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2193:37)\n    at StorageCleanup.cleanWorktrees (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:1208:33)\n    at StorageCleanup.sweep (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2293:24)\n    at StorageCleanup.sweep (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2162:24)\n    at DrainableWorker.makeDrainableWorker (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2290:25)\n    at DrainableWorker.makeDrainableWorker (definition) (file://$CHECKOUT/packages/shared/src/DrainableWorker.ts:20:43)"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "76d0db94b9f13a163874f7e6a952dfcb",
            "spanId": "fd4708ed5ddbd2dd",
            "parentSpanId": "59703f443077f3f7",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690644153608",
            "endTimeUnixNano": "1796047690645391567",
            "durationMs": 1.237959,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "76d0db94b9f13a163874f7e6a952dfcb",
            "spanId": "59703f443077f3f7",
            "parentSpanId": "0d4eaffe7d00daac",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690643998727",
            "endTimeUnixNano": "1796047690646439022",
            "durationMs": 2.440295,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "76d0db94b9f13a163874f7e6a952dfcb",
            "spanId": "0d4eaffe7d00daac",
            "parentSpanId": "cb51f9dad7c93921",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690643958797",
            "endTimeUnixNano": "1796047690646640293",
            "durationMs": 2.681496,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo/packages/app",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "76d0db94b9f13a163874f7e6a952dfcb",
            "spanId": "cb51f9dad7c93921",
            "parentSpanId": "41140aacd118ee90",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690643939298",
            "endTimeUnixNano": "1796047690646655946",
            "durationMs": 2.716648,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "76d0db94b9f13a163874f7e6a952dfcb",
            "spanId": "5819eb14f90da45e",
            "parentSpanId": "9dc0f2117fe52b0d",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690646892750",
            "endTimeUnixNano": "1796047690648080204",
            "durationMs": 1.187454,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "76d0db94b9f13a163874f7e6a952dfcb",
            "spanId": "9dc0f2117fe52b0d",
            "parentSpanId": "fa3136c996aa86e6",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690646736216",
            "endTimeUnixNano": "1796047690648938516",
            "durationMs": 2.2023,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "76d0db94b9f13a163874f7e6a952dfcb",
            "spanId": "fa3136c996aa86e6",
            "parentSpanId": "9909dd8ff8660f82",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690646697588",
            "endTimeUnixNano": "1796047690649126757",
            "durationMs": 2.429169,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo-link",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "76d0db94b9f13a163874f7e6a952dfcb",
            "spanId": "9909dd8ff8660f82",
            "parentSpanId": "41140aacd118ee90",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690646679411",
            "endTimeUnixNano": "1796047690649141730",
            "durationMs": 2.462319,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "76d0db94b9f13a163874f7e6a952dfcb",
            "spanId": "3f226c5534351173",
            "parentSpanId": "bdb2c6eed18e547a",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690649408538",
            "endTimeUnixNano": "1796047690650627780",
            "durationMs": 1.219242,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "76d0db94b9f13a163874f7e6a952dfcb",
            "spanId": "bdb2c6eed18e547a",
            "parentSpanId": "923873d1292debd6",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690649237062",
            "endTimeUnixNano": "1796047690651436648",
            "durationMs": 2.199586,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "76d0db94b9f13a163874f7e6a952dfcb",
            "spanId": "923873d1292debd6",
            "parentSpanId": "2b40d2f334b4b024",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690649179687",
            "endTimeUnixNano": "1796047690651664358",
            "durationMs": 2.484671,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "76d0db94b9f13a163874f7e6a952dfcb",
            "spanId": "2b40d2f334b4b024",
            "parentSpanId": "41140aacd118ee90",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690649163042",
            "endTimeUnixNano": "1796047690651679411",
            "durationMs": 2.516369,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "76d0db94b9f13a163874f7e6a952dfcb",
            "spanId": "d92c834858372976",
            "parentSpanId": "41140aacd118ee90",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690652068712",
            "endTimeUnixNano": "1796047690652122182",
            "durationMs": 0.05347,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "76d0db94b9f13a163874f7e6a952dfcb",
            "spanId": "b809b46d5843fdee",
            "parentSpanId": "41140aacd118ee90",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690652308220",
            "endTimeUnixNano": "1796047690652345476",
            "durationMs": 0.037256,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "76d0db94b9f13a163874f7e6a952dfcb",
            "spanId": "57b5e46e82ec70f8",
            "parentSpanId": "41140aacd118ee90",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690652498545",
            "endTimeUnixNano": "1796047690652531604",
            "durationMs": 0.033059,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "76d0db94b9f13a163874f7e6a952dfcb",
            "spanId": "991cd9249ec9f492",
            "parentSpanId": "41140aacd118ee90",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690652644172",
            "endTimeUnixNano": "1796047690652669910",
            "durationMs": 0.025738,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "storageCleanup.measureWorktree",
            "traceId": "76d0db94b9f13a163874f7e6a952dfcb",
            "spanId": "8682c0fba7ac2580",
            "parentSpanId": "41140aacd118ee90",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690652703961",
            "endTimeUnixNano": "1796047690653327323",
            "durationMs": 0.623362,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.reportOrphanWorktrees",
            "traceId": "76d0db94b9f13a163874f7e6a952dfcb",
            "spanId": "41140aacd118ee90",
            "parentSpanId": "a66285247fc9b193",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690636893722",
            "endTimeUnixNano": "1796047690653361203",
            "durationMs": 16.467481,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanWorktrees",
            "traceId": "76d0db94b9f13a163874f7e6a952dfcb",
            "spanId": "a66285247fc9b193",
            "parentSpanId": "57bb320c9062f0bf",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690635202776",
            "endTimeUnixNano": "1796047690653371018",
            "durationMs": 18.168242,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.sweep",
            "traceId": "76d0db94b9f13a163874f7e6a952dfcb",
            "spanId": "57bb320c9062f0bf",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690634866644",
            "endTimeUnixNano": "1796047690653410136",
            "durationMs": 18.543492,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          }
        ]
      },
      {
        "run": 13,
        "warmup": false,
        "elapsedMs": 18.37836599999997,
        "nestedOrphanFound": true,
        "report": {
          "_tag": "Success",
          "value": {
            "trigger": "manual",
            "startedAt": "2026-11-30T14:08:10.654Z",
            "finishedAt": "2026-11-30T14:08:10.672Z",
            "entries": [
              {
                "kind": "worktree",
                "outcome": "kept",
                "reason": "No thread uses this worktree",
                "path": "$FIXTURE/data/worktrees/repository/replay/repo-wt",
                "projectPath": null,
                "threadId": null,
                "threadTitle": null,
                "bytes": 8192,
                "files": null
              }
            ],
            "counts": {
              "removed": 0,
              "kept": 1,
              "failed": 0
            },
            "omittedCount": 0,
            "bytesFreed": 0
          }
        },
        "spans": [
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "a053d960e43091b86fdc70970de34afa",
            "spanId": "2b1d4e02b387b160",
            "parentSpanId": "fb6fe2bc276b4d8b",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690654420666",
            "endTimeUnixNano": "1796047690654572012",
            "durationMs": 0.151346,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      WITH RECURSIVE retained_checkpoint_threads(thread_id) AS (\n        SELECT thread_id FROM orchestration_v2_projection_threads WHERE deleted_at IS NULL\n        UNION\n        SELECT json_extract(t\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.038,
              "db.client.connection.wait_time_ms": 0.060821
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanCheckpointRefs",
            "traceId": "a053d960e43091b86fdc70970de34afa",
            "spanId": "fb6fe2bc276b4d8b",
            "parentSpanId": "cf4dbcf12039ba81",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690654408948",
            "endTimeUnixNano": "1796047690654605673",
            "durationMs": 0.196725,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.retryLeftovers",
            "traceId": "a053d960e43091b86fdc70970de34afa",
            "spanId": "be9d085d42bf036d",
            "parentSpanId": "cf4dbcf12039ba81",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690654623369",
            "endTimeUnixNano": "1796047690654692913",
            "durationMs": 0.069544,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveGitWorktreePath",
            "traceId": "a053d960e43091b86fdc70970de34afa",
            "spanId": "610c913f847ca8f2",
            "parentSpanId": "1e1662485ef87620",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690654729017",
            "endTimeUnixNano": "1796047690654930187",
            "durationMs": 0.20117,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveWorktreeT3Home",
            "traceId": "a053d960e43091b86fdc70970de34afa",
            "spanId": "1e1662485ef87620",
            "parentSpanId": "6cedd531ae7d970a",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690654722988",
            "endTimeUnixNano": "1796047690654940302",
            "durationMs": 0.217314,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "a053d960e43091b86fdc70970de34afa",
            "spanId": "e385347f33cb6f68",
            "parentSpanId": "6cedd531ae7d970a",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690655208433",
            "endTimeUnixNano": "1796047690655343675",
            "durationMs": 0.135242,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n          SELECT t.payload_json, p.workspace_root AS \"workspaceRoot\"\n          FROM orchestration_v2_projection_threads t\n          JOIN projection_projects p ON p.project_id = t.project_id\n         \u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.037,
              "db.client.connection.wait_time_ms": 0.058437
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "BEGIN",
            "traceId": "a053d960e43091b86fdc70970de34afa",
            "spanId": "ebae6de0ff6e950b",
            "parentSpanId": "727b9cfa6e258e46",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690655502673",
            "endTimeUnixNano": "1796047690655556222",
            "durationMs": 0.053549,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "BEGIN"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "a053d960e43091b86fdc70970de34afa",
            "spanId": "c320a8d4a1b0d030",
            "parentSpanId": "f04a7a468adba034",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690655665095",
            "endTimeUnixNano": "1796047690655752115",
            "durationMs": 0.08702,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n            SELECT\n              t.thread_id,\n              t.payload_json,\n              t.fork_run_ids_json,\n              CASE\n                WHEN json_extract(t.payload_json, '$.forkedFrom.type'\u2026[truncated]",
              "db.client.connection.wait_time_ms": 0.01325
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "a053d960e43091b86fdc70970de34afa",
            "spanId": "0cc60fa4e41afb0d",
            "parentSpanId": "f04a7a468adba034",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690655785275",
            "endTimeUnixNano": "1796047690655830031",
            "durationMs": 0.044756,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n        SELECT MAX(sequence) AS snapshot_sequence\n        FROM orchestration_events\n        WHERE application_event_version = 2\n          AND aggregate_kind = 'thread'\n      ",
              "db.client.connection.wait_time_ms": 0.00711
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readShellSnapshotRows",
            "traceId": "a053d960e43091b86fdc70970de34afa",
            "spanId": "f04a7a468adba034",
            "parentSpanId": "727b9cfa6e258e46",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690655586768",
            "endTimeUnixNano": "1796047690655843121",
            "durationMs": 0.256353,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "COMMIT",
            "traceId": "a053d960e43091b86fdc70970de34afa",
            "spanId": "ec3107a6885160ff",
            "parentSpanId": "727b9cfa6e258e46",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690655851614",
            "endTimeUnixNano": "1796047690655883832",
            "durationMs": 0.032218,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "COMMIT"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sql.transaction",
            "traceId": "a053d960e43091b86fdc70970de34afa",
            "spanId": "727b9cfa6e258e46",
            "parentSpanId": "c94f64f1a946a1fd",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690655424606",
            "endTimeUnixNano": "1796047690655904803",
            "durationMs": 0.480197,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.client.connection.wait_time_ms": 0.071116,
              "db.connection": "reader",
              "db.lock_wait_ms": 0.045
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.pendingBackgroundDataByThreadId",
            "traceId": "a053d960e43091b86fdc70970de34afa",
            "spanId": "dc910e4a8895fdd7",
            "parentSpanId": "ce4a279bb0590d14",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690655944823",
            "endTimeUnixNano": "1796047690655949861",
            "durationMs": 0.005038,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.decodeShellSnapshot",
            "traceId": "a053d960e43091b86fdc70970de34afa",
            "spanId": "ce4a279bb0590d14",
            "parentSpanId": "c94f64f1a946a1fd",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690655931373",
            "endTimeUnixNano": "1796047690655958423",
            "durationMs": 0.02705,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "a053d960e43091b86fdc70970de34afa",
            "spanId": "6b73c3c5f04097e6",
            "parentSpanId": "d9f7a3a367d4862a",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690655992334",
            "endTimeUnixNano": "1796047690656097711",
            "durationMs": 0.105377,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.028,
              "db.client.connection.wait_time_ms": 0.037346
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectStoreV2.listShells",
            "traceId": "a053d960e43091b86fdc70970de34afa",
            "spanId": "d9f7a3a367d4862a",
            "parentSpanId": "c94f64f1a946a1fd",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690655967397",
            "endTimeUnixNano": "1796047690656164731",
            "durationMs": 0.197334,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.readThreads",
            "traceId": "a053d960e43091b86fdc70970de34afa",
            "spanId": "c94f64f1a946a1fd",
            "parentSpanId": "6cedd531ae7d970a",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690655388832",
            "endTimeUnixNano": "1796047690656173415",
            "durationMs": 0.784583,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "a053d960e43091b86fdc70970de34afa",
            "spanId": "7b90082d278f46c5",
            "parentSpanId": "6cedd531ae7d970a",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690656218502",
            "endTimeUnixNano": "1796047690656329438",
            "durationMs": 0.110936,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.023,
              "db.client.connection.wait_time_ms": 0.035262
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "a053d960e43091b86fdc70970de34afa",
            "spanId": "44a4774eca585dfd",
            "parentSpanId": "7a9a3fe218bde085",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690656397429",
            "endTimeUnixNano": "1796047690656496097",
            "durationMs": 0.098668,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT DISTINCT json_extract(payload_json, '$.worktreePath') AS \"worktreePath\"\n      FROM orchestration_v2_projection_threads\n      WHERE json_extract(payload_json, '$.worktreePath') IS NOT NUL\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.045,
              "db.client.connection.wait_time_ms": 0.054562
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "a053d960e43091b86fdc70970de34afa",
            "spanId": "2593a4704ae1e029",
            "parentSpanId": "a8773104161b1bb3",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690657884671",
            "endTimeUnixNano": "1796047690659379975",
            "durationMs": 1.495304,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "a053d960e43091b86fdc70970de34afa",
            "spanId": "a8773104161b1bb3",
            "parentSpanId": "5d503836883a3078",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690657725914",
            "endTimeUnixNano": "1796047690660113971",
            "durationMs": 2.388057,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "a053d960e43091b86fdc70970de34afa",
            "spanId": "5d503836883a3078",
            "parentSpanId": "6964a6599a0b7c06",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690657688608",
            "endTimeUnixNano": "1796047690660317275",
            "durationMs": 2.628667,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/plain-notes",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "a053d960e43091b86fdc70970de34afa",
            "spanId": "717d395446fa4625",
            "parentSpanId": "257978a53cae0713",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690660544044",
            "endTimeUnixNano": "1796047690661698038",
            "durationMs": 1.153994,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "a053d960e43091b86fdc70970de34afa",
            "spanId": "257978a53cae0713",
            "parentSpanId": "1e68f43172cd00c2",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690660382443",
            "endTimeUnixNano": "1796047690662385425",
            "durationMs": 2.002982,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "a053d960e43091b86fdc70970de34afa",
            "spanId": "1e68f43172cd00c2",
            "parentSpanId": "6964a6599a0b7c06",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690660343434",
            "endTimeUnixNano": "1796047690662556400",
            "durationMs": 2.212966,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/plain-notes",
              "git.args_count": 3
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "a053d960e43091b86fdc70970de34afa",
            "spanId": "6964a6599a0b7c06",
            "parentSpanId": "7a9a3fe218bde085",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690657668568",
            "endTimeUnixNano": "1796047690662615438",
            "durationMs": 4.94687,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Failure",
              "cause": "GitCommandError: Git command failed in GitVcsDriver.listWorktreePaths ($FIXTURE/fx/plain-notes): Git command exited with a non-zero status. (not_a_repository)\n    at file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:1635:11\n    at executeWorktreeList (file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:7803:5)\n    at executeWorktreeList (definition) (file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:1681:38)\n    at StorageCleanup.reportOrphanWorktrees (file://$CHECKOUT/apps/server/src/storageCleanup.ts:1967:12)\n    at StorageCleanup.reportOrphanWorktrees (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:556:40)\n    at StorageCleanup.cleanWorktrees (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2193:37)\n    at StorageCleanup.cleanWorktrees (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:1208:33)\n    at StorageCleanup.sweep (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2293:24)\n    at StorageCleanup.sweep (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2162:24)\n    at DrainableWorker.makeDrainableWorker (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2290:25)\n    at DrainableWorker.makeDrainableWorker (definition) (file://$CHECKOUT/packages/shared/src/DrainableWorker.ts:20:43)"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "a053d960e43091b86fdc70970de34afa",
            "spanId": "efa2bb719c198599",
            "parentSpanId": "ef94af9e265b6a14",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690662953634",
            "endTimeUnixNano": "1796047690664111563",
            "durationMs": 1.157929,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "a053d960e43091b86fdc70970de34afa",
            "spanId": "ef94af9e265b6a14",
            "parentSpanId": "9f4a4dfaddadec39",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690662804411",
            "endTimeUnixNano": "1796047690664907533",
            "durationMs": 2.103122,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "a053d960e43091b86fdc70970de34afa",
            "spanId": "9f4a4dfaddadec39",
            "parentSpanId": "42f3bf1da55a61b1",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690662768447",
            "endTimeUnixNano": "1796047690665072409",
            "durationMs": 2.303962,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo/packages/app",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "a053d960e43091b86fdc70970de34afa",
            "spanId": "42f3bf1da55a61b1",
            "parentSpanId": "7a9a3fe218bde085",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690662751782",
            "endTimeUnixNano": "1796047690665086480",
            "durationMs": 2.334698,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "a053d960e43091b86fdc70970de34afa",
            "spanId": "b79088cfc2a723a6",
            "parentSpanId": "b272ccb6c215af6a",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690665313529",
            "endTimeUnixNano": "1796047690666568063",
            "durationMs": 1.254534,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "a053d960e43091b86fdc70970de34afa",
            "spanId": "b272ccb6c215af6a",
            "parentSpanId": "67c3a6e0271f2f9e",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690665157706",
            "endTimeUnixNano": "1796047690667517882",
            "durationMs": 2.360176,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "a053d960e43091b86fdc70970de34afa",
            "spanId": "67c3a6e0271f2f9e",
            "parentSpanId": "3a2f06f330cdccf9",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690665125128",
            "endTimeUnixNano": "1796047690667689318",
            "durationMs": 2.56419,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo-link",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "a053d960e43091b86fdc70970de34afa",
            "spanId": "3a2f06f330cdccf9",
            "parentSpanId": "7a9a3fe218bde085",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690665106740",
            "endTimeUnixNano": "1796047690667703840",
            "durationMs": 2.5971,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "a053d960e43091b86fdc70970de34afa",
            "spanId": "26ac393154a11de6",
            "parentSpanId": "760e9d17c2f08557",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690667916428",
            "endTimeUnixNano": "1796047690669046756",
            "durationMs": 1.130328,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "a053d960e43091b86fdc70970de34afa",
            "spanId": "760e9d17c2f08557",
            "parentSpanId": "e58bb713f7bb9714",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690667772963",
            "endTimeUnixNano": "1796047690669857437",
            "durationMs": 2.084474,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "a053d960e43091b86fdc70970de34afa",
            "spanId": "e58bb713f7bb9714",
            "parentSpanId": "f533ca1c74a39784",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690667741246",
            "endTimeUnixNano": "1796047690670020882",
            "durationMs": 2.279636,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "a053d960e43091b86fdc70970de34afa",
            "spanId": "f533ca1c74a39784",
            "parentSpanId": "7a9a3fe218bde085",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690667725232",
            "endTimeUnixNano": "1796047690670035283",
            "durationMs": 2.310051,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "a053d960e43091b86fdc70970de34afa",
            "spanId": "89b5f4b846d4441d",
            "parentSpanId": "7a9a3fe218bde085",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690670438886",
            "endTimeUnixNano": "1796047690670497233",
            "durationMs": 0.058347,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "a053d960e43091b86fdc70970de34afa",
            "spanId": "614e99989ddad6f9",
            "parentSpanId": "7a9a3fe218bde085",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690670668419",
            "endTimeUnixNano": "1796047690670710071",
            "durationMs": 0.041652,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "a053d960e43091b86fdc70970de34afa",
            "spanId": "85597871b26525cc",
            "parentSpanId": "7a9a3fe218bde085",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690670854367",
            "endTimeUnixNano": "1796047690670892874",
            "durationMs": 0.038507,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "a053d960e43091b86fdc70970de34afa",
            "spanId": "c92d8ae0e12fd494",
            "parentSpanId": "7a9a3fe218bde085",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690671022658",
            "endTimeUnixNano": "1796047690671045682",
            "durationMs": 0.023024,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "storageCleanup.measureWorktree",
            "traceId": "a053d960e43091b86fdc70970de34afa",
            "spanId": "0df34deb81a8590d",
            "parentSpanId": "7a9a3fe218bde085",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690671072783",
            "endTimeUnixNano": "1796047690671775042",
            "durationMs": 0.702259,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.reportOrphanWorktrees",
            "traceId": "a053d960e43091b86fdc70970de34afa",
            "spanId": "7a9a3fe218bde085",
            "parentSpanId": "6cedd531ae7d970a",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690656387534",
            "endTimeUnixNano": "1796047690671810906",
            "durationMs": 15.423372,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanWorktrees",
            "traceId": "a053d960e43091b86fdc70970de34afa",
            "spanId": "6cedd531ae7d970a",
            "parentSpanId": "cf4dbcf12039ba81",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690654704310",
            "endTimeUnixNano": "1796047690671820260",
            "durationMs": 17.11595,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.sweep",
            "traceId": "a053d960e43091b86fdc70970de34afa",
            "spanId": "cf4dbcf12039ba81",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690654382880",
            "endTimeUnixNano": "1796047690671860249",
            "durationMs": 17.477369,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          }
        ]
      },
      {
        "run": 14,
        "warmup": false,
        "elapsedMs": 18.470983999999987,
        "nestedOrphanFound": true,
        "report": {
          "_tag": "Success",
          "value": {
            "trigger": "manual",
            "startedAt": "2026-11-30T14:08:10.672Z",
            "finishedAt": "2026-11-30T14:08:10.690Z",
            "entries": [
              {
                "kind": "worktree",
                "outcome": "kept",
                "reason": "No thread uses this worktree",
                "path": "$FIXTURE/data/worktrees/repository/replay/repo-wt",
                "projectPath": null,
                "threadId": null,
                "threadTitle": null,
                "bytes": 8192,
                "files": null
              }
            ],
            "counts": {
              "removed": 0,
              "kept": 1,
              "failed": 0
            },
            "omittedCount": 0,
            "bytesFreed": 0
          }
        },
        "spans": [
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "3fca6d9462ff9649a5763907315f7dda",
            "spanId": "00ea2df00a57f3c4",
            "parentSpanId": "2f49396618607c48",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690672772192",
            "endTimeUnixNano": "1796047690672916217",
            "durationMs": 0.144025,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      WITH RECURSIVE retained_checkpoint_threads(thread_id) AS (\n        SELECT thread_id FROM orchestration_v2_projection_threads WHERE deleted_at IS NULL\n        UNION\n        SELECT json_extract(t\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.036,
              "db.client.connection.wait_time_ms": 0.053049
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanCheckpointRefs",
            "traceId": "3fca6d9462ff9649a5763907315f7dda",
            "spanId": "2f49396618607c48",
            "parentSpanId": "3a753a60b86ae808",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690672759132",
            "endTimeUnixNano": "1796047690672951179",
            "durationMs": 0.192047,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.retryLeftovers",
            "traceId": "3fca6d9462ff9649a5763907315f7dda",
            "spanId": "557cb1486517880c",
            "parentSpanId": "3a753a60b86ae808",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690672967814",
            "endTimeUnixNano": "1796047690673067773",
            "durationMs": 0.099959,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveGitWorktreePath",
            "traceId": "3fca6d9462ff9649a5763907315f7dda",
            "spanId": "5a89fa4fd684aa05",
            "parentSpanId": "f4c975a4873ba429",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690673109816",
            "endTimeUnixNano": "1796047690673337917",
            "durationMs": 0.228101,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveWorktreeT3Home",
            "traceId": "3fca6d9462ff9649a5763907315f7dda",
            "spanId": "f4c975a4873ba429",
            "parentSpanId": "49cc6f8c5070c903",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690673101924",
            "endTimeUnixNano": "1796047690673347071",
            "durationMs": 0.245147,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "3fca6d9462ff9649a5763907315f7dda",
            "spanId": "f9c483022ce347d3",
            "parentSpanId": "49cc6f8c5070c903",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690673641451",
            "endTimeUnixNano": "1796047690673750153",
            "durationMs": 0.108702,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n          SELECT t.payload_json, p.workspace_root AS \"workspaceRoot\"\n          FROM orchestration_v2_projection_threads t\n          JOIN projection_projects p ON p.project_id = t.project_id\n         \u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.033,
              "db.client.connection.wait_time_ms": 0.052007
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "BEGIN",
            "traceId": "3fca6d9462ff9649a5763907315f7dda",
            "spanId": "4031d31c7e4ab402",
            "parentSpanId": "f2e8c3e2c115020b",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690673881259",
            "endTimeUnixNano": "1796047690673928710",
            "durationMs": 0.047451,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "BEGIN"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "3fca6d9462ff9649a5763907315f7dda",
            "spanId": "51a359bbe913f68b",
            "parentSpanId": "7b06bf86aea646a4",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690674023712",
            "endTimeUnixNano": "1796047690674181147",
            "durationMs": 0.157435,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n            SELECT\n              t.thread_id,\n              t.payload_json,\n              t.fork_run_ids_json,\n              CASE\n                WHEN json_extract(t.payload_json, '$.forkedFrom.type'\u2026[truncated]",
              "db.client.connection.wait_time_ms": 0.01352
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "3fca6d9462ff9649a5763907315f7dda",
            "spanId": "cd732b4caa658e6c",
            "parentSpanId": "7b06bf86aea646a4",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690674208428",
            "endTimeUnixNano": "1796047690674254436",
            "durationMs": 0.046008,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n        SELECT MAX(sequence) AS snapshot_sequence\n        FROM orchestration_events\n        WHERE application_event_version = 2\n          AND aggregate_kind = 'thread'\n      ",
              "db.client.connection.wait_time_ms": 0.007741
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readShellSnapshotRows",
            "traceId": "3fca6d9462ff9649a5763907315f7dda",
            "spanId": "7b06bf86aea646a4",
            "parentSpanId": "f2e8c3e2c115020b",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690673951684",
            "endTimeUnixNano": "1796047690674266384",
            "durationMs": 0.3147,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "COMMIT",
            "traceId": "3fca6d9462ff9649a5763907315f7dda",
            "spanId": "0a068c9dd0eb8d25",
            "parentSpanId": "f2e8c3e2c115020b",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690674290871",
            "endTimeUnixNano": "1796047690674332683",
            "durationMs": 0.041812,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "COMMIT"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sql.transaction",
            "traceId": "3fca6d9462ff9649a5763907315f7dda",
            "spanId": "f2e8c3e2c115020b",
            "parentSpanId": "34b93c0b36619c65",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690673817383",
            "endTimeUnixNano": "1796047690674357480",
            "durationMs": 0.540097,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.client.connection.wait_time_ms": 0.056375,
              "db.connection": "reader",
              "db.lock_wait_ms": 0.039
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.pendingBackgroundDataByThreadId",
            "traceId": "3fca6d9462ff9649a5763907315f7dda",
            "spanId": "126635570c2183e4",
            "parentSpanId": "c5fdcdfe540262c2",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690674399253",
            "endTimeUnixNano": "1796047690674404711",
            "durationMs": 0.005458,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.decodeShellSnapshot",
            "traceId": "3fca6d9462ff9649a5763907315f7dda",
            "spanId": "c5fdcdfe540262c2",
            "parentSpanId": "34b93c0b36619c65",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690674384961",
            "endTimeUnixNano": "1796047690674414065",
            "durationMs": 0.029104,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "3fca6d9462ff9649a5763907315f7dda",
            "spanId": "6c29499c0e08a428",
            "parentSpanId": "d3eb52d432187ada",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690674455396",
            "endTimeUnixNano": "1796047690674567093",
            "durationMs": 0.111697,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.029,
              "db.client.connection.wait_time_ms": 0.041593
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectStoreV2.listShells",
            "traceId": "3fca6d9462ff9649a5763907315f7dda",
            "spanId": "d3eb52d432187ada",
            "parentSpanId": "34b93c0b36619c65",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690674421866",
            "endTimeUnixNano": "1796047690674648986",
            "durationMs": 0.22712,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.readThreads",
            "traceId": "3fca6d9462ff9649a5763907315f7dda",
            "spanId": "34b93c0b36619c65",
            "parentSpanId": "49cc6f8c5070c903",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690673790002",
            "endTimeUnixNano": "1796047690674660213",
            "durationMs": 0.870211,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "3fca6d9462ff9649a5763907315f7dda",
            "spanId": "b35c3924693e1728",
            "parentSpanId": "49cc6f8c5070c903",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690674686722",
            "endTimeUnixNano": "1796047690674784728",
            "durationMs": 0.098006,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.022,
              "db.client.connection.wait_time_ms": 0.035143
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "3fca6d9462ff9649a5763907315f7dda",
            "spanId": "5a003123fc457829",
            "parentSpanId": "70e43c697903fae5",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690674854102",
            "endTimeUnixNano": "1796047690674938849",
            "durationMs": 0.084747,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT DISTINCT json_extract(payload_json, '$.worktreePath') AS \"worktreePath\"\n      FROM orchestration_v2_projection_threads\n      WHERE json_extract(payload_json, '$.worktreePath') IS NOT NUL\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.037,
              "db.client.connection.wait_time_ms": 0.045308
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "3fca6d9462ff9649a5763907315f7dda",
            "spanId": "be56d9bee8d6f7d8",
            "parentSpanId": "53831545e16cb6bc",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690676374964",
            "endTimeUnixNano": "1796047690677610340",
            "durationMs": 1.235376,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "3fca6d9462ff9649a5763907315f7dda",
            "spanId": "53831545e16cb6bc",
            "parentSpanId": "02aaaa42b374aa4b",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690676202216",
            "endTimeUnixNano": "1796047690678344517",
            "durationMs": 2.142301,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "3fca6d9462ff9649a5763907315f7dda",
            "spanId": "02aaaa42b374aa4b",
            "parentSpanId": "0cab4adb2570141a",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690676157920",
            "endTimeUnixNano": "1796047690678527560",
            "durationMs": 2.36964,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/plain-notes",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "3fca6d9462ff9649a5763907315f7dda",
            "spanId": "1c248029b9b7db10",
            "parentSpanId": "c90167bfda2e436c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690678746327",
            "endTimeUnixNano": "1796047690679904387",
            "durationMs": 1.15806,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "3fca6d9462ff9649a5763907315f7dda",
            "spanId": "c90167bfda2e436c",
            "parentSpanId": "137507cabc64e6da",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690678595031",
            "endTimeUnixNano": "1796047690680676811",
            "durationMs": 2.08178,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "3fca6d9462ff9649a5763907315f7dda",
            "spanId": "137507cabc64e6da",
            "parentSpanId": "0cab4adb2570141a",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690678554320",
            "endTimeUnixNano": "1796047690680847526",
            "durationMs": 2.293206,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/plain-notes",
              "git.args_count": 3
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "3fca6d9462ff9649a5763907315f7dda",
            "spanId": "0cab4adb2570141a",
            "parentSpanId": "70e43c697903fae5",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690676131831",
            "endTimeUnixNano": "1796047690680909729",
            "durationMs": 4.777898,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Failure",
              "cause": "GitCommandError: Git command failed in GitVcsDriver.listWorktreePaths ($FIXTURE/fx/plain-notes): Git command exited with a non-zero status. (not_a_repository)\n    at file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:1635:11\n    at executeWorktreeList (file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:7803:5)\n    at executeWorktreeList (definition) (file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:1681:38)\n    at StorageCleanup.reportOrphanWorktrees (file://$CHECKOUT/apps/server/src/storageCleanup.ts:1967:12)\n    at StorageCleanup.reportOrphanWorktrees (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:556:40)\n    at StorageCleanup.cleanWorktrees (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2193:37)\n    at StorageCleanup.cleanWorktrees (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:1208:33)\n    at StorageCleanup.sweep (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2293:24)\n    at StorageCleanup.sweep (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2162:24)\n    at DrainableWorker.makeDrainableWorker (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2290:25)\n    at DrainableWorker.makeDrainableWorker (definition) (file://$CHECKOUT/packages/shared/src/DrainableWorker.ts:20:43)"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "3fca6d9462ff9649a5763907315f7dda",
            "spanId": "a02b9af3883ab811",
            "parentSpanId": "d6de1ea00fbede3e",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690681261815",
            "endTimeUnixNano": "1796047690682613043",
            "durationMs": 1.351228,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "3fca6d9462ff9649a5763907315f7dda",
            "spanId": "d6de1ea00fbede3e",
            "parentSpanId": "de9aa729e5d1196b",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690681115456",
            "endTimeUnixNano": "1796047690683417075",
            "durationMs": 2.301619,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "3fca6d9462ff9649a5763907315f7dda",
            "spanId": "de9aa729e5d1196b",
            "parentSpanId": "1309d706864d465a",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690681077309",
            "endTimeUnixNano": "1796047690683592637",
            "durationMs": 2.515328,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo/packages/app",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "3fca6d9462ff9649a5763907315f7dda",
            "spanId": "1309d706864d465a",
            "parentSpanId": "70e43c697903fae5",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690681059823",
            "endTimeUnixNano": "1796047690683609111",
            "durationMs": 2.549288,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "3fca6d9462ff9649a5763907315f7dda",
            "spanId": "0d52dd087997bfd4",
            "parentSpanId": "34bffdd7be24fc28",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690683844543",
            "endTimeUnixNano": "1796047690685111035",
            "durationMs": 1.266492,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "3fca6d9462ff9649a5763907315f7dda",
            "spanId": "34bffdd7be24fc28",
            "parentSpanId": "81c755348ab230e8",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690683696652",
            "endTimeUnixNano": "1796047690685946704",
            "durationMs": 2.250052,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "3fca6d9462ff9649a5763907315f7dda",
            "spanId": "81c755348ab230e8",
            "parentSpanId": "60a681ee89abb3a1",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690683649582",
            "endTimeUnixNano": "1796047690686112231",
            "durationMs": 2.462649,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo-link",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "3fca6d9462ff9649a5763907315f7dda",
            "spanId": "60a681ee89abb3a1",
            "parentSpanId": "70e43c697903fae5",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690683632076",
            "endTimeUnixNano": "1796047690686126592",
            "durationMs": 2.494516,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "3fca6d9462ff9649a5763907315f7dda",
            "spanId": "f09f0749d2e3f1d0",
            "parentSpanId": "c879e00615d497b2",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690686353822",
            "endTimeUnixNano": "1796047690687565793",
            "durationMs": 1.211971,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "3fca6d9462ff9649a5763907315f7dda",
            "spanId": "c879e00615d497b2",
            "parentSpanId": "a3909b29696e4d02",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690686200082",
            "endTimeUnixNano": "1796047690688401271",
            "durationMs": 2.201189,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "3fca6d9462ff9649a5763907315f7dda",
            "spanId": "a3909b29696e4d02",
            "parentSpanId": "8dae45bcb8ab4135",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690686166732",
            "endTimeUnixNano": "1796047690688571235",
            "durationMs": 2.404503,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "3fca6d9462ff9649a5763907315f7dda",
            "spanId": "8dae45bcb8ab4135",
            "parentSpanId": "70e43c697903fae5",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690686148315",
            "endTimeUnixNano": "1796047690688584975",
            "durationMs": 2.43666,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "3fca6d9462ff9649a5763907315f7dda",
            "spanId": "fb01f60aa1838ced",
            "parentSpanId": "70e43c697903fae5",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690688918313",
            "endTimeUnixNano": "1796047690688964783",
            "durationMs": 0.04647,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "3fca6d9462ff9649a5763907315f7dda",
            "spanId": "04f0bcbdeba3590f",
            "parentSpanId": "70e43c697903fae5",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690689127586",
            "endTimeUnixNano": "1796047690689158332",
            "durationMs": 0.030746,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "3fca6d9462ff9649a5763907315f7dda",
            "spanId": "db5a780a4e6820bd",
            "parentSpanId": "70e43c697903fae5",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690689322297",
            "endTimeUnixNano": "1796047690689351701",
            "durationMs": 0.029404,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "3fca6d9462ff9649a5763907315f7dda",
            "spanId": "eca46ccef22804a7",
            "parentSpanId": "70e43c697903fae5",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690689460052",
            "endTimeUnixNano": "1796047690689494784",
            "durationMs": 0.034732,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "storageCleanup.measureWorktree",
            "traceId": "3fca6d9462ff9649a5763907315f7dda",
            "spanId": "123f0be7cc333ea8",
            "parentSpanId": "70e43c697903fae5",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690689530347",
            "endTimeUnixNano": "1796047690690138626",
            "durationMs": 0.608279,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.reportOrphanWorktrees",
            "traceId": "3fca6d9462ff9649a5763907315f7dda",
            "spanId": "70e43c697903fae5",
            "parentSpanId": "49cc6f8c5070c903",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690674844878",
            "endTimeUnixNano": "1796047690690169873",
            "durationMs": 15.324995,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanWorktrees",
            "traceId": "3fca6d9462ff9649a5763907315f7dda",
            "spanId": "49cc6f8c5070c903",
            "parentSpanId": "3a753a60b86ae808",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690673082556",
            "endTimeUnixNano": "1796047690690179117",
            "durationMs": 17.096561,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.sweep",
            "traceId": "3fca6d9462ff9649a5763907315f7dda",
            "spanId": "3a753a60b86ae808",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690672735257",
            "endTimeUnixNano": "1796047690690220579",
            "durationMs": 17.485322,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          }
        ]
      },
      {
        "run": 15,
        "warmup": false,
        "elapsedMs": 19.047005000000013,
        "nestedOrphanFound": true,
        "report": {
          "_tag": "Success",
          "value": {
            "trigger": "manual",
            "startedAt": "2026-11-30T14:08:10.691Z",
            "finishedAt": "2026-11-30T14:08:10.709Z",
            "entries": [
              {
                "kind": "worktree",
                "outcome": "kept",
                "reason": "No thread uses this worktree",
                "path": "$FIXTURE/data/worktrees/repository/replay/repo-wt",
                "projectPath": null,
                "threadId": null,
                "threadTitle": null,
                "bytes": 8192,
                "files": null
              }
            ],
            "counts": {
              "removed": 0,
              "kept": 1,
              "failed": 0
            },
            "omittedCount": 0,
            "bytesFreed": 0
          }
        },
        "spans": [
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "6cf4150b36f8993172f947aa7defbb8c",
            "spanId": "bde9185e970850e6",
            "parentSpanId": "aa6becc0b7b7b2d6",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690691293762",
            "endTimeUnixNano": "1796047690691484356",
            "durationMs": 0.190594,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      WITH RECURSIVE retained_checkpoint_threads(thread_id) AS (\n        SELECT thread_id FROM orchestration_v2_projection_threads WHERE deleted_at IS NULL\n        UNION\n        SELECT json_extract(t\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.038,
              "db.client.connection.wait_time_ms": 0.068883
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanCheckpointRefs",
            "traceId": "6cf4150b36f8993172f947aa7defbb8c",
            "spanId": "aa6becc0b7b7b2d6",
            "parentSpanId": "cc0cfc06bed4cc6b",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690691266281",
            "endTimeUnixNano": "1796047690691529804",
            "durationMs": 0.263523,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.retryLeftovers",
            "traceId": "6cf4150b36f8993172f947aa7defbb8c",
            "spanId": "9e103799b8b5b3a4",
            "parentSpanId": "cc0cfc06bed4cc6b",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690691549264",
            "endTimeUnixNano": "1796047690691620320",
            "durationMs": 0.071056,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveGitWorktreePath",
            "traceId": "6cf4150b36f8993172f947aa7defbb8c",
            "spanId": "0c0bbaa577147eb1",
            "parentSpanId": "f8e62ec13c3f02f9",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690691661922",
            "endTimeUnixNano": "1796047690691876202",
            "durationMs": 0.21428,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveWorktreeT3Home",
            "traceId": "6cf4150b36f8993172f947aa7defbb8c",
            "spanId": "f8e62ec13c3f02f9",
            "parentSpanId": "47eccce26039ae5d",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690691655071",
            "endTimeUnixNano": "1796047690691885746",
            "durationMs": 0.230675,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "6cf4150b36f8993172f947aa7defbb8c",
            "spanId": "cfc3a7daceeac954",
            "parentSpanId": "47eccce26039ae5d",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690692159475",
            "endTimeUnixNano": "1796047690692282449",
            "durationMs": 0.122974,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n          SELECT t.payload_json, p.workspace_root AS \"workspaceRoot\"\n          FROM orchestration_v2_projection_threads t\n          JOIN projection_projects p ON p.project_id = t.project_id\n         \u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.032,
              "db.client.connection.wait_time_ms": 0.050435
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "BEGIN",
            "traceId": "6cf4150b36f8993172f947aa7defbb8c",
            "spanId": "f07545cefc15e7c6",
            "parentSpanId": "0822c8efd13f07d1",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690692424801",
            "endTimeUnixNano": "1796047690692492232",
            "durationMs": 0.067431,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "BEGIN"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "6cf4150b36f8993172f947aa7defbb8c",
            "spanId": "80dd79832c513141",
            "parentSpanId": "eace1441b1997c7e",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690692599422",
            "endTimeUnixNano": "1796047690692702566",
            "durationMs": 0.103144,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n            SELECT\n              t.thread_id,\n              t.payload_json,\n              t.fork_run_ids_json,\n              CASE\n                WHEN json_extract(t.payload_json, '$.forkedFrom.type'\u2026[truncated]",
              "db.client.connection.wait_time_ms": 0.014432
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "6cf4150b36f8993172f947aa7defbb8c",
            "spanId": "ee649179951579a1",
            "parentSpanId": "eace1441b1997c7e",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690692741715",
            "endTimeUnixNano": "1796047690692793042",
            "durationMs": 0.051327,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n        SELECT MAX(sequence) AS snapshot_sequence\n        FROM orchestration_events\n        WHERE application_event_version = 2\n          AND aggregate_kind = 'thread'\n      ",
              "db.client.connection.wait_time_ms": 0.008332
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readShellSnapshotRows",
            "traceId": "6cf4150b36f8993172f947aa7defbb8c",
            "spanId": "eace1441b1997c7e",
            "parentSpanId": "0822c8efd13f07d1",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690692517350",
            "endTimeUnixNano": "1796047690692806151",
            "durationMs": 0.288801,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "COMMIT",
            "traceId": "6cf4150b36f8993172f947aa7defbb8c",
            "spanId": "b8bfdc1c9b27e6d5",
            "parentSpanId": "0822c8efd13f07d1",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690692814944",
            "endTimeUnixNano": "1796047690692848905",
            "durationMs": 0.033961,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "COMMIT"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sql.transaction",
            "traceId": "6cf4150b36f8993172f947aa7defbb8c",
            "spanId": "0822c8efd13f07d1",
            "parentSpanId": "cb5f4b675df5f23d",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690692363640",
            "endTimeUnixNano": "1796047690692872140",
            "durationMs": 0.5085,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.client.connection.wait_time_ms": 0.052148,
              "db.connection": "reader",
              "db.lock_wait_ms": 0.031
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.pendingBackgroundDataByThreadId",
            "traceId": "6cf4150b36f8993172f947aa7defbb8c",
            "spanId": "c28499169d5a58ba",
            "parentSpanId": "af8b168ad4e8c281",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690692909696",
            "endTimeUnixNano": "1796047690692914853",
            "durationMs": 0.005157,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.decodeShellSnapshot",
            "traceId": "6cf4150b36f8993172f947aa7defbb8c",
            "spanId": "af8b168ad4e8c281",
            "parentSpanId": "cb5f4b675df5f23d",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690692897337",
            "endTimeUnixNano": "1796047690692923927",
            "durationMs": 0.02659,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "6cf4150b36f8993172f947aa7defbb8c",
            "spanId": "48d532b39c348c0b",
            "parentSpanId": "d8060601a61ae148",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690692960301",
            "endTimeUnixNano": "1796047690693075153",
            "durationMs": 0.114852,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.028,
              "db.client.connection.wait_time_ms": 0.037627
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectStoreV2.listShells",
            "traceId": "6cf4150b36f8993172f947aa7defbb8c",
            "spanId": "d8060601a61ae148",
            "parentSpanId": "cb5f4b675df5f23d",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690692932420",
            "endTimeUnixNano": "1796047690693145738",
            "durationMs": 0.213318,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.readThreads",
            "traceId": "6cf4150b36f8993172f947aa7defbb8c",
            "spanId": "cb5f4b675df5f23d",
            "parentSpanId": "47eccce26039ae5d",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690692329529",
            "endTimeUnixNano": "1796047690693154451",
            "durationMs": 0.824922,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "6cf4150b36f8993172f947aa7defbb8c",
            "spanId": "63d4f35e09317f7d",
            "parentSpanId": "47eccce26039ae5d",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690693179949",
            "endTimeUnixNano": "1796047690693306579",
            "durationMs": 0.12663,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.022,
              "db.client.connection.wait_time_ms": 0.0333
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "6cf4150b36f8993172f947aa7defbb8c",
            "spanId": "c2ded205fd4ba54b",
            "parentSpanId": "480c5b550a38dda9",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690693381741",
            "endTimeUnixNano": "1796047690693698604",
            "durationMs": 0.316863,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT DISTINCT json_extract(payload_json, '$.worktreePath') AS \"worktreePath\"\n      FROM orchestration_v2_projection_threads\n      WHERE json_extract(payload_json, '$.worktreePath') IS NOT NUL\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.041,
              "db.client.connection.wait_time_ms": 0.051217
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "6cf4150b36f8993172f947aa7defbb8c",
            "spanId": "50fdc1811a578192",
            "parentSpanId": "7b9e32dd0f88e088",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690695061110",
            "endTimeUnixNano": "1796047690696626989",
            "durationMs": 1.565879,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "6cf4150b36f8993172f947aa7defbb8c",
            "spanId": "7b9e32dd0f88e088",
            "parentSpanId": "2738b57a30935b2b",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690694907390",
            "endTimeUnixNano": "1796047690697484901",
            "durationMs": 2.577511,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "6cf4150b36f8993172f947aa7defbb8c",
            "spanId": "2738b57a30935b2b",
            "parentSpanId": "b82516ff9c8f173c",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690694869564",
            "endTimeUnixNano": "1796047690697679121",
            "durationMs": 2.809557,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/plain-notes",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "6cf4150b36f8993172f947aa7defbb8c",
            "spanId": "8b9053f304fc7924",
            "parentSpanId": "e3dd5902190d016c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690697897527",
            "endTimeUnixNano": "1796047690699254935",
            "durationMs": 1.357408,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "6cf4150b36f8993172f947aa7defbb8c",
            "spanId": "e3dd5902190d016c",
            "parentSpanId": "f612505954a9e4d5",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690697749476",
            "endTimeUnixNano": "1796047690700000629",
            "durationMs": 2.251153,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "6cf4150b36f8993172f947aa7defbb8c",
            "spanId": "f612505954a9e4d5",
            "parentSpanId": "b82516ff9c8f173c",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690697707023",
            "endTimeUnixNano": "1796047690700170343",
            "durationMs": 2.46332,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/plain-notes",
              "git.args_count": 3
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "6cf4150b36f8993172f947aa7defbb8c",
            "spanId": "b82516ff9c8f173c",
            "parentSpanId": "480c5b550a38dda9",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690694849904",
            "endTimeUnixNano": "1796047690700232686",
            "durationMs": 5.382782,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Failure",
              "cause": "GitCommandError: Git command failed in GitVcsDriver.listWorktreePaths ($FIXTURE/fx/plain-notes): Git command exited with a non-zero status. (not_a_repository)\n    at file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:1635:11\n    at executeWorktreeList (file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:7803:5)\n    at executeWorktreeList (definition) (file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:1681:38)\n    at StorageCleanup.reportOrphanWorktrees (file://$CHECKOUT/apps/server/src/storageCleanup.ts:1967:12)\n    at StorageCleanup.reportOrphanWorktrees (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:556:40)\n    at StorageCleanup.cleanWorktrees (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2193:37)\n    at StorageCleanup.cleanWorktrees (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:1208:33)\n    at StorageCleanup.sweep (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2293:24)\n    at StorageCleanup.sweep (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2162:24)\n    at DrainableWorker.makeDrainableWorker (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2290:25)\n    at DrainableWorker.makeDrainableWorker (definition) (file://$CHECKOUT/packages/shared/src/DrainableWorker.ts:20:43)"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "6cf4150b36f8993172f947aa7defbb8c",
            "spanId": "7d84c71d353650e6",
            "parentSpanId": "a0692b28cf2bd946",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690700646764",
            "endTimeUnixNano": "1796047690701887788",
            "durationMs": 1.241024,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "6cf4150b36f8993172f947aa7defbb8c",
            "spanId": "a0692b28cf2bd946",
            "parentSpanId": "5ab556696eae26a2",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690700490371",
            "endTimeUnixNano": "1796047690702755705",
            "durationMs": 2.265334,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "6cf4150b36f8993172f947aa7defbb8c",
            "spanId": "5ab556696eae26a2",
            "parentSpanId": "85a031d71b0c4eb4",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690700415148",
            "endTimeUnixNano": "1796047690702925959",
            "durationMs": 2.510811,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo/packages/app",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "6cf4150b36f8993172f947aa7defbb8c",
            "spanId": "85a031d71b0c4eb4",
            "parentSpanId": "480c5b550a38dda9",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690700393907",
            "endTimeUnixNano": "1796047690702941002",
            "durationMs": 2.547095,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "6cf4150b36f8993172f947aa7defbb8c",
            "spanId": "13ae192c4f233bbe",
            "parentSpanId": "70345d89e4a323cc",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690703153219",
            "endTimeUnixNano": "1796047690704352991",
            "durationMs": 1.199772,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "6cf4150b36f8993172f947aa7defbb8c",
            "spanId": "70345d89e4a323cc",
            "parentSpanId": "a6e9a86063c03024",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690703011537",
            "endTimeUnixNano": "1796047690705146967",
            "durationMs": 2.13543,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "6cf4150b36f8993172f947aa7defbb8c",
            "spanId": "a6e9a86063c03024",
            "parentSpanId": "c955ca1b60e96268",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690702979549",
            "endTimeUnixNano": "1796047690705331283",
            "durationMs": 2.351734,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo-link",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "6cf4150b36f8993172f947aa7defbb8c",
            "spanId": "c955ca1b60e96268",
            "parentSpanId": "480c5b550a38dda9",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690702963556",
            "endTimeUnixNano": "1796047690705348559",
            "durationMs": 2.385003,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "6cf4150b36f8993172f947aa7defbb8c",
            "spanId": "52580c3ccb293745",
            "parentSpanId": "3817345a28361a50",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690705575487",
            "endTimeUnixNano": "1796047690706707969",
            "durationMs": 1.132482,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "6cf4150b36f8993172f947aa7defbb8c",
            "spanId": "3817345a28361a50",
            "parentSpanId": "22fb08fa57d107bb",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690705421508",
            "endTimeUnixNano": "1796047690707586141",
            "durationMs": 2.164633,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "6cf4150b36f8993172f947aa7defbb8c",
            "spanId": "22fb08fa57d107bb",
            "parentSpanId": "8a23c25de551090e",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690705387587",
            "endTimeUnixNano": "1796047690707786270",
            "durationMs": 2.398683,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "6cf4150b36f8993172f947aa7defbb8c",
            "spanId": "8a23c25de551090e",
            "parentSpanId": "480c5b550a38dda9",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690705371232",
            "endTimeUnixNano": "1796047690707802585",
            "durationMs": 2.431353,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "6cf4150b36f8993172f947aa7defbb8c",
            "spanId": "7af2b00a90e73ac9",
            "parentSpanId": "480c5b550a38dda9",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690708113409",
            "endTimeUnixNano": "1796047690708166899",
            "durationMs": 0.05349,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "6cf4150b36f8993172f947aa7defbb8c",
            "spanId": "74a02b3e2a20a78d",
            "parentSpanId": "480c5b550a38dda9",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690708309162",
            "endTimeUnixNano": "1796047690708337664",
            "durationMs": 0.028502,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "6cf4150b36f8993172f947aa7defbb8c",
            "spanId": "ff0578b4af2d4843",
            "parentSpanId": "480c5b550a38dda9",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690708454849",
            "endTimeUnixNano": "1796047690708482801",
            "durationMs": 0.027952,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "6cf4150b36f8993172f947aa7defbb8c",
            "spanId": "2e9666fbd6374cca",
            "parentSpanId": "480c5b550a38dda9",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690708577542",
            "endTimeUnixNano": "1796047690708596971",
            "durationMs": 0.019429,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "storageCleanup.measureWorktree",
            "traceId": "6cf4150b36f8993172f947aa7defbb8c",
            "spanId": "11ac5aa3308073ee",
            "parentSpanId": "480c5b550a38dda9",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690708636651",
            "endTimeUnixNano": "1796047690709266091",
            "durationMs": 0.62944,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.reportOrphanWorktrees",
            "traceId": "6cf4150b36f8993172f947aa7defbb8c",
            "spanId": "480c5b550a38dda9",
            "parentSpanId": "47eccce26039ae5d",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690693371926",
            "endTimeUnixNano": "1796047690709309045",
            "durationMs": 15.937119,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanWorktrees",
            "traceId": "6cf4150b36f8993172f947aa7defbb8c",
            "spanId": "47eccce26039ae5d",
            "parentSpanId": "cc0cfc06bed4cc6b",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690691635472",
            "endTimeUnixNano": "1796047690709318830",
            "durationMs": 17.683358,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.sweep",
            "traceId": "6cf4150b36f8993172f947aa7defbb8c",
            "spanId": "cc0cfc06bed4cc6b",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690691241013",
            "endTimeUnixNano": "1796047690709360432",
            "durationMs": 18.119419,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          }
        ]
      },
      {
        "run": 16,
        "warmup": false,
        "elapsedMs": 22.158983999999975,
        "nestedOrphanFound": true,
        "report": {
          "_tag": "Success",
          "value": {
            "trigger": "manual",
            "startedAt": "2026-11-30T14:08:10.710Z",
            "finishedAt": "2026-11-30T14:08:10.731Z",
            "entries": [
              {
                "kind": "worktree",
                "outcome": "kept",
                "reason": "No thread uses this worktree",
                "path": "$FIXTURE/data/worktrees/repository/replay/repo-wt",
                "projectPath": null,
                "threadId": null,
                "threadTitle": null,
                "bytes": 8192,
                "files": null
              }
            ],
            "counts": {
              "removed": 0,
              "kept": 1,
              "failed": 0
            },
            "omittedCount": 0,
            "bytesFreed": 0
          }
        },
        "spans": [
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "d389db1d4640f10a03d2511d8a577699",
            "spanId": "c01cba3757aed97e",
            "parentSpanId": "030eccff294a34a3",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690710341177",
            "endTimeUnixNano": "1796047690710536419",
            "durationMs": 0.195242,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      WITH RECURSIVE retained_checkpoint_threads(thread_id) AS (\n        SELECT thread_id FROM orchestration_v2_projection_threads WHERE deleted_at IS NULL\n        UNION\n        SELECT json_extract(t\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.036,
              "db.client.connection.wait_time_ms": 0.054552
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanCheckpointRefs",
            "traceId": "d389db1d4640f10a03d2511d8a577699",
            "spanId": "030eccff294a34a3",
            "parentSpanId": "9f00b24c02c7f3b0",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690710328829",
            "endTimeUnixNano": "1796047690710570930",
            "durationMs": 0.242101,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.retryLeftovers",
            "traceId": "d389db1d4640f10a03d2511d8a577699",
            "spanId": "3ae85737f6263edb",
            "parentSpanId": "9f00b24c02c7f3b0",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690710588226",
            "endTimeUnixNano": "1796047690710659613",
            "durationMs": 0.071387,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveGitWorktreePath",
            "traceId": "d389db1d4640f10a03d2511d8a577699",
            "spanId": "f187a5d89ee24dd6",
            "parentSpanId": "683bf91a473ac627",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690710697279",
            "endTimeUnixNano": "1796047690710882556",
            "durationMs": 0.185277,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveWorktreeT3Home",
            "traceId": "d389db1d4640f10a03d2511d8a577699",
            "spanId": "683bf91a473ac627",
            "parentSpanId": "4149f72c4c8885fc",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690710690359",
            "endTimeUnixNano": "1796047690710891309",
            "durationMs": 0.20095,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "d389db1d4640f10a03d2511d8a577699",
            "spanId": "3262f50a9fce1427",
            "parentSpanId": "4149f72c4c8885fc",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690711141713",
            "endTimeUnixNano": "1796047690711257566",
            "durationMs": 0.115853,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n          SELECT t.payload_json, p.workspace_root AS \"workspaceRoot\"\n          FROM orchestration_v2_projection_threads t\n          JOIN projection_projects p ON p.project_id = t.project_id\n         \u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.035,
              "db.client.connection.wait_time_ms": 0.053981
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "BEGIN",
            "traceId": "d389db1d4640f10a03d2511d8a577699",
            "spanId": "be92d68f69a626c3",
            "parentSpanId": "7fb93035763be364",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690711413008",
            "endTimeUnixNano": "1796047690711477395",
            "durationMs": 0.064387,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "BEGIN"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "d389db1d4640f10a03d2511d8a577699",
            "spanId": "6ab26e433de8dabf",
            "parentSpanId": "83b030c7cc88b6ab",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690711585566",
            "endTimeUnixNano": "1796047690711680828",
            "durationMs": 0.095262,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n            SELECT\n              t.thread_id,\n              t.payload_json,\n              t.fork_run_ids_json,\n              CASE\n                WHEN json_extract(t.payload_json, '$.forkedFrom.type'\u2026[truncated]",
              "db.client.connection.wait_time_ms": 0.015013
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "d389db1d4640f10a03d2511d8a577699",
            "spanId": "26dc46698dd2924a",
            "parentSpanId": "83b030c7cc88b6ab",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690711717674",
            "endTimeUnixNano": "1796047690711880056",
            "durationMs": 0.162382,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n        SELECT MAX(sequence) AS snapshot_sequence\n        FROM orchestration_events\n        WHERE application_event_version = 2\n          AND aggregate_kind = 'thread'\n      ",
              "db.client.connection.wait_time_ms": 0.0207
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readShellSnapshotRows",
            "traceId": "d389db1d4640f10a03d2511d8a577699",
            "spanId": "83b030c7cc88b6ab",
            "parentSpanId": "7fb93035763be364",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690711501030",
            "endTimeUnixNano": "1796047690711895609",
            "durationMs": 0.394579,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "COMMIT",
            "traceId": "d389db1d4640f10a03d2511d8a577699",
            "spanId": "b2e1c55854bfbe61",
            "parentSpanId": "7fb93035763be364",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690711904382",
            "endTimeUnixNano": "1796047690711957682",
            "durationMs": 0.0533,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "COMMIT"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sql.transaction",
            "traceId": "d389db1d4640f10a03d2511d8a577699",
            "spanId": "7fb93035763be364",
            "parentSpanId": "aeecf28353e88c79",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690711352268",
            "endTimeUnixNano": "1796047690711980446",
            "durationMs": 0.628178,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.client.connection.wait_time_ms": 0.052528,
              "db.connection": "reader",
              "db.lock_wait_ms": 0.031
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.pendingBackgroundDataByThreadId",
            "traceId": "d389db1d4640f10a03d2511d8a577699",
            "spanId": "c9c224e8a01f6732",
            "parentSpanId": "b5fe8dd80bb0d98b",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690712021898",
            "endTimeUnixNano": "1796047690712027456",
            "durationMs": 0.005558,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.decodeShellSnapshot",
            "traceId": "d389db1d4640f10a03d2511d8a577699",
            "spanId": "b5fe8dd80bb0d98b",
            "parentSpanId": "aeecf28353e88c79",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690712007296",
            "endTimeUnixNano": "1796047690712036890",
            "durationMs": 0.029594,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "d389db1d4640f10a03d2511d8a577699",
            "spanId": "54a60decd4c37c12",
            "parentSpanId": "3a98aeb49932e5f5",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690712071913",
            "endTimeUnixNano": "1796047690712209298",
            "durationMs": 0.137385,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.028,
              "db.client.connection.wait_time_ms": 0.037506
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectStoreV2.listShells",
            "traceId": "d389db1d4640f10a03d2511d8a577699",
            "spanId": "3a98aeb49932e5f5",
            "parentSpanId": "aeecf28353e88c79",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690712044992",
            "endTimeUnixNano": "1796047690712295357",
            "durationMs": 0.250365,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.readThreads",
            "traceId": "d389db1d4640f10a03d2511d8a577699",
            "spanId": "aeecf28353e88c79",
            "parentSpanId": "4149f72c4c8885fc",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690711316584",
            "endTimeUnixNano": "1796047690712308737",
            "durationMs": 0.992153,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "d389db1d4640f10a03d2511d8a577699",
            "spanId": "f5f89e4a038eb0b3",
            "parentSpanId": "4149f72c4c8885fc",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690712334765",
            "endTimeUnixNano": "1796047690712446833",
            "durationMs": 0.112068,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.023,
              "db.client.connection.wait_time_ms": 0.037326
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "d389db1d4640f10a03d2511d8a577699",
            "spanId": "343fa4da72540e40",
            "parentSpanId": "bcc4ca9da203ee4d",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690712507353",
            "endTimeUnixNano": "1796047690712591569",
            "durationMs": 0.084216,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT DISTINCT json_extract(payload_json, '$.worktreePath') AS \"worktreePath\"\n      FROM orchestration_v2_projection_threads\n      WHERE json_extract(payload_json, '$.worktreePath') IS NOT NUL\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.034,
              "db.client.connection.wait_time_ms": 0.041572
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "d389db1d4640f10a03d2511d8a577699",
            "spanId": "a17bb056d151e94e",
            "parentSpanId": "197b8a1cf7ae3f6e",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690713874916",
            "endTimeUnixNano": "1796047690715075440",
            "durationMs": 1.200524,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "d389db1d4640f10a03d2511d8a577699",
            "spanId": "197b8a1cf7ae3f6e",
            "parentSpanId": "b6ab291fd96f4644",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690713715178",
            "endTimeUnixNano": "1796047690715868795",
            "durationMs": 2.153617,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "d389db1d4640f10a03d2511d8a577699",
            "spanId": "b6ab291fd96f4644",
            "parentSpanId": "59039fb6bf977ab2",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690713681337",
            "endTimeUnixNano": "1796047690716066811",
            "durationMs": 2.385474,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/plain-notes",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "d389db1d4640f10a03d2511d8a577699",
            "spanId": "b19cd40989bf1edb",
            "parentSpanId": "72cf4de09dcef0e7",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690716303004",
            "endTimeUnixNano": "1796047690717557788",
            "durationMs": 1.254784,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "d389db1d4640f10a03d2511d8a577699",
            "spanId": "72cf4de09dcef0e7",
            "parentSpanId": "3dcc83db60733218",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690716131608",
            "endTimeUnixNano": "1796047690718423812",
            "durationMs": 2.292204,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "d389db1d4640f10a03d2511d8a577699",
            "spanId": "3dcc83db60733218",
            "parentSpanId": "59039fb6bf977ab2",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690716092810",
            "endTimeUnixNano": "1796047690718646505",
            "durationMs": 2.553695,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/plain-notes",
              "git.args_count": 3
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "d389db1d4640f10a03d2511d8a577699",
            "spanId": "59039fb6bf977ab2",
            "parentSpanId": "bcc4ca9da203ee4d",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690713663741",
            "endTimeUnixNano": "1796047690718713615",
            "durationMs": 5.049874,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Failure",
              "cause": "GitCommandError: Git command failed in GitVcsDriver.listWorktreePaths ($FIXTURE/fx/plain-notes): Git command exited with a non-zero status. (not_a_repository)\n    at file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:1635:11\n    at executeWorktreeList (file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:7803:5)\n    at executeWorktreeList (definition) (file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:1681:38)\n    at StorageCleanup.reportOrphanWorktrees (file://$CHECKOUT/apps/server/src/storageCleanup.ts:1967:12)\n    at StorageCleanup.reportOrphanWorktrees (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:556:40)\n    at StorageCleanup.cleanWorktrees (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2193:37)\n    at StorageCleanup.cleanWorktrees (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:1208:33)\n    at StorageCleanup.sweep (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2293:24)\n    at StorageCleanup.sweep (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2162:24)\n    at DrainableWorker.makeDrainableWorker (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2290:25)\n    at DrainableWorker.makeDrainableWorker (definition) (file://$CHECKOUT/packages/shared/src/DrainableWorker.ts:20:43)"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "d389db1d4640f10a03d2511d8a577699",
            "spanId": "3cd4d073f00cc1cb",
            "parentSpanId": "641568f3f73ca7e0",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690719079762",
            "endTimeUnixNano": "1796047690720746131",
            "durationMs": 1.666369,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "d389db1d4640f10a03d2511d8a577699",
            "spanId": "641568f3f73ca7e0",
            "parentSpanId": "a23a1f037ca49d67",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690718916037",
            "endTimeUnixNano": "1796047690721551234",
            "durationMs": 2.635197,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "d389db1d4640f10a03d2511d8a577699",
            "spanId": "a23a1f037ca49d67",
            "parentSpanId": "12f954693672455a",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690718871220",
            "endTimeUnixNano": "1796047690721957952",
            "durationMs": 3.086732,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo/packages/app",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "d389db1d4640f10a03d2511d8a577699",
            "spanId": "12f954693672455a",
            "parentSpanId": "bcc4ca9da203ee4d",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690718850349",
            "endTimeUnixNano": "1796047690721985543",
            "durationMs": 3.135194,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "d389db1d4640f10a03d2511d8a577699",
            "spanId": "e81c720bf50dd4dc",
            "parentSpanId": "d6714248c4c87e4b",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690722429015",
            "endTimeUnixNano": "1796047690723858471",
            "durationMs": 1.429456,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "d389db1d4640f10a03d2511d8a577699",
            "spanId": "d6714248c4c87e4b",
            "parentSpanId": "bd36033847a874f1",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690722141916",
            "endTimeUnixNano": "1796047690724751786",
            "durationMs": 2.60987,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "d389db1d4640f10a03d2511d8a577699",
            "spanId": "bd36033847a874f1",
            "parentSpanId": "a2fc1860fc5b8add",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690722079123",
            "endTimeUnixNano": "1796047690724990763",
            "durationMs": 2.91164,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo-link",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "d389db1d4640f10a03d2511d8a577699",
            "spanId": "a2fc1860fc5b8add",
            "parentSpanId": "bcc4ca9da203ee4d",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690722038472",
            "endTimeUnixNano": "1796047690725010332",
            "durationMs": 2.97186,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "d389db1d4640f10a03d2511d8a577699",
            "spanId": "8362dbd2901bb805",
            "parentSpanId": "46a7c005eec5306c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690725297561",
            "endTimeUnixNano": "1796047690726636651",
            "durationMs": 1.33909,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "d389db1d4640f10a03d2511d8a577699",
            "spanId": "46a7c005eec5306c",
            "parentSpanId": "88d1f329ce5867d4",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690725099154",
            "endTimeUnixNano": "1796047690728904409",
            "durationMs": 3.805255,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "d389db1d4640f10a03d2511d8a577699",
            "spanId": "88d1f329ce5867d4",
            "parentSpanId": "1ffede25c4735e4c",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690725057883",
            "endTimeUnixNano": "1796047690729332999",
            "durationMs": 4.275116,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "d389db1d4640f10a03d2511d8a577699",
            "spanId": "1ffede25c4735e4c",
            "parentSpanId": "bcc4ca9da203ee4d",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690725036821",
            "endTimeUnixNano": "1796047690729353049",
            "durationMs": 4.316228,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "d389db1d4640f10a03d2511d8a577699",
            "spanId": "e4c9b3903974edbb",
            "parentSpanId": "bcc4ca9da203ee4d",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690729813267",
            "endTimeUnixNano": "1796047690729888900",
            "durationMs": 0.075633,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "d389db1d4640f10a03d2511d8a577699",
            "spanId": "1899c98838eb03ab",
            "parentSpanId": "bcc4ca9da203ee4d",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690730096130",
            "endTimeUnixNano": "1796047690730131302",
            "durationMs": 0.035172,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "d389db1d4640f10a03d2511d8a577699",
            "spanId": "28acc413642415bb",
            "parentSpanId": "bcc4ca9da203ee4d",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690730316869",
            "endTimeUnixNano": "1796047690730345843",
            "durationMs": 0.028974,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "d389db1d4640f10a03d2511d8a577699",
            "spanId": "109c596a8b259645",
            "parentSpanId": "bcc4ca9da203ee4d",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690730445932",
            "endTimeUnixNano": "1796047690730470689",
            "durationMs": 0.024757,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "storageCleanup.measureWorktree",
            "traceId": "d389db1d4640f10a03d2511d8a577699",
            "spanId": "6879345c54a7c4d3",
            "parentSpanId": "bcc4ca9da203ee4d",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690730503688",
            "endTimeUnixNano": "1796047690731252838",
            "durationMs": 0.74915,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.reportOrphanWorktrees",
            "traceId": "d389db1d4640f10a03d2511d8a577699",
            "spanId": "bcc4ca9da203ee4d",
            "parentSpanId": "4149f72c4c8885fc",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690712497799",
            "endTimeUnixNano": "1796047690731291044",
            "durationMs": 18.793245,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanWorktrees",
            "traceId": "d389db1d4640f10a03d2511d8a577699",
            "spanId": "4149f72c4c8885fc",
            "parentSpanId": "9f00b24c02c7f3b0",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690710671300",
            "endTimeUnixNano": "1796047690731301220",
            "durationMs": 20.62992,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.sweep",
            "traceId": "d389db1d4640f10a03d2511d8a577699",
            "spanId": "9f00b24c02c7f3b0",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690710302129",
            "endTimeUnixNano": "1796047690731350343",
            "durationMs": 21.048214,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          }
        ]
      },
      {
        "run": 17,
        "warmup": false,
        "elapsedMs": 20.188420000000008,
        "nestedOrphanFound": true,
        "report": {
          "_tag": "Success",
          "value": {
            "trigger": "manual",
            "startedAt": "2026-11-30T14:08:10.732Z",
            "finishedAt": "2026-11-30T14:08:10.751Z",
            "entries": [
              {
                "kind": "worktree",
                "outcome": "kept",
                "reason": "No thread uses this worktree",
                "path": "$FIXTURE/data/worktrees/repository/replay/repo-wt",
                "projectPath": null,
                "threadId": null,
                "threadTitle": null,
                "bytes": 8192,
                "files": null
              }
            ],
            "counts": {
              "removed": 0,
              "kept": 1,
              "failed": 0
            },
            "omittedCount": 0,
            "bytesFreed": 0
          }
        },
        "spans": [
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "376e23578ef26a3558d8812c8d70b37d",
            "spanId": "987aeae6650959ec",
            "parentSpanId": "21de9ce24d80808d",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690732609534",
            "endTimeUnixNano": "1796047690732878656",
            "durationMs": 0.269122,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      WITH RECURSIVE retained_checkpoint_threads(thread_id) AS (\n        SELECT thread_id FROM orchestration_v2_projection_threads WHERE deleted_at IS NULL\n        UNION\n        SELECT json_extract(t\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.047,
              "db.client.connection.wait_time_ms": 0.112969
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanCheckpointRefs",
            "traceId": "376e23578ef26a3558d8812c8d70b37d",
            "spanId": "21de9ce24d80808d",
            "parentSpanId": "56006ea1b8d3f6e9",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690732589364",
            "endTimeUnixNano": "1796047690732920629",
            "durationMs": 0.331265,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.retryLeftovers",
            "traceId": "376e23578ef26a3558d8812c8d70b37d",
            "spanId": "13eb457143063ca8",
            "parentSpanId": "56006ea1b8d3f6e9",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690732941330",
            "endTimeUnixNano": "1796047690733048029",
            "durationMs": 0.106699,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveGitWorktreePath",
            "traceId": "376e23578ef26a3558d8812c8d70b37d",
            "spanId": "2344dbd105596e66",
            "parentSpanId": "c7c0c530b13bc67e",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690733103372",
            "endTimeUnixNano": "1796047690733324362",
            "durationMs": 0.22099,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveWorktreeT3Home",
            "traceId": "376e23578ef26a3558d8812c8d70b37d",
            "spanId": "c7c0c530b13bc67e",
            "parentSpanId": "e6769195556bdd24",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690733093698",
            "endTimeUnixNano": "1796047690733333145",
            "durationMs": 0.239447,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "376e23578ef26a3558d8812c8d70b37d",
            "spanId": "618583001c66c07f",
            "parentSpanId": "e6769195556bdd24",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690733665772",
            "endTimeUnixNano": "1796047690733790669",
            "durationMs": 0.124897,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n          SELECT t.payload_json, p.workspace_root AS \"workspaceRoot\"\n          FROM orchestration_v2_projection_threads t\n          JOIN projection_projects p ON p.project_id = t.project_id\n         \u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.033,
              "db.client.connection.wait_time_ms": 0.054662
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "BEGIN",
            "traceId": "376e23578ef26a3558d8812c8d70b37d",
            "spanId": "e853a2db98602bc3",
            "parentSpanId": "bb1cadbd2db34c87",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690733925600",
            "endTimeUnixNano": "1796047690733986101",
            "durationMs": 0.060501,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "BEGIN"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "376e23578ef26a3558d8812c8d70b37d",
            "spanId": "fd2dd292491d193d",
            "parentSpanId": "4a8fef4c0f01d8da",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690734084868",
            "endTimeUnixNano": "1796047690734206460",
            "durationMs": 0.121592,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n            SELECT\n              t.thread_id,\n              t.payload_json,\n              t.fork_run_ids_json,\n              CASE\n                WHEN json_extract(t.payload_json, '$.forkedFrom.type'\u2026[truncated]",
              "db.client.connection.wait_time_ms": 0.014903
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "376e23578ef26a3558d8812c8d70b37d",
            "spanId": "d80bbd88f6a1578f",
            "parentSpanId": "4a8fef4c0f01d8da",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690734254922",
            "endTimeUnixNano": "1796047690734325748",
            "durationMs": 0.070826,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n        SELECT MAX(sequence) AS snapshot_sequence\n        FROM orchestration_events\n        WHERE application_event_version = 2\n          AND aggregate_kind = 'thread'\n      ",
              "db.client.connection.wait_time_ms": 0.008994
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readShellSnapshotRows",
            "traceId": "376e23578ef26a3558d8812c8d70b37d",
            "spanId": "4a8fef4c0f01d8da",
            "parentSpanId": "bb1cadbd2db34c87",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690734011399",
            "endTimeUnixNano": "1796047690734342103",
            "durationMs": 0.330704,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "COMMIT",
            "traceId": "376e23578ef26a3558d8812c8d70b37d",
            "spanId": "c889b8ac3309f543",
            "parentSpanId": "bb1cadbd2db34c87",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690734352017",
            "endTimeUnixNano": "1796047690734384035",
            "durationMs": 0.032018,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "COMMIT"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sql.transaction",
            "traceId": "376e23578ef26a3558d8812c8d70b37d",
            "spanId": "bb1cadbd2db34c87",
            "parentSpanId": "b5161413d1493ab1",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690733868525",
            "endTimeUnixNano": "1796047690734409573",
            "durationMs": 0.541048,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.client.connection.wait_time_ms": 0.047481,
              "db.connection": "reader",
              "db.lock_wait_ms": 0.026
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.pendingBackgroundDataByThreadId",
            "traceId": "376e23578ef26a3558d8812c8d70b37d",
            "spanId": "7fd0fcd3aa1d7112",
            "parentSpanId": "475cedc24cdb7e88",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690734458126",
            "endTimeUnixNano": "1796047690734463985",
            "durationMs": 0.005859,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.decodeShellSnapshot",
            "traceId": "376e23578ef26a3558d8812c8d70b37d",
            "spanId": "475cedc24cdb7e88",
            "parentSpanId": "b5161413d1493ab1",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690734442112",
            "endTimeUnixNano": "1796047690734473639",
            "durationMs": 0.031527,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "376e23578ef26a3558d8812c8d70b37d",
            "spanId": "1797df98408bbf92",
            "parentSpanId": "42559a2fce1c649b",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690734516673",
            "endTimeUnixNano": "1796047690734642902",
            "durationMs": 0.126229,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.027,
              "db.client.connection.wait_time_ms": 0.036204
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectStoreV2.listShells",
            "traceId": "376e23578ef26a3558d8812c8d70b37d",
            "spanId": "42559a2fce1c649b",
            "parentSpanId": "b5161413d1493ab1",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690734481791",
            "endTimeUnixNano": "1796047690734737874",
            "durationMs": 0.256083,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.readThreads",
            "traceId": "376e23578ef26a3558d8812c8d70b37d",
            "spanId": "b5161413d1493ab1",
            "parentSpanId": "e6769195556bdd24",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690733834845",
            "endTimeUnixNano": "1796047690734746216",
            "durationMs": 0.911371,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "376e23578ef26a3558d8812c8d70b37d",
            "spanId": "defbaf9301f550c8",
            "parentSpanId": "e6769195556bdd24",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690734773758",
            "endTimeUnixNano": "1796047690734877823",
            "durationMs": 0.104065,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.022,
              "db.client.connection.wait_time_ms": 0.03366
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "376e23578ef26a3558d8812c8d70b37d",
            "spanId": "009128cbe30a3f2d",
            "parentSpanId": "11519e2b88ad4ace",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690734936551",
            "endTimeUnixNano": "1796047690735019204",
            "durationMs": 0.082653,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT DISTINCT json_extract(payload_json, '$.worktreePath') AS \"worktreePath\"\n      FROM orchestration_v2_projection_threads\n      WHERE json_extract(payload_json, '$.worktreePath') IS NOT NUL\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.031,
              "db.client.connection.wait_time_ms": 0.039258
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "376e23578ef26a3558d8812c8d70b37d",
            "spanId": "dfd90755cb1edd02",
            "parentSpanId": "5a20a310934e4588",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690736462601",
            "endTimeUnixNano": "1796047690737778086",
            "durationMs": 1.315485,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "376e23578ef26a3558d8812c8d70b37d",
            "spanId": "5a20a310934e4588",
            "parentSpanId": "17bff0b5fa3ec2df",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690736248150",
            "endTimeUnixNano": "1796047690738527686",
            "durationMs": 2.279536,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "376e23578ef26a3558d8812c8d70b37d",
            "spanId": "17bff0b5fa3ec2df",
            "parentSpanId": "732830e2ada2c24d",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690736214250",
            "endTimeUnixNano": "1796047690738755175",
            "durationMs": 2.540925,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/plain-notes",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "376e23578ef26a3558d8812c8d70b37d",
            "spanId": "3ba6aee85109b11d",
            "parentSpanId": "acd421a0541f543f",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690739016265",
            "endTimeUnixNano": "1796047690740512701",
            "durationMs": 1.496436,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "376e23578ef26a3558d8812c8d70b37d",
            "spanId": "acd421a0541f543f",
            "parentSpanId": "1a05d89d786239cc",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690738837188",
            "endTimeUnixNano": "1796047690741377873",
            "durationMs": 2.540685,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "376e23578ef26a3558d8812c8d70b37d",
            "spanId": "1a05d89d786239cc",
            "parentSpanId": "732830e2ada2c24d",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690738782516",
            "endTimeUnixNano": "1796047690741580206",
            "durationMs": 2.79769,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/plain-notes",
              "git.args_count": 3
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "376e23578ef26a3558d8812c8d70b37d",
            "spanId": "732830e2ada2c24d",
            "parentSpanId": "11519e2b88ad4ace",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690736192737",
            "endTimeUnixNano": "1796047690741659234",
            "durationMs": 5.466497,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Failure",
              "cause": "GitCommandError: Git command failed in GitVcsDriver.listWorktreePaths ($FIXTURE/fx/plain-notes): Git command exited with a non-zero status. (not_a_repository)\n    at file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:1635:11\n    at executeWorktreeList (file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:7803:5)\n    at executeWorktreeList (definition) (file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:1681:38)\n    at StorageCleanup.reportOrphanWorktrees (file://$CHECKOUT/apps/server/src/storageCleanup.ts:1967:12)\n    at StorageCleanup.reportOrphanWorktrees (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:556:40)\n    at StorageCleanup.cleanWorktrees (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2193:37)\n    at StorageCleanup.cleanWorktrees (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:1208:33)\n    at StorageCleanup.sweep (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2293:24)\n    at StorageCleanup.sweep (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2162:24)\n    at DrainableWorker.makeDrainableWorker (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2290:25)\n    at DrainableWorker.makeDrainableWorker (definition) (file://$CHECKOUT/packages/shared/src/DrainableWorker.ts:20:43)"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "376e23578ef26a3558d8812c8d70b37d",
            "spanId": "d9b3f48b8f53b694",
            "parentSpanId": "cbbf09bfc49c0b9c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690742049317",
            "endTimeUnixNano": "1796047690743344812",
            "durationMs": 1.295495,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "376e23578ef26a3558d8812c8d70b37d",
            "spanId": "cbbf09bfc49c0b9c",
            "parentSpanId": "4f6d38eefe5f016c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690741882728",
            "endTimeUnixNano": "1796047690744166389",
            "durationMs": 2.283661,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "376e23578ef26a3558d8812c8d70b37d",
            "spanId": "4f6d38eefe5f016c",
            "parentSpanId": "5344047b1b4e1bb9",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690741835497",
            "endTimeUnixNano": "1796047690744344956",
            "durationMs": 2.509459,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo/packages/app",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "376e23578ef26a3558d8812c8d70b37d",
            "spanId": "5344047b1b4e1bb9",
            "parentSpanId": "11519e2b88ad4ace",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690741816459",
            "endTimeUnixNano": "1796047690744360289",
            "durationMs": 2.54383,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "376e23578ef26a3558d8812c8d70b37d",
            "spanId": "d247b27561267dc5",
            "parentSpanId": "292201a61240db66",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690744593528",
            "endTimeUnixNano": "1796047690746298104",
            "durationMs": 1.704576,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "376e23578ef26a3558d8812c8d70b37d",
            "spanId": "292201a61240db66",
            "parentSpanId": "755df098cb438721",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690744439627",
            "endTimeUnixNano": "1796047690747184959",
            "durationMs": 2.745332,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "376e23578ef26a3558d8812c8d70b37d",
            "spanId": "755df098cb438721",
            "parentSpanId": "99ead0383ac3e9e0",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690744400369",
            "endTimeUnixNano": "1796047690747499188",
            "durationMs": 3.098819,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo-link",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "376e23578ef26a3558d8812c8d70b37d",
            "spanId": "99ead0383ac3e9e0",
            "parentSpanId": "11519e2b88ad4ace",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690744383093",
            "endTimeUnixNano": "1796047690747523044",
            "durationMs": 3.139951,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "376e23578ef26a3558d8812c8d70b37d",
            "spanId": "f457884a81b55635",
            "parentSpanId": "acf79d6747343781",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690747838806",
            "endTimeUnixNano": "1796047690749104647",
            "durationMs": 1.265841,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "376e23578ef26a3558d8812c8d70b37d",
            "spanId": "acf79d6747343781",
            "parentSpanId": "363f3065a7006d37",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690747637124",
            "endTimeUnixNano": "1796047690749944041",
            "durationMs": 2.306917,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "376e23578ef26a3558d8812c8d70b37d",
            "spanId": "363f3065a7006d37",
            "parentSpanId": "f03135c16b41e247",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690747589563",
            "endTimeUnixNano": "1796047690750143409",
            "durationMs": 2.553846,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "376e23578ef26a3558d8812c8d70b37d",
            "spanId": "f03135c16b41e247",
            "parentSpanId": "11519e2b88ad4ace",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690747563194",
            "endTimeUnixNano": "1796047690750160444",
            "durationMs": 2.59725,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "376e23578ef26a3558d8812c8d70b37d",
            "spanId": "33d8a84a2064d722",
            "parentSpanId": "11519e2b88ad4ace",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690750513512",
            "endTimeUnixNano": "1796047690750577597",
            "durationMs": 0.064085,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "376e23578ef26a3558d8812c8d70b37d",
            "spanId": "cec26238f79f77b0",
            "parentSpanId": "11519e2b88ad4ace",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690750708343",
            "endTimeUnixNano": "1796047690750736986",
            "durationMs": 0.028643,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "376e23578ef26a3558d8812c8d70b37d",
            "spanId": "fabdbc5b0f227dd8",
            "parentSpanId": "11519e2b88ad4ace",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690750854461",
            "endTimeUnixNano": "1796047690750879559",
            "durationMs": 0.025098,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "376e23578ef26a3558d8812c8d70b37d",
            "spanId": "b536bb41013f153d",
            "parentSpanId": "11519e2b88ad4ace",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690750979297",
            "endTimeUnixNano": "1796047690750998887",
            "durationMs": 0.01959,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "storageCleanup.measureWorktree",
            "traceId": "376e23578ef26a3558d8812c8d70b37d",
            "spanId": "c52acf117bb77b8f",
            "parentSpanId": "11519e2b88ad4ace",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690751031105",
            "endTimeUnixNano": "1796047690751583941",
            "durationMs": 0.552836,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.reportOrphanWorktrees",
            "traceId": "376e23578ef26a3558d8812c8d70b37d",
            "spanId": "11519e2b88ad4ace",
            "parentSpanId": "e6769195556bdd24",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690734927147",
            "endTimeUnixNano": "1796047690751619454",
            "durationMs": 16.692307,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanWorktrees",
            "traceId": "376e23578ef26a3558d8812c8d70b37d",
            "spanId": "e6769195556bdd24",
            "parentSpanId": "56006ea1b8d3f6e9",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690733061489",
            "endTimeUnixNano": "1796047690751631131",
            "durationMs": 18.569642,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.sweep",
            "traceId": "376e23578ef26a3558d8812c8d70b37d",
            "spanId": "56006ea1b8d3f6e9",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690732559389",
            "endTimeUnixNano": "1796047690751679353",
            "durationMs": 19.119964,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          }
        ]
      },
      {
        "run": 18,
        "warmup": false,
        "elapsedMs": 20.58518300000003,
        "nestedOrphanFound": true,
        "report": {
          "_tag": "Success",
          "value": {
            "trigger": "manual",
            "startedAt": "2026-11-30T14:08:10.752Z",
            "finishedAt": "2026-11-30T14:08:10.772Z",
            "entries": [
              {
                "kind": "worktree",
                "outcome": "kept",
                "reason": "No thread uses this worktree",
                "path": "$FIXTURE/data/worktrees/repository/replay/repo-wt",
                "projectPath": null,
                "threadId": null,
                "threadTitle": null,
                "bytes": 8192,
                "files": null
              }
            ],
            "counts": {
              "removed": 0,
              "kept": 1,
              "failed": 0
            },
            "omittedCount": 0,
            "bytesFreed": 0
          }
        },
        "spans": [
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "3ff1e11fefc34ba7d9d0b06cde948daf",
            "spanId": "83232317ba76543e",
            "parentSpanId": "a8b60738a7db38bb",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690752726017",
            "endTimeUnixNano": "1796047690752910052",
            "durationMs": 0.184035,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      WITH RECURSIVE retained_checkpoint_threads(thread_id) AS (\n        SELECT thread_id FROM orchestration_v2_projection_threads WHERE deleted_at IS NULL\n        UNION\n        SELECT json_extract(t\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.04,
              "db.client.connection.wait_time_ms": 0.063415
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanCheckpointRefs",
            "traceId": "3ff1e11fefc34ba7d9d0b06cde948daf",
            "spanId": "a8b60738a7db38bb",
            "parentSpanId": "ac07d5417c4f294a",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690752710844",
            "endTimeUnixNano": "1796047690752947949",
            "durationMs": 0.237105,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.retryLeftovers",
            "traceId": "3ff1e11fefc34ba7d9d0b06cde948daf",
            "spanId": "164dc93a4f6d1430",
            "parentSpanId": "ac07d5417c4f294a",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690752970152",
            "endTimeUnixNano": "1796047690753072504",
            "durationMs": 0.102352,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveGitWorktreePath",
            "traceId": "3ff1e11fefc34ba7d9d0b06cde948daf",
            "spanId": "0a1cd331f62ebffe",
            "parentSpanId": "611ab877149ae435",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690753115779",
            "endTimeUnixNano": "1796047690753312503",
            "durationMs": 0.196724,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveWorktreeT3Home",
            "traceId": "3ff1e11fefc34ba7d9d0b06cde948daf",
            "spanId": "611ab877149ae435",
            "parentSpanId": "d3accb436ff60fd7",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690753107797",
            "endTimeUnixNano": "1796047690753321336",
            "durationMs": 0.213539,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "3ff1e11fefc34ba7d9d0b06cde948daf",
            "spanId": "57920b215d2da807",
            "parentSpanId": "d3accb436ff60fd7",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690753567003",
            "endTimeUnixNano": "1796047690753673152",
            "durationMs": 0.106149,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n          SELECT t.payload_json, p.workspace_root AS \"workspaceRoot\"\n          FROM orchestration_v2_projection_threads t\n          JOIN projection_projects p ON p.project_id = t.project_id\n         \u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.032,
              "db.client.connection.wait_time_ms": 0.052749
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "BEGIN",
            "traceId": "3ff1e11fefc34ba7d9d0b06cde948daf",
            "spanId": "ae731e96f27624a7",
            "parentSpanId": "09dda54ced894122",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690753796606",
            "endTimeUnixNano": "1796047690753841704",
            "durationMs": 0.045098,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "BEGIN"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "3ff1e11fefc34ba7d9d0b06cde948daf",
            "spanId": "8423978016d1e9c3",
            "parentSpanId": "16cd1699da442c93",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690753936225",
            "endTimeUnixNano": "1796047690754035363",
            "durationMs": 0.099138,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n            SELECT\n              t.thread_id,\n              t.payload_json,\n              t.fork_run_ids_json,\n              CASE\n                WHEN json_extract(t.payload_json, '$.forkedFrom.type'\u2026[truncated]",
              "db.client.connection.wait_time_ms": 0.014251
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "3ff1e11fefc34ba7d9d0b06cde948daf",
            "spanId": "9d024ee86d974a34",
            "parentSpanId": "16cd1699da442c93",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690754074271",
            "endTimeUnixNano": "1796047690754117666",
            "durationMs": 0.043395,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n        SELECT MAX(sequence) AS snapshot_sequence\n        FROM orchestration_events\n        WHERE application_event_version = 2\n          AND aggregate_kind = 'thread'\n      ",
              "db.client.connection.wait_time_ms": 0.00666
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readShellSnapshotRows",
            "traceId": "3ff1e11fefc34ba7d9d0b06cde948daf",
            "spanId": "16cd1699da442c93",
            "parentSpanId": "09dda54ced894122",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690753864568",
            "endTimeUnixNano": "1796047690754129604",
            "durationMs": 0.265036,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "COMMIT",
            "traceId": "3ff1e11fefc34ba7d9d0b06cde948daf",
            "spanId": "a6fe9c54e9b6395f",
            "parentSpanId": "09dda54ced894122",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690754139078",
            "endTimeUnixNano": "1796047690754161191",
            "durationMs": 0.022113,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "COMMIT"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sql.transaction",
            "traceId": "3ff1e11fefc34ba7d9d0b06cde948daf",
            "spanId": "09dda54ced894122",
            "parentSpanId": "bb96c7938b3afd95",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690753743447",
            "endTimeUnixNano": "1796047690754184796",
            "durationMs": 0.441349,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.client.connection.wait_time_ms": 0.044647,
              "db.connection": "reader",
              "db.lock_wait_ms": 0.024
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.pendingBackgroundDataByThreadId",
            "traceId": "3ff1e11fefc34ba7d9d0b06cde948daf",
            "spanId": "b13f6288206f32f3",
            "parentSpanId": "b3e3bcde1a5c931f",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690754226499",
            "endTimeUnixNano": "1796047690754232077",
            "durationMs": 0.005578,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.decodeShellSnapshot",
            "traceId": "3ff1e11fefc34ba7d9d0b06cde948daf",
            "spanId": "b3e3bcde1a5c931f",
            "parentSpanId": "bb96c7938b3afd95",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690754212157",
            "endTimeUnixNano": "1796047690754242372",
            "durationMs": 0.030215,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "3ff1e11fefc34ba7d9d0b06cde948daf",
            "spanId": "eccad5ed530b57fa",
            "parentSpanId": "2539969c9b0f356c",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690754315241",
            "endTimeUnixNano": "1796047690754576381",
            "durationMs": 0.26114,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.027,
              "db.client.connection.wait_time_ms": 0.038317
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectStoreV2.listShells",
            "traceId": "3ff1e11fefc34ba7d9d0b06cde948daf",
            "spanId": "2539969c9b0f356c",
            "parentSpanId": "bb96c7938b3afd95",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690754281180",
            "endTimeUnixNano": "1796047690754661629",
            "durationMs": 0.380449,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.readThreads",
            "traceId": "3ff1e11fefc34ba7d9d0b06cde948daf",
            "spanId": "bb96c7938b3afd95",
            "parentSpanId": "d3accb436ff60fd7",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690753713122",
            "endTimeUnixNano": "1796047690754670462",
            "durationMs": 0.95734,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "3ff1e11fefc34ba7d9d0b06cde948daf",
            "spanId": "48913d3b5d14744e",
            "parentSpanId": "d3accb436ff60fd7",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690754700166",
            "endTimeUnixNano": "1796047690754822198",
            "durationMs": 0.122032,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.022,
              "db.client.connection.wait_time_ms": 0.035423
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "3ff1e11fefc34ba7d9d0b06cde948daf",
            "spanId": "76efed36136b51ff",
            "parentSpanId": "8a17c4ad63dc7772",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690754905323",
            "endTimeUnixNano": "1796047690755008637",
            "durationMs": 0.103314,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT DISTINCT json_extract(payload_json, '$.worktreePath') AS \"worktreePath\"\n      FROM orchestration_v2_projection_threads\n      WHERE json_extract(payload_json, '$.worktreePath') IS NOT NUL\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.037,
              "db.client.connection.wait_time_ms": 0.04718
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "3ff1e11fefc34ba7d9d0b06cde948daf",
            "spanId": "27844e605e20feda",
            "parentSpanId": "26e3630b7e760381",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690756314718",
            "endTimeUnixNano": "1796047690758011834",
            "durationMs": 1.697116,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "3ff1e11fefc34ba7d9d0b06cde948daf",
            "spanId": "26e3630b7e760381",
            "parentSpanId": "70837b35e96d4d36",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690756113778",
            "endTimeUnixNano": "1796047690759135632",
            "durationMs": 3.021854,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "3ff1e11fefc34ba7d9d0b06cde948daf",
            "spanId": "70837b35e96d4d36",
            "parentSpanId": "5519d4792a9fb191",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690756066207",
            "endTimeUnixNano": "1796047690759352617",
            "durationMs": 3.28641,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/plain-notes",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "3ff1e11fefc34ba7d9d0b06cde948daf",
            "spanId": "63d42d3716b19547",
            "parentSpanId": "20a00879614e9cab",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690759600367",
            "endTimeUnixNano": "1796047690761096171",
            "durationMs": 1.495804,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "3ff1e11fefc34ba7d9d0b06cde948daf",
            "spanId": "20a00879614e9cab",
            "parentSpanId": "47bc20662954c880",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690759423833",
            "endTimeUnixNano": "1796047690761931910",
            "durationMs": 2.508077,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "3ff1e11fefc34ba7d9d0b06cde948daf",
            "spanId": "47bc20662954c880",
            "parentSpanId": "5519d4792a9fb191",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690759382041",
            "endTimeUnixNano": "1796047690762105970",
            "durationMs": 2.723929,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/plain-notes",
              "git.args_count": 3
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "3ff1e11fefc34ba7d9d0b06cde948daf",
            "spanId": "5519d4792a9fb191",
            "parentSpanId": "8a17c4ad63dc7772",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690756041450",
            "endTimeUnixNano": "1796047690762172369",
            "durationMs": 6.130919,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Failure",
              "cause": "GitCommandError: Git command failed in GitVcsDriver.listWorktreePaths ($FIXTURE/fx/plain-notes): Git command exited with a non-zero status. (not_a_repository)\n    at file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:1635:11\n    at executeWorktreeList (file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:7803:5)\n    at executeWorktreeList (definition) (file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:1681:38)\n    at StorageCleanup.reportOrphanWorktrees (file://$CHECKOUT/apps/server/src/storageCleanup.ts:1967:12)\n    at StorageCleanup.reportOrphanWorktrees (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:556:40)\n    at StorageCleanup.cleanWorktrees (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2193:37)\n    at StorageCleanup.cleanWorktrees (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:1208:33)\n    at StorageCleanup.sweep (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2293:24)\n    at StorageCleanup.sweep (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2162:24)\n    at DrainableWorker.makeDrainableWorker (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2290:25)\n    at DrainableWorker.makeDrainableWorker (definition) (file://$CHECKOUT/packages/shared/src/DrainableWorker.ts:20:43)"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "3ff1e11fefc34ba7d9d0b06cde948daf",
            "spanId": "e8425e27ba072d7a",
            "parentSpanId": "5526d4856b13f269",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690762567640",
            "endTimeUnixNano": "1796047690763838618",
            "durationMs": 1.270978,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "3ff1e11fefc34ba7d9d0b06cde948daf",
            "spanId": "5526d4856b13f269",
            "parentSpanId": "7b105ac795aea544",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690762396925",
            "endTimeUnixNano": "1796047690764804962",
            "durationMs": 2.408037,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "3ff1e11fefc34ba7d9d0b06cde948daf",
            "spanId": "7b105ac795aea544",
            "parentSpanId": "e84a62184759f4f3",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690762358858",
            "endTimeUnixNano": "1796047690764982337",
            "durationMs": 2.623479,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo/packages/app",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "3ff1e11fefc34ba7d9d0b06cde948daf",
            "spanId": "e84a62184759f4f3",
            "parentSpanId": "8a17c4ad63dc7772",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690762338277",
            "endTimeUnixNano": "1796047690764997349",
            "durationMs": 2.659072,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "3ff1e11fefc34ba7d9d0b06cde948daf",
            "spanId": "db0f0e5f8858978f",
            "parentSpanId": "2fb4eb74bac98753",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690765232621",
            "endTimeUnixNano": "1796047690766910898",
            "durationMs": 1.678277,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "3ff1e11fefc34ba7d9d0b06cde948daf",
            "spanId": "2fb4eb74bac98753",
            "parentSpanId": "b92e53c6aad798ae",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690765072532",
            "endTimeUnixNano": "1796047690767711164",
            "durationMs": 2.638632,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "3ff1e11fefc34ba7d9d0b06cde948daf",
            "spanId": "b92e53c6aad798ae",
            "parentSpanId": "0eaea8716527379a",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690765038661",
            "endTimeUnixNano": "1796047690767881338",
            "durationMs": 2.842677,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo-link",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "3ff1e11fefc34ba7d9d0b06cde948daf",
            "spanId": "0eaea8716527379a",
            "parentSpanId": "8a17c4ad63dc7772",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690765021025",
            "endTimeUnixNano": "1796047690767897912",
            "durationMs": 2.876887,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "3ff1e11fefc34ba7d9d0b06cde948daf",
            "spanId": "8471da797b3c890e",
            "parentSpanId": "c0f0606680b98b94",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690768143890",
            "endTimeUnixNano": "1796047690769639875",
            "durationMs": 1.495985,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "3ff1e11fefc34ba7d9d0b06cde948daf",
            "spanId": "c0f0606680b98b94",
            "parentSpanId": "1a292d65f61999d9",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690767971142",
            "endTimeUnixNano": "1796047690770529274",
            "durationMs": 2.558132,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "3ff1e11fefc34ba7d9d0b06cde948daf",
            "spanId": "1a292d65f61999d9",
            "parentSpanId": "1bf558c1fb06f281",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690767936661",
            "endTimeUnixNano": "1796047690770702102",
            "durationMs": 2.765441,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "3ff1e11fefc34ba7d9d0b06cde948daf",
            "spanId": "1bf558c1fb06f281",
            "parentSpanId": "8a17c4ad63dc7772",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690767919275",
            "endTimeUnixNano": "1796047690770717555",
            "durationMs": 2.79828,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "3ff1e11fefc34ba7d9d0b06cde948daf",
            "spanId": "dbb0c6466db28be4",
            "parentSpanId": "8a17c4ad63dc7772",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690771034889",
            "endTimeUnixNano": "1796047690771084163",
            "durationMs": 0.049274,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "3ff1e11fefc34ba7d9d0b06cde948daf",
            "spanId": "aacd2455f9ef8c99",
            "parentSpanId": "8a17c4ad63dc7772",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690771232725",
            "endTimeUnixNano": "1796047690771260426",
            "durationMs": 0.027701,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "3ff1e11fefc34ba7d9d0b06cde948daf",
            "spanId": "2c80043cda2fa4ce",
            "parentSpanId": "8a17c4ad63dc7772",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690771396699",
            "endTimeUnixNano": "1796047690771442648",
            "durationMs": 0.045949,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "3ff1e11fefc34ba7d9d0b06cde948daf",
            "spanId": "912c6bc864d975e2",
            "parentSpanId": "8a17c4ad63dc7772",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690771547275",
            "endTimeUnixNano": "1796047690771572823",
            "durationMs": 0.025548,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "storageCleanup.measureWorktree",
            "traceId": "3ff1e11fefc34ba7d9d0b06cde948daf",
            "spanId": "328af92158d67b15",
            "parentSpanId": "8a17c4ad63dc7772",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690771608015",
            "endTimeUnixNano": "1796047690772224486",
            "durationMs": 0.616471,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.reportOrphanWorktrees",
            "traceId": "3ff1e11fefc34ba7d9d0b06cde948daf",
            "spanId": "8a17c4ad63dc7772",
            "parentSpanId": "d3accb436ff60fd7",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690754894466",
            "endTimeUnixNano": "1796047690772259619",
            "durationMs": 17.365153,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanWorktrees",
            "traceId": "3ff1e11fefc34ba7d9d0b06cde948daf",
            "spanId": "d3accb436ff60fd7",
            "parentSpanId": "ac07d5417c4f294a",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690753086375",
            "endTimeUnixNano": "1796047690772279218",
            "durationMs": 19.192843,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.sweep",
            "traceId": "3ff1e11fefc34ba7d9d0b06cde948daf",
            "spanId": "ac07d5417c4f294a",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690752684635",
            "endTimeUnixNano": "1796047690772322853",
            "durationMs": 19.638218,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          }
        ]
      },
      {
        "run": 19,
        "warmup": false,
        "elapsedMs": 19.364678999999967,
        "nestedOrphanFound": true,
        "report": {
          "_tag": "Success",
          "value": {
            "trigger": "manual",
            "startedAt": "2026-11-30T14:08:10.773Z",
            "finishedAt": "2026-11-30T14:08:10.791Z",
            "entries": [
              {
                "kind": "worktree",
                "outcome": "kept",
                "reason": "No thread uses this worktree",
                "path": "$FIXTURE/data/worktrees/repository/replay/repo-wt",
                "projectPath": null,
                "threadId": null,
                "threadTitle": null,
                "bytes": 8192,
                "files": null
              }
            ],
            "counts": {
              "removed": 0,
              "kept": 1,
              "failed": 0
            },
            "omittedCount": 0,
            "bytesFreed": 0
          }
        },
        "spans": [
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "75a3aed9773e381f0099be02e67b3f42",
            "spanId": "a45dc6ea0b76d735",
            "parentSpanId": "c83f98c135f32576",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690773304550",
            "endTimeUnixNano": "1796047690773524799",
            "durationMs": 0.220249,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      WITH RECURSIVE retained_checkpoint_threads(thread_id) AS (\n        SELECT thread_id FROM orchestration_v2_projection_threads WHERE deleted_at IS NULL\n        UNION\n        SELECT json_extract(t\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.038,
              "db.client.connection.wait_time_ms": 0.07389
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanCheckpointRefs",
            "traceId": "75a3aed9773e381f0099be02e67b3f42",
            "spanId": "c83f98c135f32576",
            "parentSpanId": "caf580e0ede35727",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690773290859",
            "endTimeUnixNano": "1796047690773560222",
            "durationMs": 0.269363,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.retryLeftovers",
            "traceId": "75a3aed9773e381f0099be02e67b3f42",
            "spanId": "3894c222e48117b2",
            "parentSpanId": "caf580e0ede35727",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690773594092",
            "endTimeUnixNano": "1796047690773672820",
            "durationMs": 0.078728,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveGitWorktreePath",
            "traceId": "75a3aed9773e381f0099be02e67b3f42",
            "spanId": "1bcfcae98bdc214f",
            "parentSpanId": "d65aa39927add9d9",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690773713951",
            "endTimeUnixNano": "1796047690773913710",
            "durationMs": 0.199759,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveWorktreeT3Home",
            "traceId": "75a3aed9773e381f0099be02e67b3f42",
            "spanId": "d65aa39927add9d9",
            "parentSpanId": "08239db993883d20",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690773704337",
            "endTimeUnixNano": "1796047690773924396",
            "durationMs": 0.220059,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "75a3aed9773e381f0099be02e67b3f42",
            "spanId": "256d894222bcd94d",
            "parentSpanId": "08239db993883d20",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690774160568",
            "endTimeUnixNano": "1796047690774322230",
            "durationMs": 0.161662,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n          SELECT t.payload_json, p.workspace_root AS \"workspaceRoot\"\n          FROM orchestration_v2_projection_threads t\n          JOIN projection_projects p ON p.project_id = t.project_id\n         \u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.042,
              "db.client.connection.wait_time_ms": 0.068903
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "BEGIN",
            "traceId": "75a3aed9773e381f0099be02e67b3f42",
            "spanId": "bef42b8aaa8babab",
            "parentSpanId": "c2fd1d7cbd0e9cef",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690774479525",
            "endTimeUnixNano": "1796047690774556109",
            "durationMs": 0.076584,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "BEGIN"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "75a3aed9773e381f0099be02e67b3f42",
            "spanId": "616924cb8dc7eedb",
            "parentSpanId": "6271374e65c1d4a3",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690774651993",
            "endTimeUnixNano": "1796047690774774886",
            "durationMs": 0.122893,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n            SELECT\n              t.thread_id,\n              t.payload_json,\n              t.fork_run_ids_json,\n              CASE\n                WHEN json_extract(t.payload_json, '$.forkedFrom.type'\u2026[truncated]",
              "db.client.connection.wait_time_ms": 0.015172
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "75a3aed9773e381f0099be02e67b3f42",
            "spanId": "266d2bdcb22d032e",
            "parentSpanId": "6271374e65c1d4a3",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690774803619",
            "endTimeUnixNano": "1796047690774865251",
            "durationMs": 0.061632,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n        SELECT MAX(sequence) AS snapshot_sequence\n        FROM orchestration_events\n        WHERE application_event_version = 2\n          AND aggregate_kind = 'thread'\n      ",
              "db.client.connection.wait_time_ms": 0.007942
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readShellSnapshotRows",
            "traceId": "75a3aed9773e381f0099be02e67b3f42",
            "spanId": "6271374e65c1d4a3",
            "parentSpanId": "c2fd1d7cbd0e9cef",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690774580916",
            "endTimeUnixNano": "1796047690774878341",
            "durationMs": 0.297425,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "COMMIT",
            "traceId": "75a3aed9773e381f0099be02e67b3f42",
            "spanId": "2fbf56a7792a6bc7",
            "parentSpanId": "c2fd1d7cbd0e9cef",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690774888386",
            "endTimeUnixNano": "1796047690774922958",
            "durationMs": 0.034572,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "COMMIT"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sql.transaction",
            "traceId": "75a3aed9773e381f0099be02e67b3f42",
            "spanId": "c2fd1d7cbd0e9cef",
            "parentSpanId": "117aa6588e55f740",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690774404703",
            "endTimeUnixNano": "1796047690774947444",
            "durationMs": 0.542741,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.client.connection.wait_time_ms": 0.06717,
              "db.connection": "reader",
              "db.lock_wait_ms": 0.048
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.pendingBackgroundDataByThreadId",
            "traceId": "75a3aed9773e381f0099be02e67b3f42",
            "spanId": "1e609aa5a1854796",
            "parentSpanId": "3e5541d6302410d5",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690774987684",
            "endTimeUnixNano": "1796047690774992962",
            "durationMs": 0.005278,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.decodeShellSnapshot",
            "traceId": "75a3aed9773e381f0099be02e67b3f42",
            "spanId": "3e5541d6302410d5",
            "parentSpanId": "117aa6588e55f740",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690774973834",
            "endTimeUnixNano": "1796047690775001485",
            "durationMs": 0.027651,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "75a3aed9773e381f0099be02e67b3f42",
            "spanId": "7f1578efa9edab4a",
            "parentSpanId": "32753da239df6db2",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690775038881",
            "endTimeUnixNano": "1796047690775166221",
            "durationMs": 0.12734,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.027,
              "db.client.connection.wait_time_ms": 0.036985
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectStoreV2.listShells",
            "traceId": "75a3aed9773e381f0099be02e67b3f42",
            "spanId": "32753da239df6db2",
            "parentSpanId": "117aa6588e55f740",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690775010738",
            "endTimeUnixNano": "1796047690775235404",
            "durationMs": 0.224666,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.readThreads",
            "traceId": "75a3aed9773e381f0099be02e67b3f42",
            "spanId": "117aa6588e55f740",
            "parentSpanId": "08239db993883d20",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690774372946",
            "endTimeUnixNano": "1796047690775243847",
            "durationMs": 0.870901,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "75a3aed9773e381f0099be02e67b3f42",
            "spanId": "064e6dc8ee74bb1c",
            "parentSpanId": "08239db993883d20",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690775286110",
            "endTimeUnixNano": "1796047690775411597",
            "durationMs": 0.125487,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.029,
              "db.client.connection.wait_time_ms": 0.046079
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "75a3aed9773e381f0099be02e67b3f42",
            "spanId": "6a5652ac19da99cb",
            "parentSpanId": "2a6b53753ada1ffe",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690775480230",
            "endTimeUnixNano": "1796047690775638466",
            "durationMs": 0.158236,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT DISTINCT json_extract(payload_json, '$.worktreePath') AS \"worktreePath\"\n      FROM orchestration_v2_projection_threads\n      WHERE json_extract(payload_json, '$.worktreePath') IS NOT NUL\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.035,
              "db.client.connection.wait_time_ms": 0.043936
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "75a3aed9773e381f0099be02e67b3f42",
            "spanId": "c7aeab88549fb0af",
            "parentSpanId": "86d7aa448a61d477",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690776954643",
            "endTimeUnixNano": "1796047690778584888",
            "durationMs": 1.630245,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "75a3aed9773e381f0099be02e67b3f42",
            "spanId": "86d7aa448a61d477",
            "parentSpanId": "cbca4957b43c7ac1",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690776764619",
            "endTimeUnixNano": "1796047690779348930",
            "durationMs": 2.584311,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "75a3aed9773e381f0099be02e67b3f42",
            "spanId": "cbca4957b43c7ac1",
            "parentSpanId": "c116c7a7b8aa55e1",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690776727744",
            "endTimeUnixNano": "1796047690779535408",
            "durationMs": 2.807664,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/plain-notes",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "75a3aed9773e381f0099be02e67b3f42",
            "spanId": "35d821395321a83d",
            "parentSpanId": "30921b8e03a7cf0f",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690779751521",
            "endTimeUnixNano": "1796047690781211682",
            "durationMs": 1.460161,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "75a3aed9773e381f0099be02e67b3f42",
            "spanId": "30921b8e03a7cf0f",
            "parentSpanId": "570fe1f7c45ac584",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690779600806",
            "endTimeUnixNano": "1796047690781958558",
            "durationMs": 2.357752,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "75a3aed9773e381f0099be02e67b3f42",
            "spanId": "570fe1f7c45ac584",
            "parentSpanId": "c116c7a7b8aa55e1",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690779560035",
            "endTimeUnixNano": "1796047690782133009",
            "durationMs": 2.572974,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/plain-notes",
              "git.args_count": 3
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "75a3aed9773e381f0099be02e67b3f42",
            "spanId": "c116c7a7b8aa55e1",
            "parentSpanId": "2a6b53753ada1ffe",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690776707764",
            "endTimeUnixNano": "1796047690782197024",
            "durationMs": 5.48926,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Failure",
              "cause": "GitCommandError: Git command failed in GitVcsDriver.listWorktreePaths ($FIXTURE/fx/plain-notes): Git command exited with a non-zero status. (not_a_repository)\n    at file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:1635:11\n    at executeWorktreeList (file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:7803:5)\n    at executeWorktreeList (definition) (file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:1681:38)\n    at StorageCleanup.reportOrphanWorktrees (file://$CHECKOUT/apps/server/src/storageCleanup.ts:1967:12)\n    at StorageCleanup.reportOrphanWorktrees (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:556:40)\n    at StorageCleanup.cleanWorktrees (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2193:37)\n    at StorageCleanup.cleanWorktrees (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:1208:33)\n    at StorageCleanup.sweep (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2293:24)\n    at StorageCleanup.sweep (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2162:24)\n    at DrainableWorker.makeDrainableWorker (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2290:25)\n    at DrainableWorker.makeDrainableWorker (definition) (file://$CHECKOUT/packages/shared/src/DrainableWorker.ts:20:43)"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "75a3aed9773e381f0099be02e67b3f42",
            "spanId": "f49da5b272f0b107",
            "parentSpanId": "308913bafdba3607",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690782572005",
            "endTimeUnixNano": "1796047690783970734",
            "durationMs": 1.398729,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "75a3aed9773e381f0099be02e67b3f42",
            "spanId": "308913bafdba3607",
            "parentSpanId": "bd245cebcec1a69a",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690782415561",
            "endTimeUnixNano": "1796047690784865060",
            "durationMs": 2.449499,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "75a3aed9773e381f0099be02e67b3f42",
            "spanId": "bd245cebcec1a69a",
            "parentSpanId": "0dbd2e613f7ce306",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690782377294",
            "endTimeUnixNano": "1796047690785061223",
            "durationMs": 2.683929,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo/packages/app",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "75a3aed9773e381f0099be02e67b3f42",
            "spanId": "0dbd2e613f7ce306",
            "parentSpanId": "2a6b53753ada1ffe",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690782357805",
            "endTimeUnixNano": "1796047690785079701",
            "durationMs": 2.721896,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "75a3aed9773e381f0099be02e67b3f42",
            "spanId": "35c429e199a881d6",
            "parentSpanId": "60cbf5fa88322841",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690785316525",
            "endTimeUnixNano": "1796047690786693552",
            "durationMs": 1.377027,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "75a3aed9773e381f0099be02e67b3f42",
            "spanId": "60cbf5fa88322841",
            "parentSpanId": "93e47ba7f9ff9645",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690785155444",
            "endTimeUnixNano": "1796047690787477783",
            "durationMs": 2.322339,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "75a3aed9773e381f0099be02e67b3f42",
            "spanId": "93e47ba7f9ff9645",
            "parentSpanId": "4fc2042a37704bc8",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690785120101",
            "endTimeUnixNano": "1796047690787652204",
            "durationMs": 2.532103,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo-link",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "75a3aed9773e381f0099be02e67b3f42",
            "spanId": "4fc2042a37704bc8",
            "parentSpanId": "2a6b53753ada1ffe",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690785101604",
            "endTimeUnixNano": "1796047690787667497",
            "durationMs": 2.565893,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "75a3aed9773e381f0099be02e67b3f42",
            "spanId": "5062c104fe520bf0",
            "parentSpanId": "93c59c1d597ef591",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690787881977",
            "endTimeUnixNano": "1796047690789285955",
            "durationMs": 1.403978,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "75a3aed9773e381f0099be02e67b3f42",
            "spanId": "93c59c1d597ef591",
            "parentSpanId": "1b5023c091fb34ec",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690787741888",
            "endTimeUnixNano": "1796047690790044408",
            "durationMs": 2.30252,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "75a3aed9773e381f0099be02e67b3f42",
            "spanId": "1b5023c091fb34ec",
            "parentSpanId": "002880e63b1a9055",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690787707757",
            "endTimeUnixNano": "1796047690790211307",
            "durationMs": 2.50355,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "75a3aed9773e381f0099be02e67b3f42",
            "spanId": "002880e63b1a9055",
            "parentSpanId": "2a6b53753ada1ffe",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690787691382",
            "endTimeUnixNano": "1796047690790226089",
            "durationMs": 2.534707,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "75a3aed9773e381f0099be02e67b3f42",
            "spanId": "8d0e2e410bfe2709",
            "parentSpanId": "2a6b53753ada1ffe",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690790558165",
            "endTimeUnixNano": "1796047690790603243",
            "durationMs": 0.045078,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "75a3aed9773e381f0099be02e67b3f42",
            "spanId": "b40e3875ead5dc89",
            "parentSpanId": "2a6b53753ada1ffe",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690790735170",
            "endTimeUnixNano": "1796047690790759857",
            "durationMs": 0.024687,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "75a3aed9773e381f0099be02e67b3f42",
            "spanId": "8ab1c0e721fd910c",
            "parentSpanId": "2a6b53753ada1ffe",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690790881548",
            "endTimeUnixNano": "1796047690790908298",
            "durationMs": 0.02675,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "75a3aed9773e381f0099be02e67b3f42",
            "spanId": "062260a2e7bce5f9",
            "parentSpanId": "2a6b53753ada1ffe",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690790993235",
            "endTimeUnixNano": "1796047690791023040",
            "durationMs": 0.029805,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "storageCleanup.measureWorktree",
            "traceId": "75a3aed9773e381f0099be02e67b3f42",
            "spanId": "fd12b22b442ae39e",
            "parentSpanId": "2a6b53753ada1ffe",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690791057361",
            "endTimeUnixNano": "1796047690791632300",
            "durationMs": 0.574939,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.reportOrphanWorktrees",
            "traceId": "75a3aed9773e381f0099be02e67b3f42",
            "spanId": "2a6b53753ada1ffe",
            "parentSpanId": "08239db993883d20",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690775471357",
            "endTimeUnixNano": "1796047690791672430",
            "durationMs": 16.201073,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanWorktrees",
            "traceId": "75a3aed9773e381f0099be02e67b3f42",
            "spanId": "08239db993883d20",
            "parentSpanId": "caf580e0ede35727",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690773685799",
            "endTimeUnixNano": "1796047690791682405",
            "durationMs": 17.996606,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.sweep",
            "traceId": "75a3aed9773e381f0099be02e67b3f42",
            "spanId": "caf580e0ede35727",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690773253423",
            "endTimeUnixNano": "1796047690791721884",
            "durationMs": 18.468461,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          }
        ]
      },
      {
        "run": 20,
        "warmup": false,
        "elapsedMs": 20.130633999999986,
        "nestedOrphanFound": true,
        "report": {
          "_tag": "Success",
          "value": {
            "trigger": "manual",
            "startedAt": "2026-11-30T14:08:10.792Z",
            "finishedAt": "2026-11-30T14:08:10.811Z",
            "entries": [
              {
                "kind": "worktree",
                "outcome": "kept",
                "reason": "No thread uses this worktree",
                "path": "$FIXTURE/data/worktrees/repository/replay/repo-wt",
                "projectPath": null,
                "threadId": null,
                "threadTitle": null,
                "bytes": 8192,
                "files": null
              }
            ],
            "counts": {
              "removed": 0,
              "kept": 1,
              "failed": 0
            },
            "omittedCount": 0,
            "bytesFreed": 0
          }
        },
        "spans": [
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "229ababc2b1bd282bab544e4beb1409c",
            "spanId": "195d211b92b4f484",
            "parentSpanId": "8beb27f03b60bae3",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690792639705",
            "endTimeUnixNano": "1796047690792866754",
            "durationMs": 0.227049,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      WITH RECURSIVE retained_checkpoint_threads(thread_id) AS (\n        SELECT thread_id FROM orchestration_v2_projection_threads WHERE deleted_at IS NULL\n        UNION\n        SELECT json_extract(t\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.034,
              "db.client.connection.wait_time_ms": 0.048993
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanCheckpointRefs",
            "traceId": "229ababc2b1bd282bab544e4beb1409c",
            "spanId": "8beb27f03b60bae3",
            "parentSpanId": "7898c06ab5dbe036",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690792628548",
            "endTimeUnixNano": "1796047690792901296",
            "durationMs": 0.272748,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.retryLeftovers",
            "traceId": "229ababc2b1bd282bab544e4beb1409c",
            "spanId": "28974f1ef88370dc",
            "parentSpanId": "7898c06ab5dbe036",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690792919653",
            "endTimeUnixNano": "1796047690793014865",
            "durationMs": 0.095212,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveGitWorktreePath",
            "traceId": "229ababc2b1bd282bab544e4beb1409c",
            "spanId": "e3605f2928562cd4",
            "parentSpanId": "fbdab2b68bf5f1f2",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690793055396",
            "endTimeUnixNano": "1796047690793246441",
            "durationMs": 0.191045,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveWorktreeT3Home",
            "traceId": "229ababc2b1bd282bab544e4beb1409c",
            "spanId": "fbdab2b68bf5f1f2",
            "parentSpanId": "018f2b7a66cf60bb",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690793048215",
            "endTimeUnixNano": "1796047690793254173",
            "durationMs": 0.205958,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "229ababc2b1bd282bab544e4beb1409c",
            "spanId": "949abd0c5455304f",
            "parentSpanId": "018f2b7a66cf60bb",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690793522734",
            "endTimeUnixNano": "1796047690793634731",
            "durationMs": 0.111997,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n          SELECT t.payload_json, p.workspace_root AS \"workspaceRoot\"\n          FROM orchestration_v2_projection_threads t\n          JOIN projection_projects p ON p.project_id = t.project_id\n         \u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.03,
              "db.client.connection.wait_time_ms": 0.048202
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "BEGIN",
            "traceId": "229ababc2b1bd282bab544e4beb1409c",
            "spanId": "08b4c79b854be6d4",
            "parentSpanId": "57f03e880dc1b3d7",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690793751115",
            "endTimeUnixNano": "1796047690793804235",
            "durationMs": 0.05312,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "BEGIN"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "229ababc2b1bd282bab544e4beb1409c",
            "spanId": "d0d54a9e79278a3a",
            "parentSpanId": "3aec6e7e5cabffae",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690793893478",
            "endTimeUnixNano": "1796047690794000908",
            "durationMs": 0.10743,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n            SELECT\n              t.thread_id,\n              t.payload_json,\n              t.fork_run_ids_json,\n              CASE\n                WHEN json_extract(t.payload_json, '$.forkedFrom.type'\u2026[truncated]",
              "db.client.connection.wait_time_ms": 0.012719
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "229ababc2b1bd282bab544e4beb1409c",
            "spanId": "911b3051d71d327d",
            "parentSpanId": "3aec6e7e5cabffae",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690794038955",
            "endTimeUnixNano": "1796047690794096792",
            "durationMs": 0.057837,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n        SELECT MAX(sequence) AS snapshot_sequence\n        FROM orchestration_events\n        WHERE application_event_version = 2\n          AND aggregate_kind = 'thread'\n      ",
              "db.client.connection.wait_time_ms": 0.007211
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readShellSnapshotRows",
            "traceId": "229ababc2b1bd282bab544e4beb1409c",
            "spanId": "3aec6e7e5cabffae",
            "parentSpanId": "57f03e880dc1b3d7",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690793825436",
            "endTimeUnixNano": "1796047690794108930",
            "durationMs": 0.283494,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "COMMIT",
            "traceId": "229ababc2b1bd282bab544e4beb1409c",
            "spanId": "35a4075d6fa29622",
            "parentSpanId": "57f03e880dc1b3d7",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690794116882",
            "endTimeUnixNano": "1796047690794150382",
            "durationMs": 0.0335,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "COMMIT"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sql.transaction",
            "traceId": "229ababc2b1bd282bab544e4beb1409c",
            "spanId": "57f03e880dc1b3d7",
            "parentSpanId": "9303a5a72e99045f",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690793702332",
            "endTimeUnixNano": "1796047690794172395",
            "durationMs": 0.470063,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.client.connection.wait_time_ms": 0.041893,
              "db.connection": "reader",
              "db.lock_wait_ms": 0.022
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.pendingBackgroundDataByThreadId",
            "traceId": "229ababc2b1bd282bab544e4beb1409c",
            "spanId": "0be34ce3ab79cffb",
            "parentSpanId": "207a41b57a3d9a6f",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690794209720",
            "endTimeUnixNano": "1796047690794214628",
            "durationMs": 0.004908,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.decodeShellSnapshot",
            "traceId": "229ababc2b1bd282bab544e4beb1409c",
            "spanId": "207a41b57a3d9a6f",
            "parentSpanId": "9303a5a72e99045f",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690794195819",
            "endTimeUnixNano": "1796047690794223451",
            "durationMs": 0.027632,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "229ababc2b1bd282bab544e4beb1409c",
            "spanId": "0dbeabc77f1eae44",
            "parentSpanId": "3d82564350de128a",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690794255048",
            "endTimeUnixNano": "1796047690794380796",
            "durationMs": 0.125748,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.035,
              "db.client.connection.wait_time_ms": 0.045268
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectStoreV2.listShells",
            "traceId": "229ababc2b1bd282bab544e4beb1409c",
            "spanId": "3d82564350de128a",
            "parentSpanId": "9303a5a72e99045f",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690794231553",
            "endTimeUnixNano": "1796047690794448417",
            "durationMs": 0.216864,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.readThreads",
            "traceId": "229ababc2b1bd282bab544e4beb1409c",
            "spanId": "9303a5a72e99045f",
            "parentSpanId": "018f2b7a66cf60bb",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690793673059",
            "endTimeUnixNano": "1796047690794456769",
            "durationMs": 0.78371,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "229ababc2b1bd282bab544e4beb1409c",
            "spanId": "e3bd071a567f11db",
            "parentSpanId": "018f2b7a66cf60bb",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690794481787",
            "endTimeUnixNano": "1796047690794598311",
            "durationMs": 0.116524,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.031,
              "db.client.connection.wait_time_ms": 0.042704
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "229ababc2b1bd282bab544e4beb1409c",
            "spanId": "048936ba9310054f",
            "parentSpanId": "53cbbb85b9515378",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690794654124",
            "endTimeUnixNano": "1796047690794742446",
            "durationMs": 0.088322,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT DISTINCT json_extract(payload_json, '$.worktreePath') AS \"worktreePath\"\n      FROM orchestration_v2_projection_threads\n      WHERE json_extract(payload_json, '$.worktreePath') IS NOT NUL\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.033,
              "db.client.connection.wait_time_ms": 0.040721
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "229ababc2b1bd282bab544e4beb1409c",
            "spanId": "9407e530f196fe94",
            "parentSpanId": "bb37947cf87d99e2",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690796316047",
            "endTimeUnixNano": "1796047690797785082",
            "durationMs": 1.469035,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "229ababc2b1bd282bab544e4beb1409c",
            "spanId": "bb37947cf87d99e2",
            "parentSpanId": "541ce7d5553f1c44",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690796147756",
            "endTimeUnixNano": "1796047690798527350",
            "durationMs": 2.379594,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "229ababc2b1bd282bab544e4beb1409c",
            "spanId": "541ce7d5553f1c44",
            "parentSpanId": "24b3c08c9d3241d7",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690796110009",
            "endTimeUnixNano": "1796047690798702893",
            "durationMs": 2.592884,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/plain-notes",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "229ababc2b1bd282bab544e4beb1409c",
            "spanId": "cad0740e0b2a1d84",
            "parentSpanId": "afd1891c83476fa1",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690798910283",
            "endTimeUnixNano": "1796047690800247691",
            "durationMs": 1.337408,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "229ababc2b1bd282bab544e4beb1409c",
            "spanId": "afd1891c83476fa1",
            "parentSpanId": "c5911d30fb78c48f",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690798767489",
            "endTimeUnixNano": "1796047690800917571",
            "durationMs": 2.150082,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "229ababc2b1bd282bab544e4beb1409c",
            "spanId": "c5911d30fb78c48f",
            "parentSpanId": "24b3c08c9d3241d7",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690798728281",
            "endTimeUnixNano": "1796047690801083369",
            "durationMs": 2.355088,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/plain-notes",
              "git.args_count": 3
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "229ababc2b1bd282bab544e4beb1409c",
            "spanId": "24b3c08c9d3241d7",
            "parentSpanId": "53cbbb85b9515378",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690796088297",
            "endTimeUnixNano": "1796047690801143499",
            "durationMs": 5.055202,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Failure",
              "cause": "GitCommandError: Git command failed in GitVcsDriver.listWorktreePaths ($FIXTURE/fx/plain-notes): Git command exited with a non-zero status. (not_a_repository)\n    at file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:1635:11\n    at executeWorktreeList (file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:7803:5)\n    at executeWorktreeList (definition) (file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:1681:38)\n    at StorageCleanup.reportOrphanWorktrees (file://$CHECKOUT/apps/server/src/storageCleanup.ts:1967:12)\n    at StorageCleanup.reportOrphanWorktrees (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:556:40)\n    at StorageCleanup.cleanWorktrees (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2193:37)\n    at StorageCleanup.cleanWorktrees (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:1208:33)\n    at StorageCleanup.sweep (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2293:24)\n    at StorageCleanup.sweep (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2162:24)\n    at DrainableWorker.makeDrainableWorker (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2290:25)\n    at DrainableWorker.makeDrainableWorker (definition) (file://$CHECKOUT/packages/shared/src/DrainableWorker.ts:20:43)"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "229ababc2b1bd282bab544e4beb1409c",
            "spanId": "67086de22b937419",
            "parentSpanId": "d6fd4cda4ceee828",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690801504729",
            "endTimeUnixNano": "1796047690802989427",
            "durationMs": 1.484698,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "229ababc2b1bd282bab544e4beb1409c",
            "spanId": "d6fd4cda4ceee828",
            "parentSpanId": "82071a0ea5d0e6aa",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690801344629",
            "endTimeUnixNano": "1796047690803688331",
            "durationMs": 2.343702,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "229ababc2b1bd282bab544e4beb1409c",
            "spanId": "82071a0ea5d0e6aa",
            "parentSpanId": "f858046f7eba58dc",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690801306162",
            "endTimeUnixNano": "1796047690804079535",
            "durationMs": 2.773373,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo/packages/app",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "229ababc2b1bd282bab544e4beb1409c",
            "spanId": "f858046f7eba58dc",
            "parentSpanId": "53cbbb85b9515378",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690801287694",
            "endTimeUnixNano": "1796047690804105864",
            "durationMs": 2.81817,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "229ababc2b1bd282bab544e4beb1409c",
            "spanId": "18f1e704cd0cdb9d",
            "parentSpanId": "07ed53939ab520f9",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690804550178",
            "endTimeUnixNano": "1796047690806002237",
            "durationMs": 1.452059,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "229ababc2b1bd282bab544e4beb1409c",
            "spanId": "07ed53939ab520f9",
            "parentSpanId": "3da54940f0e1f955",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690804281417",
            "endTimeUnixNano": "1796047690806842332",
            "durationMs": 2.560915,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "229ababc2b1bd282bab544e4beb1409c",
            "spanId": "3da54940f0e1f955",
            "parentSpanId": "0926b68226fac362",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690804203460",
            "endTimeUnixNano": "1796047690807070273",
            "durationMs": 2.866813,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo-link",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "229ababc2b1bd282bab544e4beb1409c",
            "spanId": "0926b68226fac362",
            "parentSpanId": "53cbbb85b9515378",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690804159495",
            "endTimeUnixNano": "1796047690807087218",
            "durationMs": 2.927723,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "229ababc2b1bd282bab544e4beb1409c",
            "spanId": "02e08f1d291eee19",
            "parentSpanId": "2edd0a2fc2c4f9f5",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690807392164",
            "endTimeUnixNano": "1796047690808779977",
            "durationMs": 1.387813,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "229ababc2b1bd282bab544e4beb1409c",
            "spanId": "2edd0a2fc2c4f9f5",
            "parentSpanId": "f97d7ab16ec25c68",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690807179116",
            "endTimeUnixNano": "1796047690809676727",
            "durationMs": 2.497611,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "229ababc2b1bd282bab544e4beb1409c",
            "spanId": "f97d7ab16ec25c68",
            "parentSpanId": "4c9b83125cd8823a",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690807136031",
            "endTimeUnixNano": "1796047690809888914",
            "durationMs": 2.752883,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "229ababc2b1bd282bab544e4beb1409c",
            "spanId": "4c9b83125cd8823a",
            "parentSpanId": "53cbbb85b9515378",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690807115411",
            "endTimeUnixNano": "1796047690809908583",
            "durationMs": 2.793172,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "229ababc2b1bd282bab544e4beb1409c",
            "spanId": "1b74774c40ca94e5",
            "parentSpanId": "53cbbb85b9515378",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690810298636",
            "endTimeUnixNano": "1796047690810363243",
            "durationMs": 0.064607,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "229ababc2b1bd282bab544e4beb1409c",
            "spanId": "a0947b06bd72ccc2",
            "parentSpanId": "53cbbb85b9515378",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690810543722",
            "endTimeUnixNano": "1796047690810574428",
            "durationMs": 0.030706,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "229ababc2b1bd282bab544e4beb1409c",
            "spanId": "58de0298b5f11ff4",
            "parentSpanId": "53cbbb85b9515378",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690810724772",
            "endTimeUnixNano": "1796047690810747667",
            "durationMs": 0.022895,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "229ababc2b1bd282bab544e4beb1409c",
            "spanId": "93f645929aa69c96",
            "parentSpanId": "53cbbb85b9515378",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690810844101",
            "endTimeUnixNano": "1796047690810866003",
            "durationMs": 0.021902,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "storageCleanup.measureWorktree",
            "traceId": "229ababc2b1bd282bab544e4beb1409c",
            "spanId": "bc45c12312598420",
            "parentSpanId": "53cbbb85b9515378",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690810898692",
            "endTimeUnixNano": "1796047690811589514",
            "durationMs": 0.690822,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.reportOrphanWorktrees",
            "traceId": "229ababc2b1bd282bab544e4beb1409c",
            "spanId": "53cbbb85b9515378",
            "parentSpanId": "018f2b7a66cf60bb",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690794645542",
            "endTimeUnixNano": "1796047690811619079",
            "durationMs": 16.973537,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanWorktrees",
            "traceId": "229ababc2b1bd282bab544e4beb1409c",
            "spanId": "018f2b7a66cf60bb",
            "parentSpanId": "7898c06ab5dbe036",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690793029627",
            "endTimeUnixNano": "1796047690811629334",
            "durationMs": 18.599707,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.sweep",
            "traceId": "229ababc2b1bd282bab544e4beb1409c",
            "spanId": "7898c06ab5dbe036",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690792604362",
            "endTimeUnixNano": "1796047690811679939",
            "durationMs": 19.075577,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          }
        ]
      },
      {
        "run": 21,
        "warmup": false,
        "elapsedMs": 21.519799000000035,
        "nestedOrphanFound": true,
        "report": {
          "_tag": "Success",
          "value": {
            "trigger": "manual",
            "startedAt": "2026-11-30T14:08:10.813Z",
            "finishedAt": "2026-11-30T14:08:10.833Z",
            "entries": [
              {
                "kind": "worktree",
                "outcome": "kept",
                "reason": "No thread uses this worktree",
                "path": "$FIXTURE/data/worktrees/repository/replay/repo-wt",
                "projectPath": null,
                "threadId": null,
                "threadTitle": null,
                "bytes": 8192,
                "files": null
              }
            ],
            "counts": {
              "removed": 0,
              "kept": 1,
              "failed": 0
            },
            "omittedCount": 0,
            "bytesFreed": 0
          }
        },
        "spans": [
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "5fe5fd457b4d0f2b93066710266879de",
            "spanId": "6549581cf113cfc7",
            "parentSpanId": "04046ee158c2eef9",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690812924289",
            "endTimeUnixNano": "1796047690813192349",
            "durationMs": 0.26806,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      WITH RECURSIVE retained_checkpoint_threads(thread_id) AS (\n        SELECT thread_id FROM orchestration_v2_projection_threads WHERE deleted_at IS NULL\n        UNION\n        SELECT json_extract(t\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.044,
              "db.client.connection.wait_time_ms": 0.070184
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanCheckpointRefs",
            "traceId": "5fe5fd457b4d0f2b93066710266879de",
            "spanId": "04046ee158c2eef9",
            "parentSpanId": "8e381dc0503e4915",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690812903257",
            "endTimeUnixNano": "1796047690813234021",
            "durationMs": 0.330764,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.retryLeftovers",
            "traceId": "5fe5fd457b4d0f2b93066710266879de",
            "spanId": "16c06b2bfa595475",
            "parentSpanId": "8e381dc0503e4915",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690813259038",
            "endTimeUnixNano": "1796047690813361431",
            "durationMs": 0.102393,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveGitWorktreePath",
            "traceId": "5fe5fd457b4d0f2b93066710266879de",
            "spanId": "8a909e0095a2ca1c",
            "parentSpanId": "5bf003f7e70656bb",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690813410264",
            "endTimeUnixNano": "1796047690813631765",
            "durationMs": 0.221501,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveWorktreeT3Home",
            "traceId": "5fe5fd457b4d0f2b93066710266879de",
            "spanId": "5bf003f7e70656bb",
            "parentSpanId": "875ed4c1df548734",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690813400229",
            "endTimeUnixNano": "1796047690813639457",
            "durationMs": 0.239228,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "5fe5fd457b4d0f2b93066710266879de",
            "spanId": "1a01a2225e50d9f4",
            "parentSpanId": "875ed4c1df548734",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690813922700",
            "endTimeUnixNano": "1796047690814039294",
            "durationMs": 0.116594,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n          SELECT t.payload_json, p.workspace_root AS \"workspaceRoot\"\n          FROM orchestration_v2_projection_threads t\n          JOIN projection_projects p ON p.project_id = t.project_id\n         \u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.032,
              "db.client.connection.wait_time_ms": 0.049644
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "BEGIN",
            "traceId": "5fe5fd457b4d0f2b93066710266879de",
            "spanId": "8f25d37544c99db4",
            "parentSpanId": "63ea859c30581245",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690814170280",
            "endTimeUnixNano": "1796047690814245683",
            "durationMs": 0.075403,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "BEGIN"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "5fe5fd457b4d0f2b93066710266879de",
            "spanId": "bf7a756db0b1c2a5",
            "parentSpanId": "4ce711ce4100686e",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690814370409",
            "endTimeUnixNano": "1796047690814481635",
            "durationMs": 0.111226,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n            SELECT\n              t.thread_id,\n              t.payload_json,\n              t.fork_run_ids_json,\n              CASE\n                WHEN json_extract(t.payload_json, '$.forkedFrom.type'\u2026[truncated]",
              "db.client.connection.wait_time_ms": 0.014982
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "5fe5fd457b4d0f2b93066710266879de",
            "spanId": "e4a1e95c43fb1a5f",
            "parentSpanId": "4ce711ce4100686e",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690814514013",
            "endTimeUnixNano": "1796047690814574424",
            "durationMs": 0.060411,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n        SELECT MAX(sequence) AS snapshot_sequence\n        FROM orchestration_events\n        WHERE application_event_version = 2\n          AND aggregate_kind = 'thread'\n      ",
              "db.client.connection.wait_time_ms": 0.007792
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readShellSnapshotRows",
            "traceId": "5fe5fd457b4d0f2b93066710266879de",
            "spanId": "4ce711ce4100686e",
            "parentSpanId": "63ea859c30581245",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690814296098",
            "endTimeUnixNano": "1796047690814588615",
            "durationMs": 0.292517,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "COMMIT",
            "traceId": "5fe5fd457b4d0f2b93066710266879de",
            "spanId": "3935e55c3f448893",
            "parentSpanId": "63ea859c30581245",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690814599201",
            "endTimeUnixNano": "1796047690814634013",
            "durationMs": 0.034812,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "COMMIT"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sql.transaction",
            "traceId": "5fe5fd457b4d0f2b93066710266879de",
            "spanId": "63ea859c30581245",
            "parentSpanId": "9738e4e04925281e",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690814115148",
            "endTimeUnixNano": "1796047690814658709",
            "durationMs": 0.543561,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.client.connection.wait_time_ms": 0.045488,
              "db.connection": "reader",
              "db.lock_wait_ms": 0.024
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.pendingBackgroundDataByThreadId",
            "traceId": "5fe5fd457b4d0f2b93066710266879de",
            "spanId": "682c3179e3a1ccac",
            "parentSpanId": "3152faa6de88c169",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690814702365",
            "endTimeUnixNano": "1796047690814707773",
            "durationMs": 0.005408,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.decodeShellSnapshot",
            "traceId": "5fe5fd457b4d0f2b93066710266879de",
            "spanId": "3152faa6de88c169",
            "parentSpanId": "9738e4e04925281e",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690814686291",
            "endTimeUnixNano": "1796047690814717107",
            "durationMs": 0.030816,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "5fe5fd457b4d0f2b93066710266879de",
            "spanId": "f34e9f245f3a357b",
            "parentSpanId": "6b4bade0cc8f42b5",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690814760712",
            "endTimeUnixNano": "1796047690814887271",
            "durationMs": 0.126559,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.026,
              "db.client.connection.wait_time_ms": 0.035373
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectStoreV2.listShells",
            "traceId": "5fe5fd457b4d0f2b93066710266879de",
            "spanId": "6b4bade0cc8f42b5",
            "parentSpanId": "9738e4e04925281e",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690814725279",
            "endTimeUnixNano": "1796047690814995232",
            "durationMs": 0.269953,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.readThreads",
            "traceId": "5fe5fd457b4d0f2b93066710266879de",
            "spanId": "9738e4e04925281e",
            "parentSpanId": "875ed4c1df548734",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690814079695",
            "endTimeUnixNano": "1796047690815004636",
            "durationMs": 0.924941,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "5fe5fd457b4d0f2b93066710266879de",
            "spanId": "0d9cf43dc90160b4",
            "parentSpanId": "875ed4c1df548734",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690815031747",
            "endTimeUnixNano": "1796047690815157905",
            "durationMs": 0.126158,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.022,
              "db.client.connection.wait_time_ms": 0.034762
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "5fe5fd457b4d0f2b93066710266879de",
            "spanId": "ccc3daae8ba6306b",
            "parentSpanId": "2b8be10a6f513ba6",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690815223914",
            "endTimeUnixNano": "1796047690815358605",
            "durationMs": 0.134691,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT DISTINCT json_extract(payload_json, '$.worktreePath') AS \"worktreePath\"\n      FROM orchestration_v2_projection_threads\n      WHERE json_extract(payload_json, '$.worktreePath') IS NOT NUL\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.032,
              "db.client.connection.wait_time_ms": 0.0403
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "5fe5fd457b4d0f2b93066710266879de",
            "spanId": "a63d5a03b9b97eaf",
            "parentSpanId": "e1aef637852d76c0",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690816722403",
            "endTimeUnixNano": "1796047690817983927",
            "durationMs": 1.261524,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "5fe5fd457b4d0f2b93066710266879de",
            "spanId": "e1aef637852d76c0",
            "parentSpanId": "f7d21ec9bcf4b580",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690816542354",
            "endTimeUnixNano": "1796047690818700488",
            "durationMs": 2.158134,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "5fe5fd457b4d0f2b93066710266879de",
            "spanId": "f7d21ec9bcf4b580",
            "parentSpanId": "a80975dbfac45743",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690816506250",
            "endTimeUnixNano": "1796047690818901738",
            "durationMs": 2.395488,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/plain-notes",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "5fe5fd457b4d0f2b93066710266879de",
            "spanId": "ed9779f0eeade2cb",
            "parentSpanId": "7f63a657949b52cd",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690819135007",
            "endTimeUnixNano": "1796047690820498604",
            "durationMs": 1.363597,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "5fe5fd457b4d0f2b93066710266879de",
            "spanId": "7f63a657949b52cd",
            "parentSpanId": "d18c218389438ee2",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690818967637",
            "endTimeUnixNano": "1796047690821319470",
            "durationMs": 2.351833,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "5fe5fd457b4d0f2b93066710266879de",
            "spanId": "d18c218389438ee2",
            "parentSpanId": "a80975dbfac45743",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690818928769",
            "endTimeUnixNano": "1796047690821510385",
            "durationMs": 2.581616,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/plain-notes",
              "git.args_count": 3
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "5fe5fd457b4d0f2b93066710266879de",
            "spanId": "a80975dbfac45743",
            "parentSpanId": "2b8be10a6f513ba6",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690816482674",
            "endTimeUnixNano": "1796047690821607651",
            "durationMs": 5.124977,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Failure",
              "cause": "GitCommandError: Git command failed in GitVcsDriver.listWorktreePaths ($FIXTURE/fx/plain-notes): Git command exited with a non-zero status. (not_a_repository)\n    at file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:1635:11\n    at executeWorktreeList (file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:7803:5)\n    at executeWorktreeList (definition) (file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:1681:38)\n    at StorageCleanup.reportOrphanWorktrees (file://$CHECKOUT/apps/server/src/storageCleanup.ts:1967:12)\n    at StorageCleanup.reportOrphanWorktrees (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:556:40)\n    at StorageCleanup.cleanWorktrees (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2193:37)\n    at StorageCleanup.cleanWorktrees (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:1208:33)\n    at StorageCleanup.sweep (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2293:24)\n    at StorageCleanup.sweep (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2162:24)\n    at DrainableWorker.makeDrainableWorker (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2290:25)\n    at DrainableWorker.makeDrainableWorker (definition) (file://$CHECKOUT/packages/shared/src/DrainableWorker.ts:20:43)"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "5fe5fd457b4d0f2b93066710266879de",
            "spanId": "eb70e25060744423",
            "parentSpanId": "38fa02509c1e0e1e",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690821994749",
            "endTimeUnixNano": "1796047690823257606",
            "durationMs": 1.262857,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "5fe5fd457b4d0f2b93066710266879de",
            "spanId": "38fa02509c1e0e1e",
            "parentSpanId": "6a91bcd98b88beca",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690821820679",
            "endTimeUnixNano": "1796047690824076379",
            "durationMs": 2.2557,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "5fe5fd457b4d0f2b93066710266879de",
            "spanId": "6a91bcd98b88beca",
            "parentSpanId": "9729bacc74b45dd8",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690821784725",
            "endTimeUnixNano": "1796047690824236558",
            "durationMs": 2.451833,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo/packages/app",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "5fe5fd457b4d0f2b93066710266879de",
            "spanId": "9729bacc74b45dd8",
            "parentSpanId": "2b8be10a6f513ba6",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690821765947",
            "endTimeUnixNano": "1796047690824251731",
            "durationMs": 2.485784,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "5fe5fd457b4d0f2b93066710266879de",
            "spanId": "bcf4bfbbdd1ff846",
            "parentSpanId": "9b6f75983a8aa77b",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690824495555",
            "endTimeUnixNano": "1796047690825743409",
            "durationMs": 1.247854,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "5fe5fd457b4d0f2b93066710266879de",
            "spanId": "9b6f75983a8aa77b",
            "parentSpanId": "391cbe7f9f3e714d",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690824336808",
            "endTimeUnixNano": "1796047690826558157",
            "durationMs": 2.221349,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "5fe5fd457b4d0f2b93066710266879de",
            "spanId": "391cbe7f9f3e714d",
            "parentSpanId": "fb92fd7274b5a64d",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690824303899",
            "endTimeUnixNano": "1796047690826713208",
            "durationMs": 2.409309,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo-link",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "5fe5fd457b4d0f2b93066710266879de",
            "spanId": "fb92fd7274b5a64d",
            "parentSpanId": "2b8be10a6f513ba6",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690824287234",
            "endTimeUnixNano": "1796047690826726458",
            "durationMs": 2.439224,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "5fe5fd457b4d0f2b93066710266879de",
            "spanId": "118be307f5b2423b",
            "parentSpanId": "6c7f35c6fa1f2e2c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690826930493",
            "endTimeUnixNano": "1796047690828455852",
            "durationMs": 1.525359,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "5fe5fd457b4d0f2b93066710266879de",
            "spanId": "6c7f35c6fa1f2e2c",
            "parentSpanId": "aae409362af41c33",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690826793608",
            "endTimeUnixNano": "1796047690829198741",
            "durationMs": 2.405133,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "5fe5fd457b4d0f2b93066710266879de",
            "spanId": "aae409362af41c33",
            "parentSpanId": "6360fc7a79debe28",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690826762061",
            "endTimeUnixNano": "1796047690829377829",
            "durationMs": 2.615768,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "5fe5fd457b4d0f2b93066710266879de",
            "spanId": "6360fc7a79debe28",
            "parentSpanId": "2b8be10a6f513ba6",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690826745937",
            "endTimeUnixNano": "1796047690829392280",
            "durationMs": 2.646343,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "5fe5fd457b4d0f2b93066710266879de",
            "spanId": "69395af6b1067184",
            "parentSpanId": "2b8be10a6f513ba6",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690831599528",
            "endTimeUnixNano": "1796047690831660469",
            "durationMs": 0.060941,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "5fe5fd457b4d0f2b93066710266879de",
            "spanId": "10eecc31a05cc67f",
            "parentSpanId": "2b8be10a6f513ba6",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690831887648",
            "endTimeUnixNano": "1796047690831921789",
            "durationMs": 0.034141,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "5fe5fd457b4d0f2b93066710266879de",
            "spanId": "41b4e598f475f361",
            "parentSpanId": "2b8be10a6f513ba6",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690832072334",
            "endTimeUnixNano": "1796047690832098624",
            "durationMs": 0.02629,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "5fe5fd457b4d0f2b93066710266879de",
            "spanId": "2aeb3171b5b91d01",
            "parentSpanId": "2b8be10a6f513ba6",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690832189639",
            "endTimeUnixNano": "1796047690832213205",
            "durationMs": 0.023566,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "storageCleanup.measureWorktree",
            "traceId": "5fe5fd457b4d0f2b93066710266879de",
            "spanId": "dd28eaa47c39696a",
            "parentSpanId": "2b8be10a6f513ba6",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690832407976",
            "endTimeUnixNano": "1796047690833114091",
            "durationMs": 0.706115,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.reportOrphanWorktrees",
            "traceId": "5fe5fd457b4d0f2b93066710266879de",
            "spanId": "2b8be10a6f513ba6",
            "parentSpanId": "875ed4c1df548734",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690815214149",
            "endTimeUnixNano": "1796047690833144606",
            "durationMs": 17.930457,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanWorktrees",
            "traceId": "5fe5fd457b4d0f2b93066710266879de",
            "spanId": "875ed4c1df548734",
            "parentSpanId": "8e381dc0503e4915",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690813373700",
            "endTimeUnixNano": "1796047690833155983",
            "durationMs": 19.782283,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.sweep",
            "traceId": "5fe5fd457b4d0f2b93066710266879de",
            "spanId": "8e381dc0503e4915",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690812875736",
            "endTimeUnixNano": "1796047690833206038",
            "durationMs": 20.330302,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          }
        ]
      },
      {
        "run": 22,
        "warmup": false,
        "elapsedMs": 21.527830999999992,
        "nestedOrphanFound": true,
        "report": {
          "_tag": "Success",
          "value": {
            "trigger": "manual",
            "startedAt": "2026-11-30T14:08:10.834Z",
            "finishedAt": "2026-11-30T14:08:10.855Z",
            "entries": [
              {
                "kind": "worktree",
                "outcome": "kept",
                "reason": "No thread uses this worktree",
                "path": "$FIXTURE/data/worktrees/repository/replay/repo-wt",
                "projectPath": null,
                "threadId": null,
                "threadTitle": null,
                "bytes": 8192,
                "files": null
              }
            ],
            "counts": {
              "removed": 0,
              "kept": 1,
              "failed": 0
            },
            "omittedCount": 0,
            "bytesFreed": 0
          }
        },
        "spans": [
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "15e6e896f548121227f1816f08c95f0a",
            "spanId": "146130235d87e0f4",
            "parentSpanId": "f6e3fcaf1dacbf8c",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690834700991",
            "endTimeUnixNano": "1796047690834996823",
            "durationMs": 0.295832,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      WITH RECURSIVE retained_checkpoint_threads(thread_id) AS (\n        SELECT thread_id FROM orchestration_v2_projection_threads WHERE deleted_at IS NULL\n        UNION\n        SELECT json_extract(t\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.074,
              "db.client.connection.wait_time_ms": 0.102634
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanCheckpointRefs",
            "traceId": "15e6e896f548121227f1816f08c95f0a",
            "spanId": "f6e3fcaf1dacbf8c",
            "parentSpanId": "eb138b9b39df25d2",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690834679018",
            "endTimeUnixNano": "1796047690835058285",
            "durationMs": 0.379267,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.retryLeftovers",
            "traceId": "15e6e896f548121227f1816f08c95f0a",
            "spanId": "5a3bb161acbaac9f",
            "parentSpanId": "eb138b9b39df25d2",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690835087669",
            "endTimeUnixNano": "1796047690835237803",
            "durationMs": 0.150134,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveGitWorktreePath",
            "traceId": "15e6e896f548121227f1816f08c95f0a",
            "spanId": "b4a1381da2acfe77",
            "parentSpanId": "a98491944dcc212d",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690835309340",
            "endTimeUnixNano": "1796047690835547446",
            "durationMs": 0.238106,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveWorktreeT3Home",
            "traceId": "15e6e896f548121227f1816f08c95f0a",
            "spanId": "a98491944dcc212d",
            "parentSpanId": "19490fb5f4ee3313",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690835300807",
            "endTimeUnixNano": "1796047690835557982",
            "durationMs": 0.257175,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "15e6e896f548121227f1816f08c95f0a",
            "spanId": "c9990fb64ef062ef",
            "parentSpanId": "19490fb5f4ee3313",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690835832061",
            "endTimeUnixNano": "1796047690835951900",
            "durationMs": 0.119839,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n          SELECT t.payload_json, p.workspace_root AS \"workspaceRoot\"\n          FROM orchestration_v2_projection_threads t\n          JOIN projection_projects p ON p.project_id = t.project_id\n         \u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.04,
              "db.client.connection.wait_time_ms": 0.061001
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "BEGIN",
            "traceId": "15e6e896f548121227f1816f08c95f0a",
            "spanId": "a4f901eb18612e41",
            "parentSpanId": "0199a336abe2e343",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690836112410",
            "endTimeUnixNano": "1796047690836165649",
            "durationMs": 0.053239,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "BEGIN"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "15e6e896f548121227f1816f08c95f0a",
            "spanId": "e2fbd2df32787b8a",
            "parentSpanId": "b818d479eafa0749",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690836286390",
            "endTimeUnixNano": "1796047690836404166",
            "durationMs": 0.117776,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n            SELECT\n              t.thread_id,\n              t.payload_json,\n              t.fork_run_ids_json,\n              CASE\n                WHEN json_extract(t.payload_json, '$.forkedFrom.type'\u2026[truncated]",
              "db.client.connection.wait_time_ms": 0.015183
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "15e6e896f548121227f1816f08c95f0a",
            "spanId": "1e76b7a1ca14d55b",
            "parentSpanId": "b818d479eafa0749",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690836460410",
            "endTimeUnixNano": "1796047690836514050",
            "durationMs": 0.05364,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n        SELECT MAX(sequence) AS snapshot_sequence\n        FROM orchestration_events\n        WHERE application_event_version = 2\n          AND aggregate_kind = 'thread'\n      ",
              "db.client.connection.wait_time_ms": 0.009274
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readShellSnapshotRows",
            "traceId": "15e6e896f548121227f1816f08c95f0a",
            "spanId": "b818d479eafa0749",
            "parentSpanId": "0199a336abe2e343",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690836197747",
            "endTimeUnixNano": "1796047690836527460",
            "durationMs": 0.329713,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "COMMIT",
            "traceId": "15e6e896f548121227f1816f08c95f0a",
            "spanId": "5b0db7a8ca80f870",
            "parentSpanId": "0199a336abe2e343",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690836537715",
            "endTimeUnixNano": "1796047690836566338",
            "durationMs": 0.028623,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "COMMIT"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sql.transaction",
            "traceId": "15e6e896f548121227f1816f08c95f0a",
            "spanId": "0199a336abe2e343",
            "parentSpanId": "d302b8a4afbdb5d9",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690836042646",
            "endTimeUnixNano": "1796047690836595682",
            "durationMs": 0.553036,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.client.connection.wait_time_ms": 0.06049,
              "db.connection": "reader",
              "db.lock_wait_ms": 0.039
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.pendingBackgroundDataByThreadId",
            "traceId": "15e6e896f548121227f1816f08c95f0a",
            "spanId": "828d5df38e8f67bd",
            "parentSpanId": "7169c4041a4c2965",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690836644545",
            "endTimeUnixNano": "1796047690836649913",
            "durationMs": 0.005368,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.decodeShellSnapshot",
            "traceId": "15e6e896f548121227f1816f08c95f0a",
            "spanId": "7169c4041a4c2965",
            "parentSpanId": "d302b8a4afbdb5d9",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690836627860",
            "endTimeUnixNano": "1796047690836659848",
            "durationMs": 0.031988,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "15e6e896f548121227f1816f08c95f0a",
            "spanId": "58b53d12985a9d28",
            "parentSpanId": "4d3885822cfdf6d5",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690836706708",
            "endTimeUnixNano": "1796047690836823362",
            "durationMs": 0.116654,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.028,
              "db.client.connection.wait_time_ms": 0.037335
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectStoreV2.listShells",
            "traceId": "15e6e896f548121227f1816f08c95f0a",
            "spanId": "4d3885822cfdf6d5",
            "parentSpanId": "d302b8a4afbdb5d9",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690836668120",
            "endTimeUnixNano": "1796047690836917112",
            "durationMs": 0.248992,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.readThreads",
            "traceId": "15e6e896f548121227f1816f08c95f0a",
            "spanId": "d302b8a4afbdb5d9",
            "parentSpanId": "19490fb5f4ee3313",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690836000603",
            "endTimeUnixNano": "1796047690836926646",
            "durationMs": 0.926043,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "15e6e896f548121227f1816f08c95f0a",
            "spanId": "a253eabbe6bc27c7",
            "parentSpanId": "19490fb5f4ee3313",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690836954588",
            "endTimeUnixNano": "1796047690837055319",
            "durationMs": 0.100731,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.022,
              "db.client.connection.wait_time_ms": 0.0335
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "15e6e896f548121227f1816f08c95f0a",
            "spanId": "f21e8769efd6709f",
            "parentSpanId": "559fcd629289f347",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690837129089",
            "endTimeUnixNano": "1796047690837226014",
            "durationMs": 0.096925,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT DISTINCT json_extract(payload_json, '$.worktreePath') AS \"worktreePath\"\n      FROM orchestration_v2_projection_threads\n      WHERE json_extract(payload_json, '$.worktreePath') IS NOT NUL\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.036,
              "db.client.connection.wait_time_ms": 0.044707
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "15e6e896f548121227f1816f08c95f0a",
            "spanId": "93a9fc57f6e375f5",
            "parentSpanId": "aa28a148d254d824",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690838735469",
            "endTimeUnixNano": "1796047690840615727",
            "durationMs": 1.880258,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "15e6e896f548121227f1816f08c95f0a",
            "spanId": "aa28a148d254d824",
            "parentSpanId": "23d209ec79cd8642",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690838503582",
            "endTimeUnixNano": "1796047690841773327",
            "durationMs": 3.269745,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "15e6e896f548121227f1816f08c95f0a",
            "spanId": "23d209ec79cd8642",
            "parentSpanId": "2fbe2d54c92180f2",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690838433718",
            "endTimeUnixNano": "1796047690842014217",
            "durationMs": 3.580499,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/plain-notes",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "15e6e896f548121227f1816f08c95f0a",
            "spanId": "d0e173b3fdbdbdc1",
            "parentSpanId": "051cf7526ff8a44f",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690842263199",
            "endTimeUnixNano": "1796047690843968647",
            "durationMs": 1.705448,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "15e6e896f548121227f1816f08c95f0a",
            "spanId": "051cf7526ff8a44f",
            "parentSpanId": "2e29a5ae5bc5fe3e",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690842084812",
            "endTimeUnixNano": "1796047690844768722",
            "durationMs": 2.68391,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "15e6e896f548121227f1816f08c95f0a",
            "spanId": "2e29a5ae5bc5fe3e",
            "parentSpanId": "2fbe2d54c92180f2",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690842042118",
            "endTimeUnixNano": "1796047690844971084",
            "durationMs": 2.928966,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/plain-notes",
              "git.args_count": 3
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "15e6e896f548121227f1816f08c95f0a",
            "spanId": "2fbe2d54c92180f2",
            "parentSpanId": "559fcd629289f347",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690838396803",
            "endTimeUnixNano": "1796047690845049722",
            "durationMs": 6.652919,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Failure",
              "cause": "GitCommandError: Git command failed in GitVcsDriver.listWorktreePaths ($FIXTURE/fx/plain-notes): Git command exited with a non-zero status. (not_a_repository)\n    at file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:1635:11\n    at executeWorktreeList (file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:7803:5)\n    at executeWorktreeList (definition) (file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:1681:38)\n    at StorageCleanup.reportOrphanWorktrees (file://$CHECKOUT/apps/server/src/storageCleanup.ts:1967:12)\n    at StorageCleanup.reportOrphanWorktrees (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:556:40)\n    at StorageCleanup.cleanWorktrees (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2193:37)\n    at StorageCleanup.cleanWorktrees (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:1208:33)\n    at StorageCleanup.sweep (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2293:24)\n    at StorageCleanup.sweep (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2162:24)\n    at DrainableWorker.makeDrainableWorker (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2290:25)\n    at DrainableWorker.makeDrainableWorker (definition) (file://$CHECKOUT/packages/shared/src/DrainableWorker.ts:20:43)"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "15e6e896f548121227f1816f08c95f0a",
            "spanId": "223629e05ec800f3",
            "parentSpanId": "f0eb0e7003522a17",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690845462188",
            "endTimeUnixNano": "1796047690846995218",
            "durationMs": 1.53303,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "15e6e896f548121227f1816f08c95f0a",
            "spanId": "f0eb0e7003522a17",
            "parentSpanId": "d9011bce01dd42fa",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690845267276",
            "endTimeUnixNano": "1796047690847974251",
            "durationMs": 2.706975,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "15e6e896f548121227f1816f08c95f0a",
            "spanId": "d9011bce01dd42fa",
            "parentSpanId": "6bbcef79abf6e173",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690845223601",
            "endTimeUnixNano": "1796047690848178636",
            "durationMs": 2.955035,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo/packages/app",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "15e6e896f548121227f1816f08c95f0a",
            "spanId": "6bbcef79abf6e173",
            "parentSpanId": "559fcd629289f347",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690845203281",
            "endTimeUnixNano": "1796047690848193228",
            "durationMs": 2.989947,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "15e6e896f548121227f1816f08c95f0a",
            "spanId": "767de2e9d8963df8",
            "parentSpanId": "9f1103e59a1cd366",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690848454678",
            "endTimeUnixNano": "1796047690849754240",
            "durationMs": 1.299562,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "15e6e896f548121227f1816f08c95f0a",
            "spanId": "9f1103e59a1cd366",
            "parentSpanId": "3a711e66d3d522a9",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690848288770",
            "endTimeUnixNano": "1796047690850742086",
            "durationMs": 2.453316,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "15e6e896f548121227f1816f08c95f0a",
            "spanId": "3a711e66d3d522a9",
            "parentSpanId": "1b60367583074b9d",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690848236753",
            "endTimeUnixNano": "1796047690850910046",
            "durationMs": 2.673293,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo-link",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "15e6e896f548121227f1816f08c95f0a",
            "spanId": "1b60367583074b9d",
            "parentSpanId": "559fcd629289f347",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690848217794",
            "endTimeUnixNano": "1796047690850926201",
            "durationMs": 2.708407,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "15e6e896f548121227f1816f08c95f0a",
            "spanId": "c91713ff0fcd2295",
            "parentSpanId": "b3429a607cdc2705",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690851148082",
            "endTimeUnixNano": "1796047690852374694",
            "durationMs": 1.226612,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "15e6e896f548121227f1816f08c95f0a",
            "spanId": "b3429a607cdc2705",
            "parentSpanId": "db2965aa3e12a111",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690850998629",
            "endTimeUnixNano": "1796047690853415589",
            "durationMs": 2.41696,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "15e6e896f548121227f1816f08c95f0a",
            "spanId": "db2965aa3e12a111",
            "parentSpanId": "ef32090624a1062b",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690850964458",
            "endTimeUnixNano": "1796047690853607136",
            "durationMs": 2.642678,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "15e6e896f548121227f1816f08c95f0a",
            "spanId": "ef32090624a1062b",
            "parentSpanId": "559fcd629289f347",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690850947502",
            "endTimeUnixNano": "1796047690853622298",
            "durationMs": 2.674796,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "15e6e896f548121227f1816f08c95f0a",
            "spanId": "38604fddc950a3be",
            "parentSpanId": "559fcd629289f347",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690853891030",
            "endTimeUnixNano": "1796047690853933373",
            "durationMs": 0.042343,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "15e6e896f548121227f1816f08c95f0a",
            "spanId": "019a291a06d7065b",
            "parentSpanId": "559fcd629289f347",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690854034925",
            "endTimeUnixNano": "1796047690854054284",
            "durationMs": 0.019359,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "15e6e896f548121227f1816f08c95f0a",
            "spanId": "5991f5b6dceaf774",
            "parentSpanId": "559fcd629289f347",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690854145410",
            "endTimeUnixNano": "1796047690854161664",
            "durationMs": 0.016254,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "15e6e896f548121227f1816f08c95f0a",
            "spanId": "c02ede7a8dd50495",
            "parentSpanId": "559fcd629289f347",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690854232240",
            "endTimeUnixNano": "1796047690854250877",
            "durationMs": 0.018637,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "storageCleanup.measureWorktree",
            "traceId": "15e6e896f548121227f1816f08c95f0a",
            "spanId": "837b9a8c4cebfdaf",
            "parentSpanId": "559fcd629289f347",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690854291328",
            "endTimeUnixNano": "1796047690854782482",
            "durationMs": 0.491154,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.reportOrphanWorktrees",
            "traceId": "15e6e896f548121227f1816f08c95f0a",
            "spanId": "559fcd629289f347",
            "parentSpanId": "19490fb5f4ee3313",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690837117161",
            "endTimeUnixNano": "1796047690854809672",
            "durationMs": 17.692511,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanWorktrees",
            "traceId": "15e6e896f548121227f1816f08c95f0a",
            "spanId": "19490fb5f4ee3313",
            "parentSpanId": "eb138b9b39df25d2",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690835254128",
            "endTimeUnixNano": "1796047690854816833",
            "durationMs": 19.562705,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.sweep",
            "traceId": "15e6e896f548121227f1816f08c95f0a",
            "spanId": "eb138b9b39df25d2",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690834644116",
            "endTimeUnixNano": "1796047690854859827",
            "durationMs": 20.215711,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          }
        ]
      },
      {
        "run": 23,
        "warmup": false,
        "elapsedMs": 16.735562000000073,
        "nestedOrphanFound": true,
        "report": {
          "_tag": "Success",
          "value": {
            "trigger": "manual",
            "startedAt": "2026-11-30T14:08:10.856Z",
            "finishedAt": "2026-11-30T14:08:10.871Z",
            "entries": [
              {
                "kind": "worktree",
                "outcome": "kept",
                "reason": "No thread uses this worktree",
                "path": "$FIXTURE/data/worktrees/repository/replay/repo-wt",
                "projectPath": null,
                "threadId": null,
                "threadTitle": null,
                "bytes": 8192,
                "files": null
              }
            ],
            "counts": {
              "removed": 0,
              "kept": 1,
              "failed": 0
            },
            "omittedCount": 0,
            "bytesFreed": 0
          }
        },
        "spans": [
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "9b01586c3194bd1bb9d172b59a49dee4",
            "spanId": "d767a238c64c9b64",
            "parentSpanId": "ab773be99edcd736",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690855859701",
            "endTimeUnixNano": "1796047690856052389",
            "durationMs": 0.192688,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      WITH RECURSIVE retained_checkpoint_threads(thread_id) AS (\n        SELECT thread_id FROM orchestration_v2_projection_threads WHERE deleted_at IS NULL\n        UNION\n        SELECT json_extract(t\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.035,
              "db.client.connection.wait_time_ms": 0.066649
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanCheckpointRefs",
            "traceId": "9b01586c3194bd1bb9d172b59a49dee4",
            "spanId": "ab773be99edcd736",
            "parentSpanId": "1b0a9960fbdf3334",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690855847543",
            "endTimeUnixNano": "1796047690856086490",
            "durationMs": 0.238947,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.retryLeftovers",
            "traceId": "9b01586c3194bd1bb9d172b59a49dee4",
            "spanId": "1f0a5060de313369",
            "parentSpanId": "1b0a9960fbdf3334",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690856103735",
            "endTimeUnixNano": "1796047690856174321",
            "durationMs": 0.070586,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveGitWorktreePath",
            "traceId": "9b01586c3194bd1bb9d172b59a49dee4",
            "spanId": "696901bc813a4aee",
            "parentSpanId": "194056c9a4f53bf3",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690856212598",
            "endTimeUnixNano": "1796047690856382982",
            "durationMs": 0.170384,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveWorktreeT3Home",
            "traceId": "9b01586c3194bd1bb9d172b59a49dee4",
            "spanId": "194056c9a4f53bf3",
            "parentSpanId": "38584f0d6e13b3f8",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690856204356",
            "endTimeUnixNano": "1796047690856391575",
            "durationMs": 0.187219,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "9b01586c3194bd1bb9d172b59a49dee4",
            "spanId": "372bedbf19d20cd8",
            "parentSpanId": "38584f0d6e13b3f8",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690856596582",
            "endTimeUnixNano": "1796047690856695860",
            "durationMs": 0.099278,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n          SELECT t.payload_json, p.workspace_root AS \"workspaceRoot\"\n          FROM orchestration_v2_projection_threads t\n          JOIN projection_projects p ON p.project_id = t.project_id\n         \u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.028,
              "db.client.connection.wait_time_ms": 0.043535
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "BEGIN",
            "traceId": "9b01586c3194bd1bb9d172b59a49dee4",
            "spanId": "e3f4c6bde59371b1",
            "parentSpanId": "6eaef826b5b36377",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690856839715",
            "endTimeUnixNano": "1796047690856885603",
            "durationMs": 0.045888,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "BEGIN"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "9b01586c3194bd1bb9d172b59a49dee4",
            "spanId": "acfa8093a7675812",
            "parentSpanId": "f7748e3bd26c7a80",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690856978302",
            "endTimeUnixNano": "1796047690857072342",
            "durationMs": 0.09404,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n            SELECT\n              t.thread_id,\n              t.payload_json,\n              t.fork_run_ids_json,\n              CASE\n                WHEN json_extract(t.payload_json, '$.forkedFrom.type'\u2026[truncated]",
              "db.client.connection.wait_time_ms": 0.012719
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "9b01586c3194bd1bb9d172b59a49dee4",
            "spanId": "6a1412c29942ca8f",
            "parentSpanId": "f7748e3bd26c7a80",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690857109157",
            "endTimeUnixNano": "1796047690857152883",
            "durationMs": 0.043726,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n        SELECT MAX(sequence) AS snapshot_sequence\n        FROM orchestration_events\n        WHERE application_event_version = 2\n          AND aggregate_kind = 'thread'\n      ",
              "db.client.connection.wait_time_ms": 0.007682
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readShellSnapshotRows",
            "traceId": "9b01586c3194bd1bb9d172b59a49dee4",
            "spanId": "f7748e3bd26c7a80",
            "parentSpanId": "6eaef826b5b36377",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690856907927",
            "endTimeUnixNano": "1796047690857164891",
            "durationMs": 0.256964,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "COMMIT",
            "traceId": "9b01586c3194bd1bb9d172b59a49dee4",
            "spanId": "1ae451eaf3a9e91c",
            "parentSpanId": "6eaef826b5b36377",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690857173764",
            "endTimeUnixNano": "1796047690857197459",
            "durationMs": 0.023695,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "COMMIT"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sql.transaction",
            "traceId": "9b01586c3194bd1bb9d172b59a49dee4",
            "spanId": "6eaef826b5b36377",
            "parentSpanId": "790f20d2fc8678bc",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690856789099",
            "endTimeUnixNano": "1796047690857219132",
            "durationMs": 0.430033,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.client.connection.wait_time_ms": 0.042333,
              "db.connection": "reader",
              "db.lock_wait_ms": 0.024
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.pendingBackgroundDataByThreadId",
            "traceId": "9b01586c3194bd1bb9d172b59a49dee4",
            "spanId": "c5a85ab782d6a087",
            "parentSpanId": "5c8f81097e5d0453",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690857258380",
            "endTimeUnixNano": "1796047690857264189",
            "durationMs": 0.005809,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.decodeShellSnapshot",
            "traceId": "9b01586c3194bd1bb9d172b59a49dee4",
            "spanId": "5c8f81097e5d0453",
            "parentSpanId": "790f20d2fc8678bc",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690857245661",
            "endTimeUnixNano": "1796047690857286422",
            "durationMs": 0.040761,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "9b01586c3194bd1bb9d172b59a49dee4",
            "spanId": "d526888a563c2cad",
            "parentSpanId": "3dfbfeffc9d2bddb",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690857324749",
            "endTimeUnixNano": "1796047690857446631",
            "durationMs": 0.121882,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.026,
              "db.client.connection.wait_time_ms": 0.034923
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectStoreV2.listShells",
            "traceId": "9b01586c3194bd1bb9d172b59a49dee4",
            "spanId": "3dfbfeffc9d2bddb",
            "parentSpanId": "790f20d2fc8678bc",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690857296297",
            "endTimeUnixNano": "1796047690857513391",
            "durationMs": 0.217094,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.readThreads",
            "traceId": "9b01586c3194bd1bb9d172b59a49dee4",
            "spanId": "790f20d2fc8678bc",
            "parentSpanId": "38584f0d6e13b3f8",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690856758073",
            "endTimeUnixNano": "1796047690857521964",
            "durationMs": 0.763891,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "9b01586c3194bd1bb9d172b59a49dee4",
            "spanId": "337540e478e6b116",
            "parentSpanId": "38584f0d6e13b3f8",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690857549515",
            "endTimeUnixNano": "1796047690857668002",
            "durationMs": 0.118487,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.023,
              "db.client.connection.wait_time_ms": 0.057126
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "9b01586c3194bd1bb9d172b59a49dee4",
            "spanId": "7f413260ca4e2c61",
            "parentSpanId": "d6d2f12285f2b5cf",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690857724406",
            "endTimeUnixNano": "1796047690857807401",
            "durationMs": 0.082995,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT DISTINCT json_extract(payload_json, '$.worktreePath') AS \"worktreePath\"\n      FROM orchestration_v2_projection_threads\n      WHERE json_extract(payload_json, '$.worktreePath') IS NOT NUL\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.034,
              "db.client.connection.wait_time_ms": 0.041342
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "9b01586c3194bd1bb9d172b59a49dee4",
            "spanId": "7ac274f389598727",
            "parentSpanId": "42100141455c0676",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690858830699",
            "endTimeUnixNano": "1796047690860008609",
            "durationMs": 1.17791,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "9b01586c3194bd1bb9d172b59a49dee4",
            "spanId": "42100141455c0676",
            "parentSpanId": "d3b45d6ab4dc700e",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690858668126",
            "endTimeUnixNano": "1796047690860878138",
            "durationMs": 2.210012,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "9b01586c3194bd1bb9d172b59a49dee4",
            "spanId": "d3b45d6ab4dc700e",
            "parentSpanId": "a70dc64710096b5d",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690858632383",
            "endTimeUnixNano": "1796047690861066009",
            "durationMs": 2.433626,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/plain-notes",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "9b01586c3194bd1bb9d172b59a49dee4",
            "spanId": "2388cc4be16a4298",
            "parentSpanId": "a5c733dbaf0e42e4",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690861314199",
            "endTimeUnixNano": "1796047690862389025",
            "durationMs": 1.074826,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "9b01586c3194bd1bb9d172b59a49dee4",
            "spanId": "a5c733dbaf0e42e4",
            "parentSpanId": "a67ab8af689f869b",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690861133039",
            "endTimeUnixNano": "1796047690863177132",
            "durationMs": 2.044093,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "9b01586c3194bd1bb9d172b59a49dee4",
            "spanId": "a67ab8af689f869b",
            "parentSpanId": "a70dc64710096b5d",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690861092418",
            "endTimeUnixNano": "1796047690863354077",
            "durationMs": 2.261659,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/plain-notes",
              "git.args_count": 3
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "9b01586c3194bd1bb9d172b59a49dee4",
            "spanId": "a70dc64710096b5d",
            "parentSpanId": "d6d2f12285f2b5cf",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690858611522",
            "endTimeUnixNano": "1796047690863418333",
            "durationMs": 4.806811,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Failure",
              "cause": "GitCommandError: Git command failed in GitVcsDriver.listWorktreePaths ($FIXTURE/fx/plain-notes): Git command exited with a non-zero status. (not_a_repository)\n    at file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:1635:11\n    at executeWorktreeList (file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:7803:5)\n    at executeWorktreeList (definition) (file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:1681:38)\n    at StorageCleanup.reportOrphanWorktrees (file://$CHECKOUT/apps/server/src/storageCleanup.ts:1967:12)\n    at StorageCleanup.reportOrphanWorktrees (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:556:40)\n    at StorageCleanup.cleanWorktrees (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2193:37)\n    at StorageCleanup.cleanWorktrees (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:1208:33)\n    at StorageCleanup.sweep (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2293:24)\n    at StorageCleanup.sweep (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2162:24)\n    at DrainableWorker.makeDrainableWorker (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2290:25)\n    at DrainableWorker.makeDrainableWorker (definition) (file://$CHECKOUT/packages/shared/src/DrainableWorker.ts:20:43)"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "9b01586c3194bd1bb9d172b59a49dee4",
            "spanId": "9fadc3dbe620001d",
            "parentSpanId": "55370573aa9392c0",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690863759773",
            "endTimeUnixNano": "1796047690864812175",
            "durationMs": 1.052402,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "9b01586c3194bd1bb9d172b59a49dee4",
            "spanId": "55370573aa9392c0",
            "parentSpanId": "ff31d6860a197ae2",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690863611662",
            "endTimeUnixNano": "1796047690865705490",
            "durationMs": 2.093828,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "9b01586c3194bd1bb9d172b59a49dee4",
            "spanId": "ff31d6860a197ae2",
            "parentSpanId": "3c33f0fe7e2e60c9",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690863574686",
            "endTimeUnixNano": "1796047690865868884",
            "durationMs": 2.294198,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo/packages/app",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "9b01586c3194bd1bb9d172b59a49dee4",
            "spanId": "3c33f0fe7e2e60c9",
            "parentSpanId": "d6d2f12285f2b5cf",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690863557431",
            "endTimeUnixNano": "1796047690865882294",
            "durationMs": 2.324863,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "9b01586c3194bd1bb9d172b59a49dee4",
            "spanId": "096d13fe34d552ee",
            "parentSpanId": "42c317b84c1df893",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690866096965",
            "endTimeUnixNano": "1796047690867092011",
            "durationMs": 0.995046,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "9b01586c3194bd1bb9d172b59a49dee4",
            "spanId": "42c317b84c1df893",
            "parentSpanId": "c1213348209c40f0",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690865955102",
            "endTimeUnixNano": "1796047690867968831",
            "durationMs": 2.013729,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "9b01586c3194bd1bb9d172b59a49dee4",
            "spanId": "c1213348209c40f0",
            "parentSpanId": "737db9cd28d426b6",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690865920701",
            "endTimeUnixNano": "1796047690868125435",
            "durationMs": 2.204734,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo-link",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "9b01586c3194bd1bb9d172b59a49dee4",
            "spanId": "737db9cd28d426b6",
            "parentSpanId": "d6d2f12285f2b5cf",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690865903385",
            "endTimeUnixNano": "1796047690868142590",
            "durationMs": 2.239205,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "9b01586c3194bd1bb9d172b59a49dee4",
            "spanId": "7fb454e2cb63d8a2",
            "parentSpanId": "96a3e9c885603044",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690868367647",
            "endTimeUnixNano": "1796047690869470715",
            "durationMs": 1.103068,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "9b01586c3194bd1bb9d172b59a49dee4",
            "spanId": "96a3e9c885603044",
            "parentSpanId": "40fb0f66b3e71402",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690868210372",
            "endTimeUnixNano": "1796047690870256789",
            "durationMs": 2.046417,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "9b01586c3194bd1bb9d172b59a49dee4",
            "spanId": "40fb0f66b3e71402",
            "parentSpanId": "9dc446e28dd75e4d",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690868178144",
            "endTimeUnixNano": "1796047690870440113",
            "durationMs": 2.261969,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "9b01586c3194bd1bb9d172b59a49dee4",
            "spanId": "9dc446e28dd75e4d",
            "parentSpanId": "d6d2f12285f2b5cf",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690868162250",
            "endTimeUnixNano": "1796047690870455526",
            "durationMs": 2.293276,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "9b01586c3194bd1bb9d172b59a49dee4",
            "spanId": "ccb22501c0760b55",
            "parentSpanId": "d6d2f12285f2b5cf",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690870725419",
            "endTimeUnixNano": "1796047690870767222",
            "durationMs": 0.041803,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "9b01586c3194bd1bb9d172b59a49dee4",
            "spanId": "67d81f173da4c730",
            "parentSpanId": "d6d2f12285f2b5cf",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690870873650",
            "endTimeUnixNano": "1796047690870893350",
            "durationMs": 0.0197,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "9b01586c3194bd1bb9d172b59a49dee4",
            "spanId": "9a82f17487045393",
            "parentSpanId": "d6d2f12285f2b5cf",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690870987080",
            "endTimeUnixNano": "1796047690871002984",
            "durationMs": 0.015904,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "9b01586c3194bd1bb9d172b59a49dee4",
            "spanId": "47e56fa819c8faad",
            "parentSpanId": "d6d2f12285f2b5cf",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690871068852",
            "endTimeUnixNano": "1796047690871091867",
            "durationMs": 0.023015,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "storageCleanup.measureWorktree",
            "traceId": "9b01586c3194bd1bb9d172b59a49dee4",
            "spanId": "0ea45d85bb7bdb71",
            "parentSpanId": "d6d2f12285f2b5cf",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690871117354",
            "endTimeUnixNano": "1796047690871573706",
            "durationMs": 0.456352,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.reportOrphanWorktrees",
            "traceId": "9b01586c3194bd1bb9d172b59a49dee4",
            "spanId": "d6d2f12285f2b5cf",
            "parentSpanId": "38584f0d6e13b3f8",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690857715153",
            "endTimeUnixNano": "1796047690871601077",
            "durationMs": 13.885924,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanWorktrees",
            "traceId": "9b01586c3194bd1bb9d172b59a49dee4",
            "spanId": "38584f0d6e13b3f8",
            "parentSpanId": "1b0a9960fbdf3334",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690856185167",
            "endTimeUnixNano": "1796047690871609169",
            "durationMs": 15.424002,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.sweep",
            "traceId": "9b01586c3194bd1bb9d172b59a49dee4",
            "spanId": "1b0a9960fbdf3334",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690855823707",
            "endTimeUnixNano": "1796047690871647356",
            "durationMs": 15.823649,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          }
        ]
      },
      {
        "run": 24,
        "warmup": false,
        "elapsedMs": 16.054844000000003,
        "nestedOrphanFound": true,
        "report": {
          "_tag": "Success",
          "value": {
            "trigger": "manual",
            "startedAt": "2026-11-30T14:08:10.872Z",
            "finishedAt": "2026-11-30T14:08:10.887Z",
            "entries": [
              {
                "kind": "worktree",
                "outcome": "kept",
                "reason": "No thread uses this worktree",
                "path": "$FIXTURE/data/worktrees/repository/replay/repo-wt",
                "projectPath": null,
                "threadId": null,
                "threadTitle": null,
                "bytes": 8192,
                "files": null
              }
            ],
            "counts": {
              "removed": 0,
              "kept": 1,
              "failed": 0
            },
            "omittedCount": 0,
            "bytesFreed": 0
          }
        },
        "spans": [
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "a9a816296556463116c4e1354f6a8a3b",
            "spanId": "01297254ed1219f8",
            "parentSpanId": "be2352ba198c20b5",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690872656744",
            "endTimeUnixNano": "1796047690872844374",
            "durationMs": 0.18763,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      WITH RECURSIVE retained_checkpoint_threads(thread_id) AS (\n        SELECT thread_id FROM orchestration_v2_projection_threads WHERE deleted_at IS NULL\n        UNION\n        SELECT json_extract(t\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.036,
              "db.client.connection.wait_time_ms": 0.050776
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanCheckpointRefs",
            "traceId": "a9a816296556463116c4e1354f6a8a3b",
            "spanId": "be2352ba198c20b5",
            "parentSpanId": "6eec3ab28ce79080",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690872643985",
            "endTimeUnixNano": "1796047690872881861",
            "durationMs": 0.237876,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.retryLeftovers",
            "traceId": "a9a816296556463116c4e1354f6a8a3b",
            "spanId": "e625c60b41b99f8f",
            "parentSpanId": "6eec3ab28ce79080",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690872900398",
            "endTimeUnixNano": "1796047690872974549",
            "durationMs": 0.074151,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveGitWorktreePath",
            "traceId": "a9a816296556463116c4e1354f6a8a3b",
            "spanId": "124975049715e51e",
            "parentSpanId": "7342a95407fd9683",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690873013377",
            "endTimeUnixNano": "1796047690873160326",
            "durationMs": 0.146949,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveWorktreeT3Home",
            "traceId": "a9a816296556463116c4e1354f6a8a3b",
            "spanId": "7342a95407fd9683",
            "parentSpanId": "f11be2d7aab9ca08",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690873006687",
            "endTimeUnixNano": "1796047690873167337",
            "durationMs": 0.16065,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "a9a816296556463116c4e1354f6a8a3b",
            "spanId": "8ceeaa10bf93a234",
            "parentSpanId": "f11be2d7aab9ca08",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690873379364",
            "endTimeUnixNano": "1796047690873479323",
            "durationMs": 0.099959,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n          SELECT t.payload_json, p.workspace_root AS \"workspaceRoot\"\n          FROM orchestration_v2_projection_threads t\n          JOIN projection_projects p ON p.project_id = t.project_id\n         \u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.028,
              "db.client.connection.wait_time_ms": 0.043385
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "BEGIN",
            "traceId": "a9a816296556463116c4e1354f6a8a3b",
            "spanId": "552e57d9d51ce1ad",
            "parentSpanId": "d31045665768c5ea",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690873594645",
            "endTimeUnixNano": "1796047690873639913",
            "durationMs": 0.045268,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "BEGIN"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "a9a816296556463116c4e1354f6a8a3b",
            "spanId": "023998b58715b16b",
            "parentSpanId": "e1ee1c94c0969068",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690873731149",
            "endTimeUnixNano": "1796047690873819091",
            "durationMs": 0.087942,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n            SELECT\n              t.thread_id,\n              t.payload_json,\n              t.fork_run_ids_json,\n              CASE\n                WHEN json_extract(t.payload_json, '$.forkedFrom.type'\u2026[truncated]",
              "db.client.connection.wait_time_ms": 0.011397
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "a9a816296556463116c4e1354f6a8a3b",
            "spanId": "125c2b08bad951e1",
            "parentSpanId": "e1ee1c94c0969068",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690873857538",
            "endTimeUnixNano": "1796047690873897598",
            "durationMs": 0.04006,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n        SELECT MAX(sequence) AS snapshot_sequence\n        FROM orchestration_events\n        WHERE application_event_version = 2\n          AND aggregate_kind = 'thread'\n      ",
              "db.client.connection.wait_time_ms": 0.005849
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readShellSnapshotRows",
            "traceId": "a9a816296556463116c4e1354f6a8a3b",
            "spanId": "e1ee1c94c0969068",
            "parentSpanId": "d31045665768c5ea",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690873661896",
            "endTimeUnixNano": "1796047690873909135",
            "durationMs": 0.247239,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "COMMIT",
            "traceId": "a9a816296556463116c4e1354f6a8a3b",
            "spanId": "8cef0fcd8d3666c5",
            "parentSpanId": "d31045665768c5ea",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690873918770",
            "endTimeUnixNano": "1796047690873941393",
            "durationMs": 0.022623,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "COMMIT"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sql.transaction",
            "traceId": "a9a816296556463116c4e1354f6a8a3b",
            "spanId": "d31045665768c5ea",
            "parentSpanId": "96de45395e3e010d",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690873546784",
            "endTimeUnixNano": "1796047690873963787",
            "durationMs": 0.417003,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.client.connection.wait_time_ms": 0.039729,
              "db.connection": "reader",
              "db.lock_wait_ms": 0.022
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.pendingBackgroundDataByThreadId",
            "traceId": "a9a816296556463116c4e1354f6a8a3b",
            "spanId": "c583fa4edfbce53a",
            "parentSpanId": "51d1d796be719ff3",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690874004147",
            "endTimeUnixNano": "1796047690874009866",
            "durationMs": 0.005719,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.decodeShellSnapshot",
            "traceId": "a9a816296556463116c4e1354f6a8a3b",
            "spanId": "51d1d796be719ff3",
            "parentSpanId": "96de45395e3e010d",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690873990837",
            "endTimeUnixNano": "1796047690874017898",
            "durationMs": 0.027061,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "a9a816296556463116c4e1354f6a8a3b",
            "spanId": "4564e918d5bf1a60",
            "parentSpanId": "6d095eda3eef1adf",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690874052810",
            "endTimeUnixNano": "1796047690874152288",
            "durationMs": 0.099478,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.024,
              "db.client.connection.wait_time_ms": 0.031797
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectStoreV2.listShells",
            "traceId": "a9a816296556463116c4e1354f6a8a3b",
            "spanId": "6d095eda3eef1adf",
            "parentSpanId": "96de45395e3e010d",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690874025920",
            "endTimeUnixNano": "1796047690874216254",
            "durationMs": 0.190334,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.readThreads",
            "traceId": "a9a816296556463116c4e1354f6a8a3b",
            "spanId": "96de45395e3e010d",
            "parentSpanId": "f11be2d7aab9ca08",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690873516028",
            "endTimeUnixNano": "1796047690874223996",
            "durationMs": 0.707968,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "a9a816296556463116c4e1354f6a8a3b",
            "spanId": "400fb55b28392d85",
            "parentSpanId": "f11be2d7aab9ca08",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690874248142",
            "endTimeUnixNano": "1796047690874341982",
            "durationMs": 0.09384,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.028,
              "db.client.connection.wait_time_ms": 0.04019
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "a9a816296556463116c4e1354f6a8a3b",
            "spanId": "c9976ce958ce3c1e",
            "parentSpanId": "a22e106ce05d8fab",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690874392788",
            "endTimeUnixNano": "1796047690874471666",
            "durationMs": 0.078878,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT DISTINCT json_extract(payload_json, '$.worktreePath') AS \"worktreePath\"\n      FROM orchestration_v2_projection_threads\n      WHERE json_extract(payload_json, '$.worktreePath') IS NOT NUL\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.038,
              "db.client.connection.wait_time_ms": 0.045087
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "a9a816296556463116c4e1354f6a8a3b",
            "spanId": "1c73d559737ad91a",
            "parentSpanId": "b30d135933d848f9",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690875475145",
            "endTimeUnixNano": "1796047690876570972",
            "durationMs": 1.095827,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "a9a816296556463116c4e1354f6a8a3b",
            "spanId": "b30d135933d848f9",
            "parentSpanId": "64348324ec46cf1a",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690875320794",
            "endTimeUnixNano": "1796047690877380181",
            "durationMs": 2.059387,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "a9a816296556463116c4e1354f6a8a3b",
            "spanId": "64348324ec46cf1a",
            "parentSpanId": "21385c9cf32d772b",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690875285942",
            "endTimeUnixNano": "1796047690877573570",
            "durationMs": 2.287628,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/plain-notes",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "a9a816296556463116c4e1354f6a8a3b",
            "spanId": "f1328b932bdbdf21",
            "parentSpanId": "e76b335c16d6f899",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690877778706",
            "endTimeUnixNano": "1796047690878874613",
            "durationMs": 1.095907,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "a9a816296556463116c4e1354f6a8a3b",
            "spanId": "e76b335c16d6f899",
            "parentSpanId": "d490ef1a7de9cce9",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690877634901",
            "endTimeUnixNano": "1796047690879631574",
            "durationMs": 1.996673,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "a9a816296556463116c4e1354f6a8a3b",
            "spanId": "d490ef1a7de9cce9",
            "parentSpanId": "21385c9cf32d772b",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690877597495",
            "endTimeUnixNano": "1796047690879792024",
            "durationMs": 2.194529,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/plain-notes",
              "git.args_count": 3
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "a9a816296556463116c4e1354f6a8a3b",
            "spanId": "21385c9cf32d772b",
            "parentSpanId": "a22e106ce05d8fab",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690875258801",
            "endTimeUnixNano": "1796047690879852434",
            "durationMs": 4.593633,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Failure",
              "cause": "GitCommandError: Git command failed in GitVcsDriver.listWorktreePaths ($FIXTURE/fx/plain-notes): Git command exited with a non-zero status. (not_a_repository)\n    at file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:1635:11\n    at executeWorktreeList (file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:7803:5)\n    at executeWorktreeList (definition) (file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:1681:38)\n    at StorageCleanup.reportOrphanWorktrees (file://$CHECKOUT/apps/server/src/storageCleanup.ts:1967:12)\n    at StorageCleanup.reportOrphanWorktrees (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:556:40)\n    at StorageCleanup.cleanWorktrees (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2193:37)\n    at StorageCleanup.cleanWorktrees (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:1208:33)\n    at StorageCleanup.sweep (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2293:24)\n    at StorageCleanup.sweep (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2162:24)\n    at DrainableWorker.makeDrainableWorker (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2290:25)\n    at DrainableWorker.makeDrainableWorker (definition) (file://$CHECKOUT/packages/shared/src/DrainableWorker.ts:20:43)"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "a9a816296556463116c4e1354f6a8a3b",
            "spanId": "d33a01396c1c7d2e",
            "parentSpanId": "7e3575f2f0b1c979",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690880174245",
            "endTimeUnixNano": "1796047690881194809",
            "durationMs": 1.020564,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "a9a816296556463116c4e1354f6a8a3b",
            "spanId": "7e3575f2f0b1c979",
            "parentSpanId": "4c8889d5cbe9ae9b",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690880032263",
            "endTimeUnixNano": "1796047690882000283",
            "durationMs": 1.96802,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "a9a816296556463116c4e1354f6a8a3b",
            "spanId": "4c8889d5cbe9ae9b",
            "parentSpanId": "1a938c41d21ef1d7",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690879996870",
            "endTimeUnixNano": "1796047690882164298",
            "durationMs": 2.167428,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo/packages/app",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "a9a816296556463116c4e1354f6a8a3b",
            "spanId": "1a938c41d21ef1d7",
            "parentSpanId": "a22e106ce05d8fab",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690879980245",
            "endTimeUnixNano": "1796047690882178619",
            "durationMs": 2.198374,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "a9a816296556463116c4e1354f6a8a3b",
            "spanId": "a5f9327cc325a63c",
            "parentSpanId": "1c48f75f004101d5",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690882400410",
            "endTimeUnixNano": "1796047690883410640",
            "durationMs": 1.01023,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "a9a816296556463116c4e1354f6a8a3b",
            "spanId": "1c48f75f004101d5",
            "parentSpanId": "3d231e8ceb099140",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690882247993",
            "endTimeUnixNano": "1796047690884193689",
            "durationMs": 1.945696,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "a9a816296556463116c4e1354f6a8a3b",
            "spanId": "3d231e8ceb099140",
            "parentSpanId": "3ee00cd43231e63e",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690882215324",
            "endTimeUnixNano": "1796047690884370384",
            "durationMs": 2.15506,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo-link",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "a9a816296556463116c4e1354f6a8a3b",
            "spanId": "3ee00cd43231e63e",
            "parentSpanId": "a22e106ce05d8fab",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690882199470",
            "endTimeUnixNano": "1796047690884384725",
            "durationMs": 2.185255,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "a9a816296556463116c4e1354f6a8a3b",
            "spanId": "4ebaaf298b37035b",
            "parentSpanId": "fa436d46b5107624",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690884596161",
            "endTimeUnixNano": "1796047690885656815",
            "durationMs": 1.060654,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "a9a816296556463116c4e1354f6a8a3b",
            "spanId": "fa436d46b5107624",
            "parentSpanId": "5193d07f5718d93e",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690884458956",
            "endTimeUnixNano": "1796047690886381838",
            "durationMs": 1.922882,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "a9a816296556463116c4e1354f6a8a3b",
            "spanId": "5193d07f5718d93e",
            "parentSpanId": "c8b44798da647789",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690884420559",
            "endTimeUnixNano": "1796047690886543670",
            "durationMs": 2.123111,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "a9a816296556463116c4e1354f6a8a3b",
            "spanId": "c8b44798da647789",
            "parentSpanId": "a22e106ce05d8fab",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690884405246",
            "endTimeUnixNano": "1796047690886559924",
            "durationMs": 2.154678,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "a9a816296556463116c4e1354f6a8a3b",
            "spanId": "15296aab6d226245",
            "parentSpanId": "a22e106ce05d8fab",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690886840854",
            "endTimeUnixNano": "1796047690886882957",
            "durationMs": 0.042103,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "a9a816296556463116c4e1354f6a8a3b",
            "spanId": "39175ac1e2ab2a2e",
            "parentSpanId": "a22e106ce05d8fab",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690886989757",
            "endTimeUnixNano": "1796047690887012641",
            "durationMs": 0.022884,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "a9a816296556463116c4e1354f6a8a3b",
            "spanId": "1f2035227e66d17b",
            "parentSpanId": "a22e106ce05d8fab",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690887106080",
            "endTimeUnixNano": "1796047690887123517",
            "durationMs": 0.017437,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "a9a816296556463116c4e1354f6a8a3b",
            "spanId": "c0259745f3fc179c",
            "parentSpanId": "a22e106ce05d8fab",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690887189836",
            "endTimeUnixNano": "1796047690887207812",
            "durationMs": 0.017976,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "storageCleanup.measureWorktree",
            "traceId": "a9a816296556463116c4e1354f6a8a3b",
            "spanId": "d985dec4a5940680",
            "parentSpanId": "a22e106ce05d8fab",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690887232690",
            "endTimeUnixNano": "1796047690887672957",
            "durationMs": 0.440267,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.reportOrphanWorktrees",
            "traceId": "a9a816296556463116c4e1354f6a8a3b",
            "spanId": "a22e106ce05d8fab",
            "parentSpanId": "f11be2d7aab9ca08",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690874384876",
            "endTimeUnixNano": "1796047690887700088",
            "durationMs": 13.315212,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanWorktrees",
            "traceId": "a9a816296556463116c4e1354f6a8a3b",
            "spanId": "f11be2d7aab9ca08",
            "parentSpanId": "6eec3ab28ce79080",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690872986727",
            "endTimeUnixNano": "1796047690887706347",
            "durationMs": 14.71962,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.sweep",
            "traceId": "a9a816296556463116c4e1354f6a8a3b",
            "spanId": "6eec3ab28ce79080",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690872607531",
            "endTimeUnixNano": "1796047690887740128",
            "durationMs": 15.132597,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          }
        ]
      },
      {
        "run": 25,
        "warmup": false,
        "elapsedMs": 17.31007999999997,
        "nestedOrphanFound": true,
        "report": {
          "_tag": "Success",
          "value": {
            "trigger": "manual",
            "startedAt": "2026-11-30T14:08:10.888Z",
            "finishedAt": "2026-11-30T14:08:10.905Z",
            "entries": [
              {
                "kind": "worktree",
                "outcome": "kept",
                "reason": "No thread uses this worktree",
                "path": "$FIXTURE/data/worktrees/repository/replay/repo-wt",
                "projectPath": null,
                "threadId": null,
                "threadTitle": null,
                "bytes": 8192,
                "files": null
              }
            ],
            "counts": {
              "removed": 0,
              "kept": 1,
              "failed": 0
            },
            "omittedCount": 0,
            "bytesFreed": 0
          }
        },
        "spans": [
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "102c6833d5e0031082c8ca7205282d50",
            "spanId": "8a5d3e07da94580e",
            "parentSpanId": "f776ff2986836137",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690888739110",
            "endTimeUnixNano": "1796047690888864668",
            "durationMs": 0.125558,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      WITH RECURSIVE retained_checkpoint_threads(thread_id) AS (\n        SELECT thread_id FROM orchestration_v2_projection_threads WHERE deleted_at IS NULL\n        UNION\n        SELECT json_extract(t\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.037,
              "db.client.connection.wait_time_ms": 0.051267
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanCheckpointRefs",
            "traceId": "102c6833d5e0031082c8ca7205282d50",
            "spanId": "f776ff2986836137",
            "parentSpanId": "643e3e2bd21a875f",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690888728414",
            "endTimeUnixNano": "1796047690888903956",
            "durationMs": 0.175542,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.retryLeftovers",
            "traceId": "102c6833d5e0031082c8ca7205282d50",
            "spanId": "2383354687ab8f7e",
            "parentSpanId": "643e3e2bd21a875f",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690888921162",
            "endTimeUnixNano": "1796047690888999339",
            "durationMs": 0.078177,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveGitWorktreePath",
            "traceId": "102c6833d5e0031082c8ca7205282d50",
            "spanId": "ae63f18dd7c147b1",
            "parentSpanId": "4b1dfe77c000e846",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690889038598",
            "endTimeUnixNano": "1796047690889225927",
            "durationMs": 0.187329,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveWorktreeT3Home",
            "traceId": "102c6833d5e0031082c8ca7205282d50",
            "spanId": "4b1dfe77c000e846",
            "parentSpanId": "b8253777e5a98ef6",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690889032578",
            "endTimeUnixNano": "1796047690889235742",
            "durationMs": 0.203164,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "102c6833d5e0031082c8ca7205282d50",
            "spanId": "cc5daedac57635eb",
            "parentSpanId": "b8253777e5a98ef6",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690889511254",
            "endTimeUnixNano": "1796047690889799564",
            "durationMs": 0.28831,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n          SELECT t.payload_json, p.workspace_root AS \"workspaceRoot\"\n          FROM orchestration_v2_projection_threads t\n          JOIN projection_projects p ON p.project_id = t.project_id\n         \u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.041,
              "db.client.connection.wait_time_ms": 0.06713
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "BEGIN",
            "traceId": "102c6833d5e0031082c8ca7205282d50",
            "spanId": "d609df9b7af2d2da",
            "parentSpanId": "cd884156d1a58bbc",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690889935638",
            "endTimeUnixNano": "1796047690890008186",
            "durationMs": 0.072548,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "BEGIN"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "102c6833d5e0031082c8ca7205282d50",
            "spanId": "540c698bdbae34d2",
            "parentSpanId": "1d5cdeeea6cf3608",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690890110248",
            "endTimeUnixNano": "1796047690890242316",
            "durationMs": 0.132068,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n            SELECT\n              t.thread_id,\n              t.payload_json,\n              t.fork_run_ids_json,\n              CASE\n                WHEN json_extract(t.payload_json, '$.forkedFrom.type'\u2026[truncated]",
              "db.client.connection.wait_time_ms": 0.012409
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "102c6833d5e0031082c8ca7205282d50",
            "spanId": "01eb77045d700599",
            "parentSpanId": "1d5cdeeea6cf3608",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690890294083",
            "endTimeUnixNano": "1796047690890362565",
            "durationMs": 0.068482,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n        SELECT MAX(sequence) AS snapshot_sequence\n        FROM orchestration_events\n        WHERE application_event_version = 2\n          AND aggregate_kind = 'thread'\n      ",
              "db.client.connection.wait_time_ms": 0.007561
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readShellSnapshotRows",
            "traceId": "102c6833d5e0031082c8ca7205282d50",
            "spanId": "1d5cdeeea6cf3608",
            "parentSpanId": "cd884156d1a58bbc",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690890033474",
            "endTimeUnixNano": "1796047690890376216",
            "durationMs": 0.342742,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "COMMIT",
            "traceId": "102c6833d5e0031082c8ca7205282d50",
            "spanId": "9337402ad9956077",
            "parentSpanId": "cd884156d1a58bbc",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690890386581",
            "endTimeUnixNano": "1796047690890430567",
            "durationMs": 0.043986,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "COMMIT"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sql.transaction",
            "traceId": "102c6833d5e0031082c8ca7205282d50",
            "spanId": "cd884156d1a58bbc",
            "parentSpanId": "9e8c26f9d694d007",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690889883570",
            "endTimeUnixNano": "1796047690890453972",
            "durationMs": 0.570402,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.client.connection.wait_time_ms": 0.045097,
              "db.connection": "reader",
              "db.lock_wait_ms": 0.027
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.pendingBackgroundDataByThreadId",
            "traceId": "102c6833d5e0031082c8ca7205282d50",
            "spanId": "cd9f9e8ed19f6e1c",
            "parentSpanId": "0294948786c81ab6",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690890502885",
            "endTimeUnixNano": "1796047690890508143",
            "durationMs": 0.005258,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.decodeShellSnapshot",
            "traceId": "102c6833d5e0031082c8ca7205282d50",
            "spanId": "0294948786c81ab6",
            "parentSpanId": "9e8c26f9d694d007",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690890488554",
            "endTimeUnixNano": "1796047690890517407",
            "durationMs": 0.028853,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "102c6833d5e0031082c8ca7205282d50",
            "spanId": "b96a5ede4d58244a",
            "parentSpanId": "901a84283914fd0a",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690890555113",
            "endTimeUnixNano": "1796047690890690796",
            "durationMs": 0.135683,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.029,
              "db.client.connection.wait_time_ms": 0.037907
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectStoreV2.listShells",
            "traceId": "102c6833d5e0031082c8ca7205282d50",
            "spanId": "901a84283914fd0a",
            "parentSpanId": "9e8c26f9d694d007",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690890528684",
            "endTimeUnixNano": "1796047690890755242",
            "durationMs": 0.226558,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.readThreads",
            "traceId": "102c6833d5e0031082c8ca7205282d50",
            "spanId": "9e8c26f9d694d007",
            "parentSpanId": "b8253777e5a98ef6",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690889851792",
            "endTimeUnixNano": "1796047690890763745",
            "durationMs": 0.911953,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "102c6833d5e0031082c8ca7205282d50",
            "spanId": "067c3be57c5a108b",
            "parentSpanId": "b8253777e5a98ef6",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690890790014",
            "endTimeUnixNano": "1796047690890896783",
            "durationMs": 0.106769,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.022,
              "db.client.connection.wait_time_ms": 0.032679
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "102c6833d5e0031082c8ca7205282d50",
            "spanId": "a10d2417012d8645",
            "parentSpanId": "12024f383f352aac",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690890950624",
            "endTimeUnixNano": "1796047690891035761",
            "durationMs": 0.085137,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT DISTINCT json_extract(payload_json, '$.worktreePath') AS \"worktreePath\"\n      FROM orchestration_v2_projection_threads\n      WHERE json_extract(payload_json, '$.worktreePath') IS NOT NUL\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.033,
              "db.client.connection.wait_time_ms": 0.039879
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "102c6833d5e0031082c8ca7205282d50",
            "spanId": "c8afe19372c6ae71",
            "parentSpanId": "0ffcb6a40e7c895e",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690892049436",
            "endTimeUnixNano": "1796047690893188307",
            "durationMs": 1.138871,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "102c6833d5e0031082c8ca7205282d50",
            "spanId": "0ffcb6a40e7c895e",
            "parentSpanId": "b441af7ab23fed74",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690891895225",
            "endTimeUnixNano": "1796047690894062453",
            "durationMs": 2.167228,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "102c6833d5e0031082c8ca7205282d50",
            "spanId": "b441af7ab23fed74",
            "parentSpanId": "b7663155b8351c03",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690891858180",
            "endTimeUnixNano": "1796047690894242311",
            "durationMs": 2.384131,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/plain-notes",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "102c6833d5e0031082c8ca7205282d50",
            "spanId": "f7a2ba9f4c12d21e",
            "parentSpanId": "748ec913bc6cb9b5",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690894477663",
            "endTimeUnixNano": "1796047690895510146",
            "durationMs": 1.032483,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "102c6833d5e0031082c8ca7205282d50",
            "spanId": "748ec913bc6cb9b5",
            "parentSpanId": "eb9da582ea92830a",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690894322241",
            "endTimeUnixNano": "1796047690896299565",
            "durationMs": 1.977324,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "102c6833d5e0031082c8ca7205282d50",
            "spanId": "eb9da582ea92830a",
            "parentSpanId": "b7663155b8351c03",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690894280989",
            "endTimeUnixNano": "1796047690896495067",
            "durationMs": 2.214078,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/plain-notes",
              "git.args_count": 3
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "102c6833d5e0031082c8ca7205282d50",
            "spanId": "b7663155b8351c03",
            "parentSpanId": "12024f383f352aac",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690891837989",
            "endTimeUnixNano": "1796047690896558822",
            "durationMs": 4.720833,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Failure",
              "cause": "GitCommandError: Git command failed in GitVcsDriver.listWorktreePaths ($FIXTURE/fx/plain-notes): Git command exited with a non-zero status. (not_a_repository)\n    at file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:1635:11\n    at executeWorktreeList (file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:7803:5)\n    at executeWorktreeList (definition) (file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:1681:38)\n    at StorageCleanup.reportOrphanWorktrees (file://$CHECKOUT/apps/server/src/storageCleanup.ts:1967:12)\n    at StorageCleanup.reportOrphanWorktrees (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:556:40)\n    at StorageCleanup.cleanWorktrees (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2193:37)\n    at StorageCleanup.cleanWorktrees (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:1208:33)\n    at StorageCleanup.sweep (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2293:24)\n    at StorageCleanup.sweep (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2162:24)\n    at DrainableWorker.makeDrainableWorker (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2290:25)\n    at DrainableWorker.makeDrainableWorker (definition) (file://$CHECKOUT/packages/shared/src/DrainableWorker.ts:20:43)"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "102c6833d5e0031082c8ca7205282d50",
            "spanId": "0e962499a5bf0bf3",
            "parentSpanId": "96a11937525c1893",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690896911309",
            "endTimeUnixNano": "1796047690898057251",
            "durationMs": 1.145942,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "102c6833d5e0031082c8ca7205282d50",
            "spanId": "96a11937525c1893",
            "parentSpanId": "a3433a889de9fa72",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690896760263",
            "endTimeUnixNano": "1796047690898880140",
            "durationMs": 2.119877,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "102c6833d5e0031082c8ca7205282d50",
            "spanId": "a3433a889de9fa72",
            "parentSpanId": "c56e7c2d4cd6d357",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690896718721",
            "endTimeUnixNano": "1796047690899117364",
            "durationMs": 2.398643,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo/packages/app",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "102c6833d5e0031082c8ca7205282d50",
            "spanId": "c56e7c2d4cd6d357",
            "parentSpanId": "12024f383f352aac",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690896699352",
            "endTimeUnixNano": "1796047690899137334",
            "durationMs": 2.437982,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "102c6833d5e0031082c8ca7205282d50",
            "spanId": "793e7f4000c561cc",
            "parentSpanId": "c6c4f3cc9ff357bb",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690899523682",
            "endTimeUnixNano": "1796047690900588923",
            "durationMs": 1.065241,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "102c6833d5e0031082c8ca7205282d50",
            "spanId": "c6c4f3cc9ff357bb",
            "parentSpanId": "aa05717dca9b4be9",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690899246517",
            "endTimeUnixNano": "1796047690901377952",
            "durationMs": 2.131435,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "102c6833d5e0031082c8ca7205282d50",
            "spanId": "aa05717dca9b4be9",
            "parentSpanId": "cad4ca79b67bad25",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690899193398",
            "endTimeUnixNano": "1796047690901558522",
            "durationMs": 2.365124,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo-link",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "102c6833d5e0031082c8ca7205282d50",
            "spanId": "cad4ca79b67bad25",
            "parentSpanId": "12024f383f352aac",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690899161941",
            "endTimeUnixNano": "1796047690901572092",
            "durationMs": 2.410151,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "102c6833d5e0031082c8ca7205282d50",
            "spanId": "682a43b18e0cc614",
            "parentSpanId": "e83030fdcf71ef6e",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690901788835",
            "endTimeUnixNano": "1796047690902783732",
            "durationMs": 0.994897,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "102c6833d5e0031082c8ca7205282d50",
            "spanId": "e83030fdcf71ef6e",
            "parentSpanId": "a6c09140154eb686",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690901647024",
            "endTimeUnixNano": "1796047690903544168",
            "durationMs": 1.897144,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "102c6833d5e0031082c8ca7205282d50",
            "spanId": "a6c09140154eb686",
            "parentSpanId": "8e0167fcd4bdbf51",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690901611841",
            "endTimeUnixNano": "1796047690903699730",
            "durationMs": 2.087889,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "102c6833d5e0031082c8ca7205282d50",
            "spanId": "8e0167fcd4bdbf51",
            "parentSpanId": "12024f383f352aac",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690901593584",
            "endTimeUnixNano": "1796047690903712780",
            "durationMs": 2.119196,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "102c6833d5e0031082c8ca7205282d50",
            "spanId": "c75158c53cc27dfb",
            "parentSpanId": "12024f383f352aac",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690903978477",
            "endTimeUnixNano": "1796047690904019618",
            "durationMs": 0.041141,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "102c6833d5e0031082c8ca7205282d50",
            "spanId": "0bc157de4c545b04",
            "parentSpanId": "12024f383f352aac",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690904125296",
            "endTimeUnixNano": "1796047690904144254",
            "durationMs": 0.018958,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "102c6833d5e0031082c8ca7205282d50",
            "spanId": "0353408548f02cdc",
            "parentSpanId": "12024f383f352aac",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690904236392",
            "endTimeUnixNano": "1796047690904252696",
            "durationMs": 0.016304,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "102c6833d5e0031082c8ca7205282d50",
            "spanId": "b1511b0962ccdd47",
            "parentSpanId": "12024f383f352aac",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690904356021",
            "endTimeUnixNano": "1796047690904383692",
            "durationMs": 0.027671,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "storageCleanup.measureWorktree",
            "traceId": "102c6833d5e0031082c8ca7205282d50",
            "spanId": "57843724dfdffdc9",
            "parentSpanId": "12024f383f352aac",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690904435620",
            "endTimeUnixNano": "1796047690904912382",
            "durationMs": 0.476762,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.reportOrphanWorktrees",
            "traceId": "102c6833d5e0031082c8ca7205282d50",
            "spanId": "12024f383f352aac",
            "parentSpanId": "b8253777e5a98ef6",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690890942001",
            "endTimeUnixNano": "1796047690904943328",
            "durationMs": 14.001327,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanWorktrees",
            "traceId": "102c6833d5e0031082c8ca7205282d50",
            "spanId": "b8253777e5a98ef6",
            "parentSpanId": "643e3e2bd21a875f",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690889011978",
            "endTimeUnixNano": "1796047690904950859",
            "durationMs": 15.938881,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.sweep",
            "traceId": "102c6833d5e0031082c8ca7205282d50",
            "spanId": "643e3e2bd21a875f",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690888702556",
            "endTimeUnixNano": "1796047690904989697",
            "durationMs": 16.287141,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          }
        ]
      },
      {
        "run": 26,
        "warmup": false,
        "elapsedMs": 18.402341999999976,
        "nestedOrphanFound": true,
        "report": {
          "_tag": "Success",
          "value": {
            "trigger": "manual",
            "startedAt": "2026-11-30T14:08:10.906Z",
            "finishedAt": "2026-11-30T14:08:10.923Z",
            "entries": [
              {
                "kind": "worktree",
                "outcome": "kept",
                "reason": "No thread uses this worktree",
                "path": "$FIXTURE/data/worktrees/repository/replay/repo-wt",
                "projectPath": null,
                "threadId": null,
                "threadTitle": null,
                "bytes": 8192,
                "files": null
              }
            ],
            "counts": {
              "removed": 0,
              "kept": 1,
              "failed": 0
            },
            "omittedCount": 0,
            "bytesFreed": 0
          }
        },
        "spans": [
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "035fc6f9a7c70e072c26294ff8b04364",
            "spanId": "8b7bf5b54585355b",
            "parentSpanId": "8580ae8af42ffcdb",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690906001519",
            "endTimeUnixNano": "1796047690906179004",
            "durationMs": 0.177485,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      WITH RECURSIVE retained_checkpoint_threads(thread_id) AS (\n        SELECT thread_id FROM orchestration_v2_projection_threads WHERE deleted_at IS NULL\n        UNION\n        SELECT json_extract(t\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.036,
              "db.client.connection.wait_time_ms": 0.052789
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanCheckpointRefs",
            "traceId": "035fc6f9a7c70e072c26294ff8b04364",
            "spanId": "8580ae8af42ffcdb",
            "parentSpanId": "f12a77de591f8002",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690905989170",
            "endTimeUnixNano": "1796047690906213486",
            "durationMs": 0.224316,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.retryLeftovers",
            "traceId": "035fc6f9a7c70e072c26294ff8b04364",
            "spanId": "703b7783a46e570b",
            "parentSpanId": "f12a77de591f8002",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690906229720",
            "endTimeUnixNano": "1796047690906309349",
            "durationMs": 0.079629,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveGitWorktreePath",
            "traceId": "035fc6f9a7c70e072c26294ff8b04364",
            "spanId": "e5041cadf42e9140",
            "parentSpanId": "c2b903d550bc50b1",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690906348247",
            "endTimeUnixNano": "1796047690906523409",
            "durationMs": 0.175162,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveWorktreeT3Home",
            "traceId": "035fc6f9a7c70e072c26294ff8b04364",
            "spanId": "c2b903d550bc50b1",
            "parentSpanId": "669eac64069a1a92",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690906342228",
            "endTimeUnixNano": "1796047690906531380",
            "durationMs": 0.189152,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "035fc6f9a7c70e072c26294ff8b04364",
            "spanId": "3fda4b8d27f0f247",
            "parentSpanId": "669eac64069a1a92",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690906740713",
            "endTimeUnixNano": "1796047690906861884",
            "durationMs": 0.121171,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n          SELECT t.payload_json, p.workspace_root AS \"workspaceRoot\"\n          FROM orchestration_v2_projection_threads t\n          JOIN projection_projects p ON p.project_id = t.project_id\n         \u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.029,
              "db.client.connection.wait_time_ms": 0.045268
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "BEGIN",
            "traceId": "035fc6f9a7c70e072c26294ff8b04364",
            "spanId": "c898018e953c35fb",
            "parentSpanId": "15f19bd635920d63",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690906973481",
            "endTimeUnixNano": "1796047690907025909",
            "durationMs": 0.052428,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "BEGIN"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "035fc6f9a7c70e072c26294ff8b04364",
            "spanId": "870559fc26acd32f",
            "parentSpanId": "71d0faf4f6be3854",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690907116014",
            "endTimeUnixNano": "1796047690907207681",
            "durationMs": 0.091667,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n            SELECT\n              t.thread_id,\n              t.payload_json,\n              t.fork_run_ids_json,\n              CASE\n                WHEN json_extract(t.payload_json, '$.forkedFrom.type'\u2026[truncated]",
              "db.client.connection.wait_time_ms": 0.011116
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "035fc6f9a7c70e072c26294ff8b04364",
            "spanId": "357f4fb3d7f27855",
            "parentSpanId": "71d0faf4f6be3854",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690907234401",
            "endTimeUnixNano": "1796047690907293810",
            "durationMs": 0.059409,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n        SELECT MAX(sequence) AS snapshot_sequence\n        FROM orchestration_events\n        WHERE application_event_version = 2\n          AND aggregate_kind = 'thread'\n      ",
              "db.client.connection.wait_time_ms": 0.007301
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readShellSnapshotRows",
            "traceId": "035fc6f9a7c70e072c26294ff8b04364",
            "spanId": "71d0faf4f6be3854",
            "parentSpanId": "15f19bd635920d63",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690907048172",
            "endTimeUnixNano": "1796047690907308011",
            "durationMs": 0.259839,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "COMMIT",
            "traceId": "035fc6f9a7c70e072c26294ff8b04364",
            "spanId": "093703129d9c1ada",
            "parentSpanId": "15f19bd635920d63",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690907318146",
            "endTimeUnixNano": "1796047690907350614",
            "durationMs": 0.032468,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "COMMIT"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sql.transaction",
            "traceId": "035fc6f9a7c70e072c26294ff8b04364",
            "spanId": "15f19bd635920d63",
            "parentSpanId": "70461f0faa72a8fa",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690906926971",
            "endTimeUnixNano": "1796047690907373429",
            "durationMs": 0.446458,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.client.connection.wait_time_ms": 0.03988,
              "db.connection": "reader",
              "db.lock_wait_ms": 0.023
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.pendingBackgroundDataByThreadId",
            "traceId": "035fc6f9a7c70e072c26294ff8b04364",
            "spanId": "1f9b3e60b5c1b766",
            "parentSpanId": "08d15b1838777862",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690907410464",
            "endTimeUnixNano": "1796047690907415221",
            "durationMs": 0.004757,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.decodeShellSnapshot",
            "traceId": "035fc6f9a7c70e072c26294ff8b04364",
            "spanId": "08d15b1838777862",
            "parentSpanId": "70461f0faa72a8fa",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690907397975",
            "endTimeUnixNano": "1796047690907423133",
            "durationMs": 0.025158,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "035fc6f9a7c70e072c26294ff8b04364",
            "spanId": "5a0400c2a509d160",
            "parentSpanId": "0bb46ecc45137421",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690907466888",
            "endTimeUnixNano": "1796047690907588610",
            "durationMs": 0.121722,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.025,
              "db.client.connection.wait_time_ms": 0.03342
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectStoreV2.listShells",
            "traceId": "035fc6f9a7c70e072c26294ff8b04364",
            "spanId": "0bb46ecc45137421",
            "parentSpanId": "70461f0faa72a8fa",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690907438926",
            "endTimeUnixNano": "1796047690907656772",
            "durationMs": 0.217846,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.readThreads",
            "traceId": "035fc6f9a7c70e072c26294ff8b04364",
            "spanId": "70461f0faa72a8fa",
            "parentSpanId": "669eac64069a1a92",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690906899601",
            "endTimeUnixNano": "1796047690907666286",
            "durationMs": 0.766685,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "035fc6f9a7c70e072c26294ff8b04364",
            "spanId": "3fb29c72e4912d6b",
            "parentSpanId": "669eac64069a1a92",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690907694198",
            "endTimeUnixNano": "1796047690907792304",
            "durationMs": 0.098106,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.019,
              "db.client.connection.wait_time_ms": 0.030786
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "035fc6f9a7c70e072c26294ff8b04364",
            "spanId": "941b579f6c68311b",
            "parentSpanId": "a013d7f6d17c6182",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690907845724",
            "endTimeUnixNano": "1796047690907920706",
            "durationMs": 0.074982,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT DISTINCT json_extract(payload_json, '$.worktreePath') AS \"worktreePath\"\n      FROM orchestration_v2_projection_threads\n      WHERE json_extract(payload_json, '$.worktreePath') IS NOT NUL\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.029,
              "db.client.connection.wait_time_ms": 0.036094
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "035fc6f9a7c70e072c26294ff8b04364",
            "spanId": "82feec5e7a95f1f5",
            "parentSpanId": "3fe99efb15d07123",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690908989363",
            "endTimeUnixNano": "1796047690910509343",
            "durationMs": 1.51998,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "035fc6f9a7c70e072c26294ff8b04364",
            "spanId": "3fe99efb15d07123",
            "parentSpanId": "dab1291d97f580a6",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690908840190",
            "endTimeUnixNano": "1796047690911170541",
            "durationMs": 2.330351,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "035fc6f9a7c70e072c26294ff8b04364",
            "spanId": "dab1291d97f580a6",
            "parentSpanId": "a34c5796eda02061",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690908802564",
            "endTimeUnixNano": "1796047690911347846",
            "durationMs": 2.545282,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/plain-notes",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "035fc6f9a7c70e072c26294ff8b04364",
            "spanId": "779c945f17df6768",
            "parentSpanId": "450c08208be0331f",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690911551981",
            "endTimeUnixNano": "1796047690912564734",
            "durationMs": 1.012753,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "035fc6f9a7c70e072c26294ff8b04364",
            "spanId": "450c08208be0331f",
            "parentSpanId": "1393bfb8c939e45f",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690911409258",
            "endTimeUnixNano": "1796047690913210108",
            "durationMs": 1.80085,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "035fc6f9a7c70e072c26294ff8b04364",
            "spanId": "1393bfb8c939e45f",
            "parentSpanId": "a34c5796eda02061",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690911372092",
            "endTimeUnixNano": "1796047690913376006",
            "durationMs": 2.003914,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/plain-notes",
              "git.args_count": 3
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "035fc6f9a7c70e072c26294ff8b04364",
            "spanId": "a34c5796eda02061",
            "parentSpanId": "a013d7f6d17c6182",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690908782684",
            "endTimeUnixNano": "1796047690913439230",
            "durationMs": 4.656546,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Failure",
              "cause": "GitCommandError: Git command failed in GitVcsDriver.listWorktreePaths ($FIXTURE/fx/plain-notes): Git command exited with a non-zero status. (not_a_repository)\n    at file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:1635:11\n    at executeWorktreeList (file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:7803:5)\n    at executeWorktreeList (definition) (file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:1681:38)\n    at StorageCleanup.reportOrphanWorktrees (file://$CHECKOUT/apps/server/src/storageCleanup.ts:1967:12)\n    at StorageCleanup.reportOrphanWorktrees (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:556:40)\n    at StorageCleanup.cleanWorktrees (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2193:37)\n    at StorageCleanup.cleanWorktrees (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:1208:33)\n    at StorageCleanup.sweep (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2293:24)\n    at StorageCleanup.sweep (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2162:24)\n    at DrainableWorker.makeDrainableWorker (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2290:25)\n    at DrainableWorker.makeDrainableWorker (definition) (file://$CHECKOUT/packages/shared/src/DrainableWorker.ts:20:43)"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "035fc6f9a7c70e072c26294ff8b04364",
            "spanId": "8ef52b41bc91d4cb",
            "parentSpanId": "012bbd282ef9c8f9",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690913758117",
            "endTimeUnixNano": "1796047690914756058",
            "durationMs": 0.997941,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "035fc6f9a7c70e072c26294ff8b04364",
            "spanId": "012bbd282ef9c8f9",
            "parentSpanId": "2adfe0ba57b11e4b",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690913621513",
            "endTimeUnixNano": "1796047690915517124",
            "durationMs": 1.895611,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "035fc6f9a7c70e072c26294ff8b04364",
            "spanId": "2adfe0ba57b11e4b",
            "parentSpanId": "ecf962a171000e94",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690913585819",
            "endTimeUnixNano": "1796047690915692477",
            "durationMs": 2.106658,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo/packages/app",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "035fc6f9a7c70e072c26294ff8b04364",
            "spanId": "ecf962a171000e94",
            "parentSpanId": "a013d7f6d17c6182",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690913568544",
            "endTimeUnixNano": "1796047690915710073",
            "durationMs": 2.141529,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "035fc6f9a7c70e072c26294ff8b04364",
            "spanId": "b53bc01108454028",
            "parentSpanId": "5dbf33e319544e04",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690915916471",
            "endTimeUnixNano": "1796047690916904067",
            "durationMs": 0.987596,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "035fc6f9a7c70e072c26294ff8b04364",
            "spanId": "5dbf33e319544e04",
            "parentSpanId": "ef515a643f09d9ae",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690915780137",
            "endTimeUnixNano": "1796047690917673806",
            "durationMs": 1.893669,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "035fc6f9a7c70e072c26294ff8b04364",
            "spanId": "ef515a643f09d9ae",
            "parentSpanId": "dbbf0fa5f9b1c5ba",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690915747549",
            "endTimeUnixNano": "1796047690917839464",
            "durationMs": 2.091915,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo-link",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "035fc6f9a7c70e072c26294ff8b04364",
            "spanId": "dbbf0fa5f9b1c5ba",
            "parentSpanId": "a013d7f6d17c6182",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690915732246",
            "endTimeUnixNano": "1796047690917862298",
            "durationMs": 2.130052,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "035fc6f9a7c70e072c26294ff8b04364",
            "spanId": "dbd19efc236afd32",
            "parentSpanId": "d5af5f552f1d156c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690918165131",
            "endTimeUnixNano": "1796047690919222059",
            "durationMs": 1.056928,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "035fc6f9a7c70e072c26294ff8b04364",
            "spanId": "d5af5f552f1d156c",
            "parentSpanId": "13478268dbf05d03",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690917957530",
            "endTimeUnixNano": "1796047690919964729",
            "durationMs": 2.007199,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "035fc6f9a7c70e072c26294ff8b04364",
            "spanId": "13478268dbf05d03",
            "parentSpanId": "ee6f8acabd5ec1d2",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690917911311",
            "endTimeUnixNano": "1796047690920133992",
            "durationMs": 2.222681,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "035fc6f9a7c70e072c26294ff8b04364",
            "spanId": "ee6f8acabd5ec1d2",
            "parentSpanId": "a013d7f6d17c6182",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690917890620",
            "endTimeUnixNano": "1796047690920148413",
            "durationMs": 2.257793,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "035fc6f9a7c70e072c26294ff8b04364",
            "spanId": "06eba882d4786222",
            "parentSpanId": "a013d7f6d17c6182",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690920455402",
            "endTimeUnixNano": "1796047690920493709",
            "durationMs": 0.038307,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "035fc6f9a7c70e072c26294ff8b04364",
            "spanId": "dfd10da93891a426",
            "parentSpanId": "a013d7f6d17c6182",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690920611735",
            "endTimeUnixNano": "1796047690920633288",
            "durationMs": 0.021553,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "035fc6f9a7c70e072c26294ff8b04364",
            "spanId": "46dddb1c941fb6f3",
            "parentSpanId": "a013d7f6d17c6182",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690920730503",
            "endTimeUnixNano": "1796047690920751074",
            "durationMs": 0.020571,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "035fc6f9a7c70e072c26294ff8b04364",
            "spanId": "48771ff97e05154a",
            "parentSpanId": "a013d7f6d17c6182",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690920822010",
            "endTimeUnixNano": "1796047690920838895",
            "durationMs": 0.016885,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "storageCleanup.measureWorktree",
            "traceId": "035fc6f9a7c70e072c26294ff8b04364",
            "spanId": "7b1ab575b35068ab",
            "parentSpanId": "a013d7f6d17c6182",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690920863862",
            "endTimeUnixNano": "1796047690923332911",
            "durationMs": 2.469049,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.reportOrphanWorktrees",
            "traceId": "035fc6f9a7c70e072c26294ff8b04364",
            "spanId": "a013d7f6d17c6182",
            "parentSpanId": "669eac64069a1a92",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690907836761",
            "endTimeUnixNano": "1796047690923387612",
            "durationMs": 15.550851,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanWorktrees",
            "traceId": "035fc6f9a7c70e072c26294ff8b04364",
            "spanId": "669eac64069a1a92",
            "parentSpanId": "f12a77de591f8002",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690906320606",
            "endTimeUnixNano": "1796047690923396325",
            "durationMs": 17.075719,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.sweep",
            "traceId": "035fc6f9a7c70e072c26294ff8b04364",
            "spanId": "f12a77de591f8002",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690905962481",
            "endTimeUnixNano": "1796047690923440912",
            "durationMs": 17.478431,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          }
        ]
      },
      {
        "run": 27,
        "warmup": false,
        "elapsedMs": 16.889612000000056,
        "nestedOrphanFound": true,
        "report": {
          "_tag": "Success",
          "value": {
            "trigger": "manual",
            "startedAt": "2026-11-30T14:08:10.924Z",
            "finishedAt": "2026-11-30T14:08:10.940Z",
            "entries": [
              {
                "kind": "worktree",
                "outcome": "kept",
                "reason": "No thread uses this worktree",
                "path": "$FIXTURE/data/worktrees/repository/replay/repo-wt",
                "projectPath": null,
                "threadId": null,
                "threadTitle": null,
                "bytes": 8192,
                "files": null
              }
            ],
            "counts": {
              "removed": 0,
              "kept": 1,
              "failed": 0
            },
            "omittedCount": 0,
            "bytesFreed": 0
          }
        },
        "spans": [
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "cdae796b842c9d341e2982cf4651e7a1",
            "spanId": "4c8d1a6ef15c0682",
            "parentSpanId": "4e69788d9aeeb825",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690924433645",
            "endTimeUnixNano": "1796047690924605482",
            "durationMs": 0.171837,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      WITH RECURSIVE retained_checkpoint_threads(thread_id) AS (\n        SELECT thread_id FROM orchestration_v2_projection_threads WHERE deleted_at IS NULL\n        UNION\n        SELECT json_extract(t\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.037,
              "db.client.connection.wait_time_ms": 0.055283
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanCheckpointRefs",
            "traceId": "cdae796b842c9d341e2982cf4651e7a1",
            "spanId": "4e69788d9aeeb825",
            "parentSpanId": "a1c6d9054aebec8d",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690924415658",
            "endTimeUnixNano": "1796047690924640334",
            "durationMs": 0.224676,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.retryLeftovers",
            "traceId": "cdae796b842c9d341e2982cf4651e7a1",
            "spanId": "5eb862cafe69fd5d",
            "parentSpanId": "a1c6d9054aebec8d",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690924659102",
            "endTimeUnixNano": "1796047690924731129",
            "durationMs": 0.072027,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveGitWorktreePath",
            "traceId": "cdae796b842c9d341e2982cf4651e7a1",
            "spanId": "1be566031e02a1fd",
            "parentSpanId": "e4b19f41fec447a0",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690924769978",
            "endTimeUnixNano": "1796047690924922826",
            "durationMs": 0.152848,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveWorktreeT3Home",
            "traceId": "cdae796b842c9d341e2982cf4651e7a1",
            "spanId": "e4b19f41fec447a0",
            "parentSpanId": "93a138173547533f",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690924763438",
            "endTimeUnixNano": "1796047690924929696",
            "durationMs": 0.166258,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "cdae796b842c9d341e2982cf4651e7a1",
            "spanId": "bb4c36edfd1cc0bf",
            "parentSpanId": "93a138173547533f",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690925138358",
            "endTimeUnixNano": "1796047690925240410",
            "durationMs": 0.102052,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n          SELECT t.payload_json, p.workspace_root AS \"workspaceRoot\"\n          FROM orchestration_v2_projection_threads t\n          JOIN projection_projects p ON p.project_id = t.project_id\n         \u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.027,
              "db.client.connection.wait_time_ms": 0.040661
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "BEGIN",
            "traceId": "cdae796b842c9d341e2982cf4651e7a1",
            "spanId": "58a26fb4639806d6",
            "parentSpanId": "8555eb6467fe0513",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690925373870",
            "endTimeUnixNano": "1796047690925424315",
            "durationMs": 0.050445,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "BEGIN"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "cdae796b842c9d341e2982cf4651e7a1",
            "spanId": "3492af4223afc55e",
            "parentSpanId": "e87ab9b23fc7a6e4",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690925524905",
            "endTimeUnixNano": "1796047690925623373",
            "durationMs": 0.098468,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n            SELECT\n              t.thread_id,\n              t.payload_json,\n              t.fork_run_ids_json,\n              CASE\n                WHEN json_extract(t.payload_json, '$.forkedFrom.type'\u2026[truncated]",
              "db.client.connection.wait_time_ms": 0.011407
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "cdae796b842c9d341e2982cf4651e7a1",
            "spanId": "87f8fccffb013ad2",
            "parentSpanId": "e87ab9b23fc7a6e4",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690925660217",
            "endTimeUnixNano": "1796047690925709791",
            "durationMs": 0.049574,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n        SELECT MAX(sequence) AS snapshot_sequence\n        FROM orchestration_events\n        WHERE application_event_version = 2\n          AND aggregate_kind = 'thread'\n      ",
              "db.client.connection.wait_time_ms": 0.006961
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readShellSnapshotRows",
            "traceId": "cdae796b842c9d341e2982cf4651e7a1",
            "spanId": "e87ab9b23fc7a6e4",
            "parentSpanId": "8555eb6467fe0513",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690925455882",
            "endTimeUnixNano": "1796047690925723873",
            "durationMs": 0.267991,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "COMMIT",
            "traceId": "cdae796b842c9d341e2982cf4651e7a1",
            "spanId": "55408eb3921402cf",
            "parentSpanId": "8555eb6467fe0513",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690925733096",
            "endTimeUnixNano": "1796047690925762030",
            "durationMs": 0.028934,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "COMMIT"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sql.transaction",
            "traceId": "cdae796b842c9d341e2982cf4651e7a1",
            "spanId": "8555eb6467fe0513",
            "parentSpanId": "2f3e1434a6ae4858",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690925322453",
            "endTimeUnixNano": "1796047690925783702",
            "durationMs": 0.461249,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.client.connection.wait_time_ms": 0.043575,
              "db.connection": "reader",
              "db.lock_wait_ms": 0.025
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.pendingBackgroundDataByThreadId",
            "traceId": "cdae796b842c9d341e2982cf4651e7a1",
            "spanId": "c5e71e30fe304433",
            "parentSpanId": "03ec40892241daa0",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690925825384",
            "endTimeUnixNano": "1796047690925830762",
            "durationMs": 0.005378,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.decodeShellSnapshot",
            "traceId": "cdae796b842c9d341e2982cf4651e7a1",
            "spanId": "03ec40892241daa0",
            "parentSpanId": "2f3e1434a6ae4858",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690925812044",
            "endTimeUnixNano": "1796047690925839175",
            "durationMs": 0.027131,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "cdae796b842c9d341e2982cf4651e7a1",
            "spanId": "bb6bf5b8aa1cd244",
            "parentSpanId": "7808517fefae9934",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690925873927",
            "endTimeUnixNano": "1796047690925983090",
            "durationMs": 0.109163,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.026,
              "db.client.connection.wait_time_ms": 0.034521
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectStoreV2.listShells",
            "traceId": "cdae796b842c9d341e2982cf4651e7a1",
            "spanId": "7808517fefae9934",
            "parentSpanId": "2f3e1434a6ae4858",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690925846275",
            "endTimeUnixNano": "1796047690926049659",
            "durationMs": 0.203384,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.readThreads",
            "traceId": "cdae796b842c9d341e2982cf4651e7a1",
            "spanId": "2f3e1434a6ae4858",
            "parentSpanId": "93a138173547533f",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690925292328",
            "endTimeUnixNano": "1796047690926057631",
            "durationMs": 0.765303,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "cdae796b842c9d341e2982cf4651e7a1",
            "spanId": "8f757d469b94d295",
            "parentSpanId": "93a138173547533f",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690926082188",
            "endTimeUnixNano": "1796047690926170500",
            "durationMs": 0.088312,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.019,
              "db.client.connection.wait_time_ms": 0.029033
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "cdae796b842c9d341e2982cf4651e7a1",
            "spanId": "c15e8be9841e06c7",
            "parentSpanId": "16a4b5dbe121198e",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690926223449",
            "endTimeUnixNano": "1796047690926318511",
            "durationMs": 0.095062,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT DISTINCT json_extract(payload_json, '$.worktreePath') AS \"worktreePath\"\n      FROM orchestration_v2_projection_threads\n      WHERE json_extract(payload_json, '$.worktreePath') IS NOT NUL\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.032,
              "db.client.connection.wait_time_ms": 0.039148
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "cdae796b842c9d341e2982cf4651e7a1",
            "spanId": "3ab4e1c31a90e40e",
            "parentSpanId": "ba23bd43177703b4",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690927361689",
            "endTimeUnixNano": "1796047690928545858",
            "durationMs": 1.184169,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "cdae796b842c9d341e2982cf4651e7a1",
            "spanId": "ba23bd43177703b4",
            "parentSpanId": "e01c853bbc6dea31",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690927190834",
            "endTimeUnixNano": "1796047690929374336",
            "durationMs": 2.183502,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "cdae796b842c9d341e2982cf4651e7a1",
            "spanId": "e01c853bbc6dea31",
            "parentSpanId": "4ce3f51a4b052523",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690927156683",
            "endTimeUnixNano": "1796047690929552632",
            "durationMs": 2.395949,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/plain-notes",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "cdae796b842c9d341e2982cf4651e7a1",
            "spanId": "6f52b176f1f41ae2",
            "parentSpanId": "bc3ba6daef05dd26",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690929757939",
            "endTimeUnixNano": "1796047690930805664",
            "durationMs": 1.047725,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "cdae796b842c9d341e2982cf4651e7a1",
            "spanId": "bc3ba6daef05dd26",
            "parentSpanId": "e3212fe7318f529a",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690929615827",
            "endTimeUnixNano": "1796047690931580482",
            "durationMs": 1.964655,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "cdae796b842c9d341e2982cf4651e7a1",
            "spanId": "e3212fe7318f529a",
            "parentSpanId": "4ce3f51a4b052523",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690929577139",
            "endTimeUnixNano": "1796047690931733250",
            "durationMs": 2.156111,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/plain-notes",
              "git.args_count": 3
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "cdae796b842c9d341e2982cf4651e7a1",
            "spanId": "4ce3f51a4b052523",
            "parentSpanId": "16a4b5dbe121198e",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690927135942",
            "endTimeUnixNano": "1796047690931790446",
            "durationMs": 4.654504,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Failure",
              "cause": "GitCommandError: Git command failed in GitVcsDriver.listWorktreePaths ($FIXTURE/fx/plain-notes): Git command exited with a non-zero status. (not_a_repository)\n    at file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:1635:11\n    at executeWorktreeList (file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:7803:5)\n    at executeWorktreeList (definition) (file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:1681:38)\n    at StorageCleanup.reportOrphanWorktrees (file://$CHECKOUT/apps/server/src/storageCleanup.ts:1967:12)\n    at StorageCleanup.reportOrphanWorktrees (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:556:40)\n    at StorageCleanup.cleanWorktrees (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2193:37)\n    at StorageCleanup.cleanWorktrees (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:1208:33)\n    at StorageCleanup.sweep (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2293:24)\n    at StorageCleanup.sweep (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2162:24)\n    at DrainableWorker.makeDrainableWorker (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2290:25)\n    at DrainableWorker.makeDrainableWorker (definition) (file://$CHECKOUT/packages/shared/src/DrainableWorker.ts:20:43)"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "cdae796b842c9d341e2982cf4651e7a1",
            "spanId": "aacb0bc29497e905",
            "parentSpanId": "c797605c99301470",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690932112166",
            "endTimeUnixNano": "1796047690933282985",
            "durationMs": 1.170819,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "cdae796b842c9d341e2982cf4651e7a1",
            "spanId": "c797605c99301470",
            "parentSpanId": "d502c9d7e6c55f14",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690931972287",
            "endTimeUnixNano": "1796047690934264702",
            "durationMs": 2.292415,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "cdae796b842c9d341e2982cf4651e7a1",
            "spanId": "d502c9d7e6c55f14",
            "parentSpanId": "993b439b7a0977a6",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690931935953",
            "endTimeUnixNano": "1796047690934442718",
            "durationMs": 2.506765,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo/packages/app",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "cdae796b842c9d341e2982cf4651e7a1",
            "spanId": "993b439b7a0977a6",
            "parentSpanId": "16a4b5dbe121198e",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690931919799",
            "endTimeUnixNano": "1796047690934458762",
            "durationMs": 2.538963,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "cdae796b842c9d341e2982cf4651e7a1",
            "spanId": "f368cb10558881b2",
            "parentSpanId": "392c0ff5a51564a3",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690934666652",
            "endTimeUnixNano": "1796047690935773145",
            "durationMs": 1.106493,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "cdae796b842c9d341e2982cf4651e7a1",
            "spanId": "392c0ff5a51564a3",
            "parentSpanId": "7e634cf5c609633f",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690934530389",
            "endTimeUnixNano": "1796047690936617206",
            "durationMs": 2.086817,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "cdae796b842c9d341e2982cf4651e7a1",
            "spanId": "7e634cf5c609633f",
            "parentSpanId": "2cdd2396182b54fb",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690934497870",
            "endTimeUnixNano": "1796047690936777586",
            "durationMs": 2.279716,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo-link",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "cdae796b842c9d341e2982cf4651e7a1",
            "spanId": "2cdd2396182b54fb",
            "parentSpanId": "16a4b5dbe121198e",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690934482057",
            "endTimeUnixNano": "1796047690936791607",
            "durationMs": 2.30955,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "cdae796b842c9d341e2982cf4651e7a1",
            "spanId": "24ecd8a9ddc99fee",
            "parentSpanId": "b68ca3bd5030c302",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690937035371",
            "endTimeUnixNano": "1796047690938092320",
            "durationMs": 1.056949,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "cdae796b842c9d341e2982cf4651e7a1",
            "spanId": "b68ca3bd5030c302",
            "parentSpanId": "52972329e84b1ba7",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690936875372",
            "endTimeUnixNano": "1796047690938968609",
            "durationMs": 2.093237,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "cdae796b842c9d341e2982cf4651e7a1",
            "spanId": "52972329e84b1ba7",
            "parentSpanId": "a75e4badaea1c129",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690936842803",
            "endTimeUnixNano": "1796047690939125824",
            "durationMs": 2.283021,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "cdae796b842c9d341e2982cf4651e7a1",
            "spanId": "a75e4badaea1c129",
            "parentSpanId": "16a4b5dbe121198e",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690936826960",
            "endTimeUnixNano": "1796047690939139324",
            "durationMs": 2.312364,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "cdae796b842c9d341e2982cf4651e7a1",
            "spanId": "bb33da0c294e7855",
            "parentSpanId": "16a4b5dbe121198e",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690939414265",
            "endTimeUnixNano": "1796047690939464840",
            "durationMs": 0.050575,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "cdae796b842c9d341e2982cf4651e7a1",
            "spanId": "ab1d44691168d3a0",
            "parentSpanId": "16a4b5dbe121198e",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690939583428",
            "endTimeUnixNano": "1796047690939603598",
            "durationMs": 0.02017,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "cdae796b842c9d341e2982cf4651e7a1",
            "spanId": "689d5804f0328031",
            "parentSpanId": "16a4b5dbe121198e",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690939707293",
            "endTimeUnixNano": "1796047690939726602",
            "durationMs": 0.019309,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "cdae796b842c9d341e2982cf4651e7a1",
            "spanId": "442f6c87fdf41fcb",
            "parentSpanId": "16a4b5dbe121198e",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690939797007",
            "endTimeUnixNano": "1796047690939815795",
            "durationMs": 0.018788,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "storageCleanup.measureWorktree",
            "traceId": "cdae796b842c9d341e2982cf4651e7a1",
            "spanId": "01644168f7b59417",
            "parentSpanId": "16a4b5dbe121198e",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690939841994",
            "endTimeUnixNano": "1796047690940319387",
            "durationMs": 0.477393,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.reportOrphanWorktrees",
            "traceId": "cdae796b842c9d341e2982cf4651e7a1",
            "spanId": "16a4b5dbe121198e",
            "parentSpanId": "93a138173547533f",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690926214215",
            "endTimeUnixNano": "1796047690940346728",
            "durationMs": 14.132513,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanWorktrees",
            "traceId": "cdae796b842c9d341e2982cf4651e7a1",
            "spanId": "93a138173547533f",
            "parentSpanId": "a1c6d9054aebec8d",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690924743127",
            "endTimeUnixNano": "1796047690940353939",
            "durationMs": 15.610812,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.sweep",
            "traceId": "cdae796b842c9d341e2982cf4651e7a1",
            "spanId": "a1c6d9054aebec8d",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690924389980",
            "endTimeUnixNano": "1796047690940388851",
            "durationMs": 15.998871,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          }
        ]
      },
      {
        "run": 28,
        "warmup": false,
        "elapsedMs": 20.134458999999993,
        "nestedOrphanFound": true,
        "report": {
          "_tag": "Success",
          "value": {
            "trigger": "manual",
            "startedAt": "2026-11-30T14:08:10.941Z",
            "finishedAt": "2026-11-30T14:08:10.960Z",
            "entries": [
              {
                "kind": "worktree",
                "outcome": "kept",
                "reason": "No thread uses this worktree",
                "path": "$FIXTURE/data/worktrees/repository/replay/repo-wt",
                "projectPath": null,
                "threadId": null,
                "threadTitle": null,
                "bytes": 8192,
                "files": null
              }
            ],
            "counts": {
              "removed": 0,
              "kept": 1,
              "failed": 0
            },
            "omittedCount": 0,
            "bytesFreed": 0
          }
        },
        "spans": [
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "379140c85d078eb910211c4a2bd9654e",
            "spanId": "83cf34c30345b44e",
            "parentSpanId": "3d8c524d60f48c63",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690941285300",
            "endTimeUnixNano": "1796047690941440292",
            "durationMs": 0.154992,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      WITH RECURSIVE retained_checkpoint_threads(thread_id) AS (\n        SELECT thread_id FROM orchestration_v2_projection_threads WHERE deleted_at IS NULL\n        UNION\n        SELECT json_extract(t\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.032,
              "db.client.connection.wait_time_ms": 0.04642
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanCheckpointRefs",
            "traceId": "379140c85d078eb910211c4a2bd9654e",
            "spanId": "3d8c524d60f48c63",
            "parentSpanId": "344d08a047d49234",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690941259922",
            "endTimeUnixNano": "1796047690941473061",
            "durationMs": 0.213139,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.retryLeftovers",
            "traceId": "379140c85d078eb910211c4a2bd9654e",
            "spanId": "ea4abf392136966b",
            "parentSpanId": "344d08a047d49234",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690941490457",
            "endTimeUnixNano": "1796047690941556956",
            "durationMs": 0.066499,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveGitWorktreePath",
            "traceId": "379140c85d078eb910211c4a2bd9654e",
            "spanId": "601088db94a634d4",
            "parentSpanId": "13379de72168e721",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690941592830",
            "endTimeUnixNano": "1796047690941740120",
            "durationMs": 0.14729,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveWorktreeT3Home",
            "traceId": "379140c85d078eb910211c4a2bd9654e",
            "spanId": "13379de72168e721",
            "parentSpanId": "840c135da2af9d80",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690941586330",
            "endTimeUnixNano": "1796047690941746088",
            "durationMs": 0.159758,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "379140c85d078eb910211c4a2bd9654e",
            "spanId": "492585d9c5ae88a2",
            "parentSpanId": "840c135da2af9d80",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690941939468",
            "endTimeUnixNano": "1796047690942036713",
            "durationMs": 0.097245,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n          SELECT t.payload_json, p.workspace_root AS \"workspaceRoot\"\n          FROM orchestration_v2_projection_threads t\n          JOIN projection_projects p ON p.project_id = t.project_id\n         \u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.027,
              "db.client.connection.wait_time_ms": 0.038507
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "BEGIN",
            "traceId": "379140c85d078eb910211c4a2bd9654e",
            "spanId": "afe7fc756a0bc424",
            "parentSpanId": "d94795dc53fa080d",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690942145806",
            "endTimeUnixNano": "1796047690942195109",
            "durationMs": 0.049303,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "BEGIN"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "379140c85d078eb910211c4a2bd9654e",
            "spanId": "dc9e808a9da805c0",
            "parentSpanId": "f8e7157a1fae86dd",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690942295119",
            "endTimeUnixNano": "1796047690942388138",
            "durationMs": 0.093019,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n            SELECT\n              t.thread_id,\n              t.payload_json,\n              t.fork_run_ids_json,\n              CASE\n                WHEN json_extract(t.payload_json, '$.forkedFrom.type'\u2026[truncated]",
              "db.client.connection.wait_time_ms": 0.011046
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "379140c85d078eb910211c4a2bd9654e",
            "spanId": "7b17ad1467d1d71b",
            "parentSpanId": "f8e7157a1fae86dd",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690942423741",
            "endTimeUnixNano": "1796047690942480005",
            "durationMs": 0.056264,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n        SELECT MAX(sequence) AS snapshot_sequence\n        FROM orchestration_events\n        WHERE application_event_version = 2\n          AND aggregate_kind = 'thread'\n      ",
              "db.client.connection.wait_time_ms": 0.011127
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readShellSnapshotRows",
            "traceId": "379140c85d078eb910211c4a2bd9654e",
            "spanId": "f8e7157a1fae86dd",
            "parentSpanId": "d94795dc53fa080d",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690942216691",
            "endTimeUnixNano": "1796047690942493505",
            "durationMs": 0.276814,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "COMMIT",
            "traceId": "379140c85d078eb910211c4a2bd9654e",
            "spanId": "0778d7eae05ebd21",
            "parentSpanId": "d94795dc53fa080d",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690942502148",
            "endTimeUnixNano": "1796047690942533235",
            "durationMs": 0.031087,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "COMMIT"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sql.transaction",
            "traceId": "379140c85d078eb910211c4a2bd9654e",
            "spanId": "d94795dc53fa080d",
            "parentSpanId": "ecc2fd60bbf7f156",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690942100117",
            "endTimeUnixNano": "1796047690942555418",
            "durationMs": 0.455301,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.client.connection.wait_time_ms": 0.038648,
              "db.connection": "reader",
              "db.lock_wait_ms": 0.022
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.pendingBackgroundDataByThreadId",
            "traceId": "379140c85d078eb910211c4a2bd9654e",
            "spanId": "e866ab3f9eea45f8",
            "parentSpanId": "0563aab54de96651",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690942592163",
            "endTimeUnixNano": "1796047690942597280",
            "durationMs": 0.005117,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.decodeShellSnapshot",
            "traceId": "379140c85d078eb910211c4a2bd9654e",
            "spanId": "0563aab54de96651",
            "parentSpanId": "ecc2fd60bbf7f156",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690942579944",
            "endTimeUnixNano": "1796047690942605643",
            "durationMs": 0.025699,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "379140c85d078eb910211c4a2bd9654e",
            "spanId": "71404f2e96ffc41b",
            "parentSpanId": "af6aa1f1e804976f",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690942638341",
            "endTimeUnixNano": "1796047690942743939",
            "durationMs": 0.105598,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.026,
              "db.client.connection.wait_time_ms": 0.034182
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectStoreV2.listShells",
            "traceId": "379140c85d078eb910211c4a2bd9654e",
            "spanId": "af6aa1f1e804976f",
            "parentSpanId": "ecc2fd60bbf7f156",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690942613074",
            "endTimeUnixNano": "1796047690942802417",
            "durationMs": 0.189343,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.readThreads",
            "traceId": "379140c85d078eb910211c4a2bd9654e",
            "spanId": "ecc2fd60bbf7f156",
            "parentSpanId": "840c135da2af9d80",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690942072256",
            "endTimeUnixNano": "1796047690942809617",
            "durationMs": 0.737361,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "379140c85d078eb910211c4a2bd9654e",
            "spanId": "a41a20ffab6d783c",
            "parentSpanId": "840c135da2af9d80",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690942832602",
            "endTimeUnixNano": "1796047690943067072",
            "durationMs": 0.23447,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.033,
              "db.client.connection.wait_time_ms": 0.043014
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "379140c85d078eb910211c4a2bd9654e",
            "spanId": "e24b32b3b6a1d5cb",
            "parentSpanId": "c95bdf89015982c6",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690943127022",
            "endTimeUnixNano": "1796047690943225248",
            "durationMs": 0.098226,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT DISTINCT json_extract(payload_json, '$.worktreePath') AS \"worktreePath\"\n      FROM orchestration_v2_projection_threads\n      WHERE json_extract(payload_json, '$.worktreePath') IS NOT NUL\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.041,
              "db.client.connection.wait_time_ms": 0.048752
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "379140c85d078eb910211c4a2bd9654e",
            "spanId": "309d95cd9df2119d",
            "parentSpanId": "8a450aec6361a26b",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690945536201",
            "endTimeUnixNano": "1796047690947408458",
            "durationMs": 1.872257,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "379140c85d078eb910211c4a2bd9654e",
            "spanId": "8a450aec6361a26b",
            "parentSpanId": "d982bc8bdd9491d8",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690945174811",
            "endTimeUnixNano": "1796047690948170045",
            "durationMs": 2.995234,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "379140c85d078eb910211c4a2bd9654e",
            "spanId": "d982bc8bdd9491d8",
            "parentSpanId": "38d53435d7d9a631",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690945032648",
            "endTimeUnixNano": "1796047690948452187",
            "durationMs": 3.419539,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/plain-notes",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "379140c85d078eb910211c4a2bd9654e",
            "spanId": "424f57cecd331402",
            "parentSpanId": "0d0b4e9a67cfdd05",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690948698545",
            "endTimeUnixNano": "1796047690949933640",
            "durationMs": 1.235095,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "379140c85d078eb910211c4a2bd9654e",
            "spanId": "0d0b4e9a67cfdd05",
            "parentSpanId": "847e114a24549d74",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690948519968",
            "endTimeUnixNano": "1796047690950667086",
            "durationMs": 2.147118,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "379140c85d078eb910211c4a2bd9654e",
            "spanId": "847e114a24549d74",
            "parentSpanId": "38d53435d7d9a631",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690948481671",
            "endTimeUnixNano": "1796047690950821667",
            "durationMs": 2.339996,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/plain-notes",
              "git.args_count": 3
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "379140c85d078eb910211c4a2bd9654e",
            "spanId": "38d53435d7d9a631",
            "parentSpanId": "c95bdf89015982c6",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690944951307",
            "endTimeUnixNano": "1796047690950920635",
            "durationMs": 5.969328,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Failure",
              "cause": "GitCommandError: Git command failed in GitVcsDriver.listWorktreePaths ($FIXTURE/fx/plain-notes): Git command exited with a non-zero status. (not_a_repository)\n    at file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:1635:11\n    at executeWorktreeList (file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:7803:5)\n    at executeWorktreeList (definition) (file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:1681:38)\n    at StorageCleanup.reportOrphanWorktrees (file://$CHECKOUT/apps/server/src/storageCleanup.ts:1967:12)\n    at StorageCleanup.reportOrphanWorktrees (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:556:40)\n    at StorageCleanup.cleanWorktrees (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2193:37)\n    at StorageCleanup.cleanWorktrees (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:1208:33)\n    at StorageCleanup.sweep (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2293:24)\n    at StorageCleanup.sweep (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2162:24)\n    at DrainableWorker.makeDrainableWorker (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2290:25)\n    at DrainableWorker.makeDrainableWorker (definition) (file://$CHECKOUT/packages/shared/src/DrainableWorker.ts:20:43)"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "379140c85d078eb910211c4a2bd9654e",
            "spanId": "f62387a63ae35911",
            "parentSpanId": "050fc8b62e0d8dfd",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690951320812",
            "endTimeUnixNano": "1796047690952583238",
            "durationMs": 1.262426,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "379140c85d078eb910211c4a2bd9654e",
            "spanId": "050fc8b62e0d8dfd",
            "parentSpanId": "7db76482d5f9f284",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690951147193",
            "endTimeUnixNano": "1796047690953613608",
            "durationMs": 2.466415,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "379140c85d078eb910211c4a2bd9654e",
            "spanId": "7db76482d5f9f284",
            "parentSpanId": "ab127c3fe9a845f8",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690951110037",
            "endTimeUnixNano": "1796047690953855499",
            "durationMs": 2.745462,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo/packages/app",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "379140c85d078eb910211c4a2bd9654e",
            "spanId": "ab127c3fe9a845f8",
            "parentSpanId": "c95bdf89015982c6",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690951093783",
            "endTimeUnixNano": "1796047690953875259",
            "durationMs": 2.781476,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "379140c85d078eb910211c4a2bd9654e",
            "spanId": "9c9ee979e2056fb1",
            "parentSpanId": "020cdef8d4341a14",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690954148968",
            "endTimeUnixNano": "1796047690955465825",
            "durationMs": 1.316857,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "379140c85d078eb910211c4a2bd9654e",
            "spanId": "020cdef8d4341a14",
            "parentSpanId": "aa77943f2735a9ff",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690953964292",
            "endTimeUnixNano": "1796047690956592778",
            "durationMs": 2.628486,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "379140c85d078eb910211c4a2bd9654e",
            "spanId": "aa77943f2735a9ff",
            "parentSpanId": "b91698e6837541f8",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690953923591",
            "endTimeUnixNano": "1796047690956771966",
            "durationMs": 2.848375,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo-link",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "379140c85d078eb910211c4a2bd9654e",
            "spanId": "b91698e6837541f8",
            "parentSpanId": "c95bdf89015982c6",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690953902700",
            "endTimeUnixNano": "1796047690956786628",
            "durationMs": 2.883928,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "379140c85d078eb910211c4a2bd9654e",
            "spanId": "1a7de2d6ed62f4b3",
            "parentSpanId": "3e015149c35e9281",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690957045214",
            "endTimeUnixNano": "1796047690958166379",
            "durationMs": 1.121165,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "379140c85d078eb910211c4a2bd9654e",
            "spanId": "3e015149c35e9281",
            "parentSpanId": "535d6686ba026ad5",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690956867118",
            "endTimeUnixNano": "1796047690959040725",
            "durationMs": 2.173607,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "379140c85d078eb910211c4a2bd9654e",
            "spanId": "535d6686ba026ad5",
            "parentSpanId": "965a5e66246299a0",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690956829792",
            "endTimeUnixNano": "1796047690959207254",
            "durationMs": 2.377462,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "379140c85d078eb910211c4a2bd9654e",
            "spanId": "965a5e66246299a0",
            "parentSpanId": "c95bdf89015982c6",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690956809292",
            "endTimeUnixNano": "1796047690959222036",
            "durationMs": 2.412744,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "379140c85d078eb910211c4a2bd9654e",
            "spanId": "c9dbe1cedf4be405",
            "parentSpanId": "c95bdf89015982c6",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690959516997",
            "endTimeUnixNano": "1796047690959557127",
            "durationMs": 0.04013,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "379140c85d078eb910211c4a2bd9654e",
            "spanId": "8de3250edad92457",
            "parentSpanId": "c95bdf89015982c6",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690959671117",
            "endTimeUnixNano": "1796047690959694973",
            "durationMs": 0.023856,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "379140c85d078eb910211c4a2bd9654e",
            "spanId": "6aca352cb9e65d54",
            "parentSpanId": "c95bdf89015982c6",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690959792979",
            "endTimeUnixNano": "1796047690959810766",
            "durationMs": 0.017787,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "379140c85d078eb910211c4a2bd9654e",
            "spanId": "3b253c287e44dc19",
            "parentSpanId": "c95bdf89015982c6",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690959881461",
            "endTimeUnixNano": "1796047690959900049",
            "durationMs": 0.018588,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "storageCleanup.measureWorktree",
            "traceId": "379140c85d078eb910211c4a2bd9654e",
            "spanId": "32d1281f84fa1d9f",
            "parentSpanId": "c95bdf89015982c6",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690959926408",
            "endTimeUnixNano": "1796047690960448088",
            "durationMs": 0.52168,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.reportOrphanWorktrees",
            "traceId": "379140c85d078eb910211c4a2bd9654e",
            "spanId": "c95bdf89015982c6",
            "parentSpanId": "840c135da2af9d80",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690943117798",
            "endTimeUnixNano": "1796047690960473316",
            "durationMs": 17.355518,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanWorktrees",
            "traceId": "379140c85d078eb910211c4a2bd9654e",
            "spanId": "840c135da2af9d80",
            "parentSpanId": "344d08a047d49234",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690941568113",
            "endTimeUnixNano": "1796047690960481167",
            "durationMs": 18.913054,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.sweep",
            "traceId": "379140c85d078eb910211c4a2bd9654e",
            "spanId": "344d08a047d49234",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690941237779",
            "endTimeUnixNano": "1796047690960516730",
            "durationMs": 19.278951,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          }
        ]
      },
      {
        "run": 29,
        "warmup": false,
        "elapsedMs": 28.542630999999915,
        "nestedOrphanFound": true,
        "report": {
          "_tag": "Success",
          "value": {
            "trigger": "manual",
            "startedAt": "2026-11-30T14:08:10.961Z",
            "finishedAt": "2026-11-30T14:08:10.986Z",
            "entries": [
              {
                "kind": "worktree",
                "outcome": "kept",
                "reason": "No thread uses this worktree",
                "path": "$FIXTURE/data/worktrees/repository/replay/repo-wt",
                "projectPath": null,
                "threadId": null,
                "threadTitle": null,
                "bytes": 8192,
                "files": null
              }
            ],
            "counts": {
              "removed": 0,
              "kept": 1,
              "failed": 0
            },
            "omittedCount": 0,
            "bytesFreed": 0
          }
        },
        "spans": [
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "7b33a68c9e713b0819a327aa83f20990",
            "spanId": "32e294643f4b8ced",
            "parentSpanId": "03a12ecda857b3b1",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690961472168",
            "endTimeUnixNano": "1796047690961640750",
            "durationMs": 0.168582,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      WITH RECURSIVE retained_checkpoint_threads(thread_id) AS (\n        SELECT thread_id FROM orchestration_v2_projection_threads WHERE deleted_at IS NULL\n        UNION\n        SELECT json_extract(t\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.036,
              "db.client.connection.wait_time_ms": 0.051326
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanCheckpointRefs",
            "traceId": "7b33a68c9e713b0819a327aa83f20990",
            "spanId": "03a12ecda857b3b1",
            "parentSpanId": "07b6fecd58e8d63f",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690961460571",
            "endTimeUnixNano": "1796047690961675341",
            "durationMs": 0.21477,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.retryLeftovers",
            "traceId": "7b33a68c9e713b0819a327aa83f20990",
            "spanId": "9c044ce588c31997",
            "parentSpanId": "07b6fecd58e8d63f",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690961692126",
            "endTimeUnixNano": "1796047690961773057",
            "durationMs": 0.080931,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveGitWorktreePath",
            "traceId": "7b33a68c9e713b0819a327aa83f20990",
            "spanId": "8a8c956afc576a14",
            "parentSpanId": "471740d583094f05",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690961810293",
            "endTimeUnixNano": "1796047690961982360",
            "durationMs": 0.172067,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveWorktreeT3Home",
            "traceId": "7b33a68c9e713b0819a327aa83f20990",
            "spanId": "471740d583094f05",
            "parentSpanId": "9ab44d44474dd798",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690961803262",
            "endTimeUnixNano": "1796047690961989160",
            "durationMs": 0.185898,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "7b33a68c9e713b0819a327aa83f20990",
            "spanId": "c4e1b8992c24a246",
            "parentSpanId": "9ab44d44474dd798",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690962413744",
            "endTimeUnixNano": "1796047690962621004",
            "durationMs": 0.20726,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n          SELECT t.payload_json, p.workspace_root AS \"workspaceRoot\"\n          FROM orchestration_v2_projection_threads t\n          JOIN projection_projects p ON p.project_id = t.project_id\n         \u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.055,
              "db.client.connection.wait_time_ms": 0.103165
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "BEGIN",
            "traceId": "7b33a68c9e713b0819a327aa83f20990",
            "spanId": "f557f96bc3b48b93",
            "parentSpanId": "b7fb1bd57ae8ba5a",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690962785940",
            "endTimeUnixNano": "1796047690962845269",
            "durationMs": 0.059329,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "BEGIN"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "7b33a68c9e713b0819a327aa83f20990",
            "spanId": "1cc5802ae97d461c",
            "parentSpanId": "21b95868314f9dd8",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690963002584",
            "endTimeUnixNano": "1796047690963119248",
            "durationMs": 0.116664,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n            SELECT\n              t.thread_id,\n              t.payload_json,\n              t.fork_run_ids_json,\n              CASE\n                WHEN json_extract(t.payload_json, '$.forkedFrom.type'\u2026[truncated]",
              "db.client.connection.wait_time_ms": 0.015033
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "7b33a68c9e713b0819a327aa83f20990",
            "spanId": "d8c9fb27fe8d77de",
            "parentSpanId": "21b95868314f9dd8",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690963173770",
            "endTimeUnixNano": "1796047690963227070",
            "durationMs": 0.0533,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n        SELECT MAX(sequence) AS snapshot_sequence\n        FROM orchestration_events\n        WHERE application_event_version = 2\n          AND aggregate_kind = 'thread'\n      ",
              "db.client.connection.wait_time_ms": 0.00708
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readShellSnapshotRows",
            "traceId": "7b33a68c9e713b0819a327aa83f20990",
            "spanId": "21b95868314f9dd8",
            "parentSpanId": "b7fb1bd57ae8ba5a",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690962873752",
            "endTimeUnixNano": "1796047690963240610",
            "durationMs": 0.366858,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "COMMIT",
            "traceId": "7b33a68c9e713b0819a327aa83f20990",
            "spanId": "8bc1513c2f2e828c",
            "parentSpanId": "b7fb1bd57ae8ba5a",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690963251095",
            "endTimeUnixNano": "1796047690963295972",
            "durationMs": 0.044877,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "COMMIT"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sql.transaction",
            "traceId": "7b33a68c9e713b0819a327aa83f20990",
            "spanId": "b7fb1bd57ae8ba5a",
            "parentSpanId": "aa8796896f9f19dd",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690962727974",
            "endTimeUnixNano": "1796047690963323964",
            "durationMs": 0.59599,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.client.connection.wait_time_ms": 0.047381,
              "db.connection": "reader",
              "db.lock_wait_ms": 0.025
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.pendingBackgroundDataByThreadId",
            "traceId": "7b33a68c9e713b0819a327aa83f20990",
            "spanId": "04d8b4a0cc66ca31",
            "parentSpanId": "cb268faf1f677f06",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690963367459",
            "endTimeUnixNano": "1796047690963373248",
            "durationMs": 0.005789,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.decodeShellSnapshot",
            "traceId": "7b33a68c9e713b0819a327aa83f20990",
            "spanId": "cb268faf1f677f06",
            "parentSpanId": "aa8796896f9f19dd",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690963350714",
            "endTimeUnixNano": "1796047690963383032",
            "durationMs": 0.032318,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "7b33a68c9e713b0819a327aa83f20990",
            "spanId": "c7accde7396e3bd3",
            "parentSpanId": "eca87d95981b96de",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690963436152",
            "endTimeUnixNano": "1796047690963549972",
            "durationMs": 0.11382,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.026,
              "db.client.connection.wait_time_ms": 0.035102
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectStoreV2.listShells",
            "traceId": "7b33a68c9e713b0819a327aa83f20990",
            "spanId": "eca87d95981b96de",
            "parentSpanId": "aa8796896f9f19dd",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690963391956",
            "endTimeUnixNano": "1796047690963648749",
            "durationMs": 0.256793,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.readThreads",
            "traceId": "7b33a68c9e713b0819a327aa83f20990",
            "spanId": "aa8796896f9f19dd",
            "parentSpanId": "9ab44d44474dd798",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690962684659",
            "endTimeUnixNano": "1796047690963657232",
            "durationMs": 0.972573,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "7b33a68c9e713b0819a327aa83f20990",
            "spanId": "19137935858574b3",
            "parentSpanId": "9ab44d44474dd798",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690963683241",
            "endTimeUnixNano": "1796047690963779124",
            "durationMs": 0.095883,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.019,
              "db.client.connection.wait_time_ms": 0.031217
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "7b33a68c9e713b0819a327aa83f20990",
            "spanId": "a3c7d4cfde4ff7b4",
            "parentSpanId": "53999a2b9f5ac49e",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690963836981",
            "endTimeUnixNano": "1796047690963923420",
            "durationMs": 0.086439,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT DISTINCT json_extract(payload_json, '$.worktreePath') AS \"worktreePath\"\n      FROM orchestration_v2_projection_threads\n      WHERE json_extract(payload_json, '$.worktreePath') IS NOT NUL\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.03,
              "db.client.connection.wait_time_ms": 0.040971
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "7b33a68c9e713b0819a327aa83f20990",
            "spanId": "f6b52916b053bdd7",
            "parentSpanId": "106111b73a210875",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690965374327",
            "endTimeUnixNano": "1796047690967544289",
            "durationMs": 2.169962,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "7b33a68c9e713b0819a327aa83f20990",
            "spanId": "106111b73a210875",
            "parentSpanId": "ed1021099965fc06",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690965192476",
            "endTimeUnixNano": "1796047690968582310",
            "durationMs": 3.389834,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "7b33a68c9e713b0819a327aa83f20990",
            "spanId": "ed1021099965fc06",
            "parentSpanId": "ec16e41d5670a14e",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690965157353",
            "endTimeUnixNano": "1796047690968797131",
            "durationMs": 3.639778,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/plain-notes",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "7b33a68c9e713b0819a327aa83f20990",
            "spanId": "dd4573f454f2c42b",
            "parentSpanId": "000cf0f47826f14b",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690969037640",
            "endTimeUnixNano": "1796047690970942035",
            "durationMs": 1.904395,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "7b33a68c9e713b0819a327aa83f20990",
            "spanId": "000cf0f47826f14b",
            "parentSpanId": "154245098f2c3054",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690968869659",
            "endTimeUnixNano": "1796047690971953756",
            "durationMs": 3.084097,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "7b33a68c9e713b0819a327aa83f20990",
            "spanId": "154245098f2c3054",
            "parentSpanId": "ec16e41d5670a14e",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690968826575",
            "endTimeUnixNano": "1796047690972110421",
            "durationMs": 3.283846,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/plain-notes",
              "git.args_count": 3
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "7b33a68c9e713b0819a327aa83f20990",
            "spanId": "ec16e41d5670a14e",
            "parentSpanId": "53999a2b9f5ac49e",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690965137343",
            "endTimeUnixNano": "1796047690972184902",
            "durationMs": 7.047559,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Failure",
              "cause": "GitCommandError: Git command failed in GitVcsDriver.listWorktreePaths ($FIXTURE/fx/plain-notes): Git command exited with a non-zero status. (not_a_repository)\n    at file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:1635:11\n    at executeWorktreeList (file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:7803:5)\n    at executeWorktreeList (definition) (file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:1681:38)\n    at StorageCleanup.reportOrphanWorktrees (file://$CHECKOUT/apps/server/src/storageCleanup.ts:1967:12)\n    at StorageCleanup.reportOrphanWorktrees (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:556:40)\n    at StorageCleanup.cleanWorktrees (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2193:37)\n    at StorageCleanup.cleanWorktrees (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:1208:33)\n    at StorageCleanup.sweep (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2293:24)\n    at StorageCleanup.sweep (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2162:24)\n    at DrainableWorker.makeDrainableWorker (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2290:25)\n    at DrainableWorker.makeDrainableWorker (definition) (file://$CHECKOUT/packages/shared/src/DrainableWorker.ts:20:43)"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "7b33a68c9e713b0819a327aa83f20990",
            "spanId": "07b513e18ca0687c",
            "parentSpanId": "174104d92d2975e6",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690972568775",
            "endTimeUnixNano": "1796047690974244369",
            "durationMs": 1.675594,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "7b33a68c9e713b0819a327aa83f20990",
            "spanId": "174104d92d2975e6",
            "parentSpanId": "7b12df8305152d7c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690972412272",
            "endTimeUnixNano": "1796047690975094569",
            "durationMs": 2.682297,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "7b33a68c9e713b0819a327aa83f20990",
            "spanId": "7b12df8305152d7c",
            "parentSpanId": "fcc4491235cf88e4",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690972374956",
            "endTimeUnixNano": "1796047690975252745",
            "durationMs": 2.877789,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo/packages/app",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "7b33a68c9e713b0819a327aa83f20990",
            "spanId": "fcc4491235cf88e4",
            "parentSpanId": "53999a2b9f5ac49e",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690972353985",
            "endTimeUnixNano": "1796047690975266716",
            "durationMs": 2.912731,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "7b33a68c9e713b0819a327aa83f20990",
            "spanId": "757d52e09c63d9bf",
            "parentSpanId": "13c0138df949b8ed",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690975497070",
            "endTimeUnixNano": "1796047690977238341",
            "durationMs": 1.741271,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "7b33a68c9e713b0819a327aa83f20990",
            "spanId": "13c0138df949b8ed",
            "parentSpanId": "a4ff67988133679a",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690975354387",
            "endTimeUnixNano": "1796047690978007811",
            "durationMs": 2.653424,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "7b33a68c9e713b0819a327aa83f20990",
            "spanId": "a4ff67988133679a",
            "parentSpanId": "8186f9d8f24dfa03",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690975321107",
            "endTimeUnixNano": "1796047690978183674",
            "durationMs": 2.862567,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo-link",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "7b33a68c9e713b0819a327aa83f20990",
            "spanId": "8186f9d8f24dfa03",
            "parentSpanId": "53999a2b9f5ac49e",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690975303892",
            "endTimeUnixNano": "1796047690978197865",
            "durationMs": 2.893973,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "7b33a68c9e713b0819a327aa83f20990",
            "spanId": "f5df174f14673537",
            "parentSpanId": "a837881f375f5656",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690978448089",
            "endTimeUnixNano": "1796047690980020458",
            "durationMs": 1.572369,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "7b33a68c9e713b0819a327aa83f20990",
            "spanId": "a837881f375f5656",
            "parentSpanId": "cf18beb9859c17e6",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690978290794",
            "endTimeUnixNano": "1796047690980994954",
            "durationMs": 2.70416,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "7b33a68c9e713b0819a327aa83f20990",
            "spanId": "cf18beb9859c17e6",
            "parentSpanId": "103211ba3cb3b82e",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690978237073",
            "endTimeUnixNano": "1796047690981154121",
            "durationMs": 2.917048,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "7b33a68c9e713b0819a327aa83f20990",
            "spanId": "103211ba3cb3b82e",
            "parentSpanId": "53999a2b9f5ac49e",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690978219667",
            "endTimeUnixNano": "1796047690981168513",
            "durationMs": 2.948846,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "7b33a68c9e713b0819a327aa83f20990",
            "spanId": "546c647488a5209c",
            "parentSpanId": "53999a2b9f5ac49e",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690981470744",
            "endTimeUnixNano": "1796047690981515421",
            "durationMs": 0.044677,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "7b33a68c9e713b0819a327aa83f20990",
            "spanId": "a7f4e0e517f2800e",
            "parentSpanId": "53999a2b9f5ac49e",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690981655951",
            "endTimeUnixNano": "1796047690981691454",
            "durationMs": 0.035503,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "7b33a68c9e713b0819a327aa83f20990",
            "spanId": "a3e8f178bb7ac351",
            "parentSpanId": "53999a2b9f5ac49e",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690981826185",
            "endTimeUnixNano": "1796047690981844773",
            "durationMs": 0.018588,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "7b33a68c9e713b0819a327aa83f20990",
            "spanId": "fc8853090de56056",
            "parentSpanId": "53999a2b9f5ac49e",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690981928698",
            "endTimeUnixNano": "1796047690981946986",
            "durationMs": 0.018288,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "storageCleanup.measureWorktree",
            "traceId": "7b33a68c9e713b0819a327aa83f20990",
            "spanId": "88c6f0d9e5be5106",
            "parentSpanId": "53999a2b9f5ac49e",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690981974226",
            "endTimeUnixNano": "1796047690982487413",
            "durationMs": 0.513187,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.reportOrphanWorktrees",
            "traceId": "7b33a68c9e713b0819a327aa83f20990",
            "spanId": "53999a2b9f5ac49e",
            "parentSpanId": "9ab44d44474dd798",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690963821167",
            "endTimeUnixNano": "1796047690986447039",
            "durationMs": 22.625872,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanWorktrees",
            "traceId": "7b33a68c9e713b0819a327aa83f20990",
            "spanId": "9ab44d44474dd798",
            "parentSpanId": "07b6fecd58e8d63f",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690961784534",
            "endTimeUnixNano": "1796047690986465606",
            "durationMs": 24.681072,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.sweep",
            "traceId": "7b33a68c9e713b0819a327aa83f20990",
            "spanId": "07b6fecd58e8d63f",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690961434922",
            "endTimeUnixNano": "1796047690986511605",
            "durationMs": 25.076683,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          }
        ]
      },
      {
        "run": 30,
        "warmup": false,
        "elapsedMs": 20.620184999999992,
        "nestedOrphanFound": true,
        "report": {
          "_tag": "Success",
          "value": {
            "trigger": "manual",
            "startedAt": "2026-11-30T14:08:10.990Z",
            "finishedAt": "2026-11-30T14:08:11.009Z",
            "entries": [
              {
                "kind": "worktree",
                "outcome": "kept",
                "reason": "No thread uses this worktree",
                "path": "$FIXTURE/data/worktrees/repository/replay/repo-wt",
                "projectPath": null,
                "threadId": null,
                "threadTitle": null,
                "bytes": 8192,
                "files": null
              }
            ],
            "counts": {
              "removed": 0,
              "kept": 1,
              "failed": 0
            },
            "omittedCount": 0,
            "bytesFreed": 0
          }
        },
        "spans": [
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "ee449d768935e74be5f04f955a048cbd",
            "spanId": "e2b42476ab5e1c1e",
            "parentSpanId": "bf80b329247aad85",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690990129630",
            "endTimeUnixNano": "1796047690990384741",
            "durationMs": 0.255111,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      WITH RECURSIVE retained_checkpoint_threads(thread_id) AS (\n        SELECT thread_id FROM orchestration_v2_projection_threads WHERE deleted_at IS NULL\n        UNION\n        SELECT json_extract(t\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.051,
              "db.client.connection.wait_time_ms": 0.071346
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanCheckpointRefs",
            "traceId": "ee449d768935e74be5f04f955a048cbd",
            "spanId": "bf80b329247aad85",
            "parentSpanId": "5fe004460b0bb3fc",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690990109640",
            "endTimeUnixNano": "1796047690990431551",
            "durationMs": 0.321911,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.retryLeftovers",
            "traceId": "ee449d768935e74be5f04f955a048cbd",
            "spanId": "6a466543df3f3041",
            "parentSpanId": "5fe004460b0bb3fc",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690990448967",
            "endTimeUnixNano": "1796047690990542497",
            "durationMs": 0.09353,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveGitWorktreePath",
            "traceId": "ee449d768935e74be5f04f955a048cbd",
            "spanId": "41c41a6b0b98a412",
            "parentSpanId": "a0b0c9dd287adcb6",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690990585110",
            "endTimeUnixNano": "1796047690990775204",
            "durationMs": 0.190094,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveWorktreeT3Home",
            "traceId": "ee449d768935e74be5f04f955a048cbd",
            "spanId": "a0b0c9dd287adcb6",
            "parentSpanId": "8bad324d5d143d5e",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690990577900",
            "endTimeUnixNano": "1796047690990782215",
            "durationMs": 0.204315,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "ee449d768935e74be5f04f955a048cbd",
            "spanId": "7bec5d5b074cf0e2",
            "parentSpanId": "8bad324d5d143d5e",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690991024277",
            "endTimeUnixNano": "1796047690991246048",
            "durationMs": 0.221771,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n          SELECT t.payload_json, p.workspace_root AS \"workspaceRoot\"\n          FROM orchestration_v2_projection_threads t\n          JOIN projection_projects p ON p.project_id = t.project_id\n         \u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.031,
              "db.client.connection.wait_time_ms": 0.046018
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "BEGIN",
            "traceId": "ee449d768935e74be5f04f955a048cbd",
            "spanId": "b9f9c4cb77232b83",
            "parentSpanId": "e2f071c50119fa1e",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690991391986",
            "endTimeUnixNano": "1796047690991463813",
            "durationMs": 0.071827,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "BEGIN"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "ee449d768935e74be5f04f955a048cbd",
            "spanId": "e2268d180a3ddbba",
            "parentSpanId": "6b15d0c4bae32782",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690991568069",
            "endTimeUnixNano": "1796047690991667317",
            "durationMs": 0.099248,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n            SELECT\n              t.thread_id,\n              t.payload_json,\n              t.fork_run_ids_json,\n              CASE\n                WHEN json_extract(t.payload_json, '$.forkedFrom.type'\u2026[truncated]",
              "db.client.connection.wait_time_ms": 0.01352
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "ee449d768935e74be5f04f955a048cbd",
            "spanId": "46f5123532b0efd3",
            "parentSpanId": "6b15d0c4bae32782",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690991712374",
            "endTimeUnixNano": "1796047690991763691",
            "durationMs": 0.051317,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n        SELECT MAX(sequence) AS snapshot_sequence\n        FROM orchestration_events\n        WHERE application_event_version = 2\n          AND aggregate_kind = 'thread'\n      ",
              "db.client.connection.wait_time_ms": 0.005899
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readShellSnapshotRows",
            "traceId": "ee449d768935e74be5f04f955a048cbd",
            "spanId": "6b15d0c4bae32782",
            "parentSpanId": "e2f071c50119fa1e",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690991491224",
            "endTimeUnixNano": "1796047690991776891",
            "durationMs": 0.285667,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "COMMIT",
            "traceId": "ee449d768935e74be5f04f955a048cbd",
            "spanId": "88ea6cba06c6ce9f",
            "parentSpanId": "e2f071c50119fa1e",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690991786185",
            "endTimeUnixNano": "1796047690991817712",
            "durationMs": 0.031527,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "COMMIT"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sql.transaction",
            "traceId": "ee449d768935e74be5f04f955a048cbd",
            "spanId": "e2f071c50119fa1e",
            "parentSpanId": "5ab5fa5df4255fb2",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690991335622",
            "endTimeUnixNano": "1796047690991842018",
            "durationMs": 0.506396,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.client.connection.wait_time_ms": 0.046209,
              "db.connection": "reader",
              "db.lock_wait_ms": 0.025
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.pendingBackgroundDataByThreadId",
            "traceId": "ee449d768935e74be5f04f955a048cbd",
            "spanId": "362e55a1e8b1ac17",
            "parentSpanId": "adc4c9a0313a2122",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690991885844",
            "endTimeUnixNano": "1796047690991891482",
            "durationMs": 0.005638,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.decodeShellSnapshot",
            "traceId": "ee449d768935e74be5f04f955a048cbd",
            "spanId": "adc4c9a0313a2122",
            "parentSpanId": "5ab5fa5df4255fb2",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690991870521",
            "endTimeUnixNano": "1796047690991900215",
            "durationMs": 0.029694,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "ee449d768935e74be5f04f955a048cbd",
            "spanId": "fdf038f439013086",
            "parentSpanId": "11b0614085bde0c5",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690991943289",
            "endTimeUnixNano": "1796047690992056739",
            "durationMs": 0.11345,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.026,
              "db.client.connection.wait_time_ms": 0.035053
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectStoreV2.listShells",
            "traceId": "ee449d768935e74be5f04f955a048cbd",
            "spanId": "11b0614085bde0c5",
            "parentSpanId": "5ab5fa5df4255fb2",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690991908477",
            "endTimeUnixNano": "1796047690992156918",
            "durationMs": 0.248441,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.readThreads",
            "traceId": "ee449d768935e74be5f04f955a048cbd",
            "spanId": "5ab5fa5df4255fb2",
            "parentSpanId": "8bad324d5d143d5e",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690991299297",
            "endTimeUnixNano": "1796047690992165091",
            "durationMs": 0.865794,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "ee449d768935e74be5f04f955a048cbd",
            "spanId": "91bf665e4d1341df",
            "parentSpanId": "8bad324d5d143d5e",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690992192422",
            "endTimeUnixNano": "1796047690992302115",
            "durationMs": 0.109693,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.02,
              "db.client.connection.wait_time_ms": 0.031687
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "ee449d768935e74be5f04f955a048cbd",
            "spanId": "952b33a6d57f656f",
            "parentSpanId": "05e90054678302ba",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690992376006",
            "endTimeUnixNano": "1796047690992473762",
            "durationMs": 0.097756,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT DISTINCT json_extract(payload_json, '$.worktreePath') AS \"worktreePath\"\n      FROM orchestration_v2_projection_threads\n      WHERE json_extract(payload_json, '$.worktreePath') IS NOT NUL\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.035,
              "db.client.connection.wait_time_ms": 0.043785
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "ee449d768935e74be5f04f955a048cbd",
            "spanId": "42a3b7b0219dfd5c",
            "parentSpanId": "f88d617df2de3902",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690993723709",
            "endTimeUnixNano": "1796047690995482026",
            "durationMs": 1.758317,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "ee449d768935e74be5f04f955a048cbd",
            "spanId": "f88d617df2de3902",
            "parentSpanId": "ca491e52835769f8",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690993540766",
            "endTimeUnixNano": "1796047690996367288",
            "durationMs": 2.826522,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "ee449d768935e74be5f04f955a048cbd",
            "spanId": "ca491e52835769f8",
            "parentSpanId": "bd8b5727466b453c",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690993501667",
            "endTimeUnixNano": "1796047690996567538",
            "durationMs": 3.065871,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/plain-notes",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "ee449d768935e74be5f04f955a048cbd",
            "spanId": "1b2a6c75e34a3963",
            "parentSpanId": "a4311d440aafdf31",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690996799134",
            "endTimeUnixNano": "1796047690998962145",
            "durationMs": 2.163011,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "ee449d768935e74be5f04f955a048cbd",
            "spanId": "a4311d440aafdf31",
            "parentSpanId": "f2bb1558b8cd2071",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690996633436",
            "endTimeUnixNano": "1796047690999759707",
            "durationMs": 3.126271,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "ee449d768935e74be5f04f955a048cbd",
            "spanId": "f2bb1558b8cd2071",
            "parentSpanId": "bd8b5727466b453c",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047690996593667",
            "endTimeUnixNano": "1796047690999930031",
            "durationMs": 3.336364,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/plain-notes",
              "git.args_count": 3
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "ee449d768935e74be5f04f955a048cbd",
            "spanId": "bd8b5727466b453c",
            "parentSpanId": "05e90054678302ba",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690993477922",
            "endTimeUnixNano": "1796047691000005914",
            "durationMs": 6.527992,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Failure",
              "cause": "GitCommandError: Git command failed in GitVcsDriver.listWorktreePaths ($FIXTURE/fx/plain-notes): Git command exited with a non-zero status. (not_a_repository)\n    at file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:1635:11\n    at executeWorktreeList (file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:7803:5)\n    at executeWorktreeList (definition) (file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:1681:38)\n    at StorageCleanup.reportOrphanWorktrees (file://$CHECKOUT/apps/server/src/storageCleanup.ts:1967:12)\n    at StorageCleanup.reportOrphanWorktrees (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:556:40)\n    at StorageCleanup.cleanWorktrees (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2193:37)\n    at StorageCleanup.cleanWorktrees (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:1208:33)\n    at StorageCleanup.sweep (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2293:24)\n    at StorageCleanup.sweep (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2162:24)\n    at DrainableWorker.makeDrainableWorker (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2290:25)\n    at DrainableWorker.makeDrainableWorker (definition) (file://$CHECKOUT/packages/shared/src/DrainableWorker.ts:20:43)"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "ee449d768935e74be5f04f955a048cbd",
            "spanId": "7fb2c530b41f94e0",
            "parentSpanId": "8443d5215c0b6207",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691000369337",
            "endTimeUnixNano": "1796047691001948126",
            "durationMs": 1.578789,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "ee449d768935e74be5f04f955a048cbd",
            "spanId": "8443d5215c0b6207",
            "parentSpanId": "2efffd562bfca798",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691000204251",
            "endTimeUnixNano": "1796047691002816794",
            "durationMs": 2.612543,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "ee449d768935e74be5f04f955a048cbd",
            "spanId": "2efffd562bfca798",
            "parentSpanId": "1b0c9966cea946bd",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691000166955",
            "endTimeUnixNano": "1796047691002985406",
            "durationMs": 2.818451,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo/packages/app",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "ee449d768935e74be5f04f955a048cbd",
            "spanId": "1b0c9966cea946bd",
            "parentSpanId": "05e90054678302ba",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691000149178",
            "endTimeUnixNano": "1796047691002999146",
            "durationMs": 2.849968,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "ee449d768935e74be5f04f955a048cbd",
            "spanId": "5f587d11c50a4ad7",
            "parentSpanId": "66c4234f2e548f7d",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691003207848",
            "endTimeUnixNano": "1796047691004644033",
            "durationMs": 1.436185,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "ee449d768935e74be5f04f955a048cbd",
            "spanId": "66c4234f2e548f7d",
            "parentSpanId": "f694365af6ee4afa",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691003070192",
            "endTimeUnixNano": "1796047691005551960",
            "durationMs": 2.481768,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "ee449d768935e74be5f04f955a048cbd",
            "spanId": "f694365af6ee4afa",
            "parentSpanId": "6865544874bf467c",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691003037253",
            "endTimeUnixNano": "1796047691005705419",
            "durationMs": 2.668166,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo-link",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "ee449d768935e74be5f04f955a048cbd",
            "spanId": "6865544874bf467c",
            "parentSpanId": "05e90054678302ba",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691003020879",
            "endTimeUnixNano": "1796047691005718699",
            "durationMs": 2.69782,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "ee449d768935e74be5f04f955a048cbd",
            "spanId": "907ea8bc65ab17e0",
            "parentSpanId": "20f13f3052877884",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691005920841",
            "endTimeUnixNano": "1796047691007305009",
            "durationMs": 1.384168,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "ee449d768935e74be5f04f955a048cbd",
            "spanId": "20f13f3052877884",
            "parentSpanId": "d375fa9f8c736531",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691005787481",
            "endTimeUnixNano": "1796047691008122640",
            "durationMs": 2.335159,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "ee449d768935e74be5f04f955a048cbd",
            "spanId": "d375fa9f8c736531",
            "parentSpanId": "bad3b0491e250dca",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691005753951",
            "endTimeUnixNano": "1796047691008301307",
            "durationMs": 2.547356,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "ee449d768935e74be5f04f955a048cbd",
            "spanId": "bad3b0491e250dca",
            "parentSpanId": "05e90054678302ba",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691005737988",
            "endTimeUnixNano": "1796047691008316359",
            "durationMs": 2.578371,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "ee449d768935e74be5f04f955a048cbd",
            "spanId": "68dc7a45c88a887a",
            "parentSpanId": "05e90054678302ba",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691008642447",
            "endTimeUnixNano": "1796047691008682026",
            "durationMs": 0.039579,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "ee449d768935e74be5f04f955a048cbd",
            "spanId": "73b9e1d7e800f677",
            "parentSpanId": "05e90054678302ba",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691008806302",
            "endTimeUnixNano": "1796047691008827734",
            "durationMs": 0.021432,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "ee449d768935e74be5f04f955a048cbd",
            "spanId": "ff693f090e335e12",
            "parentSpanId": "05e90054678302ba",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691008944869",
            "endTimeUnixNano": "1796047691008960842",
            "durationMs": 0.015973,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "ee449d768935e74be5f04f955a048cbd",
            "spanId": "ab83e349718cb625",
            "parentSpanId": "05e90054678302ba",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691009029685",
            "endTimeUnixNano": "1796047691009055864",
            "durationMs": 0.026179,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "storageCleanup.measureWorktree",
            "traceId": "ee449d768935e74be5f04f955a048cbd",
            "spanId": "b7d5ec148c699c94",
            "parentSpanId": "05e90054678302ba",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691009083055",
            "endTimeUnixNano": "1796047691009571044",
            "durationMs": 0.487989,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.reportOrphanWorktrees",
            "traceId": "ee449d768935e74be5f04f955a048cbd",
            "spanId": "05e90054678302ba",
            "parentSpanId": "8bad324d5d143d5e",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690992365470",
            "endTimeUnixNano": "1796047691009598445",
            "durationMs": 17.232975,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanWorktrees",
            "traceId": "ee449d768935e74be5f04f955a048cbd",
            "spanId": "8bad324d5d143d5e",
            "parentSpanId": "5fe004460b0bb3fc",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690990555105",
            "endTimeUnixNano": "1796047691009605385",
            "durationMs": 19.05028,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.sweep",
            "traceId": "ee449d768935e74be5f04f955a048cbd",
            "spanId": "5fe004460b0bb3fc",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047690990079014",
            "endTimeUnixNano": "1796047691009646487",
            "durationMs": 19.567473,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          }
        ]
      },
      {
        "run": 31,
        "warmup": false,
        "elapsedMs": 18.48067900000001,
        "nestedOrphanFound": true,
        "report": {
          "_tag": "Success",
          "value": {
            "trigger": "manual",
            "startedAt": "2026-11-30T14:08:11.010Z",
            "finishedAt": "2026-11-30T14:08:11.028Z",
            "entries": [
              {
                "kind": "worktree",
                "outcome": "kept",
                "reason": "No thread uses this worktree",
                "path": "$FIXTURE/data/worktrees/repository/replay/repo-wt",
                "projectPath": null,
                "threadId": null,
                "threadTitle": null,
                "bytes": 8192,
                "files": null
              }
            ],
            "counts": {
              "removed": 0,
              "kept": 1,
              "failed": 0
            },
            "omittedCount": 0,
            "bytesFreed": 0
          }
        },
        "spans": [
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "f329dc84ebf6343c065d1d95dd217f7e",
            "spanId": "bdacdec8e6741c15",
            "parentSpanId": "2f1710d4c83c6b10",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691010663546",
            "endTimeUnixNano": "1796047691010824196",
            "durationMs": 0.16065,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      WITH RECURSIVE retained_checkpoint_threads(thread_id) AS (\n        SELECT thread_id FROM orchestration_v2_projection_threads WHERE deleted_at IS NULL\n        UNION\n        SELECT json_extract(t\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.034,
              "db.client.connection.wait_time_ms": 0.048783
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanCheckpointRefs",
            "traceId": "f329dc84ebf6343c065d1d95dd217f7e",
            "spanId": "2f1710d4c83c6b10",
            "parentSpanId": "b81e591be4f588ed",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691010650837",
            "endTimeUnixNano": "1796047691010857776",
            "durationMs": 0.206939,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.retryLeftovers",
            "traceId": "f329dc84ebf6343c065d1d95dd217f7e",
            "spanId": "4a055e343c6c206e",
            "parentSpanId": "b81e591be4f588ed",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691010874531",
            "endTimeUnixNano": "1796047691010941321",
            "durationMs": 0.06679,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveGitWorktreePath",
            "traceId": "f329dc84ebf6343c065d1d95dd217f7e",
            "spanId": "cb981ec2ab22ac02",
            "parentSpanId": "89d279cd3655e54a",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691010988502",
            "endTimeUnixNano": "1796047691011165556",
            "durationMs": 0.177054,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveWorktreeT3Home",
            "traceId": "f329dc84ebf6343c065d1d95dd217f7e",
            "spanId": "89d279cd3655e54a",
            "parentSpanId": "1fb7d6e1aeb22767",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691010981721",
            "endTimeUnixNano": "1796047691011172566",
            "durationMs": 0.190845,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "f329dc84ebf6343c065d1d95dd217f7e",
            "spanId": "63052ee49a366e0b",
            "parentSpanId": "1fb7d6e1aeb22767",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691011393386",
            "endTimeUnixNano": "1796047691011494357",
            "durationMs": 0.100971,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n          SELECT t.payload_json, p.workspace_root AS \"workspaceRoot\"\n          FROM orchestration_v2_projection_threads t\n          JOIN projection_projects p ON p.project_id = t.project_id\n         \u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.034,
              "db.client.connection.wait_time_ms": 0.04686
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "BEGIN",
            "traceId": "f329dc84ebf6343c065d1d95dd217f7e",
            "spanId": "e6981ce68d6ecf0e",
            "parentSpanId": "852dc4a1e055e6ac",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691011612293",
            "endTimeUnixNano": "1796047691011662639",
            "durationMs": 0.050346,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "BEGIN"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "f329dc84ebf6343c065d1d95dd217f7e",
            "spanId": "c85a3e8f3fc59e1a",
            "parentSpanId": "798924506a3db2fb",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691011758642",
            "endTimeUnixNano": "1796047691011857860",
            "durationMs": 0.099218,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n            SELECT\n              t.thread_id,\n              t.payload_json,\n              t.fork_run_ids_json,\n              CASE\n                WHEN json_extract(t.payload_json, '$.forkedFrom.type'\u2026[truncated]",
              "db.client.connection.wait_time_ms": 0.012158
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "f329dc84ebf6343c065d1d95dd217f7e",
            "spanId": "9f4ceeaf688061ee",
            "parentSpanId": "798924506a3db2fb",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691011894505",
            "endTimeUnixNano": "1796047691011942927",
            "durationMs": 0.048422,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n        SELECT MAX(sequence) AS snapshot_sequence\n        FROM orchestration_events\n        WHERE application_event_version = 2\n          AND aggregate_kind = 'thread'\n      ",
              "db.client.connection.wait_time_ms": 0.006299
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readShellSnapshotRows",
            "traceId": "f329dc84ebf6343c065d1d95dd217f7e",
            "spanId": "798924506a3db2fb",
            "parentSpanId": "852dc4a1e055e6ac",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691011685633",
            "endTimeUnixNano": "1796047691011954825",
            "durationMs": 0.269192,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "COMMIT",
            "traceId": "f329dc84ebf6343c065d1d95dd217f7e",
            "spanId": "55c75e601d88ef5c",
            "parentSpanId": "852dc4a1e055e6ac",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691011963949",
            "endTimeUnixNano": "1796047691012000363",
            "durationMs": 0.036414,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "COMMIT"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sql.transaction",
            "traceId": "f329dc84ebf6343c065d1d95dd217f7e",
            "spanId": "852dc4a1e055e6ac",
            "parentSpanId": "562ea8414ab7c8e1",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691011564352",
            "endTimeUnixNano": "1796047691012022316",
            "durationMs": 0.457964,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.client.connection.wait_time_ms": 0.04031,
              "db.connection": "reader",
              "db.lock_wait_ms": 0.023
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.pendingBackgroundDataByThreadId",
            "traceId": "f329dc84ebf6343c065d1d95dd217f7e",
            "spanId": "edba24f790718c30",
            "parentSpanId": "b38f6e26253817e1",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691012062987",
            "endTimeUnixNano": "1796047691012068495",
            "durationMs": 0.005508,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.decodeShellSnapshot",
            "traceId": "f329dc84ebf6343c065d1d95dd217f7e",
            "spanId": "b38f6e26253817e1",
            "parentSpanId": "562ea8414ab7c8e1",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691012047944",
            "endTimeUnixNano": "1796047691012076837",
            "durationMs": 0.028893,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "f329dc84ebf6343c065d1d95dd217f7e",
            "spanId": "2154e19fd25818c7",
            "parentSpanId": "598548942aeababa",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691012110538",
            "endTimeUnixNano": "1796047691012226261",
            "durationMs": 0.115723,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.026,
              "db.client.connection.wait_time_ms": 0.036975
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectStoreV2.listShells",
            "traceId": "f329dc84ebf6343c065d1d95dd217f7e",
            "spanId": "598548942aeababa",
            "parentSpanId": "562ea8414ab7c8e1",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691012084288",
            "endTimeUnixNano": "1796047691012299740",
            "durationMs": 0.215452,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.readThreads",
            "traceId": "f329dc84ebf6343c065d1d95dd217f7e",
            "spanId": "562ea8414ab7c8e1",
            "parentSpanId": "1fb7d6e1aeb22767",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691011535719",
            "endTimeUnixNano": "1796047691012308073",
            "durationMs": 0.772354,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "f329dc84ebf6343c065d1d95dd217f7e",
            "spanId": "94c0f1c684e62296",
            "parentSpanId": "1fb7d6e1aeb22767",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691012332970",
            "endTimeUnixNano": "1796047691012441773",
            "durationMs": 0.108803,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.02,
              "db.client.connection.wait_time_ms": 0.031207
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "f329dc84ebf6343c065d1d95dd217f7e",
            "spanId": "163cdf88f0cbe69a",
            "parentSpanId": "1e8c7b9ef9563abe",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691012495202",
            "endTimeUnixNano": "1796047691012684876",
            "durationMs": 0.189674,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT DISTINCT json_extract(payload_json, '$.worktreePath') AS \"worktreePath\"\n      FROM orchestration_v2_projection_threads\n      WHERE json_extract(payload_json, '$.worktreePath') IS NOT NUL\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.031,
              "db.client.connection.wait_time_ms": 0.038137
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "f329dc84ebf6343c065d1d95dd217f7e",
            "spanId": "525fa57fb4bf21ef",
            "parentSpanId": "83605089950de44e",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691013800252",
            "endTimeUnixNano": "1796047691015285150",
            "durationMs": 1.484898,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "f329dc84ebf6343c065d1d95dd217f7e",
            "spanId": "83605089950de44e",
            "parentSpanId": "856c7f55c54fb5a5",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691013658370",
            "endTimeUnixNano": "1796047691016012317",
            "durationMs": 2.353947,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "f329dc84ebf6343c065d1d95dd217f7e",
            "spanId": "856c7f55c54fb5a5",
            "parentSpanId": "a4fe83abf15e9c7d",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691013624469",
            "endTimeUnixNano": "1796047691016196061",
            "durationMs": 2.571592,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/plain-notes",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "f329dc84ebf6343c065d1d95dd217f7e",
            "spanId": "3b76f76a1586bf3f",
            "parentSpanId": "f59c1a80063b58eb",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691016404993",
            "endTimeUnixNano": "1796047691017770764",
            "durationMs": 1.365771,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "f329dc84ebf6343c065d1d95dd217f7e",
            "spanId": "f59c1a80063b58eb",
            "parentSpanId": "2f3a7121650607ec",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691016255470",
            "endTimeUnixNano": "1796047691018446043",
            "durationMs": 2.190573,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "f329dc84ebf6343c065d1d95dd217f7e",
            "spanId": "2f3a7121650607ec",
            "parentSpanId": "a4fe83abf15e9c7d",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691016219236",
            "endTimeUnixNano": "1796047691018596547",
            "durationMs": 2.377311,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/plain-notes",
              "git.args_count": 3
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "f329dc84ebf6343c065d1d95dd217f7e",
            "spanId": "a4fe83abf15e9c7d",
            "parentSpanId": "1e8c7b9ef9563abe",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691013606733",
            "endTimeUnixNano": "1796047691018654354",
            "durationMs": 5.047621,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Failure",
              "cause": "GitCommandError: Git command failed in GitVcsDriver.listWorktreePaths ($FIXTURE/fx/plain-notes): Git command exited with a non-zero status. (not_a_repository)\n    at file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:1635:11\n    at executeWorktreeList (file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:7803:5)\n    at executeWorktreeList (definition) (file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:1681:38)\n    at StorageCleanup.reportOrphanWorktrees (file://$CHECKOUT/apps/server/src/storageCleanup.ts:1967:12)\n    at StorageCleanup.reportOrphanWorktrees (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:556:40)\n    at StorageCleanup.cleanWorktrees (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2193:37)\n    at StorageCleanup.cleanWorktrees (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:1208:33)\n    at StorageCleanup.sweep (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2293:24)\n    at StorageCleanup.sweep (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2162:24)\n    at DrainableWorker.makeDrainableWorker (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2290:25)\n    at DrainableWorker.makeDrainableWorker (definition) (file://$CHECKOUT/packages/shared/src/DrainableWorker.ts:20:43)"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "f329dc84ebf6343c065d1d95dd217f7e",
            "spanId": "625e4adeed0c2bf2",
            "parentSpanId": "ad1ffcc47fb0d835",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691018974712",
            "endTimeUnixNano": "1796047691020064090",
            "durationMs": 1.089378,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "f329dc84ebf6343c065d1d95dd217f7e",
            "spanId": "ad1ffcc47fb0d835",
            "parentSpanId": "d5f2a186cd1bfd34",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691018835945",
            "endTimeUnixNano": "1796047691020901511",
            "durationMs": 2.065566,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "f329dc84ebf6343c065d1d95dd217f7e",
            "spanId": "d5f2a186cd1bfd34",
            "parentSpanId": "d46f03f3e3282a46",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691018798699",
            "endTimeUnixNano": "1796047691021054850",
            "durationMs": 2.256151,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo/packages/app",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "f329dc84ebf6343c065d1d95dd217f7e",
            "spanId": "d46f03f3e3282a46",
            "parentSpanId": "1e8c7b9ef9563abe",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691018783136",
            "endTimeUnixNano": "1796047691021068270",
            "durationMs": 2.285134,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "f329dc84ebf6343c065d1d95dd217f7e",
            "spanId": "32b291a317e905ca",
            "parentSpanId": "1464568675a9c884",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691021283291",
            "endTimeUnixNano": "1796047691022391126",
            "durationMs": 1.107835,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "f329dc84ebf6343c065d1d95dd217f7e",
            "spanId": "1464568675a9c884",
            "parentSpanId": "140fe634658d9f92",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691021136412",
            "endTimeUnixNano": "1796047691023143901",
            "durationMs": 2.007489,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "f329dc84ebf6343c065d1d95dd217f7e",
            "spanId": "140fe634658d9f92",
            "parentSpanId": "3bca1ea275486ed2",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691021105846",
            "endTimeUnixNano": "1796047691023306624",
            "durationMs": 2.200778,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo-link",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "f329dc84ebf6343c065d1d95dd217f7e",
            "spanId": "3bca1ea275486ed2",
            "parentSpanId": "1e8c7b9ef9563abe",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691021090052",
            "endTimeUnixNano": "1796047691023320304",
            "durationMs": 2.230252,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "f329dc84ebf6343c065d1d95dd217f7e",
            "spanId": "fff98209af3ac8a3",
            "parentSpanId": "fa27873cfe743bb6",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691023521134",
            "endTimeUnixNano": "1796047691025041876",
            "durationMs": 1.520742,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "f329dc84ebf6343c065d1d95dd217f7e",
            "spanId": "fa27873cfe743bb6",
            "parentSpanId": "48b4fc2c24d1e1e2",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691023383589",
            "endTimeUnixNano": "1796047691025991805",
            "durationMs": 2.608216,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "f329dc84ebf6343c065d1d95dd217f7e",
            "spanId": "48b4fc2c24d1e1e2",
            "parentSpanId": "e1bb44071633b597",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691023353384",
            "endTimeUnixNano": "1796047691026237983",
            "durationMs": 2.884599,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "f329dc84ebf6343c065d1d95dd217f7e",
            "spanId": "e1bb44071633b597",
            "parentSpanId": "1e8c7b9ef9563abe",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691023338772",
            "endTimeUnixNano": "1796047691026256511",
            "durationMs": 2.917739,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "f329dc84ebf6343c065d1d95dd217f7e",
            "spanId": "bfbbca1f459e2095",
            "parentSpanId": "1e8c7b9ef9563abe",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691026683088",
            "endTimeUnixNano": "1796047691026740294",
            "durationMs": 0.057206,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "f329dc84ebf6343c065d1d95dd217f7e",
            "spanId": "e9420248b7df93f8",
            "parentSpanId": "1e8c7b9ef9563abe",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691026925690",
            "endTimeUnixNano": "1796047691026961885",
            "durationMs": 0.036195,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "f329dc84ebf6343c065d1d95dd217f7e",
            "spanId": "1bf0b1a4993a5024",
            "parentSpanId": "1e8c7b9ef9563abe",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691027117126",
            "endTimeUnixNano": "1796047691027140061",
            "durationMs": 0.022935,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "f329dc84ebf6343c065d1d95dd217f7e",
            "spanId": "c356c78b45cbdbb7",
            "parentSpanId": "1e8c7b9ef9563abe",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691027230155",
            "endTimeUnixNano": "1796047691027253100",
            "durationMs": 0.022945,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "storageCleanup.measureWorktree",
            "traceId": "f329dc84ebf6343c065d1d95dd217f7e",
            "spanId": "2eb09e8cc92f7fbf",
            "parentSpanId": "1e8c7b9ef9563abe",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691027293079",
            "endTimeUnixNano": "1796047691027955128",
            "durationMs": 0.662049,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.reportOrphanWorktrees",
            "traceId": "f329dc84ebf6343c065d1d95dd217f7e",
            "spanId": "1e8c7b9ef9563abe",
            "parentSpanId": "1fb7d6e1aeb22767",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691012486569",
            "endTimeUnixNano": "1796047691027983040",
            "durationMs": 15.496471,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanWorktrees",
            "traceId": "f329dc84ebf6343c065d1d95dd217f7e",
            "spanId": "1fb7d6e1aeb22767",
            "parentSpanId": "b81e591be4f588ed",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691010952368",
            "endTimeUnixNano": "1796047691027992264",
            "durationMs": 17.039896,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.sweep",
            "traceId": "f329dc84ebf6343c065d1d95dd217f7e",
            "spanId": "b81e591be4f588ed",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691010626921",
            "endTimeUnixNano": "1796047691028043330",
            "durationMs": 17.416409,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          }
        ]
      },
      {
        "run": 32,
        "warmup": false,
        "elapsedMs": 20.231705000000034,
        "nestedOrphanFound": true,
        "report": {
          "_tag": "Success",
          "value": {
            "trigger": "manual",
            "startedAt": "2026-11-30T14:08:11.029Z",
            "finishedAt": "2026-11-30T14:08:11.048Z",
            "entries": [
              {
                "kind": "worktree",
                "outcome": "kept",
                "reason": "No thread uses this worktree",
                "path": "$FIXTURE/data/worktrees/repository/replay/repo-wt",
                "projectPath": null,
                "threadId": null,
                "threadTitle": null,
                "bytes": 8192,
                "files": null
              }
            ],
            "counts": {
              "removed": 0,
              "kept": 1,
              "failed": 0
            },
            "omittedCount": 0,
            "bytesFreed": 0
          }
        },
        "spans": [
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "022e88fdbc1cea213daee2e96001de3c",
            "spanId": "9dc108258a8423ee",
            "parentSpanId": "87a80db54874dfc0",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691029199097",
            "endTimeUnixNano": "1796047691029384784",
            "durationMs": 0.185687,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      WITH RECURSIVE retained_checkpoint_threads(thread_id) AS (\n        SELECT thread_id FROM orchestration_v2_projection_threads WHERE deleted_at IS NULL\n        UNION\n        SELECT json_extract(t\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.036,
              "db.client.connection.wait_time_ms": 0.053439
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanCheckpointRefs",
            "traceId": "022e88fdbc1cea213daee2e96001de3c",
            "spanId": "87a80db54874dfc0",
            "parentSpanId": "b25e800635cf567e",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691029187960",
            "endTimeUnixNano": "1796047691029420157",
            "durationMs": 0.232197,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.retryLeftovers",
            "traceId": "022e88fdbc1cea213daee2e96001de3c",
            "spanId": "eec2c3570bd7f4b4",
            "parentSpanId": "b25e800635cf567e",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691029445255",
            "endTimeUnixNano": "1796047691029524934",
            "durationMs": 0.079679,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveGitWorktreePath",
            "traceId": "022e88fdbc1cea213daee2e96001de3c",
            "spanId": "e7ead3663911b003",
            "parentSpanId": "75f4544fb06dddd6",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691029573496",
            "endTimeUnixNano": "1796047691029789809",
            "durationMs": 0.216313,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveWorktreeT3Home",
            "traceId": "022e88fdbc1cea213daee2e96001de3c",
            "spanId": "75f4544fb06dddd6",
            "parentSpanId": "74cde08fb291370d",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691029565194",
            "endTimeUnixNano": "1796047691029797080",
            "durationMs": 0.231886,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "022e88fdbc1cea213daee2e96001de3c",
            "spanId": "fa1f1f9280a9647f",
            "parentSpanId": "74cde08fb291370d",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691030089106",
            "endTimeUnixNano": "1796047691030184389",
            "durationMs": 0.095283,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n          SELECT t.payload_json, p.workspace_root AS \"workspaceRoot\"\n          FROM orchestration_v2_projection_threads t\n          JOIN projection_projects p ON p.project_id = t.project_id\n         \u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.027,
              "db.client.connection.wait_time_ms": 0.03999
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "BEGIN",
            "traceId": "022e88fdbc1cea213daee2e96001de3c",
            "spanId": "08cc9721bbfc9d4d",
            "parentSpanId": "da185fa273bf63bf",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691030308053",
            "endTimeUnixNano": "1796047691030355955",
            "durationMs": 0.047902,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "BEGIN"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "022e88fdbc1cea213daee2e96001de3c",
            "spanId": "21a53e9b9977063a",
            "parentSpanId": "f1e4dc82a56fa8e0",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691030458588",
            "endTimeUnixNano": "1796047691030563084",
            "durationMs": 0.104496,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n            SELECT\n              t.thread_id,\n              t.payload_json,\n              t.fork_run_ids_json,\n              CASE\n                WHEN json_extract(t.payload_json, '$.forkedFrom.type'\u2026[truncated]",
              "db.client.connection.wait_time_ms": 0.012018
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "022e88fdbc1cea213daee2e96001de3c",
            "spanId": "5b4a21a65c996e39",
            "parentSpanId": "f1e4dc82a56fa8e0",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691030591968",
            "endTimeUnixNano": "1796047691030647981",
            "durationMs": 0.056013,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n        SELECT MAX(sequence) AS snapshot_sequence\n        FROM orchestration_events\n        WHERE application_event_version = 2\n          AND aggregate_kind = 'thread'\n      ",
              "db.client.connection.wait_time_ms": 0.00671
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readShellSnapshotRows",
            "traceId": "022e88fdbc1cea213daee2e96001de3c",
            "spanId": "f1e4dc82a56fa8e0",
            "parentSpanId": "da185fa273bf63bf",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691030379500",
            "endTimeUnixNano": "1796047691030661091",
            "durationMs": 0.281591,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "COMMIT",
            "traceId": "022e88fdbc1cea213daee2e96001de3c",
            "spanId": "a41f80a626e8a241",
            "parentSpanId": "da185fa273bf63bf",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691030669914",
            "endTimeUnixNano": "1796047691032342082",
            "durationMs": 1.672168,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "COMMIT"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sql.transaction",
            "traceId": "022e88fdbc1cea213daee2e96001de3c",
            "spanId": "da185fa273bf63bf",
            "parentSpanId": "976589e1c6b24c60",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691030247173",
            "endTimeUnixNano": "1796047691032415211",
            "durationMs": 2.168038,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.client.connection.wait_time_ms": 0.052508,
              "db.connection": "reader",
              "db.lock_wait_ms": 0.034
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.pendingBackgroundDataByThreadId",
            "traceId": "022e88fdbc1cea213daee2e96001de3c",
            "spanId": "04b8d8fb0c36539e",
            "parentSpanId": "ac6f28552fad3b5c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691032493889",
            "endTimeUnixNano": "1796047691032499818",
            "durationMs": 0.005929,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.decodeShellSnapshot",
            "traceId": "022e88fdbc1cea213daee2e96001de3c",
            "spanId": "ac6f28552fad3b5c",
            "parentSpanId": "976589e1c6b24c60",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691032475902",
            "endTimeUnixNano": "1796047691032564224",
            "durationMs": 0.088322,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "022e88fdbc1cea213daee2e96001de3c",
            "spanId": "5d8b6635fe8f8651",
            "parentSpanId": "11deb1db71e614e0",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691032638855",
            "endTimeUnixNano": "1796047691032880767",
            "durationMs": 0.241912,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.035,
              "db.client.connection.wait_time_ms": 0.049995
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectStoreV2.listShells",
            "traceId": "022e88fdbc1cea213daee2e96001de3c",
            "spanId": "11deb1db71e614e0",
            "parentSpanId": "976589e1c6b24c60",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691032605335",
            "endTimeUnixNano": "1796047691032969359",
            "durationMs": 0.364024,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.readThreads",
            "traceId": "022e88fdbc1cea213daee2e96001de3c",
            "spanId": "976589e1c6b24c60",
            "parentSpanId": "74cde08fb291370d",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691030218019",
            "endTimeUnixNano": "1796047691032980285",
            "durationMs": 2.762266,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "022e88fdbc1cea213daee2e96001de3c",
            "spanId": "6a77366531b24c6c",
            "parentSpanId": "74cde08fb291370d",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691033010170",
            "endTimeUnixNano": "1796047691033138982",
            "durationMs": 0.128812,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.035,
              "db.client.connection.wait_time_ms": 0.048072
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "022e88fdbc1cea213daee2e96001de3c",
            "spanId": "59ede9039c398d00",
            "parentSpanId": "5cfa032b3d8fb5d3",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691033208777",
            "endTimeUnixNano": "1796047691033309037",
            "durationMs": 0.10026,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT DISTINCT json_extract(payload_json, '$.worktreePath') AS \"worktreePath\"\n      FROM orchestration_v2_projection_threads\n      WHERE json_extract(payload_json, '$.worktreePath') IS NOT NUL\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.038,
              "db.client.connection.wait_time_ms": 0.046349
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "022e88fdbc1cea213daee2e96001de3c",
            "spanId": "c6896199df22eeba",
            "parentSpanId": "ee4c9e5f8862fadc",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691034677922",
            "endTimeUnixNano": "1796047691036149350",
            "durationMs": 1.471428,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "022e88fdbc1cea213daee2e96001de3c",
            "spanId": "ee4c9e5f8862fadc",
            "parentSpanId": "353c16a114594364",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691034502630",
            "endTimeUnixNano": "1796047691036884598",
            "durationMs": 2.381968,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "022e88fdbc1cea213daee2e96001de3c",
            "spanId": "353c16a114594364",
            "parentSpanId": "04e5d26d6aef85cf",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691034466105",
            "endTimeUnixNano": "1796047691037057126",
            "durationMs": 2.591021,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/plain-notes",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "022e88fdbc1cea213daee2e96001de3c",
            "spanId": "d11c9d225bbd489f",
            "parentSpanId": "654c0da3c5619fa1",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691037289333",
            "endTimeUnixNano": "1796047691038544107",
            "durationMs": 1.254774,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "022e88fdbc1cea213daee2e96001de3c",
            "spanId": "654c0da3c5619fa1",
            "parentSpanId": "ba216d3dd0cc022c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691037117977",
            "endTimeUnixNano": "1796047691039230273",
            "durationMs": 2.112296,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "022e88fdbc1cea213daee2e96001de3c",
            "spanId": "ba216d3dd0cc022c",
            "parentSpanId": "04e5d26d6aef85cf",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691037080541",
            "endTimeUnixNano": "1796047691039405514",
            "durationMs": 2.324973,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/plain-notes",
              "git.args_count": 3
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "022e88fdbc1cea213daee2e96001de3c",
            "spanId": "04e5d26d6aef85cf",
            "parentSpanId": "5cfa032b3d8fb5d3",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691034443732",
            "endTimeUnixNano": "1796047691039477762",
            "durationMs": 5.03403,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Failure",
              "cause": "GitCommandError: Git command failed in GitVcsDriver.listWorktreePaths ($FIXTURE/fx/plain-notes): Git command exited with a non-zero status. (not_a_repository)\n    at file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:1635:11\n    at executeWorktreeList (file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:7803:5)\n    at executeWorktreeList (definition) (file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:1681:38)\n    at StorageCleanup.reportOrphanWorktrees (file://$CHECKOUT/apps/server/src/storageCleanup.ts:1967:12)\n    at StorageCleanup.reportOrphanWorktrees (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:556:40)\n    at StorageCleanup.cleanWorktrees (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2193:37)\n    at StorageCleanup.cleanWorktrees (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:1208:33)\n    at StorageCleanup.sweep (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2293:24)\n    at StorageCleanup.sweep (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2162:24)\n    at DrainableWorker.makeDrainableWorker (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2290:25)\n    at DrainableWorker.makeDrainableWorker (definition) (file://$CHECKOUT/packages/shared/src/DrainableWorker.ts:20:43)"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "022e88fdbc1cea213daee2e96001de3c",
            "spanId": "faea8398106c6f6b",
            "parentSpanId": "d7fa4fa41e98ccb4",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691039828416",
            "endTimeUnixNano": "1796047691041049700",
            "durationMs": 1.221284,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "022e88fdbc1cea213daee2e96001de3c",
            "spanId": "d7fa4fa41e98ccb4",
            "parentSpanId": "e4824ac06f3b1439",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691039677811",
            "endTimeUnixNano": "1796047691041862875",
            "durationMs": 2.185064,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "022e88fdbc1cea213daee2e96001de3c",
            "spanId": "e4824ac06f3b1439",
            "parentSpanId": "52b5c98f9a88c4c7",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691039641968",
            "endTimeUnixNano": "1796047691042035954",
            "durationMs": 2.393986,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo/packages/app",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "022e88fdbc1cea213daee2e96001de3c",
            "spanId": "52b5c98f9a88c4c7",
            "parentSpanId": "5cfa032b3d8fb5d3",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691039624502",
            "endTimeUnixNano": "1796047691042050325",
            "durationMs": 2.425823,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "022e88fdbc1cea213daee2e96001de3c",
            "spanId": "efcd1e41143ffef5",
            "parentSpanId": "4f417863603bfdcc",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691042334891",
            "endTimeUnixNano": "1796047691043622845",
            "durationMs": 1.287954,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "022e88fdbc1cea213daee2e96001de3c",
            "spanId": "4f417863603bfdcc",
            "parentSpanId": "982b4e34f4ee33d0",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691042136895",
            "endTimeUnixNano": "1796047691044396551",
            "durationMs": 2.259656,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "022e88fdbc1cea213daee2e96001de3c",
            "spanId": "982b4e34f4ee33d0",
            "parentSpanId": "dd9254716c9fc741",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691042099639",
            "endTimeUnixNano": "1796047691044554376",
            "durationMs": 2.454737,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo-link",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "022e88fdbc1cea213daee2e96001de3c",
            "spanId": "dd9254716c9fc741",
            "parentSpanId": "5cfa032b3d8fb5d3",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691042072679",
            "endTimeUnixNano": "1796047691044567346",
            "durationMs": 2.494667,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "022e88fdbc1cea213daee2e96001de3c",
            "spanId": "020e517378fc179b",
            "parentSpanId": "26c12b48b74c9a29",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691044764901",
            "endTimeUnixNano": "1796047691046007988",
            "durationMs": 1.243087,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "022e88fdbc1cea213daee2e96001de3c",
            "spanId": "26c12b48b74c9a29",
            "parentSpanId": "596e780e5c2f52ed",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691044632944",
            "endTimeUnixNano": "1796047691046773411",
            "durationMs": 2.140467,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "022e88fdbc1cea213daee2e96001de3c",
            "spanId": "596e780e5c2f52ed",
            "parentSpanId": "34ce0c2196250ee5",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691044602148",
            "endTimeUnixNano": "1796047691046991728",
            "durationMs": 2.38958,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "022e88fdbc1cea213daee2e96001de3c",
            "spanId": "34ce0c2196250ee5",
            "parentSpanId": "5cfa032b3d8fb5d3",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691044586715",
            "endTimeUnixNano": "1796047691047009735",
            "durationMs": 2.42302,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "022e88fdbc1cea213daee2e96001de3c",
            "spanId": "4c94e24cf934a62d",
            "parentSpanId": "5cfa032b3d8fb5d3",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691047340549",
            "endTimeUnixNano": "1796047691047388601",
            "durationMs": 0.048052,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "022e88fdbc1cea213daee2e96001de3c",
            "spanId": "7ca3001ff5428aeb",
            "parentSpanId": "5cfa032b3d8fb5d3",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691047516141",
            "endTimeUnixNano": "1796047691047538224",
            "durationMs": 0.022083,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "022e88fdbc1cea213daee2e96001de3c",
            "spanId": "245fbcb7d4f87342",
            "parentSpanId": "5cfa032b3d8fb5d3",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691047638404",
            "endTimeUnixNano": "1796047691047655579",
            "durationMs": 0.017175,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "022e88fdbc1cea213daee2e96001de3c",
            "spanId": "0e00e159d4a90d38",
            "parentSpanId": "5cfa032b3d8fb5d3",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691047729820",
            "endTimeUnixNano": "1796047691047746215",
            "durationMs": 0.016395,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "storageCleanup.measureWorktree",
            "traceId": "022e88fdbc1cea213daee2e96001de3c",
            "spanId": "0033608d9c11cd20",
            "parentSpanId": "5cfa032b3d8fb5d3",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691047774177",
            "endTimeUnixNano": "1796047691048348935",
            "durationMs": 0.574758,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.reportOrphanWorktrees",
            "traceId": "022e88fdbc1cea213daee2e96001de3c",
            "spanId": "5cfa032b3d8fb5d3",
            "parentSpanId": "74cde08fb291370d",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691033199363",
            "endTimeUnixNano": "1796047691048378509",
            "durationMs": 15.179146,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanWorktrees",
            "traceId": "022e88fdbc1cea213daee2e96001de3c",
            "spanId": "74cde08fb291370d",
            "parentSpanId": "b25e800635cf567e",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691029536561",
            "endTimeUnixNano": "1796047691048387894",
            "durationMs": 18.851333,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.sweep",
            "traceId": "022e88fdbc1cea213daee2e96001de3c",
            "spanId": "b25e800635cf567e",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691029158856",
            "endTimeUnixNano": "1796047691048437968",
            "durationMs": 19.279112,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          }
        ]
      },
      {
        "run": 33,
        "warmup": false,
        "elapsedMs": 22.74904499999991,
        "nestedOrphanFound": true,
        "report": {
          "_tag": "Success",
          "value": {
            "trigger": "manual",
            "startedAt": "2026-11-30T14:08:11.049Z",
            "finishedAt": "2026-11-30T14:08:11.071Z",
            "entries": [
              {
                "kind": "worktree",
                "outcome": "kept",
                "reason": "No thread uses this worktree",
                "path": "$FIXTURE/data/worktrees/repository/replay/repo-wt",
                "projectPath": null,
                "threadId": null,
                "threadTitle": null,
                "bytes": 8192,
                "files": null
              }
            ],
            "counts": {
              "removed": 0,
              "kept": 1,
              "failed": 0
            },
            "omittedCount": 0,
            "bytesFreed": 0
          }
        },
        "spans": [
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "05ad14d2a3f925e616bdb30fe7c6b09a",
            "spanId": "7023f8eb94c64f23",
            "parentSpanId": "72f74a3c695417bc",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691049408869",
            "endTimeUnixNano": "1796047691049591461",
            "durationMs": 0.182592,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      WITH RECURSIVE retained_checkpoint_threads(thread_id) AS (\n        SELECT thread_id FROM orchestration_v2_projection_threads WHERE deleted_at IS NULL\n        UNION\n        SELECT json_extract(t\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.04,
              "db.client.connection.wait_time_ms": 0.065558
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanCheckpointRefs",
            "traceId": "05ad14d2a3f925e616bdb30fe7c6b09a",
            "spanId": "72f74a3c695417bc",
            "parentSpanId": "25dc229c728f7f4f",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691049392344",
            "endTimeUnixNano": "1796047691049629589",
            "durationMs": 0.237245,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.retryLeftovers",
            "traceId": "05ad14d2a3f925e616bdb30fe7c6b09a",
            "spanId": "08aec1d7ab26478e",
            "parentSpanId": "25dc229c728f7f4f",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691049648877",
            "endTimeUnixNano": "1796047691049721225",
            "durationMs": 0.072348,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveGitWorktreePath",
            "traceId": "05ad14d2a3f925e616bdb30fe7c6b09a",
            "spanId": "378d5bf03225790d",
            "parentSpanId": "2ec8c48a6e52c780",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691049759302",
            "endTimeUnixNano": "1796047691049951780",
            "durationMs": 0.192478,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveWorktreeT3Home",
            "traceId": "05ad14d2a3f925e616bdb30fe7c6b09a",
            "spanId": "2ec8c48a6e52c780",
            "parentSpanId": "0ad508da7ee539bd",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691049752192",
            "endTimeUnixNano": "1796047691049959451",
            "durationMs": 0.207259,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "05ad14d2a3f925e616bdb30fe7c6b09a",
            "spanId": "a880e99bcf025c32",
            "parentSpanId": "0ad508da7ee539bd",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691050216595",
            "endTimeUnixNano": "1796047691050325859",
            "durationMs": 0.109264,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n          SELECT t.payload_json, p.workspace_root AS \"workspaceRoot\"\n          FROM orchestration_v2_projection_threads t\n          JOIN projection_projects p ON p.project_id = t.project_id\n         \u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.028,
              "db.client.connection.wait_time_ms": 0.042714
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "BEGIN",
            "traceId": "05ad14d2a3f925e616bdb30fe7c6b09a",
            "spanId": "9e78208e79c0e8e7",
            "parentSpanId": "8b53c0ba71015d76",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691050455302",
            "endTimeUnixNano": "1796047691050505507",
            "durationMs": 0.050205,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "BEGIN"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "05ad14d2a3f925e616bdb30fe7c6b09a",
            "spanId": "2e1402630433a8f2",
            "parentSpanId": "3551d13350f9a5a8",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691050604365",
            "endTimeUnixNano": "1796047691050701129",
            "durationMs": 0.096764,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n            SELECT\n              t.thread_id,\n              t.payload_json,\n              t.fork_run_ids_json,\n              CASE\n                WHEN json_extract(t.payload_json, '$.forkedFrom.type'\u2026[truncated]",
              "db.client.connection.wait_time_ms": 0.01358
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "05ad14d2a3f925e616bdb30fe7c6b09a",
            "spanId": "57387cee396b78d5",
            "parentSpanId": "3551d13350f9a5a8",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691050741950",
            "endTimeUnixNano": "1796047691050790783",
            "durationMs": 0.048833,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n        SELECT MAX(sequence) AS snapshot_sequence\n        FROM orchestration_events\n        WHERE application_event_version = 2\n          AND aggregate_kind = 'thread'\n      ",
              "db.client.connection.wait_time_ms": 0.00639
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readShellSnapshotRows",
            "traceId": "05ad14d2a3f925e616bdb30fe7c6b09a",
            "spanId": "3551d13350f9a5a8",
            "parentSpanId": "8b53c0ba71015d76",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691050531356",
            "endTimeUnixNano": "1796047691050803572",
            "durationMs": 0.272216,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "COMMIT",
            "traceId": "05ad14d2a3f925e616bdb30fe7c6b09a",
            "spanId": "635a0703b45ba75c",
            "parentSpanId": "8b53c0ba71015d76",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691050815190",
            "endTimeUnixNano": "1796047691050847197",
            "durationMs": 0.032007,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "COMMIT"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sql.transaction",
            "traceId": "05ad14d2a3f925e616bdb30fe7c6b09a",
            "spanId": "8b53c0ba71015d76",
            "parentSpanId": "127ca9d74edaa831",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691050397205",
            "endTimeUnixNano": "1796047691050871664",
            "durationMs": 0.474459,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.client.connection.wait_time_ms": 0.049444,
              "db.connection": "reader",
              "db.lock_wait_ms": 0.031
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.pendingBackgroundDataByThreadId",
            "traceId": "05ad14d2a3f925e616bdb30fe7c6b09a",
            "spanId": "4360961d2b51baa4",
            "parentSpanId": "e7b6693446bb9910",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691050912815",
            "endTimeUnixNano": "1796047691050919305",
            "durationMs": 0.00649,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.decodeShellSnapshot",
            "traceId": "05ad14d2a3f925e616bdb30fe7c6b09a",
            "spanId": "e7b6693446bb9910",
            "parentSpanId": "127ca9d74edaa831",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691050898033",
            "endTimeUnixNano": "1796047691050929000",
            "durationMs": 0.030967,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "05ad14d2a3f925e616bdb30fe7c6b09a",
            "spanId": "09335d6e63f3bfca",
            "parentSpanId": "56204d239a4372e1",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691050971333",
            "endTimeUnixNano": "1796047691051084662",
            "durationMs": 0.113329,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.027,
              "db.client.connection.wait_time_ms": 0.035683
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectStoreV2.listShells",
            "traceId": "05ad14d2a3f925e616bdb30fe7c6b09a",
            "spanId": "56204d239a4372e1",
            "parentSpanId": "127ca9d74edaa831",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691050939115",
            "endTimeUnixNano": "1796047691051178502",
            "durationMs": 0.239387,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.readThreads",
            "traceId": "05ad14d2a3f925e616bdb30fe7c6b09a",
            "spanId": "127ca9d74edaa831",
            "parentSpanId": "0ad508da7ee539bd",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691050364346",
            "endTimeUnixNano": "1796047691051187866",
            "durationMs": 0.82352,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "05ad14d2a3f925e616bdb30fe7c6b09a",
            "spanId": "a300cc4f78f92784",
            "parentSpanId": "0ad508da7ee539bd",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691051215227",
            "endTimeUnixNano": "1796047691051379713",
            "durationMs": 0.164486,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.032,
              "db.client.connection.wait_time_ms": 0.042303
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "05ad14d2a3f925e616bdb30fe7c6b09a",
            "spanId": "4f161370f42ac623",
            "parentSpanId": "5723bf016cb75ccc",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691051452782",
            "endTimeUnixNano": "1796047691051540583",
            "durationMs": 0.087801,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT DISTINCT json_extract(payload_json, '$.worktreePath') AS \"worktreePath\"\n      FROM orchestration_v2_projection_threads\n      WHERE json_extract(payload_json, '$.worktreePath') IS NOT NUL\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.035,
              "db.client.connection.wait_time_ms": 0.043595
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "05ad14d2a3f925e616bdb30fe7c6b09a",
            "spanId": "9d163efc57538bbb",
            "parentSpanId": "08aecc411f8dcf63",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691052936208",
            "endTimeUnixNano": "1796047691055154031",
            "durationMs": 2.217823,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "05ad14d2a3f925e616bdb30fe7c6b09a",
            "spanId": "08aecc411f8dcf63",
            "parentSpanId": "107dda9338bf0302",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691052710611",
            "endTimeUnixNano": "1796047691056191361",
            "durationMs": 3.48075,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "05ad14d2a3f925e616bdb30fe7c6b09a",
            "spanId": "107dda9338bf0302",
            "parentSpanId": "0d2674f05781938b",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691052660166",
            "endTimeUnixNano": "1796047691056591709",
            "durationMs": 3.931543,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/plain-notes",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "05ad14d2a3f925e616bdb30fe7c6b09a",
            "spanId": "fc1cf7f1f8483c7f",
            "parentSpanId": "bf9302cbc3e49ff2",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691056977165",
            "endTimeUnixNano": "1796047691058690124",
            "durationMs": 1.712959,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "05ad14d2a3f925e616bdb30fe7c6b09a",
            "spanId": "bf9302cbc3e49ff2",
            "parentSpanId": "d6f2c52804d4b0f9",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691056728133",
            "endTimeUnixNano": "1796047691059491591",
            "durationMs": 2.763458,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "05ad14d2a3f925e616bdb30fe7c6b09a",
            "spanId": "d6f2c52804d4b0f9",
            "parentSpanId": "0d2674f05781938b",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691056646922",
            "endTimeUnixNano": "1796047691059684299",
            "durationMs": 3.037377,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/plain-notes",
              "git.args_count": 3
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "05ad14d2a3f925e616bdb30fe7c6b09a",
            "spanId": "0d2674f05781938b",
            "parentSpanId": "5723bf016cb75ccc",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691052629059",
            "endTimeUnixNano": "1796047691059784789",
            "durationMs": 7.15573,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Failure",
              "cause": "GitCommandError: Git command failed in GitVcsDriver.listWorktreePaths ($FIXTURE/fx/plain-notes): Git command exited with a non-zero status. (not_a_repository)\n    at file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:1635:11\n    at executeWorktreeList (file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:7803:5)\n    at executeWorktreeList (definition) (file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:1681:38)\n    at StorageCleanup.reportOrphanWorktrees (file://$CHECKOUT/apps/server/src/storageCleanup.ts:1967:12)\n    at StorageCleanup.reportOrphanWorktrees (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:556:40)\n    at StorageCleanup.cleanWorktrees (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2193:37)\n    at StorageCleanup.cleanWorktrees (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:1208:33)\n    at StorageCleanup.sweep (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2293:24)\n    at StorageCleanup.sweep (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2162:24)\n    at DrainableWorker.makeDrainableWorker (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2290:25)\n    at DrainableWorker.makeDrainableWorker (definition) (file://$CHECKOUT/packages/shared/src/DrainableWorker.ts:20:43)"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "05ad14d2a3f925e616bdb30fe7c6b09a",
            "spanId": "0805e6bae8e03f77",
            "parentSpanId": "28aa92cd53b2c235",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691060212889",
            "endTimeUnixNano": "1796047691061780992",
            "durationMs": 1.568103,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "05ad14d2a3f925e616bdb30fe7c6b09a",
            "spanId": "28aa92cd53b2c235",
            "parentSpanId": "e6ce4ad5aa0719d7",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691060035294",
            "endTimeUnixNano": "1796047691062828306",
            "durationMs": 2.793012,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "05ad14d2a3f925e616bdb30fe7c6b09a",
            "spanId": "e6ce4ad5aa0719d7",
            "parentSpanId": "bcfd7a7d31320ed6",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691059990777",
            "endTimeUnixNano": "1796047691063070408",
            "durationMs": 3.079631,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo/packages/app",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "05ad14d2a3f925e616bdb30fe7c6b09a",
            "spanId": "bcfd7a7d31320ed6",
            "parentSpanId": "5723bf016cb75ccc",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691059967853",
            "endTimeUnixNano": "1796047691063090047",
            "durationMs": 3.122194,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "05ad14d2a3f925e616bdb30fe7c6b09a",
            "spanId": "3bc3c8651b481cdc",
            "parentSpanId": "dd0c03082a5bb111",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691063398468",
            "endTimeUnixNano": "1796047691065251607",
            "durationMs": 1.853139,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "05ad14d2a3f925e616bdb30fe7c6b09a",
            "spanId": "dd0c03082a5bb111",
            "parentSpanId": "cea164b02b614565",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691063186531",
            "endTimeUnixNano": "1796047691066113694",
            "durationMs": 2.927163,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "05ad14d2a3f925e616bdb30fe7c6b09a",
            "spanId": "cea164b02b614565",
            "parentSpanId": "07e94e4d0e452860",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691063142846",
            "endTimeUnixNano": "1796047691066356427",
            "durationMs": 3.213581,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo-link",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "05ad14d2a3f925e616bdb30fe7c6b09a",
            "spanId": "07e94e4d0e452860",
            "parentSpanId": "5723bf016cb75ccc",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691063120092",
            "endTimeUnixNano": "1796047691066373302",
            "durationMs": 3.25321,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "05ad14d2a3f925e616bdb30fe7c6b09a",
            "spanId": "27daacc42ef3ac19",
            "parentSpanId": "d92e45ec1c871cd6",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691066639850",
            "endTimeUnixNano": "1796047691068192430",
            "durationMs": 1.55258,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "05ad14d2a3f925e616bdb30fe7c6b09a",
            "spanId": "d92e45ec1c871cd6",
            "parentSpanId": "562870f7210c4b32",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691066462866",
            "endTimeUnixNano": "1796047691069100006",
            "durationMs": 2.63714,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "05ad14d2a3f925e616bdb30fe7c6b09a",
            "spanId": "562870f7210c4b32",
            "parentSpanId": "326ad8c60c2f8426",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691066419381",
            "endTimeUnixNano": "1796047691069351181",
            "durationMs": 2.9318,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "05ad14d2a3f925e616bdb30fe7c6b09a",
            "spanId": "326ad8c60c2f8426",
            "parentSpanId": "5723bf016cb75ccc",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691066399021",
            "endTimeUnixNano": "1796047691069370740",
            "durationMs": 2.971719,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "05ad14d2a3f925e616bdb30fe7c6b09a",
            "spanId": "cd400a726f8d29a2",
            "parentSpanId": "5723bf016cb75ccc",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691069673913",
            "endTimeUnixNano": "1796047691069721013",
            "durationMs": 0.0471,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "05ad14d2a3f925e616bdb30fe7c6b09a",
            "spanId": "23ef3d3d60189958",
            "parentSpanId": "5723bf016cb75ccc",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691069916766",
            "endTimeUnixNano": "1796047691069942655",
            "durationMs": 0.025889,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "05ad14d2a3f925e616bdb30fe7c6b09a",
            "spanId": "be974cfab1eeb926",
            "parentSpanId": "5723bf016cb75ccc",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691070069765",
            "endTimeUnixNano": "1796047691070095132",
            "durationMs": 0.025367,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "05ad14d2a3f925e616bdb30fe7c6b09a",
            "spanId": "27c51c570e171cb0",
            "parentSpanId": "5723bf016cb75ccc",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691070170385",
            "endTimeUnixNano": "1796047691070188852",
            "durationMs": 0.018467,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "storageCleanup.measureWorktree",
            "traceId": "05ad14d2a3f925e616bdb30fe7c6b09a",
            "spanId": "e15a8809a2984fdf",
            "parentSpanId": "5723bf016cb75ccc",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691070218316",
            "endTimeUnixNano": "1796047691070787406",
            "durationMs": 0.56909,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.reportOrphanWorktrees",
            "traceId": "05ad14d2a3f925e616bdb30fe7c6b09a",
            "spanId": "5723bf016cb75ccc",
            "parentSpanId": "0ad508da7ee539bd",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691051442607",
            "endTimeUnixNano": "1796047691070817401",
            "durationMs": 19.374794,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanWorktrees",
            "traceId": "05ad14d2a3f925e616bdb30fe7c6b09a",
            "spanId": "0ad508da7ee539bd",
            "parentSpanId": "25dc229c728f7f4f",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691049732412",
            "endTimeUnixNano": "1796047691070826605",
            "durationMs": 21.094193,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.sweep",
            "traceId": "05ad14d2a3f925e616bdb30fe7c6b09a",
            "spanId": "25dc229c728f7f4f",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691049364422",
            "endTimeUnixNano": "1796047691070874347",
            "durationMs": 21.509925,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          }
        ]
      },
      {
        "run": 34,
        "warmup": false,
        "elapsedMs": 19.270768999999973,
        "nestedOrphanFound": true,
        "report": {
          "_tag": "Success",
          "value": {
            "trigger": "manual",
            "startedAt": "2026-11-30T14:08:11.072Z",
            "finishedAt": "2026-11-30T14:08:11.090Z",
            "entries": [
              {
                "kind": "worktree",
                "outcome": "kept",
                "reason": "No thread uses this worktree",
                "path": "$FIXTURE/data/worktrees/repository/replay/repo-wt",
                "projectPath": null,
                "threadId": null,
                "threadTitle": null,
                "bytes": 8192,
                "files": null
              }
            ],
            "counts": {
              "removed": 0,
              "kept": 1,
              "failed": 0
            },
            "omittedCount": 0,
            "bytesFreed": 0
          }
        },
        "spans": [
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "af8f171a9a5ccf224f33deb8343a0100",
            "spanId": "0aed6277ca4b7e96",
            "parentSpanId": "d4c3cbe003843cc6",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691072258424",
            "endTimeUnixNano": "1796047691072539374",
            "durationMs": 0.28095,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      WITH RECURSIVE retained_checkpoint_threads(thread_id) AS (\n        SELECT thread_id FROM orchestration_v2_projection_threads WHERE deleted_at IS NULL\n        UNION\n        SELECT json_extract(t\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.044,
              "db.client.connection.wait_time_ms": 0.127931
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanCheckpointRefs",
            "traceId": "af8f171a9a5ccf224f33deb8343a0100",
            "spanId": "d4c3cbe003843cc6",
            "parentSpanId": "a7081b06a442695e",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691072241309",
            "endTimeUnixNano": "1796047691072580736",
            "durationMs": 0.339427,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.retryLeftovers",
            "traceId": "af8f171a9a5ccf224f33deb8343a0100",
            "spanId": "9a523f71fb83f3d0",
            "parentSpanId": "a7081b06a442695e",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691072603029",
            "endTimeUnixNano": "1796047691072677480",
            "durationMs": 0.074451,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveGitWorktreePath",
            "traceId": "af8f171a9a5ccf224f33deb8343a0100",
            "spanId": "9abea770d5f65598",
            "parentSpanId": "86444d76e8b8c5e6",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691072712753",
            "endTimeUnixNano": "1796047691072871860",
            "durationMs": 0.159107,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveWorktreeT3Home",
            "traceId": "af8f171a9a5ccf224f33deb8343a0100",
            "spanId": "86444d76e8b8c5e6",
            "parentSpanId": "d03a36dd9a135976",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691072705011",
            "endTimeUnixNano": "1796047691072878871",
            "durationMs": 0.17386,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "af8f171a9a5ccf224f33deb8343a0100",
            "spanId": "3b409c00d23df416",
            "parentSpanId": "d03a36dd9a135976",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691073066902",
            "endTimeUnixNano": "1796047691073168153",
            "durationMs": 0.101251,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n          SELECT t.payload_json, p.workspace_root AS \"workspaceRoot\"\n          FROM orchestration_v2_projection_threads t\n          JOIN projection_projects p ON p.project_id = t.project_id\n         \u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.027,
              "db.client.connection.wait_time_ms": 0.04014
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "BEGIN",
            "traceId": "af8f171a9a5ccf224f33deb8343a0100",
            "spanId": "6ab3a1a23a7cfc11",
            "parentSpanId": "4f0b7b7c29128eae",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691073303966",
            "endTimeUnixNano": "1796047691073366920",
            "durationMs": 0.062954,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "BEGIN"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "af8f171a9a5ccf224f33deb8343a0100",
            "spanId": "4944578ff80e6a59",
            "parentSpanId": "518e00e27257dab1",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691073472087",
            "endTimeUnixNano": "1796047691073591596",
            "durationMs": 0.119509,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n            SELECT\n              t.thread_id,\n              t.payload_json,\n              t.fork_run_ids_json,\n              CASE\n                WHEN json_extract(t.payload_json, '$.forkedFrom.type'\u2026[truncated]",
              "db.client.connection.wait_time_ms": 0.0129
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "af8f171a9a5ccf224f33deb8343a0100",
            "spanId": "4f2feabf5310aa07",
            "parentSpanId": "518e00e27257dab1",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691073638165",
            "endTimeUnixNano": "1796047691073692887",
            "durationMs": 0.054722,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n        SELECT MAX(sequence) AS snapshot_sequence\n        FROM orchestration_events\n        WHERE application_event_version = 2\n          AND aggregate_kind = 'thread'\n      ",
              "db.client.connection.wait_time_ms": 0.00658
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readShellSnapshotRows",
            "traceId": "af8f171a9a5ccf224f33deb8343a0100",
            "spanId": "518e00e27257dab1",
            "parentSpanId": "4f0b7b7c29128eae",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691073393139",
            "endTimeUnixNano": "1796047691073705556",
            "durationMs": 0.312417,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "COMMIT",
            "traceId": "af8f171a9a5ccf224f33deb8343a0100",
            "spanId": "7eab74f68f989337",
            "parentSpanId": "4f0b7b7c29128eae",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691073715551",
            "endTimeUnixNano": "1796047691073745736",
            "durationMs": 0.030185,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "COMMIT"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sql.transaction",
            "traceId": "af8f171a9a5ccf224f33deb8343a0100",
            "spanId": "4f0b7b7c29128eae",
            "parentSpanId": "efbb6c31fcf563c0",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691073239590",
            "endTimeUnixNano": "1796047691073769512",
            "durationMs": 0.529922,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.client.connection.wait_time_ms": 0.055353,
              "db.connection": "reader",
              "db.lock_wait_ms": 0.035
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.pendingBackgroundDataByThreadId",
            "traceId": "af8f171a9a5ccf224f33deb8343a0100",
            "spanId": "29e4d8151a44c211",
            "parentSpanId": "053ebdd61a67a4a1",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691073811034",
            "endTimeUnixNano": "1796047691073816882",
            "durationMs": 0.005848,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.decodeShellSnapshot",
            "traceId": "af8f171a9a5ccf224f33deb8343a0100",
            "spanId": "053ebdd61a67a4a1",
            "parentSpanId": "efbb6c31fcf563c0",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691073796001",
            "endTimeUnixNano": "1796047691073827288",
            "durationMs": 0.031287,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "af8f171a9a5ccf224f33deb8343a0100",
            "spanId": "da0f3403a7a506e9",
            "parentSpanId": "a58108797db4e1a1",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691073867748",
            "endTimeUnixNano": "1796047691073992695",
            "durationMs": 0.124947,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.026,
              "db.client.connection.wait_time_ms": 0.035143
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectStoreV2.listShells",
            "traceId": "af8f171a9a5ccf224f33deb8343a0100",
            "spanId": "a58108797db4e1a1",
            "parentSpanId": "efbb6c31fcf563c0",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691073835240",
            "endTimeUnixNano": "1796047691074071102",
            "durationMs": 0.235862,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.readThreads",
            "traceId": "af8f171a9a5ccf224f33deb8343a0100",
            "spanId": "efbb6c31fcf563c0",
            "parentSpanId": "d03a36dd9a135976",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691073204808",
            "endTimeUnixNano": "1796047691074079645",
            "durationMs": 0.874837,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "af8f171a9a5ccf224f33deb8343a0100",
            "spanId": "3af3d0628087ea31",
            "parentSpanId": "d03a36dd9a135976",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691074105403",
            "endTimeUnixNano": "1796047691074195969",
            "durationMs": 0.090566,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.02,
              "db.client.connection.wait_time_ms": 0.030496
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "af8f171a9a5ccf224f33deb8343a0100",
            "spanId": "4b69ad39db1faf46",
            "parentSpanId": "d87248d6c2752ba5",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691074248157",
            "endTimeUnixNano": "1796047691074345021",
            "durationMs": 0.096864,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT DISTINCT json_extract(payload_json, '$.worktreePath') AS \"worktreePath\"\n      FROM orchestration_v2_projection_threads\n      WHERE json_extract(payload_json, '$.worktreePath') IS NOT NUL\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.046,
              "db.client.connection.wait_time_ms": 0.052769
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "af8f171a9a5ccf224f33deb8343a0100",
            "spanId": "035e6fd5c80aa1f1",
            "parentSpanId": "56b4d55844624632",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691075379807",
            "endTimeUnixNano": "1796047691076807811",
            "durationMs": 1.428004,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "af8f171a9a5ccf224f33deb8343a0100",
            "spanId": "56b4d55844624632",
            "parentSpanId": "513e7fa8ec27612f",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691075180560",
            "endTimeUnixNano": "1796047691077578282",
            "durationMs": 2.397722,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "af8f171a9a5ccf224f33deb8343a0100",
            "spanId": "513e7fa8ec27612f",
            "parentSpanId": "0f8b3700cd3d4310",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691075145998",
            "endTimeUnixNano": "1796047691077841545",
            "durationMs": 2.695547,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/plain-notes",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "af8f171a9a5ccf224f33deb8343a0100",
            "spanId": "17fc3e8cc65d5710",
            "parentSpanId": "48a19f533904d595",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691078117788",
            "endTimeUnixNano": "1796047691079623217",
            "durationMs": 1.505429,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "af8f171a9a5ccf224f33deb8343a0100",
            "spanId": "48a19f533904d595",
            "parentSpanId": "294d7b3663e5e7f4",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691077928325",
            "endTimeUnixNano": "1796047691080388850",
            "durationMs": 2.460525,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "af8f171a9a5ccf224f33deb8343a0100",
            "spanId": "294d7b3663e5e7f4",
            "parentSpanId": "0f8b3700cd3d4310",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691077878731",
            "endTimeUnixNano": "1796047691080625784",
            "durationMs": 2.747053,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/plain-notes",
              "git.args_count": 3
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "af8f171a9a5ccf224f33deb8343a0100",
            "spanId": "0f8b3700cd3d4310",
            "parentSpanId": "d87248d6c2752ba5",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691075126639",
            "endTimeUnixNano": "1796047691080710331",
            "durationMs": 5.583692,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Failure",
              "cause": "GitCommandError: Git command failed in GitVcsDriver.listWorktreePaths ($FIXTURE/fx/plain-notes): Git command exited with a non-zero status. (not_a_repository)\n    at file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:1635:11\n    at executeWorktreeList (file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:7803:5)\n    at executeWorktreeList (definition) (file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:1681:38)\n    at StorageCleanup.reportOrphanWorktrees (file://$CHECKOUT/apps/server/src/storageCleanup.ts:1967:12)\n    at StorageCleanup.reportOrphanWorktrees (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:556:40)\n    at StorageCleanup.cleanWorktrees (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2193:37)\n    at StorageCleanup.cleanWorktrees (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:1208:33)\n    at StorageCleanup.sweep (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2293:24)\n    at StorageCleanup.sweep (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2162:24)\n    at DrainableWorker.makeDrainableWorker (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2290:25)\n    at DrainableWorker.makeDrainableWorker (definition) (file://$CHECKOUT/packages/shared/src/DrainableWorker.ts:20:43)"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "af8f171a9a5ccf224f33deb8343a0100",
            "spanId": "a60d6a68a91c3f64",
            "parentSpanId": "4c300c60b6a7bf85",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691081115045",
            "endTimeUnixNano": "1796047691082532423",
            "durationMs": 1.417378,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "af8f171a9a5ccf224f33deb8343a0100",
            "spanId": "4c300c60b6a7bf85",
            "parentSpanId": "384753a15477980e",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691080936899",
            "endTimeUnixNano": "1796047691083376313",
            "durationMs": 2.439414,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "af8f171a9a5ccf224f33deb8343a0100",
            "spanId": "384753a15477980e",
            "parentSpanId": "0342d7512bf625d5",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691080893514",
            "endTimeUnixNano": "1796047691083569983",
            "durationMs": 2.676469,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo/packages/app",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "af8f171a9a5ccf224f33deb8343a0100",
            "spanId": "0342d7512bf625d5",
            "parentSpanId": "d87248d6c2752ba5",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691080872974",
            "endTimeUnixNano": "1796047691083587309",
            "durationMs": 2.714335,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "af8f171a9a5ccf224f33deb8343a0100",
            "spanId": "8d5c83f73d939761",
            "parentSpanId": "f9b1d5d4831e401a",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691083839285",
            "endTimeUnixNano": "1796047691085141481",
            "durationMs": 1.302196,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "af8f171a9a5ccf224f33deb8343a0100",
            "spanId": "f9b1d5d4831e401a",
            "parentSpanId": "9c6e8b267ba7ec8c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691083677493",
            "endTimeUnixNano": "1796047691085941916",
            "durationMs": 2.264423,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "af8f171a9a5ccf224f33deb8343a0100",
            "spanId": "9c6e8b267ba7ec8c",
            "parentSpanId": "e51341c452a6d531",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691083639937",
            "endTimeUnixNano": "1796047691086147453",
            "durationMs": 2.507516,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo-link",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "af8f171a9a5ccf224f33deb8343a0100",
            "spanId": "e51341c452a6d531",
            "parentSpanId": "d87248d6c2752ba5",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691083619787",
            "endTimeUnixNano": "1796047691086164789",
            "durationMs": 2.545002,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "af8f171a9a5ccf224f33deb8343a0100",
            "spanId": "de9b45b8fac0bffe",
            "parentSpanId": "e0b6862de330661c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691086469294",
            "endTimeUnixNano": "1796047691087700553",
            "durationMs": 1.231259,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "af8f171a9a5ccf224f33deb8343a0100",
            "spanId": "e0b6862de330661c",
            "parentSpanId": "5591d1212fadf47b",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691086248965",
            "endTimeUnixNano": "1796047691088547959",
            "durationMs": 2.298994,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "af8f171a9a5ccf224f33deb8343a0100",
            "spanId": "5591d1212fadf47b",
            "parentSpanId": "a1f0942268303677",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691086210227",
            "endTimeUnixNano": "1796047691088761879",
            "durationMs": 2.551652,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "af8f171a9a5ccf224f33deb8343a0100",
            "spanId": "a1f0942268303677",
            "parentSpanId": "d87248d6c2752ba5",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691086191138",
            "endTimeUnixNano": "1796047691088778464",
            "durationMs": 2.587326,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "af8f171a9a5ccf224f33deb8343a0100",
            "spanId": "5658918cdb8684ff",
            "parentSpanId": "d87248d6c2752ba5",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691089109578",
            "endTimeUnixNano": "1796047691089165702",
            "durationMs": 0.056124,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "af8f171a9a5ccf224f33deb8343a0100",
            "spanId": "c309d28a24ad5489",
            "parentSpanId": "d87248d6c2752ba5",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691089331821",
            "endTimeUnixNano": "1796047691089362286",
            "durationMs": 0.030465,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "af8f171a9a5ccf224f33deb8343a0100",
            "spanId": "8fff86d4886dec45",
            "parentSpanId": "d87248d6c2752ba5",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691089505139",
            "endTimeUnixNano": "1796047691089539471",
            "durationMs": 0.034332,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "af8f171a9a5ccf224f33deb8343a0100",
            "spanId": "860706e39cff80c1",
            "parentSpanId": "d87248d6c2752ba5",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691089646691",
            "endTimeUnixNano": "1796047691089672810",
            "durationMs": 0.026119,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "storageCleanup.measureWorktree",
            "traceId": "af8f171a9a5ccf224f33deb8343a0100",
            "spanId": "7a5b1cb5d2df860b",
            "parentSpanId": "d87248d6c2752ba5",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691089709705",
            "endTimeUnixNano": "1796047691090344654",
            "durationMs": 0.634949,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.reportOrphanWorktrees",
            "traceId": "af8f171a9a5ccf224f33deb8343a0100",
            "spanId": "d87248d6c2752ba5",
            "parentSpanId": "d03a36dd9a135976",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691074239744",
            "endTimeUnixNano": "1796047691090378975",
            "durationMs": 16.139231,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanWorktrees",
            "traceId": "af8f171a9a5ccf224f33deb8343a0100",
            "spanId": "d03a36dd9a135976",
            "parentSpanId": "a7081b06a442695e",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691072689358",
            "endTimeUnixNano": "1796047691090388629",
            "durationMs": 17.699271,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.sweep",
            "traceId": "af8f171a9a5ccf224f33deb8343a0100",
            "spanId": "a7081b06a442695e",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691072214408",
            "endTimeUnixNano": "1796047691090442389",
            "durationMs": 18.227981,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          }
        ]
      },
      {
        "run": 35,
        "warmup": false,
        "elapsedMs": 17.95071699999994,
        "nestedOrphanFound": true,
        "report": {
          "_tag": "Success",
          "value": {
            "trigger": "manual",
            "startedAt": "2026-11-30T14:08:11.091Z",
            "finishedAt": "2026-11-30T14:08:11.108Z",
            "entries": [
              {
                "kind": "worktree",
                "outcome": "kept",
                "reason": "No thread uses this worktree",
                "path": "$FIXTURE/data/worktrees/repository/replay/repo-wt",
                "projectPath": null,
                "threadId": null,
                "threadTitle": null,
                "bytes": 8192,
                "files": null
              }
            ],
            "counts": {
              "removed": 0,
              "kept": 1,
              "failed": 0
            },
            "omittedCount": 0,
            "bytesFreed": 0
          }
        },
        "spans": [
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "79e0c71994dd2a4eaec8e69b4adb971d",
            "spanId": "aa6903188c5d6ad5",
            "parentSpanId": "91adcd19b83b56dd",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691091484366",
            "endTimeUnixNano": "1796047691091662683",
            "durationMs": 0.178317,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      WITH RECURSIVE retained_checkpoint_threads(thread_id) AS (\n        SELECT thread_id FROM orchestration_v2_projection_threads WHERE deleted_at IS NULL\n        UNION\n        SELECT json_extract(t\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.038,
              "db.client.connection.wait_time_ms": 0.054782
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanCheckpointRefs",
            "traceId": "79e0c71994dd2a4eaec8e69b4adb971d",
            "spanId": "91adcd19b83b56dd",
            "parentSpanId": "cd7f6d49cc3cfea2",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691091471447",
            "endTimeUnixNano": "1796047691091698977",
            "durationMs": 0.22753,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.retryLeftovers",
            "traceId": "79e0c71994dd2a4eaec8e69b4adb971d",
            "spanId": "2f8a34a4eb113a6f",
            "parentSpanId": "cd7f6d49cc3cfea2",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691091717354",
            "endTimeUnixNano": "1796047691091806147",
            "durationMs": 0.088793,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveGitWorktreePath",
            "traceId": "79e0c71994dd2a4eaec8e69b4adb971d",
            "spanId": "0753300254dba295",
            "parentSpanId": "6da7889e67649f81",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691091845396",
            "endTimeUnixNano": "1796047691092034768",
            "durationMs": 0.189372,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveWorktreeT3Home",
            "traceId": "79e0c71994dd2a4eaec8e69b4adb971d",
            "spanId": "6da7889e67649f81",
            "parentSpanId": "15eed9ac4547b99a",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691091837974",
            "endTimeUnixNano": "1796047691092043421",
            "durationMs": 0.205447,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "79e0c71994dd2a4eaec8e69b4adb971d",
            "spanId": "08d38378ae5dc26e",
            "parentSpanId": "15eed9ac4547b99a",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691092306635",
            "endTimeUnixNano": "1796047691092430720",
            "durationMs": 0.124085,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n          SELECT t.payload_json, p.workspace_root AS \"workspaceRoot\"\n          FROM orchestration_v2_projection_threads t\n          JOIN projection_projects p ON p.project_id = t.project_id\n         \u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.037,
              "db.client.connection.wait_time_ms": 0.055683
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "BEGIN",
            "traceId": "79e0c71994dd2a4eaec8e69b4adb971d",
            "spanId": "5cc3f0cce5c626df",
            "parentSpanId": "b2182fc7c6db2f9c",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691092549568",
            "endTimeUnixNano": "1796047691092603718",
            "durationMs": 0.05415,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "BEGIN"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "79e0c71994dd2a4eaec8e69b4adb971d",
            "spanId": "e1697dcca92ef6f2",
            "parentSpanId": "833291f2be870bc2",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691092698099",
            "endTimeUnixNano": "1796047691092810187",
            "durationMs": 0.112088,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n            SELECT\n              t.thread_id,\n              t.payload_json,\n              t.fork_run_ids_json,\n              CASE\n                WHEN json_extract(t.payload_json, '$.forkedFrom.type'\u2026[truncated]",
              "db.client.connection.wait_time_ms": 0.011978
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "79e0c71994dd2a4eaec8e69b4adb971d",
            "spanId": "583cd35f5066963e",
            "parentSpanId": "833291f2be870bc2",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691092838840",
            "endTimeUnixNano": "1796047691092893692",
            "durationMs": 0.054852,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n        SELECT MAX(sequence) AS snapshot_sequence\n        FROM orchestration_events\n        WHERE application_event_version = 2\n          AND aggregate_kind = 'thread'\n      ",
              "db.client.connection.wait_time_ms": 0.00706
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readShellSnapshotRows",
            "traceId": "79e0c71994dd2a4eaec8e69b4adb971d",
            "spanId": "833291f2be870bc2",
            "parentSpanId": "b2182fc7c6db2f9c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691092627744",
            "endTimeUnixNano": "1796047691092906671",
            "durationMs": 0.278927,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "COMMIT",
            "traceId": "79e0c71994dd2a4eaec8e69b4adb971d",
            "spanId": "aa1b625c0f3ca96c",
            "parentSpanId": "b2182fc7c6db2f9c",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691092916686",
            "endTimeUnixNano": "1796047691092950246",
            "durationMs": 0.03356,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "COMMIT"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sql.transaction",
            "traceId": "79e0c71994dd2a4eaec8e69b4adb971d",
            "spanId": "b2182fc7c6db2f9c",
            "parentSpanId": "f95641a78916888b",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691092499142",
            "endTimeUnixNano": "1796047691092972990",
            "durationMs": 0.473848,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.client.connection.wait_time_ms": 0.043004,
              "db.connection": "reader",
              "db.lock_wait_ms": 0.024
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.pendingBackgroundDataByThreadId",
            "traceId": "79e0c71994dd2a4eaec8e69b4adb971d",
            "spanId": "f372c8b16693b217",
            "parentSpanId": "8d7fcd7098964449",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691093012549",
            "endTimeUnixNano": "1796047691093019790",
            "durationMs": 0.007241,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.decodeShellSnapshot",
            "traceId": "79e0c71994dd2a4eaec8e69b4adb971d",
            "spanId": "8d7fcd7098964449",
            "parentSpanId": "f95641a78916888b",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691092998708",
            "endTimeUnixNano": "1796047691093028333",
            "durationMs": 0.029625,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "79e0c71994dd2a4eaec8e69b4adb971d",
            "spanId": "4714724617846e65",
            "parentSpanId": "2b29f52f8eaac293",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691093065508",
            "endTimeUnixNano": "1796047691093179068",
            "durationMs": 0.11356,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.026,
              "db.client.connection.wait_time_ms": 0.034712
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectStoreV2.listShells",
            "traceId": "79e0c71994dd2a4eaec8e69b4adb971d",
            "spanId": "2b29f52f8eaac293",
            "parentSpanId": "f95641a78916888b",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691093036395",
            "endTimeUnixNano": "1796047691093247500",
            "durationMs": 0.211105,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.readThreads",
            "traceId": "79e0c71994dd2a4eaec8e69b4adb971d",
            "spanId": "f95641a78916888b",
            "parentSpanId": "15eed9ac4547b99a",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691092469217",
            "endTimeUnixNano": "1796047691093255652",
            "durationMs": 0.786435,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "79e0c71994dd2a4eaec8e69b4adb971d",
            "spanId": "c5dbb5d7e2b8798e",
            "parentSpanId": "15eed9ac4547b99a",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691093298486",
            "endTimeUnixNano": "1796047691093400459",
            "durationMs": 0.101973,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.024,
              "db.client.connection.wait_time_ms": 0.037166
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "79e0c71994dd2a4eaec8e69b4adb971d",
            "spanId": "4905fc1227904912",
            "parentSpanId": "61c050899424146d",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691093465165",
            "endTimeUnixNano": "1796047691093551585",
            "durationMs": 0.08642,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT DISTINCT json_extract(payload_json, '$.worktreePath') AS \"worktreePath\"\n      FROM orchestration_v2_projection_threads\n      WHERE json_extract(payload_json, '$.worktreePath') IS NOT NUL\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.035,
              "db.client.connection.wait_time_ms": 0.043545
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "79e0c71994dd2a4eaec8e69b4adb971d",
            "spanId": "58ea71e89c7b4d9b",
            "parentSpanId": "cbfb66d30e9da45f",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691094885117",
            "endTimeUnixNano": "1796047691096048124",
            "durationMs": 1.163007,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "79e0c71994dd2a4eaec8e69b4adb971d",
            "spanId": "cbfb66d30e9da45f",
            "parentSpanId": "38f829e68d6610d3",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691094719950",
            "endTimeUnixNano": "1796047691096784735",
            "durationMs": 2.064785,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "79e0c71994dd2a4eaec8e69b4adb971d",
            "spanId": "38f829e68d6610d3",
            "parentSpanId": "185528aac42809b9",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691094674662",
            "endTimeUnixNano": "1796047691096988749",
            "durationMs": 2.314087,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/plain-notes",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "79e0c71994dd2a4eaec8e69b4adb971d",
            "spanId": "f376987eb9eb688b",
            "parentSpanId": "cdfc6af2ff7adb2f",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691097205353",
            "endTimeUnixNano": "1796047691098393338",
            "durationMs": 1.187985,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "79e0c71994dd2a4eaec8e69b4adb971d",
            "spanId": "cdfc6af2ff7adb2f",
            "parentSpanId": "e2682f5426f58dbe",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691097056791",
            "endTimeUnixNano": "1796047691099101416",
            "durationMs": 2.044625,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "79e0c71994dd2a4eaec8e69b4adb971d",
            "spanId": "e2682f5426f58dbe",
            "parentSpanId": "185528aac42809b9",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691097014888",
            "endTimeUnixNano": "1796047691099261214",
            "durationMs": 2.246326,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/plain-notes",
              "git.args_count": 3
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "79e0c71994dd2a4eaec8e69b4adb971d",
            "spanId": "185528aac42809b9",
            "parentSpanId": "61c050899424146d",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691094647862",
            "endTimeUnixNano": "1796047691099346131",
            "durationMs": 4.698269,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Failure",
              "cause": "GitCommandError: Git command failed in GitVcsDriver.listWorktreePaths ($FIXTURE/fx/plain-notes): Git command exited with a non-zero status. (not_a_repository)\n    at file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:1635:11\n    at executeWorktreeList (file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:7803:5)\n    at executeWorktreeList (definition) (file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:1681:38)\n    at StorageCleanup.reportOrphanWorktrees (file://$CHECKOUT/apps/server/src/storageCleanup.ts:1967:12)\n    at StorageCleanup.reportOrphanWorktrees (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:556:40)\n    at StorageCleanup.cleanWorktrees (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2193:37)\n    at StorageCleanup.cleanWorktrees (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:1208:33)\n    at StorageCleanup.sweep (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2293:24)\n    at StorageCleanup.sweep (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2162:24)\n    at DrainableWorker.makeDrainableWorker (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2290:25)\n    at DrainableWorker.makeDrainableWorker (definition) (file://$CHECKOUT/packages/shared/src/DrainableWorker.ts:20:43)"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "79e0c71994dd2a4eaec8e69b4adb971d",
            "spanId": "87d5af0b25ab8052",
            "parentSpanId": "47554b46495664ed",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691099704747",
            "endTimeUnixNano": "1796047691100837870",
            "durationMs": 1.133123,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "79e0c71994dd2a4eaec8e69b4adb971d",
            "spanId": "47554b46495664ed",
            "parentSpanId": "8a43399f74fcf9b6",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691099555013",
            "endTimeUnixNano": "1796047691101677344",
            "durationMs": 2.122331,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "79e0c71994dd2a4eaec8e69b4adb971d",
            "spanId": "8a43399f74fcf9b6",
            "parentSpanId": "879b0f8261966ec6",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691099516936",
            "endTimeUnixNano": "1796047691101864553",
            "durationMs": 2.347617,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo/packages/app",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "79e0c71994dd2a4eaec8e69b4adb971d",
            "spanId": "879b0f8261966ec6",
            "parentSpanId": "61c050899424146d",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691099498749",
            "endTimeUnixNano": "1796047691101879626",
            "durationMs": 2.380877,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "79e0c71994dd2a4eaec8e69b4adb971d",
            "spanId": "dc91e1e2bd5d5e3a",
            "parentSpanId": "f5b869a84123adb2",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691102134897",
            "endTimeUnixNano": "1796047691103352336",
            "durationMs": 1.217439,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "79e0c71994dd2a4eaec8e69b4adb971d",
            "spanId": "f5b869a84123adb2",
            "parentSpanId": "38a91a38eb9fcdee",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691101951994",
            "endTimeUnixNano": "1796047691104104059",
            "durationMs": 2.152065,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "79e0c71994dd2a4eaec8e69b4adb971d",
            "spanId": "38a91a38eb9fcdee",
            "parentSpanId": "b89a7f2ad4672e43",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691101917883",
            "endTimeUnixNano": "1796047691104308875",
            "durationMs": 2.390992,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo-link",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "79e0c71994dd2a4eaec8e69b4adb971d",
            "spanId": "b89a7f2ad4672e43",
            "parentSpanId": "61c050899424146d",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691101901208",
            "endTimeUnixNano": "1796047691104326231",
            "durationMs": 2.425023,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "79e0c71994dd2a4eaec8e69b4adb971d",
            "spanId": "6bf86275eb7846f5",
            "parentSpanId": "4c91aba4fdac9591",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691104584977",
            "endTimeUnixNano": "1796047691105946702",
            "durationMs": 1.361725,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "79e0c71994dd2a4eaec8e69b4adb971d",
            "spanId": "4c91aba4fdac9591",
            "parentSpanId": "fb331a5fd60bbc6d",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691104416325",
            "endTimeUnixNano": "1796047691106837863",
            "durationMs": 2.421538,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "79e0c71994dd2a4eaec8e69b4adb971d",
            "spanId": "fb331a5fd60bbc6d",
            "parentSpanId": "2d33b497f8a0010f",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691104377267",
            "endTimeUnixNano": "1796047691107027116",
            "durationMs": 2.649849,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "79e0c71994dd2a4eaec8e69b4adb971d",
            "spanId": "2d33b497f8a0010f",
            "parentSpanId": "61c050899424146d",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691104357167",
            "endTimeUnixNano": "1796047691107044682",
            "durationMs": 2.687515,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "79e0c71994dd2a4eaec8e69b4adb971d",
            "spanId": "6a0be3cc8dc09857",
            "parentSpanId": "61c050899424146d",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691107360895",
            "endTimeUnixNano": "1796047691107400804",
            "durationMs": 0.039909,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "79e0c71994dd2a4eaec8e69b4adb971d",
            "spanId": "5449645133eed855",
            "parentSpanId": "61c050899424146d",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691107539261",
            "endTimeUnixNano": "1796047691107560402",
            "durationMs": 0.021141,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "79e0c71994dd2a4eaec8e69b4adb971d",
            "spanId": "1fa5e17fc375a851",
            "parentSpanId": "61c050899424146d",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691107673151",
            "endTimeUnixNano": "1796047691107690026",
            "durationMs": 0.016875,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "79e0c71994dd2a4eaec8e69b4adb971d",
            "spanId": "9dc5db0b97befc7a",
            "parentSpanId": "61c050899424146d",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691107765018",
            "endTimeUnixNano": "1796047691107783266",
            "durationMs": 0.018248,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "storageCleanup.measureWorktree",
            "traceId": "79e0c71994dd2a4eaec8e69b4adb971d",
            "spanId": "44089b8bd1c395c4",
            "parentSpanId": "61c050899424146d",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691107807832",
            "endTimeUnixNano": "1796047691108303052",
            "durationMs": 0.49522,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.reportOrphanWorktrees",
            "traceId": "79e0c71994dd2a4eaec8e69b4adb971d",
            "spanId": "61c050899424146d",
            "parentSpanId": "15eed9ac4547b99a",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691093456062",
            "endTimeUnixNano": "1796047691108328420",
            "durationMs": 14.872358,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanWorktrees",
            "traceId": "79e0c71994dd2a4eaec8e69b4adb971d",
            "spanId": "15eed9ac4547b99a",
            "parentSpanId": "cd7f6d49cc3cfea2",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691091820789",
            "endTimeUnixNano": "1796047691108335681",
            "durationMs": 16.514892,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.sweep",
            "traceId": "79e0c71994dd2a4eaec8e69b4adb971d",
            "spanId": "cd7f6d49cc3cfea2",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691091443866",
            "endTimeUnixNano": "1796047691108373087",
            "durationMs": 16.929221,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          }
        ]
      },
      {
        "run": 36,
        "warmup": false,
        "elapsedMs": 16.04409899999996,
        "nestedOrphanFound": true,
        "report": {
          "_tag": "Success",
          "value": {
            "trigger": "manual",
            "startedAt": "2026-11-30T14:08:11.109Z",
            "finishedAt": "2026-11-30T14:08:11.124Z",
            "entries": [
              {
                "kind": "worktree",
                "outcome": "kept",
                "reason": "No thread uses this worktree",
                "path": "$FIXTURE/data/worktrees/repository/replay/repo-wt",
                "projectPath": null,
                "threadId": null,
                "threadTitle": null,
                "bytes": 8192,
                "files": null
              }
            ],
            "counts": {
              "removed": 0,
              "kept": 1,
              "failed": 0
            },
            "omittedCount": 0,
            "bytesFreed": 0
          }
        },
        "spans": [
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "3b2387173a5faf40e5bd814d04cebcd3",
            "spanId": "9a9dbed26432cb9d",
            "parentSpanId": "a5bf530de72cfa8c",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691109416455",
            "endTimeUnixNano": "1796047691109592839",
            "durationMs": 0.176384,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      WITH RECURSIVE retained_checkpoint_threads(thread_id) AS (\n        SELECT thread_id FROM orchestration_v2_projection_threads WHERE deleted_at IS NULL\n        UNION\n        SELECT json_extract(t\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.033,
              "db.client.connection.wait_time_ms": 0.052318
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanCheckpointRefs",
            "traceId": "3b2387173a5faf40e5bd814d04cebcd3",
            "spanId": "a5bf530de72cfa8c",
            "parentSpanId": "10633327e0f41755",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691109406260",
            "endTimeUnixNano": "1796047691109626669",
            "durationMs": 0.220409,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.retryLeftovers",
            "traceId": "3b2387173a5faf40e5bd814d04cebcd3",
            "spanId": "35c16f582046d56d",
            "parentSpanId": "10633327e0f41755",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691109643865",
            "endTimeUnixNano": "1796047691109709273",
            "durationMs": 0.065408,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveGitWorktreePath",
            "traceId": "3b2387173a5faf40e5bd814d04cebcd3",
            "spanId": "2cb849312405cc26",
            "parentSpanId": "c1f425ae559d7914",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691109740279",
            "endTimeUnixNano": "1796047691109908170",
            "durationMs": 0.167891,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveWorktreeT3Home",
            "traceId": "3b2387173a5faf40e5bd814d04cebcd3",
            "spanId": "c1f425ae559d7914",
            "parentSpanId": "4cd1a13cd635e87b",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691109733709",
            "endTimeUnixNano": "1796047691109914599",
            "durationMs": 0.18089,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "3b2387173a5faf40e5bd814d04cebcd3",
            "spanId": "2cf05675f8829bec",
            "parentSpanId": "4cd1a13cd635e87b",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691110141589",
            "endTimeUnixNano": "1796047691110238153",
            "durationMs": 0.096564,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n          SELECT t.payload_json, p.workspace_root AS \"workspaceRoot\"\n          FROM orchestration_v2_projection_threads t\n          JOIN projection_projects p ON p.project_id = t.project_id\n         \u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.026,
              "db.client.connection.wait_time_ms": 0.038407
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "BEGIN",
            "traceId": "3b2387173a5faf40e5bd814d04cebcd3",
            "spanId": "454d89726490695d",
            "parentSpanId": "b763d22cb1a17c32",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691110361277",
            "endTimeUnixNano": "1796047691110413565",
            "durationMs": 0.052288,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "BEGIN"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "3b2387173a5faf40e5bd814d04cebcd3",
            "spanId": "65ac09a8b9dc89a5",
            "parentSpanId": "2d0ab1f39e8dd3a4",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691110510560",
            "endTimeUnixNano": "1796047691110600264",
            "durationMs": 0.089704,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n            SELECT\n              t.thread_id,\n              t.payload_json,\n              t.fork_run_ids_json,\n              CASE\n                WHEN json_extract(t.payload_json, '$.forkedFrom.type'\u2026[truncated]",
              "db.client.connection.wait_time_ms": 0.011757
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "3b2387173a5faf40e5bd814d04cebcd3",
            "spanId": "a191e28a7611a4eb",
            "parentSpanId": "2d0ab1f39e8dd3a4",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691110626894",
            "endTimeUnixNano": "1796047691110676578",
            "durationMs": 0.049684,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n        SELECT MAX(sequence) AS snapshot_sequence\n        FROM orchestration_events\n        WHERE application_event_version = 2\n          AND aggregate_kind = 'thread'\n      ",
              "db.client.connection.wait_time_ms": 0.006029
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readShellSnapshotRows",
            "traceId": "3b2387173a5faf40e5bd814d04cebcd3",
            "spanId": "2d0ab1f39e8dd3a4",
            "parentSpanId": "b763d22cb1a17c32",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691110442148",
            "endTimeUnixNano": "1796047691110688736",
            "durationMs": 0.246588,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "COMMIT",
            "traceId": "3b2387173a5faf40e5bd814d04cebcd3",
            "spanId": "6935e7062ce93a6c",
            "parentSpanId": "b763d22cb1a17c32",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691110696768",
            "endTimeUnixNano": "1796047691110728876",
            "durationMs": 0.032108,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "COMMIT"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sql.transaction",
            "traceId": "3b2387173a5faf40e5bd814d04cebcd3",
            "spanId": "b763d22cb1a17c32",
            "parentSpanId": "8f1778161f0c90ef",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691110313435",
            "endTimeUnixNano": "1796047691110750158",
            "durationMs": 0.436723,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.client.connection.wait_time_ms": 0.041152,
              "db.connection": "reader",
              "db.lock_wait_ms": 0.024
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.pendingBackgroundDataByThreadId",
            "traceId": "3b2387173a5faf40e5bd814d04cebcd3",
            "spanId": "7e43efdb6e6c918e",
            "parentSpanId": "881cca88d4df5d6d",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691110788715",
            "endTimeUnixNano": "1796047691110793853",
            "durationMs": 0.005138,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.decodeShellSnapshot",
            "traceId": "3b2387173a5faf40e5bd814d04cebcd3",
            "spanId": "881cca88d4df5d6d",
            "parentSpanId": "8f1778161f0c90ef",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691110776157",
            "endTimeUnixNano": "1796047691110801965",
            "durationMs": 0.025808,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "3b2387173a5faf40e5bd814d04cebcd3",
            "spanId": "3c5892a8e3751e76",
            "parentSpanId": "3563847925e2a241",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691110836597",
            "endTimeUnixNano": "1796047691110975354",
            "durationMs": 0.138757,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.038,
              "db.client.connection.wait_time_ms": 0.04702
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectStoreV2.listShells",
            "traceId": "3b2387173a5faf40e5bd814d04cebcd3",
            "spanId": "3563847925e2a241",
            "parentSpanId": "8f1778161f0c90ef",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691110810257",
            "endTimeUnixNano": "1796047691111036966",
            "durationMs": 0.226709,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.readThreads",
            "traceId": "3b2387173a5faf40e5bd814d04cebcd3",
            "spanId": "8f1778161f0c90ef",
            "parentSpanId": "4cd1a13cd635e87b",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691110283721",
            "endTimeUnixNano": "1796047691111045369",
            "durationMs": 0.761648,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "3b2387173a5faf40e5bd814d04cebcd3",
            "spanId": "e5df177d29673b29",
            "parentSpanId": "4cd1a13cd635e87b",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691111069164",
            "endTimeUnixNano": "1796047691111163015",
            "durationMs": 0.093851,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.02,
              "db.client.connection.wait_time_ms": 0.030095
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "3b2387173a5faf40e5bd814d04cebcd3",
            "spanId": "5dd6f593dac5385f",
            "parentSpanId": "6edf829232dd3c3c",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691111215603",
            "endTimeUnixNano": "1796047691111303144",
            "durationMs": 0.087541,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT DISTINCT json_extract(payload_json, '$.worktreePath') AS \"worktreePath\"\n      FROM orchestration_v2_projection_threads\n      WHERE json_extract(payload_json, '$.worktreePath') IS NOT NUL\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.033,
              "db.client.connection.wait_time_ms": 0.04007
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "3b2387173a5faf40e5bd814d04cebcd3",
            "spanId": "e369890dd32f55a6",
            "parentSpanId": "8b0b0611257be946",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691112398841",
            "endTimeUnixNano": "1796047691113443411",
            "durationMs": 1.04457,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "3b2387173a5faf40e5bd814d04cebcd3",
            "spanId": "8b0b0611257be946",
            "parentSpanId": "844ad18307d1c206",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691112239012",
            "endTimeUnixNano": "1796047691114155775",
            "durationMs": 1.916763,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "3b2387173a5faf40e5bd814d04cebcd3",
            "spanId": "844ad18307d1c206",
            "parentSpanId": "cf67ac9e7f3ba60e",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691112203819",
            "endTimeUnixNano": "1796047691114340602",
            "durationMs": 2.136783,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/plain-notes",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "3b2387173a5faf40e5bd814d04cebcd3",
            "spanId": "cdb6fe797b862a5e",
            "parentSpanId": "9a966278a2caa195",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691114549394",
            "endTimeUnixNano": "1796047691115607915",
            "durationMs": 1.058521,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "3b2387173a5faf40e5bd814d04cebcd3",
            "spanId": "9a966278a2caa195",
            "parentSpanId": "d568e1ed2c50f56c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691114403866",
            "endTimeUnixNano": "1796047691116292107",
            "durationMs": 1.888241,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "3b2387173a5faf40e5bd814d04cebcd3",
            "spanId": "d568e1ed2c50f56c",
            "parentSpanId": "cf67ac9e7f3ba60e",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691114366350",
            "endTimeUnixNano": "1796047691116447309",
            "durationMs": 2.080959,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/plain-notes",
              "git.args_count": 3
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "3b2387173a5faf40e5bd814d04cebcd3",
            "spanId": "cf67ac9e7f3ba60e",
            "parentSpanId": "6edf829232dd3c3c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691112185462",
            "endTimeUnixNano": "1796047691116505636",
            "durationMs": 4.320174,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Failure",
              "cause": "GitCommandError: Git command failed in GitVcsDriver.listWorktreePaths ($FIXTURE/fx/plain-notes): Git command exited with a non-zero status. (not_a_repository)\n    at file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:1635:11\n    at executeWorktreeList (file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:7803:5)\n    at executeWorktreeList (definition) (file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:1681:38)\n    at StorageCleanup.reportOrphanWorktrees (file://$CHECKOUT/apps/server/src/storageCleanup.ts:1967:12)\n    at StorageCleanup.reportOrphanWorktrees (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:556:40)\n    at StorageCleanup.cleanWorktrees (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2193:37)\n    at StorageCleanup.cleanWorktrees (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:1208:33)\n    at StorageCleanup.sweep (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2293:24)\n    at StorageCleanup.sweep (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2162:24)\n    at DrainableWorker.makeDrainableWorker (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2290:25)\n    at DrainableWorker.makeDrainableWorker (definition) (file://$CHECKOUT/packages/shared/src/DrainableWorker.ts:20:43)"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "3b2387173a5faf40e5bd814d04cebcd3",
            "spanId": "4ca3980b139e79ba",
            "parentSpanId": "c77a5f281e48bbcb",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691116828218",
            "endTimeUnixNano": "1796047691117872378",
            "durationMs": 1.04416,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "3b2387173a5faf40e5bd814d04cebcd3",
            "spanId": "c77a5f281e48bbcb",
            "parentSpanId": "13f7d3344f821d8e",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691116690863",
            "endTimeUnixNano": "1796047691118687646",
            "durationMs": 1.996783,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "3b2387173a5faf40e5bd814d04cebcd3",
            "spanId": "13f7d3344f821d8e",
            "parentSpanId": "64574065fd7e37e5",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691116652746",
            "endTimeUnixNano": "1796047691118859803",
            "durationMs": 2.207057,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo/packages/app",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "3b2387173a5faf40e5bd814d04cebcd3",
            "spanId": "64574065fd7e37e5",
            "parentSpanId": "6edf829232dd3c3c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691116636452",
            "endTimeUnixNano": "1796047691118875316",
            "durationMs": 2.238864,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "3b2387173a5faf40e5bd814d04cebcd3",
            "spanId": "0de142fd939e5071",
            "parentSpanId": "a4ec53c3331b6b1e",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691119097588",
            "endTimeUnixNano": "1796047691120128889",
            "durationMs": 1.031301,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "3b2387173a5faf40e5bd814d04cebcd3",
            "spanId": "a4ec53c3331b6b1e",
            "parentSpanId": "1c6f23b1e1132edf",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691118943458",
            "endTimeUnixNano": "1796047691120937787",
            "durationMs": 1.994329,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "3b2387173a5faf40e5bd814d04cebcd3",
            "spanId": "1c6f23b1e1132edf",
            "parentSpanId": "46056d02cac139d7",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691118911961",
            "endTimeUnixNano": "1796047691121090245",
            "durationMs": 2.178284,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo-link",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "3b2387173a5faf40e5bd814d04cebcd3",
            "spanId": "46056d02cac139d7",
            "parentSpanId": "6edf829232dd3c3c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691118895857",
            "endTimeUnixNano": "1796047691121103475",
            "durationMs": 2.207618,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "3b2387173a5faf40e5bd814d04cebcd3",
            "spanId": "00542988d0ff17e8",
            "parentSpanId": "0769218e43c10181",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691121315442",
            "endTimeUnixNano": "1796047691122314083",
            "durationMs": 0.998641,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "3b2387173a5faf40e5bd814d04cebcd3",
            "spanId": "0769218e43c10181",
            "parentSpanId": "35533122041bc1ae",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691121166860",
            "endTimeUnixNano": "1796047691123090964",
            "durationMs": 1.924104,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "3b2387173a5faf40e5bd814d04cebcd3",
            "spanId": "35533122041bc1ae",
            "parentSpanId": "4607587fea75e46f",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691121136845",
            "endTimeUnixNano": "1796047691123235660",
            "durationMs": 2.098815,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "3b2387173a5faf40e5bd814d04cebcd3",
            "spanId": "4607587fea75e46f",
            "parentSpanId": "6edf829232dd3c3c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691121121592",
            "endTimeUnixNano": "1796047691123247989",
            "durationMs": 2.126397,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "3b2387173a5faf40e5bd814d04cebcd3",
            "spanId": "4d0892fbadca2054",
            "parentSpanId": "6edf829232dd3c3c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691123565103",
            "endTimeUnixNano": "1796047691123610090",
            "durationMs": 0.044987,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "3b2387173a5faf40e5bd814d04cebcd3",
            "spanId": "98eab25018e20264",
            "parentSpanId": "6edf829232dd3c3c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691123737440",
            "endTimeUnixNano": "1796047691123755828",
            "durationMs": 0.018388,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "3b2387173a5faf40e5bd814d04cebcd3",
            "spanId": "6d8bc7c9c6e0c51b",
            "parentSpanId": "6edf829232dd3c3c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691123863969",
            "endTimeUnixNano": "1796047691123886483",
            "durationMs": 0.022514,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "3b2387173a5faf40e5bd814d04cebcd3",
            "spanId": "aeef3b6677b5971b",
            "parentSpanId": "6edf829232dd3c3c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691123956467",
            "endTimeUnixNano": "1796047691123976377",
            "durationMs": 0.01991,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "storageCleanup.measureWorktree",
            "traceId": "3b2387173a5faf40e5bd814d04cebcd3",
            "spanId": "d3b911b6a1459686",
            "parentSpanId": "6edf829232dd3c3c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691123999051",
            "endTimeUnixNano": "1796047691124522994",
            "durationMs": 0.523943,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.reportOrphanWorktrees",
            "traceId": "3b2387173a5faf40e5bd814d04cebcd3",
            "spanId": "6edf829232dd3c3c",
            "parentSpanId": "4cd1a13cd635e87b",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691111206029",
            "endTimeUnixNano": "1796047691124549093",
            "durationMs": 13.343064,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanWorktrees",
            "traceId": "3b2387173a5faf40e5bd814d04cebcd3",
            "spanId": "4cd1a13cd635e87b",
            "parentSpanId": "10633327e0f41755",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691109720520",
            "endTimeUnixNano": "1796047691124555642",
            "durationMs": 14.835122,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.sweep",
            "traceId": "3b2387173a5faf40e5bd814d04cebcd3",
            "spanId": "10633327e0f41755",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691109381874",
            "endTimeUnixNano": "1796047691124585687",
            "durationMs": 15.203813,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          }
        ]
      },
      {
        "run": 37,
        "warmup": false,
        "elapsedMs": 19.287454000000025,
        "nestedOrphanFound": true,
        "report": {
          "_tag": "Success",
          "value": {
            "trigger": "manual",
            "startedAt": "2026-11-30T14:08:11.125Z",
            "finishedAt": "2026-11-30T14:08:11.143Z",
            "entries": [
              {
                "kind": "worktree",
                "outcome": "kept",
                "reason": "No thread uses this worktree",
                "path": "$FIXTURE/data/worktrees/repository/replay/repo-wt",
                "projectPath": null,
                "threadId": null,
                "threadTitle": null,
                "bytes": 8192,
                "files": null
              }
            ],
            "counts": {
              "removed": 0,
              "kept": 1,
              "failed": 0
            },
            "omittedCount": 0,
            "bytesFreed": 0
          }
        },
        "spans": [
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "a10be01f8d908128108809c7e394f140",
            "spanId": "e470b836590f0f83",
            "parentSpanId": "8f783a74d0b17636",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691125422247",
            "endTimeUnixNano": "1796047691125610308",
            "durationMs": 0.188061,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      WITH RECURSIVE retained_checkpoint_threads(thread_id) AS (\n        SELECT thread_id FROM orchestration_v2_projection_threads WHERE deleted_at IS NULL\n        UNION\n        SELECT json_extract(t\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.042,
              "db.client.connection.wait_time_ms": 0.06014
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanCheckpointRefs",
            "traceId": "a10be01f8d908128108809c7e394f140",
            "spanId": "8f783a74d0b17636",
            "parentSpanId": "0dd7a8e8bf280bd7",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691125412663",
            "endTimeUnixNano": "1796047691125643648",
            "durationMs": 0.230985,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.retryLeftovers",
            "traceId": "a10be01f8d908128108809c7e394f140",
            "spanId": "3220f981ddb8b5f1",
            "parentSpanId": "0dd7a8e8bf280bd7",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691125659572",
            "endTimeUnixNano": "1796047691125730097",
            "durationMs": 0.070525,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveGitWorktreePath",
            "traceId": "a10be01f8d908128108809c7e394f140",
            "spanId": "4723973d3fc5c730",
            "parentSpanId": "b68a7e645ed21a01",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691125759090",
            "endTimeUnixNano": "1796047691125948693",
            "durationMs": 0.189603,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveWorktreeT3Home",
            "traceId": "a10be01f8d908128108809c7e394f140",
            "spanId": "b68a7e645ed21a01",
            "parentSpanId": "b083b08154ebc93b",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691125752771",
            "endTimeUnixNano": "1796047691125960311",
            "durationMs": 0.20754,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "a10be01f8d908128108809c7e394f140",
            "spanId": "e4fe3c28fd9f3faf",
            "parentSpanId": "b083b08154ebc93b",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691126183724",
            "endTimeUnixNano": "1796047691126310804",
            "durationMs": 0.12708,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n          SELECT t.payload_json, p.workspace_root AS \"workspaceRoot\"\n          FROM orchestration_v2_projection_threads t\n          JOIN projection_projects p ON p.project_id = t.project_id\n         \u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.027,
              "db.client.connection.wait_time_ms": 0.039389
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "BEGIN",
            "traceId": "a10be01f8d908128108809c7e394f140",
            "spanId": "a10cdc70aac35c0d",
            "parentSpanId": "3469b365ed4e7d26",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691126414139",
            "endTimeUnixNano": "1796047691126476472",
            "durationMs": 0.062333,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "BEGIN"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "a10be01f8d908128108809c7e394f140",
            "spanId": "88694d94707591e5",
            "parentSpanId": "88154d00451cdb50",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691126564814",
            "endTimeUnixNano": "1796047691126675699",
            "durationMs": 0.110885,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n            SELECT\n              t.thread_id,\n              t.payload_json,\n              t.fork_run_ids_json,\n              CASE\n                WHEN json_extract(t.payload_json, '$.forkedFrom.type'\u2026[truncated]",
              "db.client.connection.wait_time_ms": 0.011287
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "a10be01f8d908128108809c7e394f140",
            "spanId": "03dd764af7dd4348",
            "parentSpanId": "88154d00451cdb50",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691126713286",
            "endTimeUnixNano": "1796047691126766074",
            "durationMs": 0.052788,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n        SELECT MAX(sequence) AS snapshot_sequence\n        FROM orchestration_events\n        WHERE application_event_version = 2\n          AND aggregate_kind = 'thread'\n      ",
              "db.client.connection.wait_time_ms": 0.00663
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readShellSnapshotRows",
            "traceId": "a10be01f8d908128108809c7e394f140",
            "spanId": "88154d00451cdb50",
            "parentSpanId": "3469b365ed4e7d26",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691126497774",
            "endTimeUnixNano": "1796047691126778062",
            "durationMs": 0.280288,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "COMMIT",
            "traceId": "a10be01f8d908128108809c7e394f140",
            "spanId": "fe46fe0cc1ed4678",
            "parentSpanId": "3469b365ed4e7d26",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691126786575",
            "endTimeUnixNano": "1796047691126820035",
            "durationMs": 0.03346,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "COMMIT"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sql.transaction",
            "traceId": "a10be01f8d908128108809c7e394f140",
            "spanId": "3469b365ed4e7d26",
            "parentSpanId": "50c32b91ba4a38f5",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691126370514",
            "endTimeUnixNano": "1796047691126840175",
            "durationMs": 0.469661,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.client.connection.wait_time_ms": 0.037445,
              "db.connection": "reader",
              "db.lock_wait_ms": 0.022
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.pendingBackgroundDataByThreadId",
            "traceId": "a10be01f8d908128108809c7e394f140",
            "spanId": "202c1633786695d4",
            "parentSpanId": "47d122f87e41d7ef",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691126877912",
            "endTimeUnixNano": "1796047691126882338",
            "durationMs": 0.004426,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.decodeShellSnapshot",
            "traceId": "a10be01f8d908128108809c7e394f140",
            "spanId": "47d122f87e41d7ef",
            "parentSpanId": "50c32b91ba4a38f5",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691126865774",
            "endTimeUnixNano": "1796047691126907676",
            "durationMs": 0.041902,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "a10be01f8d908128108809c7e394f140",
            "spanId": "5c3d1680bf89fcb8",
            "parentSpanId": "9c2a8598b8a182e6",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691126939784",
            "endTimeUnixNano": "1796047691127050439",
            "durationMs": 0.110655,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.026,
              "db.client.connection.wait_time_ms": 0.034251
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectStoreV2.listShells",
            "traceId": "a10be01f8d908128108809c7e394f140",
            "spanId": "9c2a8598b8a182e6",
            "parentSpanId": "50c32b91ba4a38f5",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691126915969",
            "endTimeUnixNano": "1796047691127105602",
            "durationMs": 0.189633,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.readThreads",
            "traceId": "a10be01f8d908128108809c7e394f140",
            "spanId": "50c32b91ba4a38f5",
            "parentSpanId": "b083b08154ebc93b",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691126344555",
            "endTimeUnixNano": "1796047691127113203",
            "durationMs": 0.768648,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "a10be01f8d908128108809c7e394f140",
            "spanId": "f9a308d28f8f636d",
            "parentSpanId": "b083b08154ebc93b",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691127135396",
            "endTimeUnixNano": "1796047691127225120",
            "durationMs": 0.089724,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.018,
              "db.client.connection.wait_time_ms": 0.027902
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "a10be01f8d908128108809c7e394f140",
            "spanId": "091ae46b12b891fa",
            "parentSpanId": "d803e73deae9715b",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691127306672",
            "endTimeUnixNano": "1796047691127488434",
            "durationMs": 0.181762,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT DISTINCT json_extract(payload_json, '$.worktreePath') AS \"worktreePath\"\n      FROM orchestration_v2_projection_threads\n      WHERE json_extract(payload_json, '$.worktreePath') IS NOT NUL\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.032,
              "db.client.connection.wait_time_ms": 0.03974
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "a10be01f8d908128108809c7e394f140",
            "spanId": "9057e990fa7cec3b",
            "parentSpanId": "aebaab42b78057b5",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691130448836",
            "endTimeUnixNano": "1796047691131571513",
            "durationMs": 1.122677,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "a10be01f8d908128108809c7e394f140",
            "spanId": "aebaab42b78057b5",
            "parentSpanId": "8e59c8949cc187fa",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691130129790",
            "endTimeUnixNano": "1796047691132302545",
            "durationMs": 2.172755,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "a10be01f8d908128108809c7e394f140",
            "spanId": "8e59c8949cc187fa",
            "parentSpanId": "b2547ab1f3009b98",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691130089720",
            "endTimeUnixNano": "1796047691132474282",
            "durationMs": 2.384562,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/plain-notes",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "a10be01f8d908128108809c7e394f140",
            "spanId": "24dae759aa6f7734",
            "parentSpanId": "a625c21e981d1b43",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691132675983",
            "endTimeUnixNano": "1796047691133749838",
            "durationMs": 1.073855,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "a10be01f8d908128108809c7e394f140",
            "spanId": "a625c21e981d1b43",
            "parentSpanId": "1a1e7ca0b085ac5d",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691132535764",
            "endTimeUnixNano": "1796047691134452508",
            "durationMs": 1.916744,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "a10be01f8d908128108809c7e394f140",
            "spanId": "1a1e7ca0b085ac5d",
            "parentSpanId": "b2547ab1f3009b98",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691132498038",
            "endTimeUnixNano": "1796047691134603153",
            "durationMs": 2.105115,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/plain-notes",
              "git.args_count": 3
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "a10be01f8d908128108809c7e394f140",
            "spanId": "b2547ab1f3009b98",
            "parentSpanId": "d803e73deae9715b",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691130068478",
            "endTimeUnixNano": "1796047691134659717",
            "durationMs": 4.591239,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Failure",
              "cause": "GitCommandError: Git command failed in GitVcsDriver.listWorktreePaths ($FIXTURE/fx/plain-notes): Git command exited with a non-zero status. (not_a_repository)\n    at file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:1635:11\n    at executeWorktreeList (file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:7803:5)\n    at executeWorktreeList (definition) (file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:1681:38)\n    at StorageCleanup.reportOrphanWorktrees (file://$CHECKOUT/apps/server/src/storageCleanup.ts:1967:12)\n    at StorageCleanup.reportOrphanWorktrees (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:556:40)\n    at StorageCleanup.cleanWorktrees (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2193:37)\n    at StorageCleanup.cleanWorktrees (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:1208:33)\n    at StorageCleanup.sweep (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2293:24)\n    at StorageCleanup.sweep (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2162:24)\n    at DrainableWorker.makeDrainableWorker (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2290:25)\n    at DrainableWorker.makeDrainableWorker (definition) (file://$CHECKOUT/packages/shared/src/DrainableWorker.ts:20:43)"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "a10be01f8d908128108809c7e394f140",
            "spanId": "cf63fd12b83cae38",
            "parentSpanId": "336a36b13bb08c55",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691134983361",
            "endTimeUnixNano": "1796047691135989954",
            "durationMs": 1.006593,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "a10be01f8d908128108809c7e394f140",
            "spanId": "336a36b13bb08c55",
            "parentSpanId": "2239c0e52e482c98",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691134841739",
            "endTimeUnixNano": "1796047691136790610",
            "durationMs": 1.948871,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "a10be01f8d908128108809c7e394f140",
            "spanId": "2239c0e52e482c98",
            "parentSpanId": "4b0f9d7a1ff14500",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691134805885",
            "endTimeUnixNano": "1796047691136940224",
            "durationMs": 2.134339,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo/packages/app",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "a10be01f8d908128108809c7e394f140",
            "spanId": "4b0f9d7a1ff14500",
            "parentSpanId": "d803e73deae9715b",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691134789381",
            "endTimeUnixNano": "1796047691136954475",
            "durationMs": 2.165094,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "a10be01f8d908128108809c7e394f140",
            "spanId": "af0c7065d5088b14",
            "parentSpanId": "384b9e30afc7ffc6",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691137155936",
            "endTimeUnixNano": "1796047691138158063",
            "durationMs": 1.002127,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "a10be01f8d908128108809c7e394f140",
            "spanId": "384b9e30afc7ffc6",
            "parentSpanId": "6f52ce434024bc9b",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691137021575",
            "endTimeUnixNano": "1796047691138939481",
            "durationMs": 1.917906,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "a10be01f8d908128108809c7e394f140",
            "spanId": "6f52ce434024bc9b",
            "parentSpanId": "6c2f48f801332195",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691136989598",
            "endTimeUnixNano": "1796047691139088794",
            "durationMs": 2.099196,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo-link",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "a10be01f8d908128108809c7e394f140",
            "spanId": "6c2f48f801332195",
            "parentSpanId": "d803e73deae9715b",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691136974155",
            "endTimeUnixNano": "1796047691139101603",
            "durationMs": 2.127448,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "a10be01f8d908128108809c7e394f140",
            "spanId": "815de8924a4291f5",
            "parentSpanId": "d9200bda31b8edf4",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691139319038",
            "endTimeUnixNano": "1796047691140265211",
            "durationMs": 0.946173,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "a10be01f8d908128108809c7e394f140",
            "spanId": "d9200bda31b8edf4",
            "parentSpanId": "d44d020da1877a8b",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691139168252",
            "endTimeUnixNano": "1796047691141070975",
            "durationMs": 1.902723,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "a10be01f8d908128108809c7e394f140",
            "spanId": "d44d020da1877a8b",
            "parentSpanId": "a6b151027551c356",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691139137106",
            "endTimeUnixNano": "1796047691141219236",
            "durationMs": 2.08213,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "a10be01f8d908128108809c7e394f140",
            "spanId": "a6b151027551c356",
            "parentSpanId": "d803e73deae9715b",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691139122244",
            "endTimeUnixNano": "1796047691141231675",
            "durationMs": 2.109431,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "a10be01f8d908128108809c7e394f140",
            "spanId": "23784eb5b73cd2bb",
            "parentSpanId": "d803e73deae9715b",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691141665854",
            "endTimeUnixNano": "1796047691141774326",
            "durationMs": 0.108472,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "a10be01f8d908128108809c7e394f140",
            "spanId": "1ea06125d34da1a7",
            "parentSpanId": "d803e73deae9715b",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691142058340",
            "endTimeUnixNano": "1796047691142097358",
            "durationMs": 0.039018,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "a10be01f8d908128108809c7e394f140",
            "spanId": "55ba973db1dd66a0",
            "parentSpanId": "d803e73deae9715b",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691142283767",
            "endTimeUnixNano": "1796047691142311939",
            "durationMs": 0.028172,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "a10be01f8d908128108809c7e394f140",
            "spanId": "067010ea17a31c7e",
            "parentSpanId": "d803e73deae9715b",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691142436215",
            "endTimeUnixNano": "1796047691142463966",
            "durationMs": 0.027751,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "storageCleanup.measureWorktree",
            "traceId": "a10be01f8d908128108809c7e394f140",
            "spanId": "931806fcac2099d3",
            "parentSpanId": "d803e73deae9715b",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691142502884",
            "endTimeUnixNano": "1796047691143244933",
            "durationMs": 0.742049,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.reportOrphanWorktrees",
            "traceId": "a10be01f8d908128108809c7e394f140",
            "spanId": "d803e73deae9715b",
            "parentSpanId": "b083b08154ebc93b",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691127296697",
            "endTimeUnixNano": "1796047691143291162",
            "durationMs": 15.994465,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanWorktrees",
            "traceId": "a10be01f8d908128108809c7e394f140",
            "spanId": "b083b08154ebc93b",
            "parentSpanId": "0dd7a8e8bf280bd7",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691125741183",
            "endTimeUnixNano": "1796047691143302228",
            "durationMs": 17.561045,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.sweep",
            "traceId": "a10be01f8d908128108809c7e394f140",
            "spanId": "0dd7a8e8bf280bd7",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691125391291",
            "endTimeUnixNano": "1796047691143356459",
            "durationMs": 17.965168,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          }
        ]
      },
      {
        "run": 38,
        "warmup": false,
        "elapsedMs": 18.514229,
        "nestedOrphanFound": true,
        "report": {
          "_tag": "Success",
          "value": {
            "trigger": "manual",
            "startedAt": "2026-11-30T14:08:11.145Z",
            "finishedAt": "2026-11-30T14:08:11.162Z",
            "entries": [
              {
                "kind": "worktree",
                "outcome": "kept",
                "reason": "No thread uses this worktree",
                "path": "$FIXTURE/data/worktrees/repository/replay/repo-wt",
                "projectPath": null,
                "threadId": null,
                "threadTitle": null,
                "bytes": 8192,
                "files": null
              }
            ],
            "counts": {
              "removed": 0,
              "kept": 1,
              "failed": 0
            },
            "omittedCount": 0,
            "bytesFreed": 0
          }
        },
        "spans": [
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "6da0222a85a52b01bc3038b80c596834",
            "spanId": "a8ddaf247bfbe277",
            "parentSpanId": "a61fe8b3e0ed087a",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691144861017",
            "endTimeUnixNano": "1796047691145114586",
            "durationMs": 0.253569,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      WITH RECURSIVE retained_checkpoint_threads(thread_id) AS (\n        SELECT thread_id FROM orchestration_v2_projection_threads WHERE deleted_at IS NULL\n        UNION\n        SELECT json_extract(t\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.044,
              "db.client.connection.wait_time_ms": 0.067962
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanCheckpointRefs",
            "traceId": "6da0222a85a52b01bc3038b80c596834",
            "spanId": "a61fe8b3e0ed087a",
            "parentSpanId": "a64aa6ba684a2939",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691144840216",
            "endTimeUnixNano": "1796047691145156709",
            "durationMs": 0.316493,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.retryLeftovers",
            "traceId": "6da0222a85a52b01bc3038b80c596834",
            "spanId": "98852e85f84bb3c8",
            "parentSpanId": "a64aa6ba684a2939",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691145179823",
            "endTimeUnixNano": "1796047691145278711",
            "durationMs": 0.098888,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveGitWorktreePath",
            "traceId": "6da0222a85a52b01bc3038b80c596834",
            "spanId": "48ca2f3f6296fc1e",
            "parentSpanId": "3028c3ffd951d3fa",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691145320103",
            "endTimeUnixNano": "1796047691145740981",
            "durationMs": 0.420878,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveWorktreeT3Home",
            "traceId": "6da0222a85a52b01bc3038b80c596834",
            "spanId": "3028c3ffd951d3fa",
            "parentSpanId": "2a15be4c5a09574f",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691145311851",
            "endTimeUnixNano": "1796047691145754051",
            "durationMs": 0.4422,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "6da0222a85a52b01bc3038b80c596834",
            "spanId": "29a8e46067ecc8bd",
            "parentSpanId": "2a15be4c5a09574f",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691146071115",
            "endTimeUnixNano": "1796047691146186046",
            "durationMs": 0.114931,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n          SELECT t.payload_json, p.workspace_root AS \"workspaceRoot\"\n          FROM orchestration_v2_projection_threads t\n          JOIN projection_projects p ON p.project_id = t.project_id\n         \u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.029,
              "db.client.connection.wait_time_ms": 0.045758
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "BEGIN",
            "traceId": "6da0222a85a52b01bc3038b80c596834",
            "spanId": "6d2ebb3f75aa954f",
            "parentSpanId": "81f40c2090d704e2",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691146336501",
            "endTimeUnixNano": "1796047691146402520",
            "durationMs": 0.066019,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "BEGIN"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "6da0222a85a52b01bc3038b80c596834",
            "spanId": "d335c1d6f5c86cb1",
            "parentSpanId": "c7797c7aa60f22a9",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691146507036",
            "endTimeUnixNano": "1796047691146632483",
            "durationMs": 0.125447,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n            SELECT\n              t.thread_id,\n              t.payload_json,\n              t.fork_run_ids_json,\n              CASE\n                WHEN json_extract(t.payload_json, '$.forkedFrom.type'\u2026[truncated]",
              "db.client.connection.wait_time_ms": 0.014652
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "6da0222a85a52b01bc3038b80c596834",
            "spanId": "ea3f542fe9ed61db",
            "parentSpanId": "c7797c7aa60f22a9",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691146668978",
            "endTimeUnixNano": "1796047691146726684",
            "durationMs": 0.057706,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n        SELECT MAX(sequence) AS snapshot_sequence\n        FROM orchestration_events\n        WHERE application_event_version = 2\n          AND aggregate_kind = 'thread'\n      ",
              "db.client.connection.wait_time_ms": 0.006279
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readShellSnapshotRows",
            "traceId": "6da0222a85a52b01bc3038b80c596834",
            "spanId": "c7797c7aa60f22a9",
            "parentSpanId": "81f40c2090d704e2",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691146432595",
            "endTimeUnixNano": "1796047691146739804",
            "durationMs": 0.307209,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "COMMIT",
            "traceId": "6da0222a85a52b01bc3038b80c596834",
            "spanId": "ab551649c8ed1885",
            "parentSpanId": "81f40c2090d704e2",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691146749098",
            "endTimeUnixNano": "1796047691146781856",
            "durationMs": 0.032758,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "COMMIT"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sql.transaction",
            "traceId": "6da0222a85a52b01bc3038b80c596834",
            "spanId": "81f40c2090d704e2",
            "parentSpanId": "d19a3c997bf97a14",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691146266807",
            "endTimeUnixNano": "1796047691146805542",
            "durationMs": 0.538735,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.client.connection.wait_time_ms": 0.059088,
              "db.connection": "reader",
              "db.lock_wait_ms": 0.026
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.pendingBackgroundDataByThreadId",
            "traceId": "6da0222a85a52b01bc3038b80c596834",
            "spanId": "edbf1c37c3ea010f",
            "parentSpanId": "00ee8eba18c9a841",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691146849618",
            "endTimeUnixNano": "1796047691146855406",
            "durationMs": 0.005788,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.decodeShellSnapshot",
            "traceId": "6da0222a85a52b01bc3038b80c596834",
            "spanId": "00ee8eba18c9a841",
            "parentSpanId": "d19a3c997bf97a14",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691146833033",
            "endTimeUnixNano": "1796047691146864199",
            "durationMs": 0.031166,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "6da0222a85a52b01bc3038b80c596834",
            "spanId": "d6b498ba9782afab",
            "parentSpanId": "100f0940c40188d0",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691146907514",
            "endTimeUnixNano": "1796047691147043217",
            "durationMs": 0.135703,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.025,
              "db.client.connection.wait_time_ms": 0.03362
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectStoreV2.listShells",
            "traceId": "6da0222a85a52b01bc3038b80c596834",
            "spanId": "100f0940c40188d0",
            "parentSpanId": "d19a3c997bf97a14",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691146872282",
            "endTimeUnixNano": "1796047691147131278",
            "durationMs": 0.258996,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.readThreads",
            "traceId": "6da0222a85a52b01bc3038b80c596834",
            "spanId": "d19a3c997bf97a14",
            "parentSpanId": "2a15be4c5a09574f",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691146228660",
            "endTimeUnixNano": "1796047691147139911",
            "durationMs": 0.911251,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "6da0222a85a52b01bc3038b80c596834",
            "spanId": "07f80a73bfc1b2a1",
            "parentSpanId": "2a15be4c5a09574f",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691147166361",
            "endTimeUnixNano": "1796047691147281813",
            "durationMs": 0.115452,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.02,
              "db.client.connection.wait_time_ms": 0.031136
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "6da0222a85a52b01bc3038b80c596834",
            "spanId": "e54ff646ec0c0409",
            "parentSpanId": "e983929df5f51bb9",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691147355133",
            "endTimeUnixNano": "1796047691147458598",
            "durationMs": 0.103465,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT DISTINCT json_extract(payload_json, '$.worktreePath') AS \"worktreePath\"\n      FROM orchestration_v2_projection_threads\n      WHERE json_extract(payload_json, '$.worktreePath') IS NOT NUL\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.034,
              "db.client.connection.wait_time_ms": 0.041282
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "6da0222a85a52b01bc3038b80c596834",
            "spanId": "e11c80f43a2c7ec7",
            "parentSpanId": "1c87f29c0347d024",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691148917126",
            "endTimeUnixNano": "1796047691150219262",
            "durationMs": 1.302136,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "6da0222a85a52b01bc3038b80c596834",
            "spanId": "1c87f29c0347d024",
            "parentSpanId": "8c5b50f0072958ac",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691148719491",
            "endTimeUnixNano": "1796047691151013058",
            "durationMs": 2.293567,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "6da0222a85a52b01bc3038b80c596834",
            "spanId": "8c5b50f0072958ac",
            "parentSpanId": "9f1bcccfd3d292a2",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691148682496",
            "endTimeUnixNano": "1796047691151201799",
            "durationMs": 2.519303,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/plain-notes",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "6da0222a85a52b01bc3038b80c596834",
            "spanId": "07022c5903886dff",
            "parentSpanId": "cd99f53c03ba6f0c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691151438894",
            "endTimeUnixNano": "1796047691152609052",
            "durationMs": 1.170158,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "6da0222a85a52b01bc3038b80c596834",
            "spanId": "cd99f53c03ba6f0c",
            "parentSpanId": "23bf5ca24fbcf7c3",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691151261949",
            "endTimeUnixNano": "1796047691153312332",
            "durationMs": 2.050383,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "6da0222a85a52b01bc3038b80c596834",
            "spanId": "23bf5ca24fbcf7c3",
            "parentSpanId": "9f1bcccfd3d292a2",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691151225375",
            "endTimeUnixNano": "1796047691153471881",
            "durationMs": 2.246506,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/plain-notes",
              "git.args_count": 3
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "6da0222a85a52b01bc3038b80c596834",
            "spanId": "9f1bcccfd3d292a2",
            "parentSpanId": "e983929df5f51bb9",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691148657268",
            "endTimeUnixNano": "1796047691153545982",
            "durationMs": 4.888714,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Failure",
              "cause": "GitCommandError: Git command failed in GitVcsDriver.listWorktreePaths ($FIXTURE/fx/plain-notes): Git command exited with a non-zero status. (not_a_repository)\n    at file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:1635:11\n    at executeWorktreeList (file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:7803:5)\n    at executeWorktreeList (definition) (file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:1681:38)\n    at StorageCleanup.reportOrphanWorktrees (file://$CHECKOUT/apps/server/src/storageCleanup.ts:1967:12)\n    at StorageCleanup.reportOrphanWorktrees (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:556:40)\n    at StorageCleanup.cleanWorktrees (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2193:37)\n    at StorageCleanup.cleanWorktrees (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:1208:33)\n    at StorageCleanup.sweep (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2293:24)\n    at StorageCleanup.sweep (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2162:24)\n    at DrainableWorker.makeDrainableWorker (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2290:25)\n    at DrainableWorker.makeDrainableWorker (definition) (file://$CHECKOUT/packages/shared/src/DrainableWorker.ts:20:43)"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "6da0222a85a52b01bc3038b80c596834",
            "spanId": "aff1c1c97f2e2ca7",
            "parentSpanId": "ea158e547cc977cf",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691153903906",
            "endTimeUnixNano": "1796047691155060304",
            "durationMs": 1.156398,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "6da0222a85a52b01bc3038b80c596834",
            "spanId": "ea158e547cc977cf",
            "parentSpanId": "c0ac212445781837",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691153751098",
            "endTimeUnixNano": "1796047691155933278",
            "durationMs": 2.18218,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "6da0222a85a52b01bc3038b80c596834",
            "spanId": "c0ac212445781837",
            "parentSpanId": "cbbf9261df90a58e",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691153713822",
            "endTimeUnixNano": "1796047691156147278",
            "durationMs": 2.433456,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo/packages/app",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "6da0222a85a52b01bc3038b80c596834",
            "spanId": "cbbf9261df90a58e",
            "parentSpanId": "e983929df5f51bb9",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691153697278",
            "endTimeUnixNano": "1796047691156164363",
            "durationMs": 2.467085,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "6da0222a85a52b01bc3038b80c596834",
            "spanId": "6b4faacefbb9393c",
            "parentSpanId": "9d9fe5398db3bd27",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691156433586",
            "endTimeUnixNano": "1796047691157445537",
            "durationMs": 1.011951,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "6da0222a85a52b01bc3038b80c596834",
            "spanId": "9d9fe5398db3bd27",
            "parentSpanId": "b695d2e3b797b7df",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691156248409",
            "endTimeUnixNano": "1796047691158202188",
            "durationMs": 1.953779,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "6da0222a85a52b01bc3038b80c596834",
            "spanId": "b695d2e3b797b7df",
            "parentSpanId": "a9c24a52f09ff793",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691156212004",
            "endTimeUnixNano": "1796047691158374645",
            "durationMs": 2.162641,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo-link",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "6da0222a85a52b01bc3038b80c596834",
            "spanId": "a9c24a52f09ff793",
            "parentSpanId": "e983929df5f51bb9",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691156192906",
            "endTimeUnixNano": "1796047691158388446",
            "durationMs": 2.19554,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "6da0222a85a52b01bc3038b80c596834",
            "spanId": "0740fd5e904347d4",
            "parentSpanId": "c377d8b77b39b0c3",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691158604218",
            "endTimeUnixNano": "1796047691159900354",
            "durationMs": 1.296136,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "6da0222a85a52b01bc3038b80c596834",
            "spanId": "c377d8b77b39b0c3",
            "parentSpanId": "85e92c90ed8e9ea7",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691158464770",
            "endTimeUnixNano": "1796047691160864094",
            "durationMs": 2.399324,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "6da0222a85a52b01bc3038b80c596834",
            "spanId": "85e92c90ed8e9ea7",
            "parentSpanId": "fd4104d92c9401b5",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691158429517",
            "endTimeUnixNano": "1796047691161010743",
            "durationMs": 2.581226,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "6da0222a85a52b01bc3038b80c596834",
            "spanId": "fd4104d92c9401b5",
            "parentSpanId": "e983929df5f51bb9",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691158409267",
            "endTimeUnixNano": "1796047691161024754",
            "durationMs": 2.615487,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "6da0222a85a52b01bc3038b80c596834",
            "spanId": "050dcaf80e67e123",
            "parentSpanId": "e983929df5f51bb9",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691161307306",
            "endTimeUnixNano": "1796047691161350240",
            "durationMs": 0.042934,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "6da0222a85a52b01bc3038b80c596834",
            "spanId": "210a99d0abcad44d",
            "parentSpanId": "e983929df5f51bb9",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691161458272",
            "endTimeUnixNano": "1796047691161480746",
            "durationMs": 0.022474,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "6da0222a85a52b01bc3038b80c596834",
            "spanId": "1bb9191e4bae17b7",
            "parentSpanId": "e983929df5f51bb9",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691161574736",
            "endTimeUnixNano": "1796047691161591681",
            "durationMs": 0.016945,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "6da0222a85a52b01bc3038b80c596834",
            "spanId": "14d9bc35284aaf4d",
            "parentSpanId": "e983929df5f51bb9",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691161663599",
            "endTimeUnixNano": "1796047691161680764",
            "durationMs": 0.017165,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "storageCleanup.measureWorktree",
            "traceId": "6da0222a85a52b01bc3038b80c596834",
            "spanId": "759d48d9145dcc92",
            "parentSpanId": "e983929df5f51bb9",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691161707434",
            "endTimeUnixNano": "1796047691162195513",
            "durationMs": 0.488079,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.reportOrphanWorktrees",
            "traceId": "6da0222a85a52b01bc3038b80c596834",
            "spanId": "e983929df5f51bb9",
            "parentSpanId": "2a15be4c5a09574f",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691147343826",
            "endTimeUnixNano": "1796047691162223325",
            "durationMs": 14.879499,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanWorktrees",
            "traceId": "6da0222a85a52b01bc3038b80c596834",
            "spanId": "2a15be4c5a09574f",
            "parentSpanId": "a64aa6ba684a2939",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691145291770",
            "endTimeUnixNano": "1796047691162232378",
            "durationMs": 16.940608,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.sweep",
            "traceId": "6da0222a85a52b01bc3038b80c596834",
            "spanId": "a64aa6ba684a2939",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691144811343",
            "endTimeUnixNano": "1796047691162279689",
            "durationMs": 17.468346,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          }
        ]
      },
      {
        "run": 39,
        "warmup": false,
        "elapsedMs": 16.766186999999945,
        "nestedOrphanFound": true,
        "report": {
          "_tag": "Success",
          "value": {
            "trigger": "manual",
            "startedAt": "2026-11-30T14:08:11.163Z",
            "finishedAt": "2026-11-30T14:08:11.179Z",
            "entries": [
              {
                "kind": "worktree",
                "outcome": "kept",
                "reason": "No thread uses this worktree",
                "path": "$FIXTURE/data/worktrees/repository/replay/repo-wt",
                "projectPath": null,
                "threadId": null,
                "threadTitle": null,
                "bytes": 8192,
                "files": null
              }
            ],
            "counts": {
              "removed": 0,
              "kept": 1,
              "failed": 0
            },
            "omittedCount": 0,
            "bytesFreed": 0
          }
        },
        "spans": [
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "cb1d2049188f622d1033a07efd407632",
            "spanId": "94166911b9f1028d",
            "parentSpanId": "762e74f292c323ec",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691163287034",
            "endTimeUnixNano": "1796047691163473492",
            "durationMs": 0.186458,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      WITH RECURSIVE retained_checkpoint_threads(thread_id) AS (\n        SELECT thread_id FROM orchestration_v2_projection_threads WHERE deleted_at IS NULL\n        UNION\n        SELECT json_extract(t\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.037,
              "db.client.connection.wait_time_ms": 0.055022
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanCheckpointRefs",
            "traceId": "cb1d2049188f622d1033a07efd407632",
            "spanId": "762e74f292c323ec",
            "parentSpanId": "2833dadb081396ca",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691163259663",
            "endTimeUnixNano": "1796047691163511609",
            "durationMs": 0.251946,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.retryLeftovers",
            "traceId": "cb1d2049188f622d1033a07efd407632",
            "spanId": "4c2691caceb31e94",
            "parentSpanId": "2833dadb081396ca",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691163529356",
            "endTimeUnixNano": "1796047691163608484",
            "durationMs": 0.079128,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveGitWorktreePath",
            "traceId": "cb1d2049188f622d1033a07efd407632",
            "spanId": "79df95b85f3f581a",
            "parentSpanId": "b2091c4f07c832bd",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691163640412",
            "endTimeUnixNano": "1796047691163795033",
            "durationMs": 0.154621,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveWorktreeT3Home",
            "traceId": "cb1d2049188f622d1033a07efd407632",
            "spanId": "b2091c4f07c832bd",
            "parentSpanId": "1df273c508090d0e",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691163633211",
            "endTimeUnixNano": "1796047691163801192",
            "durationMs": 0.167981,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "cb1d2049188f622d1033a07efd407632",
            "spanId": "60ba4d06a79095ac",
            "parentSpanId": "1df273c508090d0e",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691164017004",
            "endTimeUnixNano": "1796047691164109753",
            "durationMs": 0.092749,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n          SELECT t.payload_json, p.workspace_root AS \"workspaceRoot\"\n          FROM orchestration_v2_projection_threads t\n          JOIN projection_projects p ON p.project_id = t.project_id\n         \u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.027,
              "db.client.connection.wait_time_ms": 0.040331
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "BEGIN",
            "traceId": "cb1d2049188f622d1033a07efd407632",
            "spanId": "c40a22a730220231",
            "parentSpanId": "6b181c347b35cfb0",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691164219827",
            "endTimeUnixNano": "1796047691164263773",
            "durationMs": 0.043946,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "BEGIN"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "cb1d2049188f622d1033a07efd407632",
            "spanId": "6fe174521c61bef7",
            "parentSpanId": "507abbb7d77fa5d2",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691164369791",
            "endTimeUnixNano": "1796047691164474588",
            "durationMs": 0.104797,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n            SELECT\n              t.thread_id,\n              t.payload_json,\n              t.fork_run_ids_json,\n              CASE\n                WHEN json_extract(t.payload_json, '$.forkedFrom.type'\u2026[truncated]",
              "db.client.connection.wait_time_ms": 0.012119
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "cb1d2049188f622d1033a07efd407632",
            "spanId": "213e4ea8f2bf1fac",
            "parentSpanId": "507abbb7d77fa5d2",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691164513987",
            "endTimeUnixNano": "1796047691164563731",
            "durationMs": 0.049744,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n        SELECT MAX(sequence) AS snapshot_sequence\n        FROM orchestration_events\n        WHERE application_event_version = 2\n          AND aggregate_kind = 'thread'\n      ",
              "db.client.connection.wait_time_ms": 0.00677
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readShellSnapshotRows",
            "traceId": "cb1d2049188f622d1033a07efd407632",
            "spanId": "507abbb7d77fa5d2",
            "parentSpanId": "6b181c347b35cfb0",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691164299006",
            "endTimeUnixNano": "1796047691164575789",
            "durationMs": 0.276783,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "COMMIT",
            "traceId": "cb1d2049188f622d1033a07efd407632",
            "spanId": "d81e1d31cd34bdd1",
            "parentSpanId": "6b181c347b35cfb0",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691164585384",
            "endTimeUnixNano": "1796047691164608118",
            "durationMs": 0.022734,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "COMMIT"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sql.transaction",
            "traceId": "cb1d2049188f622d1033a07efd407632",
            "spanId": "6b181c347b35cfb0",
            "parentSpanId": "b2a3c66647f8f079",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691164172988",
            "endTimeUnixNano": "1796047691164630160",
            "durationMs": 0.457172,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.client.connection.wait_time_ms": 0.039278,
              "db.connection": "reader",
              "db.lock_wait_ms": 0.022
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.pendingBackgroundDataByThreadId",
            "traceId": "cb1d2049188f622d1033a07efd407632",
            "spanId": "ce9d95f6650e5f1a",
            "parentSpanId": "6cde970f36d57ecd",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691164670280",
            "endTimeUnixNano": "1796047691164675518",
            "durationMs": 0.005238,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.decodeShellSnapshot",
            "traceId": "cb1d2049188f622d1033a07efd407632",
            "spanId": "6cde970f36d57ecd",
            "parentSpanId": "b2a3c66647f8f079",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691164655418",
            "endTimeUnixNano": "1796047691164683350",
            "durationMs": 0.027932,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "cb1d2049188f622d1033a07efd407632",
            "spanId": "98f5a11ddd92cacd",
            "parentSpanId": "855a0d9d50a7afa0",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691164720646",
            "endTimeUnixNano": "1796047691164834696",
            "durationMs": 0.11405,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.025,
              "db.client.connection.wait_time_ms": 0.033009
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectStoreV2.listShells",
            "traceId": "cb1d2049188f622d1033a07efd407632",
            "spanId": "855a0d9d50a7afa0",
            "parentSpanId": "b2a3c66647f8f079",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691164691062",
            "endTimeUnixNano": "1796047691164906914",
            "durationMs": 0.215852,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.readThreads",
            "traceId": "cb1d2049188f622d1033a07efd407632",
            "spanId": "b2a3c66647f8f079",
            "parentSpanId": "1df273c508090d0e",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691164144986",
            "endTimeUnixNano": "1796047691164915607",
            "durationMs": 0.770621,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "cb1d2049188f622d1033a07efd407632",
            "spanId": "f6ee83151c89cc16",
            "parentSpanId": "1df273c508090d0e",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691164940074",
            "endTimeUnixNano": "1796047691165028245",
            "durationMs": 0.088171,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.019,
              "db.client.connection.wait_time_ms": 0.029493
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "cb1d2049188f622d1033a07efd407632",
            "spanId": "c4d64c9a136ab711",
            "parentSpanId": "c092f8da3a3904d4",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691165077549",
            "endTimeUnixNano": "1796047691165152591",
            "durationMs": 0.075042,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT DISTINCT json_extract(payload_json, '$.worktreePath') AS \"worktreePath\"\n      FROM orchestration_v2_projection_threads\n      WHERE json_extract(payload_json, '$.worktreePath') IS NOT NUL\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.029,
              "db.client.connection.wait_time_ms": 0.035763
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "cb1d2049188f622d1033a07efd407632",
            "spanId": "cdcc27fb412aec1d",
            "parentSpanId": "d1557b5ca965c8b4",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691166250992",
            "endTimeUnixNano": "1796047691167493338",
            "durationMs": 1.242346,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "cb1d2049188f622d1033a07efd407632",
            "spanId": "d1557b5ca965c8b4",
            "parentSpanId": "ed0b6446cc9a4809",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691166098474",
            "endTimeUnixNano": "1796047691168238591",
            "durationMs": 2.140117,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "cb1d2049188f622d1033a07efd407632",
            "spanId": "ed0b6446cc9a4809",
            "parentSpanId": "4b6d820413f5d3b7",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691166067267",
            "endTimeUnixNano": "1796047691168404549",
            "durationMs": 2.337282,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/plain-notes",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "cb1d2049188f622d1033a07efd407632",
            "spanId": "65dfa203d7c25af3",
            "parentSpanId": "bfc6dc272861b5e0",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691168615654",
            "endTimeUnixNano": "1796047691169745312",
            "durationMs": 1.129658,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "cb1d2049188f622d1033a07efd407632",
            "spanId": "bfc6dc272861b5e0",
            "parentSpanId": "04cfdae3a76dca28",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691168469126",
            "endTimeUnixNano": "1796047691170523775",
            "durationMs": 2.054649,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "cb1d2049188f622d1033a07efd407632",
            "spanId": "04cfdae3a76dca28",
            "parentSpanId": "4b6d820413f5d3b7",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691168433312",
            "endTimeUnixNano": "1796047691170672047",
            "durationMs": 2.238735,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/plain-notes",
              "git.args_count": 3
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "cb1d2049188f622d1033a07efd407632",
            "spanId": "4b6d820413f5d3b7",
            "parentSpanId": "c092f8da3a3904d4",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691166050392",
            "endTimeUnixNano": "1796047691170732577",
            "durationMs": 4.682185,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Failure",
              "cause": "GitCommandError: Git command failed in GitVcsDriver.listWorktreePaths ($FIXTURE/fx/plain-notes): Git command exited with a non-zero status. (not_a_repository)\n    at file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:1635:11\n    at executeWorktreeList (file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:7803:5)\n    at executeWorktreeList (definition) (file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:1681:38)\n    at StorageCleanup.reportOrphanWorktrees (file://$CHECKOUT/apps/server/src/storageCleanup.ts:1967:12)\n    at StorageCleanup.reportOrphanWorktrees (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:556:40)\n    at StorageCleanup.cleanWorktrees (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2193:37)\n    at StorageCleanup.cleanWorktrees (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:1208:33)\n    at StorageCleanup.sweep (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2293:24)\n    at StorageCleanup.sweep (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2162:24)\n    at DrainableWorker.makeDrainableWorker (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2290:25)\n    at DrainableWorker.makeDrainableWorker (definition) (file://$CHECKOUT/packages/shared/src/DrainableWorker.ts:20:43)"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "cb1d2049188f622d1033a07efd407632",
            "spanId": "5b2d8481381412a3",
            "parentSpanId": "50ddcbca6b75ba64",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691171060867",
            "endTimeUnixNano": "1796047691172134351",
            "durationMs": 1.073484,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "cb1d2049188f622d1033a07efd407632",
            "spanId": "50ddcbca6b75ba64",
            "parentSpanId": "ff1dc1ba36d8739e",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691170920398",
            "endTimeUnixNano": "1796047691173098151",
            "durationMs": 2.177753,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "cb1d2049188f622d1033a07efd407632",
            "spanId": "ff1dc1ba36d8739e",
            "parentSpanId": "13e08edcf72551c1",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691170884945",
            "endTimeUnixNano": "1796047691173283718",
            "durationMs": 2.398773,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo/packages/app",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "cb1d2049188f622d1033a07efd407632",
            "spanId": "13e08edcf72551c1",
            "parentSpanId": "c092f8da3a3904d4",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691170868230",
            "endTimeUnixNano": "1796047691173298761",
            "durationMs": 2.430531,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "cb1d2049188f622d1033a07efd407632",
            "spanId": "1bfe45b31e644e0d",
            "parentSpanId": "f54762b1f6dbeb1b",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691173517447",
            "endTimeUnixNano": "1796047691174554296",
            "durationMs": 1.036849,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "cb1d2049188f622d1033a07efd407632",
            "spanId": "f54762b1f6dbeb1b",
            "parentSpanId": "c24dd40c700608c1",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691173379271",
            "endTimeUnixNano": "1796047691175348152",
            "durationMs": 1.968881,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "cb1d2049188f622d1033a07efd407632",
            "spanId": "c24dd40c700608c1",
            "parentSpanId": "41f6a6d6edc36c40",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691173347463",
            "endTimeUnixNano": "1796047691175499578",
            "durationMs": 2.152115,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo-link",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "cb1d2049188f622d1033a07efd407632",
            "spanId": "41f6a6d6edc36c40",
            "parentSpanId": "c092f8da3a3904d4",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691173331480",
            "endTimeUnixNano": "1796047691175512848",
            "durationMs": 2.181368,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "cb1d2049188f622d1033a07efd407632",
            "spanId": "b6224f5686ae232e",
            "parentSpanId": "867f94cd0830ea5c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691175704755",
            "endTimeUnixNano": "1796047691176736987",
            "durationMs": 1.032232,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "cb1d2049188f622d1033a07efd407632",
            "spanId": "867f94cd0830ea5c",
            "parentSpanId": "50368c4e4cf80401",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691175577445",
            "endTimeUnixNano": "1796047691177578184",
            "durationMs": 2.000739,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "cb1d2049188f622d1033a07efd407632",
            "spanId": "50368c4e4cf80401",
            "parentSpanId": "d613c2d702f1f4e9",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691175547761",
            "endTimeUnixNano": "1796047691177718043",
            "durationMs": 2.170282,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "cb1d2049188f622d1033a07efd407632",
            "spanId": "d613c2d702f1f4e9",
            "parentSpanId": "c092f8da3a3904d4",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691175532327",
            "endTimeUnixNano": "1796047691177729921",
            "durationMs": 2.197594,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "cb1d2049188f622d1033a07efd407632",
            "spanId": "9b606024f69b5bc3",
            "parentSpanId": "c092f8da3a3904d4",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691178008076",
            "endTimeUnixNano": "1796047691178044020",
            "durationMs": 0.035944,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "cb1d2049188f622d1033a07efd407632",
            "spanId": "1f788a97bdee5b59",
            "parentSpanId": "c092f8da3a3904d4",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691178180684",
            "endTimeUnixNano": "1796047691178201725",
            "durationMs": 0.021041,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "cb1d2049188f622d1033a07efd407632",
            "spanId": "9a7e8a18da41fe0a",
            "parentSpanId": "c092f8da3a3904d4",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691178326361",
            "endTimeUnixNano": "1796047691178343397",
            "durationMs": 0.017036,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "cb1d2049188f622d1033a07efd407632",
            "spanId": "739e4c77a4010c0c",
            "parentSpanId": "c092f8da3a3904d4",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691178417087",
            "endTimeUnixNano": "1796047691178435745",
            "durationMs": 0.018658,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "storageCleanup.measureWorktree",
            "traceId": "cb1d2049188f622d1033a07efd407632",
            "spanId": "be472b54edd8e048",
            "parentSpanId": "c092f8da3a3904d4",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691178458629",
            "endTimeUnixNano": "1796047691178962492",
            "durationMs": 0.503863,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.reportOrphanWorktrees",
            "traceId": "cb1d2049188f622d1033a07efd407632",
            "spanId": "c092f8da3a3904d4",
            "parentSpanId": "1df273c508090d0e",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691165069307",
            "endTimeUnixNano": "1796047691178986197",
            "durationMs": 13.91689,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanWorktrees",
            "traceId": "cb1d2049188f622d1033a07efd407632",
            "spanId": "1df273c508090d0e",
            "parentSpanId": "2833dadb081396ca",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691163619941",
            "endTimeUnixNano": "1796047691178992747",
            "durationMs": 15.372806,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.sweep",
            "traceId": "cb1d2049188f622d1033a07efd407632",
            "spanId": "2833dadb081396ca",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691163235156",
            "endTimeUnixNano": "1796047691179023002",
            "durationMs": 15.787846,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          }
        ]
      },
      {
        "run": 40,
        "warmup": false,
        "elapsedMs": 20.61662000000001,
        "nestedOrphanFound": true,
        "report": {
          "_tag": "Success",
          "value": {
            "trigger": "manual",
            "startedAt": "2026-11-30T14:08:11.180Z",
            "finishedAt": "2026-11-30T14:08:11.199Z",
            "entries": [
              {
                "kind": "worktree",
                "outcome": "kept",
                "reason": "No thread uses this worktree",
                "path": "$FIXTURE/data/worktrees/repository/replay/repo-wt",
                "projectPath": null,
                "threadId": null,
                "threadTitle": null,
                "bytes": 8192,
                "files": null
              }
            ],
            "counts": {
              "removed": 0,
              "kept": 1,
              "failed": 0
            },
            "omittedCount": 0,
            "bytesFreed": 0
          }
        },
        "spans": [
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "c6cd59c396567c8265d45d34f32db157",
            "spanId": "1d6c33f6e98b2311",
            "parentSpanId": "40f5d666ab57f948",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691180094373",
            "endTimeUnixNano": "1796047691180344026",
            "durationMs": 0.249653,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      WITH RECURSIVE retained_checkpoint_threads(thread_id) AS (\n        SELECT thread_id FROM orchestration_v2_projection_threads WHERE deleted_at IS NULL\n        UNION\n        SELECT json_extract(t\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.049,
              "db.client.connection.wait_time_ms": 0.061942
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanCheckpointRefs",
            "traceId": "c6cd59c396567c8265d45d34f32db157",
            "spanId": "40f5d666ab57f948",
            "parentSpanId": "884e536e6d8efe66",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691180083186",
            "endTimeUnixNano": "1796047691180401061",
            "durationMs": 0.317875,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.retryLeftovers",
            "traceId": "c6cd59c396567c8265d45d34f32db157",
            "spanId": "a48ab1cf6f33a177",
            "parentSpanId": "884e536e6d8efe66",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691180443815",
            "endTimeUnixNano": "1796047691180559388",
            "durationMs": 0.115573,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveGitWorktreePath",
            "traceId": "c6cd59c396567c8265d45d34f32db157",
            "spanId": "b3c5132c7bf63f43",
            "parentSpanId": "805f4a87d66f2a2e",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691180604956",
            "endTimeUnixNano": "1796047691180840678",
            "durationMs": 0.235722,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveWorktreeT3Home",
            "traceId": "c6cd59c396567c8265d45d34f32db157",
            "spanId": "805f4a87d66f2a2e",
            "parentSpanId": "6718a44292e3d225",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691180597314",
            "endTimeUnixNano": "1796047691180854939",
            "durationMs": 0.257625,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "c6cd59c396567c8265d45d34f32db157",
            "spanId": "099f018d486a7a75",
            "parentSpanId": "6718a44292e3d225",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691181090822",
            "endTimeUnixNano": "1796047691181223079",
            "durationMs": 0.132257,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n          SELECT t.payload_json, p.workspace_root AS \"workspaceRoot\"\n          FROM orchestration_v2_projection_threads t\n          JOIN projection_projects p ON p.project_id = t.project_id\n         \u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.037,
              "db.client.connection.wait_time_ms": 0.054791
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "BEGIN",
            "traceId": "c6cd59c396567c8265d45d34f32db157",
            "spanId": "101e86a75d25b800",
            "parentSpanId": "643577fd58b3a307",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691181375537",
            "endTimeUnixNano": "1796047691181445081",
            "durationMs": 0.069544,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "BEGIN"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "c6cd59c396567c8265d45d34f32db157",
            "spanId": "f47c185cdd1e5bff",
            "parentSpanId": "33807e9a1794f67d",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691181541074",
            "endTimeUnixNano": "1796047691181648595",
            "durationMs": 0.107521,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n            SELECT\n              t.thread_id,\n              t.payload_json,\n              t.fork_run_ids_json,\n              CASE\n                WHEN json_extract(t.payload_json, '$.forkedFrom.type'\u2026[truncated]",
              "db.client.connection.wait_time_ms": 0.011938
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "c6cd59c396567c8265d45d34f32db157",
            "spanId": "dad471dcd2d4a196",
            "parentSpanId": "33807e9a1794f67d",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691181686281",
            "endTimeUnixNano": "1796047691181746181",
            "durationMs": 0.0599,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n        SELECT MAX(sequence) AS snapshot_sequence\n        FROM orchestration_events\n        WHERE application_event_version = 2\n          AND aggregate_kind = 'thread'\n      ",
              "db.client.connection.wait_time_ms": 0.007141
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readShellSnapshotRows",
            "traceId": "c6cd59c396567c8265d45d34f32db157",
            "spanId": "33807e9a1794f67d",
            "parentSpanId": "643577fd58b3a307",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691181470569",
            "endTimeUnixNano": "1796047691181759040",
            "durationMs": 0.288471,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "COMMIT",
            "traceId": "c6cd59c396567c8265d45d34f32db157",
            "spanId": "0857ae20b83a82fb",
            "parentSpanId": "643577fd58b3a307",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691181768444",
            "endTimeUnixNano": "1796047691181802685",
            "durationMs": 0.034241,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "COMMIT"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sql.transaction",
            "traceId": "c6cd59c396567c8265d45d34f32db157",
            "spanId": "643577fd58b3a307",
            "parentSpanId": "5cabd643bfdfdbb5",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691181318642",
            "endTimeUnixNano": "1796047691181826731",
            "durationMs": 0.508089,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.client.connection.wait_time_ms": 0.049664,
              "db.connection": "reader",
              "db.lock_wait_ms": 0.029
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.pendingBackgroundDataByThreadId",
            "traceId": "c6cd59c396567c8265d45d34f32db157",
            "spanId": "4cf8888bc9138993",
            "parentSpanId": "44de28d64c409581",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691181874592",
            "endTimeUnixNano": "1796047691181879970",
            "durationMs": 0.005378,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.decodeShellSnapshot",
            "traceId": "c6cd59c396567c8265d45d34f32db157",
            "spanId": "44de28d64c409581",
            "parentSpanId": "5cabd643bfdfdbb5",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691181859830",
            "endTimeUnixNano": "1796047691181889815",
            "durationMs": 0.029985,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "c6cd59c396567c8265d45d34f32db157",
            "spanId": "385c96bc6eedbeee",
            "parentSpanId": "87c4e208625964b9",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691181926179",
            "endTimeUnixNano": "1796047691182054701",
            "durationMs": 0.128522,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.028,
              "db.client.connection.wait_time_ms": 0.037126
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectStoreV2.listShells",
            "traceId": "c6cd59c396567c8265d45d34f32db157",
            "spanId": "87c4e208625964b9",
            "parentSpanId": "5cabd643bfdfdbb5",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691181898368",
            "endTimeUnixNano": "1796047691182118487",
            "durationMs": 0.220119,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.readThreads",
            "traceId": "c6cd59c396567c8265d45d34f32db157",
            "spanId": "5cabd643bfdfdbb5",
            "parentSpanId": "6718a44292e3d225",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691181263930",
            "endTimeUnixNano": "1796047691182126499",
            "durationMs": 0.862569,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "c6cd59c396567c8265d45d34f32db157",
            "spanId": "e95120da84e26c52",
            "parentSpanId": "6718a44292e3d225",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691182151776",
            "endTimeUnixNano": "1796047691182259297",
            "durationMs": 0.107521,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.02,
              "db.client.connection.wait_time_ms": 0.031257
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "c6cd59c396567c8265d45d34f32db157",
            "spanId": "9cfa2643a92a70d6",
            "parentSpanId": "c0b49bb67ee9367a",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691182341440",
            "endTimeUnixNano": "1796047691182512295",
            "durationMs": 0.170855,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT DISTINCT json_extract(payload_json, '$.worktreePath') AS \"worktreePath\"\n      FROM orchestration_v2_projection_threads\n      WHERE json_extract(payload_json, '$.worktreePath') IS NOT NUL\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.058,
              "db.client.connection.wait_time_ms": 0.065778
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "c6cd59c396567c8265d45d34f32db157",
            "spanId": "1621516e831b078d",
            "parentSpanId": "8e838eb45bc81a43",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691183744105",
            "endTimeUnixNano": "1796047691184919702",
            "durationMs": 1.175597,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "c6cd59c396567c8265d45d34f32db157",
            "spanId": "8e838eb45bc81a43",
            "parentSpanId": "b3531cfae3e00c84",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691183585618",
            "endTimeUnixNano": "1796047691185703593",
            "durationMs": 2.117975,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "c6cd59c396567c8265d45d34f32db157",
            "spanId": "b3531cfae3e00c84",
            "parentSpanId": "ddd269a5163e33c7",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691183546650",
            "endTimeUnixNano": "1796047691185896681",
            "durationMs": 2.350031,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/plain-notes",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "c6cd59c396567c8265d45d34f32db157",
            "spanId": "7f1ff9168dad9c60",
            "parentSpanId": "b0d9558ac3330cd2",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691186103260",
            "endTimeUnixNano": "1796047691187333277",
            "durationMs": 1.230017,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "c6cd59c396567c8265d45d34f32db157",
            "spanId": "b0d9558ac3330cd2",
            "parentSpanId": "1791049484dfbc20",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691185961548",
            "endTimeUnixNano": "1796047691188185741",
            "durationMs": 2.224193,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "c6cd59c396567c8265d45d34f32db157",
            "spanId": "1791049484dfbc20",
            "parentSpanId": "ddd269a5163e33c7",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691185922510",
            "endTimeUnixNano": "1796047691188374933",
            "durationMs": 2.452423,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/plain-notes",
              "git.args_count": 3
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "c6cd59c396567c8265d45d34f32db157",
            "spanId": "ddd269a5163e33c7",
            "parentSpanId": "c0b49bb67ee9367a",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691183524888",
            "endTimeUnixNano": "1796047691188442965",
            "durationMs": 4.918077,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Failure",
              "cause": "GitCommandError: Git command failed in GitVcsDriver.listWorktreePaths ($FIXTURE/fx/plain-notes): Git command exited with a non-zero status. (not_a_repository)\n    at file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:1635:11\n    at executeWorktreeList (file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:7803:5)\n    at executeWorktreeList (definition) (file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:1681:38)\n    at StorageCleanup.reportOrphanWorktrees (file://$CHECKOUT/apps/server/src/storageCleanup.ts:1967:12)\n    at StorageCleanup.reportOrphanWorktrees (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:556:40)\n    at StorageCleanup.cleanWorktrees (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2193:37)\n    at StorageCleanup.cleanWorktrees (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:1208:33)\n    at StorageCleanup.sweep (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2293:24)\n    at StorageCleanup.sweep (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2162:24)\n    at DrainableWorker.makeDrainableWorker (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2290:25)\n    at DrainableWorker.makeDrainableWorker (definition) (file://$CHECKOUT/packages/shared/src/DrainableWorker.ts:20:43)"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "c6cd59c396567c8265d45d34f32db157",
            "spanId": "030f9a5cd13092f5",
            "parentSpanId": "e0008b17ad1bb42e",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691188777995",
            "endTimeUnixNano": "1796047691190523283",
            "durationMs": 1.745288,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "c6cd59c396567c8265d45d34f32db157",
            "spanId": "e0008b17ad1bb42e",
            "parentSpanId": "88790e9edbd2d272",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691188632598",
            "endTimeUnixNano": "1796047691191795744",
            "durationMs": 3.163146,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "c6cd59c396567c8265d45d34f32db157",
            "spanId": "88790e9edbd2d272",
            "parentSpanId": "39ebbc76720f3994",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691188593900",
            "endTimeUnixNano": "1796047691191987260",
            "durationMs": 3.39336,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo/packages/app",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "c6cd59c396567c8265d45d34f32db157",
            "spanId": "39ebbc76720f3994",
            "parentSpanId": "c0b49bb67ee9367a",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691188575052",
            "endTimeUnixNano": "1796047691192003514",
            "durationMs": 3.428462,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "c6cd59c396567c8265d45d34f32db157",
            "spanId": "c3c03fc84090fdb6",
            "parentSpanId": "776addf01e5f7b10",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691192335741",
            "endTimeUnixNano": "1796047691193745036",
            "durationMs": 1.409295,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "c6cd59c396567c8265d45d34f32db157",
            "spanId": "776addf01e5f7b10",
            "parentSpanId": "f1678d2f60fe68a3",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691192105526",
            "endTimeUnixNano": "1796047691194759562",
            "durationMs": 2.654036,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "c6cd59c396567c8265d45d34f32db157",
            "spanId": "f1678d2f60fe68a3",
            "parentSpanId": "de123a20625e34ef",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691192063904",
            "endTimeUnixNano": "1796047691194934623",
            "durationMs": 2.870719,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo-link",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "c6cd59c396567c8265d45d34f32db157",
            "spanId": "de123a20625e34ef",
            "parentSpanId": "c0b49bb67ee9367a",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691192044265",
            "endTimeUnixNano": "1796047691194949185",
            "durationMs": 2.90492,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "c6cd59c396567c8265d45d34f32db157",
            "spanId": "93079b4d807f6026",
            "parentSpanId": "152675f7fcfba351",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691195162614",
            "endTimeUnixNano": "1796047691196732449",
            "durationMs": 1.569835,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "c6cd59c396567c8265d45d34f32db157",
            "spanId": "152675f7fcfba351",
            "parentSpanId": "8043e5c69178ee4f",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691195020862",
            "endTimeUnixNano": "1796047691197654787",
            "durationMs": 2.633925,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "c6cd59c396567c8265d45d34f32db157",
            "spanId": "8043e5c69178ee4f",
            "parentSpanId": "232021abc7be7d41",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691194986801",
            "endTimeUnixNano": "1796047691197876198",
            "durationMs": 2.889397,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "c6cd59c396567c8265d45d34f32db157",
            "spanId": "232021abc7be7d41",
            "parentSpanId": "c0b49bb67ee9367a",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691194969505",
            "endTimeUnixNano": "1796047691197892081",
            "durationMs": 2.922576,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "c6cd59c396567c8265d45d34f32db157",
            "spanId": "bd9b0e5ffaa5eb8a",
            "parentSpanId": "c0b49bb67ee9367a",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691198257898",
            "endTimeUnixNano": "1796047691198345279",
            "durationMs": 0.087381,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "c6cd59c396567c8265d45d34f32db157",
            "spanId": "18933c57dbf6b462",
            "parentSpanId": "c0b49bb67ee9367a",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691198513420",
            "endTimeUnixNano": "1796047691198544496",
            "durationMs": 0.031076,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "c6cd59c396567c8265d45d34f32db157",
            "spanId": "42e1e2a0922a9aa6",
            "parentSpanId": "c0b49bb67ee9367a",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691198679848",
            "endTimeUnixNano": "1796047691198709452",
            "durationMs": 0.029604,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "c6cd59c396567c8265d45d34f32db157",
            "spanId": "477cda103f88270c",
            "parentSpanId": "c0b49bb67ee9367a",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691198811044",
            "endTimeUnixNano": "1796047691198835621",
            "durationMs": 0.024577,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "storageCleanup.measureWorktree",
            "traceId": "c6cd59c396567c8265d45d34f32db157",
            "spanId": "4791765f8e1c02d4",
            "parentSpanId": "c0b49bb67ee9367a",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691198869642",
            "endTimeUnixNano": "1796047691199468557",
            "durationMs": 0.598915,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.reportOrphanWorktrees",
            "traceId": "c6cd59c396567c8265d45d34f32db157",
            "spanId": "c0b49bb67ee9367a",
            "parentSpanId": "6718a44292e3d225",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691182331615",
            "endTimeUnixNano": "1796047691199500094",
            "durationMs": 17.168479,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanWorktrees",
            "traceId": "c6cd59c396567c8265d45d34f32db157",
            "spanId": "6718a44292e3d225",
            "parentSpanId": "884e536e6d8efe66",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691180581160",
            "endTimeUnixNano": "1796047691199509378",
            "durationMs": 18.928218,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.sweep",
            "traceId": "c6cd59c396567c8265d45d34f32db157",
            "spanId": "884e536e6d8efe66",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691180058640",
            "endTimeUnixNano": "1796047691199549447",
            "durationMs": 19.490807,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          }
        ]
      },
      {
        "run": 41,
        "warmup": false,
        "elapsedMs": 18.824432,
        "nestedOrphanFound": true,
        "report": {
          "_tag": "Success",
          "value": {
            "trigger": "manual",
            "startedAt": "2026-11-30T14:08:11.200Z",
            "finishedAt": "2026-11-30T14:08:11.218Z",
            "entries": [
              {
                "kind": "worktree",
                "outcome": "kept",
                "reason": "No thread uses this worktree",
                "path": "$FIXTURE/data/worktrees/repository/replay/repo-wt",
                "projectPath": null,
                "threadId": null,
                "threadTitle": null,
                "bytes": 8192,
                "files": null
              }
            ],
            "counts": {
              "removed": 0,
              "kept": 1,
              "failed": 0
            },
            "omittedCount": 0,
            "bytesFreed": 0
          }
        },
        "spans": [
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "268bfaa92f6cc8f3186b6e211bce977b",
            "spanId": "3803e2d4598743f2",
            "parentSpanId": "f78e27a7e5720c0a",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691200733406",
            "endTimeUnixNano": "1796047691200892554",
            "durationMs": 0.159148,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      WITH RECURSIVE retained_checkpoint_threads(thread_id) AS (\n        SELECT thread_id FROM orchestration_v2_projection_threads WHERE deleted_at IS NULL\n        UNION\n        SELECT json_extract(t\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.034,
              "db.client.connection.wait_time_ms": 0.048002
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanCheckpointRefs",
            "traceId": "268bfaa92f6cc8f3186b6e211bce977b",
            "spanId": "f78e27a7e5720c0a",
            "parentSpanId": "11d780cbecad476c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691200721589",
            "endTimeUnixNano": "1796047691200928197",
            "durationMs": 0.206608,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.retryLeftovers",
            "traceId": "268bfaa92f6cc8f3186b6e211bce977b",
            "spanId": "76875192d069a843",
            "parentSpanId": "11d780cbecad476c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691200944171",
            "endTimeUnixNano": "1796047691201024671",
            "durationMs": 0.0805,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveGitWorktreePath",
            "traceId": "268bfaa92f6cc8f3186b6e211bce977b",
            "spanId": "952358899093ac94",
            "parentSpanId": "73265008cec4f0a5",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691201059874",
            "endTimeUnixNano": "1796047691201251610",
            "durationMs": 0.191736,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveWorktreeT3Home",
            "traceId": "268bfaa92f6cc8f3186b6e211bce977b",
            "spanId": "73265008cec4f0a5",
            "parentSpanId": "e06962f557adaef2",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691201052613",
            "endTimeUnixNano": "1796047691201259732",
            "durationMs": 0.207119,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "268bfaa92f6cc8f3186b6e211bce977b",
            "spanId": "508cab9772aefbda",
            "parentSpanId": "e06962f557adaef2",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691201528444",
            "endTimeUnixNano": "1796047691201626761",
            "durationMs": 0.098317,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n          SELECT t.payload_json, p.workspace_root AS \"workspaceRoot\"\n          FROM orchestration_v2_projection_threads t\n          JOIN projection_projects p ON p.project_id = t.project_id\n         \u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.028,
              "db.client.connection.wait_time_ms": 0.044396
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "BEGIN",
            "traceId": "268bfaa92f6cc8f3186b6e211bce977b",
            "spanId": "5bcd770226560d18",
            "parentSpanId": "ffaf4345e1823c34",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691201739699",
            "endTimeUnixNano": "1796047691201789043",
            "durationMs": 0.049344,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "BEGIN"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "268bfaa92f6cc8f3186b6e211bce977b",
            "spanId": "03ea458a987e73ad",
            "parentSpanId": "c391e5f6846a3355",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691201879188",
            "endTimeUnixNano": "1796047691201980369",
            "durationMs": 0.101181,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n            SELECT\n              t.thread_id,\n              t.payload_json,\n              t.fork_run_ids_json,\n              CASE\n                WHEN json_extract(t.payload_json, '$.forkedFrom.type'\u2026[truncated]",
              "db.client.connection.wait_time_ms": 0.012228
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "268bfaa92f6cc8f3186b6e211bce977b",
            "spanId": "6d465fb04ea3bef3",
            "parentSpanId": "c391e5f6846a3355",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691202017114",
            "endTimeUnixNano": "1796047691202066888",
            "durationMs": 0.049774,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n        SELECT MAX(sequence) AS snapshot_sequence\n        FROM orchestration_events\n        WHERE application_event_version = 2\n          AND aggregate_kind = 'thread'\n      ",
              "db.client.connection.wait_time_ms": 0.005779
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readShellSnapshotRows",
            "traceId": "268bfaa92f6cc8f3186b6e211bce977b",
            "spanId": "c391e5f6846a3355",
            "parentSpanId": "ffaf4345e1823c34",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691201811647",
            "endTimeUnixNano": "1796047691202079197",
            "durationMs": 0.26755,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "COMMIT",
            "traceId": "268bfaa92f6cc8f3186b6e211bce977b",
            "spanId": "aba8f198ee50669e",
            "parentSpanId": "ffaf4345e1823c34",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691202090083",
            "endTimeUnixNano": "1796047691202114930",
            "durationMs": 0.024847,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "COMMIT"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sql.transaction",
            "traceId": "268bfaa92f6cc8f3186b6e211bce977b",
            "spanId": "ffaf4345e1823c34",
            "parentSpanId": "59c04a65042b1cbd",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691201692869",
            "endTimeUnixNano": "1796047691202137594",
            "durationMs": 0.444725,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.client.connection.wait_time_ms": 0.040131,
              "db.connection": "reader",
              "db.lock_wait_ms": 0.023
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.pendingBackgroundDataByThreadId",
            "traceId": "268bfaa92f6cc8f3186b6e211bce977b",
            "spanId": "2fa9ec82da8befe7",
            "parentSpanId": "5449f7a344d895c2",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691202176182",
            "endTimeUnixNano": "1796047691202182090",
            "durationMs": 0.005908,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.decodeShellSnapshot",
            "traceId": "268bfaa92f6cc8f3186b6e211bce977b",
            "spanId": "5449f7a344d895c2",
            "parentSpanId": "59c04a65042b1cbd",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691202163653",
            "endTimeUnixNano": "1796047691202190343",
            "durationMs": 0.02669,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "268bfaa92f6cc8f3186b6e211bce977b",
            "spanId": "24974fba3014539f",
            "parentSpanId": "2a6309022411a5a8",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691202224854",
            "endTimeUnixNano": "1796047691202349280",
            "durationMs": 0.124426,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.025,
              "db.client.connection.wait_time_ms": 0.03332
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectStoreV2.listShells",
            "traceId": "268bfaa92f6cc8f3186b6e211bce977b",
            "spanId": "2a6309022411a5a8",
            "parentSpanId": "59c04a65042b1cbd",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691202198585",
            "endTimeUnixNano": "1796047691202415229",
            "durationMs": 0.216644,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.readThreads",
            "traceId": "268bfaa92f6cc8f3186b6e211bce977b",
            "spanId": "59c04a65042b1cbd",
            "parentSpanId": "e06962f557adaef2",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691201664317",
            "endTimeUnixNano": "1796047691202423451",
            "durationMs": 0.759134,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "268bfaa92f6cc8f3186b6e211bce977b",
            "spanId": "d6d82769d8c6e763",
            "parentSpanId": "e06962f557adaef2",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691202464212",
            "endTimeUnixNano": "1796047691202565052",
            "durationMs": 0.10084,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.022,
              "db.client.connection.wait_time_ms": 0.035002
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "268bfaa92f6cc8f3186b6e211bce977b",
            "spanId": "4a9086961205a2fb",
            "parentSpanId": "bfe4a084ade4d772",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691202620505",
            "endTimeUnixNano": "1796047691202695267",
            "durationMs": 0.074762,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT DISTINCT json_extract(payload_json, '$.worktreePath') AS \"worktreePath\"\n      FROM orchestration_v2_projection_threads\n      WHERE json_extract(payload_json, '$.worktreePath') IS NOT NUL\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.032,
              "db.client.connection.wait_time_ms": 0.039569
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "268bfaa92f6cc8f3186b6e211bce977b",
            "spanId": "ee9a8d03bb026e92",
            "parentSpanId": "9238b012fe928eb7",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691204004743",
            "endTimeUnixNano": "1796047691205541209",
            "durationMs": 1.536466,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "268bfaa92f6cc8f3186b6e211bce977b",
            "spanId": "9238b012fe928eb7",
            "parentSpanId": "920bfc87f76af08a",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691203856692",
            "endTimeUnixNano": "1796047691206412330",
            "durationMs": 2.555638,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "268bfaa92f6cc8f3186b6e211bce977b",
            "spanId": "920bfc87f76af08a",
            "parentSpanId": "debdd811347f2aaf",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691203812216",
            "endTimeUnixNano": "1796047691206595043",
            "durationMs": 2.782827,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/plain-notes",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "268bfaa92f6cc8f3186b6e211bce977b",
            "spanId": "40eb35b88dabf848",
            "parentSpanId": "335eec558fcfa143",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691206811106",
            "endTimeUnixNano": "1796047691208357917",
            "durationMs": 1.546811,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "268bfaa92f6cc8f3186b6e211bce977b",
            "spanId": "335eec558fcfa143",
            "parentSpanId": "b752a3c605d1de0f",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691206657957",
            "endTimeUnixNano": "1796047691209141717",
            "durationMs": 2.48376,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "268bfaa92f6cc8f3186b6e211bce977b",
            "spanId": "b752a3c605d1de0f",
            "parentSpanId": "debdd811347f2aaf",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691206619920",
            "endTimeUnixNano": "1796047691209308927",
            "durationMs": 2.689007,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/plain-notes",
              "git.args_count": 3
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "268bfaa92f6cc8f3186b6e211bce977b",
            "spanId": "debdd811347f2aaf",
            "parentSpanId": "bfe4a084ade4d772",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691203788871",
            "endTimeUnixNano": "1796047691209364601",
            "durationMs": 5.57573,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Failure",
              "cause": "GitCommandError: Git command failed in GitVcsDriver.listWorktreePaths ($FIXTURE/fx/plain-notes): Git command exited with a non-zero status. (not_a_repository)\n    at file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:1635:11\n    at executeWorktreeList (file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:7803:5)\n    at executeWorktreeList (definition) (file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:1681:38)\n    at StorageCleanup.reportOrphanWorktrees (file://$CHECKOUT/apps/server/src/storageCleanup.ts:1967:12)\n    at StorageCleanup.reportOrphanWorktrees (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:556:40)\n    at StorageCleanup.cleanWorktrees (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2193:37)\n    at StorageCleanup.cleanWorktrees (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:1208:33)\n    at StorageCleanup.sweep (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2293:24)\n    at StorageCleanup.sweep (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2162:24)\n    at DrainableWorker.makeDrainableWorker (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2290:25)\n    at DrainableWorker.makeDrainableWorker (definition) (file://$CHECKOUT/packages/shared/src/DrainableWorker.ts:20:43)"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "268bfaa92f6cc8f3186b6e211bce977b",
            "spanId": "26beba1d26c03ad5",
            "parentSpanId": "2aea759962d20a05",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691209690928",
            "endTimeUnixNano": "1796047691211041526",
            "durationMs": 1.350598,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "268bfaa92f6cc8f3186b6e211bce977b",
            "spanId": "2aea759962d20a05",
            "parentSpanId": "609a18a2dac696e2",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691209549296",
            "endTimeUnixNano": "1796047691211982021",
            "durationMs": 2.432725,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "268bfaa92f6cc8f3186b6e211bce977b",
            "spanId": "609a18a2dac696e2",
            "parentSpanId": "bb0486dbced26eb9",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691209510408",
            "endTimeUnixNano": "1796047691212133166",
            "durationMs": 2.622758,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo/packages/app",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "268bfaa92f6cc8f3186b6e211bce977b",
            "spanId": "bb0486dbced26eb9",
            "parentSpanId": "bfe4a084ade4d772",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691209493643",
            "endTimeUnixNano": "1796047691212146326",
            "durationMs": 2.652683,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "268bfaa92f6cc8f3186b6e211bce977b",
            "spanId": "c929bd45fe2c0fea",
            "parentSpanId": "63766417c57ff490",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691212368418",
            "endTimeUnixNano": "1796047691213538816",
            "durationMs": 1.170398,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "268bfaa92f6cc8f3186b6e211bce977b",
            "spanId": "63766417c57ff490",
            "parentSpanId": "ff08d6c256a30655",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691212214218",
            "endTimeUnixNano": "1796047691214374134",
            "durationMs": 2.159916,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "268bfaa92f6cc8f3186b6e211bce977b",
            "spanId": "ff08d6c256a30655",
            "parentSpanId": "1ff4a0407fa164f3",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691212182019",
            "endTimeUnixNano": "1796047691214533743",
            "durationMs": 2.351724,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo-link",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "268bfaa92f6cc8f3186b6e211bce977b",
            "spanId": "1ff4a0407fa164f3",
            "parentSpanId": "bfe4a084ade4d772",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691212166406",
            "endTimeUnixNano": "1796047691214547263",
            "durationMs": 2.380857,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "268bfaa92f6cc8f3186b6e211bce977b",
            "spanId": "95c77c5db4e6dce5",
            "parentSpanId": "edb3b66455d150c4",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691214760391",
            "endTimeUnixNano": "1796047691215892352",
            "durationMs": 1.131961,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "268bfaa92f6cc8f3186b6e211bce977b",
            "spanId": "edb3b66455d150c4",
            "parentSpanId": "9937e5bc39cee0f5",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691214618409",
            "endTimeUnixNano": "1796047691216726138",
            "durationMs": 2.107729,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "268bfaa92f6cc8f3186b6e211bce977b",
            "spanId": "9937e5bc39cee0f5",
            "parentSpanId": "1781ec02d227d072",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691214584679",
            "endTimeUnixNano": "1796047691216873638",
            "durationMs": 2.288959,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "268bfaa92f6cc8f3186b6e211bce977b",
            "spanId": "1781ec02d227d072",
            "parentSpanId": "bfe4a084ade4d772",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691214568264",
            "endTimeUnixNano": "1796047691216886588",
            "durationMs": 2.318324,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "268bfaa92f6cc8f3186b6e211bce977b",
            "spanId": "f9a37335123f0c5a",
            "parentSpanId": "bfe4a084ade4d772",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691217232745",
            "endTimeUnixNano": "1796047691217291973",
            "durationMs": 0.059228,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "268bfaa92f6cc8f3186b6e211bce977b",
            "spanId": "b28b7a3bf4a16631",
            "parentSpanId": "bfe4a084ade4d772",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691217470370",
            "endTimeUnixNano": "1796047691217498121",
            "durationMs": 0.027751,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "268bfaa92f6cc8f3186b6e211bce977b",
            "spanId": "2b1f9c11679ab869",
            "parentSpanId": "bfe4a084ade4d772",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691217659703",
            "endTimeUnixNano": "1796047691217687394",
            "durationMs": 0.027691,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "268bfaa92f6cc8f3186b6e211bce977b",
            "spanId": "bbc570ff2d199a4f",
            "parentSpanId": "bfe4a084ade4d772",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691217791540",
            "endTimeUnixNano": "1796047691217822846",
            "durationMs": 0.031306,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "storageCleanup.measureWorktree",
            "traceId": "268bfaa92f6cc8f3186b6e211bce977b",
            "spanId": "019b5f1f1998677a",
            "parentSpanId": "bfe4a084ade4d772",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691217851179",
            "endTimeUnixNano": "1796047691218527810",
            "durationMs": 0.676631,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.reportOrphanWorktrees",
            "traceId": "268bfaa92f6cc8f3186b6e211bce977b",
            "spanId": "bfe4a084ade4d772",
            "parentSpanId": "e06962f557adaef2",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691202610981",
            "endTimeUnixNano": "1796047691218560528",
            "durationMs": 15.949547,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanWorktrees",
            "traceId": "268bfaa92f6cc8f3186b6e211bce977b",
            "spanId": "e06962f557adaef2",
            "parentSpanId": "11d780cbecad476c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691201037701",
            "endTimeUnixNano": "1796047691218568731",
            "durationMs": 17.53103,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.sweep",
            "traceId": "268bfaa92f6cc8f3186b6e211bce977b",
            "spanId": "11d780cbecad476c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691200698664",
            "endTimeUnixNano": "1796047691218604674",
            "durationMs": 17.90601,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          }
        ]
      },
      {
        "run": 42,
        "warmup": false,
        "elapsedMs": 20.209570999999983,
        "nestedOrphanFound": true,
        "report": {
          "_tag": "Success",
          "value": {
            "trigger": "manual",
            "startedAt": "2026-11-30T14:08:11.219Z",
            "finishedAt": "2026-11-30T14:08:11.239Z",
            "entries": [
              {
                "kind": "worktree",
                "outcome": "kept",
                "reason": "No thread uses this worktree",
                "path": "$FIXTURE/data/worktrees/repository/replay/repo-wt",
                "projectPath": null,
                "threadId": null,
                "threadTitle": null,
                "bytes": 8192,
                "files": null
              }
            ],
            "counts": {
              "removed": 0,
              "kept": 1,
              "failed": 0
            },
            "omittedCount": 0,
            "bytesFreed": 0
          }
        },
        "spans": [
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "ae4142db17bf4504c9ad44be2590f2e9",
            "spanId": "e639400a946042c0",
            "parentSpanId": "47af61e832467a21",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691219509907",
            "endTimeUnixNano": "1796047691219667742",
            "durationMs": 0.157835,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      WITH RECURSIVE retained_checkpoint_threads(thread_id) AS (\n        SELECT thread_id FROM orchestration_v2_projection_threads WHERE deleted_at IS NULL\n        UNION\n        SELECT json_extract(t\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.032,
              "db.client.connection.wait_time_ms": 0.045488
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanCheckpointRefs",
            "traceId": "ae4142db17bf4504c9ad44be2590f2e9",
            "spanId": "47af61e832467a21",
            "parentSpanId": "ddc4b0681865f2b3",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691219499461",
            "endTimeUnixNano": "1796047691219700992",
            "durationMs": 0.201531,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.retryLeftovers",
            "traceId": "ae4142db17bf4504c9ad44be2590f2e9",
            "spanId": "d8f137a9204de427",
            "parentSpanId": "ddc4b0681865f2b3",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691219716465",
            "endTimeUnixNano": "1796047691219806750",
            "durationMs": 0.090285,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveGitWorktreePath",
            "traceId": "ae4142db17bf4504c9ad44be2590f2e9",
            "spanId": "fdfec11215fc9df0",
            "parentSpanId": "1950e752dfb2bcbd",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691219840491",
            "endTimeUnixNano": "1796047691220034240",
            "durationMs": 0.193749,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveWorktreeT3Home",
            "traceId": "ae4142db17bf4504c9ad44be2590f2e9",
            "spanId": "1950e752dfb2bcbd",
            "parentSpanId": "491c3ffba8755c18",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691219834251",
            "endTimeUnixNano": "1796047691220054931",
            "durationMs": 0.22068,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "ae4142db17bf4504c9ad44be2590f2e9",
            "spanId": "ab95f72800b04ad9",
            "parentSpanId": "491c3ffba8755c18",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691220336121",
            "endTimeUnixNano": "1796047691220443882",
            "durationMs": 0.107761,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n          SELECT t.payload_json, p.workspace_root AS \"workspaceRoot\"\n          FROM orchestration_v2_projection_threads t\n          JOIN projection_projects p ON p.project_id = t.project_id\n         \u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.029,
              "db.client.connection.wait_time_ms": 0.044757
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "BEGIN",
            "traceId": "ae4142db17bf4504c9ad44be2590f2e9",
            "spanId": "37fe4339abd6d281",
            "parentSpanId": "f03d2250cb56d6d5",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691220573876",
            "endTimeUnixNano": "1796047691220617952",
            "durationMs": 0.044076,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "BEGIN"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "ae4142db17bf4504c9ad44be2590f2e9",
            "spanId": "4e36a474feda268f",
            "parentSpanId": "f2b830d116c2ec20",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691220706634",
            "endTimeUnixNano": "1796047691220787716",
            "durationMs": 0.081082,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n            SELECT\n              t.thread_id,\n              t.payload_json,\n              t.fork_run_ids_json,\n              CASE\n                WHEN json_extract(t.payload_json, '$.forkedFrom.type'\u2026[truncated]",
              "db.client.connection.wait_time_ms": 0.013531
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "ae4142db17bf4504c9ad44be2590f2e9",
            "spanId": "c33dffdd1256c353",
            "parentSpanId": "f2b830d116c2ec20",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691220812793",
            "endTimeUnixNano": "1796047691220855627",
            "durationMs": 0.042834,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n        SELECT MAX(sequence) AS snapshot_sequence\n        FROM orchestration_events\n        WHERE application_event_version = 2\n          AND aggregate_kind = 'thread'\n      ",
              "db.client.connection.wait_time_ms": 0.006029
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readShellSnapshotRows",
            "traceId": "ae4142db17bf4504c9ad44be2590f2e9",
            "spanId": "f2b830d116c2ec20",
            "parentSpanId": "f03d2250cb56d6d5",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691220639524",
            "endTimeUnixNano": "1796047691220867926",
            "durationMs": 0.228402,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "COMMIT",
            "traceId": "ae4142db17bf4504c9ad44be2590f2e9",
            "spanId": "a8cb9cc3c0e06acf",
            "parentSpanId": "f03d2250cb56d6d5",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691220876929",
            "endTimeUnixNano": "1796047691220898661",
            "durationMs": 0.021732,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "COMMIT"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sql.transaction",
            "traceId": "ae4142db17bf4504c9ad44be2590f2e9",
            "spanId": "f03d2250cb56d6d5",
            "parentSpanId": "d160af189996ecb6",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691220526235",
            "endTimeUnixNano": "1796047691220918912",
            "durationMs": 0.392677,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.client.connection.wait_time_ms": 0.041001,
              "db.connection": "reader",
              "db.lock_wait_ms": 0.025
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.pendingBackgroundDataByThreadId",
            "traceId": "ae4142db17bf4504c9ad44be2590f2e9",
            "spanId": "5a7c3318148bb7ee",
            "parentSpanId": "385ed4c35ed90dd6",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691220954214",
            "endTimeUnixNano": "1796047691220959122",
            "durationMs": 0.004908,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.decodeShellSnapshot",
            "traceId": "ae4142db17bf4504c9ad44be2590f2e9",
            "spanId": "385ed4c35ed90dd6",
            "parentSpanId": "d160af189996ecb6",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691220942407",
            "endTimeUnixNano": "1796047691220967234",
            "durationMs": 0.024827,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "ae4142db17bf4504c9ad44be2590f2e9",
            "spanId": "72af14c8630002c2",
            "parentSpanId": "e5f11578b4501dca",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691221000333",
            "endTimeUnixNano": "1796047691221103818",
            "durationMs": 0.103485,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.024,
              "db.client.connection.wait_time_ms": 0.031457
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectStoreV2.listShells",
            "traceId": "ae4142db17bf4504c9ad44be2590f2e9",
            "spanId": "e5f11578b4501dca",
            "parentSpanId": "d160af189996ecb6",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691220975566",
            "endTimeUnixNano": "1796047691221163247",
            "durationMs": 0.187681,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.readThreads",
            "traceId": "ae4142db17bf4504c9ad44be2590f2e9",
            "spanId": "d160af189996ecb6",
            "parentSpanId": "491c3ffba8755c18",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691220496400",
            "endTimeUnixNano": "1796047691221171780",
            "durationMs": 0.67538,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "ae4142db17bf4504c9ad44be2590f2e9",
            "spanId": "7356df053b538476",
            "parentSpanId": "491c3ffba8755c18",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691221195845",
            "endTimeUnixNano": "1796047691221288864",
            "durationMs": 0.093019,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.02,
              "db.client.connection.wait_time_ms": 0.029725
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "ae4142db17bf4504c9ad44be2590f2e9",
            "spanId": "f406678a6ff3bca7",
            "parentSpanId": "ee6871c4384f290d",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691221341924",
            "endTimeUnixNano": "1796047691221416084",
            "durationMs": 0.07416,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT DISTINCT json_extract(payload_json, '$.worktreePath') AS \"worktreePath\"\n      FROM orchestration_v2_projection_threads\n      WHERE json_extract(payload_json, '$.worktreePath') IS NOT NUL\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.035,
              "db.client.connection.wait_time_ms": 0.042093
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "ae4142db17bf4504c9ad44be2590f2e9",
            "spanId": "13163701853ee87f",
            "parentSpanId": "3a154506ce5b95e8",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691222765250",
            "endTimeUnixNano": "1796047691224145141",
            "durationMs": 1.379891,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "ae4142db17bf4504c9ad44be2590f2e9",
            "spanId": "3a154506ce5b95e8",
            "parentSpanId": "4249fd57ffeeaf87",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691222613283",
            "endTimeUnixNano": "1796047691225848566",
            "durationMs": 3.235283,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "ae4142db17bf4504c9ad44be2590f2e9",
            "spanId": "4249fd57ffeeaf87",
            "parentSpanId": "182facc7fe5ea6b2",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691222568336",
            "endTimeUnixNano": "1796047691226108845",
            "durationMs": 3.540509,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/plain-notes",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "ae4142db17bf4504c9ad44be2590f2e9",
            "spanId": "c6417ae9f840485d",
            "parentSpanId": "c0a22e4bf3bea486",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691226363696",
            "endTimeUnixNano": "1796047691227894653",
            "durationMs": 1.530957,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "ae4142db17bf4504c9ad44be2590f2e9",
            "spanId": "c0a22e4bf3bea486",
            "parentSpanId": "11b5f2bf0850bac7",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691226197437",
            "endTimeUnixNano": "1796047691228718163",
            "durationMs": 2.520726,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "ae4142db17bf4504c9ad44be2590f2e9",
            "spanId": "11b5f2bf0850bac7",
            "parentSpanId": "182facc7fe5ea6b2",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691226135675",
            "endTimeUnixNano": "1796047691228892844",
            "durationMs": 2.757169,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/plain-notes",
              "git.args_count": 3
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "ae4142db17bf4504c9ad44be2590f2e9",
            "spanId": "182facc7fe5ea6b2",
            "parentSpanId": "ee6871c4384f290d",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691222546283",
            "endTimeUnixNano": "1796047691228953425",
            "durationMs": 6.407142,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Failure",
              "cause": "GitCommandError: Git command failed in GitVcsDriver.listWorktreePaths ($FIXTURE/fx/plain-notes): Git command exited with a non-zero status. (not_a_repository)\n    at file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:1635:11\n    at executeWorktreeList (file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:7803:5)\n    at executeWorktreeList (definition) (file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:1681:38)\n    at StorageCleanup.reportOrphanWorktrees (file://$CHECKOUT/apps/server/src/storageCleanup.ts:1967:12)\n    at StorageCleanup.reportOrphanWorktrees (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:556:40)\n    at StorageCleanup.cleanWorktrees (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2193:37)\n    at StorageCleanup.cleanWorktrees (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:1208:33)\n    at StorageCleanup.sweep (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2293:24)\n    at StorageCleanup.sweep (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2162:24)\n    at DrainableWorker.makeDrainableWorker (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2290:25)\n    at DrainableWorker.makeDrainableWorker (definition) (file://$CHECKOUT/packages/shared/src/DrainableWorker.ts:20:43)"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "ae4142db17bf4504c9ad44be2590f2e9",
            "spanId": "934e74d8af23d9d5",
            "parentSpanId": "ad46b349ceeeee5c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691229309917",
            "endTimeUnixNano": "1796047691230588277",
            "durationMs": 1.27836,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "ae4142db17bf4504c9ad44be2590f2e9",
            "spanId": "ad46b349ceeeee5c",
            "parentSpanId": "93795b770ca59b59",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691229146213",
            "endTimeUnixNano": "1796047691231563824",
            "durationMs": 2.417611,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "ae4142db17bf4504c9ad44be2590f2e9",
            "spanId": "93795b770ca59b59",
            "parentSpanId": "dcbd1aabb3f908de",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691229107124",
            "endTimeUnixNano": "1796047691231742151",
            "durationMs": 2.635027,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo/packages/app",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "ae4142db17bf4504c9ad44be2590f2e9",
            "spanId": "dcbd1aabb3f908de",
            "parentSpanId": "ee6871c4384f290d",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691229090279",
            "endTimeUnixNano": "1796047691231759016",
            "durationMs": 2.668737,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "ae4142db17bf4504c9ad44be2590f2e9",
            "spanId": "5cea35c26fb92b7b",
            "parentSpanId": "9395fef90ddf4047",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691231984713",
            "endTimeUnixNano": "1796047691233360088",
            "durationMs": 1.375375,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "ae4142db17bf4504c9ad44be2590f2e9",
            "spanId": "9395fef90ddf4047",
            "parentSpanId": "91c94381aa545447",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691231838895",
            "endTimeUnixNano": "1796047691234261605",
            "durationMs": 2.42271,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "ae4142db17bf4504c9ad44be2590f2e9",
            "spanId": "91c94381aa545447",
            "parentSpanId": "f65dac47cb1ac4f7",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691231800999",
            "endTimeUnixNano": "1796047691234444568",
            "durationMs": 2.643569,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo-link",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "ae4142db17bf4504c9ad44be2590f2e9",
            "spanId": "f65dac47cb1ac4f7",
            "parentSpanId": "ee6871c4384f290d",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691231782271",
            "endTimeUnixNano": "1796047691234458008",
            "durationMs": 2.675737,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "ae4142db17bf4504c9ad44be2590f2e9",
            "spanId": "43046b5bda656c0e",
            "parentSpanId": "701d9a285f4f6f37",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691234663755",
            "endTimeUnixNano": "1796047691235980653",
            "durationMs": 1.316898,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "ae4142db17bf4504c9ad44be2590f2e9",
            "spanId": "701d9a285f4f6f37",
            "parentSpanId": "d883648814ff4d74",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691234529996",
            "endTimeUnixNano": "1796047691236973656",
            "durationMs": 2.44366,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "ae4142db17bf4504c9ad44be2590f2e9",
            "spanId": "d883648814ff4d74",
            "parentSpanId": "dd12eff6fa115cfa",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691234494623",
            "endTimeUnixNano": "1796047691237155798",
            "durationMs": 2.661175,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "ae4142db17bf4504c9ad44be2590f2e9",
            "spanId": "dd12eff6fa115cfa",
            "parentSpanId": "ee6871c4384f290d",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691234477928",
            "endTimeUnixNano": "1796047691237170610",
            "durationMs": 2.692682,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "ae4142db17bf4504c9ad44be2590f2e9",
            "spanId": "56a895801724f12c",
            "parentSpanId": "ee6871c4384f290d",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691237545641",
            "endTimeUnixNano": "1796047691237602045",
            "durationMs": 0.056404,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "ae4142db17bf4504c9ad44be2590f2e9",
            "spanId": "feee3983fc606dcd",
            "parentSpanId": "ee6871c4384f290d",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691237761704",
            "endTimeUnixNano": "1796047691237806400",
            "durationMs": 0.044696,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "ae4142db17bf4504c9ad44be2590f2e9",
            "spanId": "fd965c00b00582ac",
            "parentSpanId": "ee6871c4384f290d",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691237964897",
            "endTimeUnixNano": "1796047691237999018",
            "durationMs": 0.034121,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "ae4142db17bf4504c9ad44be2590f2e9",
            "spanId": "5b2567eeb4b1527d",
            "parentSpanId": "ee6871c4384f290d",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691238099819",
            "endTimeUnixNano": "1796047691238122853",
            "durationMs": 0.023034,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "storageCleanup.measureWorktree",
            "traceId": "ae4142db17bf4504c9ad44be2590f2e9",
            "spanId": "81333ccf1974eb5a",
            "parentSpanId": "ee6871c4384f290d",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691238155181",
            "endTimeUnixNano": "1796047691238766965",
            "durationMs": 0.611784,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.reportOrphanWorktrees",
            "traceId": "ae4142db17bf4504c9ad44be2590f2e9",
            "spanId": "ee6871c4384f290d",
            "parentSpanId": "491c3ffba8755c18",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691221333701",
            "endTimeUnixNano": "1796047691238799414",
            "durationMs": 17.465713,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanWorktrees",
            "traceId": "ae4142db17bf4504c9ad44be2590f2e9",
            "spanId": "491c3ffba8755c18",
            "parentSpanId": "ddc4b0681865f2b3",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691219820260",
            "endTimeUnixNano": "1796047691238810070",
            "durationMs": 18.98981,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.sweep",
            "traceId": "ae4142db17bf4504c9ad44be2590f2e9",
            "spanId": "ddc4b0681865f2b3",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691219476937",
            "endTimeUnixNano": "1796047691238848998",
            "durationMs": 19.372061,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          }
        ]
      },
      {
        "run": 43,
        "warmup": false,
        "elapsedMs": 18.95827200000008,
        "nestedOrphanFound": true,
        "report": {
          "_tag": "Success",
          "value": {
            "trigger": "manual",
            "startedAt": "2026-11-30T14:08:11.239Z",
            "finishedAt": "2026-11-30T14:08:11.257Z",
            "entries": [
              {
                "kind": "worktree",
                "outcome": "kept",
                "reason": "No thread uses this worktree",
                "path": "$FIXTURE/data/worktrees/repository/replay/repo-wt",
                "projectPath": null,
                "threadId": null,
                "threadTitle": null,
                "bytes": 8192,
                "files": null
              }
            ],
            "counts": {
              "removed": 0,
              "kept": 1,
              "failed": 0
            },
            "omittedCount": 0,
            "bytesFreed": 0
          }
        },
        "spans": [
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "7e2ea9188c452bcc15707ff11224450e",
            "spanId": "bcfa28e60049e03c",
            "parentSpanId": "d4250e8f1e635298",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691239694421",
            "endTimeUnixNano": "1796047691239859087",
            "durationMs": 0.164666,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      WITH RECURSIVE retained_checkpoint_threads(thread_id) AS (\n        SELECT thread_id FROM orchestration_v2_projection_threads WHERE deleted_at IS NULL\n        UNION\n        SELECT json_extract(t\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.035,
              "db.client.connection.wait_time_ms": 0.05377
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanCheckpointRefs",
            "traceId": "7e2ea9188c452bcc15707ff11224450e",
            "spanId": "d4250e8f1e635298",
            "parentSpanId": "fd59ff0107d48ab4",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691239681752",
            "endTimeUnixNano": "1796047691239896713",
            "durationMs": 0.214961,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.retryLeftovers",
            "traceId": "7e2ea9188c452bcc15707ff11224450e",
            "spanId": "196c72540e406419",
            "parentSpanId": "fd59ff0107d48ab4",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691239913929",
            "endTimeUnixNano": "1796047691239985386",
            "durationMs": 0.071457,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveGitWorktreePath",
            "traceId": "7e2ea9188c452bcc15707ff11224450e",
            "spanId": "f1f41e856f4d524d",
            "parentSpanId": "6388f3f497b5486e",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691240017514",
            "endTimeUnixNano": "1796047691240218754",
            "durationMs": 0.20124,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveWorktreeT3Home",
            "traceId": "7e2ea9188c452bcc15707ff11224450e",
            "spanId": "6388f3f497b5486e",
            "parentSpanId": "6576cbdebee2312d",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691240010403",
            "endTimeUnixNano": "1796047691240227367",
            "durationMs": 0.216964,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "7e2ea9188c452bcc15707ff11224450e",
            "spanId": "bc257485a5ef245e",
            "parentSpanId": "6576cbdebee2312d",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691240482358",
            "endTimeUnixNano": "1796047691240573935",
            "durationMs": 0.091577,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n          SELECT t.payload_json, p.workspace_root AS \"workspaceRoot\"\n          FROM orchestration_v2_projection_threads t\n          JOIN projection_projects p ON p.project_id = t.project_id\n         \u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.027,
              "db.client.connection.wait_time_ms": 0.044807
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "BEGIN",
            "traceId": "7e2ea9188c452bcc15707ff11224450e",
            "spanId": "fcb7a98bfbfd5e94",
            "parentSpanId": "8817b8b1aec2df6e",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691240683048",
            "endTimeUnixNano": "1796047691240725591",
            "durationMs": 0.042543,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "BEGIN"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "7e2ea9188c452bcc15707ff11224450e",
            "spanId": "7b9ce7c9125e4527",
            "parentSpanId": "a5a55ca3cdfebec8",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691240815415",
            "endTimeUnixNano": "1796047691240909426",
            "durationMs": 0.094011,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n            SELECT\n              t.thread_id,\n              t.payload_json,\n              t.fork_run_ids_json,\n              CASE\n                WHEN json_extract(t.payload_json, '$.forkedFrom.type'\u2026[truncated]",
              "db.client.connection.wait_time_ms": 0.014202
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "7e2ea9188c452bcc15707ff11224450e",
            "spanId": "079e0721ad2b606f",
            "parentSpanId": "a5a55ca3cdfebec8",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691240943627",
            "endTimeUnixNano": "1796047691241008804",
            "durationMs": 0.065177,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n        SELECT MAX(sequence) AS snapshot_sequence\n        FROM orchestration_events\n        WHERE application_event_version = 2\n          AND aggregate_kind = 'thread'\n      ",
              "db.client.connection.wait_time_ms": 0.027641
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readShellSnapshotRows",
            "traceId": "7e2ea9188c452bcc15707ff11224450e",
            "spanId": "a5a55ca3cdfebec8",
            "parentSpanId": "8817b8b1aec2df6e",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691240748375",
            "endTimeUnixNano": "1796047691241021864",
            "durationMs": 0.273489,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "COMMIT",
            "traceId": "7e2ea9188c452bcc15707ff11224450e",
            "spanId": "c214ddb3f0337541",
            "parentSpanId": "8817b8b1aec2df6e",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691241030096",
            "endTimeUnixNano": "1796047691241052710",
            "durationMs": 0.022614,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "COMMIT"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sql.transaction",
            "traceId": "7e2ea9188c452bcc15707ff11224450e",
            "spanId": "8817b8b1aec2df6e",
            "parentSpanId": "30f9405211ff3eee",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691240637409",
            "endTimeUnixNano": "1796047691241073902",
            "durationMs": 0.436493,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.client.connection.wait_time_ms": 0.038818,
              "db.connection": "reader",
              "db.lock_wait_ms": 0.022
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.pendingBackgroundDataByThreadId",
            "traceId": "7e2ea9188c452bcc15707ff11224450e",
            "spanId": "3a1d3bf4760f70b7",
            "parentSpanId": "dd0f4d61f08eba08",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691241110897",
            "endTimeUnixNano": "1796047691241116105",
            "durationMs": 0.005208,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.decodeShellSnapshot",
            "traceId": "7e2ea9188c452bcc15707ff11224450e",
            "spanId": "dd0f4d61f08eba08",
            "parentSpanId": "30f9405211ff3eee",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691241098649",
            "endTimeUnixNano": "1796047691241124517",
            "durationMs": 0.025868,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "7e2ea9188c452bcc15707ff11224450e",
            "spanId": "f569be80aeeb255d",
            "parentSpanId": "1506f86e74a469af",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691241157607",
            "endTimeUnixNano": "1796047691241260651",
            "durationMs": 0.103044,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.025,
              "db.client.connection.wait_time_ms": 0.03391
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectStoreV2.listShells",
            "traceId": "7e2ea9188c452bcc15707ff11224450e",
            "spanId": "1506f86e74a469af",
            "parentSpanId": "30f9405211ff3eee",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691241132119",
            "endTimeUnixNano": "1796047691241339549",
            "durationMs": 0.20743,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.readThreads",
            "traceId": "7e2ea9188c452bcc15707ff11224450e",
            "spanId": "30f9405211ff3eee",
            "parentSpanId": "6576cbdebee2312d",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691240609879",
            "endTimeUnixNano": "1796047691241348702",
            "durationMs": 0.738823,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "7e2ea9188c452bcc15707ff11224450e",
            "spanId": "ebb6da5be8705659",
            "parentSpanId": "6576cbdebee2312d",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691241373139",
            "endTimeUnixNano": "1796047691241467189",
            "durationMs": 0.09405,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.021,
              "db.client.connection.wait_time_ms": 0.032148
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "7e2ea9188c452bcc15707ff11224450e",
            "spanId": "879488e3751d5c22",
            "parentSpanId": "056bf00eff7d5045",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691241521510",
            "endTimeUnixNano": "1796047691241591875",
            "durationMs": 0.070365,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT DISTINCT json_extract(payload_json, '$.worktreePath') AS \"worktreePath\"\n      FROM orchestration_v2_projection_threads\n      WHERE json_extract(payload_json, '$.worktreePath') IS NOT NUL\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.031,
              "db.client.connection.wait_time_ms": 0.038348
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "7e2ea9188c452bcc15707ff11224450e",
            "spanId": "c1cf417d80840c43",
            "parentSpanId": "1a2559449b383677",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691242909424",
            "endTimeUnixNano": "1796047691244323787",
            "durationMs": 1.414363,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "7e2ea9188c452bcc15707ff11224450e",
            "spanId": "1a2559449b383677",
            "parentSpanId": "fe65d2eb3a91928e",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691242758508",
            "endTimeUnixNano": "1796047691245134618",
            "durationMs": 2.37611,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "7e2ea9188c452bcc15707ff11224450e",
            "spanId": "fe65d2eb3a91928e",
            "parentSpanId": "0ccb943d80495e30",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691242717507",
            "endTimeUnixNano": "1796047691245321848",
            "durationMs": 2.604341,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/plain-notes",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "7e2ea9188c452bcc15707ff11224450e",
            "spanId": "8c04abd2b5dc2c5a",
            "parentSpanId": "f9ea388d910a8d4f",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691245536048",
            "endTimeUnixNano": "1796047691247083319",
            "durationMs": 1.547271,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "7e2ea9188c452bcc15707ff11224450e",
            "spanId": "f9ea388d910a8d4f",
            "parentSpanId": "eeab5ba0914ec5ba",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691245387906",
            "endTimeUnixNano": "1796047691247880851",
            "durationMs": 2.492945,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "7e2ea9188c452bcc15707ff11224450e",
            "spanId": "eeab5ba0914ec5ba",
            "parentSpanId": "0ccb943d80495e30",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691245348057",
            "endTimeUnixNano": "1796047691248048862",
            "durationMs": 2.700805,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/plain-notes",
              "git.args_count": 3
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "7e2ea9188c452bcc15707ff11224450e",
            "spanId": "0ccb943d80495e30",
            "parentSpanId": "056bf00eff7d5045",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691242695855",
            "endTimeUnixNano": "1796047691248107199",
            "durationMs": 5.411344,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Failure",
              "cause": "GitCommandError: Git command failed in GitVcsDriver.listWorktreePaths ($FIXTURE/fx/plain-notes): Git command exited with a non-zero status. (not_a_repository)\n    at file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:1635:11\n    at executeWorktreeList (file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:7803:5)\n    at executeWorktreeList (definition) (file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:1681:38)\n    at StorageCleanup.reportOrphanWorktrees (file://$CHECKOUT/apps/server/src/storageCleanup.ts:1967:12)\n    at StorageCleanup.reportOrphanWorktrees (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:556:40)\n    at StorageCleanup.cleanWorktrees (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2193:37)\n    at StorageCleanup.cleanWorktrees (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:1208:33)\n    at StorageCleanup.sweep (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2293:24)\n    at StorageCleanup.sweep (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2162:24)\n    at DrainableWorker.makeDrainableWorker (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2290:25)\n    at DrainableWorker.makeDrainableWorker (definition) (file://$CHECKOUT/packages/shared/src/DrainableWorker.ts:20:43)"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "7e2ea9188c452bcc15707ff11224450e",
            "spanId": "1c5cf49f608ac393",
            "parentSpanId": "d4fefd28c13f0505",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691248465925",
            "endTimeUnixNano": "1796047691249640289",
            "durationMs": 1.174364,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "7e2ea9188c452bcc15707ff11224450e",
            "spanId": "d4fefd28c13f0505",
            "parentSpanId": "3381346c9d26672c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691248318154",
            "endTimeUnixNano": "1796047691250579192",
            "durationMs": 2.261038,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "7e2ea9188c452bcc15707ff11224450e",
            "spanId": "3381346c9d26672c",
            "parentSpanId": "7f1c863518f04d5f",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691248258104",
            "endTimeUnixNano": "1796047691250758169",
            "durationMs": 2.500065,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo/packages/app",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "7e2ea9188c452bcc15707ff11224450e",
            "spanId": "7f1c863518f04d5f",
            "parentSpanId": "056bf00eff7d5045",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691248239306",
            "endTimeUnixNano": "1796047691250772701",
            "durationMs": 2.533395,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "7e2ea9188c452bcc15707ff11224450e",
            "spanId": "0796f254fc2a36e6",
            "parentSpanId": "35435caf7a9d9cc6",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691250982955",
            "endTimeUnixNano": "1796047691252384950",
            "durationMs": 1.401995,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "7e2ea9188c452bcc15707ff11224450e",
            "spanId": "35435caf7a9d9cc6",
            "parentSpanId": "5202bba2df2da506",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691250844779",
            "endTimeUnixNano": "1796047691253332235",
            "durationMs": 2.487456,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "7e2ea9188c452bcc15707ff11224450e",
            "spanId": "5202bba2df2da506",
            "parentSpanId": "a47e13c1e7624fc7",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691250811098",
            "endTimeUnixNano": "1796047691253515358",
            "durationMs": 2.70426,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo-link",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "7e2ea9188c452bcc15707ff11224450e",
            "spanId": "a47e13c1e7624fc7",
            "parentSpanId": "056bf00eff7d5045",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691250794754",
            "endTimeUnixNano": "1796047691253531132",
            "durationMs": 2.736378,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "7e2ea9188c452bcc15707ff11224450e",
            "spanId": "4441ca6d592be3ac",
            "parentSpanId": "0fe8c2d09d38cf8b",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691253733033",
            "endTimeUnixNano": "1796047691255162709",
            "durationMs": 1.429676,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "7e2ea9188c452bcc15707ff11224450e",
            "spanId": "0fe8c2d09d38cf8b",
            "parentSpanId": "34d7d143cca2c488",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691253600385",
            "endTimeUnixNano": "1796047691256051187",
            "durationMs": 2.450802,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "7e2ea9188c452bcc15707ff11224450e",
            "spanId": "34d7d143cca2c488",
            "parentSpanId": "ed4a5c0fec26bff6",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691253568127",
            "endTimeUnixNano": "1796047691256217585",
            "durationMs": 2.649458,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "7e2ea9188c452bcc15707ff11224450e",
            "spanId": "ed4a5c0fec26bff6",
            "parentSpanId": "056bf00eff7d5045",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691253552664",
            "endTimeUnixNano": "1796047691256231947",
            "durationMs": 2.679283,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "7e2ea9188c452bcc15707ff11224450e",
            "spanId": "5f3e2d94e3a42dc0",
            "parentSpanId": "056bf00eff7d5045",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691256554368",
            "endTimeUnixNano": "1796047691256607578",
            "durationMs": 0.05321,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "7e2ea9188c452bcc15707ff11224450e",
            "spanId": "fa00def2c60c46a0",
            "parentSpanId": "056bf00eff7d5045",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691256744492",
            "endTimeUnixNano": "1796047691256773606",
            "durationMs": 0.029114,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "7e2ea9188c452bcc15707ff11224450e",
            "spanId": "048eac6f603e01aa",
            "parentSpanId": "056bf00eff7d5045",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691256897351",
            "endTimeUnixNano": "1796047691256922538",
            "durationMs": 0.025187,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "7e2ea9188c452bcc15707ff11224450e",
            "spanId": "1f27097894587cd8",
            "parentSpanId": "056bf00eff7d5045",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691257014986",
            "endTimeUnixNano": "1796047691257043940",
            "durationMs": 0.028954,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "storageCleanup.measureWorktree",
            "traceId": "7e2ea9188c452bcc15707ff11224450e",
            "spanId": "cee037bbd5f81105",
            "parentSpanId": "056bf00eff7d5045",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691257077580",
            "endTimeUnixNano": "1796047691257680441",
            "durationMs": 0.602861,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.reportOrphanWorktrees",
            "traceId": "7e2ea9188c452bcc15707ff11224450e",
            "spanId": "056bf00eff7d5045",
            "parentSpanId": "6576cbdebee2312d",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691241512847",
            "endTimeUnixNano": "1796047691257713580",
            "durationMs": 16.200733,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanWorktrees",
            "traceId": "7e2ea9188c452bcc15707ff11224450e",
            "spanId": "6576cbdebee2312d",
            "parentSpanId": "fd59ff0107d48ab4",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691239996502",
            "endTimeUnixNano": "1796047691257724296",
            "durationMs": 17.727794,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.sweep",
            "traceId": "7e2ea9188c452bcc15707ff11224450e",
            "spanId": "fd59ff0107d48ab4",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691239658778",
            "endTimeUnixNano": "1796047691257762773",
            "durationMs": 18.103995,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          }
        ]
      },
      {
        "run": 44,
        "warmup": false,
        "elapsedMs": 17.6062730000001,
        "nestedOrphanFound": true,
        "report": {
          "_tag": "Success",
          "value": {
            "trigger": "manual",
            "startedAt": "2026-11-30T14:08:11.258Z",
            "finishedAt": "2026-11-30T14:08:11.275Z",
            "entries": [
              {
                "kind": "worktree",
                "outcome": "kept",
                "reason": "No thread uses this worktree",
                "path": "$FIXTURE/data/worktrees/repository/replay/repo-wt",
                "projectPath": null,
                "threadId": null,
                "threadTitle": null,
                "bytes": 8192,
                "files": null
              }
            ],
            "counts": {
              "removed": 0,
              "kept": 1,
              "failed": 0
            },
            "omittedCount": 0,
            "bytesFreed": 0
          }
        },
        "spans": [
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "d4608dd92d626ba6efeb4b2b4997d32d",
            "spanId": "ef30c10aac310817",
            "parentSpanId": "ee09f72759b3e34d",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691258666584",
            "endTimeUnixNano": "1796047691258835767",
            "durationMs": 0.169183,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      WITH RECURSIVE retained_checkpoint_threads(thread_id) AS (\n        SELECT thread_id FROM orchestration_v2_projection_threads WHERE deleted_at IS NULL\n        UNION\n        SELECT json_extract(t\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.035,
              "db.client.connection.wait_time_ms": 0.049654
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanCheckpointRefs",
            "traceId": "d4608dd92d626ba6efeb4b2b4997d32d",
            "spanId": "ee09f72759b3e34d",
            "parentSpanId": "784bcf9e7c60935e",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691258655397",
            "endTimeUnixNano": "1796047691258871820",
            "durationMs": 0.216423,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.retryLeftovers",
            "traceId": "d4608dd92d626ba6efeb4b2b4997d32d",
            "spanId": "04a83b713f28b805",
            "parentSpanId": "784bcf9e7c60935e",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691258888375",
            "endTimeUnixNano": "1796047691258956787",
            "durationMs": 0.068412,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveGitWorktreePath",
            "traceId": "d4608dd92d626ba6efeb4b2b4997d32d",
            "spanId": "6317e16d13f8b9e3",
            "parentSpanId": "4f69e04618fe24e2",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691258987373",
            "endTimeUnixNano": "1796047691259187282",
            "durationMs": 0.199909,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveWorktreeT3Home",
            "traceId": "d4608dd92d626ba6efeb4b2b4997d32d",
            "spanId": "4f69e04618fe24e2",
            "parentSpanId": "6aee59a2a54262f5",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691258980503",
            "endTimeUnixNano": "1796047691259195764",
            "durationMs": 0.215261,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "d4608dd92d626ba6efeb4b2b4997d32d",
            "spanId": "af9d4ff2b7e907c8",
            "parentSpanId": "6aee59a2a54262f5",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691259505828",
            "endTimeUnixNano": "1796047691259600669",
            "durationMs": 0.094841,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n          SELECT t.payload_json, p.workspace_root AS \"workspaceRoot\"\n          FROM orchestration_v2_projection_threads t\n          JOIN projection_projects p ON p.project_id = t.project_id\n         \u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.029,
              "db.client.connection.wait_time_ms": 0.045798
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "BEGIN",
            "traceId": "d4608dd92d626ba6efeb4b2b4997d32d",
            "spanId": "38919b4c41f200a5",
            "parentSpanId": "5e31d6f1286b6315",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691259728220",
            "endTimeUnixNano": "1796047691259771895",
            "durationMs": 0.043675,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "BEGIN"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "d4608dd92d626ba6efeb4b2b4997d32d",
            "spanId": "25d201de840e8669",
            "parentSpanId": "48e4e6819daaffad",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691259863342",
            "endTimeUnixNano": "1796047691259990021",
            "durationMs": 0.126679,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n            SELECT\n              t.thread_id,\n              t.payload_json,\n              t.fork_run_ids_json,\n              CASE\n                WHEN json_extract(t.payload_json, '$.forkedFrom.type'\u2026[truncated]",
              "db.client.connection.wait_time_ms": 0.010355
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "d4608dd92d626ba6efeb4b2b4997d32d",
            "spanId": "036fdeb569d5fe3d",
            "parentSpanId": "48e4e6819daaffad",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691260018543",
            "endTimeUnixNano": "1796047691260064082",
            "durationMs": 0.045539,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n        SELECT MAX(sequence) AS snapshot_sequence\n        FROM orchestration_events\n        WHERE application_event_version = 2\n          AND aggregate_kind = 'thread'\n      ",
              "db.client.connection.wait_time_ms": 0.007221
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readShellSnapshotRows",
            "traceId": "d4608dd92d626ba6efeb4b2b4997d32d",
            "spanId": "48e4e6819daaffad",
            "parentSpanId": "5e31d6f1286b6315",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691259793247",
            "endTimeUnixNano": "1796047691260076680",
            "durationMs": 0.283433,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "COMMIT",
            "traceId": "d4608dd92d626ba6efeb4b2b4997d32d",
            "spanId": "22a46af7653ac9b5",
            "parentSpanId": "5e31d6f1286b6315",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691260086124",
            "endTimeUnixNano": "1796047691260107116",
            "durationMs": 0.020992,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "COMMIT"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sql.transaction",
            "traceId": "d4608dd92d626ba6efeb4b2b4997d32d",
            "spanId": "5e31d6f1286b6315",
            "parentSpanId": "b787f9a19e7fcda6",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691259680659",
            "endTimeUnixNano": "1796047691260129189",
            "durationMs": 0.44853,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.client.connection.wait_time_ms": 0.04025,
              "db.connection": "reader",
              "db.lock_wait_ms": 0.023
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.pendingBackgroundDataByThreadId",
            "traceId": "d4608dd92d626ba6efeb4b2b4997d32d",
            "spanId": "f4d063f22b37b381",
            "parentSpanId": "b2ce7720a04d4a95",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691260165673",
            "endTimeUnixNano": "1796047691260171101",
            "durationMs": 0.005428,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.decodeShellSnapshot",
            "traceId": "d4608dd92d626ba6efeb4b2b4997d32d",
            "spanId": "b2ce7720a04d4a95",
            "parentSpanId": "b787f9a19e7fcda6",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691260153916",
            "endTimeUnixNano": "1796047691260179694",
            "durationMs": 0.025778,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "d4608dd92d626ba6efeb4b2b4997d32d",
            "spanId": "180606573399977e",
            "parentSpanId": "18d63cb325258e55",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691260214026",
            "endTimeUnixNano": "1796047691260326434",
            "durationMs": 0.112408,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.025,
              "db.client.connection.wait_time_ms": 0.033499
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectStoreV2.listShells",
            "traceId": "d4608dd92d626ba6efeb4b2b4997d32d",
            "spanId": "18d63cb325258e55",
            "parentSpanId": "b787f9a19e7fcda6",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691260187796",
            "endTimeUnixNano": "1796047691260388947",
            "durationMs": 0.201151,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.readThreads",
            "traceId": "d4608dd92d626ba6efeb4b2b4997d32d",
            "spanId": "b787f9a19e7fcda6",
            "parentSpanId": "6aee59a2a54262f5",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691259651645",
            "endTimeUnixNano": "1796047691260396288",
            "durationMs": 0.744643,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "d4608dd92d626ba6efeb4b2b4997d32d",
            "spanId": "a8a65cd632c77d82",
            "parentSpanId": "6aee59a2a54262f5",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691260420354",
            "endTimeUnixNano": "1796047691260508475",
            "durationMs": 0.088121,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.019,
              "db.client.connection.wait_time_ms": 0.034632
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "d4608dd92d626ba6efeb4b2b4997d32d",
            "spanId": "92019d188a1c933d",
            "parentSpanId": "8ad9c20169018be2",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691260559101",
            "endTimeUnixNano": "1796047691260626692",
            "durationMs": 0.067591,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT DISTINCT json_extract(payload_json, '$.worktreePath') AS \"worktreePath\"\n      FROM orchestration_v2_projection_threads\n      WHERE json_extract(payload_json, '$.worktreePath') IS NOT NUL\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.029,
              "db.client.connection.wait_time_ms": 0.035583
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "d4608dd92d626ba6efeb4b2b4997d32d",
            "spanId": "b3379ce800138304",
            "parentSpanId": "f1ea1ed832c3b8b9",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691261951090",
            "endTimeUnixNano": "1796047691263252825",
            "durationMs": 1.301735,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "d4608dd92d626ba6efeb4b2b4997d32d",
            "spanId": "f1ea1ed832c3b8b9",
            "parentSpanId": "44a8cbeb4a34f25c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691261779304",
            "endTimeUnixNano": "1796047691264047272",
            "durationMs": 2.267968,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "d4608dd92d626ba6efeb4b2b4997d32d",
            "spanId": "44a8cbeb4a34f25c",
            "parentSpanId": "7d7c1f16c860f861",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691261737822",
            "endTimeUnixNano": "1796047691264210516",
            "durationMs": 2.472694,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/plain-notes",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "d4608dd92d626ba6efeb4b2b4997d32d",
            "spanId": "25ce9cf8273c3a48",
            "parentSpanId": "8490edee2679a4db",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691264433930",
            "endTimeUnixNano": "1796047691265573101",
            "durationMs": 1.139171,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "d4608dd92d626ba6efeb4b2b4997d32d",
            "spanId": "8490edee2679a4db",
            "parentSpanId": "5c68ade0e94564f5",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691264284767",
            "endTimeUnixNano": "1796047691266262592",
            "durationMs": 1.977825,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "d4608dd92d626ba6efeb4b2b4997d32d",
            "spanId": "5c68ade0e94564f5",
            "parentSpanId": "7d7c1f16c860f861",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691264232539",
            "endTimeUnixNano": "1796047691266423482",
            "durationMs": 2.190943,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/plain-notes",
              "git.args_count": 3
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "d4608dd92d626ba6efeb4b2b4997d32d",
            "spanId": "7d7c1f16c860f861",
            "parentSpanId": "8ad9c20169018be2",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691261715999",
            "endTimeUnixNano": "1796047691266484263",
            "durationMs": 4.768264,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Failure",
              "cause": "GitCommandError: Git command failed in GitVcsDriver.listWorktreePaths ($FIXTURE/fx/plain-notes): Git command exited with a non-zero status. (not_a_repository)\n    at file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:1635:11\n    at executeWorktreeList (file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:7803:5)\n    at executeWorktreeList (definition) (file://$CHECKOUT/apps/server/src/vcs/GitVcsDriverCore.ts:1681:38)\n    at StorageCleanup.reportOrphanWorktrees (file://$CHECKOUT/apps/server/src/storageCleanup.ts:1967:12)\n    at StorageCleanup.reportOrphanWorktrees (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:556:40)\n    at StorageCleanup.cleanWorktrees (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2193:37)\n    at StorageCleanup.cleanWorktrees (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:1208:33)\n    at StorageCleanup.sweep (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2293:24)\n    at StorageCleanup.sweep (definition) (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2162:24)\n    at DrainableWorker.makeDrainableWorker (file://$CHECKOUT/apps/server/src/storageCleanup.ts:2290:25)\n    at DrainableWorker.makeDrainableWorker (definition) (file://$CHECKOUT/packages/shared/src/DrainableWorker.ts:20:43)"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "d4608dd92d626ba6efeb4b2b4997d32d",
            "spanId": "8af13a11faa6d7f6",
            "parentSpanId": "2952dc58ab114088",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691266800675",
            "endTimeUnixNano": "1796047691267996822",
            "durationMs": 1.196147,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "d4608dd92d626ba6efeb4b2b4997d32d",
            "spanId": "2952dc58ab114088",
            "parentSpanId": "3f79243bca9e2f71",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691266661237",
            "endTimeUnixNano": "1796047691268829086",
            "durationMs": 2.167849,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "d4608dd92d626ba6efeb4b2b4997d32d",
            "spanId": "3f79243bca9e2f71",
            "parentSpanId": "0ea446987427b724",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691266623711",
            "endTimeUnixNano": "1796047691268982685",
            "durationMs": 2.358974,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo/packages/app",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "d4608dd92d626ba6efeb4b2b4997d32d",
            "spanId": "0ea446987427b724",
            "parentSpanId": "8ad9c20169018be2",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691266607196",
            "endTimeUnixNano": "1796047691268996656",
            "durationMs": 2.38946,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "d4608dd92d626ba6efeb4b2b4997d32d",
            "spanId": "56a699d48f0266d9",
            "parentSpanId": "099b1ac14608c3f4",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691269200481",
            "endTimeUnixNano": "1796047691270337690",
            "durationMs": 1.137209,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "d4608dd92d626ba6efeb4b2b4997d32d",
            "spanId": "099b1ac14608c3f4",
            "parentSpanId": "567baca0bd3f7302",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691269066220",
            "endTimeUnixNano": "1796047691271172947",
            "durationMs": 2.106727,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "d4608dd92d626ba6efeb4b2b4997d32d",
            "spanId": "567baca0bd3f7302",
            "parentSpanId": "747b7a0b1acbd6c1",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691269032450",
            "endTimeUnixNano": "1796047691271391584",
            "durationMs": 2.359134,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo-link",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "d4608dd92d626ba6efeb4b2b4997d32d",
            "spanId": "747b7a0b1acbd6c1",
            "parentSpanId": "8ad9c20169018be2",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691269016816",
            "endTimeUnixNano": "1796047691271407057",
            "durationMs": 2.390241,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "d4608dd92d626ba6efeb4b2b4997d32d",
            "spanId": "283bab6d2190d5d6",
            "parentSpanId": "ea254e57cb508157",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691271627987",
            "endTimeUnixNano": "1796047691272882251",
            "durationMs": 1.254264,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "d4608dd92d626ba6efeb4b2b4997d32d",
            "spanId": "ea254e57cb508157",
            "parentSpanId": "8d17b2db4af0390c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691271489360",
            "endTimeUnixNano": "1796047691273665782",
            "durationMs": 2.176422,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "d4608dd92d626ba6efeb4b2b4997d32d",
            "spanId": "8d17b2db4af0390c",
            "parentSpanId": "bc0b8d08d75910cc",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047691271455449",
            "endTimeUnixNano": "1796047691273823828",
            "durationMs": 2.368379,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "d4608dd92d626ba6efeb4b2b4997d32d",
            "spanId": "bc0b8d08d75910cc",
            "parentSpanId": "8ad9c20169018be2",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691271438895",
            "endTimeUnixNano": "1796047691273839932",
            "durationMs": 2.401037,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "d4608dd92d626ba6efeb4b2b4997d32d",
            "spanId": "db4f55b4111df14e",
            "parentSpanId": "8ad9c20169018be2",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691274149224",
            "endTimeUnixNano": "1796047691274200010",
            "durationMs": 0.050786,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "d4608dd92d626ba6efeb4b2b4997d32d",
            "spanId": "00880c16c434ce6a",
            "parentSpanId": "8ad9c20169018be2",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691274359879",
            "endTimeUnixNano": "1796047691274390955",
            "durationMs": 0.031076,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "d4608dd92d626ba6efeb4b2b4997d32d",
            "spanId": "7480ccb10494e6a9",
            "parentSpanId": "8ad9c20169018be2",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691274542041",
            "endTimeUnixNano": "1796047691274576692",
            "durationMs": 0.034651,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "d4608dd92d626ba6efeb4b2b4997d32d",
            "spanId": "a4f49dea510b8b33",
            "parentSpanId": "8ad9c20169018be2",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691274694559",
            "endTimeUnixNano": "1796047691274721879",
            "durationMs": 0.02732,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "storageCleanup.measureWorktree",
            "traceId": "d4608dd92d626ba6efeb4b2b4997d32d",
            "spanId": "2de0b3047617ea45",
            "parentSpanId": "8ad9c20169018be2",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691274754188",
            "endTimeUnixNano": "1796047691275308255",
            "durationMs": 0.554067,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.reportOrphanWorktrees",
            "traceId": "d4608dd92d626ba6efeb4b2b4997d32d",
            "spanId": "8ad9c20169018be2",
            "parentSpanId": "6aee59a2a54262f5",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691260551079",
            "endTimeUnixNano": "1796047691275341635",
            "durationMs": 14.790556,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanWorktrees",
            "traceId": "d4608dd92d626ba6efeb4b2b4997d32d",
            "spanId": "6aee59a2a54262f5",
            "parentSpanId": "784bcf9e7c60935e",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691258967463",
            "endTimeUnixNano": "1796047691275350979",
            "durationMs": 16.383516,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.sweep",
            "traceId": "d4608dd92d626ba6efeb4b2b4997d32d",
            "spanId": "784bcf9e7c60935e",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047691258633014",
            "endTimeUnixNano": "1796047691275387354",
            "durationMs": 16.75434,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          }
        ]
      }
    ]
  },
  "after": {
    "sha": "ead80bc3d52c58ee9dac59c01924f169e0994f67",
    "rows": [
      {
        "run": 0,
        "warmup": true,
        "elapsedMs": 59.865735000000015,
        "nestedOrphanFound": true,
        "report": {
          "_tag": "Success",
          "value": {
            "trigger": "manual",
            "startedAt": "2026-11-30T14:08:18.336Z",
            "finishedAt": "2026-11-30T14:08:18.369Z",
            "entries": [
              {
                "kind": "worktree",
                "outcome": "kept",
                "reason": "No thread uses this worktree",
                "path": "$FIXTURE/data/worktrees/repository/replay/repo-wt",
                "projectPath": null,
                "threadId": null,
                "threadTitle": null,
                "bytes": 8192,
                "files": null
              }
            ],
            "counts": {
              "removed": 0,
              "kept": 1,
              "failed": 0
            },
            "omittedCount": 0,
            "bytesFreed": 0
          }
        },
        "spans": [
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "3ce220e6203ccc35bad789517d87ac3d",
            "spanId": "eb167535e76541f6",
            "parentSpanId": "47ab48edee6de058",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698335875363",
            "endTimeUnixNano": "1796047698336203073",
            "durationMs": 0.32771,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      WITH RECURSIVE retained_checkpoint_threads(thread_id) AS (\n        SELECT thread_id FROM orchestration_v2_projection_threads WHERE deleted_at IS NULL\n        UNION\n        SELECT json_extract(t\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.088,
              "db.client.connection.wait_time_ms": 0.119409
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanCheckpointRefs",
            "traceId": "3ce220e6203ccc35bad789517d87ac3d",
            "spanId": "47ab48edee6de058",
            "parentSpanId": "687cee6b323b8bed",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698335850807",
            "endTimeUnixNano": "1796047698336256693",
            "durationMs": 0.405886,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.retryLeftovers",
            "traceId": "3ce220e6203ccc35bad789517d87ac3d",
            "spanId": "e71135ed064d0f97",
            "parentSpanId": "687cee6b323b8bed",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698336284134",
            "endTimeUnixNano": "1796047698336542640",
            "durationMs": 0.258506,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveGitWorktreePath",
            "traceId": "3ce220e6203ccc35bad789517d87ac3d",
            "spanId": "1bb01b6f48980c52",
            "parentSpanId": "daac42e379841731",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698336612655",
            "endTimeUnixNano": "1796047698337116347",
            "durationMs": 0.503692,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveWorktreeT3Home",
            "traceId": "3ce220e6203ccc35bad789517d87ac3d",
            "spanId": "daac42e379841731",
            "parentSpanId": "713304a33dce265b",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698336600026",
            "endTimeUnixNano": "1796047698337133323",
            "durationMs": 0.533297,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "3ce220e6203ccc35bad789517d87ac3d",
            "spanId": "08e57b7724788747",
            "parentSpanId": "713304a33dce265b",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698338129040",
            "endTimeUnixNano": "1796047698338395058",
            "durationMs": 0.266018,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n          SELECT t.payload_json, p.workspace_root AS \"workspaceRoot\"\n          FROM orchestration_v2_projection_threads t\n          JOIN projection_projects p ON p.project_id = t.project_id\n         \u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.078,
              "db.client.connection.wait_time_ms": 0.111377
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "BEGIN",
            "traceId": "3ce220e6203ccc35bad789517d87ac3d",
            "spanId": "31fee7809e288155",
            "parentSpanId": "daaca7cc4d16e326",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698338622247",
            "endTimeUnixNano": "1796047698338748866",
            "durationMs": 0.126619,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "BEGIN"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "3ce220e6203ccc35bad789517d87ac3d",
            "spanId": "225682654d9ab23e",
            "parentSpanId": "62d7cfadb7f3aa19",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698338896266",
            "endTimeUnixNano": "1796047698339088464",
            "durationMs": 0.192198,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n            SELECT\n              t.thread_id,\n              t.payload_json,\n              t.fork_run_ids_json,\n              CASE\n                WHEN json_extract(t.payload_json, '$.forkedFrom.type'\u2026[truncated]",
              "db.client.connection.wait_time_ms": 0.022184
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "3ce220e6203ccc35bad789517d87ac3d",
            "spanId": "3a32082206f084ca",
            "parentSpanId": "62d7cfadb7f3aa19",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698339146380",
            "endTimeUnixNano": "1796047698339275954",
            "durationMs": 0.129574,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n        SELECT MAX(sequence) AS snapshot_sequence\n        FROM orchestration_events\n        WHERE application_event_version = 2\n          AND aggregate_kind = 'thread'\n      ",
              "db.client.connection.wait_time_ms": 0.016425
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readShellSnapshotRows",
            "traceId": "3ce220e6203ccc35bad789517d87ac3d",
            "spanId": "62d7cfadb7f3aa19",
            "parentSpanId": "daaca7cc4d16e326",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698338788145",
            "endTimeUnixNano": "1796047698339304056",
            "durationMs": 0.515911,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "COMMIT",
            "traceId": "3ce220e6203ccc35bad789517d87ac3d",
            "spanId": "0db42b81a40c108e",
            "parentSpanId": "daaca7cc4d16e326",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698339321341",
            "endTimeUnixNano": "1796047698339434721",
            "durationMs": 0.11338,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "COMMIT"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sql.transaction",
            "traceId": "3ce220e6203ccc35bad789517d87ac3d",
            "spanId": "daaca7cc4d16e326",
            "parentSpanId": "ac27a0ee2100b53e",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698338525693",
            "endTimeUnixNano": "1796047698339476063",
            "durationMs": 0.95037,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.client.connection.wait_time_ms": 0.085097,
              "db.connection": "reader",
              "db.lock_wait_ms": 0.055
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.pendingBackgroundDataByThreadId",
            "traceId": "3ce220e6203ccc35bad789517d87ac3d",
            "spanId": "28c7220a09c4bad4",
            "parentSpanId": "5f2e365e82502175",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698339560569",
            "endTimeUnixNano": "1796047698339573498",
            "durationMs": 0.012929,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.decodeShellSnapshot",
            "traceId": "3ce220e6203ccc35bad789517d87ac3d",
            "spanId": "5f2e365e82502175",
            "parentSpanId": "ac27a0ee2100b53e",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698339535221",
            "endTimeUnixNano": "1796047698339594349",
            "durationMs": 0.059128,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "3ce220e6203ccc35bad789517d87ac3d",
            "spanId": "68ffdc31226f4d04",
            "parentSpanId": "760f9ab5c84fbd37",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698339683983",
            "endTimeUnixNano": "1796047698339944502",
            "durationMs": 0.260519,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.066,
              "db.client.connection.wait_time_ms": 0.084667
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectStoreV2.listShells",
            "traceId": "3ce220e6203ccc35bad789517d87ac3d",
            "spanId": "760f9ab5c84fbd37",
            "parentSpanId": "ac27a0ee2100b53e",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698339620979",
            "endTimeUnixNano": "1796047698340145302",
            "durationMs": 0.524323,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.readThreads",
            "traceId": "3ce220e6203ccc35bad789517d87ac3d",
            "spanId": "ac27a0ee2100b53e",
            "parentSpanId": "713304a33dce265b",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698338464061",
            "endTimeUnixNano": "1796047698340166674",
            "durationMs": 1.702613,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "3ce220e6203ccc35bad789517d87ac3d",
            "spanId": "07668ae46f07d8cc",
            "parentSpanId": "713304a33dce265b",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698340228186",
            "endTimeUnixNano": "1796047698340463908",
            "durationMs": 0.235722,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.057,
              "db.client.connection.wait_time_ms": 0.081502
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "3ce220e6203ccc35bad789517d87ac3d",
            "spanId": "4440f25bf9af7549",
            "parentSpanId": "734f37e8ad041cb1",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698340594714",
            "endTimeUnixNano": "1796047698340859870",
            "durationMs": 0.265156,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT DISTINCT json_extract(payload_json, '$.worktreePath') AS \"worktreePath\"\n      FROM orchestration_v2_projection_threads\n      WHERE json_extract(payload_json, '$.worktreePath') IS NOT NUL\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.092,
              "db.client.connection.wait_time_ms": 0.114912
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "3ce220e6203ccc35bad789517d87ac3d",
            "spanId": "cf667624935ad210",
            "parentSpanId": "5398990434a4d90d",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698346646515",
            "endTimeUnixNano": "1796047698366559383",
            "durationMs": 19.912868,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "3ce220e6203ccc35bad789517d87ac3d",
            "spanId": "5398990434a4d90d",
            "parentSpanId": "ef3e470cc525881d",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698346338344",
            "endTimeUnixNano": "1796047698367276875",
            "durationMs": 20.938531,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "3ce220e6203ccc35bad789517d87ac3d",
            "spanId": "ef3e470cc525881d",
            "parentSpanId": "d42d6bf93b2aee49",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698346239306",
            "endTimeUnixNano": "1796047698367602010",
            "durationMs": 21.362704,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo/packages/app",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "3ce220e6203ccc35bad789517d87ac3d",
            "spanId": "d42d6bf93b2aee49",
            "parentSpanId": "734f37e8ad041cb1",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698346182171",
            "endTimeUnixNano": "1796047698367642491",
            "durationMs": 21.46032,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "3ce220e6203ccc35bad789517d87ac3d",
            "spanId": "8f0acf18e20e893a",
            "parentSpanId": "734f37e8ad041cb1",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698368455405",
            "endTimeUnixNano": "1796047698368511640",
            "durationMs": 0.056235,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "3ce220e6203ccc35bad789517d87ac3d",
            "spanId": "9a7f9570cd65d3ea",
            "parentSpanId": "734f37e8ad041cb1",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698368616156",
            "endTimeUnixNano": "1796047698368644458",
            "durationMs": 0.028302,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "storageCleanup.measureWorktree",
            "traceId": "3ce220e6203ccc35bad789517d87ac3d",
            "spanId": "5fb94e6632a4d73f",
            "parentSpanId": "734f37e8ad041cb1",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698368675805",
            "endTimeUnixNano": "1796047698369308460",
            "durationMs": 0.632655,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.reportOrphanWorktrees",
            "traceId": "3ce220e6203ccc35bad789517d87ac3d",
            "spanId": "734f37e8ad041cb1",
            "parentSpanId": "713304a33dce265b",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698340574243",
            "endTimeUnixNano": "1796047698369352636",
            "durationMs": 28.778393,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanWorktrees",
            "traceId": "3ce220e6203ccc35bad789517d87ac3d",
            "spanId": "713304a33dce265b",
            "parentSpanId": "687cee6b323b8bed",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698336568849",
            "endTimeUnixNano": "1796047698369364203",
            "durationMs": 32.795354,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.sweep",
            "traceId": "3ce220e6203ccc35bad789517d87ac3d",
            "spanId": "687cee6b323b8bed",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698335808123",
            "endTimeUnixNano": "1796047698369424633",
            "durationMs": 33.61651,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          }
        ]
      },
      {
        "run": 1,
        "warmup": true,
        "elapsedMs": 11.209235999999976,
        "nestedOrphanFound": true,
        "report": {
          "_tag": "Success",
          "value": {
            "trigger": "manual",
            "startedAt": "2026-11-30T14:08:18.371Z",
            "finishedAt": "2026-11-30T14:08:18.381Z",
            "entries": [
              {
                "kind": "worktree",
                "outcome": "kept",
                "reason": "No thread uses this worktree",
                "path": "$FIXTURE/data/worktrees/repository/replay/repo-wt",
                "projectPath": null,
                "threadId": null,
                "threadTitle": null,
                "bytes": 8192,
                "files": null
              }
            ],
            "counts": {
              "removed": 0,
              "kept": 1,
              "failed": 0
            },
            "omittedCount": 0,
            "bytesFreed": 0
          }
        },
        "spans": [
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "5288925b3ba5533d96cfad555c94cc00",
            "spanId": "ea8fa04b73c62e13",
            "parentSpanId": "73d8bfa0187481fd",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698371493023",
            "endTimeUnixNano": "1796047698371800262",
            "durationMs": 0.307239,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      WITH RECURSIVE retained_checkpoint_threads(thread_id) AS (\n        SELECT thread_id FROM orchestration_v2_projection_threads WHERE deleted_at IS NULL\n        UNION\n        SELECT json_extract(t\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.057,
              "db.client.connection.wait_time_ms": 0.089524
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanCheckpointRefs",
            "traceId": "5288925b3ba5533d96cfad555c94cc00",
            "spanId": "73d8bfa0187481fd",
            "parentSpanId": "32779255b3486969",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698371471010",
            "endTimeUnixNano": "1796047698371847733",
            "durationMs": 0.376723,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.retryLeftovers",
            "traceId": "5288925b3ba5533d96cfad555c94cc00",
            "spanId": "2391ae5b02911a2a",
            "parentSpanId": "32779255b3486969",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698371869406",
            "endTimeUnixNano": "1796047698371956005",
            "durationMs": 0.086599,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveGitWorktreePath",
            "traceId": "5288925b3ba5533d96cfad555c94cc00",
            "spanId": "58e166fca59a87cc",
            "parentSpanId": "cd619d91a17d5c8d",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698372093280",
            "endTimeUnixNano": "1796047698372279719",
            "durationMs": 0.186439,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveWorktreeT3Home",
            "traceId": "5288925b3ba5533d96cfad555c94cc00",
            "spanId": "cd619d91a17d5c8d",
            "parentSpanId": "5b6c54f9709a1a4f",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698372085439",
            "endTimeUnixNano": "1796047698372292808",
            "durationMs": 0.207369,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "5288925b3ba5533d96cfad555c94cc00",
            "spanId": "35411db546123551",
            "parentSpanId": "5b6c54f9709a1a4f",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698372522241",
            "endTimeUnixNano": "1796047698372689851",
            "durationMs": 0.16761,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n          SELECT t.payload_json, p.workspace_root AS \"workspaceRoot\"\n          FROM orchestration_v2_projection_threads t\n          JOIN projection_projects p ON p.project_id = t.project_id\n         \u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.055,
              "db.client.connection.wait_time_ms": 0.077526
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "BEGIN",
            "traceId": "5288925b3ba5533d96cfad555c94cc00",
            "spanId": "9ce370d72635d4b8",
            "parentSpanId": "80c660e7d1d786ad",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698372857562",
            "endTimeUnixNano": "1796047698373009108",
            "durationMs": 0.151546,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "BEGIN"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "5288925b3ba5533d96cfad555c94cc00",
            "spanId": "9748f1c6a6389005",
            "parentSpanId": "8997fe00fc01ccef",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698373134435",
            "endTimeUnixNano": "1796047698373279973",
            "durationMs": 0.145538,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n            SELECT\n              t.thread_id,\n              t.payload_json,\n              t.fork_run_ids_json,\n              CASE\n                WHEN json_extract(t.payload_json, '$.forkedFrom.type'\u2026[truncated]",
              "db.client.connection.wait_time_ms": 0.017196
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "5288925b3ba5533d96cfad555c94cc00",
            "spanId": "c2b17d9925d481f3",
            "parentSpanId": "8997fe00fc01ccef",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698373334585",
            "endTimeUnixNano": "1796047698373412491",
            "durationMs": 0.077906,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n        SELECT MAX(sequence) AS snapshot_sequence\n        FROM orchestration_events\n        WHERE application_event_version = 2\n          AND aggregate_kind = 'thread'\n      ",
              "db.client.connection.wait_time_ms": 0.010696
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readShellSnapshotRows",
            "traceId": "5288925b3ba5533d96cfad555c94cc00",
            "spanId": "8997fe00fc01ccef",
            "parentSpanId": "80c660e7d1d786ad",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698373046604",
            "endTimeUnixNano": "1796047698373433092",
            "durationMs": 0.386488,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "COMMIT",
            "traceId": "5288925b3ba5533d96cfad555c94cc00",
            "spanId": "3ca40c554d028d64",
            "parentSpanId": "80c660e7d1d786ad",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698373445520",
            "endTimeUnixNano": "1796047698373490447",
            "durationMs": 0.044927,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "COMMIT"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sql.transaction",
            "traceId": "5288925b3ba5533d96cfad555c94cc00",
            "spanId": "80c660e7d1d786ad",
            "parentSpanId": "ed733e290617a942",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698372783151",
            "endTimeUnixNano": "1796047698373522615",
            "durationMs": 0.739464,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.client.connection.wait_time_ms": 0.064727,
              "db.connection": "reader",
              "db.lock_wait_ms": 0.044
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.pendingBackgroundDataByThreadId",
            "traceId": "5288925b3ba5533d96cfad555c94cc00",
            "spanId": "0a19b41b8d5d95b8",
            "parentSpanId": "d9a1c59150db2879",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698373577898",
            "endTimeUnixNano": "1796047698373584728",
            "durationMs": 0.00683,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.decodeShellSnapshot",
            "traceId": "5288925b3ba5533d96cfad555c94cc00",
            "spanId": "d9a1c59150db2879",
            "parentSpanId": "ed733e290617a942",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698373559561",
            "endTimeUnixNano": "1796047698373597938",
            "durationMs": 0.038377,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "5288925b3ba5533d96cfad555c94cc00",
            "spanId": "b6e9dcea770a06cb",
            "parentSpanId": "84e85603e65c1a1a",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698373650997",
            "endTimeUnixNano": "1796047698373815353",
            "durationMs": 0.164356,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.042,
              "db.client.connection.wait_time_ms": 0.05375
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectStoreV2.listShells",
            "traceId": "5288925b3ba5533d96cfad555c94cc00",
            "spanId": "84e85603e65c1a1a",
            "parentSpanId": "ed733e290617a942",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698373607853",
            "endTimeUnixNano": "1796047698373924025",
            "durationMs": 0.316172,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.readThreads",
            "traceId": "5288925b3ba5533d96cfad555c94cc00",
            "spanId": "ed733e290617a942",
            "parentSpanId": "5b6c54f9709a1a4f",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698372741979",
            "endTimeUnixNano": "1796047698373937836",
            "durationMs": 1.195857,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "5288925b3ba5533d96cfad555c94cc00",
            "spanId": "d7eb43aca816da8e",
            "parentSpanId": "5b6c54f9709a1a4f",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698373994350",
            "endTimeUnixNano": "1796047698374126748",
            "durationMs": 0.132398,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.035,
              "db.client.connection.wait_time_ms": 0.050135
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "5288925b3ba5533d96cfad555c94cc00",
            "spanId": "f1ace9b576fb909b",
            "parentSpanId": "0b2b4ba9c7c58d48",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698374212596",
            "endTimeUnixNano": "1796047698374330723",
            "durationMs": 0.118127,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT DISTINCT json_extract(payload_json, '$.worktreePath') AS \"worktreePath\"\n      FROM orchestration_v2_projection_threads\n      WHERE json_extract(payload_json, '$.worktreePath') IS NOT NUL\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.044,
              "db.client.connection.wait_time_ms": 0.054291
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "5288925b3ba5533d96cfad555c94cc00",
            "spanId": "e5f4174280d77c24",
            "parentSpanId": "f1b3bc1f76d253cb",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698376343259",
            "endTimeUnixNano": "1796047698378260654",
            "durationMs": 1.917395,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "5288925b3ba5533d96cfad555c94cc00",
            "spanId": "f1b3bc1f76d253cb",
            "parentSpanId": "e8f6ffa1cd8ffb7d",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698376094998",
            "endTimeUnixNano": "1796047698379474547",
            "durationMs": 3.379549,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "5288925b3ba5533d96cfad555c94cc00",
            "spanId": "e8f6ffa1cd8ffb7d",
            "parentSpanId": "dfe412cbda60a29d",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698376041558",
            "endTimeUnixNano": "1796047698379716899",
            "durationMs": 3.675341,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo/packages/app",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "5288925b3ba5533d96cfad555c94cc00",
            "spanId": "dfe412cbda60a29d",
            "parentSpanId": "0b2b4ba9c7c58d48",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698375996762",
            "endTimeUnixNano": "1796047698379744711",
            "durationMs": 3.747949,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "5288925b3ba5533d96cfad555c94cc00",
            "spanId": "4bf2049a775a4397",
            "parentSpanId": "0b2b4ba9c7c58d48",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698380073001",
            "endTimeUnixNano": "1796047698380139621",
            "durationMs": 0.06662,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "5288925b3ba5533d96cfad555c94cc00",
            "spanId": "c81fc52a79a920cd",
            "parentSpanId": "0b2b4ba9c7c58d48",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698380251328",
            "endTimeUnixNano": "1796047698380286660",
            "durationMs": 0.035332,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "storageCleanup.measureWorktree",
            "traceId": "5288925b3ba5533d96cfad555c94cc00",
            "spanId": "118d99bf1f1cc8fb",
            "parentSpanId": "0b2b4ba9c7c58d48",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698380317697",
            "endTimeUnixNano": "1796047698381078503",
            "durationMs": 0.760806,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.reportOrphanWorktrees",
            "traceId": "5288925b3ba5533d96cfad555c94cc00",
            "spanId": "0b2b4ba9c7c58d48",
            "parentSpanId": "5b6c54f9709a1a4f",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698374199326",
            "endTimeUnixNano": "1796047698381125654",
            "durationMs": 6.926328,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanWorktrees",
            "traceId": "5288925b3ba5533d96cfad555c94cc00",
            "spanId": "5b6c54f9709a1a4f",
            "parentSpanId": "32779255b3486969",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698372058759",
            "endTimeUnixNano": "1796047698381135719",
            "durationMs": 9.07696,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.sweep",
            "traceId": "5288925b3ba5533d96cfad555c94cc00",
            "spanId": "32779255b3486969",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698371441146",
            "endTimeUnixNano": "1796047698381194637",
            "durationMs": 9.753491,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          }
        ]
      },
      {
        "run": 2,
        "warmup": true,
        "elapsedMs": 9.668924000000004,
        "nestedOrphanFound": true,
        "report": {
          "_tag": "Success",
          "value": {
            "trigger": "manual",
            "startedAt": "2026-11-30T14:08:18.383Z",
            "finishedAt": "2026-11-30T14:08:18.391Z",
            "entries": [
              {
                "kind": "worktree",
                "outcome": "kept",
                "reason": "No thread uses this worktree",
                "path": "$FIXTURE/data/worktrees/repository/replay/repo-wt",
                "projectPath": null,
                "threadId": null,
                "threadTitle": null,
                "bytes": 8192,
                "files": null
              }
            ],
            "counts": {
              "removed": 0,
              "kept": 1,
              "failed": 0
            },
            "omittedCount": 0,
            "bytesFreed": 0
          }
        },
        "spans": [
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "b6015c72b7276e9695d73faa146aaa62",
            "spanId": "7c916c7156e9f5f5",
            "parentSpanId": "10c3ef8d44925532",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698382609030",
            "endTimeUnixNano": "1796047698382823410",
            "durationMs": 0.21438,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      WITH RECURSIVE retained_checkpoint_threads(thread_id) AS (\n        SELECT thread_id FROM orchestration_v2_projection_threads WHERE deleted_at IS NULL\n        UNION\n        SELECT json_extract(t\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.043,
              "db.client.connection.wait_time_ms": 0.058337
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanCheckpointRefs",
            "traceId": "b6015c72b7276e9695d73faa146aaa62",
            "spanId": "10c3ef8d44925532",
            "parentSpanId": "944adfff0b752fa8",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698382597252",
            "endTimeUnixNano": "1796047698382862318",
            "durationMs": 0.265066,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.retryLeftovers",
            "traceId": "b6015c72b7276e9695d73faa146aaa62",
            "spanId": "2dc4ea29b86f4bc3",
            "parentSpanId": "944adfff0b752fa8",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698382881327",
            "endTimeUnixNano": "1796047698382979854",
            "durationMs": 0.098527,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveGitWorktreePath",
            "traceId": "b6015c72b7276e9695d73faa146aaa62",
            "spanId": "0c282b3705cbc933",
            "parentSpanId": "05babb64651a7796",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698383020424",
            "endTimeUnixNano": "1796047698383220694",
            "durationMs": 0.20027,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveWorktreeT3Home",
            "traceId": "b6015c72b7276e9695d73faa146aaa62",
            "spanId": "05babb64651a7796",
            "parentSpanId": "83a08371d7826818",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698383014446",
            "endTimeUnixNano": "1796047698383230849",
            "durationMs": 0.216403,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "b6015c72b7276e9695d73faa146aaa62",
            "spanId": "b3d3ac946a960859",
            "parentSpanId": "83a08371d7826818",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698383488033",
            "endTimeUnixNano": "1796047698383612599",
            "durationMs": 0.124566,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n          SELECT t.payload_json, p.workspace_root AS \"workspaceRoot\"\n          FROM orchestration_v2_projection_threads t\n          JOIN projection_projects p ON p.project_id = t.project_id\n         \u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.036,
              "db.client.connection.wait_time_ms": 0.052709
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "BEGIN",
            "traceId": "b6015c72b7276e9695d73faa146aaa62",
            "spanId": "7149cdb32a24fa7f",
            "parentSpanId": "bb6af4b40704317a",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698383744797",
            "endTimeUnixNano": "1796047698383805728",
            "durationMs": 0.060931,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "BEGIN"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "b6015c72b7276e9695d73faa146aaa62",
            "spanId": "b93904042152ec98",
            "parentSpanId": "d82f2cc0cbd5c023",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698383908261",
            "endTimeUnixNano": "1796047698384041500",
            "durationMs": 0.133239,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n            SELECT\n              t.thread_id,\n              t.payload_json,\n              t.fork_run_ids_json,\n              CASE\n                WHEN json_extract(t.payload_json, '$.forkedFrom.type'\u2026[truncated]",
              "db.client.connection.wait_time_ms": 0.012018
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "b6015c72b7276e9695d73faa146aaa62",
            "spanId": "deef8896623bad47",
            "parentSpanId": "d82f2cc0cbd5c023",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698384089021",
            "endTimeUnixNano": "1796047698384153317",
            "durationMs": 0.064296,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n        SELECT MAX(sequence) AS snapshot_sequence\n        FROM orchestration_events\n        WHERE application_event_version = 2\n          AND aggregate_kind = 'thread'\n      ",
              "db.client.connection.wait_time_ms": 0.008563
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readShellSnapshotRows",
            "traceId": "b6015c72b7276e9695d73faa146aaa62",
            "spanId": "d82f2cc0cbd5c023",
            "parentSpanId": "bb6af4b40704317a",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698383830945",
            "endTimeUnixNano": "1796047698384172135",
            "durationMs": 0.34119,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "COMMIT",
            "traceId": "b6015c72b7276e9695d73faa146aaa62",
            "spanId": "5ebeb951eb1a57b9",
            "parentSpanId": "bb6af4b40704317a",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698384181859",
            "endTimeUnixNano": "1796047698384223231",
            "durationMs": 0.041372,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "COMMIT"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sql.transaction",
            "traceId": "b6015c72b7276e9695d73faa146aaa62",
            "spanId": "bb6af4b40704317a",
            "parentSpanId": "a553d99df704df18",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698383687581",
            "endTimeUnixNano": "1796047698384246586",
            "durationMs": 0.559005,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.client.connection.wait_time_ms": 0.049424,
              "db.connection": "reader",
              "db.lock_wait_ms": 0.033
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.pendingBackgroundDataByThreadId",
            "traceId": "b6015c72b7276e9695d73faa146aaa62",
            "spanId": "b958fb85e960135e",
            "parentSpanId": "43a9776e3f552125",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698384291163",
            "endTimeUnixNano": "1796047698384297672",
            "durationMs": 0.006509,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.decodeShellSnapshot",
            "traceId": "b6015c72b7276e9695d73faa146aaa62",
            "spanId": "43a9776e3f552125",
            "parentSpanId": "a553d99df704df18",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698384274258",
            "endTimeUnixNano": "1796047698384309741",
            "durationMs": 0.035483,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "b6015c72b7276e9695d73faa146aaa62",
            "spanId": "5194d12409aedb80",
            "parentSpanId": "24b6ba3707da0794",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698384346886",
            "endTimeUnixNano": "1796047698384487266",
            "durationMs": 0.14038,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.035,
              "db.client.connection.wait_time_ms": 0.045067
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectStoreV2.listShells",
            "traceId": "b6015c72b7276e9695d73faa146aaa62",
            "spanId": "24b6ba3707da0794",
            "parentSpanId": "a553d99df704df18",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698384317722",
            "endTimeUnixNano": "1796047698384576419",
            "durationMs": 0.258697,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.readThreads",
            "traceId": "b6015c72b7276e9695d73faa146aaa62",
            "spanId": "a553d99df704df18",
            "parentSpanId": "83a08371d7826818",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698383657136",
            "endTimeUnixNano": "1796047698384587385",
            "durationMs": 0.930249,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "b6015c72b7276e9695d73faa146aaa62",
            "spanId": "ddbd85bc2ab15caa",
            "parentSpanId": "83a08371d7826818",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698384616539",
            "endTimeUnixNano": "1796047698384736198",
            "durationMs": 0.119659,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.028,
              "db.client.connection.wait_time_ms": 0.042573
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "b6015c72b7276e9695d73faa146aaa62",
            "spanId": "da7d34baafa152e3",
            "parentSpanId": "ff0f34e3bd35a431",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698384804139",
            "endTimeUnixNano": "1796047698384922596",
            "durationMs": 0.118457,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT DISTINCT json_extract(payload_json, '$.worktreePath') AS \"worktreePath\"\n      FROM orchestration_v2_projection_threads\n      WHERE json_extract(payload_json, '$.worktreePath') IS NOT NUL\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.043,
              "db.client.connection.wait_time_ms": 0.066389
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "b6015c72b7276e9695d73faa146aaa62",
            "spanId": "8f142d9d36318471",
            "parentSpanId": "b8a6704e1a34546d",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698386720282",
            "endTimeUnixNano": "1796047698388065742",
            "durationMs": 1.34546,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "b6015c72b7276e9695d73faa146aaa62",
            "spanId": "b8a6704e1a34546d",
            "parentSpanId": "e2f292add52965e1",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698386495436",
            "endTimeUnixNano": "1796047698388990744",
            "durationMs": 2.495308,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "b6015c72b7276e9695d73faa146aaa62",
            "spanId": "e2f292add52965e1",
            "parentSpanId": "bf6417ebfb09d628",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698386451480",
            "endTimeUnixNano": "1796047698389208489",
            "durationMs": 2.757009,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo/packages/app",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "b6015c72b7276e9695d73faa146aaa62",
            "spanId": "bf6417ebfb09d628",
            "parentSpanId": "ff0f34e3bd35a431",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698386413634",
            "endTimeUnixNano": "1796047698389233426",
            "durationMs": 2.819792,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "b6015c72b7276e9695d73faa146aaa62",
            "spanId": "9a716dd1789f9a26",
            "parentSpanId": "ff0f34e3bd35a431",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698389520045",
            "endTimeUnixNano": "1796047698389568587",
            "durationMs": 0.048542,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "b6015c72b7276e9695d73faa146aaa62",
            "spanId": "c55de64ef10ce3c8",
            "parentSpanId": "ff0f34e3bd35a431",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698389673754",
            "endTimeUnixNano": "1796047698389703829",
            "durationMs": 0.030075,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "storageCleanup.measureWorktree",
            "traceId": "b6015c72b7276e9695d73faa146aaa62",
            "spanId": "9c8986e2c5b63a39",
            "parentSpanId": "ff0f34e3bd35a431",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698389730689",
            "endTimeUnixNano": "1796047698390397475",
            "durationMs": 0.666786,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.reportOrphanWorktrees",
            "traceId": "b6015c72b7276e9695d73faa146aaa62",
            "spanId": "ff0f34e3bd35a431",
            "parentSpanId": "83a08371d7826818",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698384793613",
            "endTimeUnixNano": "1796047698390438316",
            "durationMs": 5.644703,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanWorktrees",
            "traceId": "b6015c72b7276e9695d73faa146aaa62",
            "spanId": "83a08371d7826818",
            "parentSpanId": "944adfff0b752fa8",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698382994596",
            "endTimeUnixNano": "1796047698390448091",
            "durationMs": 7.453495,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.sweep",
            "traceId": "b6015c72b7276e9695d73faa146aaa62",
            "spanId": "944adfff0b752fa8",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698382571083",
            "endTimeUnixNano": "1796047698391081037",
            "durationMs": 8.509954,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          }
        ]
      },
      {
        "run": 3,
        "warmup": true,
        "elapsedMs": 9.105163000000005,
        "nestedOrphanFound": true,
        "report": {
          "_tag": "Success",
          "value": {
            "trigger": "manual",
            "startedAt": "2026-11-30T14:08:18.392Z",
            "finishedAt": "2026-11-30T14:08:18.400Z",
            "entries": [
              {
                "kind": "worktree",
                "outcome": "kept",
                "reason": "No thread uses this worktree",
                "path": "$FIXTURE/data/worktrees/repository/replay/repo-wt",
                "projectPath": null,
                "threadId": null,
                "threadTitle": null,
                "bytes": 8192,
                "files": null
              }
            ],
            "counts": {
              "removed": 0,
              "kept": 1,
              "failed": 0
            },
            "omittedCount": 0,
            "bytesFreed": 0
          }
        },
        "spans": [
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "97ee29d8399148aea6c9580d62b5e232",
            "spanId": "28520a5e32436261",
            "parentSpanId": "2cf9231a26d7143b",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698392238235",
            "endTimeUnixNano": "1796047698392404283",
            "durationMs": 0.166048,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      WITH RECURSIVE retained_checkpoint_threads(thread_id) AS (\n        SELECT thread_id FROM orchestration_v2_projection_threads WHERE deleted_at IS NULL\n        UNION\n        SELECT json_extract(t\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.043,
              "db.client.connection.wait_time_ms": 0.056815
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanCheckpointRefs",
            "traceId": "97ee29d8399148aea6c9580d62b5e232",
            "spanId": "2cf9231a26d7143b",
            "parentSpanId": "1a189208b77e2396",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698392227379",
            "endTimeUnixNano": "1796047698392443512",
            "durationMs": 0.216133,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.retryLeftovers",
            "traceId": "97ee29d8399148aea6c9580d62b5e232",
            "spanId": "b70abf61f67476dc",
            "parentSpanId": "1a189208b77e2396",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698392464734",
            "endTimeUnixNano": "1796047698392541198",
            "durationMs": 0.076464,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveGitWorktreePath",
            "traceId": "97ee29d8399148aea6c9580d62b5e232",
            "spanId": "f6843f84a5d6a4b6",
            "parentSpanId": "6b3b33d1a3a50ab1",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698392583651",
            "endTimeUnixNano": "1796047698392775168",
            "durationMs": 0.191517,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveWorktreeT3Home",
            "traceId": "97ee29d8399148aea6c9580d62b5e232",
            "spanId": "6b3b33d1a3a50ab1",
            "parentSpanId": "fbc7ba6e6f411adf",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698392577673",
            "endTimeUnixNano": "1796047698392783870",
            "durationMs": 0.206197,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "97ee29d8399148aea6c9580d62b5e232",
            "spanId": "d96aba24204e3fb9",
            "parentSpanId": "fbc7ba6e6f411adf",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698393047534",
            "endTimeUnixNano": "1796047698393167724",
            "durationMs": 0.12019,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n          SELECT t.payload_json, p.workspace_root AS \"workspaceRoot\"\n          FROM orchestration_v2_projection_threads t\n          JOIN projection_projects p ON p.project_id = t.project_id\n         \u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.036,
              "db.client.connection.wait_time_ms": 0.052919
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "BEGIN",
            "traceId": "97ee29d8399148aea6c9580d62b5e232",
            "spanId": "6cd927e0f4d15557",
            "parentSpanId": "2e6868bbabe986e0",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698393294173",
            "endTimeUnixNano": "1796047698393348985",
            "durationMs": 0.054812,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "BEGIN"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "97ee29d8399148aea6c9580d62b5e232",
            "spanId": "b3d30669a67047ab",
            "parentSpanId": "ff5c66f0579e5167",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698393449004",
            "endTimeUnixNano": "1796047698393545588",
            "durationMs": 0.096584,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n            SELECT\n              t.thread_id,\n              t.payload_json,\n              t.fork_run_ids_json,\n              CASE\n                WHEN json_extract(t.payload_json, '$.forkedFrom.type'\u2026[truncated]",
              "db.client.connection.wait_time_ms": 0.012278
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "97ee29d8399148aea6c9580d62b5e232",
            "spanId": "1e4e36386984dca3",
            "parentSpanId": "ff5c66f0579e5167",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698393586970",
            "endTimeUnixNano": "1796047698393635543",
            "durationMs": 0.048573,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n        SELECT MAX(sequence) AS snapshot_sequence\n        FROM orchestration_events\n        WHERE application_event_version = 2\n          AND aggregate_kind = 'thread'\n      ",
              "db.client.connection.wait_time_ms": 0.007702
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readShellSnapshotRows",
            "traceId": "97ee29d8399148aea6c9580d62b5e232",
            "spanId": "ff5c66f0579e5167",
            "parentSpanId": "2e6868bbabe986e0",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698393376045",
            "endTimeUnixNano": "1796047698393653900",
            "durationMs": 0.277855,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "COMMIT",
            "traceId": "97ee29d8399148aea6c9580d62b5e232",
            "spanId": "6a71b03f12a8e41c",
            "parentSpanId": "2e6868bbabe986e0",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698393663795",
            "endTimeUnixNano": "1796047698393696414",
            "durationMs": 0.032619,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "COMMIT"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sql.transaction",
            "traceId": "97ee29d8399148aea6c9580d62b5e232",
            "spanId": "2e6868bbabe986e0",
            "parentSpanId": "2b354db8f26d378f",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698393240032",
            "endTimeUnixNano": "1796047698393721441",
            "durationMs": 0.481409,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.client.connection.wait_time_ms": 0.047621,
              "db.connection": "reader",
              "db.lock_wait_ms": 0.032
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.pendingBackgroundDataByThreadId",
            "traceId": "97ee29d8399148aea6c9580d62b5e232",
            "spanId": "2f12ab02a2da843a",
            "parentSpanId": "48818ec0f9311d97",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698393764746",
            "endTimeUnixNano": "1796047698393770414",
            "durationMs": 0.005668,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.decodeShellSnapshot",
            "traceId": "97ee29d8399148aea6c9580d62b5e232",
            "spanId": "48818ec0f9311d97",
            "parentSpanId": "2b354db8f26d378f",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698393749123",
            "endTimeUnixNano": "1796047698393781311",
            "durationMs": 0.032188,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "97ee29d8399148aea6c9580d62b5e232",
            "spanId": "acaf12149aba82d4",
            "parentSpanId": "ca818cdf80b3dc31",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698393815572",
            "endTimeUnixNano": "1796047698393950153",
            "durationMs": 0.134581,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.034,
              "db.client.connection.wait_time_ms": 0.043084
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectStoreV2.listShells",
            "traceId": "97ee29d8399148aea6c9580d62b5e232",
            "spanId": "ca818cdf80b3dc31",
            "parentSpanId": "2b354db8f26d378f",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698393789373",
            "endTimeUnixNano": "1796047698394031845",
            "durationMs": 0.242472,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.readThreads",
            "traceId": "97ee29d8399148aea6c9580d62b5e232",
            "spanId": "2b354db8f26d378f",
            "parentSpanId": "fbc7ba6e6f411adf",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698393212190",
            "endTimeUnixNano": "1796047698394044063",
            "durationMs": 0.831873,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "97ee29d8399148aea6c9580d62b5e232",
            "spanId": "484e11a4dbc51844",
            "parentSpanId": "fbc7ba6e6f411adf",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698394073247",
            "endTimeUnixNano": "1796047698394361357",
            "durationMs": 0.28811,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.039,
              "db.client.connection.wait_time_ms": 0.051847
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "97ee29d8399148aea6c9580d62b5e232",
            "spanId": "08b014127672dff3",
            "parentSpanId": "6a43a9a27bccc5db",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698394484341",
            "endTimeUnixNano": "1796047698394606423",
            "durationMs": 0.122082,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT DISTINCT json_extract(payload_json, '$.worktreePath') AS \"worktreePath\"\n      FROM orchestration_v2_projection_threads\n      WHERE json_extract(payload_json, '$.worktreePath') IS NOT NUL\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.056,
              "db.client.connection.wait_time_ms": 0.066279
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "97ee29d8399148aea6c9580d62b5e232",
            "spanId": "285437c2dc74894d",
            "parentSpanId": "2f48fc3f371b6105",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698396222027",
            "endTimeUnixNano": "1796047698397695518",
            "durationMs": 1.473491,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "97ee29d8399148aea6c9580d62b5e232",
            "spanId": "2f48fc3f371b6105",
            "parentSpanId": "6a932ede79ed259d",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698396022208",
            "endTimeUnixNano": "1796047698398626289",
            "durationMs": 2.604081,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "97ee29d8399148aea6c9580d62b5e232",
            "spanId": "6a932ede79ed259d",
            "parentSpanId": "0999e8c8c3a63f77",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698395979805",
            "endTimeUnixNano": "1796047698398884925",
            "durationMs": 2.90512,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo/packages/app",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "97ee29d8399148aea6c9580d62b5e232",
            "spanId": "0999e8c8c3a63f77",
            "parentSpanId": "6a43a9a27bccc5db",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698395935479",
            "endTimeUnixNano": "1796047698398912626",
            "durationMs": 2.977147,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "97ee29d8399148aea6c9580d62b5e232",
            "spanId": "91487fd9f5e3dd82",
            "parentSpanId": "6a43a9a27bccc5db",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698399257452",
            "endTimeUnixNano": "1796047698399311873",
            "durationMs": 0.054421,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "97ee29d8399148aea6c9580d62b5e232",
            "spanId": "4c3488af08bfe7aa",
            "parentSpanId": "6a43a9a27bccc5db",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698399417631",
            "endTimeUnixNano": "1796047698399445482",
            "durationMs": 0.027851,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "storageCleanup.measureWorktree",
            "traceId": "97ee29d8399148aea6c9580d62b5e232",
            "spanId": "e46621cd3422dddc",
            "parentSpanId": "6a43a9a27bccc5db",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698399484310",
            "endTimeUnixNano": "1796047698400164326",
            "durationMs": 0.680016,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.reportOrphanWorktrees",
            "traceId": "97ee29d8399148aea6c9580d62b5e232",
            "spanId": "6a43a9a27bccc5db",
            "parentSpanId": "fbc7ba6e6f411adf",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698394472744",
            "endTimeUnixNano": "1796047698400217245",
            "durationMs": 5.744501,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanWorktrees",
            "traceId": "97ee29d8399148aea6c9580d62b5e232",
            "spanId": "fbc7ba6e6f411adf",
            "parentSpanId": "1a189208b77e2396",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698392557522",
            "endTimeUnixNano": "1796047698400229313",
            "durationMs": 7.671791,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.sweep",
            "traceId": "97ee29d8399148aea6c9580d62b5e232",
            "spanId": "1a189208b77e2396",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698392194600",
            "endTimeUnixNano": "1796047698400289654",
            "durationMs": 8.095054,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          }
        ]
      },
      {
        "run": 4,
        "warmup": true,
        "elapsedMs": 10.678714000000014,
        "nestedOrphanFound": true,
        "report": {
          "_tag": "Success",
          "value": {
            "trigger": "manual",
            "startedAt": "2026-11-30T14:08:18.401Z",
            "finishedAt": "2026-11-30T14:08:18.411Z",
            "entries": [
              {
                "kind": "worktree",
                "outcome": "kept",
                "reason": "No thread uses this worktree",
                "path": "$FIXTURE/data/worktrees/repository/replay/repo-wt",
                "projectPath": null,
                "threadId": null,
                "threadTitle": null,
                "bytes": 8192,
                "files": null
              }
            ],
            "counts": {
              "removed": 0,
              "kept": 1,
              "failed": 0
            },
            "omittedCount": 0,
            "bytesFreed": 0
          }
        },
        "spans": [
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "d2c20a290bd978f8066e62658e259ad7",
            "spanId": "db58d241111e8551",
            "parentSpanId": "f94d78dcf35a5f0e",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698401334034",
            "endTimeUnixNano": "1796047698401500402",
            "durationMs": 0.166368,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      WITH RECURSIVE retained_checkpoint_threads(thread_id) AS (\n        SELECT thread_id FROM orchestration_v2_projection_threads WHERE deleted_at IS NULL\n        UNION\n        SELECT json_extract(t\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.043,
              "db.client.connection.wait_time_ms": 0.057215
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanCheckpointRefs",
            "traceId": "d2c20a290bd978f8066e62658e259ad7",
            "spanId": "f94d78dcf35a5f0e",
            "parentSpanId": "e905db9552dda201",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698401321946",
            "endTimeUnixNano": "1796047698401538870",
            "durationMs": 0.216924,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.retryLeftovers",
            "traceId": "d2c20a290bd978f8066e62658e259ad7",
            "spanId": "32a427c94b0c48b2",
            "parentSpanId": "e905db9552dda201",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698401558089",
            "endTimeUnixNano": "1796047698401631678",
            "durationMs": 0.073589,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveGitWorktreePath",
            "traceId": "d2c20a290bd978f8066e62658e259ad7",
            "spanId": "00177ff2f7537e0e",
            "parentSpanId": "0728a37c0185986a",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698401671999",
            "endTimeUnixNano": "1796047698401842373",
            "durationMs": 0.170374,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveWorktreeT3Home",
            "traceId": "d2c20a290bd978f8066e62658e259ad7",
            "spanId": "0728a37c0185986a",
            "parentSpanId": "76a7753bbc71231c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698401664908",
            "endTimeUnixNano": "1796047698401850095",
            "durationMs": 0.185187,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "d2c20a290bd978f8066e62658e259ad7",
            "spanId": "078bab545c6c24f8",
            "parentSpanId": "76a7753bbc71231c",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698403301834",
            "endTimeUnixNano": "1796047698404626352",
            "durationMs": 1.324518,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n          SELECT t.payload_json, p.workspace_root AS \"workspaceRoot\"\n          FROM orchestration_v2_projection_threads t\n          JOIN projection_projects p ON p.project_id = t.project_id\n         \u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.027,
              "db.client.connection.wait_time_ms": 0.041722
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "BEGIN",
            "traceId": "d2c20a290bd978f8066e62658e259ad7",
            "spanId": "4ed5ab5f34ea7634",
            "parentSpanId": "c39bc10120319e96",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698404763818",
            "endTimeUnixNano": "1796047698404847102",
            "durationMs": 0.083284,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "BEGIN"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "d2c20a290bd978f8066e62658e259ad7",
            "spanId": "c5b0a60a9477f78f",
            "parentSpanId": "285e6e97f884ec29",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698404948624",
            "endTimeUnixNano": "1796047698405083475",
            "durationMs": 0.134851,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n            SELECT\n              t.thread_id,\n              t.payload_json,\n              t.fork_run_ids_json,\n              CASE\n                WHEN json_extract(t.payload_json, '$.forkedFrom.type'\u2026[truncated]",
              "db.client.connection.wait_time_ms": 0.013059
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "d2c20a290bd978f8066e62658e259ad7",
            "spanId": "cb8c8e0110a9f13a",
            "parentSpanId": "285e6e97f884ec29",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698405134832",
            "endTimeUnixNano": "1796047698405196414",
            "durationMs": 0.061582,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n        SELECT MAX(sequence) AS snapshot_sequence\n        FROM orchestration_events\n        WHERE application_event_version = 2\n          AND aggregate_kind = 'thread'\n      ",
              "db.client.connection.wait_time_ms": 0.010956
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readShellSnapshotRows",
            "traceId": "d2c20a290bd978f8066e62658e259ad7",
            "spanId": "285e6e97f884ec29",
            "parentSpanId": "c39bc10120319e96",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698404874203",
            "endTimeUnixNano": "1796047698405224826",
            "durationMs": 0.350623,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "COMMIT",
            "traceId": "d2c20a290bd978f8066e62658e259ad7",
            "spanId": "6aa47fcb313407ae",
            "parentSpanId": "c39bc10120319e96",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698405235983",
            "endTimeUnixNano": "1796047698405275482",
            "durationMs": 0.039499,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "COMMIT"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sql.transaction",
            "traceId": "d2c20a290bd978f8066e62658e259ad7",
            "spanId": "c39bc10120319e96",
            "parentSpanId": "944ee344d7699259",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698404693282",
            "endTimeUnixNano": "1796047698405299648",
            "durationMs": 0.606366,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.client.connection.wait_time_ms": 0.063986,
              "db.connection": "reader",
              "db.lock_wait_ms": 0.046
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.pendingBackgroundDataByThreadId",
            "traceId": "d2c20a290bd978f8066e62658e259ad7",
            "spanId": "abe2b08f0dff4901",
            "parentSpanId": "30bf0fe41ec1a842",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698405346238",
            "endTimeUnixNano": "1796047698405351896",
            "durationMs": 0.005658,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.decodeShellSnapshot",
            "traceId": "d2c20a290bd978f8066e62658e259ad7",
            "spanId": "30bf0fe41ec1a842",
            "parentSpanId": "944ee344d7699259",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698405329002",
            "endTimeUnixNano": "1796047698405375982",
            "durationMs": 0.04698,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "d2c20a290bd978f8066e62658e259ad7",
            "spanId": "c022edd686a3f2e3",
            "parentSpanId": "ec0e9d14c7b055eb",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698405412917",
            "endTimeUnixNano": "1796047698405555270",
            "durationMs": 0.142353,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.039,
              "db.client.connection.wait_time_ms": 0.049494
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectStoreV2.listShells",
            "traceId": "d2c20a290bd978f8066e62658e259ad7",
            "spanId": "ec0e9d14c7b055eb",
            "parentSpanId": "944ee344d7699259",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698405385016",
            "endTimeUnixNano": "1796047698405624794",
            "durationMs": 0.239778,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.readThreads",
            "traceId": "d2c20a290bd978f8066e62658e259ad7",
            "spanId": "944ee344d7699259",
            "parentSpanId": "76a7753bbc71231c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698404666742",
            "endTimeUnixNano": "1796047698405637944",
            "durationMs": 0.971202,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "d2c20a290bd978f8066e62658e259ad7",
            "spanId": "b546b81e52164cd2",
            "parentSpanId": "76a7753bbc71231c",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698405670161",
            "endTimeUnixNano": "1796047698405790612",
            "durationMs": 0.120451,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.029,
              "db.client.connection.wait_time_ms": 0.041903
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "d2c20a290bd978f8066e62658e259ad7",
            "spanId": "21031528667ee83f",
            "parentSpanId": "043961d1d8ca71d2",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698405861908",
            "endTimeUnixNano": "1796047698405959464",
            "durationMs": 0.097556,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT DISTINCT json_extract(payload_json, '$.worktreePath') AS \"worktreePath\"\n      FROM orchestration_v2_projection_threads\n      WHERE json_extract(payload_json, '$.worktreePath') IS NOT NUL\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.039,
              "db.client.connection.wait_time_ms": 0.050115
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "d2c20a290bd978f8066e62658e259ad7",
            "spanId": "e44acf381eee4299",
            "parentSpanId": "ee683c8c313889bc",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698407464993",
            "endTimeUnixNano": "1796047698408783262",
            "durationMs": 1.318269,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "d2c20a290bd978f8066e62658e259ad7",
            "spanId": "ee683c8c313889bc",
            "parentSpanId": "257aaa5a9dd27d1b",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698407277423",
            "endTimeUnixNano": "1796047698409679671",
            "durationMs": 2.402248,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "d2c20a290bd978f8066e62658e259ad7",
            "spanId": "257aaa5a9dd27d1b",
            "parentSpanId": "3d75f87035984d40",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698407230122",
            "endTimeUnixNano": "1796047698409877858",
            "durationMs": 2.647736,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo/packages/app",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "d2c20a290bd978f8066e62658e259ad7",
            "spanId": "3d75f87035984d40",
            "parentSpanId": "043961d1d8ca71d2",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698407195691",
            "endTimeUnixNano": "1796047698409901062",
            "durationMs": 2.705371,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "d2c20a290bd978f8066e62658e259ad7",
            "spanId": "218ad9b94f0b0667",
            "parentSpanId": "043961d1d8ca71d2",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698410192858",
            "endTimeUnixNano": "1796047698410234951",
            "durationMs": 0.042093,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "d2c20a290bd978f8066e62658e259ad7",
            "spanId": "d9c5cd97e0354717",
            "parentSpanId": "043961d1d8ca71d2",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698410332877",
            "endTimeUnixNano": "1796047698410362802",
            "durationMs": 0.029925,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "storageCleanup.measureWorktree",
            "traceId": "d2c20a290bd978f8066e62658e259ad7",
            "spanId": "2b12aa36dd408126",
            "parentSpanId": "043961d1d8ca71d2",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698410406657",
            "endTimeUnixNano": "1796047698410912183",
            "durationMs": 0.505526,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.reportOrphanWorktrees",
            "traceId": "d2c20a290bd978f8066e62658e259ad7",
            "spanId": "043961d1d8ca71d2",
            "parentSpanId": "76a7753bbc71231c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698405848178",
            "endTimeUnixNano": "1796047698410955588",
            "durationMs": 5.10741,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanWorktrees",
            "traceId": "d2c20a290bd978f8066e62658e259ad7",
            "spanId": "76a7753bbc71231c",
            "parentSpanId": "e905db9552dda201",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698401645429",
            "endTimeUnixNano": "1796047698410985122",
            "durationMs": 9.339693,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.sweep",
            "traceId": "d2c20a290bd978f8066e62658e259ad7",
            "spanId": "e905db9552dda201",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698401298611",
            "endTimeUnixNano": "1796047698411026213",
            "durationMs": 9.727602,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          }
        ]
      },
      {
        "run": 5,
        "warmup": false,
        "elapsedMs": 8.130606999999998,
        "nestedOrphanFound": true,
        "report": {
          "_tag": "Success",
          "value": {
            "trigger": "manual",
            "startedAt": "2026-11-30T14:08:18.412Z",
            "finishedAt": "2026-11-30T14:08:18.419Z",
            "entries": [
              {
                "kind": "worktree",
                "outcome": "kept",
                "reason": "No thread uses this worktree",
                "path": "$FIXTURE/data/worktrees/repository/replay/repo-wt",
                "projectPath": null,
                "threadId": null,
                "threadTitle": null,
                "bytes": 8192,
                "files": null
              }
            ],
            "counts": {
              "removed": 0,
              "kept": 1,
              "failed": 0
            },
            "omittedCount": 0,
            "bytesFreed": 0
          }
        },
        "spans": [
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "c46de6f8a15dcdaa6e3b7360f9c9b3fd",
            "spanId": "eeb4b7ff99c10b06",
            "parentSpanId": "c353d1b1b2272c31",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698411985707",
            "endTimeUnixNano": "1796047698412152656",
            "durationMs": 0.166949,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      WITH RECURSIVE retained_checkpoint_threads(thread_id) AS (\n        SELECT thread_id FROM orchestration_v2_projection_threads WHERE deleted_at IS NULL\n        UNION\n        SELECT json_extract(t\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.042,
              "db.client.connection.wait_time_ms": 0.055613
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanCheckpointRefs",
            "traceId": "c46de6f8a15dcdaa6e3b7360f9c9b3fd",
            "spanId": "c353d1b1b2272c31",
            "parentSpanId": "8a063e5cccf19645",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698411957284",
            "endTimeUnixNano": "1796047698412201479",
            "durationMs": 0.244195,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.retryLeftovers",
            "traceId": "c46de6f8a15dcdaa6e3b7360f9c9b3fd",
            "spanId": "bf30b118a43c3cfb",
            "parentSpanId": "8a063e5cccf19645",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698412219937",
            "endTimeUnixNano": "1796047698412299896",
            "durationMs": 0.079959,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveGitWorktreePath",
            "traceId": "c46de6f8a15dcdaa6e3b7360f9c9b3fd",
            "spanId": "1d083d239986ff79",
            "parentSpanId": "9587fe6640c9e8b1",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698412346786",
            "endTimeUnixNano": "1796047698412519654",
            "durationMs": 0.172868,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveWorktreeT3Home",
            "traceId": "c46de6f8a15dcdaa6e3b7360f9c9b3fd",
            "spanId": "9587fe6640c9e8b1",
            "parentSpanId": "2328ac93eb47e6ba",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698412340406",
            "endTimeUnixNano": "1796047698412529429",
            "durationMs": 0.189023,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "c46de6f8a15dcdaa6e3b7360f9c9b3fd",
            "spanId": "dade6abd2283a071",
            "parentSpanId": "2328ac93eb47e6ba",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698412788676",
            "endTimeUnixNano": "1796047698412898450",
            "durationMs": 0.109774,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n          SELECT t.payload_json, p.workspace_root AS \"workspaceRoot\"\n          FROM orchestration_v2_projection_threads t\n          JOIN projection_projects p ON p.project_id = t.project_id\n         \u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.036,
              "db.client.connection.wait_time_ms": 0.052809
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "BEGIN",
            "traceId": "c46de6f8a15dcdaa6e3b7360f9c9b3fd",
            "spanId": "d6761c102881ec91",
            "parentSpanId": "24bd3738f32930fc",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698413042325",
            "endTimeUnixNano": "1796047698413097718",
            "durationMs": 0.055393,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "BEGIN"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "c46de6f8a15dcdaa6e3b7360f9c9b3fd",
            "spanId": "57175c5b6c1491af",
            "parentSpanId": "c146ee9f42a067b4",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698413202645",
            "endTimeUnixNano": "1796047698413296525",
            "durationMs": 0.09388,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n            SELECT\n              t.thread_id,\n              t.payload_json,\n              t.fork_run_ids_json,\n              CASE\n                WHEN json_extract(t.payload_json, '$.forkedFrom.type'\u2026[truncated]",
              "db.client.connection.wait_time_ms": 0.012688
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "c46de6f8a15dcdaa6e3b7360f9c9b3fd",
            "spanId": "698153094707bf74",
            "parentSpanId": "c146ee9f42a067b4",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698413342974",
            "endTimeUnixNano": "1796047698413394221",
            "durationMs": 0.051247,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n        SELECT MAX(sequence) AS snapshot_sequence\n        FROM orchestration_events\n        WHERE application_event_version = 2\n          AND aggregate_kind = 'thread'\n      ",
              "db.client.connection.wait_time_ms": 0.010696
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readShellSnapshotRows",
            "traceId": "c46de6f8a15dcdaa6e3b7360f9c9b3fd",
            "spanId": "c146ee9f42a067b4",
            "parentSpanId": "24bd3738f32930fc",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698413129916",
            "endTimeUnixNano": "1796047698413414521",
            "durationMs": 0.284605,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "COMMIT",
            "traceId": "c46de6f8a15dcdaa6e3b7360f9c9b3fd",
            "spanId": "6ad608e1e585eb88",
            "parentSpanId": "24bd3738f32930fc",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698413423605",
            "endTimeUnixNano": "1796047698413455733",
            "durationMs": 0.032128,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "COMMIT"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sql.transaction",
            "traceId": "c46de6f8a15dcdaa6e3b7360f9c9b3fd",
            "spanId": "24bd3738f32930fc",
            "parentSpanId": "6303e435ab7a98d6",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698412986492",
            "endTimeUnixNano": "1796047698413477765",
            "durationMs": 0.491273,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.client.connection.wait_time_ms": 0.049313,
              "db.connection": "reader",
              "db.lock_wait_ms": 0.033
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.pendingBackgroundDataByThreadId",
            "traceId": "c46de6f8a15dcdaa6e3b7360f9c9b3fd",
            "spanId": "6fda558fe8642add",
            "parentSpanId": "8fe8afda3846a8a3",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698413523354",
            "endTimeUnixNano": "1796047698413529533",
            "durationMs": 0.006179,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.decodeShellSnapshot",
            "traceId": "c46de6f8a15dcdaa6e3b7360f9c9b3fd",
            "spanId": "8fe8afda3846a8a3",
            "parentSpanId": "6303e435ab7a98d6",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698413503454",
            "endTimeUnixNano": "1796047698413543013",
            "durationMs": 0.039559,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "c46de6f8a15dcdaa6e3b7360f9c9b3fd",
            "spanId": "7a1f3962744bc8e6",
            "parentSpanId": "f7a06502a0ff3624",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698413580830",
            "endTimeUnixNano": "1796047698413718555",
            "durationMs": 0.137725,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.036,
              "db.client.connection.wait_time_ms": 0.045167
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectStoreV2.listShells",
            "traceId": "c46de6f8a15dcdaa6e3b7360f9c9b3fd",
            "spanId": "f7a06502a0ff3624",
            "parentSpanId": "6303e435ab7a98d6",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698413553499",
            "endTimeUnixNano": "1796047698413789521",
            "durationMs": 0.236022,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.readThreads",
            "traceId": "c46de6f8a15dcdaa6e3b7360f9c9b3fd",
            "spanId": "6303e435ab7a98d6",
            "parentSpanId": "2328ac93eb47e6ba",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698412943898",
            "endTimeUnixNano": "1796047698413805025",
            "durationMs": 0.861127,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "c46de6f8a15dcdaa6e3b7360f9c9b3fd",
            "spanId": "99cded3f93303f5b",
            "parentSpanId": "2328ac93eb47e6ba",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698413835981",
            "endTimeUnixNano": "1796047698413959966",
            "durationMs": 0.123985,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.029,
              "db.client.connection.wait_time_ms": 0.041962
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "c46de6f8a15dcdaa6e3b7360f9c9b3fd",
            "spanId": "bef4b0498360ebaf",
            "parentSpanId": "47f531a5e3e63ae1",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698414050040",
            "endTimeUnixNano": "1796047698414158633",
            "durationMs": 0.108593,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT DISTINCT json_extract(payload_json, '$.worktreePath') AS \"worktreePath\"\n      FROM orchestration_v2_projection_threads\n      WHERE json_extract(payload_json, '$.worktreePath') IS NOT NUL\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.041,
              "db.client.connection.wait_time_ms": 0.050446
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "c46de6f8a15dcdaa6e3b7360f9c9b3fd",
            "spanId": "b44788a45f0356a2",
            "parentSpanId": "adf4128faad40e92",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698415584232",
            "endTimeUnixNano": "1796047698416765547",
            "durationMs": 1.181315,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "c46de6f8a15dcdaa6e3b7360f9c9b3fd",
            "spanId": "adf4128faad40e92",
            "parentSpanId": "67559099cd9220fc",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698415407028",
            "endTimeUnixNano": "1796047698417805751",
            "durationMs": 2.398723,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "c46de6f8a15dcdaa6e3b7360f9c9b3fd",
            "spanId": "67559099cd9220fc",
            "parentSpanId": "2db1a9282050ecec",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698415362611",
            "endTimeUnixNano": "1796047698418015795",
            "durationMs": 2.653184,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo/packages/app",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "c46de6f8a15dcdaa6e3b7360f9c9b3fd",
            "spanId": "2db1a9282050ecec",
            "parentSpanId": "47f531a5e3e63ae1",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698415329071",
            "endTimeUnixNano": "1796047698418061453",
            "durationMs": 2.732382,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "c46de6f8a15dcdaa6e3b7360f9c9b3fd",
            "spanId": "d2109a4d1465c3bc",
            "parentSpanId": "47f531a5e3e63ae1",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698418378737",
            "endTimeUnixNano": "1796047698418430214",
            "durationMs": 0.051477,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "c46de6f8a15dcdaa6e3b7360f9c9b3fd",
            "spanId": "66d649c4b33339c2",
            "parentSpanId": "47f531a5e3e63ae1",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698418531726",
            "endTimeUnixNano": "1796047698418560559",
            "durationMs": 0.028833,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "storageCleanup.measureWorktree",
            "traceId": "c46de6f8a15dcdaa6e3b7360f9c9b3fd",
            "spanId": "5f3dcc09a49cb00d",
            "parentSpanId": "47f531a5e3e63ae1",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698418587349",
            "endTimeUnixNano": "1796047698419107766",
            "durationMs": 0.520417,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.reportOrphanWorktrees",
            "traceId": "c46de6f8a15dcdaa6e3b7360f9c9b3fd",
            "spanId": "47f531a5e3e63ae1",
            "parentSpanId": "2328ac93eb47e6ba",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698414039645",
            "endTimeUnixNano": "1796047698419143700",
            "durationMs": 5.104055,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanWorktrees",
            "traceId": "c46de6f8a15dcdaa6e3b7360f9c9b3fd",
            "spanId": "2328ac93eb47e6ba",
            "parentSpanId": "8a063e5cccf19645",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698412316120",
            "endTimeUnixNano": "1796047698419153685",
            "durationMs": 6.837565,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.sweep",
            "traceId": "c46de6f8a15dcdaa6e3b7360f9c9b3fd",
            "spanId": "8a063e5cccf19645",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698411936513",
            "endTimeUnixNano": "1796047698419192413",
            "durationMs": 7.2559,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          }
        ]
      },
      {
        "run": 6,
        "warmup": false,
        "elapsedMs": 8.176285000000007,
        "nestedOrphanFound": true,
        "report": {
          "_tag": "Success",
          "value": {
            "trigger": "manual",
            "startedAt": "2026-11-30T14:08:18.420Z",
            "finishedAt": "2026-11-30T14:08:18.427Z",
            "entries": [
              {
                "kind": "worktree",
                "outcome": "kept",
                "reason": "No thread uses this worktree",
                "path": "$FIXTURE/data/worktrees/repository/replay/repo-wt",
                "projectPath": null,
                "threadId": null,
                "threadTitle": null,
                "bytes": 8192,
                "files": null
              }
            ],
            "counts": {
              "removed": 0,
              "kept": 1,
              "failed": 0
            },
            "omittedCount": 0,
            "bytesFreed": 0
          }
        },
        "spans": [
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "6d9b3bf17567186b605a7d64c61cfab6",
            "spanId": "75162ed8fa658452",
            "parentSpanId": "be271d275fd78f2f",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698420127580",
            "endTimeUnixNano": "1796047698420284975",
            "durationMs": 0.157395,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      WITH RECURSIVE retained_checkpoint_threads(thread_id) AS (\n        SELECT thread_id FROM orchestration_v2_projection_threads WHERE deleted_at IS NULL\n        UNION\n        SELECT json_extract(t\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.042,
              "db.client.connection.wait_time_ms": 0.054982
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanCheckpointRefs",
            "traceId": "6d9b3bf17567186b605a7d64c61cfab6",
            "spanId": "be271d275fd78f2f",
            "parentSpanId": "b353b1971dd72aa9",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698420115011",
            "endTimeUnixNano": "1796047698420325836",
            "durationMs": 0.210825,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.retryLeftovers",
            "traceId": "6d9b3bf17567186b605a7d64c61cfab6",
            "spanId": "c90401684beefaf9",
            "parentSpanId": "b353b1971dd72aa9",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698420345465",
            "endTimeUnixNano": "1796047698420419075",
            "durationMs": 0.07361,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveGitWorktreePath",
            "traceId": "6d9b3bf17567186b605a7d64c61cfab6",
            "spanId": "3c75e8eeeabfc30e",
            "parentSpanId": "6199320ed563436d",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698420463171",
            "endTimeUnixNano": "1796047698420634447",
            "durationMs": 0.171276,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveWorktreeT3Home",
            "traceId": "6d9b3bf17567186b605a7d64c61cfab6",
            "spanId": "6199320ed563436d",
            "parentSpanId": "1cb3cfbc748ccd27",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698420456391",
            "endTimeUnixNano": "1796047698420643020",
            "durationMs": 0.186629,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "6d9b3bf17567186b605a7d64c61cfab6",
            "spanId": "664f162f684e3bc5",
            "parentSpanId": "1cb3cfbc748ccd27",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698420869879",
            "endTimeUnixNano": "1796047698421007605",
            "durationMs": 0.137726,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n          SELECT t.payload_json, p.workspace_root AS \"workspaceRoot\"\n          FROM orchestration_v2_projection_threads t\n          JOIN projection_projects p ON p.project_id = t.project_id\n         \u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.05,
              "db.client.connection.wait_time_ms": 0.065067
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "BEGIN",
            "traceId": "6d9b3bf17567186b605a7d64c61cfab6",
            "spanId": "0244599a73dec4a2",
            "parentSpanId": "6ef008863fa16f3b",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698421155616",
            "endTimeUnixNano": "1796047698421209817",
            "durationMs": 0.054201,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "BEGIN"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "6d9b3bf17567186b605a7d64c61cfab6",
            "spanId": "9164d723a2a59a9a",
            "parentSpanId": "68f0a7f18be132ee",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698421310497",
            "endTimeUnixNano": "1796047698421399260",
            "durationMs": 0.088763,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n            SELECT\n              t.thread_id,\n              t.payload_json,\n              t.fork_run_ids_json,\n              CASE\n                WHEN json_extract(t.payload_json, '$.forkedFrom.type'\u2026[truncated]",
              "db.client.connection.wait_time_ms": 0.012008
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "6d9b3bf17567186b605a7d64c61cfab6",
            "spanId": "982f26f213ccac43",
            "parentSpanId": "68f0a7f18be132ee",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698421438709",
            "endTimeUnixNano": "1796047698421486139",
            "durationMs": 0.04743,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n        SELECT MAX(sequence) AS snapshot_sequence\n        FROM orchestration_events\n        WHERE application_event_version = 2\n          AND aggregate_kind = 'thread'\n      ",
              "db.client.connection.wait_time_ms": 0.008021
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readShellSnapshotRows",
            "traceId": "6d9b3bf17567186b605a7d64c61cfab6",
            "spanId": "68f0a7f18be132ee",
            "parentSpanId": "6ef008863fa16f3b",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698421234423",
            "endTimeUnixNano": "1796047698421513100",
            "durationMs": 0.278677,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "COMMIT",
            "traceId": "6d9b3bf17567186b605a7d64c61cfab6",
            "spanId": "e0f8d9c63f56a51b",
            "parentSpanId": "6ef008863fa16f3b",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698421522404",
            "endTimeUnixNano": "1796047698421557596",
            "durationMs": 0.035192,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "COMMIT"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sql.transaction",
            "traceId": "6d9b3bf17567186b605a7d64c61cfab6",
            "spanId": "6ef008863fa16f3b",
            "parentSpanId": "a56d6c3acd345ee0",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698421095346",
            "endTimeUnixNano": "1796047698421578778",
            "durationMs": 0.483432,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.client.connection.wait_time_ms": 0.054321,
              "db.connection": "reader",
              "db.lock_wait_ms": 0.032
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.pendingBackgroundDataByThreadId",
            "traceId": "6d9b3bf17567186b605a7d64c61cfab6",
            "spanId": "769f4b57c88b9845",
            "parentSpanId": "312981658bc050cb",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698421626038",
            "endTimeUnixNano": "1796047698421636374",
            "durationMs": 0.010336,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.decodeShellSnapshot",
            "traceId": "6d9b3bf17567186b605a7d64c61cfab6",
            "spanId": "312981658bc050cb",
            "parentSpanId": "a56d6c3acd345ee0",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698421604406",
            "endTimeUnixNano": "1796047698421645938",
            "durationMs": 0.041532,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "6d9b3bf17567186b605a7d64c61cfab6",
            "spanId": "79abc5573b6c69a8",
            "parentSpanId": "9136647f723f7cf5",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698421680540",
            "endTimeUnixNano": "1796047698421800379",
            "durationMs": 0.119839,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.04,
              "db.client.connection.wait_time_ms": 0.049534
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectStoreV2.listShells",
            "traceId": "6d9b3bf17567186b605a7d64c61cfab6",
            "spanId": "9136647f723f7cf5",
            "parentSpanId": "a56d6c3acd345ee0",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698421654331",
            "endTimeUnixNano": "1796047698421881751",
            "durationMs": 0.22742,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.readThreads",
            "traceId": "6d9b3bf17567186b605a7d64c61cfab6",
            "spanId": "a56d6c3acd345ee0",
            "parentSpanId": "1cb3cfbc748ccd27",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698421050478",
            "endTimeUnixNano": "1796047698421890884",
            "durationMs": 0.840406,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "6d9b3bf17567186b605a7d64c61cfab6",
            "spanId": "53e070eb8f920511",
            "parentSpanId": "1cb3cfbc748ccd27",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698421917644",
            "endTimeUnixNano": "1796047698422065835",
            "durationMs": 0.148191,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.028,
              "db.client.connection.wait_time_ms": 0.041742
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "6d9b3bf17567186b605a7d64c61cfab6",
            "spanId": "0102da788efd47ea",
            "parentSpanId": "3a1fa4057ee59557",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698422146977",
            "endTimeUnixNano": "1796047698422253406",
            "durationMs": 0.106429,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT DISTINCT json_extract(payload_json, '$.worktreePath') AS \"worktreePath\"\n      FROM orchestration_v2_projection_threads\n      WHERE json_extract(payload_json, '$.worktreePath') IS NOT NUL\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.042,
              "db.client.connection.wait_time_ms": 0.051977
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "6d9b3bf17567186b605a7d64c61cfab6",
            "spanId": "0f0ff16a1b988a7d",
            "parentSpanId": "4a6b054ab6b06e73",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698423725345",
            "endTimeUnixNano": "1796047698425237474",
            "durationMs": 1.512129,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "6d9b3bf17567186b605a7d64c61cfab6",
            "spanId": "4a6b054ab6b06e73",
            "parentSpanId": "a6b46e7c8b782efa",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698423536563",
            "endTimeUnixNano": "1796047698426056888",
            "durationMs": 2.520325,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "6d9b3bf17567186b605a7d64c61cfab6",
            "spanId": "a6b46e7c8b782efa",
            "parentSpanId": "26839e4e8ec53fe9",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698423490003",
            "endTimeUnixNano": "1796047698426276566",
            "durationMs": 2.786563,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo/packages/app",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "6d9b3bf17567186b605a7d64c61cfab6",
            "spanId": "26839e4e8ec53fe9",
            "parentSpanId": "3a1fa4057ee59557",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698423457875",
            "endTimeUnixNano": "1796047698426317297",
            "durationMs": 2.859422,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "6d9b3bf17567186b605a7d64c61cfab6",
            "spanId": "bd28a61fd41ece85",
            "parentSpanId": "3a1fa4057ee59557",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698426583014",
            "endTimeUnixNano": "1796047698426623855",
            "durationMs": 0.040841,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "6d9b3bf17567186b605a7d64c61cfab6",
            "spanId": "5bea7986f340409a",
            "parentSpanId": "3a1fa4057ee59557",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698426713709",
            "endTimeUnixNano": "1796047698426745026",
            "durationMs": 0.031317,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "storageCleanup.measureWorktree",
            "traceId": "6d9b3bf17567186b605a7d64c61cfab6",
            "spanId": "7536dbbd0805ed13",
            "parentSpanId": "3a1fa4057ee59557",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698426769743",
            "endTimeUnixNano": "1796047698427285003",
            "durationMs": 0.51526,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.reportOrphanWorktrees",
            "traceId": "6d9b3bf17567186b605a7d64c61cfab6",
            "spanId": "3a1fa4057ee59557",
            "parentSpanId": "1cb3cfbc748ccd27",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698422136841",
            "endTimeUnixNano": "1796047698427319214",
            "durationMs": 5.182373,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanWorktrees",
            "traceId": "6d9b3bf17567186b605a7d64c61cfab6",
            "spanId": "1cb3cfbc748ccd27",
            "parentSpanId": "b353b1971dd72aa9",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698420432495",
            "endTimeUnixNano": "1796047698427328047",
            "durationMs": 6.895552,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.sweep",
            "traceId": "6d9b3bf17567186b605a7d64c61cfab6",
            "spanId": "b353b1971dd72aa9",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698420090464",
            "endTimeUnixNano": "1796047698427359744",
            "durationMs": 7.26928,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          }
        ]
      },
      {
        "run": 7,
        "warmup": false,
        "elapsedMs": 7.938990000000018,
        "nestedOrphanFound": true,
        "report": {
          "_tag": "Success",
          "value": {
            "trigger": "manual",
            "startedAt": "2026-11-30T14:08:18.428Z",
            "finishedAt": "2026-11-30T14:08:18.435Z",
            "entries": [
              {
                "kind": "worktree",
                "outcome": "kept",
                "reason": "No thread uses this worktree",
                "path": "$FIXTURE/data/worktrees/repository/replay/repo-wt",
                "projectPath": null,
                "threadId": null,
                "threadTitle": null,
                "bytes": 8192,
                "files": null
              }
            ],
            "counts": {
              "removed": 0,
              "kept": 1,
              "failed": 0
            },
            "omittedCount": 0,
            "bytesFreed": 0
          }
        },
        "spans": [
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "9ec0f5ca952fe67219fd505524169f41",
            "spanId": "a598eedb8158051f",
            "parentSpanId": "214c0e31548b164c",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698428343163",
            "endTimeUnixNano": "1796047698428510954",
            "durationMs": 0.167791,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      WITH RECURSIVE retained_checkpoint_threads(thread_id) AS (\n        SELECT thread_id FROM orchestration_v2_projection_threads WHERE deleted_at IS NULL\n        UNION\n        SELECT json_extract(t\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.04,
              "db.client.connection.wait_time_ms": 0.057066
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanCheckpointRefs",
            "traceId": "9ec0f5ca952fe67219fd505524169f41",
            "spanId": "214c0e31548b164c",
            "parentSpanId": "4ca94896105a07f5",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698428333008",
            "endTimeUnixNano": "1796047698428546467",
            "durationMs": 0.213459,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.retryLeftovers",
            "traceId": "9ec0f5ca952fe67219fd505524169f41",
            "spanId": "9a95728591e747bb",
            "parentSpanId": "4ca94896105a07f5",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698428564123",
            "endTimeUnixNano": "1796047698428634669",
            "durationMs": 0.070546,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveGitWorktreePath",
            "traceId": "9ec0f5ca952fe67219fd505524169f41",
            "spanId": "88fe8739a598e3e5",
            "parentSpanId": "fe939e6ee26bcb81",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698428673547",
            "endTimeUnixNano": "1796047698428842690",
            "durationMs": 0.169143,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveWorktreeT3Home",
            "traceId": "9ec0f5ca952fe67219fd505524169f41",
            "spanId": "fe939e6ee26bcb81",
            "parentSpanId": "9928345c5ce993d3",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698428667207",
            "endTimeUnixNano": "1796047698428851272",
            "durationMs": 0.184065,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "9ec0f5ca952fe67219fd505524169f41",
            "spanId": "544d93905fc6415d",
            "parentSpanId": "9928345c5ce993d3",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698429072483",
            "endTimeUnixNano": "1796047698429188857",
            "durationMs": 0.116374,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n          SELECT t.payload_json, p.workspace_root AS \"workspaceRoot\"\n          FROM orchestration_v2_projection_threads t\n          JOIN projection_projects p ON p.project_id = t.project_id\n         \u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.042,
              "db.client.connection.wait_time_ms": 0.057696
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "BEGIN",
            "traceId": "9ec0f5ca952fe67219fd505524169f41",
            "spanId": "b992393b63751059",
            "parentSpanId": "f1e2312d3d8b1c1f",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698429307754",
            "endTimeUnixNano": "1796047698429358140",
            "durationMs": 0.050386,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "BEGIN"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "9ec0f5ca952fe67219fd505524169f41",
            "spanId": "18806dee117f82fd",
            "parentSpanId": "88bef8be8975c738",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698429453191",
            "endTimeUnixNano": "1796047698429543497",
            "durationMs": 0.090306,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n            SELECT\n              t.thread_id,\n              t.payload_json,\n              t.fork_run_ids_json,\n              CASE\n                WHEN json_extract(t.payload_json, '$.forkedFrom.type'\u2026[truncated]",
              "db.client.connection.wait_time_ms": 0.011998
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "9ec0f5ca952fe67219fd505524169f41",
            "spanId": "a39bdb26c9b25681",
            "parentSpanId": "88bef8be8975c738",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698429580392",
            "endTimeUnixNano": "1796047698429630456",
            "durationMs": 0.050064,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n        SELECT MAX(sequence) AS snapshot_sequence\n        FROM orchestration_events\n        WHERE application_event_version = 2\n          AND aggregate_kind = 'thread'\n      ",
              "db.client.connection.wait_time_ms": 0.008693
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readShellSnapshotRows",
            "traceId": "9ec0f5ca952fe67219fd505524169f41",
            "spanId": "88bef8be8975c738",
            "parentSpanId": "f1e2312d3d8b1c1f",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698429381775",
            "endTimeUnixNano": "1796047698429644568",
            "durationMs": 0.262793,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "COMMIT",
            "traceId": "9ec0f5ca952fe67219fd505524169f41",
            "spanId": "eee5624df4980ea0",
            "parentSpanId": "f1e2312d3d8b1c1f",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698429652960",
            "endTimeUnixNano": "1796047698429683676",
            "durationMs": 0.030716,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "COMMIT"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sql.transaction",
            "traceId": "9ec0f5ca952fe67219fd505524169f41",
            "spanId": "f1e2312d3d8b1c1f",
            "parentSpanId": "4592c88ba8baab89",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698429258110",
            "endTimeUnixNano": "1796047698429705038",
            "durationMs": 0.446928,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.client.connection.wait_time_ms": 0.042734,
              "db.connection": "reader",
              "db.lock_wait_ms": 0.028
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.pendingBackgroundDataByThreadId",
            "traceId": "9ec0f5ca952fe67219fd505524169f41",
            "spanId": "c7095b5b5081b2aa",
            "parentSpanId": "78034f1d90f52fe5",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698429745468",
            "endTimeUnixNano": "1796047698429752899",
            "durationMs": 0.007431,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.decodeShellSnapshot",
            "traceId": "9ec0f5ca952fe67219fd505524169f41",
            "spanId": "78034f1d90f52fe5",
            "parentSpanId": "4592c88ba8baab89",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698429729344",
            "endTimeUnixNano": "1796047698429761442",
            "durationMs": 0.032098,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "9ec0f5ca952fe67219fd505524169f41",
            "spanId": "8709858e04898c45",
            "parentSpanId": "25e217c563c9971b",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698429793390",
            "endTimeUnixNano": "1796047698429915001",
            "durationMs": 0.121611,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.033,
              "db.client.connection.wait_time_ms": 0.042453
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectStoreV2.listShells",
            "traceId": "9ec0f5ca952fe67219fd505524169f41",
            "spanId": "25e217c563c9971b",
            "parentSpanId": "4592c88ba8baab89",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698429769194",
            "endTimeUnixNano": "1796047698429989042",
            "durationMs": 0.219848,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.readThreads",
            "traceId": "9ec0f5ca952fe67219fd505524169f41",
            "spanId": "4592c88ba8baab89",
            "parentSpanId": "9928345c5ce993d3",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698429228786",
            "endTimeUnixNano": "1796047698429998356",
            "durationMs": 0.76957,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "9ec0f5ca952fe67219fd505524169f41",
            "spanId": "6860e61e7f4d8827",
            "parentSpanId": "9928345c5ce993d3",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698430022382",
            "endTimeUnixNano": "1796047698430167308",
            "durationMs": 0.144926,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.027,
              "db.client.connection.wait_time_ms": 0.039389
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "9ec0f5ca952fe67219fd505524169f41",
            "spanId": "35f99023fff9e0fb",
            "parentSpanId": "d452c282bc284eae",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698430237373",
            "endTimeUnixNano": "1796047698430330953",
            "durationMs": 0.09358,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT DISTINCT json_extract(payload_json, '$.worktreePath') AS \"worktreePath\"\n      FROM orchestration_v2_projection_threads\n      WHERE json_extract(payload_json, '$.worktreePath') IS NOT NUL\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.039,
              "db.client.connection.wait_time_ms": 0.050085
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "9ec0f5ca952fe67219fd505524169f41",
            "spanId": "7154259ff90f060d",
            "parentSpanId": "31c51b4972fc02d8",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698431765817",
            "endTimeUnixNano": "1796047698433117085",
            "durationMs": 1.351268,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "9ec0f5ca952fe67219fd505524169f41",
            "spanId": "31c51b4972fc02d8",
            "parentSpanId": "ee42829d4b01c41d",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698431587760",
            "endTimeUnixNano": "1796047698433992573",
            "durationMs": 2.404813,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "9ec0f5ca952fe67219fd505524169f41",
            "spanId": "ee42829d4b01c41d",
            "parentSpanId": "94ad606ab06acdb8",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698431546359",
            "endTimeUnixNano": "1796047698434190689",
            "durationMs": 2.64433,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo/packages/app",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "9ec0f5ca952fe67219fd505524169f41",
            "spanId": "94ad606ab06acdb8",
            "parentSpanId": "d452c282bc284eae",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698431491957",
            "endTimeUnixNano": "1796047698434214054",
            "durationMs": 2.722097,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "9ec0f5ca952fe67219fd505524169f41",
            "spanId": "5a0dfdbbd761e6ab",
            "parentSpanId": "d452c282bc284eae",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698434479310",
            "endTimeUnixNano": "1796047698434519080",
            "durationMs": 0.03977,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "9ec0f5ca952fe67219fd505524169f41",
            "spanId": "4885fa6e803784a1",
            "parentSpanId": "d452c282bc284eae",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698434606009",
            "endTimeUnixNano": "1796047698434640371",
            "durationMs": 0.034362,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "storageCleanup.measureWorktree",
            "traceId": "9ec0f5ca952fe67219fd505524169f41",
            "spanId": "d7f478be8919f85d",
            "parentSpanId": "d452c282bc284eae",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698434662644",
            "endTimeUnixNano": "1796047698435198845",
            "durationMs": 0.536201,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.reportOrphanWorktrees",
            "traceId": "9ec0f5ca952fe67219fd505524169f41",
            "spanId": "d452c282bc284eae",
            "parentSpanId": "9928345c5ce993d3",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698430225265",
            "endTimeUnixNano": "1796047698435232936",
            "durationMs": 5.007671,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanWorktrees",
            "traceId": "9ec0f5ca952fe67219fd505524169f41",
            "spanId": "9928345c5ce993d3",
            "parentSpanId": "4ca94896105a07f5",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698428647087",
            "endTimeUnixNano": "1796047698435240407",
            "durationMs": 6.59332,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.sweep",
            "traceId": "9ec0f5ca952fe67219fd505524169f41",
            "spanId": "4ca94896105a07f5",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698428313329",
            "endTimeUnixNano": "1796047698435268109",
            "durationMs": 6.95478,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          }
        ]
      },
      {
        "run": 8,
        "warmup": false,
        "elapsedMs": 7.6422170000000165,
        "nestedOrphanFound": true,
        "report": {
          "_tag": "Success",
          "value": {
            "trigger": "manual",
            "startedAt": "2026-11-30T14:08:18.436Z",
            "finishedAt": "2026-11-30T14:08:18.443Z",
            "entries": [
              {
                "kind": "worktree",
                "outcome": "kept",
                "reason": "No thread uses this worktree",
                "path": "$FIXTURE/data/worktrees/repository/replay/repo-wt",
                "projectPath": null,
                "threadId": null,
                "threadTitle": null,
                "bytes": 8192,
                "files": null
              }
            ],
            "counts": {
              "removed": 0,
              "kept": 1,
              "failed": 0
            },
            "omittedCount": 0,
            "bytesFreed": 0
          }
        },
        "spans": [
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "bff7e31ac59225329f7d4bcb6d8a88e6",
            "spanId": "9f319944a78bc142",
            "parentSpanId": "cbf4e3fa98bad8f0",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698436282023",
            "endTimeUnixNano": "1796047698436434812",
            "durationMs": 0.152789,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      WITH RECURSIVE retained_checkpoint_threads(thread_id) AS (\n        SELECT thread_id FROM orchestration_v2_projection_threads WHERE deleted_at IS NULL\n        UNION\n        SELECT json_extract(t\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.041,
              "db.client.connection.wait_time_ms": 0.05371
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanCheckpointRefs",
            "traceId": "bff7e31ac59225329f7d4bcb6d8a88e6",
            "spanId": "cbf4e3fa98bad8f0",
            "parentSpanId": "561ff66a6122f9f4",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698436271387",
            "endTimeUnixNano": "1796047698436468762",
            "durationMs": 0.197375,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.retryLeftovers",
            "traceId": "bff7e31ac59225329f7d4bcb6d8a88e6",
            "spanId": "1d88265a5254ebb8",
            "parentSpanId": "561ff66a6122f9f4",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698436488382",
            "endTimeUnixNano": "1796047698436555512",
            "durationMs": 0.06713,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveGitWorktreePath",
            "traceId": "bff7e31ac59225329f7d4bcb6d8a88e6",
            "spanId": "286ba0e120ca6cef",
            "parentSpanId": "e9bf09a282d8cc04",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698436592337",
            "endTimeUnixNano": "1796047698436761500",
            "durationMs": 0.169163,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveWorktreeT3Home",
            "traceId": "bff7e31ac59225329f7d4bcb6d8a88e6",
            "spanId": "e9bf09a282d8cc04",
            "parentSpanId": "311f6fc868bd60f4",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698436585637",
            "endTimeUnixNano": "1796047698436775881",
            "durationMs": 0.190244,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "bff7e31ac59225329f7d4bcb6d8a88e6",
            "spanId": "f47b4608cb3ac5ee",
            "parentSpanId": "311f6fc868bd60f4",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698437000677",
            "endTimeUnixNano": "1796047698437114767",
            "durationMs": 0.11409,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n          SELECT t.payload_json, p.workspace_root AS \"workspaceRoot\"\n          FROM orchestration_v2_projection_threads t\n          JOIN projection_projects p ON p.project_id = t.project_id\n         \u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.033,
              "db.client.connection.wait_time_ms": 0.048803
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "BEGIN",
            "traceId": "bff7e31ac59225329f7d4bcb6d8a88e6",
            "spanId": "4b1b8793e7f52fd0",
            "parentSpanId": "c8bc6ab85ad95a97",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698437227796",
            "endTimeUnixNano": "1796047698437278172",
            "durationMs": 0.050376,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "BEGIN"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "bff7e31ac59225329f7d4bcb6d8a88e6",
            "spanId": "9eb3e63f3f81c36b",
            "parentSpanId": "295bdb69a948a9d1",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698437366764",
            "endTimeUnixNano": "1796047698437445772",
            "durationMs": 0.079008,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n            SELECT\n              t.thread_id,\n              t.payload_json,\n              t.fork_run_ids_json,\n              CASE\n                WHEN json_extract(t.payload_json, '$.forkedFrom.type'\u2026[truncated]",
              "db.client.connection.wait_time_ms": 0.011387
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "bff7e31ac59225329f7d4bcb6d8a88e6",
            "spanId": "2c375ce6c5b1dfba",
            "parentSpanId": "295bdb69a948a9d1",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698437479302",
            "endTimeUnixNano": "1796047698437525581",
            "durationMs": 0.046279,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n        SELECT MAX(sequence) AS snapshot_sequence\n        FROM orchestration_events\n        WHERE application_event_version = 2\n          AND aggregate_kind = 'thread'\n      ",
              "db.client.connection.wait_time_ms": 0.00695
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readShellSnapshotRows",
            "traceId": "bff7e31ac59225329f7d4bcb6d8a88e6",
            "spanId": "295bdb69a948a9d1",
            "parentSpanId": "c8bc6ab85ad95a97",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698437300705",
            "endTimeUnixNano": "1796047698437538801",
            "durationMs": 0.238096,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "COMMIT",
            "traceId": "bff7e31ac59225329f7d4bcb6d8a88e6",
            "spanId": "fab7a944f6051282",
            "parentSpanId": "c8bc6ab85ad95a97",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698437547684",
            "endTimeUnixNano": "1796047698437580553",
            "durationMs": 0.032869,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "COMMIT"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sql.transaction",
            "traceId": "bff7e31ac59225329f7d4bcb6d8a88e6",
            "spanId": "c8bc6ab85ad95a97",
            "parentSpanId": "280326a095185c6f",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698437178953",
            "endTimeUnixNano": "1796047698437600153",
            "durationMs": 0.4212,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.client.connection.wait_time_ms": 0.043105,
              "db.connection": "reader",
              "db.lock_wait_ms": 0.028
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.pendingBackgroundDataByThreadId",
            "traceId": "bff7e31ac59225329f7d4bcb6d8a88e6",
            "spanId": "5519c5ec6c1d3ad6",
            "parentSpanId": "56ea7b38b5df86ad",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698437634213",
            "endTimeUnixNano": "1796047698437639632",
            "durationMs": 0.005419,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.decodeShellSnapshot",
            "traceId": "bff7e31ac59225329f7d4bcb6d8a88e6",
            "spanId": "56ea7b38b5df86ad",
            "parentSpanId": "280326a095185c6f",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698437623557",
            "endTimeUnixNano": "1796047698437649366",
            "durationMs": 0.025809,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "bff7e31ac59225329f7d4bcb6d8a88e6",
            "spanId": "a5a1a10c81a93b51",
            "parentSpanId": "9711e500b6878a29",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698437680142",
            "endTimeUnixNano": "1796047698437809966",
            "durationMs": 0.129824,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.044,
              "db.client.connection.wait_time_ms": 0.052709
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectStoreV2.listShells",
            "traceId": "bff7e31ac59225329f7d4bcb6d8a88e6",
            "spanId": "9711e500b6878a29",
            "parentSpanId": "280326a095185c6f",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698437656997",
            "endTimeUnixNano": "1796047698437873701",
            "durationMs": 0.216704,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.readThreads",
            "traceId": "bff7e31ac59225329f7d4bcb6d8a88e6",
            "spanId": "280326a095185c6f",
            "parentSpanId": "311f6fc868bd60f4",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698437154307",
            "endTimeUnixNano": "1796047698437894382",
            "durationMs": 0.740075,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "bff7e31ac59225329f7d4bcb6d8a88e6",
            "spanId": "51b8e10a07818e4e",
            "parentSpanId": "311f6fc868bd60f4",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698437919349",
            "endTimeUnixNano": "1796047698438040651",
            "durationMs": 0.121302,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.028,
              "db.client.connection.wait_time_ms": 0.041212
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "bff7e31ac59225329f7d4bcb6d8a88e6",
            "spanId": "97fe70b405d65488",
            "parentSpanId": "b00aa1ebde112855",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698438111837",
            "endTimeUnixNano": "1796047698438203063",
            "durationMs": 0.091226,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT DISTINCT json_extract(payload_json, '$.worktreePath') AS \"worktreePath\"\n      FROM orchestration_v2_projection_threads\n      WHERE json_extract(payload_json, '$.worktreePath') IS NOT NUL\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.037,
              "db.client.connection.wait_time_ms": 0.046559
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "bff7e31ac59225329f7d4bcb6d8a88e6",
            "spanId": "bf960e2c8c16b074",
            "parentSpanId": "ae9d7c2679867b18",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698439596825",
            "endTimeUnixNano": "1796047698440794294",
            "durationMs": 1.197469,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "bff7e31ac59225329f7d4bcb6d8a88e6",
            "spanId": "ae9d7c2679867b18",
            "parentSpanId": "4dc93950a91a661d",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698439428053",
            "endTimeUnixNano": "1796047698441650193",
            "durationMs": 2.22214,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "bff7e31ac59225329f7d4bcb6d8a88e6",
            "spanId": "4dc93950a91a661d",
            "parentSpanId": "3d31ec61b31a873b",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698439390928",
            "endTimeUnixNano": "1796047698441839486",
            "durationMs": 2.448558,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo/packages/app",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "bff7e31ac59225329f7d4bcb6d8a88e6",
            "spanId": "3d31ec61b31a873b",
            "parentSpanId": "b00aa1ebde112855",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698439354273",
            "endTimeUnixNano": "1796047698441873907",
            "durationMs": 2.519634,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "bff7e31ac59225329f7d4bcb6d8a88e6",
            "spanId": "f262558419382e59",
            "parentSpanId": "b00aa1ebde112855",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698442151622",
            "endTimeUnixNano": "1796047698442195848",
            "durationMs": 0.044226,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "bff7e31ac59225329f7d4bcb6d8a88e6",
            "spanId": "28cef0047491655a",
            "parentSpanId": "b00aa1ebde112855",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698442282628",
            "endTimeUnixNano": "1796047698442314475",
            "durationMs": 0.031847,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "storageCleanup.measureWorktree",
            "traceId": "bff7e31ac59225329f7d4bcb6d8a88e6",
            "spanId": "d2894ccd011b6085",
            "parentSpanId": "b00aa1ebde112855",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698442336078",
            "endTimeUnixNano": "1796047698442855153",
            "durationMs": 0.519075,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.reportOrphanWorktrees",
            "traceId": "bff7e31ac59225329f7d4bcb6d8a88e6",
            "spanId": "b00aa1ebde112855",
            "parentSpanId": "311f6fc868bd60f4",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698438096784",
            "endTimeUnixNano": "1796047698442888403",
            "durationMs": 4.791619,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanWorktrees",
            "traceId": "bff7e31ac59225329f7d4bcb6d8a88e6",
            "spanId": "311f6fc868bd60f4",
            "parentSpanId": "561ff66a6122f9f4",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698436568672",
            "endTimeUnixNano": "1796047698442895193",
            "durationMs": 6.326521,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.sweep",
            "traceId": "bff7e31ac59225329f7d4bcb6d8a88e6",
            "spanId": "561ff66a6122f9f4",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698436253401",
            "endTimeUnixNano": "1796047698442921292",
            "durationMs": 6.667891,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          }
        ]
      },
      {
        "run": 9,
        "warmup": false,
        "elapsedMs": 8.403824999999983,
        "nestedOrphanFound": true,
        "report": {
          "_tag": "Success",
          "value": {
            "trigger": "manual",
            "startedAt": "2026-11-30T14:08:18.444Z",
            "finishedAt": "2026-11-30T14:08:18.451Z",
            "entries": [
              {
                "kind": "worktree",
                "outcome": "kept",
                "reason": "No thread uses this worktree",
                "path": "$FIXTURE/data/worktrees/repository/replay/repo-wt",
                "projectPath": null,
                "threadId": null,
                "threadTitle": null,
                "bytes": 8192,
                "files": null
              }
            ],
            "counts": {
              "removed": 0,
              "kept": 1,
              "failed": 0
            },
            "omittedCount": 0,
            "bytesFreed": 0
          }
        },
        "spans": [
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "2a4c1b74e7c9b6bd948faf4a3d71051f",
            "spanId": "a0aeb0d931e2c4ac",
            "parentSpanId": "4c5aa6c65755e20e",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698443807927",
            "endTimeUnixNano": "1796047698444060604",
            "durationMs": 0.252677,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      WITH RECURSIVE retained_checkpoint_threads(thread_id) AS (\n        SELECT thread_id FROM orchestration_v2_projection_threads WHERE deleted_at IS NULL\n        UNION\n        SELECT json_extract(t\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.06,
              "db.client.connection.wait_time_ms": 0.073559
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanCheckpointRefs",
            "traceId": "2a4c1b74e7c9b6bd948faf4a3d71051f",
            "spanId": "4c5aa6c65755e20e",
            "parentSpanId": "8ec8a033eedc02fa",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698443798703",
            "endTimeUnixNano": "1796047698444098050",
            "durationMs": 0.299347,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.retryLeftovers",
            "traceId": "2a4c1b74e7c9b6bd948faf4a3d71051f",
            "spanId": "c9488d90e009fa91",
            "parentSpanId": "8ec8a033eedc02fa",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698444123338",
            "endTimeUnixNano": "1796047698444190979",
            "durationMs": 0.067641,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveGitWorktreePath",
            "traceId": "2a4c1b74e7c9b6bd948faf4a3d71051f",
            "spanId": "2eb969a6f937c922",
            "parentSpanId": "27780a9985e3e60d",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698444228044",
            "endTimeUnixNano": "1796047698444433441",
            "durationMs": 0.205397,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveWorktreeT3Home",
            "traceId": "2a4c1b74e7c9b6bd948faf4a3d71051f",
            "spanId": "27780a9985e3e60d",
            "parentSpanId": "d02c088d6a86210a",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698444218770",
            "endTimeUnixNano": "1796047698444445078",
            "durationMs": 0.226308,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "2a4c1b74e7c9b6bd948faf4a3d71051f",
            "spanId": "3ecd80e8f3a2c79c",
            "parentSpanId": "d02c088d6a86210a",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698444665748",
            "endTimeUnixNano": "1796047698444770905",
            "durationMs": 0.105157,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n          SELECT t.payload_json, p.workspace_root AS \"workspaceRoot\"\n          FROM orchestration_v2_projection_threads t\n          JOIN projection_projects p ON p.project_id = t.project_id\n         \u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.035,
              "db.client.connection.wait_time_ms": 0.049464
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "BEGIN",
            "traceId": "2a4c1b74e7c9b6bd948faf4a3d71051f",
            "spanId": "0833ce507369bd7d",
            "parentSpanId": "f763e523d7187071",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698444881961",
            "endTimeUnixNano": "1796047698444929121",
            "durationMs": 0.04716,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "BEGIN"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "2a4c1b74e7c9b6bd948faf4a3d71051f",
            "spanId": "70cc1e080da4303a",
            "parentSpanId": "d8102cda449f49c0",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698445029041",
            "endTimeUnixNano": "1796047698445169571",
            "durationMs": 0.14053,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n            SELECT\n              t.thread_id,\n              t.payload_json,\n              t.fork_run_ids_json,\n              CASE\n                WHEN json_extract(t.payload_json, '$.forkedFrom.type'\u2026[truncated]",
              "db.client.connection.wait_time_ms": 0.011707
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "2a4c1b74e7c9b6bd948faf4a3d71051f",
            "spanId": "3d2bcabce2db7e62",
            "parentSpanId": "d8102cda449f49c0",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698445198834",
            "endTimeUnixNano": "1796047698445257642",
            "durationMs": 0.058808,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n        SELECT MAX(sequence) AS snapshot_sequence\n        FROM orchestration_events\n        WHERE application_event_version = 2\n          AND aggregate_kind = 'thread'\n      ",
              "db.client.connection.wait_time_ms": 0.007121
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readShellSnapshotRows",
            "traceId": "2a4c1b74e7c9b6bd948faf4a3d71051f",
            "spanId": "d8102cda449f49c0",
            "parentSpanId": "f763e523d7187071",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698444951485",
            "endTimeUnixNano": "1796047698445272785",
            "durationMs": 0.3213,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "COMMIT",
            "traceId": "2a4c1b74e7c9b6bd948faf4a3d71051f",
            "spanId": "05e294c37354c99e",
            "parentSpanId": "f763e523d7187071",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698445281378",
            "endTimeUnixNano": "1796047698445306856",
            "durationMs": 0.025478,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "COMMIT"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sql.transaction",
            "traceId": "2a4c1b74e7c9b6bd948faf4a3d71051f",
            "spanId": "f763e523d7187071",
            "parentSpanId": "708d04b8d86af94b",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698444834991",
            "endTimeUnixNano": "1796047698445327677",
            "durationMs": 0.492686,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.client.connection.wait_time_ms": 0.041402,
              "db.connection": "reader",
              "db.lock_wait_ms": 0.027
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.pendingBackgroundDataByThreadId",
            "traceId": "2a4c1b74e7c9b6bd948faf4a3d71051f",
            "spanId": "3d078c3f88325876",
            "parentSpanId": "92965b85efd20de1",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698445364061",
            "endTimeUnixNano": "1796047698445368438",
            "durationMs": 0.004377,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.decodeShellSnapshot",
            "traceId": "2a4c1b74e7c9b6bd948faf4a3d71051f",
            "spanId": "92965b85efd20de1",
            "parentSpanId": "708d04b8d86af94b",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698445352283",
            "endTimeUnixNano": "1796047698445376490",
            "durationMs": 0.024207,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "2a4c1b74e7c9b6bd948faf4a3d71051f",
            "spanId": "ad0731822289dcb2",
            "parentSpanId": "f1db6ed1df5d20eb",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698445405233",
            "endTimeUnixNano": "1796047698445538592",
            "durationMs": 0.133359,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.032,
              "db.client.connection.wait_time_ms": 0.040861
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectStoreV2.listShells",
            "traceId": "2a4c1b74e7c9b6bd948faf4a3d71051f",
            "spanId": "f1db6ed1df5d20eb",
            "parentSpanId": "708d04b8d86af94b",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698445383350",
            "endTimeUnixNano": "1796047698445600314",
            "durationMs": 0.216964,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.readThreads",
            "traceId": "2a4c1b74e7c9b6bd948faf4a3d71051f",
            "spanId": "708d04b8d86af94b",
            "parentSpanId": "d02c088d6a86210a",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698444810634",
            "endTimeUnixNano": "1796047698445609678",
            "durationMs": 0.799044,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "2a4c1b74e7c9b6bd948faf4a3d71051f",
            "spanId": "850ce45f0490e4b4",
            "parentSpanId": "d02c088d6a86210a",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698445633834",
            "endTimeUnixNano": "1796047698445736327",
            "durationMs": 0.102493,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.026,
              "db.client.connection.wait_time_ms": 0.037566
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "2a4c1b74e7c9b6bd948faf4a3d71051f",
            "spanId": "495a44ae6d4bfd1c",
            "parentSpanId": "c511f38b6a23a1a4",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698445797288",
            "endTimeUnixNano": "1796047698445880232",
            "durationMs": 0.082944,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT DISTINCT json_extract(payload_json, '$.worktreePath') AS \"worktreePath\"\n      FROM orchestration_v2_projection_threads\n      WHERE json_extract(payload_json, '$.worktreePath') IS NOT NUL\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.035,
              "db.client.connection.wait_time_ms": 0.043816
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "2a4c1b74e7c9b6bd948faf4a3d71051f",
            "spanId": "8e7e2bd48fcc0446",
            "parentSpanId": "adbdabe6e2381412",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698447278181",
            "endTimeUnixNano": "1796047698448904641",
            "durationMs": 1.62646,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "2a4c1b74e7c9b6bd948faf4a3d71051f",
            "spanId": "adbdabe6e2381412",
            "parentSpanId": "1c803129d66a3558",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698447102769",
            "endTimeUnixNano": "1796047698450118394",
            "durationMs": 3.015625,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "2a4c1b74e7c9b6bd948faf4a3d71051f",
            "spanId": "1c803129d66a3558",
            "parentSpanId": "aa7a08a9729b786a",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698447066555",
            "endTimeUnixNano": "1796047698450325844",
            "durationMs": 3.259289,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo/packages/app",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "2a4c1b74e7c9b6bd948faf4a3d71051f",
            "spanId": "aa7a08a9729b786a",
            "parentSpanId": "c511f38b6a23a1a4",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698447034877",
            "endTimeUnixNano": "1796047698450353265",
            "durationMs": 3.318388,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "2a4c1b74e7c9b6bd948faf4a3d71051f",
            "spanId": "b80bfcd3e0af6f6f",
            "parentSpanId": "c511f38b6a23a1a4",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698450630068",
            "endTimeUnixNano": "1796047698450679652",
            "durationMs": 0.049584,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "2a4c1b74e7c9b6bd948faf4a3d71051f",
            "spanId": "8e6704b41a357ae9",
            "parentSpanId": "c511f38b6a23a1a4",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698450776317",
            "endTimeUnixNano": "1796047698450807653",
            "durationMs": 0.031336,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "storageCleanup.measureWorktree",
            "traceId": "2a4c1b74e7c9b6bd948faf4a3d71051f",
            "spanId": "ecfbe4bd639a620a",
            "parentSpanId": "c511f38b6a23a1a4",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698450830958",
            "endTimeUnixNano": "1796047698451348792",
            "durationMs": 0.517834,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.reportOrphanWorktrees",
            "traceId": "2a4c1b74e7c9b6bd948faf4a3d71051f",
            "spanId": "c511f38b6a23a1a4",
            "parentSpanId": "d02c088d6a86210a",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698445788034",
            "endTimeUnixNano": "1796047698451382372",
            "durationMs": 5.594338,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanWorktrees",
            "traceId": "2a4c1b74e7c9b6bd948faf4a3d71051f",
            "spanId": "d02c088d6a86210a",
            "parentSpanId": "8ec8a033eedc02fa",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698444204469",
            "endTimeUnixNano": "1796047698451389483",
            "durationMs": 7.185014,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.sweep",
            "traceId": "2a4c1b74e7c9b6bd948faf4a3d71051f",
            "spanId": "8ec8a033eedc02fa",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698443780976",
            "endTimeUnixNano": "1796047698451427750",
            "durationMs": 7.646774,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          }
        ]
      },
      {
        "run": 10,
        "warmup": false,
        "elapsedMs": 8.634208999999998,
        "nestedOrphanFound": true,
        "report": {
          "_tag": "Success",
          "value": {
            "trigger": "manual",
            "startedAt": "2026-11-30T14:08:18.452Z",
            "finishedAt": "2026-11-30T14:08:18.460Z",
            "entries": [
              {
                "kind": "worktree",
                "outcome": "kept",
                "reason": "No thread uses this worktree",
                "path": "$FIXTURE/data/worktrees/repository/replay/repo-wt",
                "projectPath": null,
                "threadId": null,
                "threadTitle": null,
                "bytes": 8192,
                "files": null
              }
            ],
            "counts": {
              "removed": 0,
              "kept": 1,
              "failed": 0
            },
            "omittedCount": 0,
            "bytesFreed": 0
          }
        },
        "spans": [
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "9fcbed34fbc82482418b8c53a15ff457",
            "spanId": "d6b3dd545cabe43a",
            "parentSpanId": "e9d4a6f4dc4820e7",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698452232322",
            "endTimeUnixNano": "1796047698452386372",
            "durationMs": 0.15405,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      WITH RECURSIVE retained_checkpoint_threads(thread_id) AS (\n        SELECT thread_id FROM orchestration_v2_projection_threads WHERE deleted_at IS NULL\n        UNION\n        SELECT json_extract(t\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.039,
              "db.client.connection.wait_time_ms": 0.052739
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanCheckpointRefs",
            "traceId": "9fcbed34fbc82482418b8c53a15ff457",
            "spanId": "e9d4a6f4dc4820e7",
            "parentSpanId": "619e9743634b6f9f",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698452222197",
            "endTimeUnixNano": "1796047698452422165",
            "durationMs": 0.199968,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.retryLeftovers",
            "traceId": "9fcbed34fbc82482418b8c53a15ff457",
            "spanId": "dfeffe53eef7daa8",
            "parentSpanId": "619e9743634b6f9f",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698452440403",
            "endTimeUnixNano": "1796047698452514143",
            "durationMs": 0.07374,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveGitWorktreePath",
            "traceId": "9fcbed34fbc82482418b8c53a15ff457",
            "spanId": "be4205039d972bb4",
            "parentSpanId": "75294880c137e701",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698452550477",
            "endTimeUnixNano": "1796047698452713210",
            "durationMs": 0.162733,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveWorktreeT3Home",
            "traceId": "9fcbed34fbc82482418b8c53a15ff457",
            "spanId": "75294880c137e701",
            "parentSpanId": "086148113d64c9d8",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698452540833",
            "endTimeUnixNano": "1796047698452721172",
            "durationMs": 0.180339,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "9fcbed34fbc82482418b8c53a15ff457",
            "spanId": "de757e02ef789aa6",
            "parentSpanId": "086148113d64c9d8",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698452943184",
            "endTimeUnixNano": "1796047698453049683",
            "durationMs": 0.106499,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n          SELECT t.payload_json, p.workspace_root AS \"workspaceRoot\"\n          FROM orchestration_v2_projection_threads t\n          JOIN projection_projects p ON p.project_id = t.project_id\n         \u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.047,
              "db.client.connection.wait_time_ms": 0.061882
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "BEGIN",
            "traceId": "9fcbed34fbc82482418b8c53a15ff457",
            "spanId": "ca28c0c3a1c6ad37",
            "parentSpanId": "59a634f6847e36e2",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698453168170",
            "endTimeUnixNano": "1796047698453212806",
            "durationMs": 0.044636,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "BEGIN"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "9fcbed34fbc82482418b8c53a15ff457",
            "spanId": "4b056e04801c16eb",
            "parentSpanId": "f258b8593f986a66",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698453301539",
            "endTimeUnixNano": "1796047698453388219",
            "durationMs": 0.08668,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n            SELECT\n              t.thread_id,\n              t.payload_json,\n              t.fork_run_ids_json,\n              CASE\n                WHEN json_extract(t.payload_json, '$.forkedFrom.type'\u2026[truncated]",
              "db.client.connection.wait_time_ms": 0.012419
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "9fcbed34fbc82482418b8c53a15ff457",
            "spanId": "ea35f69639a3f899",
            "parentSpanId": "f258b8593f986a66",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698453413336",
            "endTimeUnixNano": "1796047698453451984",
            "durationMs": 0.038648,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n        SELECT MAX(sequence) AS snapshot_sequence\n        FROM orchestration_events\n        WHERE application_event_version = 2\n          AND aggregate_kind = 'thread'\n      ",
              "db.client.connection.wait_time_ms": 0.006139
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readShellSnapshotRows",
            "traceId": "9fcbed34fbc82482418b8c53a15ff457",
            "spanId": "f258b8593f986a66",
            "parentSpanId": "59a634f6847e36e2",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698453236292",
            "endTimeUnixNano": "1796047698453465304",
            "durationMs": 0.229012,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "COMMIT",
            "traceId": "9fcbed34fbc82482418b8c53a15ff457",
            "spanId": "8f31c07e3a41adf6",
            "parentSpanId": "59a634f6847e36e2",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698453473867",
            "endTimeUnixNano": "1796047698453496010",
            "durationMs": 0.022143,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "COMMIT"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sql.transaction",
            "traceId": "9fcbed34fbc82482418b8c53a15ff457",
            "spanId": "59a634f6847e36e2",
            "parentSpanId": "c5194e95a1b28ba8",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698453119567",
            "endTimeUnixNano": "1796047698453516611",
            "durationMs": 0.397044,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.client.connection.wait_time_ms": 0.042924,
              "db.connection": "reader",
              "db.lock_wait_ms": 0.028
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.pendingBackgroundDataByThreadId",
            "traceId": "9fcbed34fbc82482418b8c53a15ff457",
            "spanId": "f4d9aa74b2e06e0d",
            "parentSpanId": "154b5f34436b66d3",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698453549870",
            "endTimeUnixNano": "1796047698453554016",
            "durationMs": 0.004146,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.decodeShellSnapshot",
            "traceId": "9fcbed34fbc82482418b8c53a15ff457",
            "spanId": "154b5f34436b66d3",
            "parentSpanId": "c5194e95a1b28ba8",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698453541107",
            "endTimeUnixNano": "1796047698453562078",
            "durationMs": 0.020971,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "9fcbed34fbc82482418b8c53a15ff457",
            "spanId": "96e3a318194ed085",
            "parentSpanId": "63f478cc686ed991",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698453593075",
            "endTimeUnixNano": "1796047698453703770",
            "durationMs": 0.110695,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.031,
              "db.client.connection.wait_time_ms": 0.039709
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectStoreV2.listShells",
            "traceId": "9fcbed34fbc82482418b8c53a15ff457",
            "spanId": "63f478cc686ed991",
            "parentSpanId": "c5194e95a1b28ba8",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698453569860",
            "endTimeUnixNano": "1796047698453766534",
            "durationMs": 0.196674,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.readThreads",
            "traceId": "9fcbed34fbc82482418b8c53a15ff457",
            "spanId": "c5194e95a1b28ba8",
            "parentSpanId": "086148113d64c9d8",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698453089092",
            "endTimeUnixNano": "1796047698453776038",
            "durationMs": 0.686946,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "9fcbed34fbc82482418b8c53a15ff457",
            "spanId": "8f4799d593dc7bc3",
            "parentSpanId": "086148113d64c9d8",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698453799113",
            "endTimeUnixNano": "1796047698453896518",
            "durationMs": 0.097405,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.025,
              "db.client.connection.wait_time_ms": 0.037826
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "9fcbed34fbc82482418b8c53a15ff457",
            "spanId": "aa68121dac63704c",
            "parentSpanId": "92c9fb233420fdea",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698453984009",
            "endTimeUnixNano": "1796047698454087133",
            "durationMs": 0.103124,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT DISTINCT json_extract(payload_json, '$.worktreePath') AS \"worktreePath\"\n      FROM orchestration_v2_projection_threads\n      WHERE json_extract(payload_json, '$.worktreePath') IS NOT NUL\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.04,
              "db.client.connection.wait_time_ms": 0.050996
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "9fcbed34fbc82482418b8c53a15ff457",
            "spanId": "5799587bbaf867a3",
            "parentSpanId": "1cee7c324a8b6262",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698455500014",
            "endTimeUnixNano": "1796047698456888268",
            "durationMs": 1.388254,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "9fcbed34fbc82482418b8c53a15ff457",
            "spanId": "1cee7c324a8b6262",
            "parentSpanId": "ea4eac93e2d4b049",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698455327676",
            "endTimeUnixNano": "1796047698457751467",
            "durationMs": 2.423791,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "9fcbed34fbc82482418b8c53a15ff457",
            "spanId": "ea4eac93e2d4b049",
            "parentSpanId": "07f0a9f4282b1e66",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698455288568",
            "endTimeUnixNano": "1796047698457928381",
            "durationMs": 2.639813,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo/packages/app",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "9fcbed34fbc82482418b8c53a15ff457",
            "spanId": "07f0a9f4282b1e66",
            "parentSpanId": "92c9fb233420fdea",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698455254176",
            "endTimeUnixNano": "1796047698457951946",
            "durationMs": 2.69777,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "9fcbed34fbc82482418b8c53a15ff457",
            "spanId": "6a6c99cd832ea6a6",
            "parentSpanId": "92c9fb233420fdea",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698459225008",
            "endTimeUnixNano": "1796047698459270146",
            "durationMs": 0.045138,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "9fcbed34fbc82482418b8c53a15ff457",
            "spanId": "5275039be1fdefac",
            "parentSpanId": "92c9fb233420fdea",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698459426099",
            "endTimeUnixNano": "1796047698459448803",
            "durationMs": 0.022704,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "storageCleanup.measureWorktree",
            "traceId": "9fcbed34fbc82482418b8c53a15ff457",
            "spanId": "dedd2261549a56cf",
            "parentSpanId": "92c9fb233420fdea",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698459472178",
            "endTimeUnixNano": "1796047698459997172",
            "durationMs": 0.524994,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.reportOrphanWorktrees",
            "traceId": "9fcbed34fbc82482418b8c53a15ff457",
            "spanId": "92c9fb233420fdea",
            "parentSpanId": "086148113d64c9d8",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698453960163",
            "endTimeUnixNano": "1796047698460032585",
            "durationMs": 6.072422,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanWorktrees",
            "traceId": "9fcbed34fbc82482418b8c53a15ff457",
            "spanId": "086148113d64c9d8",
            "parentSpanId": "619e9743634b6f9f",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698452527102",
            "endTimeUnixNano": "1796047698460040006",
            "durationMs": 7.512904,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.sweep",
            "traceId": "9fcbed34fbc82482418b8c53a15ff457",
            "spanId": "619e9743634b6f9f",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698452203128",
            "endTimeUnixNano": "1796047698460067327",
            "durationMs": 7.864199,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          }
        ]
      },
      {
        "run": 11,
        "warmup": false,
        "elapsedMs": 8.004267999999996,
        "nestedOrphanFound": true,
        "report": {
          "_tag": "Success",
          "value": {
            "trigger": "manual",
            "startedAt": "2026-11-30T14:08:18.461Z",
            "finishedAt": "2026-11-30T14:08:18.468Z",
            "entries": [
              {
                "kind": "worktree",
                "outcome": "kept",
                "reason": "No thread uses this worktree",
                "path": "$FIXTURE/data/worktrees/repository/replay/repo-wt",
                "projectPath": null,
                "threadId": null,
                "threadTitle": null,
                "bytes": 8192,
                "files": null
              }
            ],
            "counts": {
              "removed": 0,
              "kept": 1,
              "failed": 0
            },
            "omittedCount": 0,
            "bytesFreed": 0
          }
        },
        "spans": [
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "c16413f3cd91ffe16b3f74c1237aeb03",
            "spanId": "6f0c6d390518ad09",
            "parentSpanId": "154fb8d1e33fade2",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698460855575",
            "endTimeUnixNano": "1796047698460995053",
            "durationMs": 0.139478,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      WITH RECURSIVE retained_checkpoint_threads(thread_id) AS (\n        SELECT thread_id FROM orchestration_v2_projection_threads WHERE deleted_at IS NULL\n        UNION\n        SELECT json_extract(t\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.042,
              "db.client.connection.wait_time_ms": 0.061892
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanCheckpointRefs",
            "traceId": "c16413f3cd91ffe16b3f74c1237aeb03",
            "spanId": "154fb8d1e33fade2",
            "parentSpanId": "3e4d012a02805dba",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698460846421",
            "endTimeUnixNano": "1796047698461033060",
            "durationMs": 0.186639,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.retryLeftovers",
            "traceId": "c16413f3cd91ffe16b3f74c1237aeb03",
            "spanId": "102e5af48b580cff",
            "parentSpanId": "3e4d012a02805dba",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698461051277",
            "endTimeUnixNano": "1796047698461125127",
            "durationMs": 0.07385,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveGitWorktreePath",
            "traceId": "c16413f3cd91ffe16b3f74c1237aeb03",
            "spanId": "8b7d4a6d158d8ae7",
            "parentSpanId": "37e528b4f9f3e09c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698461159779",
            "endTimeUnixNano": "1796047698461330664",
            "durationMs": 0.170885,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveWorktreeT3Home",
            "traceId": "c16413f3cd91ffe16b3f74c1237aeb03",
            "spanId": "37e528b4f9f3e09c",
            "parentSpanId": "ede206e57f9f6005",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698461153850",
            "endTimeUnixNano": "1796047698461338766",
            "durationMs": 0.184916,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "c16413f3cd91ffe16b3f74c1237aeb03",
            "spanId": "e537b73d6aedd13d",
            "parentSpanId": "ede206e57f9f6005",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698461554258",
            "endTimeUnixNano": "1796047698461649280",
            "durationMs": 0.095022,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n          SELECT t.payload_json, p.workspace_root AS \"workspaceRoot\"\n          FROM orchestration_v2_projection_threads t\n          JOIN projection_projects p ON p.project_id = t.project_id\n         \u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.033,
              "db.client.connection.wait_time_ms": 0.048302
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "BEGIN",
            "traceId": "c16413f3cd91ffe16b3f74c1237aeb03",
            "spanId": "bbfe26d270ff9a67",
            "parentSpanId": "3bf6806c9f002fb6",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698461758103",
            "endTimeUnixNano": "1796047698461792314",
            "durationMs": 0.034211,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "BEGIN"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "c16413f3cd91ffe16b3f74c1237aeb03",
            "spanId": "1036c681107985fd",
            "parentSpanId": "b283e40902680686",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698461893795",
            "endTimeUnixNano": "1796047698461991281",
            "durationMs": 0.097486,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n            SELECT\n              t.thread_id,\n              t.payload_json,\n              t.fork_run_ids_json,\n              CASE\n                WHEN json_extract(t.payload_json, '$.forkedFrom.type'\u2026[truncated]",
              "db.client.connection.wait_time_ms": 0.011958
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "c16413f3cd91ffe16b3f74c1237aeb03",
            "spanId": "2b1c862a6073d8d3",
            "parentSpanId": "b283e40902680686",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698462022758",
            "endTimeUnixNano": "1796047698462063739",
            "durationMs": 0.040981,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n        SELECT MAX(sequence) AS snapshot_sequence\n        FROM orchestration_events\n        WHERE application_event_version = 2\n          AND aggregate_kind = 'thread'\n      ",
              "db.client.connection.wait_time_ms": 0.007922
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readShellSnapshotRows",
            "traceId": "c16413f3cd91ffe16b3f74c1237aeb03",
            "spanId": "b283e40902680686",
            "parentSpanId": "3bf6806c9f002fb6",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698461815759",
            "endTimeUnixNano": "1796047698462077320",
            "durationMs": 0.261561,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "COMMIT",
            "traceId": "c16413f3cd91ffe16b3f74c1237aeb03",
            "spanId": "3159f01759bbecf5",
            "parentSpanId": "3bf6806c9f002fb6",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698462086594",
            "endTimeUnixNano": "1796047698462115056",
            "durationMs": 0.028462,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "COMMIT"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sql.transaction",
            "traceId": "c16413f3cd91ffe16b3f74c1237aeb03",
            "spanId": "3bf6806c9f002fb6",
            "parentSpanId": "34593add39895720",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698461710281",
            "endTimeUnixNano": "1796047698462138371",
            "durationMs": 0.42809,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.client.connection.wait_time_ms": 0.041843,
              "db.connection": "reader",
              "db.lock_wait_ms": 0.028
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.pendingBackgroundDataByThreadId",
            "traceId": "c16413f3cd91ffe16b3f74c1237aeb03",
            "spanId": "bbbd83973b241fd6",
            "parentSpanId": "e58dab7c8d930bf3",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698462175036",
            "endTimeUnixNano": "1796047698462179052",
            "durationMs": 0.004016,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.decodeShellSnapshot",
            "traceId": "c16413f3cd91ffe16b3f74c1237aeb03",
            "spanId": "e58dab7c8d930bf3",
            "parentSpanId": "34593add39895720",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698462165952",
            "endTimeUnixNano": "1796047698462186823",
            "durationMs": 0.020871,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "c16413f3cd91ffe16b3f74c1237aeb03",
            "spanId": "9ef274b4534039f4",
            "parentSpanId": "cd4df65b51d5c980",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698462217729",
            "endTimeUnixNano": "1796047698462327944",
            "durationMs": 0.110215,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.032,
              "db.client.connection.wait_time_ms": 0.040701
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectStoreV2.listShells",
            "traceId": "c16413f3cd91ffe16b3f74c1237aeb03",
            "spanId": "cd4df65b51d5c980",
            "parentSpanId": "34593add39895720",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698462194174",
            "endTimeUnixNano": "1796047698462410678",
            "durationMs": 0.216504,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.readThreads",
            "traceId": "c16413f3cd91ffe16b3f74c1237aeb03",
            "spanId": "34593add39895720",
            "parentSpanId": "ede206e57f9f6005",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698461687547",
            "endTimeUnixNano": "1796047698462419300",
            "durationMs": 0.731753,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "c16413f3cd91ffe16b3f74c1237aeb03",
            "spanId": "e3d8ad60a8519750",
            "parentSpanId": "ede206e57f9f6005",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698462442926",
            "endTimeUnixNano": "1796047698462549766",
            "durationMs": 0.10684,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.026,
              "db.client.connection.wait_time_ms": 0.04018
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "c16413f3cd91ffe16b3f74c1237aeb03",
            "spanId": "947bfaca70d86e3b",
            "parentSpanId": "c91d01f84133acc2",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698462625979",
            "endTimeUnixNano": "1796047698462709604",
            "durationMs": 0.083625,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT DISTINCT json_extract(payload_json, '$.worktreePath') AS \"worktreePath\"\n      FROM orchestration_v2_projection_threads\n      WHERE json_extract(payload_json, '$.worktreePath') IS NOT NUL\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.04,
              "db.client.connection.wait_time_ms": 0.049064
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "c16413f3cd91ffe16b3f74c1237aeb03",
            "spanId": "58a1a22e6aeba949",
            "parentSpanId": "01918906827548f7",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698464194783",
            "endTimeUnixNano": "1796047698465749676",
            "durationMs": 1.554893,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "c16413f3cd91ffe16b3f74c1237aeb03",
            "spanId": "01918906827548f7",
            "parentSpanId": "7c17e08e02968207",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698464022956",
            "endTimeUnixNano": "1796047698466611483",
            "durationMs": 2.588527,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "c16413f3cd91ffe16b3f74c1237aeb03",
            "spanId": "7c17e08e02968207",
            "parentSpanId": "babde2477df48ea7",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698463985200",
            "endTimeUnixNano": "1796047698466792824",
            "durationMs": 2.807624,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo/packages/app",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "c16413f3cd91ffe16b3f74c1237aeb03",
            "spanId": "babde2477df48ea7",
            "parentSpanId": "c91d01f84133acc2",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698463952782",
            "endTimeUnixNano": "1796047698466815578",
            "durationMs": 2.862796,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "c16413f3cd91ffe16b3f74c1237aeb03",
            "spanId": "5bf7399cc89308d1",
            "parentSpanId": "c91d01f84133acc2",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698467065231",
            "endTimeUnixNano": "1796047698467115727",
            "durationMs": 0.050496,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "c16413f3cd91ffe16b3f74c1237aeb03",
            "spanId": "2efccd7d89a75108",
            "parentSpanId": "c91d01f84133acc2",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698467204870",
            "endTimeUnixNano": "1796047698467231089",
            "durationMs": 0.026219,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "storageCleanup.measureWorktree",
            "traceId": "c16413f3cd91ffe16b3f74c1237aeb03",
            "spanId": "e36d0a2b28ea235f",
            "parentSpanId": "c91d01f84133acc2",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698467252351",
            "endTimeUnixNano": "1796047698467778958",
            "durationMs": 0.526607,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.reportOrphanWorktrees",
            "traceId": "c16413f3cd91ffe16b3f74c1237aeb03",
            "spanId": "c91d01f84133acc2",
            "parentSpanId": "ede206e57f9f6005",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698462616114",
            "endTimeUnixNano": "1796047698467810104",
            "durationMs": 5.19399,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanWorktrees",
            "traceId": "c16413f3cd91ffe16b3f74c1237aeb03",
            "spanId": "ede206e57f9f6005",
            "parentSpanId": "3e4d012a02805dba",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698461139328",
            "endTimeUnixNano": "1796047698467819478",
            "durationMs": 6.68015,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.sweep",
            "traceId": "c16413f3cd91ffe16b3f74c1237aeb03",
            "spanId": "3e4d012a02805dba",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698460827713",
            "endTimeUnixNano": "1796047698467845617",
            "durationMs": 7.017904,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          }
        ]
      },
      {
        "run": 12,
        "warmup": false,
        "elapsedMs": 7.673963999999984,
        "nestedOrphanFound": true,
        "report": {
          "_tag": "Success",
          "value": {
            "trigger": "manual",
            "startedAt": "2026-11-30T14:08:18.469Z",
            "finishedAt": "2026-11-30T14:08:18.476Z",
            "entries": [
              {
                "kind": "worktree",
                "outcome": "kept",
                "reason": "No thread uses this worktree",
                "path": "$FIXTURE/data/worktrees/repository/replay/repo-wt",
                "projectPath": null,
                "threadId": null,
                "threadTitle": null,
                "bytes": 8192,
                "files": null
              }
            ],
            "counts": {
              "removed": 0,
              "kept": 1,
              "failed": 0
            },
            "omittedCount": 0,
            "bytesFreed": 0
          }
        },
        "spans": [
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "0e8362c8f5c8a4350a851246acdefaef",
            "spanId": "d5cafb2039b73e67",
            "parentSpanId": "613e5d7aa87b7416",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698468855596",
            "endTimeUnixNano": "1796047698468986301",
            "durationMs": 0.130705,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      WITH RECURSIVE retained_checkpoint_threads(thread_id) AS (\n        SELECT thread_id FROM orchestration_v2_projection_threads WHERE deleted_at IS NULL\n        UNION\n        SELECT json_extract(t\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.039,
              "db.client.connection.wait_time_ms": 0.052959
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanCheckpointRefs",
            "traceId": "0e8362c8f5c8a4350a851246acdefaef",
            "spanId": "613e5d7aa87b7416",
            "parentSpanId": "88d93d70033e62c3",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698468846823",
            "endTimeUnixNano": "1796047698469023827",
            "durationMs": 0.177004,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.retryLeftovers",
            "traceId": "0e8362c8f5c8a4350a851246acdefaef",
            "spanId": "2f06e97210909dc5",
            "parentSpanId": "88d93d70033e62c3",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698469042385",
            "endTimeUnixNano": "1796047698469116596",
            "durationMs": 0.074211,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveGitWorktreePath",
            "traceId": "0e8362c8f5c8a4350a851246acdefaef",
            "spanId": "bb4160eec76b56af",
            "parentSpanId": "29f8b92b4bb89cde",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698469149565",
            "endTimeUnixNano": "1796047698469333249",
            "durationMs": 0.183684,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveWorktreeT3Home",
            "traceId": "0e8362c8f5c8a4350a851246acdefaef",
            "spanId": "29f8b92b4bb89cde",
            "parentSpanId": "eb57fd2a2afda71e",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698469144187",
            "endTimeUnixNano": "1796047698469343004",
            "durationMs": 0.198817,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "0e8362c8f5c8a4350a851246acdefaef",
            "spanId": "a2381df3aca1ede7",
            "parentSpanId": "eb57fd2a2afda71e",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698469585737",
            "endTimeUnixNano": "1796047698469761900",
            "durationMs": 0.176163,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n          SELECT t.payload_json, p.workspace_root AS \"workspaceRoot\"\n          FROM orchestration_v2_projection_threads t\n          JOIN projection_projects p ON p.project_id = t.project_id\n         \u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.046,
              "db.client.connection.wait_time_ms": 0.0605
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "BEGIN",
            "traceId": "0e8362c8f5c8a4350a851246acdefaef",
            "spanId": "a0935a73270e2e10",
            "parentSpanId": "9679cf52716cc74a",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698469889050",
            "endTimeUnixNano": "1796047698469935980",
            "durationMs": 0.04693,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "BEGIN"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "0e8362c8f5c8a4350a851246acdefaef",
            "spanId": "c2d96766feda79a2",
            "parentSpanId": "e700cbbef6467833",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698470035669",
            "endTimeUnixNano": "1796047698470125964",
            "durationMs": 0.090295,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n            SELECT\n              t.thread_id,\n              t.payload_json,\n              t.fork_run_ids_json,\n              CASE\n                WHEN json_extract(t.payload_json, '$.forkedFrom.type'\u2026[truncated]",
              "db.client.connection.wait_time_ms": 0.012669
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "0e8362c8f5c8a4350a851246acdefaef",
            "spanId": "f124a0a89b78c372",
            "parentSpanId": "e700cbbef6467833",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698470156069",
            "endTimeUnixNano": "1796047698470194436",
            "durationMs": 0.038367,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n        SELECT MAX(sequence) AS snapshot_sequence\n        FROM orchestration_events\n        WHERE application_event_version = 2\n          AND aggregate_kind = 'thread'\n      ",
              "db.client.connection.wait_time_ms": 0.008032
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readShellSnapshotRows",
            "traceId": "0e8362c8f5c8a4350a851246acdefaef",
            "spanId": "e700cbbef6467833",
            "parentSpanId": "9679cf52716cc74a",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698469958674",
            "endTimeUnixNano": "1796047698470207906",
            "durationMs": 0.249232,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "COMMIT",
            "traceId": "0e8362c8f5c8a4350a851246acdefaef",
            "spanId": "53976f33addbcbac",
            "parentSpanId": "9679cf52716cc74a",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698470216309",
            "endTimeUnixNano": "1796047698470239804",
            "durationMs": 0.023495,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "COMMIT"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sql.transaction",
            "traceId": "0e8362c8f5c8a4350a851246acdefaef",
            "spanId": "9679cf52716cc74a",
            "parentSpanId": "6412c53ccc05ada6",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698469829851",
            "endTimeUnixNano": "1796047698470261276",
            "durationMs": 0.431425,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.client.connection.wait_time_ms": 0.05337,
              "db.connection": "reader",
              "db.lock_wait_ms": 0.039
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.pendingBackgroundDataByThreadId",
            "traceId": "0e8362c8f5c8a4350a851246acdefaef",
            "spanId": "5a17267429ab2f9e",
            "parentSpanId": "ca1904d961b4dc44",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698470296228",
            "endTimeUnixNano": "1796047698470300364",
            "durationMs": 0.004136,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.decodeShellSnapshot",
            "traceId": "0e8362c8f5c8a4350a851246acdefaef",
            "spanId": "ca1904d961b4dc44",
            "parentSpanId": "6412c53ccc05ada6",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698470287365",
            "endTimeUnixNano": "1796047698470308436",
            "durationMs": 0.021071,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "0e8362c8f5c8a4350a851246acdefaef",
            "spanId": "d7b03e38cee42d29",
            "parentSpanId": "af2e404b6478163d",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698470338451",
            "endTimeUnixNano": "1796047698470484710",
            "durationMs": 0.146259,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.035,
              "db.client.connection.wait_time_ms": 0.074502
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectStoreV2.listShells",
            "traceId": "0e8362c8f5c8a4350a851246acdefaef",
            "spanId": "af2e404b6478163d",
            "parentSpanId": "6412c53ccc05ada6",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698470316148",
            "endTimeUnixNano": "1796047698470557929",
            "durationMs": 0.241781,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.readThreads",
            "traceId": "0e8362c8f5c8a4350a851246acdefaef",
            "spanId": "6412c53ccc05ada6",
            "parentSpanId": "eb57fd2a2afda71e",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698469804884",
            "endTimeUnixNano": "1796047698470566622",
            "durationMs": 0.761738,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "0e8362c8f5c8a4350a851246acdefaef",
            "spanId": "0a24c1e5aa954d21",
            "parentSpanId": "eb57fd2a2afda71e",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698470591259",
            "endTimeUnixNano": "1796047698470711478",
            "durationMs": 0.120219,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.042,
              "db.client.connection.wait_time_ms": 0.056985
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "0e8362c8f5c8a4350a851246acdefaef",
            "spanId": "0da28767e02ed709",
            "parentSpanId": "6d28b479ca1b2df1",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698470783376",
            "endTimeUnixNano": "1796047698470864677",
            "durationMs": 0.081301,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT DISTINCT json_extract(payload_json, '$.worktreePath') AS \"worktreePath\"\n      FROM orchestration_v2_projection_threads\n      WHERE json_extract(payload_json, '$.worktreePath') IS NOT NUL\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.037,
              "db.client.connection.wait_time_ms": 0.045518
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "0e8362c8f5c8a4350a851246acdefaef",
            "spanId": "c4fb80874a64fbc2",
            "parentSpanId": "74307f78f59de160",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698472277278",
            "endTimeUnixNano": "1796047698473675306",
            "durationMs": 1.398028,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "0e8362c8f5c8a4350a851246acdefaef",
            "spanId": "74307f78f59de160",
            "parentSpanId": "fe3c706c2ead9bab",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698472112702",
            "endTimeUnixNano": "1796047698474524224",
            "durationMs": 2.411522,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "0e8362c8f5c8a4350a851246acdefaef",
            "spanId": "fe3c706c2ead9bab",
            "parentSpanId": "d1745a01f9a382a9",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698472072732",
            "endTimeUnixNano": "1796047698474703112",
            "durationMs": 2.63038,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo/packages/app",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "0e8362c8f5c8a4350a851246acdefaef",
            "spanId": "d1745a01f9a382a9",
            "parentSpanId": "6d28b479ca1b2df1",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698472051791",
            "endTimeUnixNano": "1796047698474725535",
            "durationMs": 2.673744,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "0e8362c8f5c8a4350a851246acdefaef",
            "spanId": "27ae3d4e70cfc939",
            "parentSpanId": "6d28b479ca1b2df1",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698474991883",
            "endTimeUnixNano": "1796047698475036840",
            "durationMs": 0.044957,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "0e8362c8f5c8a4350a851246acdefaef",
            "spanId": "538b982ac404d342",
            "parentSpanId": "6d28b479ca1b2df1",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698475126063",
            "endTimeUnixNano": "1796047698475158322",
            "durationMs": 0.032259,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "storageCleanup.measureWorktree",
            "traceId": "0e8362c8f5c8a4350a851246acdefaef",
            "spanId": "f291410b40be882b",
            "parentSpanId": "6d28b479ca1b2df1",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698475190189",
            "endTimeUnixNano": "1796047698475718318",
            "durationMs": 0.528129,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.reportOrphanWorktrees",
            "traceId": "0e8362c8f5c8a4350a851246acdefaef",
            "spanId": "6d28b479ca1b2df1",
            "parentSpanId": "eb57fd2a2afda71e",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698470773301",
            "endTimeUnixNano": "1796047698475750667",
            "durationMs": 4.977366,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanWorktrees",
            "traceId": "0e8362c8f5c8a4350a851246acdefaef",
            "spanId": "eb57fd2a2afda71e",
            "parentSpanId": "88d93d70033e62c3",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698469129926",
            "endTimeUnixNano": "1796047698475757467",
            "durationMs": 6.627541,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.sweep",
            "traceId": "0e8362c8f5c8a4350a851246acdefaef",
            "spanId": "88d93d70033e62c3",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698468829287",
            "endTimeUnixNano": "1796047698475783896",
            "durationMs": 6.954609,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          }
        ]
      },
      {
        "run": 13,
        "warmup": false,
        "elapsedMs": 7.578872000000018,
        "nestedOrphanFound": true,
        "report": {
          "_tag": "Success",
          "value": {
            "trigger": "manual",
            "startedAt": "2026-11-30T14:08:18.477Z",
            "finishedAt": "2026-11-30T14:08:18.483Z",
            "entries": [
              {
                "kind": "worktree",
                "outcome": "kept",
                "reason": "No thread uses this worktree",
                "path": "$FIXTURE/data/worktrees/repository/replay/repo-wt",
                "projectPath": null,
                "threadId": null,
                "threadTitle": null,
                "bytes": 8192,
                "files": null
              }
            ],
            "counts": {
              "removed": 0,
              "kept": 1,
              "failed": 0
            },
            "omittedCount": 0,
            "bytesFreed": 0
          }
        },
        "spans": [
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "20a69759e66b23ced64e93e0935b00da",
            "spanId": "cb6e5bbf1520b302",
            "parentSpanId": "8ca9fca737796784",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698476530962",
            "endTimeUnixNano": "1796047698476656660",
            "durationMs": 0.125698,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      WITH RECURSIVE retained_checkpoint_threads(thread_id) AS (\n        SELECT thread_id FROM orchestration_v2_projection_threads WHERE deleted_at IS NULL\n        UNION\n        SELECT json_extract(t\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.038,
              "db.client.connection.wait_time_ms": 0.052589
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanCheckpointRefs",
            "traceId": "20a69759e66b23ced64e93e0935b00da",
            "spanId": "8ca9fca737796784",
            "parentSpanId": "e02f9b36532aafe9",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698476520947",
            "endTimeUnixNano": "1796047698476690891",
            "durationMs": 0.169944,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.retryLeftovers",
            "traceId": "20a69759e66b23ced64e93e0935b00da",
            "spanId": "737c057c7c242bd6",
            "parentSpanId": "e02f9b36532aafe9",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698476708207",
            "endTimeUnixNano": "1796047698476771532",
            "durationMs": 0.063325,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveGitWorktreePath",
            "traceId": "20a69759e66b23ced64e93e0935b00da",
            "spanId": "5b0780e245e277e8",
            "parentSpanId": "bf05312788b5bebf",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698476803540",
            "endTimeUnixNano": "1796047698476994615",
            "durationMs": 0.191075,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveWorktreeT3Home",
            "traceId": "20a69759e66b23ced64e93e0935b00da",
            "spanId": "bf05312788b5bebf",
            "parentSpanId": "4b72d77956688d8d",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698476797721",
            "endTimeUnixNano": "1796047698477004570",
            "durationMs": 0.206849,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "20a69759e66b23ced64e93e0935b00da",
            "spanId": "6dc99f0aba764529",
            "parentSpanId": "4b72d77956688d8d",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698477257468",
            "endTimeUnixNano": "1796047698477358709",
            "durationMs": 0.101241,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n          SELECT t.payload_json, p.workspace_root AS \"workspaceRoot\"\n          FROM orchestration_v2_projection_threads t\n          JOIN projection_projects p ON p.project_id = t.project_id\n         \u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.034,
              "db.client.connection.wait_time_ms": 0.049804
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "BEGIN",
            "traceId": "20a69759e66b23ced64e93e0935b00da",
            "spanId": "fb2e89af27a3bd57",
            "parentSpanId": "edaa75ac3f7b8ef2",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698477512308",
            "endTimeUnixNano": "1796047698477556064",
            "durationMs": 0.043756,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "BEGIN"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "20a69759e66b23ced64e93e0935b00da",
            "spanId": "cca3b25d27bbe29d",
            "parentSpanId": "59a2be4af79e017b",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698477666418",
            "endTimeUnixNano": "1796047698477749192",
            "durationMs": 0.082774,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n            SELECT\n              t.thread_id,\n              t.payload_json,\n              t.fork_run_ids_json,\n              CASE\n                WHEN json_extract(t.payload_json, '$.forkedFrom.type'\u2026[truncated]",
              "db.client.connection.wait_time_ms": 0.01319
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "20a69759e66b23ced64e93e0935b00da",
            "spanId": "8d5c345cdb3da709",
            "parentSpanId": "59a2be4af79e017b",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698477779127",
            "endTimeUnixNano": "1796047698477818045",
            "durationMs": 0.038918,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n        SELECT MAX(sequence) AS snapshot_sequence\n        FROM orchestration_events\n        WHERE application_event_version = 2\n          AND aggregate_kind = 'thread'\n      ",
              "db.client.connection.wait_time_ms": 0.007381
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readShellSnapshotRows",
            "traceId": "20a69759e66b23ced64e93e0935b00da",
            "spanId": "59a2be4af79e017b",
            "parentSpanId": "edaa75ac3f7b8ef2",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698477579929",
            "endTimeUnixNano": "1796047698477831595",
            "durationMs": 0.251666,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "COMMIT",
            "traceId": "20a69759e66b23ced64e93e0935b00da",
            "spanId": "bfc8ce9bac14a971",
            "parentSpanId": "edaa75ac3f7b8ef2",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698477839878",
            "endTimeUnixNano": "1796047698477864154",
            "durationMs": 0.024276,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "COMMIT"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sql.transaction",
            "traceId": "20a69759e66b23ced64e93e0935b00da",
            "spanId": "edaa75ac3f7b8ef2",
            "parentSpanId": "21b4056a3930b964",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698477421853",
            "endTimeUnixNano": "1796047698477884364",
            "durationMs": 0.462511,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.client.connection.wait_time_ms": 0.084286,
              "db.connection": "reader",
              "db.lock_wait_ms": 0.069
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.pendingBackgroundDataByThreadId",
            "traceId": "20a69759e66b23ced64e93e0935b00da",
            "spanId": "4b2f3ad4b82e503c",
            "parentSpanId": "a316fd6d74bdce93",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698477917404",
            "endTimeUnixNano": "1796047698477921349",
            "durationMs": 0.003945,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.decodeShellSnapshot",
            "traceId": "20a69759e66b23ced64e93e0935b00da",
            "spanId": "a316fd6d74bdce93",
            "parentSpanId": "21b4056a3930b964",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698477908550",
            "endTimeUnixNano": "1796047698477929081",
            "durationMs": 0.020531,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "20a69759e66b23ced64e93e0935b00da",
            "spanId": "d7f8435e45f65022",
            "parentSpanId": "f961370780b8fb7e",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698477959857",
            "endTimeUnixNano": "1796047698478079125",
            "durationMs": 0.119268,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.032,
              "db.client.connection.wait_time_ms": 0.051717
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectStoreV2.listShells",
            "traceId": "20a69759e66b23ced64e93e0935b00da",
            "spanId": "f961370780b8fb7e",
            "parentSpanId": "21b4056a3930b964",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698477937734",
            "endTimeUnixNano": "1796047698478146286",
            "durationMs": 0.208552,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.readThreads",
            "traceId": "20a69759e66b23ced64e93e0935b00da",
            "spanId": "21b4056a3930b964",
            "parentSpanId": "4b72d77956688d8d",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698477398258",
            "endTimeUnixNano": "1796047698478154097",
            "durationMs": 0.755839,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "20a69759e66b23ced64e93e0935b00da",
            "spanId": "48283db34c9b888c",
            "parentSpanId": "4b72d77956688d8d",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698478177342",
            "endTimeUnixNano": "1796047698478274587",
            "durationMs": 0.097245,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.024,
              "db.client.connection.wait_time_ms": 0.036384
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "20a69759e66b23ced64e93e0935b00da",
            "spanId": "2ad5ff648b18e14d",
            "parentSpanId": "19d59732f6e45e93",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698478337391",
            "endTimeUnixNano": "1796047698478410300",
            "durationMs": 0.072909,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT DISTINCT json_extract(payload_json, '$.worktreePath') AS \"worktreePath\"\n      FROM orchestration_v2_projection_threads\n      WHERE json_extract(payload_json, '$.worktreePath') IS NOT NUL\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.033,
              "db.client.connection.wait_time_ms": 0.040891
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "20a69759e66b23ced64e93e0935b00da",
            "spanId": "d74c5910a58085b6",
            "parentSpanId": "c7680208166829ca",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698479799135",
            "endTimeUnixNano": "1796047698481283232",
            "durationMs": 1.484097,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "20a69759e66b23ced64e93e0935b00da",
            "spanId": "c7680208166829ca",
            "parentSpanId": "9c1e2dc4d58f7980",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698479638985",
            "endTimeUnixNano": "1796047698482129797",
            "durationMs": 2.490812,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "20a69759e66b23ced64e93e0935b00da",
            "spanId": "9c1e2dc4d58f7980",
            "parentSpanId": "1cc5977797022df3",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698479606136",
            "endTimeUnixNano": "1796047698482316115",
            "durationMs": 2.709979,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo/packages/app",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "20a69759e66b23ced64e93e0935b00da",
            "spanId": "1cc5977797022df3",
            "parentSpanId": "19d59732f6e45e93",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698479587929",
            "endTimeUnixNano": "1796047698482340621",
            "durationMs": 2.752692,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "20a69759e66b23ced64e93e0935b00da",
            "spanId": "61fa4146176b88c9",
            "parentSpanId": "19d59732f6e45e93",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698482593249",
            "endTimeUnixNano": "1796047698482632177",
            "durationMs": 0.038928,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "20a69759e66b23ced64e93e0935b00da",
            "spanId": "ba5c19f67857d522",
            "parentSpanId": "19d59732f6e45e93",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698482728941",
            "endTimeUnixNano": "1796047698482758786",
            "durationMs": 0.029845,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "storageCleanup.measureWorktree",
            "traceId": "20a69759e66b23ced64e93e0935b00da",
            "spanId": "bf4b65f295185463",
            "parentSpanId": "19d59732f6e45e93",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698482780919",
            "endTimeUnixNano": "1796047698483349168",
            "durationMs": 0.568249,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.reportOrphanWorktrees",
            "traceId": "20a69759e66b23ced64e93e0935b00da",
            "spanId": "19d59732f6e45e93",
            "parentSpanId": "4b72d77956688d8d",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698478328337",
            "endTimeUnixNano": "1796047698483381106",
            "durationMs": 5.052769,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanWorktrees",
            "traceId": "20a69759e66b23ced64e93e0935b00da",
            "spanId": "4b72d77956688d8d",
            "parentSpanId": "e02f9b36532aafe9",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698476783930",
            "endTimeUnixNano": "1796047698483387055",
            "durationMs": 6.603125,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.sweep",
            "traceId": "20a69759e66b23ced64e93e0935b00da",
            "spanId": "e02f9b36532aafe9",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698476501899",
            "endTimeUnixNano": "1796047698483413704",
            "durationMs": 6.911805,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          }
        ]
      },
      {
        "run": 14,
        "warmup": false,
        "elapsedMs": 11.833398000000045,
        "nestedOrphanFound": true,
        "report": {
          "_tag": "Success",
          "value": {
            "trigger": "manual",
            "startedAt": "2026-11-30T14:08:18.484Z",
            "finishedAt": "2026-11-30T14:08:18.495Z",
            "entries": [
              {
                "kind": "worktree",
                "outcome": "kept",
                "reason": "No thread uses this worktree",
                "path": "$FIXTURE/data/worktrees/repository/replay/repo-wt",
                "projectPath": null,
                "threadId": null,
                "threadTitle": null,
                "bytes": 8192,
                "files": null
              }
            ],
            "counts": {
              "removed": 0,
              "kept": 1,
              "failed": 0
            },
            "omittedCount": 0,
            "bytesFreed": 0
          }
        },
        "spans": [
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "4abd97acc6c08636e5a9d4338f442c9f",
            "spanId": "f29a84ca7dac4871",
            "parentSpanId": "ac6865fe2d7eba21",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698484128743",
            "endTimeUnixNano": "1796047698484242933",
            "durationMs": 0.11419,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      WITH RECURSIVE retained_checkpoint_threads(thread_id) AS (\n        SELECT thread_id FROM orchestration_v2_projection_threads WHERE deleted_at IS NULL\n        UNION\n        SELECT json_extract(t\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.036,
              "db.client.connection.wait_time_ms": 0.049424
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanCheckpointRefs",
            "traceId": "4abd97acc6c08636e5a9d4338f442c9f",
            "spanId": "ac6865fe2d7eba21",
            "parentSpanId": "89ba69bdde5bea77",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698484119169",
            "endTimeUnixNano": "1796047698487156897",
            "durationMs": 3.037728,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.retryLeftovers",
            "traceId": "4abd97acc6c08636e5a9d4338f442c9f",
            "spanId": "729f8c2ff4902402",
            "parentSpanId": "89ba69bdde5bea77",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698487191108",
            "endTimeUnixNano": "1796047698488269298",
            "durationMs": 1.07819,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveGitWorktreePath",
            "traceId": "4abd97acc6c08636e5a9d4338f442c9f",
            "spanId": "099b5db9439af805",
            "parentSpanId": "cd9556efba58a473",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698488333675",
            "endTimeUnixNano": "1796047698488575035",
            "durationMs": 0.24136,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveWorktreeT3Home",
            "traceId": "4abd97acc6c08636e5a9d4338f442c9f",
            "spanId": "cd9556efba58a473",
            "parentSpanId": "ff56d50554f25d6b",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698488326854",
            "endTimeUnixNano": "1796047698488589316",
            "durationMs": 0.262462,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "4abd97acc6c08636e5a9d4338f442c9f",
            "spanId": "56feb63593cbe143",
            "parentSpanId": "ff56d50554f25d6b",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698488810327",
            "endTimeUnixNano": "1796047698488940962",
            "durationMs": 0.130635,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n          SELECT t.payload_json, p.workspace_root AS \"workspaceRoot\"\n          FROM orchestration_v2_projection_threads t\n          JOIN projection_projects p ON p.project_id = t.project_id\n         \u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.06,
              "db.client.connection.wait_time_ms": 0.079639
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "BEGIN",
            "traceId": "4abd97acc6c08636e5a9d4338f442c9f",
            "spanId": "c6d79d3003eacdaf",
            "parentSpanId": "3e388ebc9d1b76b1",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698489084627",
            "endTimeUnixNano": "1796047698489127801",
            "durationMs": 0.043174,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "BEGIN"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "4abd97acc6c08636e5a9d4338f442c9f",
            "spanId": "5998719c8cc2c556",
            "parentSpanId": "ada4d50e1919dee0",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698489219117",
            "endTimeUnixNano": "1796047698489349923",
            "durationMs": 0.130806,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n            SELECT\n              t.thread_id,\n              t.payload_json,\n              t.fork_run_ids_json,\n              CASE\n                WHEN json_extract(t.payload_json, '$.forkedFrom.type'\u2026[truncated]",
              "db.client.connection.wait_time_ms": 0.012109
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "4abd97acc6c08636e5a9d4338f442c9f",
            "spanId": "80cdaf23f80f0ff8",
            "parentSpanId": "ada4d50e1919dee0",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698489387159",
            "endTimeUnixNano": "1796047698489429822",
            "durationMs": 0.042663,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n        SELECT MAX(sequence) AS snapshot_sequence\n        FROM orchestration_events\n        WHERE application_event_version = 2\n          AND aggregate_kind = 'thread'\n      ",
              "db.client.connection.wait_time_ms": 0.008292
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readShellSnapshotRows",
            "traceId": "4abd97acc6c08636e5a9d4338f442c9f",
            "spanId": "ada4d50e1919dee0",
            "parentSpanId": "3e388ebc9d1b76b1",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698489153169",
            "endTimeUnixNano": "1796047698489444624",
            "durationMs": 0.291455,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "COMMIT",
            "traceId": "4abd97acc6c08636e5a9d4338f442c9f",
            "spanId": "82f0a6089a4a49de",
            "parentSpanId": "3e388ebc9d1b76b1",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698489455330",
            "endTimeUnixNano": "1796047698489481860",
            "durationMs": 0.02653,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "COMMIT"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sql.transaction",
            "traceId": "4abd97acc6c08636e5a9d4338f442c9f",
            "spanId": "3e388ebc9d1b76b1",
            "parentSpanId": "60a40d88c1c7cbea",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698489032759",
            "endTimeUnixNano": "1796047698489502751",
            "durationMs": 0.469992,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.client.connection.wait_time_ms": 0.045839,
              "db.connection": "reader",
              "db.lock_wait_ms": 0.03
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.pendingBackgroundDataByThreadId",
            "traceId": "4abd97acc6c08636e5a9d4338f442c9f",
            "spanId": "c71552570a557162",
            "parentSpanId": "a2bf812a85d3253a",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698489541239",
            "endTimeUnixNano": "1796047698489545565",
            "durationMs": 0.004326,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.decodeShellSnapshot",
            "traceId": "4abd97acc6c08636e5a9d4338f442c9f",
            "spanId": "a2bf812a85d3253a",
            "parentSpanId": "60a40d88c1c7cbea",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698489531494",
            "endTimeUnixNano": "1796047698489554268",
            "durationMs": 0.022774,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "4abd97acc6c08636e5a9d4338f442c9f",
            "spanId": "e95b53b4e47ebd40",
            "parentSpanId": "cd8bccf464faefb4",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698489586937",
            "endTimeUnixNano": "1796047698489691934",
            "durationMs": 0.104997,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.032,
              "db.client.connection.wait_time_ms": 0.041392
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectStoreV2.listShells",
            "traceId": "4abd97acc6c08636e5a9d4338f442c9f",
            "spanId": "cd8bccf464faefb4",
            "parentSpanId": "60a40d88c1c7cbea",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698489561789",
            "endTimeUnixNano": "1796047698489766715",
            "durationMs": 0.204926,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.readThreads",
            "traceId": "4abd97acc6c08636e5a9d4338f442c9f",
            "spanId": "60a40d88c1c7cbea",
            "parentSpanId": "ff56d50554f25d6b",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698489001552",
            "endTimeUnixNano": "1796047698489776360",
            "durationMs": 0.774808,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "4abd97acc6c08636e5a9d4338f442c9f",
            "spanId": "7a5bbafe91d3b807",
            "parentSpanId": "ff56d50554f25d6b",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698489801147",
            "endTimeUnixNano": "1796047698489910020",
            "durationMs": 0.108873,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.025,
              "db.client.connection.wait_time_ms": 0.038367
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "4abd97acc6c08636e5a9d4338f442c9f",
            "spanId": "fa2ba7660892b33a",
            "parentSpanId": "7c9f4cf5c2525a4e",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698490004581",
            "endTimeUnixNano": "1796047698490087445",
            "durationMs": 0.082864,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT DISTINCT json_extract(payload_json, '$.worktreePath') AS \"worktreePath\"\n      FROM orchestration_v2_projection_threads\n      WHERE json_extract(payload_json, '$.worktreePath') IS NOT NUL\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.039,
              "db.client.connection.wait_time_ms": 0.049474
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "4abd97acc6c08636e5a9d4338f442c9f",
            "spanId": "eb9e57742f1be806",
            "parentSpanId": "99cafe89bfdaf977",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698491550871",
            "endTimeUnixNano": "1796047698493085624",
            "durationMs": 1.534753,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "4abd97acc6c08636e5a9d4338f442c9f",
            "spanId": "99cafe89bfdaf977",
            "parentSpanId": "3bca02950e9e9295",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698491385714",
            "endTimeUnixNano": "1796047698493896004",
            "durationMs": 2.51029,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "4abd97acc6c08636e5a9d4338f442c9f",
            "spanId": "3bca02950e9e9295",
            "parentSpanId": "f6ae103b77b4232f",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698491348639",
            "endTimeUnixNano": "1796047698494116654",
            "durationMs": 2.768015,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo/packages/app",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "4abd97acc6c08636e5a9d4338f442c9f",
            "spanId": "f6ae103b77b4232f",
            "parentSpanId": "7c9f4cf5c2525a4e",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698491329871",
            "endTimeUnixNano": "1796047698494158206",
            "durationMs": 2.828335,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "4abd97acc6c08636e5a9d4338f442c9f",
            "spanId": "8641ccbb547bba0e",
            "parentSpanId": "7c9f4cf5c2525a4e",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698494420708",
            "endTimeUnixNano": "1796047698494461249",
            "durationMs": 0.040541,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "4abd97acc6c08636e5a9d4338f442c9f",
            "spanId": "20079c6b4a8a6702",
            "parentSpanId": "7c9f4cf5c2525a4e",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698494559746",
            "endTimeUnixNano": "1796047698494583912",
            "durationMs": 0.024166,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "storageCleanup.measureWorktree",
            "traceId": "4abd97acc6c08636e5a9d4338f442c9f",
            "spanId": "8a116640486f0411",
            "parentSpanId": "7c9f4cf5c2525a4e",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698494605114",
            "endTimeUnixNano": "1796047698495160523",
            "durationMs": 0.555409,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.reportOrphanWorktrees",
            "traceId": "4abd97acc6c08636e5a9d4338f442c9f",
            "spanId": "7c9f4cf5c2525a4e",
            "parentSpanId": "ff56d50554f25d6b",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698489991030",
            "endTimeUnixNano": "1796047698495191980",
            "durationMs": 5.20095,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanWorktrees",
            "traceId": "4abd97acc6c08636e5a9d4338f442c9f",
            "spanId": "ff56d50554f25d6b",
            "parentSpanId": "89ba69bdde5bea77",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698488307956",
            "endTimeUnixNano": "1796047698495199061",
            "durationMs": 6.891105,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.sweep",
            "traceId": "4abd97acc6c08636e5a9d4338f442c9f",
            "spanId": "89ba69bdde5bea77",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698484094892",
            "endTimeUnixNano": "1796047698495227123",
            "durationMs": 11.132231,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          }
        ]
      },
      {
        "run": 15,
        "warmup": false,
        "elapsedMs": 7.712692000000004,
        "nestedOrphanFound": true,
        "report": {
          "_tag": "Success",
          "value": {
            "trigger": "manual",
            "startedAt": "2026-11-30T14:08:18.496Z",
            "finishedAt": "2026-11-30T14:08:18.503Z",
            "entries": [
              {
                "kind": "worktree",
                "outcome": "kept",
                "reason": "No thread uses this worktree",
                "path": "$FIXTURE/data/worktrees/repository/replay/repo-wt",
                "projectPath": null,
                "threadId": null,
                "threadTitle": null,
                "bytes": 8192,
                "files": null
              }
            ],
            "counts": {
              "removed": 0,
              "kept": 1,
              "failed": 0
            },
            "omittedCount": 0,
            "bytesFreed": 0
          }
        },
        "spans": [
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "b44c344748595ebd4065cb88fdcad3f5",
            "spanId": "9fa21ce54d762029",
            "parentSpanId": "711612a27edea828",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698496003443",
            "endTimeUnixNano": "1796047698496125575",
            "durationMs": 0.122132,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      WITH RECURSIVE retained_checkpoint_threads(thread_id) AS (\n        SELECT thread_id FROM orchestration_v2_projection_threads WHERE deleted_at IS NULL\n        UNION\n        SELECT json_extract(t\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.039,
              "db.client.connection.wait_time_ms": 0.054912
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanCheckpointRefs",
            "traceId": "b44c344748595ebd4065cb88fdcad3f5",
            "spanId": "711612a27edea828",
            "parentSpanId": "fd02d8a10d1b0e73",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698495992777",
            "endTimeUnixNano": "1796047698496160127",
            "durationMs": 0.16735,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.retryLeftovers",
            "traceId": "b44c344748595ebd4065cb88fdcad3f5",
            "spanId": "fc9aa51d2d36def4",
            "parentSpanId": "fd02d8a10d1b0e73",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698496179185",
            "endTimeUnixNano": "1796047698496243982",
            "durationMs": 0.064797,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveGitWorktreePath",
            "traceId": "b44c344748595ebd4065cb88fdcad3f5",
            "spanId": "b91bd92aa2f3d532",
            "parentSpanId": "9af322adf8eec5c8",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698496290101",
            "endTimeUnixNano": "1796047698496461026",
            "durationMs": 0.170925,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveWorktreeT3Home",
            "traceId": "b44c344748595ebd4065cb88fdcad3f5",
            "spanId": "9af322adf8eec5c8",
            "parentSpanId": "64b0708866100963",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698496282469",
            "endTimeUnixNano": "1796047698496468998",
            "durationMs": 0.186529,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "b44c344748595ebd4065cb88fdcad3f5",
            "spanId": "a4bb388a17e081e3",
            "parentSpanId": "64b0708866100963",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698496695316",
            "endTimeUnixNano": "1796047698496792041",
            "durationMs": 0.096725,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n          SELECT t.payload_json, p.workspace_root AS \"workspaceRoot\"\n          FROM orchestration_v2_projection_threads t\n          JOIN projection_projects p ON p.project_id = t.project_id\n         \u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.033,
              "db.client.connection.wait_time_ms": 0.057456
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "BEGIN",
            "traceId": "b44c344748595ebd4065cb88fdcad3f5",
            "spanId": "1c002105a0b2022b",
            "parentSpanId": "0eb09059ad9cd728",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698496923117",
            "endTimeUnixNano": "1796047698496972010",
            "durationMs": 0.048893,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "BEGIN"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "b44c344748595ebd4065cb88fdcad3f5",
            "spanId": "5e857780b99f1670",
            "parentSpanId": "4bd85f6fecc3747c",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698497080562",
            "endTimeUnixNano": "1796047698497167311",
            "durationMs": 0.086749,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n            SELECT\n              t.thread_id,\n              t.payload_json,\n              t.fork_run_ids_json,\n              CASE\n                WHEN json_extract(t.payload_json, '$.forkedFrom.type'\u2026[truncated]",
              "db.client.connection.wait_time_ms": 0.013259
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "b44c344748595ebd4065cb88fdcad3f5",
            "spanId": "5ff1900a98c2321a",
            "parentSpanId": "4bd85f6fecc3747c",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698497199630",
            "endTimeUnixNano": "1796047698497235193",
            "durationMs": 0.035563,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n        SELECT MAX(sequence) AS snapshot_sequence\n        FROM orchestration_events\n        WHERE application_event_version = 2\n          AND aggregate_kind = 'thread'\n      ",
              "db.client.connection.wait_time_ms": 0.007881
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readShellSnapshotRows",
            "traceId": "b44c344748595ebd4065cb88fdcad3f5",
            "spanId": "4bd85f6fecc3747c",
            "parentSpanId": "0eb09059ad9cd728",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698497000813",
            "endTimeUnixNano": "1796047698497254001",
            "durationMs": 0.253188,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "COMMIT",
            "traceId": "b44c344748595ebd4065cb88fdcad3f5",
            "spanId": "f8bf717fb264e71e",
            "parentSpanId": "0eb09059ad9cd728",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698497264066",
            "endTimeUnixNano": "1796047698497288733",
            "durationMs": 0.024667,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "COMMIT"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sql.transaction",
            "traceId": "b44c344748595ebd4065cb88fdcad3f5",
            "spanId": "0eb09059ad9cd728",
            "parentSpanId": "1be3e8b1ed08a852",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698496867123",
            "endTimeUnixNano": "1796047698497311998",
            "durationMs": 0.444875,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.client.connection.wait_time_ms": 0.050455,
              "db.connection": "reader",
              "db.lock_wait_ms": 0.035
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.pendingBackgroundDataByThreadId",
            "traceId": "b44c344748595ebd4065cb88fdcad3f5",
            "spanId": "9960764348b9e8a8",
            "parentSpanId": "66b5776addfb77d4",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698497348802",
            "endTimeUnixNano": "1796047698497353269",
            "durationMs": 0.004467,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.decodeShellSnapshot",
            "traceId": "b44c344748595ebd4065cb88fdcad3f5",
            "spanId": "66b5776addfb77d4",
            "parentSpanId": "1be3e8b1ed08a852",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698497338868",
            "endTimeUnixNano": "1796047698497361161",
            "durationMs": 0.022293,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "b44c344748595ebd4065cb88fdcad3f5",
            "spanId": "3458689f84a71530",
            "parentSpanId": "32d67b16175f10d9",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698497391817",
            "endTimeUnixNano": "1796047698497498907",
            "durationMs": 0.10709,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.031,
              "db.client.connection.wait_time_ms": 0.040931
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectStoreV2.listShells",
            "traceId": "b44c344748595ebd4065cb88fdcad3f5",
            "spanId": "32d67b16175f10d9",
            "parentSpanId": "1be3e8b1ed08a852",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698497368452",
            "endTimeUnixNano": "1796047698497584254",
            "durationMs": 0.215802,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.readThreads",
            "traceId": "b44c344748595ebd4065cb88fdcad3f5",
            "spanId": "1be3e8b1ed08a852",
            "parentSpanId": "64b0708866100963",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698496842416",
            "endTimeUnixNano": "1796047698497598826",
            "durationMs": 0.75641,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "b44c344748595ebd4065cb88fdcad3f5",
            "spanId": "1ab982777751ffd8",
            "parentSpanId": "64b0708866100963",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698497623122",
            "endTimeUnixNano": "1796047698497892735",
            "durationMs": 0.269613,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.024,
              "db.client.connection.wait_time_ms": 0.035894
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "b44c344748595ebd4065cb88fdcad3f5",
            "spanId": "c56238922c1037a5",
            "parentSpanId": "de709884ec4b1976",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698498002008",
            "endTimeUnixNano": "1796047698498129669",
            "durationMs": 0.127661,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT DISTINCT json_extract(payload_json, '$.worktreePath') AS \"worktreePath\"\n      FROM orchestration_v2_projection_threads\n      WHERE json_extract(payload_json, '$.worktreePath') IS NOT NUL\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.04,
              "db.client.connection.wait_time_ms": 0.050946
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "b44c344748595ebd4065cb88fdcad3f5",
            "spanId": "6bbd052ff589265f",
            "parentSpanId": "5364e4f526ec14f1",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698499514378",
            "endTimeUnixNano": "1796047698500894840",
            "durationMs": 1.380462,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "b44c344748595ebd4065cb88fdcad3f5",
            "spanId": "5364e4f526ec14f1",
            "parentSpanId": "c9678de9a183574a",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698499350553",
            "endTimeUnixNano": "1796047698501725852",
            "durationMs": 2.375299,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "b44c344748595ebd4065cb88fdcad3f5",
            "spanId": "c9678de9a183574a",
            "parentSpanId": "ffe753cdbe033e2c",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698499314008",
            "endTimeUnixNano": "1796047698501907703",
            "durationMs": 2.593695,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo/packages/app",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "b44c344748595ebd4065cb88fdcad3f5",
            "spanId": "ffe753cdbe033e2c",
            "parentSpanId": "de709884ec4b1976",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698499296022",
            "endTimeUnixNano": "1796047698501928875",
            "durationMs": 2.632853,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "b44c344748595ebd4065cb88fdcad3f5",
            "spanId": "077d7704bd09e695",
            "parentSpanId": "de709884ec4b1976",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698502197786",
            "endTimeUnixNano": "1796047698502237556",
            "durationMs": 0.03977,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "b44c344748595ebd4065cb88fdcad3f5",
            "spanId": "42ad9cf967c85f35",
            "parentSpanId": "de709884ec4b1976",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698502321131",
            "endTimeUnixNano": "1796047698502352428",
            "durationMs": 0.031297,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "storageCleanup.measureWorktree",
            "traceId": "b44c344748595ebd4065cb88fdcad3f5",
            "spanId": "0d32978fda9bf559",
            "parentSpanId": "de709884ec4b1976",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698502390034",
            "endTimeUnixNano": "1796047698502881848",
            "durationMs": 0.491814,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.reportOrphanWorktrees",
            "traceId": "b44c344748595ebd4065cb88fdcad3f5",
            "spanId": "de709884ec4b1976",
            "parentSpanId": "64b0708866100963",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698497991302",
            "endTimeUnixNano": "1796047698502911292",
            "durationMs": 4.91999,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanWorktrees",
            "traceId": "b44c344748595ebd4065cb88fdcad3f5",
            "spanId": "64b0708866100963",
            "parentSpanId": "fd02d8a10d1b0e73",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698496256621",
            "endTimeUnixNano": "1796047698502918013",
            "durationMs": 6.661392,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.sweep",
            "traceId": "b44c344748595ebd4065cb88fdcad3f5",
            "spanId": "fd02d8a10d1b0e73",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698495956142",
            "endTimeUnixNano": "1796047698502945924",
            "durationMs": 6.989782,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          }
        ]
      },
      {
        "run": 16,
        "warmup": false,
        "elapsedMs": 7.397422000000006,
        "nestedOrphanFound": true,
        "report": {
          "_tag": "Success",
          "value": {
            "trigger": "manual",
            "startedAt": "2026-11-30T14:08:18.504Z",
            "finishedAt": "2026-11-30T14:08:18.510Z",
            "entries": [
              {
                "kind": "worktree",
                "outcome": "kept",
                "reason": "No thread uses this worktree",
                "path": "$FIXTURE/data/worktrees/repository/replay/repo-wt",
                "projectPath": null,
                "threadId": null,
                "threadTitle": null,
                "bytes": 8192,
                "files": null
              }
            ],
            "counts": {
              "removed": 0,
              "kept": 1,
              "failed": 0
            },
            "omittedCount": 0,
            "bytesFreed": 0
          }
        },
        "spans": [
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "85d0db4190cabbdbf407ade97215a9e2",
            "spanId": "9a4cae3f71a7f864",
            "parentSpanId": "60327a4359e8bb27",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698503688073",
            "endTimeUnixNano": "1796047698503831707",
            "durationMs": 0.143634,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      WITH RECURSIVE retained_checkpoint_threads(thread_id) AS (\n        SELECT thread_id FROM orchestration_v2_projection_threads WHERE deleted_at IS NULL\n        UNION\n        SELECT json_extract(t\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.054,
              "db.client.connection.wait_time_ms": 0.067631
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanCheckpointRefs",
            "traceId": "85d0db4190cabbdbf407ade97215a9e2",
            "spanId": "60327a4359e8bb27",
            "parentSpanId": "d599fc73faa9bc2a",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698503677046",
            "endTimeUnixNano": "1796047698503863505",
            "durationMs": 0.186459,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.retryLeftovers",
            "traceId": "85d0db4190cabbdbf407ade97215a9e2",
            "spanId": "740e70c82e5b2bd8",
            "parentSpanId": "d599fc73faa9bc2a",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698503880420",
            "endTimeUnixNano": "1796047698503954241",
            "durationMs": 0.073821,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveGitWorktreePath",
            "traceId": "85d0db4190cabbdbf407ade97215a9e2",
            "spanId": "119e212d55fc30b4",
            "parentSpanId": "1963f60495fceccf",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698503998206",
            "endTimeUnixNano": "1796047698504207839",
            "durationMs": 0.209633,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveWorktreeT3Home",
            "traceId": "85d0db4190cabbdbf407ade97215a9e2",
            "spanId": "1963f60495fceccf",
            "parentSpanId": "f1ad7a9008c677ab",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698503992127",
            "endTimeUnixNano": "1796047698504218205",
            "durationMs": 0.226078,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "85d0db4190cabbdbf407ade97215a9e2",
            "spanId": "6619c41430ba4041",
            "parentSpanId": "f1ad7a9008c677ab",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698504423792",
            "endTimeUnixNano": "1796047698504529760",
            "durationMs": 0.105968,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n          SELECT t.payload_json, p.workspace_root AS \"workspaceRoot\"\n          FROM orchestration_v2_projection_threads t\n          JOIN projection_projects p ON p.project_id = t.project_id\n         \u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.042,
              "db.client.connection.wait_time_ms": 0.057646
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "BEGIN",
            "traceId": "85d0db4190cabbdbf407ade97215a9e2",
            "spanId": "94561ae6e6410068",
            "parentSpanId": "c1c7a5bee283ac7d",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698504644171",
            "endTimeUnixNano": "1796047698504682809",
            "durationMs": 0.038638,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "BEGIN"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "85d0db4190cabbdbf407ade97215a9e2",
            "spanId": "61b137720eadcc33",
            "parentSpanId": "d0419cfc74517f2c",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698504778292",
            "endTimeUnixNano": "1796047698504846033",
            "durationMs": 0.067741,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n            SELECT\n              t.thread_id,\n              t.payload_json,\n              t.fork_run_ids_json,\n              CASE\n                WHEN json_extract(t.payload_json, '$.forkedFrom.type'\u2026[truncated]",
              "db.client.connection.wait_time_ms": 0.011837
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "85d0db4190cabbdbf407ade97215a9e2",
            "spanId": "5098e3370d7d6396",
            "parentSpanId": "d0419cfc74517f2c",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698504875987",
            "endTimeUnixNano": "1796047698504926523",
            "durationMs": 0.050536,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n        SELECT MAX(sequence) AS snapshot_sequence\n        FROM orchestration_events\n        WHERE application_event_version = 2\n          AND aggregate_kind = 'thread'\n      ",
              "db.client.connection.wait_time_ms": 0.018708
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readShellSnapshotRows",
            "traceId": "85d0db4190cabbdbf407ade97215a9e2",
            "spanId": "d0419cfc74517f2c",
            "parentSpanId": "c1c7a5bee283ac7d",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698504703830",
            "endTimeUnixNano": "1796047698504940304",
            "durationMs": 0.236474,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "COMMIT",
            "traceId": "85d0db4190cabbdbf407ade97215a9e2",
            "spanId": "b8fb8207802fbb72",
            "parentSpanId": "c1c7a5bee283ac7d",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698504949077",
            "endTimeUnixNano": "1796047698504979612",
            "durationMs": 0.030535,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "COMMIT"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sql.transaction",
            "traceId": "85d0db4190cabbdbf407ade97215a9e2",
            "spanId": "c1c7a5bee283ac7d",
            "parentSpanId": "bf2dacd920011923",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698504598082",
            "endTimeUnixNano": "1796047698505000283",
            "durationMs": 0.402201,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.client.connection.wait_time_ms": 0.040751,
              "db.connection": "reader",
              "db.lock_wait_ms": 0.025
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.pendingBackgroundDataByThreadId",
            "traceId": "85d0db4190cabbdbf407ade97215a9e2",
            "spanId": "3fc75ee246b39451",
            "parentSpanId": "fd540d92d09d3762",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698505033453",
            "endTimeUnixNano": "1796047698505037899",
            "durationMs": 0.004446,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.decodeShellSnapshot",
            "traceId": "85d0db4190cabbdbf407ade97215a9e2",
            "spanId": "fd540d92d09d3762",
            "parentSpanId": "bf2dacd920011923",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698505023859",
            "endTimeUnixNano": "1796047698505045881",
            "durationMs": 0.022022,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "85d0db4190cabbdbf407ade97215a9e2",
            "spanId": "5c0216f84e25423e",
            "parentSpanId": "f434b4ebaecc637a",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698505078720",
            "endTimeUnixNano": "1796047698505188545",
            "durationMs": 0.109825,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.036,
              "db.client.connection.wait_time_ms": 0.045669
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectStoreV2.listShells",
            "traceId": "85d0db4190cabbdbf407ade97215a9e2",
            "spanId": "f434b4ebaecc637a",
            "parentSpanId": "bf2dacd920011923",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698505054634",
            "endTimeUnixNano": "1796047698505247352",
            "durationMs": 0.192718,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.readThreads",
            "traceId": "85d0db4190cabbdbf407ade97215a9e2",
            "spanId": "bf2dacd920011923",
            "parentSpanId": "f1ad7a9008c677ab",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698504566375",
            "endTimeUnixNano": "1796047698505255424",
            "durationMs": 0.689049,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "85d0db4190cabbdbf407ade97215a9e2",
            "spanId": "420acd9f66af4f02",
            "parentSpanId": "f1ad7a9008c677ab",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698505277467",
            "endTimeUnixNano": "1796047698505366160",
            "durationMs": 0.088693,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.024,
              "db.client.connection.wait_time_ms": 0.035463
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "85d0db4190cabbdbf407ade97215a9e2",
            "spanId": "f67e5e68b0753ce3",
            "parentSpanId": "ed30878db8582068",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698505420661",
            "endTimeUnixNano": "1796047698505492118",
            "durationMs": 0.071457,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT DISTINCT json_extract(payload_json, '$.worktreePath') AS \"worktreePath\"\n      FROM orchestration_v2_projection_threads\n      WHERE json_extract(payload_json, '$.worktreePath') IS NOT NUL\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.033,
              "db.client.connection.wait_time_ms": 0.041092
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "85d0db4190cabbdbf407ade97215a9e2",
            "spanId": "e5ddd90de725f8fd",
            "parentSpanId": "1350bd1e7ff21ae3",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698506830127",
            "endTimeUnixNano": "1796047698508322056",
            "durationMs": 1.491929,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "85d0db4190cabbdbf407ade97215a9e2",
            "spanId": "1350bd1e7ff21ae3",
            "parentSpanId": "61feca8205b81e7a",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698506664049",
            "endTimeUnixNano": "1796047698509143323",
            "durationMs": 2.479274,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "85d0db4190cabbdbf407ade97215a9e2",
            "spanId": "61feca8205b81e7a",
            "parentSpanId": "ffa88b761b09a467",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698506631310",
            "endTimeUnixNano": "1796047698509343401",
            "durationMs": 2.712091,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo/packages/app",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "85d0db4190cabbdbf407ade97215a9e2",
            "spanId": "ffa88b761b09a467",
            "parentSpanId": "ed30878db8582068",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698506613313",
            "endTimeUnixNano": "1796047698509366746",
            "durationMs": 2.753433,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "85d0db4190cabbdbf407ade97215a9e2",
            "spanId": "21cb75be16bd41c8",
            "parentSpanId": "ed30878db8582068",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698509624762",
            "endTimeUnixNano": "1796047698509668046",
            "durationMs": 0.043284,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "85d0db4190cabbdbf407ade97215a9e2",
            "spanId": "9ed07254e0511c4f",
            "parentSpanId": "ed30878db8582068",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698509753915",
            "endTimeUnixNano": "1796047698509782407",
            "durationMs": 0.028492,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "storageCleanup.measureWorktree",
            "traceId": "85d0db4190cabbdbf407ade97215a9e2",
            "spanId": "15ff84588a657f2e",
            "parentSpanId": "ed30878db8582068",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698509804650",
            "endTimeUnixNano": "1796047698510323886",
            "durationMs": 0.519236,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.reportOrphanWorktrees",
            "traceId": "85d0db4190cabbdbf407ade97215a9e2",
            "spanId": "ed30878db8582068",
            "parentSpanId": "f1ad7a9008c677ab",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698505412419",
            "endTimeUnixNano": "1796047698510356745",
            "durationMs": 4.944326,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanWorktrees",
            "traceId": "85d0db4190cabbdbf407ade97215a9e2",
            "spanId": "f1ad7a9008c677ab",
            "parentSpanId": "d599fc73faa9bc2a",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698503977836",
            "endTimeUnixNano": "1796047698510363455",
            "durationMs": 6.385619,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.sweep",
            "traceId": "85d0db4190cabbdbf407ade97215a9e2",
            "spanId": "d599fc73faa9bc2a",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698503659480",
            "endTimeUnixNano": "1796047698510390105",
            "durationMs": 6.730625,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          }
        ]
      },
      {
        "run": 17,
        "warmup": false,
        "elapsedMs": 7.909716000000003,
        "nestedOrphanFound": true,
        "report": {
          "_tag": "Success",
          "value": {
            "trigger": "manual",
            "startedAt": "2026-11-30T14:08:18.511Z",
            "finishedAt": "2026-11-30T14:08:18.518Z",
            "entries": [
              {
                "kind": "worktree",
                "outcome": "kept",
                "reason": "No thread uses this worktree",
                "path": "$FIXTURE/data/worktrees/repository/replay/repo-wt",
                "projectPath": null,
                "threadId": null,
                "threadTitle": null,
                "bytes": 8192,
                "files": null
              }
            ],
            "counts": {
              "removed": 0,
              "kept": 1,
              "failed": 0
            },
            "omittedCount": 0,
            "bytesFreed": 0
          }
        },
        "spans": [
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "236750581da27452a46f595bdcd2b0d4",
            "spanId": "2d6ca157027f6672",
            "parentSpanId": "6d0c2d1971ff81b4",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698511094057",
            "endTimeUnixNano": "1796047698511283730",
            "durationMs": 0.189673,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      WITH RECURSIVE retained_checkpoint_threads(thread_id) AS (\n        SELECT thread_id FROM orchestration_v2_projection_threads WHERE deleted_at IS NULL\n        UNION\n        SELECT json_extract(t\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.04,
              "db.client.connection.wait_time_ms": 0.059529
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanCheckpointRefs",
            "traceId": "236750581da27452a46f595bdcd2b0d4",
            "spanId": "6d0c2d1971ff81b4",
            "parentSpanId": "0f7b682e1ed09bdb",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698511084413",
            "endTimeUnixNano": "1796047698511318883",
            "durationMs": 0.23447,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.retryLeftovers",
            "traceId": "236750581da27452a46f595bdcd2b0d4",
            "spanId": "5c2f12d520abcd71",
            "parentSpanId": "0f7b682e1ed09bdb",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698511338121",
            "endTimeUnixNano": "1796047698511405582",
            "durationMs": 0.067461,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveGitWorktreePath",
            "traceId": "236750581da27452a46f595bdcd2b0d4",
            "spanId": "18613a47862b6d62",
            "parentSpanId": "034c8e1ebfa46d45",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698511439653",
            "endTimeUnixNano": "1796047698511600964",
            "durationMs": 0.161311,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveWorktreeT3Home",
            "traceId": "236750581da27452a46f595bdcd2b0d4",
            "spanId": "034c8e1ebfa46d45",
            "parentSpanId": "354ed91d695ed447",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698511433895",
            "endTimeUnixNano": "1796047698511618711",
            "durationMs": 0.184816,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "236750581da27452a46f595bdcd2b0d4",
            "spanId": "38944695dcc8ebed",
            "parentSpanId": "354ed91d695ed447",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698511843096",
            "endTimeUnixNano": "1796047698511949966",
            "durationMs": 0.10687,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n          SELECT t.payload_json, p.workspace_root AS \"workspaceRoot\"\n          FROM orchestration_v2_projection_threads t\n          JOIN projection_projects p ON p.project_id = t.project_id\n         \u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.033,
              "db.client.connection.wait_time_ms": 0.048332
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "BEGIN",
            "traceId": "236750581da27452a46f595bdcd2b0d4",
            "spanId": "dcc478945bddd006",
            "parentSpanId": "11b9135abc8c163e",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698512094451",
            "endTimeUnixNano": "1796047698512162022",
            "durationMs": 0.067571,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "BEGIN"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "236750581da27452a46f595bdcd2b0d4",
            "spanId": "a17fb688d1415bd5",
            "parentSpanId": "4de86421ab4f8fb6",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698512294460",
            "endTimeUnixNano": "1796047698512383824",
            "durationMs": 0.089364,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n            SELECT\n              t.thread_id,\n              t.payload_json,\n              t.fork_run_ids_json,\n              CASE\n                WHEN json_extract(t.payload_json, '$.forkedFrom.type'\u2026[truncated]",
              "db.client.connection.wait_time_ms": 0.01317
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "236750581da27452a46f595bdcd2b0d4",
            "spanId": "dcd50459dda333d4",
            "parentSpanId": "4de86421ab4f8fb6",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698512411705",
            "endTimeUnixNano": "1796047698512460949",
            "durationMs": 0.049244,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n        SELECT MAX(sequence) AS snapshot_sequence\n        FROM orchestration_events\n        WHERE application_event_version = 2\n          AND aggregate_kind = 'thread'\n      ",
              "db.client.connection.wait_time_ms": 0.006971
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readShellSnapshotRows",
            "traceId": "236750581da27452a46f595bdcd2b0d4",
            "spanId": "4de86421ab4f8fb6",
            "parentSpanId": "11b9135abc8c163e",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698512202042",
            "endTimeUnixNano": "1796047698512473157",
            "durationMs": 0.271115,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "COMMIT",
            "traceId": "236750581da27452a46f595bdcd2b0d4",
            "spanId": "a3e4023ae9567e2a",
            "parentSpanId": "11b9135abc8c163e",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698512482181",
            "endTimeUnixNano": "1796047698512512896",
            "durationMs": 0.030715,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "COMMIT"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sql.transaction",
            "traceId": "236750581da27452a46f595bdcd2b0d4",
            "spanId": "11b9135abc8c163e",
            "parentSpanId": "ce317e3b3273127d",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698512042754",
            "endTimeUnixNano": "1796047698512532816",
            "durationMs": 0.490062,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.client.connection.wait_time_ms": 0.046069,
              "db.connection": "reader",
              "db.lock_wait_ms": 0.03
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.pendingBackgroundDataByThreadId",
            "traceId": "236750581da27452a46f595bdcd2b0d4",
            "spanId": "e17e78b69ddebc0f",
            "parentSpanId": "545f831f3af7fb96",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698512570262",
            "endTimeUnixNano": "1796047698512575370",
            "durationMs": 0.005108,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.decodeShellSnapshot",
            "traceId": "236750581da27452a46f595bdcd2b0d4",
            "spanId": "545f831f3af7fb96",
            "parentSpanId": "ce317e3b3273127d",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698512560217",
            "endTimeUnixNano": "1796047698512582781",
            "durationMs": 0.022564,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "236750581da27452a46f595bdcd2b0d4",
            "spanId": "75267519dbd22da9",
            "parentSpanId": "13a953c9c68d955f",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698512613447",
            "endTimeUnixNano": "1796047698512731703",
            "durationMs": 0.118256,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.03,
              "db.client.connection.wait_time_ms": 0.039178
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectStoreV2.listShells",
            "traceId": "236750581da27452a46f595bdcd2b0d4",
            "spanId": "13a953c9c68d955f",
            "parentSpanId": "ce317e3b3273127d",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698512589591",
            "endTimeUnixNano": "1796047698512791873",
            "durationMs": 0.202282,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.readThreads",
            "traceId": "236750581da27452a46f595bdcd2b0d4",
            "spanId": "ce317e3b3273127d",
            "parentSpanId": "354ed91d695ed447",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698512003786",
            "endTimeUnixNano": "1796047698512801347",
            "durationMs": 0.797561,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "236750581da27452a46f595bdcd2b0d4",
            "spanId": "940ba826c9f11dac",
            "parentSpanId": "354ed91d695ed447",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698512823480",
            "endTimeUnixNano": "1796047698512923269",
            "durationMs": 0.099789,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.023,
              "db.client.connection.wait_time_ms": 0.033981
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "236750581da27452a46f595bdcd2b0d4",
            "spanId": "81859aa9ac7be7f5",
            "parentSpanId": "41a7bc17d7f3073f",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698512993525",
            "endTimeUnixNano": "1796047698513086303",
            "durationMs": 0.092778,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT DISTINCT json_extract(payload_json, '$.worktreePath') AS \"worktreePath\"\n      FROM orchestration_v2_projection_threads\n      WHERE json_extract(payload_json, '$.worktreePath') IS NOT NUL\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.038,
              "db.client.connection.wait_time_ms": 0.04722
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "236750581da27452a46f595bdcd2b0d4",
            "spanId": "cb4ba39e88c88ad8",
            "parentSpanId": "d63540824f2e24d9",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698514463871",
            "endTimeUnixNano": "1796047698515890282",
            "durationMs": 1.426411,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "236750581da27452a46f595bdcd2b0d4",
            "spanId": "d63540824f2e24d9",
            "parentSpanId": "c307c991da3d2572",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698514298163",
            "endTimeUnixNano": "1796047698516672731",
            "durationMs": 2.374568,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "236750581da27452a46f595bdcd2b0d4",
            "spanId": "c307c991da3d2572",
            "parentSpanId": "2652fe0bb1a4e270",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698514262020",
            "endTimeUnixNano": "1796047698516867942",
            "durationMs": 2.605922,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo/packages/app",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "236750581da27452a46f595bdcd2b0d4",
            "spanId": "2652fe0bb1a4e270",
            "parentSpanId": "41a7bc17d7f3073f",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698514241739",
            "endTimeUnixNano": "1796047698516902444",
            "durationMs": 2.660705,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "236750581da27452a46f595bdcd2b0d4",
            "spanId": "e92455c84795e8d1",
            "parentSpanId": "41a7bc17d7f3073f",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698517161681",
            "endTimeUnixNano": "1796047698517204515",
            "durationMs": 0.042834,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "236750581da27452a46f595bdcd2b0d4",
            "spanId": "ed060be524ecd501",
            "parentSpanId": "41a7bc17d7f3073f",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698517309102",
            "endTimeUnixNano": "1796047698517329282",
            "durationMs": 0.02018,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "storageCleanup.measureWorktree",
            "traceId": "236750581da27452a46f595bdcd2b0d4",
            "spanId": "63b56a5830ca73dc",
            "parentSpanId": "41a7bc17d7f3073f",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698517350173",
            "endTimeUnixNano": "1796047698517893234",
            "durationMs": 0.543061,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.reportOrphanWorktrees",
            "traceId": "236750581da27452a46f595bdcd2b0d4",
            "spanId": "41a7bc17d7f3073f",
            "parentSpanId": "354ed91d695ed447",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698512985042",
            "endTimeUnixNano": "1796047698517925182",
            "durationMs": 4.94014,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanWorktrees",
            "traceId": "236750581da27452a46f595bdcd2b0d4",
            "spanId": "354ed91d695ed447",
            "parentSpanId": "0f7b682e1ed09bdb",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698511419373",
            "endTimeUnixNano": "1796047698517933364",
            "durationMs": 6.513991,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.sweep",
            "traceId": "236750581da27452a46f595bdcd2b0d4",
            "spanId": "0f7b682e1ed09bdb",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698511065674",
            "endTimeUnixNano": "1796047698517959012",
            "durationMs": 6.893338,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          }
        ]
      },
      {
        "run": 18,
        "warmup": false,
        "elapsedMs": 7.36406199999999,
        "nestedOrphanFound": true,
        "report": {
          "_tag": "Success",
          "value": {
            "trigger": "manual",
            "startedAt": "2026-11-30T14:08:18.519Z",
            "finishedAt": "2026-11-30T14:08:18.526Z",
            "entries": [
              {
                "kind": "worktree",
                "outcome": "kept",
                "reason": "No thread uses this worktree",
                "path": "$FIXTURE/data/worktrees/repository/replay/repo-wt",
                "projectPath": null,
                "threadId": null,
                "threadTitle": null,
                "bytes": 8192,
                "files": null
              }
            ],
            "counts": {
              "removed": 0,
              "kept": 1,
              "failed": 0
            },
            "omittedCount": 0,
            "bytesFreed": 0
          }
        },
        "spans": [
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "e3937e40178fb32d764cc87c5c7341ee",
            "spanId": "ea38120f56ace659",
            "parentSpanId": "3e4e44af308f9c59",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698519098986",
            "endTimeUnixNano": "1796047698519254298",
            "durationMs": 0.155312,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      WITH RECURSIVE retained_checkpoint_threads(thread_id) AS (\n        SELECT thread_id FROM orchestration_v2_projection_threads WHERE deleted_at IS NULL\n        UNION\n        SELECT json_extract(t\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.056,
              "db.client.connection.wait_time_ms": 0.075412
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanCheckpointRefs",
            "traceId": "e3937e40178fb32d764cc87c5c7341ee",
            "spanId": "3e4e44af308f9c59",
            "parentSpanId": "2b94c8d92eab9f65",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698519089031",
            "endTimeUnixNano": "1796047698519288188",
            "durationMs": 0.199157,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.retryLeftovers",
            "traceId": "e3937e40178fb32d764cc87c5c7341ee",
            "spanId": "12a3c44e2bf600e0",
            "parentSpanId": "2b94c8d92eab9f65",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698519305544",
            "endTimeUnixNano": "1796047698519375769",
            "durationMs": 0.070225,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveGitWorktreePath",
            "traceId": "e3937e40178fb32d764cc87c5c7341ee",
            "spanId": "20b10c28d2390af2",
            "parentSpanId": "ed995719d3bdcfb9",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698519408588",
            "endTimeUnixNano": "1796047698519576138",
            "durationMs": 0.16755,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveWorktreeT3Home",
            "traceId": "e3937e40178fb32d764cc87c5c7341ee",
            "spanId": "ed995719d3bdcfb9",
            "parentSpanId": "9cbb1109f8fbcf0c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698519402499",
            "endTimeUnixNano": "1796047698519583039",
            "durationMs": 0.18054,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "e3937e40178fb32d764cc87c5c7341ee",
            "spanId": "9a6c77ee868a3f29",
            "parentSpanId": "9cbb1109f8fbcf0c",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698519802557",
            "endTimeUnixNano": "1796047698519900092",
            "durationMs": 0.097535,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n          SELECT t.payload_json, p.workspace_root AS \"workspaceRoot\"\n          FROM orchestration_v2_projection_threads t\n          JOIN projection_projects p ON p.project_id = t.project_id\n         \u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.031,
              "db.client.connection.wait_time_ms": 0.045958
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "BEGIN",
            "traceId": "e3937e40178fb32d764cc87c5c7341ee",
            "spanId": "7328890543cf1c75",
            "parentSpanId": "69b7a5c95a4e2b28",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698520015074",
            "endTimeUnixNano": "1796047698520063997",
            "durationMs": 0.048923,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "BEGIN"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "e3937e40178fb32d764cc87c5c7341ee",
            "spanId": "0915cdcadb5cbfee",
            "parentSpanId": "122fe48234e9ccaa",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698520158979",
            "endTimeUnixNano": "1796047698520234342",
            "durationMs": 0.075363,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n            SELECT\n              t.thread_id,\n              t.payload_json,\n              t.fork_run_ids_json,\n              CASE\n                WHEN json_extract(t.payload_json, '$.forkedFrom.type'\u2026[truncated]",
              "db.client.connection.wait_time_ms": 0.014732
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "e3937e40178fb32d764cc87c5c7341ee",
            "spanId": "ceabbbf8408ac7e2",
            "parentSpanId": "122fe48234e9ccaa",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698520257406",
            "endTimeUnixNano": "1796047698520299168",
            "durationMs": 0.041762,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n        SELECT MAX(sequence) AS snapshot_sequence\n        FROM orchestration_events\n        WHERE application_event_version = 2\n          AND aggregate_kind = 'thread'\n      ",
              "db.client.connection.wait_time_ms": 0.00653
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readShellSnapshotRows",
            "traceId": "e3937e40178fb32d764cc87c5c7341ee",
            "spanId": "122fe48234e9ccaa",
            "parentSpanId": "69b7a5c95a4e2b28",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698520085369",
            "endTimeUnixNano": "1796047698520311126",
            "durationMs": 0.225757,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "COMMIT",
            "traceId": "e3937e40178fb32d764cc87c5c7341ee",
            "spanId": "adede0028ae5d93b",
            "parentSpanId": "69b7a5c95a4e2b28",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698520319589",
            "endTimeUnixNano": "1796047698520348532",
            "durationMs": 0.028943,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "COMMIT"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sql.transaction",
            "traceId": "e3937e40178fb32d764cc87c5c7341ee",
            "spanId": "69b7a5c95a4e2b28",
            "parentSpanId": "1ddbc3a1a36fb997",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698519956216",
            "endTimeUnixNano": "1796047698520367450",
            "durationMs": 0.411234,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.client.connection.wait_time_ms": 0.05319,
              "db.connection": "reader",
              "db.lock_wait_ms": 0.027
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.pendingBackgroundDataByThreadId",
            "traceId": "e3937e40178fb32d764cc87c5c7341ee",
            "spanId": "f009e76edb948408",
            "parentSpanId": "48bc6547f03a729c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698520397876",
            "endTimeUnixNano": "1796047698520401471",
            "durationMs": 0.003595,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.decodeShellSnapshot",
            "traceId": "e3937e40178fb32d764cc87c5c7341ee",
            "spanId": "48bc6547f03a729c",
            "parentSpanId": "1ddbc3a1a36fb997",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698520389333",
            "endTimeUnixNano": "1796047698520409103",
            "durationMs": 0.01977,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "e3937e40178fb32d764cc87c5c7341ee",
            "spanId": "69e9f7dd6b2058b5",
            "parentSpanId": "1741785a8fe21b9a",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698520437405",
            "endTimeUnixNano": "1796047698520539738",
            "durationMs": 0.102333,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.028,
              "db.client.connection.wait_time_ms": 0.037907
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectStoreV2.listShells",
            "traceId": "e3937e40178fb32d764cc87c5c7341ee",
            "spanId": "1741785a8fe21b9a",
            "parentSpanId": "1ddbc3a1a36fb997",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698520415903",
            "endTimeUnixNano": "1796047698520597274",
            "durationMs": 0.181371,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.readThreads",
            "traceId": "e3937e40178fb32d764cc87c5c7341ee",
            "spanId": "1ddbc3a1a36fb997",
            "parentSpanId": "9cbb1109f8fbcf0c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698519934744",
            "endTimeUnixNano": "1796047698520603994",
            "durationMs": 0.66925,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "e3937e40178fb32d764cc87c5c7341ee",
            "spanId": "176893a601f244b6",
            "parentSpanId": "9cbb1109f8fbcf0c",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698520625106",
            "endTimeUnixNano": "1796047698520716883",
            "durationMs": 0.091777,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.021,
              "db.client.connection.wait_time_ms": 0.031677
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "e3937e40178fb32d764cc87c5c7341ee",
            "spanId": "5f5c7ee4f4df249e",
            "parentSpanId": "f24059f0db9b84a8",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698520773497",
            "endTimeUnixNano": "1796047698520851173",
            "durationMs": 0.077676,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT DISTINCT json_extract(payload_json, '$.worktreePath') AS \"worktreePath\"\n      FROM orchestration_v2_projection_threads\n      WHERE json_extract(payload_json, '$.worktreePath') IS NOT NUL\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.031,
              "db.client.connection.wait_time_ms": 0.038708
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "e3937e40178fb32d764cc87c5c7341ee",
            "spanId": "88b8e561add43598",
            "parentSpanId": "d5b860752f0991b4",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698522229242",
            "endTimeUnixNano": "1796047698523641121",
            "durationMs": 1.411879,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "e3937e40178fb32d764cc87c5c7341ee",
            "spanId": "d5b860752f0991b4",
            "parentSpanId": "2dd39691c0b61d64",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698522056694",
            "endTimeUnixNano": "1796047698524461667",
            "durationMs": 2.404973,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "e3937e40178fb32d764cc87c5c7341ee",
            "spanId": "2dd39691c0b61d64",
            "parentSpanId": "6a748072df0186f3",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698522023545",
            "endTimeUnixNano": "1796047698524637570",
            "durationMs": 2.614025,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo/packages/app",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "e3937e40178fb32d764cc87c5c7341ee",
            "spanId": "6a748072df0186f3",
            "parentSpanId": "f24059f0db9b84a8",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698522004226",
            "endTimeUnixNano": "1796047698524660654",
            "durationMs": 2.656428,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "e3937e40178fb32d764cc87c5c7341ee",
            "spanId": "493de8480948ed44",
            "parentSpanId": "f24059f0db9b84a8",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698524898720",
            "endTimeUnixNano": "1796047698524948144",
            "durationMs": 0.049424,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "e3937e40178fb32d764cc87c5c7341ee",
            "spanId": "755fd4db7b359c26",
            "parentSpanId": "f24059f0db9b84a8",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698525044458",
            "endTimeUnixNano": "1796047698525066410",
            "durationMs": 0.021952,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "storageCleanup.measureWorktree",
            "traceId": "e3937e40178fb32d764cc87c5c7341ee",
            "spanId": "b5484a5d21b079b5",
            "parentSpanId": "f24059f0db9b84a8",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698525086260",
            "endTimeUnixNano": "1796047698525616672",
            "durationMs": 0.530412,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.reportOrphanWorktrees",
            "traceId": "e3937e40178fb32d764cc87c5c7341ee",
            "spanId": "f24059f0db9b84a8",
            "parentSpanId": "9cbb1109f8fbcf0c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698520764904",
            "endTimeUnixNano": "1796047698525645796",
            "durationMs": 4.880892,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanWorktrees",
            "traceId": "e3937e40178fb32d764cc87c5c7341ee",
            "spanId": "9cbb1109f8fbcf0c",
            "parentSpanId": "2b94c8d92eab9f65",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698519387036",
            "endTimeUnixNano": "1796047698525654719",
            "durationMs": 6.267683,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.sweep",
            "traceId": "e3937e40178fb32d764cc87c5c7341ee",
            "spanId": "2b94c8d92eab9f65",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698519068911",
            "endTimeUnixNano": "1796047698525680077",
            "durationMs": 6.611166,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          }
        ]
      },
      {
        "run": 19,
        "warmup": false,
        "elapsedMs": 7.449139000000002,
        "nestedOrphanFound": true,
        "report": {
          "_tag": "Success",
          "value": {
            "trigger": "manual",
            "startedAt": "2026-11-30T14:08:18.526Z",
            "finishedAt": "2026-11-30T14:08:18.533Z",
            "entries": [
              {
                "kind": "worktree",
                "outcome": "kept",
                "reason": "No thread uses this worktree",
                "path": "$FIXTURE/data/worktrees/repository/replay/repo-wt",
                "projectPath": null,
                "threadId": null,
                "threadTitle": null,
                "bytes": 8192,
                "files": null
              }
            ],
            "counts": {
              "removed": 0,
              "kept": 1,
              "failed": 0
            },
            "omittedCount": 0,
            "bytesFreed": 0
          }
        },
        "spans": [
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "2395b98ad7c4eb05217f20e28eaf4676",
            "spanId": "ad2e9f73c8a8d60d",
            "parentSpanId": "5695fdb5e9d70f43",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698526358781",
            "endTimeUnixNano": "1796047698526487333",
            "durationMs": 0.128552,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      WITH RECURSIVE retained_checkpoint_threads(thread_id) AS (\n        SELECT thread_id FROM orchestration_v2_projection_threads WHERE deleted_at IS NULL\n        UNION\n        SELECT json_extract(t\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.038,
              "db.client.connection.wait_time_ms": 0.051417
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanCheckpointRefs",
            "traceId": "2395b98ad7c4eb05217f20e28eaf4676",
            "spanId": "5695fdb5e9d70f43",
            "parentSpanId": "6a046f55d10153fe",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698526350058",
            "endTimeUnixNano": "1796047698526517739",
            "durationMs": 0.167681,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.retryLeftovers",
            "traceId": "2395b98ad7c4eb05217f20e28eaf4676",
            "spanId": "cc1dcda1a0540b97",
            "parentSpanId": "6a046f55d10153fe",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698526533602",
            "endTimeUnixNano": "1796047698526600352",
            "durationMs": 0.06675,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveGitWorktreePath",
            "traceId": "2395b98ad7c4eb05217f20e28eaf4676",
            "spanId": "cb0156f8fb991a29",
            "parentSpanId": "de34400f1cae5608",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698526630928",
            "endTimeUnixNano": "1796047698526785018",
            "durationMs": 0.15409,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveWorktreeT3Home",
            "traceId": "2395b98ad7c4eb05217f20e28eaf4676",
            "spanId": "de34400f1cae5608",
            "parentSpanId": "d761edfabdd31913",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698526625059",
            "endTimeUnixNano": "1796047698526791718",
            "durationMs": 0.166659,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "2395b98ad7c4eb05217f20e28eaf4676",
            "spanId": "3e919deb0ad80d70",
            "parentSpanId": "d761edfabdd31913",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698527008762",
            "endTimeUnixNano": "1796047698527138877",
            "durationMs": 0.130115,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n          SELECT t.payload_json, p.workspace_root AS \"workspaceRoot\"\n          FROM orchestration_v2_projection_threads t\n          JOIN projection_projects p ON p.project_id = t.project_id\n         \u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.049,
              "db.client.connection.wait_time_ms": 0.066309
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "BEGIN",
            "traceId": "2395b98ad7c4eb05217f20e28eaf4676",
            "spanId": "ce248a18f00e2866",
            "parentSpanId": "18501fc81274fdda",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698527253928",
            "endTimeUnixNano": "1796047698527308320",
            "durationMs": 0.054392,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "BEGIN"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "2395b98ad7c4eb05217f20e28eaf4676",
            "spanId": "e0c4ae087f739b4e",
            "parentSpanId": "f6116497b8ae1af2",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698527399005",
            "endTimeUnixNano": "1796047698527471173",
            "durationMs": 0.072168,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n            SELECT\n              t.thread_id,\n              t.payload_json,\n              t.fork_run_ids_json,\n              CASE\n                WHEN json_extract(t.payload_json, '$.forkedFrom.type'\u2026[truncated]",
              "db.client.connection.wait_time_ms": 0.011748
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "2395b98ad7c4eb05217f20e28eaf4676",
            "spanId": "e832256b6d654e51",
            "parentSpanId": "f6116497b8ae1af2",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698527494918",
            "endTimeUnixNano": "1796047698527539245",
            "durationMs": 0.044327,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n        SELECT MAX(sequence) AS snapshot_sequence\n        FROM orchestration_events\n        WHERE application_event_version = 2\n          AND aggregate_kind = 'thread'\n      ",
              "db.client.connection.wait_time_ms": 0.00666
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readShellSnapshotRows",
            "traceId": "2395b98ad7c4eb05217f20e28eaf4676",
            "spanId": "f6116497b8ae1af2",
            "parentSpanId": "18501fc81274fdda",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698527335320",
            "endTimeUnixNano": "1796047698527551213",
            "durationMs": 0.215893,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "COMMIT",
            "traceId": "2395b98ad7c4eb05217f20e28eaf4676",
            "spanId": "b28b43eb4db8ae11",
            "parentSpanId": "18501fc81274fdda",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698527560767",
            "endTimeUnixNano": "1796047698527591032",
            "durationMs": 0.030265,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "COMMIT"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sql.transaction",
            "traceId": "2395b98ad7c4eb05217f20e28eaf4676",
            "spanId": "18501fc81274fdda",
            "parentSpanId": "049d478f1907cdbe",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698527199557",
            "endTimeUnixNano": "1796047698527609650",
            "durationMs": 0.410093,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.client.connection.wait_time_ms": 0.048923,
              "db.connection": "reader",
              "db.lock_wait_ms": 0.035
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.pendingBackgroundDataByThreadId",
            "traceId": "2395b98ad7c4eb05217f20e28eaf4676",
            "spanId": "70db7f272eb5dad7",
            "parentSpanId": "07d6eadceca44379",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698527640686",
            "endTimeUnixNano": "1796047698527644722",
            "durationMs": 0.004036,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.decodeShellSnapshot",
            "traceId": "2395b98ad7c4eb05217f20e28eaf4676",
            "spanId": "07d6eadceca44379",
            "parentSpanId": "049d478f1907cdbe",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698527631993",
            "endTimeUnixNano": "1796047698527652163",
            "durationMs": 0.02017,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "2395b98ad7c4eb05217f20e28eaf4676",
            "spanId": "3ac959c29d499367",
            "parentSpanId": "904bf5d7697c162f",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698527681227",
            "endTimeUnixNano": "1796047698527784721",
            "durationMs": 0.103494,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.029,
              "db.client.connection.wait_time_ms": 0.037366
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectStoreV2.listShells",
            "traceId": "2395b98ad7c4eb05217f20e28eaf4676",
            "spanId": "904bf5d7697c162f",
            "parentSpanId": "049d478f1907cdbe",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698527659895",
            "endTimeUnixNano": "1796047698527841046",
            "durationMs": 0.181151,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.readThreads",
            "traceId": "2395b98ad7c4eb05217f20e28eaf4676",
            "spanId": "049d478f1907cdbe",
            "parentSpanId": "d761edfabdd31913",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698527177174",
            "endTimeUnixNano": "1796047698527848507",
            "durationMs": 0.671333,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "2395b98ad7c4eb05217f20e28eaf4676",
            "spanId": "8419093d261cc972",
            "parentSpanId": "d761edfabdd31913",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698527870249",
            "endTimeUnixNano": "1796047698527976338",
            "durationMs": 0.106089,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.021,
              "db.client.connection.wait_time_ms": 0.032469
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "2395b98ad7c4eb05217f20e28eaf4676",
            "spanId": "ef11cafc0fb5be08",
            "parentSpanId": "6e327958db31060a",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698528035716",
            "endTimeUnixNano": "1796047698528128755",
            "durationMs": 0.093039,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT DISTINCT json_extract(payload_json, '$.worktreePath') AS \"worktreePath\"\n      FROM orchestration_v2_projection_threads\n      WHERE json_extract(payload_json, '$.worktreePath') IS NOT NUL\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.034,
              "db.client.connection.wait_time_ms": 0.042544
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "2395b98ad7c4eb05217f20e28eaf4676",
            "spanId": "e487445de81c3dc5",
            "parentSpanId": "440097671ad1cdb7",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698529573464",
            "endTimeUnixNano": "1796047698531002919",
            "durationMs": 1.429455,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "2395b98ad7c4eb05217f20e28eaf4676",
            "spanId": "440097671ad1cdb7",
            "parentSpanId": "556698f8c593aba4",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698529386635",
            "endTimeUnixNano": "1796047698531824547",
            "durationMs": 2.437912,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "2395b98ad7c4eb05217f20e28eaf4676",
            "spanId": "556698f8c593aba4",
            "parentSpanId": "cfde6c61a078afbc",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698529351172",
            "endTimeUnixNano": "1796047698532034200",
            "durationMs": 2.683028,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo/packages/app",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "2395b98ad7c4eb05217f20e28eaf4676",
            "spanId": "cfde6c61a078afbc",
            "parentSpanId": "6e327958db31060a",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698529331272",
            "endTimeUnixNano": "1796047698532055562",
            "durationMs": 2.72429,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "2395b98ad7c4eb05217f20e28eaf4676",
            "spanId": "8b7bd48fe14f6c72",
            "parentSpanId": "6e327958db31060a",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698532330262",
            "endTimeUnixNano": "1796047698532370112",
            "durationMs": 0.03985,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "2395b98ad7c4eb05217f20e28eaf4676",
            "spanId": "9dcc88efa282f5cb",
            "parentSpanId": "6e327958db31060a",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698532476931",
            "endTimeUnixNano": "1796047698532500517",
            "durationMs": 0.023586,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "storageCleanup.measureWorktree",
            "traceId": "2395b98ad7c4eb05217f20e28eaf4676",
            "spanId": "2fd57a25e46768d2",
            "parentSpanId": "6e327958db31060a",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698532528158",
            "endTimeUnixNano": "1796047698533049787",
            "durationMs": 0.521629,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.reportOrphanWorktrees",
            "traceId": "2395b98ad7c4eb05217f20e28eaf4676",
            "spanId": "6e327958db31060a",
            "parentSpanId": "d761edfabdd31913",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698528027144",
            "endTimeUnixNano": "1796047698533080093",
            "durationMs": 5.052949,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanWorktrees",
            "traceId": "2395b98ad7c4eb05217f20e28eaf4676",
            "spanId": "d761edfabdd31913",
            "parentSpanId": "6a046f55d10153fe",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698526611459",
            "endTimeUnixNano": "1796047698533086622",
            "durationMs": 6.475163,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.sweep",
            "traceId": "2395b98ad7c4eb05217f20e28eaf4676",
            "spanId": "6a046f55d10153fe",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698526333093",
            "endTimeUnixNano": "1796047698533117609",
            "durationMs": 6.784516,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          }
        ]
      },
      {
        "run": 20,
        "warmup": false,
        "elapsedMs": 8.472096000000022,
        "nestedOrphanFound": true,
        "report": {
          "_tag": "Success",
          "value": {
            "trigger": "manual",
            "startedAt": "2026-11-30T14:08:18.534Z",
            "finishedAt": "2026-11-30T14:08:18.542Z",
            "entries": [
              {
                "kind": "worktree",
                "outcome": "kept",
                "reason": "No thread uses this worktree",
                "path": "$FIXTURE/data/worktrees/repository/replay/repo-wt",
                "projectPath": null,
                "threadId": null,
                "threadTitle": null,
                "bytes": 8192,
                "files": null
              }
            ],
            "counts": {
              "removed": 0,
              "kept": 1,
              "failed": 0
            },
            "omittedCount": 0,
            "bytesFreed": 0
          }
        },
        "spans": [
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "b186eb75f1f3281308e13677c1886897",
            "spanId": "e33311936b40c31c",
            "parentSpanId": "58d029c0e9ec5fd5",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698533835641",
            "endTimeUnixNano": "1796047698534052706",
            "durationMs": 0.217065,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      WITH RECURSIVE retained_checkpoint_threads(thread_id) AS (\n        SELECT thread_id FROM orchestration_v2_projection_threads WHERE deleted_at IS NULL\n        UNION\n        SELECT json_extract(t\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.036,
              "db.client.connection.wait_time_ms": 0.049434
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanCheckpointRefs",
            "traceId": "b186eb75f1f3281308e13677c1886897",
            "spanId": "58d029c0e9ec5fd5",
            "parentSpanId": "e527dda7d9b70d94",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698533827329",
            "endTimeUnixNano": "1796047698534086576",
            "durationMs": 0.259247,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.retryLeftovers",
            "traceId": "b186eb75f1f3281308e13677c1886897",
            "spanId": "7c9d342189784f70",
            "parentSpanId": "e527dda7d9b70d94",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698534108950",
            "endTimeUnixNano": "1796047698534184623",
            "durationMs": 0.075673,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveGitWorktreePath",
            "traceId": "b186eb75f1f3281308e13677c1886897",
            "spanId": "856bcce79ace70b8",
            "parentSpanId": "6d1e2fcfa66c8ea7",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698534215629",
            "endTimeUnixNano": "1796047698534379814",
            "durationMs": 0.164185,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveWorktreeT3Home",
            "traceId": "b186eb75f1f3281308e13677c1886897",
            "spanId": "6d1e2fcfa66c8ea7",
            "parentSpanId": "0da5ae0692907fa0",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698534209820",
            "endTimeUnixNano": "1796047698534386334",
            "durationMs": 0.176514,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "b186eb75f1f3281308e13677c1886897",
            "spanId": "cd4039708c835574",
            "parentSpanId": "0da5ae0692907fa0",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698534603719",
            "endTimeUnixNano": "1796047698534748034",
            "durationMs": 0.144315,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n          SELECT t.payload_json, p.workspace_root AS \"workspaceRoot\"\n          FROM orchestration_v2_projection_threads t\n          JOIN projection_projects p ON p.project_id = t.project_id\n         \u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.031,
              "db.client.connection.wait_time_ms": 0.046369
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "BEGIN",
            "traceId": "b186eb75f1f3281308e13677c1886897",
            "spanId": "b20794e15f606803",
            "parentSpanId": "93a51ea44cc624f0",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698534868334",
            "endTimeUnixNano": "1796047698534918569",
            "durationMs": 0.050235,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "BEGIN"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "b186eb75f1f3281308e13677c1886897",
            "spanId": "3318b02f41adbd0f",
            "parentSpanId": "5208f93973089307",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698535030997",
            "endTimeUnixNano": "1796047698535138007",
            "durationMs": 0.10701,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n            SELECT\n              t.thread_id,\n              t.payload_json,\n              t.fork_run_ids_json,\n              CASE\n                WHEN json_extract(t.payload_json, '$.forkedFrom.type'\u2026[truncated]",
              "db.client.connection.wait_time_ms": 0.01987
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "b186eb75f1f3281308e13677c1886897",
            "spanId": "bb37089d8846e5e5",
            "parentSpanId": "5208f93973089307",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698535171327",
            "endTimeUnixNano": "1796047698535226529",
            "durationMs": 0.055202,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n        SELECT MAX(sequence) AS snapshot_sequence\n        FROM orchestration_events\n        WHERE application_event_version = 2\n          AND aggregate_kind = 'thread'\n      ",
              "db.client.connection.wait_time_ms": 0.01392
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readShellSnapshotRows",
            "traceId": "b186eb75f1f3281308e13677c1886897",
            "spanId": "5208f93973089307",
            "parentSpanId": "93a51ea44cc624f0",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698534948834",
            "endTimeUnixNano": "1796047698535247090",
            "durationMs": 0.298256,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "COMMIT",
            "traceId": "b186eb75f1f3281308e13677c1886897",
            "spanId": "b1e38255174619db",
            "parentSpanId": "93a51ea44cc624f0",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698535255612",
            "endTimeUnixNano": "1796047698535294951",
            "durationMs": 0.039339,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "COMMIT"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sql.transaction",
            "traceId": "b186eb75f1f3281308e13677c1886897",
            "spanId": "93a51ea44cc624f0",
            "parentSpanId": "1f14fd406254895f",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698534808004",
            "endTimeUnixNano": "1796047698535315642",
            "durationMs": 0.507638,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.client.connection.wait_time_ms": 0.054551,
              "db.connection": "reader",
              "db.lock_wait_ms": 0.04
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.pendingBackgroundDataByThreadId",
            "traceId": "b186eb75f1f3281308e13677c1886897",
            "spanId": "995041b8f1575ec8",
            "parentSpanId": "98a339da15683917",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698535350765",
            "endTimeUnixNano": "1796047698535354390",
            "durationMs": 0.003625,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.decodeShellSnapshot",
            "traceId": "b186eb75f1f3281308e13677c1886897",
            "spanId": "98a339da15683917",
            "parentSpanId": "1f14fd406254895f",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698535341821",
            "endTimeUnixNano": "1796047698535362452",
            "durationMs": 0.020631,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "b186eb75f1f3281308e13677c1886897",
            "spanId": "bd2f66bb2fe67935",
            "parentSpanId": "d29a8d0ae8f3be2f",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698535393428",
            "endTimeUnixNano": "1796047698535504094",
            "durationMs": 0.110666,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.03,
              "db.client.connection.wait_time_ms": 0.040521
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectStoreV2.listShells",
            "traceId": "b186eb75f1f3281308e13677c1886897",
            "spanId": "d29a8d0ae8f3be2f",
            "parentSpanId": "1f14fd406254895f",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698535369823",
            "endTimeUnixNano": "1796047698535562641",
            "durationMs": 0.192818,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.readThreads",
            "traceId": "b186eb75f1f3281308e13677c1886897",
            "spanId": "1f14fd406254895f",
            "parentSpanId": "0da5ae0692907fa0",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698534785681",
            "endTimeUnixNano": "1796047698535571334",
            "durationMs": 0.785653,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "b186eb75f1f3281308e13677c1886897",
            "spanId": "e9cf5f0ecee9ce29",
            "parentSpanId": "0da5ae0692907fa0",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698535593908",
            "endTimeUnixNano": "1796047698535698214",
            "durationMs": 0.104306,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.032,
              "db.client.connection.wait_time_ms": 0.043144
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "b186eb75f1f3281308e13677c1886897",
            "spanId": "503ae42b01f18767",
            "parentSpanId": "9fc1858bfa57df2c",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698535756771",
            "endTimeUnixNano": "1796047698535863320",
            "durationMs": 0.106549,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT DISTINCT json_extract(payload_json, '$.worktreePath') AS \"worktreePath\"\n      FROM orchestration_v2_projection_threads\n      WHERE json_extract(payload_json, '$.worktreePath') IS NOT NUL\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.052,
              "db.client.connection.wait_time_ms": 0.06029
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "b186eb75f1f3281308e13677c1886897",
            "spanId": "3c1aaec5ca94404a",
            "parentSpanId": "250734dfc44e483a",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698537309821",
            "endTimeUnixNano": "1796047698539840502",
            "durationMs": 2.530681,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "b186eb75f1f3281308e13677c1886897",
            "spanId": "250734dfc44e483a",
            "parentSpanId": "a0541d4655a23326",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698537134599",
            "endTimeUnixNano": "1796047698540199859",
            "durationMs": 3.06526,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "b186eb75f1f3281308e13677c1886897",
            "spanId": "a0541d4655a23326",
            "parentSpanId": "09da2150f68c9209",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698537093418",
            "endTimeUnixNano": "1796047698540392937",
            "durationMs": 3.299519,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo/packages/app",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "b186eb75f1f3281308e13677c1886897",
            "spanId": "09da2150f68c9209",
            "parentSpanId": "9fc1858bfa57df2c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698537072697",
            "endTimeUnixNano": "1796047698540412226",
            "durationMs": 3.339529,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "b186eb75f1f3281308e13677c1886897",
            "spanId": "90f589fc77c82691",
            "parentSpanId": "9fc1858bfa57df2c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698540695950",
            "endTimeUnixNano": "1796047698540737432",
            "durationMs": 0.041482,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "b186eb75f1f3281308e13677c1886897",
            "spanId": "915e3ca46e47fe67",
            "parentSpanId": "9fc1858bfa57df2c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698540831813",
            "endTimeUnixNano": "1796047698540854807",
            "durationMs": 0.022994,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "storageCleanup.measureWorktree",
            "traceId": "b186eb75f1f3281308e13677c1886897",
            "spanId": "e1dea72d4f2c95b9",
            "parentSpanId": "9fc1858bfa57df2c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698540875989",
            "endTimeUnixNano": "1796047698541463727",
            "durationMs": 0.587738,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.reportOrphanWorktrees",
            "traceId": "b186eb75f1f3281308e13677c1886897",
            "spanId": "9fc1858bfa57df2c",
            "parentSpanId": "0da5ae0692907fa0",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698535748369",
            "endTimeUnixNano": "1796047698541494853",
            "durationMs": 5.746484,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanWorktrees",
            "traceId": "b186eb75f1f3281308e13677c1886897",
            "spanId": "0da5ae0692907fa0",
            "parentSpanId": "e527dda7d9b70d94",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698534196240",
            "endTimeUnixNano": "1796047698541503947",
            "durationMs": 7.307707,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.sweep",
            "traceId": "b186eb75f1f3281308e13677c1886897",
            "spanId": "e527dda7d9b70d94",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698533808611",
            "endTimeUnixNano": "1796047698541531508",
            "durationMs": 7.722897,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          }
        ]
      },
      {
        "run": 21,
        "warmup": false,
        "elapsedMs": 8.237887,
        "nestedOrphanFound": true,
        "report": {
          "_tag": "Success",
          "value": {
            "trigger": "manual",
            "startedAt": "2026-11-30T14:08:18.542Z",
            "finishedAt": "2026-11-30T14:08:18.550Z",
            "entries": [
              {
                "kind": "worktree",
                "outcome": "kept",
                "reason": "No thread uses this worktree",
                "path": "$FIXTURE/data/worktrees/repository/replay/repo-wt",
                "projectPath": null,
                "threadId": null,
                "threadTitle": null,
                "bytes": 8192,
                "files": null
              }
            ],
            "counts": {
              "removed": 0,
              "kept": 1,
              "failed": 0
            },
            "omittedCount": 0,
            "bytesFreed": 0
          }
        },
        "spans": [
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "086e227db8d9b23cc93243ae28c7ac2e",
            "spanId": "388a442374ee96b0",
            "parentSpanId": "4117873b6b7f4255",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698542303932",
            "endTimeUnixNano": "1796047698542466305",
            "durationMs": 0.162373,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      WITH RECURSIVE retained_checkpoint_threads(thread_id) AS (\n        SELECT thread_id FROM orchestration_v2_projection_threads WHERE deleted_at IS NULL\n        UNION\n        SELECT json_extract(t\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.037,
              "db.client.connection.wait_time_ms": 0.056485
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanCheckpointRefs",
            "traceId": "086e227db8d9b23cc93243ae28c7ac2e",
            "spanId": "4117873b6b7f4255",
            "parentSpanId": "eb8714b4318aef92",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698542294949",
            "endTimeUnixNano": "1796047698542498964",
            "durationMs": 0.204015,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.retryLeftovers",
            "traceId": "086e227db8d9b23cc93243ae28c7ac2e",
            "spanId": "880539a95f5fa967",
            "parentSpanId": "eb8714b4318aef92",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698542515949",
            "endTimeUnixNano": "1796047698542579524",
            "durationMs": 0.063575,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveGitWorktreePath",
            "traceId": "086e227db8d9b23cc93243ae28c7ac2e",
            "spanId": "a5e03761a50f5a9b",
            "parentSpanId": "0cae0bce03942733",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698542611752",
            "endTimeUnixNano": "1796047698542789808",
            "durationMs": 0.178056,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveWorktreeT3Home",
            "traceId": "086e227db8d9b23cc93243ae28c7ac2e",
            "spanId": "0cae0bce03942733",
            "parentSpanId": "5ce46af6a3280e3c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698542606073",
            "endTimeUnixNano": "1796047698542796618",
            "durationMs": 0.190545,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "086e227db8d9b23cc93243ae28c7ac2e",
            "spanId": "dcad403d55075889",
            "parentSpanId": "5ce46af6a3280e3c",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698543078299",
            "endTimeUnixNano": "1796047698543186030",
            "durationMs": 0.107731,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n          SELECT t.payload_json, p.workspace_root AS \"workspaceRoot\"\n          FROM orchestration_v2_projection_threads t\n          JOIN projection_projects p ON p.project_id = t.project_id\n         \u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.036,
              "db.client.connection.wait_time_ms": 0.050936
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "BEGIN",
            "traceId": "086e227db8d9b23cc93243ae28c7ac2e",
            "spanId": "26ae69cdf4c46a48",
            "parentSpanId": "074c3b475528bdb2",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698543292098",
            "endTimeUnixNano": "1796047698543335493",
            "durationMs": 0.043395,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "BEGIN"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "086e227db8d9b23cc93243ae28c7ac2e",
            "spanId": "56a66cf2902df5fc",
            "parentSpanId": "06dac452c53cbaa6",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698543421842",
            "endTimeUnixNano": "1796047698543492798",
            "durationMs": 0.070956,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n            SELECT\n              t.thread_id,\n              t.payload_json,\n              t.fork_run_ids_json,\n              CASE\n                WHEN json_extract(t.payload_json, '$.forkedFrom.type'\u2026[truncated]",
              "db.client.connection.wait_time_ms": 0.010706
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "086e227db8d9b23cc93243ae28c7ac2e",
            "spanId": "b3eb9f4b5cd75b52",
            "parentSpanId": "06dac452c53cbaa6",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698543520600",
            "endTimeUnixNano": "1796047698543564576",
            "durationMs": 0.043976,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n        SELECT MAX(sequence) AS snapshot_sequence\n        FROM orchestration_events\n        WHERE application_event_version = 2\n          AND aggregate_kind = 'thread'\n      ",
              "db.client.connection.wait_time_ms": 0.007321
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readShellSnapshotRows",
            "traceId": "086e227db8d9b23cc93243ae28c7ac2e",
            "spanId": "06dac452c53cbaa6",
            "parentSpanId": "074c3b475528bdb2",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698543356865",
            "endTimeUnixNano": "1796047698543576864",
            "durationMs": 0.219999,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "COMMIT",
            "traceId": "086e227db8d9b23cc93243ae28c7ac2e",
            "spanId": "de57bc764961a871",
            "parentSpanId": "074c3b475528bdb2",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698543586037",
            "endTimeUnixNano": "1796047698543616173",
            "durationMs": 0.030136,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "COMMIT"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sql.transaction",
            "traceId": "086e227db8d9b23cc93243ae28c7ac2e",
            "spanId": "074c3b475528bdb2",
            "parentSpanId": "9b5ec2f6177164de",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698543246951",
            "endTimeUnixNano": "1796047698543635401",
            "durationMs": 0.38845,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.client.connection.wait_time_ms": 0.039098,
              "db.connection": "reader",
              "db.lock_wait_ms": 0.024
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.pendingBackgroundDataByThreadId",
            "traceId": "086e227db8d9b23cc93243ae28c7ac2e",
            "spanId": "89ed7282597851ad",
            "parentSpanId": "f35294f03dc9b4a9",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698543670063",
            "endTimeUnixNano": "1796047698543674259",
            "durationMs": 0.004196,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.decodeShellSnapshot",
            "traceId": "086e227db8d9b23cc93243ae28c7ac2e",
            "spanId": "f35294f03dc9b4a9",
            "parentSpanId": "9b5ec2f6177164de",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698543659557",
            "endTimeUnixNano": "1796047698543683093",
            "durationMs": 0.023536,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "086e227db8d9b23cc93243ae28c7ac2e",
            "spanId": "76c6a4c2a6e48d70",
            "parentSpanId": "af7a65c0850fabdf",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698543712336",
            "endTimeUnixNano": "1796047698543820979",
            "durationMs": 0.108643,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.028,
              "db.client.connection.wait_time_ms": 0.037556
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectStoreV2.listShells",
            "traceId": "086e227db8d9b23cc93243ae28c7ac2e",
            "spanId": "af7a65c0850fabdf",
            "parentSpanId": "9b5ec2f6177164de",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698543690143",
            "endTimeUnixNano": "1796047698543895991",
            "durationMs": 0.205848,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.readThreads",
            "traceId": "086e227db8d9b23cc93243ae28c7ac2e",
            "spanId": "9b5ec2f6177164de",
            "parentSpanId": "5ce46af6a3280e3c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698543222504",
            "endTimeUnixNano": "1796047698543903772",
            "durationMs": 0.681268,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "086e227db8d9b23cc93243ae28c7ac2e",
            "spanId": "4fd4423fbcb9b817",
            "parentSpanId": "5ce46af6a3280e3c",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698543926636",
            "endTimeUnixNano": "1796047698544122799",
            "durationMs": 0.196163,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.036,
              "db.client.connection.wait_time_ms": 0.048172
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "086e227db8d9b23cc93243ae28c7ac2e",
            "spanId": "b5144d743365d0ba",
            "parentSpanId": "9938f69698418167",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698544192183",
            "endTimeUnixNano": "1796047698544294867",
            "durationMs": 0.102684,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT DISTINCT json_extract(payload_json, '$.worktreePath') AS \"worktreePath\"\n      FROM orchestration_v2_projection_threads\n      WHERE json_extract(payload_json, '$.worktreePath') IS NOT NUL\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.037,
              "db.client.connection.wait_time_ms": 0.046489
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "086e227db8d9b23cc93243ae28c7ac2e",
            "spanId": "d33a4e15c35d4c9e",
            "parentSpanId": "822c6fc09ed777b6",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698545753075",
            "endTimeUnixNano": "1796047698547242079",
            "durationMs": 1.489004,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "086e227db8d9b23cc93243ae28c7ac2e",
            "spanId": "822c6fc09ed777b6",
            "parentSpanId": "a9766a850c0dd980",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698545589490",
            "endTimeUnixNano": "1796047698548468241",
            "durationMs": 2.878751,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "086e227db8d9b23cc93243ae28c7ac2e",
            "spanId": "a9766a850c0dd980",
            "parentSpanId": "75d249edde0f28b7",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698545554108",
            "endTimeUnixNano": "1796047698548674710",
            "durationMs": 3.120602,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo/packages/app",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "086e227db8d9b23cc93243ae28c7ac2e",
            "spanId": "75d249edde0f28b7",
            "parentSpanId": "9938f69698418167",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698545534318",
            "endTimeUnixNano": "1796047698548707609",
            "durationMs": 3.173291,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "086e227db8d9b23cc93243ae28c7ac2e",
            "spanId": "2cd47a70155613d7",
            "parentSpanId": "9938f69698418167",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698548988709",
            "endTimeUnixNano": "1796047698549032153",
            "durationMs": 0.043444,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "086e227db8d9b23cc93243ae28c7ac2e",
            "spanId": "38e03ee03b93b0af",
            "parentSpanId": "9938f69698418167",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698549122579",
            "endTimeUnixNano": "1796047698549154616",
            "durationMs": 0.032037,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "storageCleanup.measureWorktree",
            "traceId": "086e227db8d9b23cc93243ae28c7ac2e",
            "spanId": "23be00c2822bf954",
            "parentSpanId": "9938f69698418167",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698549175207",
            "endTimeUnixNano": "1796047698549741563",
            "durationMs": 0.566356,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.reportOrphanWorktrees",
            "traceId": "086e227db8d9b23cc93243ae28c7ac2e",
            "spanId": "9938f69698418167",
            "parentSpanId": "5ce46af6a3280e3c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698544182098",
            "endTimeUnixNano": "1796047698549769475",
            "durationMs": 5.587377,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanWorktrees",
            "traceId": "086e227db8d9b23cc93243ae28c7ac2e",
            "spanId": "5ce46af6a3280e3c",
            "parentSpanId": "eb8714b4318aef92",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698542591081",
            "endTimeUnixNano": "1796047698549776395",
            "durationMs": 7.185314,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.sweep",
            "traceId": "086e227db8d9b23cc93243ae28c7ac2e",
            "spanId": "eb8714b4318aef92",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698542277252",
            "endTimeUnixNano": "1796047698549804007",
            "durationMs": 7.526755,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          }
        ]
      },
      {
        "run": 22,
        "warmup": false,
        "elapsedMs": 8.776201000000015,
        "nestedOrphanFound": true,
        "report": {
          "_tag": "Success",
          "value": {
            "trigger": "manual",
            "startedAt": "2026-11-30T14:08:18.551Z",
            "finishedAt": "2026-11-30T14:08:18.558Z",
            "entries": [
              {
                "kind": "worktree",
                "outcome": "kept",
                "reason": "No thread uses this worktree",
                "path": "$FIXTURE/data/worktrees/repository/replay/repo-wt",
                "projectPath": null,
                "threadId": null,
                "threadTitle": null,
                "bytes": 8192,
                "files": null
              }
            ],
            "counts": {
              "removed": 0,
              "kept": 1,
              "failed": 0
            },
            "omittedCount": 0,
            "bytesFreed": 0
          }
        },
        "spans": [
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "3cb2644704a734b2affd8610af97aff7",
            "spanId": "1ee3eca5c51d5b34",
            "parentSpanId": "8d4dc324ff1c1fc3",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698550560847",
            "endTimeUnixNano": "1796047698550711312",
            "durationMs": 0.150465,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      WITH RECURSIVE retained_checkpoint_threads(thread_id) AS (\n        SELECT thread_id FROM orchestration_v2_projection_threads WHERE deleted_at IS NULL\n        UNION\n        SELECT json_extract(t\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.036,
              "db.client.connection.wait_time_ms": 0.049755
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanCheckpointRefs",
            "traceId": "3cb2644704a734b2affd8610af97aff7",
            "spanId": "8d4dc324ff1c1fc3",
            "parentSpanId": "3e5f15fb59083693",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698550552044",
            "endTimeUnixNano": "1796047698550743490",
            "durationMs": 0.191446,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.retryLeftovers",
            "traceId": "3cb2644704a734b2affd8610af97aff7",
            "spanId": "2b5f82fc8a9c4948",
            "parentSpanId": "3e5f15fb59083693",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698550761187",
            "endTimeUnixNano": "1796047698550842148",
            "durationMs": 0.080961,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveGitWorktreePath",
            "traceId": "3cb2644704a734b2affd8610af97aff7",
            "spanId": "3df681aaeb2c51b6",
            "parentSpanId": "0a2046757bc0ef13",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698550876108",
            "endTimeUnixNano": "1796047698551080263",
            "durationMs": 0.204155,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveWorktreeT3Home",
            "traceId": "3cb2644704a734b2affd8610af97aff7",
            "spanId": "0a2046757bc0ef13",
            "parentSpanId": "7026461245b4d3bc",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698550869498",
            "endTimeUnixNano": "1796047698551121735",
            "durationMs": 0.252237,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "3cb2644704a734b2affd8610af97aff7",
            "spanId": "97c4241ff1a27d96",
            "parentSpanId": "7026461245b4d3bc",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698551393862",
            "endTimeUnixNano": "1796047698551497216",
            "durationMs": 0.103354,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n          SELECT t.payload_json, p.workspace_root AS \"workspaceRoot\"\n          FROM orchestration_v2_projection_threads t\n          JOIN projection_projects p ON p.project_id = t.project_id\n         \u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.032,
              "db.client.connection.wait_time_ms": 0.04714
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "BEGIN",
            "traceId": "3cb2644704a734b2affd8610af97aff7",
            "spanId": "eeab40b1f1a5892c",
            "parentSpanId": "6d8fc03187353015",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698551611787",
            "endTimeUnixNano": "1796047698551666189",
            "durationMs": 0.054402,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "BEGIN"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "3cb2644704a734b2affd8610af97aff7",
            "spanId": "2e2389a04bcff48b",
            "parentSpanId": "e10c9bbca06a611a",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698551755031",
            "endTimeUnixNano": "1796047698551828912",
            "durationMs": 0.073881,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n            SELECT\n              t.thread_id,\n              t.payload_json,\n              t.fork_run_ids_json,\n              CASE\n                WHEN json_extract(t.payload_json, '$.forkedFrom.type'\u2026[truncated]",
              "db.client.connection.wait_time_ms": 0.011167
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "3cb2644704a734b2affd8610af97aff7",
            "spanId": "38a68dba54c5940f",
            "parentSpanId": "e10c9bbca06a611a",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698551857154",
            "endTimeUnixNano": "1796047698551899788",
            "durationMs": 0.042634,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n        SELECT MAX(sequence) AS snapshot_sequence\n        FROM orchestration_events\n        WHERE application_event_version = 2\n          AND aggregate_kind = 'thread'\n      ",
              "db.client.connection.wait_time_ms": 0.005879
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readShellSnapshotRows",
            "traceId": "3cb2644704a734b2affd8610af97aff7",
            "spanId": "e10c9bbca06a611a",
            "parentSpanId": "6d8fc03187353015",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698551689183",
            "endTimeUnixNano": "1796047698551912086",
            "durationMs": 0.222903,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "COMMIT",
            "traceId": "3cb2644704a734b2affd8610af97aff7",
            "spanId": "035c0f8e70b9f27c",
            "parentSpanId": "6d8fc03187353015",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698551921120",
            "endTimeUnixNano": "1796047698551951274",
            "durationMs": 0.030154,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "COMMIT"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sql.transaction",
            "traceId": "3cb2644704a734b2affd8610af97aff7",
            "spanId": "6d8fc03187353015",
            "parentSpanId": "25199e9af9779f8c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698551557586",
            "endTimeUnixNano": "1796047698551983923",
            "durationMs": 0.426337,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.client.connection.wait_time_ms": 0.048833,
              "db.connection": "reader",
              "db.lock_wait_ms": 0.035
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.pendingBackgroundDataByThreadId",
            "traceId": "3cb2644704a734b2affd8610af97aff7",
            "spanId": "1a48d4138d493681",
            "parentSpanId": "4d4fb0bf4d90a0e9",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698552017624",
            "endTimeUnixNano": "1796047698552021209",
            "durationMs": 0.003585,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.decodeShellSnapshot",
            "traceId": "3cb2644704a734b2affd8610af97aff7",
            "spanId": "4d4fb0bf4d90a0e9",
            "parentSpanId": "25199e9af9779f8c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698552007999",
            "endTimeUnixNano": "1796047698552029401",
            "durationMs": 0.021402,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "3cb2644704a734b2affd8610af97aff7",
            "spanId": "d6a1e816ead5a1fd",
            "parentSpanId": "3fb9f01deb44d98d",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698552060317",
            "endTimeUnixNano": "1796047698552175700",
            "durationMs": 0.115383,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.027,
              "db.client.connection.wait_time_ms": 0.036305
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectStoreV2.listShells",
            "traceId": "3cb2644704a734b2affd8610af97aff7",
            "spanId": "3fb9f01deb44d98d",
            "parentSpanId": "25199e9af9779f8c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698552036301",
            "endTimeUnixNano": "1796047698552233997",
            "durationMs": 0.197696,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.readThreads",
            "traceId": "3cb2644704a734b2affd8610af97aff7",
            "spanId": "25199e9af9779f8c",
            "parentSpanId": "7026461245b4d3bc",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698551533981",
            "endTimeUnixNano": "1796047698552241017",
            "durationMs": 0.707036,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "3cb2644704a734b2affd8610af97aff7",
            "spanId": "c36ab95d72208fbc",
            "parentSpanId": "7026461245b4d3bc",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698552263060",
            "endTimeUnixNano": "1796047698552358553",
            "durationMs": 0.095493,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.022,
              "db.client.connection.wait_time_ms": 0.032148
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "3cb2644704a734b2affd8610af97aff7",
            "spanId": "a618316f97c4c075",
            "parentSpanId": "d9ad9d9ac7d519be",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698552426504",
            "endTimeUnixNano": "1796047698552511772",
            "durationMs": 0.085268,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT DISTINCT json_extract(payload_json, '$.worktreePath') AS \"worktreePath\"\n      FROM orchestration_v2_projection_threads\n      WHERE json_extract(payload_json, '$.worktreePath') IS NOT NUL\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.034,
              "db.client.connection.wait_time_ms": 0.042955
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "3cb2644704a734b2affd8610af97aff7",
            "spanId": "2873f2c56485a3de",
            "parentSpanId": "cfa713209505ebb6",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698554116059",
            "endTimeUnixNano": "1796047698555700395",
            "durationMs": 1.584336,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "3cb2644704a734b2affd8610af97aff7",
            "spanId": "cfa713209505ebb6",
            "parentSpanId": "bfea48fa2003fb6e",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698553929670",
            "endTimeUnixNano": "1796047698556588943",
            "durationMs": 2.659273,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "3cb2644704a734b2affd8610af97aff7",
            "spanId": "bfea48fa2003fb6e",
            "parentSpanId": "a5d2e297e8c0f129",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698553881628",
            "endTimeUnixNano": "1796047698556947869",
            "durationMs": 3.066241,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo/packages/app",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "3cb2644704a734b2affd8610af97aff7",
            "spanId": "a5d2e297e8c0f129",
            "parentSpanId": "d9ad9d9ac7d519be",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698553856300",
            "endTimeUnixNano": "1796047698557002751",
            "durationMs": 3.146451,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "3cb2644704a734b2affd8610af97aff7",
            "spanId": "6c1f95a0263d5c33",
            "parentSpanId": "d9ad9d9ac7d519be",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698557365513",
            "endTimeUnixNano": "1796047698557440745",
            "durationMs": 0.075232,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "3cb2644704a734b2affd8610af97aff7",
            "spanId": "24c93d33c2dbcc85",
            "parentSpanId": "d9ad9d9ac7d519be",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698557547685",
            "endTimeUnixNano": "1796047698557576398",
            "durationMs": 0.028713,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "storageCleanup.measureWorktree",
            "traceId": "3cb2644704a734b2affd8610af97aff7",
            "spanId": "39d642cc38f8ed74",
            "parentSpanId": "d9ad9d9ac7d519be",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698557605732",
            "endTimeUnixNano": "1796047698558302813",
            "durationMs": 0.697081,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.reportOrphanWorktrees",
            "traceId": "3cb2644704a734b2affd8610af97aff7",
            "spanId": "d9ad9d9ac7d519be",
            "parentSpanId": "7026461245b4d3bc",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698552416650",
            "endTimeUnixNano": "1796047698558336243",
            "durationMs": 5.919593,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanWorktrees",
            "traceId": "3cb2644704a734b2affd8610af97aff7",
            "spanId": "7026461245b4d3bc",
            "parentSpanId": "3e5f15fb59083693",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698550854155",
            "endTimeUnixNano": "1796047698558346088",
            "durationMs": 7.491933,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.sweep",
            "traceId": "3cb2644704a734b2affd8610af97aff7",
            "spanId": "3e5f15fb59083693",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698550534268",
            "endTimeUnixNano": "1796047698558397785",
            "durationMs": 7.863517,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          }
        ]
      },
      {
        "run": 23,
        "warmup": false,
        "elapsedMs": 8.317055000000039,
        "nestedOrphanFound": true,
        "report": {
          "_tag": "Success",
          "value": {
            "trigger": "manual",
            "startedAt": "2026-11-30T14:08:18.559Z",
            "finishedAt": "2026-11-30T14:08:18.567Z",
            "entries": [
              {
                "kind": "worktree",
                "outcome": "kept",
                "reason": "No thread uses this worktree",
                "path": "$FIXTURE/data/worktrees/repository/replay/repo-wt",
                "projectPath": null,
                "threadId": null,
                "threadTitle": null,
                "bytes": 8192,
                "files": null
              }
            ],
            "counts": {
              "removed": 0,
              "kept": 1,
              "failed": 0
            },
            "omittedCount": 0,
            "bytesFreed": 0
          }
        },
        "spans": [
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "e4ef3ae70f8343b70aa4ea3fc3156470",
            "spanId": "64971d9091f963dc",
            "parentSpanId": "8fe135302c7492c0",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698559460493",
            "endTimeUnixNano": "1796047698559791768",
            "durationMs": 0.331275,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      WITH RECURSIVE retained_checkpoint_threads(thread_id) AS (\n        SELECT thread_id FROM orchestration_v2_projection_threads WHERE deleted_at IS NULL\n        UNION\n        SELECT json_extract(t\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.051,
              "db.client.connection.wait_time_ms": 0.131666
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanCheckpointRefs",
            "traceId": "e4ef3ae70f8343b70aa4ea3fc3156470",
            "spanId": "8fe135302c7492c0",
            "parentSpanId": "d72227903003d2b7",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698559441344",
            "endTimeUnixNano": "1796047698559839679",
            "durationMs": 0.398335,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.retryLeftovers",
            "traceId": "e4ef3ae70f8343b70aa4ea3fc3156470",
            "spanId": "24b4d7ea79646bad",
            "parentSpanId": "d72227903003d2b7",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698559870736",
            "endTimeUnixNano": "1796047698559953559",
            "durationMs": 0.082823,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveGitWorktreePath",
            "traceId": "e4ef3ae70f8343b70aa4ea3fc3156470",
            "spanId": "6b916afeb541fae4",
            "parentSpanId": "3fcc00cf2444e255",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698560005407",
            "endTimeUnixNano": "1796047698560198295",
            "durationMs": 0.192888,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveWorktreeT3Home",
            "traceId": "e4ef3ae70f8343b70aa4ea3fc3156470",
            "spanId": "3fcc00cf2444e255",
            "parentSpanId": "87fba9fe70af113b",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698559996413",
            "endTimeUnixNano": "1796047698560206908",
            "durationMs": 0.210495,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "e4ef3ae70f8343b70aa4ea3fc3156470",
            "spanId": "6137bbd005d192cd",
            "parentSpanId": "87fba9fe70af113b",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698560481288",
            "endTimeUnixNano": "1796047698560636830",
            "durationMs": 0.155542,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n          SELECT t.payload_json, p.workspace_root AS \"workspaceRoot\"\n          FROM orchestration_v2_projection_threads t\n          JOIN projection_projects p ON p.project_id = t.project_id\n         \u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.047,
              "db.client.connection.wait_time_ms": 0.066289
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "BEGIN",
            "traceId": "e4ef3ae70f8343b70aa4ea3fc3156470",
            "spanId": "7392ec20d30f84f0",
            "parentSpanId": "34032b0317b4680b",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698560754856",
            "endTimeUnixNano": "1796047698560808647",
            "durationMs": 0.053791,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "BEGIN"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "e4ef3ae70f8343b70aa4ea3fc3156470",
            "spanId": "2b698fb849a416b5",
            "parentSpanId": "b4ec1db64497b946",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698560895627",
            "endTimeUnixNano": "1796047698560996728",
            "durationMs": 0.101101,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n            SELECT\n              t.thread_id,\n              t.payload_json,\n              t.fork_run_ids_json,\n              CASE\n                WHEN json_extract(t.payload_json, '$.forkedFrom.type'\u2026[truncated]",
              "db.client.connection.wait_time_ms": 0.010305
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "e4ef3ae70f8343b70aa4ea3fc3156470",
            "spanId": "c92cf7cee457c759",
            "parentSpanId": "b4ec1db64497b946",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698561026813",
            "endTimeUnixNano": "1796047698561073903",
            "durationMs": 0.04709,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n        SELECT MAX(sequence) AS snapshot_sequence\n        FROM orchestration_events\n        WHERE application_event_version = 2\n          AND aggregate_kind = 'thread'\n      ",
              "db.client.connection.wait_time_ms": 0.006149
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readShellSnapshotRows",
            "traceId": "e4ef3ae70f8343b70aa4ea3fc3156470",
            "spanId": "b4ec1db64497b946",
            "parentSpanId": "34032b0317b4680b",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698560830379",
            "endTimeUnixNano": "1796047698561086241",
            "durationMs": 0.255862,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "COMMIT",
            "traceId": "e4ef3ae70f8343b70aa4ea3fc3156470",
            "spanId": "9b4dad005b2a8928",
            "parentSpanId": "34032b0317b4680b",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698561094794",
            "endTimeUnixNano": "1796047698561129015",
            "durationMs": 0.034221,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "COMMIT"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sql.transaction",
            "traceId": "e4ef3ae70f8343b70aa4ea3fc3156470",
            "spanId": "34032b0317b4680b",
            "parentSpanId": "bc167dab6e6a918f",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698560704802",
            "endTimeUnixNano": "1796047698561148865",
            "durationMs": 0.444063,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.client.connection.wait_time_ms": 0.044526,
              "db.connection": "reader",
              "db.lock_wait_ms": 0.029
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.pendingBackgroundDataByThreadId",
            "traceId": "e4ef3ae70f8343b70aa4ea3fc3156470",
            "spanId": "eb601e331727ef74",
            "parentSpanId": "f559a394fe3b3f58",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698561183196",
            "endTimeUnixNano": "1796047698561187032",
            "durationMs": 0.003836,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.decodeShellSnapshot",
            "traceId": "e4ef3ae70f8343b70aa4ea3fc3156470",
            "spanId": "f559a394fe3b3f58",
            "parentSpanId": "bc167dab6e6a918f",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698561173792",
            "endTimeUnixNano": "1796047698561194834",
            "durationMs": 0.021042,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "e4ef3ae70f8343b70aa4ea3fc3156470",
            "spanId": "89e1e36c0753f758",
            "parentSpanId": "1a06399c1e0de031",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698561226822",
            "endTimeUnixNano": "1796047698561347842",
            "durationMs": 0.12102,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.029,
              "db.client.connection.wait_time_ms": 0.036925
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectStoreV2.listShells",
            "traceId": "e4ef3ae70f8343b70aa4ea3fc3156470",
            "spanId": "1a06399c1e0de031",
            "parentSpanId": "bc167dab6e6a918f",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698561202986",
            "endTimeUnixNano": "1796047698561423215",
            "durationMs": 0.220229,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.readThreads",
            "traceId": "e4ef3ae70f8343b70aa4ea3fc3156470",
            "spanId": "bc167dab6e6a918f",
            "parentSpanId": "87fba9fe70af113b",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698560678182",
            "endTimeUnixNano": "1796047698561432018",
            "durationMs": 0.753836,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "e4ef3ae70f8343b70aa4ea3fc3156470",
            "spanId": "855eb40f9531efd1",
            "parentSpanId": "87fba9fe70af113b",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698561455864",
            "endTimeUnixNano": "1796047698561564356",
            "durationMs": 0.108492,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.025,
              "db.client.connection.wait_time_ms": 0.035933
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "e4ef3ae70f8343b70aa4ea3fc3156470",
            "spanId": "237a37084933aace",
            "parentSpanId": "9b6d5eb73ad79420",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698561620309",
            "endTimeUnixNano": "1796047698561719918",
            "durationMs": 0.099609,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT DISTINCT json_extract(payload_json, '$.worktreePath') AS \"worktreePath\"\n      FROM orchestration_v2_projection_threads\n      WHERE json_extract(payload_json, '$.worktreePath') IS NOT NUL\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.044,
              "db.client.connection.wait_time_ms": 0.050986
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "e4ef3ae70f8343b70aa4ea3fc3156470",
            "spanId": "1332e27ff67bfe63",
            "parentSpanId": "ba9436310e08c6a4",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698563180630",
            "endTimeUnixNano": "1796047698564590617",
            "durationMs": 1.409987,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "e4ef3ae70f8343b70aa4ea3fc3156470",
            "spanId": "ba9436310e08c6a4",
            "parentSpanId": "cbd529255faa6892",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698563011137",
            "endTimeUnixNano": "1796047698565533455",
            "durationMs": 2.522318,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "e4ef3ae70f8343b70aa4ea3fc3156470",
            "spanId": "cbd529255faa6892",
            "parentSpanId": "7925e067b254b100",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698562973371",
            "endTimeUnixNano": "1796047698565733454",
            "durationMs": 2.760083,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo/packages/app",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "e4ef3ae70f8343b70aa4ea3fc3156470",
            "spanId": "7925e067b254b100",
            "parentSpanId": "9b6d5eb73ad79420",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698562942214",
            "endTimeUnixNano": "1796047698565754095",
            "durationMs": 2.811881,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "e4ef3ae70f8343b70aa4ea3fc3156470",
            "spanId": "5acab5d0665b6a04",
            "parentSpanId": "9b6d5eb73ad79420",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698566004689",
            "endTimeUnixNano": "1796047698566045420",
            "durationMs": 0.040731,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "e4ef3ae70f8343b70aa4ea3fc3156470",
            "spanId": "5b28089e4aa396bb",
            "parentSpanId": "9b6d5eb73ad79420",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698566129446",
            "endTimeUnixNano": "1796047698566170777",
            "durationMs": 0.041331,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "storageCleanup.measureWorktree",
            "traceId": "e4ef3ae70f8343b70aa4ea3fc3156470",
            "spanId": "8dc15acc5b48f990",
            "parentSpanId": "9b6d5eb73ad79420",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698566192961",
            "endTimeUnixNano": "1796047698566779937",
            "durationMs": 0.586976,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.reportOrphanWorktrees",
            "traceId": "e4ef3ae70f8343b70aa4ea3fc3156470",
            "spanId": "9b6d5eb73ad79420",
            "parentSpanId": "87fba9fe70af113b",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698561611456",
            "endTimeUnixNano": "1796047698566809782",
            "durationMs": 5.198326,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanWorktrees",
            "traceId": "e4ef3ae70f8343b70aa4ea3fc3156470",
            "spanId": "87fba9fe70af113b",
            "parentSpanId": "d72227903003d2b7",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698559978396",
            "endTimeUnixNano": "1796047698566816953",
            "durationMs": 6.838557,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.sweep",
            "traceId": "e4ef3ae70f8343b70aa4ea3fc3156470",
            "spanId": "d72227903003d2b7",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698559413522",
            "endTimeUnixNano": "1796047698566847949",
            "durationMs": 7.434427,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          }
        ]
      },
      {
        "run": 24,
        "warmup": false,
        "elapsedMs": 8.094501999999977,
        "nestedOrphanFound": true,
        "report": {
          "_tag": "Success",
          "value": {
            "trigger": "manual",
            "startedAt": "2026-11-30T14:08:18.568Z",
            "finishedAt": "2026-11-30T14:08:18.575Z",
            "entries": [
              {
                "kind": "worktree",
                "outcome": "kept",
                "reason": "No thread uses this worktree",
                "path": "$FIXTURE/data/worktrees/repository/replay/repo-wt",
                "projectPath": null,
                "threadId": null,
                "threadTitle": null,
                "bytes": 8192,
                "files": null
              }
            ],
            "counts": {
              "removed": 0,
              "kept": 1,
              "failed": 0
            },
            "omittedCount": 0,
            "bytesFreed": 0
          }
        },
        "spans": [
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "62d8db0d455c4e0b22499a7f6d5888e0",
            "spanId": "69e4ce184dae7176",
            "parentSpanId": "70a1524c5f8ccd0e",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698567687483",
            "endTimeUnixNano": "1796047698567847232",
            "durationMs": 0.159749,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      WITH RECURSIVE retained_checkpoint_threads(thread_id) AS (\n        SELECT thread_id FROM orchestration_v2_projection_threads WHERE deleted_at IS NULL\n        UNION\n        SELECT json_extract(t\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.036,
              "db.client.connection.wait_time_ms": 0.064076
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanCheckpointRefs",
            "traceId": "62d8db0d455c4e0b22499a7f6d5888e0",
            "spanId": "70a1524c5f8ccd0e",
            "parentSpanId": "4491e81621b34987",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698567677378",
            "endTimeUnixNano": "1796047698567880101",
            "durationMs": 0.202723,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.retryLeftovers",
            "traceId": "62d8db0d455c4e0b22499a7f6d5888e0",
            "spanId": "cd2f684de5337345",
            "parentSpanId": "4491e81621b34987",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698567896806",
            "endTimeUnixNano": "1796047698567959069",
            "durationMs": 0.062263,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveGitWorktreePath",
            "traceId": "62d8db0d455c4e0b22499a7f6d5888e0",
            "spanId": "b1014b3cacc29d43",
            "parentSpanId": "5207acad6498425c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698568006810",
            "endTimeUnixNano": "1796047698568473457",
            "durationMs": 0.466647,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveWorktreeT3Home",
            "traceId": "62d8db0d455c4e0b22499a7f6d5888e0",
            "spanId": "5207acad6498425c",
            "parentSpanId": "3e73ae4723304f93",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698568000922",
            "endTimeUnixNano": "1796047698568489892",
            "durationMs": 0.48897,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "62d8db0d455c4e0b22499a7f6d5888e0",
            "spanId": "3d24fe83fb1cb116",
            "parentSpanId": "3e73ae4723304f93",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698568741918",
            "endTimeUnixNano": "1796047698568832043",
            "durationMs": 0.090125,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n          SELECT t.payload_json, p.workspace_root AS \"workspaceRoot\"\n          FROM orchestration_v2_projection_threads t\n          JOIN projection_projects p ON p.project_id = t.project_id\n         \u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.03,
              "db.client.connection.wait_time_ms": 0.045909
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "BEGIN",
            "traceId": "62d8db0d455c4e0b22499a7f6d5888e0",
            "spanId": "67ce6a53ce9a5c15",
            "parentSpanId": "4fb59f1e9e2538ae",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698568949819",
            "endTimeUnixNano": "1796047698569043349",
            "durationMs": 0.09353,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "BEGIN"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "62d8db0d455c4e0b22499a7f6d5888e0",
            "spanId": "0927d9ee3667e848",
            "parentSpanId": "9d19b4909e73855f",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698569149768",
            "endTimeUnixNano": "1796047698569251049",
            "durationMs": 0.101281,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n            SELECT\n              t.thread_id,\n              t.payload_json,\n              t.fork_run_ids_json,\n              CASE\n                WHEN json_extract(t.payload_json, '$.forkedFrom.type'\u2026[truncated]",
              "db.client.connection.wait_time_ms": 0.011317
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "62d8db0d455c4e0b22499a7f6d5888e0",
            "spanId": "3a92e81c23faf9be",
            "parentSpanId": "9d19b4909e73855f",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698569280814",
            "endTimeUnixNano": "1796047698569332371",
            "durationMs": 0.051557,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n        SELECT MAX(sequence) AS snapshot_sequence\n        FROM orchestration_events\n        WHERE application_event_version = 2\n          AND aggregate_kind = 'thread'\n      ",
              "db.client.connection.wait_time_ms": 0.006509
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readShellSnapshotRows",
            "traceId": "62d8db0d455c4e0b22499a7f6d5888e0",
            "spanId": "9d19b4909e73855f",
            "parentSpanId": "4fb59f1e9e2538ae",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698569065061",
            "endTimeUnixNano": "1796047698569344088",
            "durationMs": 0.279027,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "COMMIT",
            "traceId": "62d8db0d455c4e0b22499a7f6d5888e0",
            "spanId": "b5da2d97db1d3055",
            "parentSpanId": "4fb59f1e9e2538ae",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698569352481",
            "endTimeUnixNano": "1796047698569390057",
            "durationMs": 0.037576,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "COMMIT"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sql.transaction",
            "traceId": "62d8db0d455c4e0b22499a7f6d5888e0",
            "spanId": "4fb59f1e9e2538ae",
            "parentSpanId": "166c394bf9c40dc4",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698568893054",
            "endTimeUnixNano": "1796047698569410107",
            "durationMs": 0.517053,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.client.connection.wait_time_ms": 0.050886,
              "db.connection": "reader",
              "db.lock_wait_ms": 0.036
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.pendingBackgroundDataByThreadId",
            "traceId": "62d8db0d455c4e0b22499a7f6d5888e0",
            "spanId": "f5393423987fb049",
            "parentSpanId": "8995c788710ec271",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698569442715",
            "endTimeUnixNano": "1796047698569446461",
            "durationMs": 0.003746,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.decodeShellSnapshot",
            "traceId": "62d8db0d455c4e0b22499a7f6d5888e0",
            "spanId": "8995c788710ec271",
            "parentSpanId": "166c394bf9c40dc4",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698569433602",
            "endTimeUnixNano": "1796047698569454793",
            "durationMs": 0.021191,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "62d8db0d455c4e0b22499a7f6d5888e0",
            "spanId": "57ca3d23eb1fcd06",
            "parentSpanId": "fb817571e93dc705",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698569485629",
            "endTimeUnixNano": "1796047698569595404",
            "durationMs": 0.109775,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.027,
              "db.client.connection.wait_time_ms": 0.035173
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectStoreV2.listShells",
            "traceId": "62d8db0d455c4e0b22499a7f6d5888e0",
            "spanId": "fb817571e93dc705",
            "parentSpanId": "166c394bf9c40dc4",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698569461564",
            "endTimeUnixNano": "1796047698569651117",
            "durationMs": 0.189553,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.readThreads",
            "traceId": "62d8db0d455c4e0b22499a7f6d5888e0",
            "spanId": "166c394bf9c40dc4",
            "parentSpanId": "3e73ae4723304f93",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698568868267",
            "endTimeUnixNano": "1796047698569658367",
            "durationMs": 0.7901,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "62d8db0d455c4e0b22499a7f6d5888e0",
            "spanId": "6cb5961005caf2e7",
            "parentSpanId": "3e73ae4723304f93",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698569679840",
            "endTimeUnixNano": "1796047698569775152",
            "durationMs": 0.095312,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.022,
              "db.client.connection.wait_time_ms": 0.030996
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "62d8db0d455c4e0b22499a7f6d5888e0",
            "spanId": "6ad55724e1f5d90e",
            "parentSpanId": "2ec892ab040219b9",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698569827420",
            "endTimeUnixNano": "1796047698569918226",
            "durationMs": 0.090806,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT DISTINCT json_extract(payload_json, '$.worktreePath') AS \"worktreePath\"\n      FROM orchestration_v2_projection_threads\n      WHERE json_extract(payload_json, '$.worktreePath') IS NOT NUL\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.043,
              "db.client.connection.wait_time_ms": 0.049895
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "62d8db0d455c4e0b22499a7f6d5888e0",
            "spanId": "80c70116f6f64a0b",
            "parentSpanId": "7004b0f783c5b6e0",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698571412638",
            "endTimeUnixNano": "1796047698572743577",
            "durationMs": 1.330939,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "62d8db0d455c4e0b22499a7f6d5888e0",
            "spanId": "7004b0f783c5b6e0",
            "parentSpanId": "78678b545c35000b",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698571248483",
            "endTimeUnixNano": "1796047698573590462",
            "durationMs": 2.341979,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "62d8db0d455c4e0b22499a7f6d5888e0",
            "spanId": "78678b545c35000b",
            "parentSpanId": "a8b6e39416dde69f",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698571213361",
            "endTimeUnixNano": "1796047698573770761",
            "durationMs": 2.5574,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo/packages/app",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "62d8db0d455c4e0b22499a7f6d5888e0",
            "spanId": "a8b6e39416dde69f",
            "parentSpanId": "2ec892ab040219b9",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698571194562",
            "endTimeUnixNano": "1796047698573791192",
            "durationMs": 2.59663,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "62d8db0d455c4e0b22499a7f6d5888e0",
            "spanId": "36ff4e810cc19b56",
            "parentSpanId": "2ec892ab040219b9",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698574073754",
            "endTimeUnixNano": "1796047698574119903",
            "durationMs": 0.046149,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "62d8db0d455c4e0b22499a7f6d5888e0",
            "spanId": "3e6facec0858705b",
            "parentSpanId": "2ec892ab040219b9",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698574212671",
            "endTimeUnixNano": "1796047698574242746",
            "durationMs": 0.030075,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "storageCleanup.measureWorktree",
            "traceId": "62d8db0d455c4e0b22499a7f6d5888e0",
            "spanId": "244a40cc829aead3",
            "parentSpanId": "2ec892ab040219b9",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698574264118",
            "endTimeUnixNano": "1796047698574881280",
            "durationMs": 0.617162,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.reportOrphanWorktrees",
            "traceId": "62d8db0d455c4e0b22499a7f6d5888e0",
            "spanId": "2ec892ab040219b9",
            "parentSpanId": "3e73ae4723304f93",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698569819158",
            "endTimeUnixNano": "1796047698574907700",
            "durationMs": 5.088542,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanWorktrees",
            "traceId": "62d8db0d455c4e0b22499a7f6d5888e0",
            "spanId": "3e73ae4723304f93",
            "parentSpanId": "4491e81621b34987",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698567985919",
            "endTimeUnixNano": "1796047698574915621",
            "durationMs": 6.929702,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.sweep",
            "traceId": "62d8db0d455c4e0b22499a7f6d5888e0",
            "spanId": "4491e81621b34987",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698567656717",
            "endTimeUnixNano": "1796047698574943774",
            "durationMs": 7.287057,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          }
        ]
      },
      {
        "run": 25,
        "warmup": false,
        "elapsedMs": 7.968924999999956,
        "nestedOrphanFound": true,
        "report": {
          "_tag": "Success",
          "value": {
            "trigger": "manual",
            "startedAt": "2026-11-30T14:08:18.576Z",
            "finishedAt": "2026-11-30T14:08:18.583Z",
            "entries": [
              {
                "kind": "worktree",
                "outcome": "kept",
                "reason": "No thread uses this worktree",
                "path": "$FIXTURE/data/worktrees/repository/replay/repo-wt",
                "projectPath": null,
                "threadId": null,
                "threadTitle": null,
                "bytes": 8192,
                "files": null
              }
            ],
            "counts": {
              "removed": 0,
              "kept": 1,
              "failed": 0
            },
            "omittedCount": 0,
            "bytesFreed": 0
          }
        },
        "spans": [
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "ee6a8fb5a7013d1995e4d66a9aaf3589",
            "spanId": "7900f7456eb682dd",
            "parentSpanId": "2ba9ae9299a4c011",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698575779442",
            "endTimeUnixNano": "1796047698575913002",
            "durationMs": 0.13356,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      WITH RECURSIVE retained_checkpoint_threads(thread_id) AS (\n        SELECT thread_id FROM orchestration_v2_projection_threads WHERE deleted_at IS NULL\n        UNION\n        SELECT json_extract(t\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.037,
              "db.client.connection.wait_time_ms": 0.049995
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanCheckpointRefs",
            "traceId": "ee6a8fb5a7013d1995e4d66a9aaf3589",
            "spanId": "2ba9ae9299a4c011",
            "parentSpanId": "76f6a6babfdbdf87",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698575769637",
            "endTimeUnixNano": "1796047698575946552",
            "durationMs": 0.176915,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.retryLeftovers",
            "traceId": "ee6a8fb5a7013d1995e4d66a9aaf3589",
            "spanId": "434725a1426b2d14",
            "parentSpanId": "76f6a6babfdbdf87",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698575979751",
            "endTimeUnixNano": "1796047698576057658",
            "durationMs": 0.077907,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveGitWorktreePath",
            "traceId": "ee6a8fb5a7013d1995e4d66a9aaf3589",
            "spanId": "e9097c518483479d",
            "parentSpanId": "f70e6d08b398797e",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698576091148",
            "endTimeUnixNano": "1796047698576285338",
            "durationMs": 0.19419,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveWorktreeT3Home",
            "traceId": "ee6a8fb5a7013d1995e4d66a9aaf3589",
            "spanId": "f70e6d08b398797e",
            "parentSpanId": "103265d6828c2855",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698576084478",
            "endTimeUnixNano": "1796047698576292228",
            "durationMs": 0.20775,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "ee6a8fb5a7013d1995e4d66a9aaf3589",
            "spanId": "98ee83fb780f4498",
            "parentSpanId": "103265d6828c2855",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698576561280",
            "endTimeUnixNano": "1796047698576655961",
            "durationMs": 0.094681,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n          SELECT t.payload_json, p.workspace_root AS \"workspaceRoot\"\n          FROM orchestration_v2_projection_threads t\n          JOIN projection_projects p ON p.project_id = t.project_id\n         \u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.028,
              "db.client.connection.wait_time_ms": 0.041071
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "BEGIN",
            "traceId": "ee6a8fb5a7013d1995e4d66a9aaf3589",
            "spanId": "cb8889be6ee62d65",
            "parentSpanId": "a763079951eb5102",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698576759927",
            "endTimeUnixNano": "1796047698576805655",
            "durationMs": 0.045728,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "BEGIN"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "ee6a8fb5a7013d1995e4d66a9aaf3589",
            "spanId": "7e132f43c8f012bd",
            "parentSpanId": "7c38b3d15bd14562",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698576891263",
            "endTimeUnixNano": "1796047698576978463",
            "durationMs": 0.0872,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n            SELECT\n              t.thread_id,\n              t.payload_json,\n              t.fork_run_ids_json,\n              CASE\n                WHEN json_extract(t.payload_json, '$.forkedFrom.type'\u2026[truncated]",
              "db.client.connection.wait_time_ms": 0.010926
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "ee6a8fb5a7013d1995e4d66a9aaf3589",
            "spanId": "17381bab736e338c",
            "parentSpanId": "7c38b3d15bd14562",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698577017151",
            "endTimeUnixNano": "1796047698577076800",
            "durationMs": 0.059649,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n        SELECT MAX(sequence) AS snapshot_sequence\n        FROM orchestration_events\n        WHERE application_event_version = 2\n          AND aggregate_kind = 'thread'\n      ",
              "db.client.connection.wait_time_ms": 0.009664
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readShellSnapshotRows",
            "traceId": "ee6a8fb5a7013d1995e4d66a9aaf3589",
            "spanId": "7c38b3d15bd14562",
            "parentSpanId": "a763079951eb5102",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698576825705",
            "endTimeUnixNano": "1796047698577092424",
            "durationMs": 0.266719,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "COMMIT",
            "traceId": "ee6a8fb5a7013d1995e4d66a9aaf3589",
            "spanId": "485a5e173d2511f0",
            "parentSpanId": "a763079951eb5102",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698577101988",
            "endTimeUnixNano": "1796047698577151792",
            "durationMs": 0.049804,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "COMMIT"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sql.transaction",
            "traceId": "ee6a8fb5a7013d1995e4d66a9aaf3589",
            "spanId": "a763079951eb5102",
            "parentSpanId": "fcae01c4d6efdf5c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698576714489",
            "endTimeUnixNano": "1796047698577175788",
            "durationMs": 0.461299,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.client.connection.wait_time_ms": 0.038718,
              "db.connection": "reader",
              "db.lock_wait_ms": 0.022
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.pendingBackgroundDataByThreadId",
            "traceId": "ee6a8fb5a7013d1995e4d66a9aaf3589",
            "spanId": "a66923eeebeed274",
            "parentSpanId": "314d9c7bf090abfa",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698577217040",
            "endTimeUnixNano": "1796047698577222037",
            "durationMs": 0.004997,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.decodeShellSnapshot",
            "traceId": "ee6a8fb5a7013d1995e4d66a9aaf3589",
            "spanId": "314d9c7bf090abfa",
            "parentSpanId": "fcae01c4d6efdf5c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698577202869",
            "endTimeUnixNano": "1796047698577231712",
            "durationMs": 0.028843,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "ee6a8fb5a7013d1995e4d66a9aaf3589",
            "spanId": "e8f6ab52b7b3e863",
            "parentSpanId": "6f58fa7bff870108",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698577269438",
            "endTimeUnixNano": "1796047698577380684",
            "durationMs": 0.111246,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.03,
              "db.client.connection.wait_time_ms": 0.039229
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectStoreV2.listShells",
            "traceId": "ee6a8fb5a7013d1995e4d66a9aaf3589",
            "spanId": "6f58fa7bff870108",
            "parentSpanId": "fcae01c4d6efdf5c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698577241887",
            "endTimeUnixNano": "1796047698577444880",
            "durationMs": 0.202993,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.readThreads",
            "traceId": "ee6a8fb5a7013d1995e4d66a9aaf3589",
            "spanId": "fcae01c4d6efdf5c",
            "parentSpanId": "103265d6828c2855",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698576691004",
            "endTimeUnixNano": "1796047698577453423",
            "durationMs": 0.762419,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "ee6a8fb5a7013d1995e4d66a9aaf3589",
            "spanId": "3a978ee94e717576",
            "parentSpanId": "103265d6828c2855",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698577476727",
            "endTimeUnixNano": "1796047698577567824",
            "durationMs": 0.091097,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.022,
              "db.client.connection.wait_time_ms": 0.032439
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "ee6a8fb5a7013d1995e4d66a9aaf3589",
            "spanId": "02ce89c8c19e37b8",
            "parentSpanId": "c5aae353646cf226",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698577620693",
            "endTimeUnixNano": "1796047698577744688",
            "durationMs": 0.123995,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT DISTINCT json_extract(payload_json, '$.worktreePath') AS \"worktreePath\"\n      FROM orchestration_v2_projection_threads\n      WHERE json_extract(payload_json, '$.worktreePath') IS NOT NUL\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.046,
              "db.client.connection.wait_time_ms": 0.052899
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "ee6a8fb5a7013d1995e4d66a9aaf3589",
            "spanId": "e5703f9724c54971",
            "parentSpanId": "378afeff49482d17",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698579326531",
            "endTimeUnixNano": "1796047698580706713",
            "durationMs": 1.380182,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "ee6a8fb5a7013d1995e4d66a9aaf3589",
            "spanId": "378afeff49482d17",
            "parentSpanId": "aae5f23062621f28",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698579138520",
            "endTimeUnixNano": "1796047698581654609",
            "durationMs": 2.516089,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "ee6a8fb5a7013d1995e4d66a9aaf3589",
            "spanId": "aae5f23062621f28",
            "parentSpanId": "e85166b4fbd4d45b",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698579095997",
            "endTimeUnixNano": "1796047698581855830",
            "durationMs": 2.759833,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo/packages/app",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "ee6a8fb5a7013d1995e4d66a9aaf3589",
            "spanId": "e85166b4fbd4d45b",
            "parentSpanId": "c5aae353646cf226",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698579075816",
            "endTimeUnixNano": "1796047698581876821",
            "durationMs": 2.801005,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "ee6a8fb5a7013d1995e4d66a9aaf3589",
            "spanId": "6bef73b7eb6a5cc7",
            "parentSpanId": "c5aae353646cf226",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698582157390",
            "endTimeUnixNano": "1796047698582200074",
            "durationMs": 0.042684,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "ee6a8fb5a7013d1995e4d66a9aaf3589",
            "spanId": "fedaecfe80fdaf28",
            "parentSpanId": "c5aae353646cf226",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698582289918",
            "endTimeUnixNano": "1796047698582317740",
            "durationMs": 0.027822,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "storageCleanup.measureWorktree",
            "traceId": "ee6a8fb5a7013d1995e4d66a9aaf3589",
            "spanId": "262b9eb7c6d29124",
            "parentSpanId": "c5aae353646cf226",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698582339062",
            "endTimeUnixNano": "1796047698582921532",
            "durationMs": 0.58247,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.reportOrphanWorktrees",
            "traceId": "ee6a8fb5a7013d1995e4d66a9aaf3589",
            "spanId": "c5aae353646cf226",
            "parentSpanId": "103265d6828c2855",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698577612340",
            "endTimeUnixNano": "1796047698582946489",
            "durationMs": 5.334149,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanWorktrees",
            "traceId": "ee6a8fb5a7013d1995e4d66a9aaf3589",
            "spanId": "103265d6828c2855",
            "parentSpanId": "76f6a6babfdbdf87",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698576069015",
            "endTimeUnixNano": "1796047698582953389",
            "durationMs": 6.884374,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.sweep",
            "traceId": "ee6a8fb5a7013d1995e4d66a9aaf3589",
            "spanId": "76f6a6babfdbdf87",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698575747945",
            "endTimeUnixNano": "1796047698582994361",
            "durationMs": 7.246416,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          }
        ]
      },
      {
        "run": 26,
        "warmup": false,
        "elapsedMs": 7.4900800000000345,
        "nestedOrphanFound": true,
        "report": {
          "_tag": "Success",
          "value": {
            "trigger": "manual",
            "startedAt": "2026-11-30T14:08:18.584Z",
            "finishedAt": "2026-11-30T14:08:18.591Z",
            "entries": [
              {
                "kind": "worktree",
                "outcome": "kept",
                "reason": "No thread uses this worktree",
                "path": "$FIXTURE/data/worktrees/repository/replay/repo-wt",
                "projectPath": null,
                "threadId": null,
                "threadTitle": null,
                "bytes": 8192,
                "files": null
              }
            ],
            "counts": {
              "removed": 0,
              "kept": 1,
              "failed": 0
            },
            "omittedCount": 0,
            "bytesFreed": 0
          }
        },
        "spans": [
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "86e97fc915a1b2a942d1277821fc83e7",
            "spanId": "cba1818facfa22e2",
            "parentSpanId": "1a9f17888e0cc73a",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698583720175",
            "endTimeUnixNano": "1796047698583833584",
            "durationMs": 0.113409,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      WITH RECURSIVE retained_checkpoint_threads(thread_id) AS (\n        SELECT thread_id FROM orchestration_v2_projection_threads WHERE deleted_at IS NULL\n        UNION\n        SELECT json_extract(t\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.034,
              "db.client.connection.wait_time_ms": 0.045057
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanCheckpointRefs",
            "traceId": "86e97fc915a1b2a942d1277821fc83e7",
            "spanId": "1a9f17888e0cc73a",
            "parentSpanId": "dbe5495cbdd3bb9f",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698583711352",
            "endTimeUnixNano": "1796047698583863759",
            "durationMs": 0.152407,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.retryLeftovers",
            "traceId": "86e97fc915a1b2a942d1277821fc83e7",
            "spanId": "26e4683d9b6e97dd",
            "parentSpanId": "dbe5495cbdd3bb9f",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698583880374",
            "endTimeUnixNano": "1796047698583948506",
            "durationMs": 0.068132,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveGitWorktreePath",
            "traceId": "86e97fc915a1b2a942d1277821fc83e7",
            "spanId": "630aa8f69d5ee299",
            "parentSpanId": "4f1a90140ee80427",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698583994124",
            "endTimeUnixNano": "1796047698584186802",
            "durationMs": 0.192678,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveWorktreeT3Home",
            "traceId": "86e97fc915a1b2a942d1277821fc83e7",
            "spanId": "4f1a90140ee80427",
            "parentSpanId": "115664464ae4c22d",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698583988235",
            "endTimeUnixNano": "1796047698584194413",
            "durationMs": 0.206178,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "86e97fc915a1b2a942d1277821fc83e7",
            "spanId": "5e3b36363b8a5909",
            "parentSpanId": "115664464ae4c22d",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698584479519",
            "endTimeUnixNano": "1796047698584580119",
            "durationMs": 0.1006,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n          SELECT t.payload_json, p.workspace_root AS \"workspaceRoot\"\n          FROM orchestration_v2_projection_threads t\n          JOIN projection_projects p ON p.project_id = t.project_id\n         \u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.039,
              "db.client.connection.wait_time_ms": 0.051066
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "BEGIN",
            "traceId": "86e97fc915a1b2a942d1277821fc83e7",
            "spanId": "f67073d12c4e4d0b",
            "parentSpanId": "49187fbd37c69e65",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698584700429",
            "endTimeUnixNano": "1796047698584745266",
            "durationMs": 0.044837,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "BEGIN"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "86e97fc915a1b2a942d1277821fc83e7",
            "spanId": "00a58cbcd8476265",
            "parentSpanId": "9c4f84d3f6b686d3",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698584843533",
            "endTimeUnixNano": "1796047698584922551",
            "durationMs": 0.079018,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n            SELECT\n              t.thread_id,\n              t.payload_json,\n              t.fork_run_ids_json,\n              CASE\n                WHEN json_extract(t.payload_json, '$.forkedFrom.type'\u2026[truncated]",
              "db.client.connection.wait_time_ms": 0.010876
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "86e97fc915a1b2a942d1277821fc83e7",
            "spanId": "5da36d14c3f5018b",
            "parentSpanId": "9c4f84d3f6b686d3",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698584947108",
            "endTimeUnixNano": "1796047698585001709",
            "durationMs": 0.054601,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n        SELECT MAX(sequence) AS snapshot_sequence\n        FROM orchestration_events\n        WHERE application_event_version = 2\n          AND aggregate_kind = 'thread'\n      ",
              "db.client.connection.wait_time_ms": 0.00709
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readShellSnapshotRows",
            "traceId": "86e97fc915a1b2a942d1277821fc83e7",
            "spanId": "9c4f84d3f6b686d3",
            "parentSpanId": "49187fbd37c69e65",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698584767009",
            "endTimeUnixNano": "1796047698585013927",
            "durationMs": 0.246918,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "COMMIT",
            "traceId": "86e97fc915a1b2a942d1277821fc83e7",
            "spanId": "57cc281df9529aeb",
            "parentSpanId": "49187fbd37c69e65",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698585022100",
            "endTimeUnixNano": "1796047698585046156",
            "durationMs": 0.024056,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "COMMIT"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sql.transaction",
            "traceId": "86e97fc915a1b2a942d1277821fc83e7",
            "spanId": "49187fbd37c69e65",
            "parentSpanId": "93af59953c8193c8",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698584636954",
            "endTimeUnixNano": "1796047698585065334",
            "durationMs": 0.42838,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.client.connection.wait_time_ms": 0.057476,
              "db.connection": "reader",
              "db.lock_wait_ms": 0.024
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.pendingBackgroundDataByThreadId",
            "traceId": "86e97fc915a1b2a942d1277821fc83e7",
            "spanId": "545ebc976b47234c",
            "parentSpanId": "ee7dd58a8f52f753",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698585097092",
            "endTimeUnixNano": "1796047698585101268",
            "durationMs": 0.004176,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.decodeShellSnapshot",
            "traceId": "86e97fc915a1b2a942d1277821fc83e7",
            "spanId": "ee7dd58a8f52f753",
            "parentSpanId": "93af59953c8193c8",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698585087577",
            "endTimeUnixNano": "1796047698585114378",
            "durationMs": 0.026801,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "86e97fc915a1b2a942d1277821fc83e7",
            "spanId": "2300a2bdb50f26a9",
            "parentSpanId": "1d595c30df06b6ad",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698585144893",
            "endTimeUnixNano": "1796047698585247937",
            "durationMs": 0.103044,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.026,
              "db.client.connection.wait_time_ms": 0.03342
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectStoreV2.listShells",
            "traceId": "86e97fc915a1b2a942d1277821fc83e7",
            "spanId": "1d595c30df06b6ad",
            "parentSpanId": "93af59953c8193c8",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698585122059",
            "endTimeUnixNano": "1796047698585302739",
            "durationMs": 0.18068,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.readThreads",
            "traceId": "86e97fc915a1b2a942d1277821fc83e7",
            "spanId": "93af59953c8193c8",
            "parentSpanId": "115664464ae4c22d",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698584614200",
            "endTimeUnixNano": "1796047698585310521",
            "durationMs": 0.696321,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "86e97fc915a1b2a942d1277821fc83e7",
            "spanId": "46d6a77616e7490d",
            "parentSpanId": "115664464ae4c22d",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698585334747",
            "endTimeUnixNano": "1796047698585420725",
            "durationMs": 0.085978,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.02,
              "db.client.connection.wait_time_ms": 0.030235
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "86e97fc915a1b2a942d1277821fc83e7",
            "spanId": "f3ddb3b29f6b8bc8",
            "parentSpanId": "9c8d3889789913ec",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698585470800",
            "endTimeUnixNano": "1796047698585536027",
            "durationMs": 0.065227,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT DISTINCT json_extract(payload_json, '$.worktreePath') AS \"worktreePath\"\n      FROM orchestration_v2_projection_threads\n      WHERE json_extract(payload_json, '$.worktreePath') IS NOT NUL\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.029,
              "db.client.connection.wait_time_ms": 0.035723
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "86e97fc915a1b2a942d1277821fc83e7",
            "spanId": "c72e3c8acc3d3b57",
            "parentSpanId": "93c81ec59ec1fb37",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698587081386",
            "endTimeUnixNano": "1796047698588323201",
            "durationMs": 1.241815,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "86e97fc915a1b2a942d1277821fc83e7",
            "spanId": "93c81ec59ec1fb37",
            "parentSpanId": "57f5377550a4da58",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698586884602",
            "endTimeUnixNano": "1796047698589162225",
            "durationMs": 2.277623,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "86e97fc915a1b2a942d1277821fc83e7",
            "spanId": "57f5377550a4da58",
            "parentSpanId": "be23235c2afb01e8",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698586848839",
            "endTimeUnixNano": "1796047698589335103",
            "durationMs": 2.486264,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo/packages/app",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "86e97fc915a1b2a942d1277821fc83e7",
            "spanId": "be23235c2afb01e8",
            "parentSpanId": "9c8d3889789913ec",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698586829620",
            "endTimeUnixNano": "1796047698589354051",
            "durationMs": 2.524431,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "86e97fc915a1b2a942d1277821fc83e7",
            "spanId": "1e21e652a00fc1e4",
            "parentSpanId": "9c8d3889789913ec",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698589638366",
            "endTimeUnixNano": "1796047698589680839",
            "durationMs": 0.042473,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "86e97fc915a1b2a942d1277821fc83e7",
            "spanId": "47988274fdd01a2d",
            "parentSpanId": "9c8d3889789913ec",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698589762521",
            "endTimeUnixNano": "1796047698589791615",
            "durationMs": 0.029094,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "storageCleanup.measureWorktree",
            "traceId": "86e97fc915a1b2a942d1277821fc83e7",
            "spanId": "2d01bd0b32254006",
            "parentSpanId": "9c8d3889789913ec",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698589811305",
            "endTimeUnixNano": "1796047698590458321",
            "durationMs": 0.647016,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.reportOrphanWorktrees",
            "traceId": "86e97fc915a1b2a942d1277821fc83e7",
            "spanId": "9c8d3889789913ec",
            "parentSpanId": "115664464ae4c22d",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698585463038",
            "endTimeUnixNano": "1796047698590492111",
            "durationMs": 5.029073,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanWorktrees",
            "traceId": "86e97fc915a1b2a942d1277821fc83e7",
            "spanId": "115664464ae4c22d",
            "parentSpanId": "dbe5495cbdd3bb9f",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698583959372",
            "endTimeUnixNano": "1796047698590498581",
            "durationMs": 6.539209,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.sweep",
            "traceId": "86e97fc915a1b2a942d1277821fc83e7",
            "spanId": "dbe5495cbdd3bb9f",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698583692193",
            "endTimeUnixNano": "1796047698590525902",
            "durationMs": 6.833709,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          }
        ]
      },
      {
        "run": 27,
        "warmup": false,
        "elapsedMs": 7.1887290000000235,
        "nestedOrphanFound": true,
        "report": {
          "_tag": "Success",
          "value": {
            "trigger": "manual",
            "startedAt": "2026-11-30T14:08:18.591Z",
            "finishedAt": "2026-11-30T14:08:18.598Z",
            "entries": [
              {
                "kind": "worktree",
                "outcome": "kept",
                "reason": "No thread uses this worktree",
                "path": "$FIXTURE/data/worktrees/repository/replay/repo-wt",
                "projectPath": null,
                "threadId": null,
                "threadTitle": null,
                "bytes": 8192,
                "files": null
              }
            ],
            "counts": {
              "removed": 0,
              "kept": 1,
              "failed": 0
            },
            "omittedCount": 0,
            "bytesFreed": 0
          }
        },
        "spans": [
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "fec6069b4878deab3658f60a0ff3be23",
            "spanId": "9598040dc5f06a86",
            "parentSpanId": "160d03c694ae070a",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698591212979",
            "endTimeUnixNano": "1796047698591322482",
            "durationMs": 0.109503,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      WITH RECURSIVE retained_checkpoint_threads(thread_id) AS (\n        SELECT thread_id FROM orchestration_v2_projection_threads WHERE deleted_at IS NULL\n        UNION\n        SELECT json_extract(t\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.032,
              "db.client.connection.wait_time_ms": 0.042893
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanCheckpointRefs",
            "traceId": "fec6069b4878deab3658f60a0ff3be23",
            "spanId": "160d03c694ae070a",
            "parentSpanId": "1098fa8a62fd44ed",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698591204045",
            "endTimeUnixNano": "1796047698591352317",
            "durationMs": 0.148272,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.retryLeftovers",
            "traceId": "fec6069b4878deab3658f60a0ff3be23",
            "spanId": "0cfaa95799b9b3a6",
            "parentSpanId": "1098fa8a62fd44ed",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698591368891",
            "endTimeUnixNano": "1796047698591444014",
            "durationMs": 0.075123,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveGitWorktreePath",
            "traceId": "fec6069b4878deab3658f60a0ff3be23",
            "spanId": "cd079f4df5801924",
            "parentSpanId": "66c8cfc94d2a6cce",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698591476172",
            "endTimeUnixNano": "1796047698591646005",
            "durationMs": 0.169833,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveWorktreeT3Home",
            "traceId": "fec6069b4878deab3658f60a0ff3be23",
            "spanId": "66c8cfc94d2a6cce",
            "parentSpanId": "3f9e94a283bbe343",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698591469882",
            "endTimeUnixNano": "1796047698591652195",
            "durationMs": 0.182313,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "fec6069b4878deab3658f60a0ff3be23",
            "spanId": "95eacd33d7177c4b",
            "parentSpanId": "3f9e94a283bbe343",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698591910420",
            "endTimeUnixNano": "1796047698591999794",
            "durationMs": 0.089374,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n          SELECT t.payload_json, p.workspace_root AS \"workspaceRoot\"\n          FROM orchestration_v2_projection_threads t\n          JOIN projection_projects p ON p.project_id = t.project_id\n         \u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.027,
              "db.client.connection.wait_time_ms": 0.037887
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "BEGIN",
            "traceId": "fec6069b4878deab3658f60a0ff3be23",
            "spanId": "f1e194514ddf5f02",
            "parentSpanId": "392bbdad2342354c",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698592100785",
            "endTimeUnixNano": "1796047698592146894",
            "durationMs": 0.046109,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "BEGIN"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "fec6069b4878deab3658f60a0ff3be23",
            "spanId": "2df1326b121dd6ff",
            "parentSpanId": "7848a2389beae91d",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698592229397",
            "endTimeUnixNano": "1796047698592294915",
            "durationMs": 0.065518,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n            SELECT\n              t.thread_id,\n              t.payload_json,\n              t.fork_run_ids_json,\n              CASE\n                WHEN json_extract(t.payload_json, '$.forkedFrom.type'\u2026[truncated]",
              "db.client.connection.wait_time_ms": 0.009284
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "fec6069b4878deab3658f60a0ff3be23",
            "spanId": "6e8ba02a60d45fb8",
            "parentSpanId": "7848a2389beae91d",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698592319972",
            "endTimeUnixNano": "1796047698592351349",
            "durationMs": 0.031377,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n        SELECT MAX(sequence) AS snapshot_sequence\n        FROM orchestration_events\n        WHERE application_event_version = 2\n          AND aggregate_kind = 'thread'\n      ",
              "db.client.connection.wait_time_ms": 0.005428
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readShellSnapshotRows",
            "traceId": "fec6069b4878deab3658f60a0ff3be23",
            "spanId": "7848a2389beae91d",
            "parentSpanId": "392bbdad2342354c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698592165812",
            "endTimeUnixNano": "1796047698592363077",
            "durationMs": 0.197265,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "COMMIT",
            "traceId": "fec6069b4878deab3658f60a0ff3be23",
            "spanId": "1428cdc39e810c1a",
            "parentSpanId": "392bbdad2342354c",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698592373512",
            "endTimeUnixNano": "1796047698592394874",
            "durationMs": 0.021362,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "COMMIT"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sql.transaction",
            "traceId": "fec6069b4878deab3658f60a0ff3be23",
            "spanId": "392bbdad2342354c",
            "parentSpanId": "54b3331c6c582be0",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698592055978",
            "endTimeUnixNano": "1796047698592414814",
            "durationMs": 0.358836,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.client.connection.wait_time_ms": 0.038427,
              "db.connection": "reader",
              "db.lock_wait_ms": 0.023
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.pendingBackgroundDataByThreadId",
            "traceId": "fec6069b4878deab3658f60a0ff3be23",
            "spanId": "2a954167bb82635f",
            "parentSpanId": "c794077f3c5545df",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698592447733",
            "endTimeUnixNano": "1796047698592451759",
            "durationMs": 0.004026,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.decodeShellSnapshot",
            "traceId": "fec6069b4878deab3658f60a0ff3be23",
            "spanId": "c794077f3c5545df",
            "parentSpanId": "54b3331c6c582be0",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698592438109",
            "endTimeUnixNano": "1796047698592459010",
            "durationMs": 0.020901,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "fec6069b4878deab3658f60a0ff3be23",
            "spanId": "8d6c54ae6ddafc12",
            "parentSpanId": "b3bb64beaa6ae19c",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698592490978",
            "endTimeUnixNano": "1796047698592573942",
            "durationMs": 0.082964,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.024,
              "db.client.connection.wait_time_ms": 0.031377
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectStoreV2.listShells",
            "traceId": "fec6069b4878deab3658f60a0ff3be23",
            "spanId": "b3bb64beaa6ae19c",
            "parentSpanId": "54b3331c6c582be0",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698592465620",
            "endTimeUnixNano": "1796047698592626480",
            "durationMs": 0.16086,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.readThreads",
            "traceId": "fec6069b4878deab3658f60a0ff3be23",
            "spanId": "54b3331c6c582be0",
            "parentSpanId": "3f9e94a283bbe343",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698592032973",
            "endTimeUnixNano": "1796047698592633240",
            "durationMs": 0.600267,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "fec6069b4878deab3658f60a0ff3be23",
            "spanId": "72e930a23400635d",
            "parentSpanId": "3f9e94a283bbe343",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698592654452",
            "endTimeUnixNano": "1796047698592731096",
            "durationMs": 0.076644,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.019,
              "db.client.connection.wait_time_ms": 0.028342
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "fec6069b4878deab3658f60a0ff3be23",
            "spanId": "5a3b1beb30911d55",
            "parentSpanId": "7236715dd6c870af",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698592780911",
            "endTimeUnixNano": "1796047698592846218",
            "durationMs": 0.065307,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT DISTINCT json_extract(payload_json, '$.worktreePath') AS \"worktreePath\"\n      FROM orchestration_v2_projection_threads\n      WHERE json_extract(payload_json, '$.worktreePath') IS NOT NUL\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.031,
              "db.client.connection.wait_time_ms": 0.038177
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "fec6069b4878deab3658f60a0ff3be23",
            "spanId": "04d230319b3cdf4d",
            "parentSpanId": "c5dbb2b7b1264c9b",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698594373790",
            "endTimeUnixNano": "1796047698595542937",
            "durationMs": 1.169147,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "fec6069b4878deab3658f60a0ff3be23",
            "spanId": "c5dbb2b7b1264c9b",
            "parentSpanId": "f65d8f8962acfb1e",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698594184287",
            "endTimeUnixNano": "1796047698596377944",
            "durationMs": 2.193657,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "fec6069b4878deab3658f60a0ff3be23",
            "spanId": "f65d8f8962acfb1e",
            "parentSpanId": "40217e2a0117a81d",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698594150397",
            "endTimeUnixNano": "1796047698596571063",
            "durationMs": 2.420666,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo/packages/app",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "fec6069b4878deab3658f60a0ff3be23",
            "spanId": "40217e2a0117a81d",
            "parentSpanId": "7236715dd6c870af",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698594131388",
            "endTimeUnixNano": "1796047698596591844",
            "durationMs": 2.460456,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "fec6069b4878deab3658f60a0ff3be23",
            "spanId": "c878512c2bd59e02",
            "parentSpanId": "7236715dd6c870af",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698596870921",
            "endTimeUnixNano": "1796047698596909018",
            "durationMs": 0.038097,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "fec6069b4878deab3658f60a0ff3be23",
            "spanId": "a38e427fa8f3179c",
            "parentSpanId": "7236715dd6c870af",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698597009738",
            "endTimeUnixNano": "1796047698597033133",
            "durationMs": 0.023395,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "storageCleanup.measureWorktree",
            "traceId": "fec6069b4878deab3658f60a0ff3be23",
            "spanId": "32133462d3fba3a9",
            "parentSpanId": "7236715dd6c870af",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698597053714",
            "endTimeUnixNano": "1796047698597654041",
            "durationMs": 0.600327,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.reportOrphanWorktrees",
            "traceId": "fec6069b4878deab3658f60a0ff3be23",
            "spanId": "7236715dd6c870af",
            "parentSpanId": "3f9e94a283bbe343",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698592773229",
            "endTimeUnixNano": "1796047698597680510",
            "durationMs": 4.907281,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanWorktrees",
            "traceId": "fec6069b4878deab3658f60a0ff3be23",
            "spanId": "3f9e94a283bbe343",
            "parentSpanId": "1098fa8a62fd44ed",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698591455321",
            "endTimeUnixNano": "1796047698597687200",
            "durationMs": 6.231879,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.sweep",
            "traceId": "fec6069b4878deab3658f60a0ff3be23",
            "spanId": "1098fa8a62fd44ed",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698591185337",
            "endTimeUnixNano": "1796047698597712698",
            "durationMs": 6.527361,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          }
        ]
      },
      {
        "run": 28,
        "warmup": false,
        "elapsedMs": 7.08104800000001,
        "nestedOrphanFound": true,
        "report": {
          "_tag": "Success",
          "value": {
            "trigger": "manual",
            "startedAt": "2026-11-30T14:08:18.598Z",
            "finishedAt": "2026-11-30T14:08:18.605Z",
            "entries": [
              {
                "kind": "worktree",
                "outcome": "kept",
                "reason": "No thread uses this worktree",
                "path": "$FIXTURE/data/worktrees/repository/replay/repo-wt",
                "projectPath": null,
                "threadId": null,
                "threadTitle": null,
                "bytes": 8192,
                "files": null
              }
            ],
            "counts": {
              "removed": 0,
              "kept": 1,
              "failed": 0
            },
            "omittedCount": 0,
            "bytesFreed": 0
          }
        },
        "spans": [
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "6fdcba0b9fe8f355787b546fae7d4fac",
            "spanId": "d20105c41a072f64",
            "parentSpanId": "4992501809cdc763",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698598424292",
            "endTimeUnixNano": "1796047698598528317",
            "durationMs": 0.104025,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      WITH RECURSIVE retained_checkpoint_threads(thread_id) AS (\n        SELECT thread_id FROM orchestration_v2_projection_threads WHERE deleted_at IS NULL\n        UNION\n        SELECT json_extract(t\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.031,
              "db.client.connection.wait_time_ms": 0.042373
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanCheckpointRefs",
            "traceId": "6fdcba0b9fe8f355787b546fae7d4fac",
            "spanId": "4992501809cdc763",
            "parentSpanId": "b8c64d3042ab29f4",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698598415439",
            "endTimeUnixNano": "1796047698598558673",
            "durationMs": 0.143234,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.retryLeftovers",
            "traceId": "6fdcba0b9fe8f355787b546fae7d4fac",
            "spanId": "408063f608696a04",
            "parentSpanId": "b8c64d3042ab29f4",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698598575738",
            "endTimeUnixNano": "1796047698598633815",
            "durationMs": 0.058077,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveGitWorktreePath",
            "traceId": "6fdcba0b9fe8f355787b546fae7d4fac",
            "spanId": "33112f78bd604d93",
            "parentSpanId": "c6bc69a73df6fd19",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698598666494",
            "endTimeUnixNano": "1796047698598850599",
            "durationMs": 0.184105,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveWorktreeT3Home",
            "traceId": "6fdcba0b9fe8f355787b546fae7d4fac",
            "spanId": "c6bc69a73df6fd19",
            "parentSpanId": "6303de36d68326f8",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698598660204",
            "endTimeUnixNano": "1796047698598856818",
            "durationMs": 0.196614,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "6fdcba0b9fe8f355787b546fae7d4fac",
            "spanId": "cd63907a3a31be68",
            "parentSpanId": "6303de36d68326f8",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698599119751",
            "endTimeUnixNano": "1796047698599199270",
            "durationMs": 0.079519,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n          SELECT t.payload_json, p.workspace_root AS \"workspaceRoot\"\n          FROM orchestration_v2_projection_threads t\n          JOIN projection_projects p ON p.project_id = t.project_id\n         \u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.026,
              "db.client.connection.wait_time_ms": 0.039078
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "BEGIN",
            "traceId": "6fdcba0b9fe8f355787b546fae7d4fac",
            "spanId": "6c37573d14140240",
            "parentSpanId": "1e18f46137654162",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698599292078",
            "endTimeUnixNano": "1796047698599323765",
            "durationMs": 0.031687,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "BEGIN"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "6fdcba0b9fe8f355787b546fae7d4fac",
            "spanId": "9ac1f7fb332dbbec",
            "parentSpanId": "39d9355c315fe4e9",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698599406099",
            "endTimeUnixNano": "1796047698599460259",
            "durationMs": 0.05416,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n            SELECT\n              t.thread_id,\n              t.payload_json,\n              t.fork_run_ids_json,\n              CASE\n                WHEN json_extract(t.payload_json, '$.forkedFrom.type'\u2026[truncated]",
              "db.client.connection.wait_time_ms": 0.009113
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "6fdcba0b9fe8f355787b546fae7d4fac",
            "spanId": "606da190254b3e11",
            "parentSpanId": "39d9355c315fe4e9",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698599484376",
            "endTimeUnixNano": "1796047698599513248",
            "durationMs": 0.028872,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n        SELECT MAX(sequence) AS snapshot_sequence\n        FROM orchestration_events\n        WHERE application_event_version = 2\n          AND aggregate_kind = 'thread'\n      ",
              "db.client.connection.wait_time_ms": 0.005348
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readShellSnapshotRows",
            "traceId": "6fdcba0b9fe8f355787b546fae7d4fac",
            "spanId": "39d9355c315fe4e9",
            "parentSpanId": "1e18f46137654162",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698599342854",
            "endTimeUnixNano": "1796047698599524495",
            "durationMs": 0.181641,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "COMMIT",
            "traceId": "6fdcba0b9fe8f355787b546fae7d4fac",
            "spanId": "60c41138a85840aa",
            "parentSpanId": "1e18f46137654162",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698599533879",
            "endTimeUnixNano": "1796047698599555181",
            "durationMs": 0.021302,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "COMMIT"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sql.transaction",
            "traceId": "6fdcba0b9fe8f355787b546fae7d4fac",
            "spanId": "1e18f46137654162",
            "parentSpanId": "26c8b39b764d132b",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698599251658",
            "endTimeUnixNano": "1796047698599574220",
            "durationMs": 0.322562,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.client.connection.wait_time_ms": 0.035292,
              "db.connection": "reader",
              "db.lock_wait_ms": 0.021
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.pendingBackgroundDataByThreadId",
            "traceId": "6fdcba0b9fe8f355787b546fae7d4fac",
            "spanId": "55d093b50b83bfe4",
            "parentSpanId": "131a68cf3c859094",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698599604505",
            "endTimeUnixNano": "1796047698599608290",
            "durationMs": 0.003785,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.decodeShellSnapshot",
            "traceId": "6fdcba0b9fe8f355787b546fae7d4fac",
            "spanId": "131a68cf3c859094",
            "parentSpanId": "26c8b39b764d132b",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698599595582",
            "endTimeUnixNano": "1796047698599615641",
            "durationMs": 0.020059,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "6fdcba0b9fe8f355787b546fae7d4fac",
            "spanId": "87680b69bf7985cf",
            "parentSpanId": "933db644cfb38c70",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698599645306",
            "endTimeUnixNano": "1796047698599726467",
            "durationMs": 0.081161,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.022,
              "db.client.connection.wait_time_ms": 0.029764
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectStoreV2.listShells",
            "traceId": "6fdcba0b9fe8f355787b546fae7d4fac",
            "spanId": "933db644cfb38c70",
            "parentSpanId": "26c8b39b764d132b",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698599622812",
            "endTimeUnixNano": "1796047698599778445",
            "durationMs": 0.155633,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.readThreads",
            "traceId": "6fdcba0b9fe8f355787b546fae7d4fac",
            "spanId": "26c8b39b764d132b",
            "parentSpanId": "6303de36d68326f8",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698599231998",
            "endTimeUnixNano": "1796047698599786056",
            "durationMs": 0.554058,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "6fdcba0b9fe8f355787b546fae7d4fac",
            "spanId": "f252958da4e7fb54",
            "parentSpanId": "6303de36d68326f8",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698599807098",
            "endTimeUnixNano": "1796047698599885996",
            "durationMs": 0.078898,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.021,
              "db.client.connection.wait_time_ms": 0.031436
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "6fdcba0b9fe8f355787b546fae7d4fac",
            "spanId": "495da04a681c949f",
            "parentSpanId": "44dca85a314122e1",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698599936341",
            "endTimeUnixNano": "1796047698600032194",
            "durationMs": 0.095853,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT DISTINCT json_extract(payload_json, '$.worktreePath') AS \"worktreePath\"\n      FROM orchestration_v2_projection_threads\n      WHERE json_extract(payload_json, '$.worktreePath') IS NOT NUL\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.054,
              "db.client.connection.wait_time_ms": 0.060991
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "6fdcba0b9fe8f355787b546fae7d4fac",
            "spanId": "becf864956fcc89f",
            "parentSpanId": "90e53dc56c273bff",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698601470463",
            "endTimeUnixNano": "1796047698602609214",
            "durationMs": 1.138751,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "6fdcba0b9fe8f355787b546fae7d4fac",
            "spanId": "90e53dc56c273bff",
            "parentSpanId": "6920712c249ef0b8",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698601308310",
            "endTimeUnixNano": "1796047698603435038",
            "durationMs": 2.126728,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "6fdcba0b9fe8f355787b546fae7d4fac",
            "spanId": "6920712c249ef0b8",
            "parentSpanId": "d35ed676a6557b6d",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698601276152",
            "endTimeUnixNano": "1796047698603624931",
            "durationMs": 2.348779,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo/packages/app",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "6fdcba0b9fe8f355787b546fae7d4fac",
            "spanId": "d35ed676a6557b6d",
            "parentSpanId": "44dca85a314122e1",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698601258486",
            "endTimeUnixNano": "1796047698603645492",
            "durationMs": 2.387006,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "6fdcba0b9fe8f355787b546fae7d4fac",
            "spanId": "a61e65bd6e02d439",
            "parentSpanId": "44dca85a314122e1",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698603936236",
            "endTimeUnixNano": "1796047698603988104",
            "durationMs": 0.051868,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "6fdcba0b9fe8f355787b546fae7d4fac",
            "spanId": "7e4a6ecb08e79a05",
            "parentSpanId": "44dca85a314122e1",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698604072390",
            "endTimeUnixNano": "1796047698604100612",
            "durationMs": 0.028222,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "storageCleanup.measureWorktree",
            "traceId": "6fdcba0b9fe8f355787b546fae7d4fac",
            "spanId": "5bdba261a9c3c8b2",
            "parentSpanId": "44dca85a314122e1",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698604124467",
            "endTimeUnixNano": "1796047698604709822",
            "durationMs": 0.585355,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.reportOrphanWorktrees",
            "traceId": "6fdcba0b9fe8f355787b546fae7d4fac",
            "spanId": "44dca85a314122e1",
            "parentSpanId": "6303de36d68326f8",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698599929040",
            "endTimeUnixNano": "1796047698604734739",
            "durationMs": 4.805699,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanWorktrees",
            "traceId": "6fdcba0b9fe8f355787b546fae7d4fac",
            "spanId": "6303de36d68326f8",
            "parentSpanId": "b8c64d3042ab29f4",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698598644521",
            "endTimeUnixNano": "1796047698604743592",
            "durationMs": 6.099071,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.sweep",
            "traceId": "6fdcba0b9fe8f355787b546fae7d4fac",
            "spanId": "b8c64d3042ab29f4",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698598397071",
            "endTimeUnixNano": "1796047698604768760",
            "durationMs": 6.371689,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          }
        ]
      },
      {
        "run": 29,
        "warmup": false,
        "elapsedMs": 6.8225419999999986,
        "nestedOrphanFound": true,
        "report": {
          "_tag": "Success",
          "value": {
            "trigger": "manual",
            "startedAt": "2026-11-30T14:08:18.605Z",
            "finishedAt": "2026-11-30T14:08:18.612Z",
            "entries": [
              {
                "kind": "worktree",
                "outcome": "kept",
                "reason": "No thread uses this worktree",
                "path": "$FIXTURE/data/worktrees/repository/replay/repo-wt",
                "projectPath": null,
                "threadId": null,
                "threadTitle": null,
                "bytes": 8192,
                "files": null
              }
            ],
            "counts": {
              "removed": 0,
              "kept": 1,
              "failed": 0
            },
            "omittedCount": 0,
            "bytesFreed": 0
          }
        },
        "spans": [
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "b470a9a0c9d008fbe1743d88fb2c12b6",
            "spanId": "c7d3c2f6c12c35c4",
            "parentSpanId": "e23de88f24cb0a9d",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698605469146",
            "endTimeUnixNano": "1796047698605591739",
            "durationMs": 0.122593,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      WITH RECURSIVE retained_checkpoint_threads(thread_id) AS (\n        SELECT thread_id FROM orchestration_v2_projection_threads WHERE deleted_at IS NULL\n        UNION\n        SELECT json_extract(t\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.031,
              "db.client.connection.wait_time_ms": 0.042934
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanCheckpointRefs",
            "traceId": "b470a9a0c9d008fbe1743d88fb2c12b6",
            "spanId": "e23de88f24cb0a9d",
            "parentSpanId": "a71e72636c0587a0",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698605460854",
            "endTimeUnixNano": "1796047698605623988",
            "durationMs": 0.163134,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.retryLeftovers",
            "traceId": "b470a9a0c9d008fbe1743d88fb2c12b6",
            "spanId": "096b6ddf1a9dda83",
            "parentSpanId": "a71e72636c0587a0",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698605640112",
            "endTimeUnixNano": "1796047698605707602",
            "durationMs": 0.06749,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveGitWorktreePath",
            "traceId": "b470a9a0c9d008fbe1743d88fb2c12b6",
            "spanId": "79f40b65f60d00a3",
            "parentSpanId": "defb35ad325dbaa3",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698605738679",
            "endTimeUnixNano": "1796047698605897326",
            "durationMs": 0.158647,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveWorktreeT3Home",
            "traceId": "b470a9a0c9d008fbe1743d88fb2c12b6",
            "spanId": "defb35ad325dbaa3",
            "parentSpanId": "af8dd93c18e28137",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698605732780",
            "endTimeUnixNano": "1796047698605903575",
            "durationMs": 0.170795,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "b470a9a0c9d008fbe1743d88fb2c12b6",
            "spanId": "9d3551c6abe8df67",
            "parentSpanId": "af8dd93c18e28137",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698606159588",
            "endTimeUnixNano": "1796047698606241820",
            "durationMs": 0.082232,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n          SELECT t.payload_json, p.workspace_root AS \"workspaceRoot\"\n          FROM orchestration_v2_projection_threads t\n          JOIN projection_projects p ON p.project_id = t.project_id\n         \u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.026,
              "db.client.connection.wait_time_ms": 0.038257
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "BEGIN",
            "traceId": "b470a9a0c9d008fbe1743d88fb2c12b6",
            "spanId": "4dc71ada48f626af",
            "parentSpanId": "ac9e5e9d4d22131e",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698606340137",
            "endTimeUnixNano": "1796047698606376241",
            "durationMs": 0.036104,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "BEGIN"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "b470a9a0c9d008fbe1743d88fb2c12b6",
            "spanId": "d4c9811bbacd140b",
            "parentSpanId": "3cef327c5ff2f818",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698606460046",
            "endTimeUnixNano": "1796047698606517012",
            "durationMs": 0.056966,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n            SELECT\n              t.thread_id,\n              t.payload_json,\n              t.fork_run_ids_json,\n              CASE\n                WHEN json_extract(t.payload_json, '$.forkedFrom.type'\u2026[truncated]",
              "db.client.connection.wait_time_ms": 0.009415
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "b470a9a0c9d008fbe1743d88fb2c12b6",
            "spanId": "d687871f5dbe6883",
            "parentSpanId": "3cef327c5ff2f818",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698606539916",
            "endTimeUnixNano": "1796047698606576871",
            "durationMs": 0.036955,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n        SELECT MAX(sequence) AS snapshot_sequence\n        FROM orchestration_events\n        WHERE application_event_version = 2\n          AND aggregate_kind = 'thread'\n      ",
              "db.client.connection.wait_time_ms": 0.005388
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readShellSnapshotRows",
            "traceId": "b470a9a0c9d008fbe1743d88fb2c12b6",
            "spanId": "3cef327c5ff2f818",
            "parentSpanId": "ac9e5e9d4d22131e",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698606394989",
            "endTimeUnixNano": "1796047698606588178",
            "durationMs": 0.193189,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "COMMIT",
            "traceId": "b470a9a0c9d008fbe1743d88fb2c12b6",
            "spanId": "e98f9f0cac64e1c0",
            "parentSpanId": "ac9e5e9d4d22131e",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698606595679",
            "endTimeUnixNano": "1796047698606617081",
            "durationMs": 0.021402,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "COMMIT"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sql.transaction",
            "traceId": "b470a9a0c9d008fbe1743d88fb2c12b6",
            "spanId": "ac9e5e9d4d22131e",
            "parentSpanId": "74c71464efce19d2",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698606295351",
            "endTimeUnixNano": "1796047698606635989",
            "durationMs": 0.340638,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.client.connection.wait_time_ms": 0.039208,
              "db.connection": "reader",
              "db.lock_wait_ms": 0.022
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.pendingBackgroundDataByThreadId",
            "traceId": "b470a9a0c9d008fbe1743d88fb2c12b6",
            "spanId": "dfda73c2eca462cf",
            "parentSpanId": "4c2fc0ad4ad73359",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698606666455",
            "endTimeUnixNano": "1796047698606670231",
            "durationMs": 0.003776,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.decodeShellSnapshot",
            "traceId": "b470a9a0c9d008fbe1743d88fb2c12b6",
            "spanId": "4c2fc0ad4ad73359",
            "parentSpanId": "74c71464efce19d2",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698606657672",
            "endTimeUnixNano": "1796047698606678032",
            "durationMs": 0.02036,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "b470a9a0c9d008fbe1743d88fb2c12b6",
            "spanId": "de532af84b156ceb",
            "parentSpanId": "c6a57b7219415e7d",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698606708768",
            "endTimeUnixNano": "1796047698606799263",
            "durationMs": 0.090495,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.022,
              "db.client.connection.wait_time_ms": 0.030285
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectStoreV2.listShells",
            "traceId": "b470a9a0c9d008fbe1743d88fb2c12b6",
            "spanId": "c6a57b7219415e7d",
            "parentSpanId": "74c71464efce19d2",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698606685313",
            "endTimeUnixNano": "1796047698606851271",
            "durationMs": 0.165958,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.readThreads",
            "traceId": "b470a9a0c9d008fbe1743d88fb2c12b6",
            "spanId": "74c71464efce19d2",
            "parentSpanId": "af8dd93c18e28137",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698606273989",
            "endTimeUnixNano": "1796047698606858161",
            "durationMs": 0.584172,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "b470a9a0c9d008fbe1743d88fb2c12b6",
            "spanId": "8bb302be8f2faba3",
            "parentSpanId": "af8dd93c18e28137",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698606878922",
            "endTimeUnixNano": "1796047698606956088",
            "durationMs": 0.077166,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.018,
              "db.client.connection.wait_time_ms": 0.02691
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "b470a9a0c9d008fbe1743d88fb2c12b6",
            "spanId": "41758cde0d61d90b",
            "parentSpanId": "210ffbc7b26f673b",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698607019532",
            "endTimeUnixNano": "1796047698607089427",
            "durationMs": 0.069895,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT DISTINCT json_extract(payload_json, '$.worktreePath') AS \"worktreePath\"\n      FROM orchestration_v2_projection_threads\n      WHERE json_extract(payload_json, '$.worktreePath') IS NOT NUL\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.03,
              "db.client.connection.wait_time_ms": 0.036805
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "b470a9a0c9d008fbe1743d88fb2c12b6",
            "spanId": "54b6ada416a6549b",
            "parentSpanId": "88e0262b8fdbef34",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698608484230",
            "endTimeUnixNano": "1796047698609580839",
            "durationMs": 1.096609,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "b470a9a0c9d008fbe1743d88fb2c12b6",
            "spanId": "88e0262b8fdbef34",
            "parentSpanId": "a7d5eb2c9aa0c627",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698608326735",
            "endTimeUnixNano": "1796047698610402837",
            "durationMs": 2.076102,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "b470a9a0c9d008fbe1743d88fb2c12b6",
            "spanId": "a7d5eb2c9aa0c627",
            "parentSpanId": "31298d4d509bc069",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698608295188",
            "endTimeUnixNano": "1796047698610597688",
            "durationMs": 2.3025,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo/packages/app",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "b470a9a0c9d008fbe1743d88fb2c12b6",
            "spanId": "31298d4d509bc069",
            "parentSpanId": "210ffbc7b26f673b",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698608276991",
            "endTimeUnixNano": "1796047698610617958",
            "durationMs": 2.340967,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "b470a9a0c9d008fbe1743d88fb2c12b6",
            "spanId": "87088e892529b6aa",
            "parentSpanId": "210ffbc7b26f673b",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698610856004",
            "endTimeUnixNano": "1796047698610892839",
            "durationMs": 0.036835,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "b470a9a0c9d008fbe1743d88fb2c12b6",
            "spanId": "4a08dd3764e3567f",
            "parentSpanId": "210ffbc7b26f673b",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698610983444",
            "endTimeUnixNano": "1796047698611005567",
            "durationMs": 0.022123,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "storageCleanup.measureWorktree",
            "traceId": "b470a9a0c9d008fbe1743d88fb2c12b6",
            "spanId": "008825cd90aa9629",
            "parentSpanId": "210ffbc7b26f673b",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698611024936",
            "endTimeUnixNano": "1796047698611582900",
            "durationMs": 0.557964,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.reportOrphanWorktrees",
            "traceId": "b470a9a0c9d008fbe1743d88fb2c12b6",
            "spanId": "210ffbc7b26f673b",
            "parentSpanId": "af8dd93c18e28137",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698607011691",
            "endTimeUnixNano": "1796047698611607146",
            "durationMs": 4.595455,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanWorktrees",
            "traceId": "b470a9a0c9d008fbe1743d88fb2c12b6",
            "spanId": "af8dd93c18e28137",
            "parentSpanId": "a71e72636c0587a0",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698605718338",
            "endTimeUnixNano": "1796047698611613836",
            "durationMs": 5.895498,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.sweep",
            "traceId": "b470a9a0c9d008fbe1743d88fb2c12b6",
            "spanId": "a71e72636c0587a0",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698605442506",
            "endTimeUnixNano": "1796047698611639514",
            "durationMs": 6.197008,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          }
        ]
      },
      {
        "run": 30,
        "warmup": false,
        "elapsedMs": 9.736716000000001,
        "nestedOrphanFound": true,
        "report": {
          "_tag": "Success",
          "value": {
            "trigger": "manual",
            "startedAt": "2026-11-30T14:08:18.612Z",
            "finishedAt": "2026-11-30T14:08:18.621Z",
            "entries": [
              {
                "kind": "worktree",
                "outcome": "kept",
                "reason": "No thread uses this worktree",
                "path": "$FIXTURE/data/worktrees/repository/replay/repo-wt",
                "projectPath": null,
                "threadId": null,
                "threadTitle": null,
                "bytes": 8192,
                "files": null
              }
            ],
            "counts": {
              "removed": 0,
              "kept": 1,
              "failed": 0
            },
            "omittedCount": 0,
            "bytesFreed": 0
          }
        },
        "spans": [
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "7b6279bc5cfc6ec56b7838dbaef09240",
            "spanId": "f74b2aa7afd8715b",
            "parentSpanId": "fdcaa18e993ccd5a",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698612332079",
            "endTimeUnixNano": "1796047698612449244",
            "durationMs": 0.117165,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      WITH RECURSIVE retained_checkpoint_threads(thread_id) AS (\n        SELECT thread_id FROM orchestration_v2_projection_threads WHERE deleted_at IS NULL\n        UNION\n        SELECT json_extract(t\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.032,
              "db.client.connection.wait_time_ms": 0.042974
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanCheckpointRefs",
            "traceId": "7b6279bc5cfc6ec56b7838dbaef09240",
            "spanId": "fdcaa18e993ccd5a",
            "parentSpanId": "e80538d8c176823d",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698612320752",
            "endTimeUnixNano": "1796047698612479609",
            "durationMs": 0.158857,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.retryLeftovers",
            "traceId": "7b6279bc5cfc6ec56b7838dbaef09240",
            "spanId": "08bedc9e9ac9eb74",
            "parentSpanId": "e80538d8c176823d",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698612495182",
            "endTimeUnixNano": "1796047698612571517",
            "durationMs": 0.076335,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveGitWorktreePath",
            "traceId": "7b6279bc5cfc6ec56b7838dbaef09240",
            "spanId": "24fc64db7cf4127c",
            "parentSpanId": "148662e9eba12688",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698612603584",
            "endTimeUnixNano": "1796047698612781921",
            "durationMs": 0.178337,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveWorktreeT3Home",
            "traceId": "7b6279bc5cfc6ec56b7838dbaef09240",
            "spanId": "148662e9eba12688",
            "parentSpanId": "f59e7f457da82235",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698612596634",
            "endTimeUnixNano": "1796047698612788581",
            "durationMs": 0.191947,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "7b6279bc5cfc6ec56b7838dbaef09240",
            "spanId": "6b6bbbdc0e255a40",
            "parentSpanId": "f59e7f457da82235",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698613036832",
            "endTimeUnixNano": "1796047698613122069",
            "durationMs": 0.085237,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n          SELECT t.payload_json, p.workspace_root AS \"workspaceRoot\"\n          FROM orchestration_v2_projection_threads t\n          JOIN projection_projects p ON p.project_id = t.project_id\n         \u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.027,
              "db.client.connection.wait_time_ms": 0.039058
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "BEGIN",
            "traceId": "7b6279bc5cfc6ec56b7838dbaef09240",
            "spanId": "272c33ec49a9a645",
            "parentSpanId": "72f9e731706850fd",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698613232324",
            "endTimeUnixNano": "1796047698613268808",
            "durationMs": 0.036484,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "BEGIN"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "7b6279bc5cfc6ec56b7838dbaef09240",
            "spanId": "960197e29c489e3b",
            "parentSpanId": "ef025387d7bb025b",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698613364762",
            "endTimeUnixNano": "1796047698613425102",
            "durationMs": 0.06034,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n            SELECT\n              t.thread_id,\n              t.payload_json,\n              t.fork_run_ids_json,\n              CASE\n                WHEN json_extract(t.payload_json, '$.forkedFrom.type'\u2026[truncated]",
              "db.client.connection.wait_time_ms": 0.010315
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "7b6279bc5cfc6ec56b7838dbaef09240",
            "spanId": "64ecfeb567e736c1",
            "parentSpanId": "ef025387d7bb025b",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698613449759",
            "endTimeUnixNano": "1796047698613484030",
            "durationMs": 0.034271,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n        SELECT MAX(sequence) AS snapshot_sequence\n        FROM orchestration_events\n        WHERE application_event_version = 2\n          AND aggregate_kind = 'thread'\n      ",
              "db.client.connection.wait_time_ms": 0.00673
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readShellSnapshotRows",
            "traceId": "7b6279bc5cfc6ec56b7838dbaef09240",
            "spanId": "ef025387d7bb025b",
            "parentSpanId": "72f9e731706850fd",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698613288688",
            "endTimeUnixNano": "1796047698613495897",
            "durationMs": 0.207209,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "COMMIT",
            "traceId": "7b6279bc5cfc6ec56b7838dbaef09240",
            "spanId": "3640bb7901dc1c9f",
            "parentSpanId": "72f9e731706850fd",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698613503469",
            "endTimeUnixNano": "1796047698613523689",
            "durationMs": 0.02022,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "COMMIT"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sql.transaction",
            "traceId": "7b6279bc5cfc6ec56b7838dbaef09240",
            "spanId": "72f9e731706850fd",
            "parentSpanId": "6a2fca8a85bef653",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698613177051",
            "endTimeUnixNano": "1796047698613542878",
            "durationMs": 0.365827,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.client.connection.wait_time_ms": 0.049604,
              "db.connection": "reader",
              "db.lock_wait_ms": 0.036
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.pendingBackgroundDataByThreadId",
            "traceId": "7b6279bc5cfc6ec56b7838dbaef09240",
            "spanId": "cedfab524f8cd587",
            "parentSpanId": "4a6bdf01bb1ca2f9",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698613574535",
            "endTimeUnixNano": "1796047698613578191",
            "durationMs": 0.003656,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.decodeShellSnapshot",
            "traceId": "7b6279bc5cfc6ec56b7838dbaef09240",
            "spanId": "4a6bdf01bb1ca2f9",
            "parentSpanId": "6a2fca8a85bef653",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698613564250",
            "endTimeUnixNano": "1796047698613585782",
            "durationMs": 0.021532,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "7b6279bc5cfc6ec56b7838dbaef09240",
            "spanId": "eb8b8cf80bf38945",
            "parentSpanId": "55dad7d63e1c09af",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698613613513",
            "endTimeUnixNano": "1796047698613699401",
            "durationMs": 0.085888,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.024,
              "db.client.connection.wait_time_ms": 0.032208
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectStoreV2.listShells",
            "traceId": "7b6279bc5cfc6ec56b7838dbaef09240",
            "spanId": "55dad7d63e1c09af",
            "parentSpanId": "6a2fca8a85bef653",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698613592502",
            "endTimeUnixNano": "1796047698613763467",
            "durationMs": 0.170965,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.readThreads",
            "traceId": "7b6279bc5cfc6ec56b7838dbaef09240",
            "spanId": "6a2fca8a85bef653",
            "parentSpanId": "f59e7f457da82235",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698613155729",
            "endTimeUnixNano": "1796047698613770778",
            "durationMs": 0.615049,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "7b6279bc5cfc6ec56b7838dbaef09240",
            "spanId": "afb7832189243df5",
            "parentSpanId": "f59e7f457da82235",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698613794554",
            "endTimeUnixNano": "1796047698613977277",
            "durationMs": 0.182723,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.02,
              "db.client.connection.wait_time_ms": 0.031026
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "7b6279bc5cfc6ec56b7838dbaef09240",
            "spanId": "504449427dea745e",
            "parentSpanId": "d91c57ff48dab3f5",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698614040922",
            "endTimeUnixNano": "1796047698614140981",
            "durationMs": 0.100059,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT DISTINCT json_extract(payload_json, '$.worktreePath') AS \"worktreePath\"\n      FROM orchestration_v2_projection_threads\n      WHERE json_extract(payload_json, '$.worktreePath') IS NOT NUL\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.033,
              "db.client.connection.wait_time_ms": 0.041211
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "7b6279bc5cfc6ec56b7838dbaef09240",
            "spanId": "8a9cf14252212f73",
            "parentSpanId": "c7914dcaf2d7f467",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698615549065",
            "endTimeUnixNano": "1796047698616929778",
            "durationMs": 1.380713,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "7b6279bc5cfc6ec56b7838dbaef09240",
            "spanId": "c7914dcaf2d7f467",
            "parentSpanId": "be31c90ea0a8a42f",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698615380283",
            "endTimeUnixNano": "1796047698617977653",
            "durationMs": 2.59737,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "7b6279bc5cfc6ec56b7838dbaef09240",
            "spanId": "be31c90ea0a8a42f",
            "parentSpanId": "be76ec24055ecd89",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698615345992",
            "endTimeUnixNano": "1796047698618156180",
            "durationMs": 2.810188,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo/packages/app",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "7b6279bc5cfc6ec56b7838dbaef09240",
            "spanId": "be76ec24055ecd89",
            "parentSpanId": "d91c57ff48dab3f5",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698615317429",
            "endTimeUnixNano": "1796047698618176510",
            "durationMs": 2.859081,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "7b6279bc5cfc6ec56b7838dbaef09240",
            "spanId": "bd36ac1437dd4071",
            "parentSpanId": "d91c57ff48dab3f5",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698618770848",
            "endTimeUnixNano": "1796047698618819751",
            "durationMs": 0.048903,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "7b6279bc5cfc6ec56b7838dbaef09240",
            "spanId": "dc512b3caa5ecfcb",
            "parentSpanId": "d91c57ff48dab3f5",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698620434634",
            "endTimeUnixNano": "1796047698620476356",
            "durationMs": 0.041722,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "storageCleanup.measureWorktree",
            "traceId": "7b6279bc5cfc6ec56b7838dbaef09240",
            "spanId": "8c093d7404ad15c9",
            "parentSpanId": "d91c57ff48dab3f5",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698620564998",
            "endTimeUnixNano": "1796047698621276231",
            "durationMs": 0.711233,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.reportOrphanWorktrees",
            "traceId": "7b6279bc5cfc6ec56b7838dbaef09240",
            "spanId": "d91c57ff48dab3f5",
            "parentSpanId": "f59e7f457da82235",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698614031468",
            "endTimeUnixNano": "1796047698621307107",
            "durationMs": 7.275639,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanWorktrees",
            "traceId": "7b6279bc5cfc6ec56b7838dbaef09240",
            "spanId": "f59e7f457da82235",
            "parentSpanId": "e80538d8c176823d",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698612581942",
            "endTimeUnixNano": "1796047698621313937",
            "durationMs": 8.731995,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.sweep",
            "traceId": "7b6279bc5cfc6ec56b7838dbaef09240",
            "spanId": "e80538d8c176823d",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698612303276",
            "endTimeUnixNano": "1796047698621341779",
            "durationMs": 9.038503,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          }
        ]
      },
      {
        "run": 31,
        "warmup": false,
        "elapsedMs": 7.749235999999996,
        "nestedOrphanFound": true,
        "report": {
          "_tag": "Success",
          "value": {
            "trigger": "manual",
            "startedAt": "2026-11-30T14:08:18.622Z",
            "finishedAt": "2026-11-30T14:08:18.629Z",
            "entries": [
              {
                "kind": "worktree",
                "outcome": "kept",
                "reason": "No thread uses this worktree",
                "path": "$FIXTURE/data/worktrees/repository/replay/repo-wt",
                "projectPath": null,
                "threadId": null,
                "threadTitle": null,
                "bytes": 8192,
                "files": null
              }
            ],
            "counts": {
              "removed": 0,
              "kept": 1,
              "failed": 0
            },
            "omittedCount": 0,
            "bytesFreed": 0
          }
        },
        "spans": [
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "b62c29e0027ac7342f94c63bc34674d5",
            "spanId": "ac3f2a69f6760d2e",
            "parentSpanId": "d559b27b3e4af898",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698622072380",
            "endTimeUnixNano": "1796047698622248994",
            "durationMs": 0.176614,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      WITH RECURSIVE retained_checkpoint_threads(thread_id) AS (\n        SELECT thread_id FROM orchestration_v2_projection_threads WHERE deleted_at IS NULL\n        UNION\n        SELECT json_extract(t\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.055,
              "db.client.connection.wait_time_ms": 0.074091
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanCheckpointRefs",
            "traceId": "b62c29e0027ac7342f94c63bc34674d5",
            "spanId": "d559b27b3e4af898",
            "parentSpanId": "a76f2dbf2df1fd95",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698622063617",
            "endTimeUnixNano": "1796047698622293841",
            "durationMs": 0.230224,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.retryLeftovers",
            "traceId": "b62c29e0027ac7342f94c63bc34674d5",
            "spanId": "2031ec7a3dd81057",
            "parentSpanId": "a76f2dbf2df1fd95",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698622312309",
            "endTimeUnixNano": "1796047698622373029",
            "durationMs": 0.06072,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveGitWorktreePath",
            "traceId": "b62c29e0027ac7342f94c63bc34674d5",
            "spanId": "6686d3ccb97318c9",
            "parentSpanId": "dd6833a2195a6eac",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698622416975",
            "endTimeUnixNano": "1796047698622602392",
            "durationMs": 0.185417,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveWorktreeT3Home",
            "traceId": "b62c29e0027ac7342f94c63bc34674d5",
            "spanId": "dd6833a2195a6eac",
            "parentSpanId": "8c10bb1c168f206f",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698622410545",
            "endTimeUnixNano": "1796047698622610294",
            "durationMs": 0.199749,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "b62c29e0027ac7342f94c63bc34674d5",
            "spanId": "6a89082f2f1490fb",
            "parentSpanId": "8c10bb1c168f206f",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698622862220",
            "endTimeUnixNano": "1796047698622975770",
            "durationMs": 0.11355,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n          SELECT t.payload_json, p.workspace_root AS \"workspaceRoot\"\n          FROM orchestration_v2_projection_threads t\n          JOIN projection_projects p ON p.project_id = t.project_id\n         \u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.028,
              "db.client.connection.wait_time_ms": 0.041062
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "BEGIN",
            "traceId": "b62c29e0027ac7342f94c63bc34674d5",
            "spanId": "cd08ecec48fa0144",
            "parentSpanId": "d275a60f2a2263e5",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698623079715",
            "endTimeUnixNano": "1796047698623135989",
            "durationMs": 0.056274,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "BEGIN"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "b62c29e0027ac7342f94c63bc34674d5",
            "spanId": "7dd95586b7e5160d",
            "parentSpanId": "743d37efac8860fe",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698623221036",
            "endTimeUnixNano": "1796047698623300204",
            "durationMs": 0.079168,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n            SELECT\n              t.thread_id,\n              t.payload_json,\n              t.fork_run_ids_json,\n              CASE\n                WHEN json_extract(t.payload_json, '$.forkedFrom.type'\u2026[truncated]",
              "db.client.connection.wait_time_ms": 0.010326
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "b62c29e0027ac7342f94c63bc34674d5",
            "spanId": "549783abde318a80",
            "parentSpanId": "743d37efac8860fe",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698623324471",
            "endTimeUnixNano": "1796047698623373554",
            "durationMs": 0.049083,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n        SELECT MAX(sequence) AS snapshot_sequence\n        FROM orchestration_events\n        WHERE application_event_version = 2\n          AND aggregate_kind = 'thread'\n      ",
              "db.client.connection.wait_time_ms": 0.005788
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readShellSnapshotRows",
            "traceId": "b62c29e0027ac7342f94c63bc34674d5",
            "spanId": "743d37efac8860fe",
            "parentSpanId": "d275a60f2a2263e5",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698623157331",
            "endTimeUnixNano": "1796047698623385522",
            "durationMs": 0.228191,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "COMMIT",
            "traceId": "b62c29e0027ac7342f94c63bc34674d5",
            "spanId": "6c07dda86c029fb3",
            "parentSpanId": "d275a60f2a2263e5",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698623394135",
            "endTimeUnixNano": "1796047698623431000",
            "durationMs": 0.036865,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "COMMIT"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sql.transaction",
            "traceId": "b62c29e0027ac7342f94c63bc34674d5",
            "spanId": "d275a60f2a2263e5",
            "parentSpanId": "b45a0fdf8f2e1e1b",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698623036310",
            "endTimeUnixNano": "1796047698623450629",
            "durationMs": 0.414319,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.client.connection.wait_time_ms": 0.037436,
              "db.connection": "reader",
              "db.lock_wait_ms": 0.023
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.pendingBackgroundDataByThreadId",
            "traceId": "b62c29e0027ac7342f94c63bc34674d5",
            "spanId": "d21a091e03ecd381",
            "parentSpanId": "2a5ec02b8da84462",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698623483017",
            "endTimeUnixNano": "1796047698623486943",
            "durationMs": 0.003926,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.decodeShellSnapshot",
            "traceId": "b62c29e0027ac7342f94c63bc34674d5",
            "spanId": "2a5ec02b8da84462",
            "parentSpanId": "b45a0fdf8f2e1e1b",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698623473784",
            "endTimeUnixNano": "1796047698623494645",
            "durationMs": 0.020861,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "b62c29e0027ac7342f94c63bc34674d5",
            "spanId": "0bd0c5fca4d9808a",
            "parentSpanId": "1e81b0572bbdffdd",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698623524319",
            "endTimeUnixNano": "1796047698623638900",
            "durationMs": 0.114581,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.023,
              "db.client.connection.wait_time_ms": 0.031067
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectStoreV2.listShells",
            "traceId": "b62c29e0027ac7342f94c63bc34674d5",
            "spanId": "1e81b0572bbdffdd",
            "parentSpanId": "b45a0fdf8f2e1e1b",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698623501415",
            "endTimeUnixNano": "1796047698623696276",
            "durationMs": 0.194861,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.readThreads",
            "traceId": "b62c29e0027ac7342f94c63bc34674d5",
            "spanId": "b45a0fdf8f2e1e1b",
            "parentSpanId": "8c10bb1c168f206f",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698623012965",
            "endTimeUnixNano": "1796047698623703477",
            "durationMs": 0.690512,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "b62c29e0027ac7342f94c63bc34674d5",
            "spanId": "2b5374ebccbc55d0",
            "parentSpanId": "8c10bb1c168f206f",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698623725440",
            "endTimeUnixNano": "1796047698623919380",
            "durationMs": 0.19394,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.019,
              "db.client.connection.wait_time_ms": 0.029243
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "b62c29e0027ac7342f94c63bc34674d5",
            "spanId": "85d842ac1aa5e000",
            "parentSpanId": "bedbf18c6b37910a",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698623985748",
            "endTimeUnixNano": "1796047698624070034",
            "durationMs": 0.084286,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT DISTINCT json_extract(payload_json, '$.worktreePath') AS \"worktreePath\"\n      FROM orchestration_v2_projection_threads\n      WHERE json_extract(payload_json, '$.worktreePath') IS NOT NUL\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.033,
              "db.client.connection.wait_time_ms": 0.04012
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "b62c29e0027ac7342f94c63bc34674d5",
            "spanId": "abedf0597b445e47",
            "parentSpanId": "8e55e69d94e19368",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698625503306",
            "endTimeUnixNano": "1796047698626800193",
            "durationMs": 1.296887,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "b62c29e0027ac7342f94c63bc34674d5",
            "spanId": "8e55e69d94e19368",
            "parentSpanId": "e16dc99525536d7a",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698625341804",
            "endTimeUnixNano": "1796047698627773758",
            "durationMs": 2.431954,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "b62c29e0027ac7342f94c63bc34674d5",
            "spanId": "e16dc99525536d7a",
            "parentSpanId": "16afd30241486b89",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698625307674",
            "endTimeUnixNano": "1796047698627998553",
            "durationMs": 2.690879,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo/packages/app",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "b62c29e0027ac7342f94c63bc34674d5",
            "spanId": "16afd30241486b89",
            "parentSpanId": "bedbf18c6b37910a",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698625289476",
            "endTimeUnixNano": "1796047698628020646",
            "durationMs": 2.73117,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "b62c29e0027ac7342f94c63bc34674d5",
            "spanId": "eee1c1bf10e7b939",
            "parentSpanId": "bedbf18c6b37910a",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698628300635",
            "endTimeUnixNano": "1796047698628347214",
            "durationMs": 0.046579,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "b62c29e0027ac7342f94c63bc34674d5",
            "spanId": "3473c81a668ede79",
            "parentSpanId": "bedbf18c6b37910a",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698628432912",
            "endTimeUnixNano": "1796047698628453373",
            "durationMs": 0.020461,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "storageCleanup.measureWorktree",
            "traceId": "b62c29e0027ac7342f94c63bc34674d5",
            "spanId": "1f06bb96331aca92",
            "parentSpanId": "bedbf18c6b37910a",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698628472451",
            "endTimeUnixNano": "1796047698629049754",
            "durationMs": 0.577303,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.reportOrphanWorktrees",
            "traceId": "b62c29e0027ac7342f94c63bc34674d5",
            "spanId": "bedbf18c6b37910a",
            "parentSpanId": "8c10bb1c168f206f",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698623977676",
            "endTimeUnixNano": "1796047698629075803",
            "durationMs": 5.098127,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanWorktrees",
            "traceId": "b62c29e0027ac7342f94c63bc34674d5",
            "spanId": "8c10bb1c168f206f",
            "parentSpanId": "a76f2dbf2df1fd95",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698622384166",
            "endTimeUnixNano": "1796047698629084596",
            "durationMs": 6.70043,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.sweep",
            "traceId": "b62c29e0027ac7342f94c63bc34674d5",
            "spanId": "a76f2dbf2df1fd95",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698622045140",
            "endTimeUnixNano": "1796047698629116814",
            "durationMs": 7.071674,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          }
        ]
      },
      {
        "run": 32,
        "warmup": false,
        "elapsedMs": 7.203341999999964,
        "nestedOrphanFound": true,
        "report": {
          "_tag": "Success",
          "value": {
            "trigger": "manual",
            "startedAt": "2026-11-30T14:08:18.630Z",
            "finishedAt": "2026-11-30T14:08:18.636Z",
            "entries": [
              {
                "kind": "worktree",
                "outcome": "kept",
                "reason": "No thread uses this worktree",
                "path": "$FIXTURE/data/worktrees/repository/replay/repo-wt",
                "projectPath": null,
                "threadId": null,
                "threadTitle": null,
                "bytes": 8192,
                "files": null
              }
            ],
            "counts": {
              "removed": 0,
              "kept": 1,
              "failed": 0
            },
            "omittedCount": 0,
            "bytesFreed": 0
          }
        },
        "spans": [
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "7eb5d57521cf9b60c2b16e3fe36c3d74",
            "spanId": "3ebb1bf0a012c505",
            "parentSpanId": "aacf910c21531a4b",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698629794526",
            "endTimeUnixNano": "1796047698629912122",
            "durationMs": 0.117596,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      WITH RECURSIVE retained_checkpoint_threads(thread_id) AS (\n        SELECT thread_id FROM orchestration_v2_projection_threads WHERE deleted_at IS NULL\n        UNION\n        SELECT json_extract(t\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.033,
              "db.client.connection.wait_time_ms": 0.043465
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanCheckpointRefs",
            "traceId": "7eb5d57521cf9b60c2b16e3fe36c3d74",
            "spanId": "aacf910c21531a4b",
            "parentSpanId": "51a0e3a4ad570bf9",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698629785523",
            "endTimeUnixNano": "1796047698629946113",
            "durationMs": 0.16059,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.retryLeftovers",
            "traceId": "7eb5d57521cf9b60c2b16e3fe36c3d74",
            "spanId": "5ab66a0a101d88e8",
            "parentSpanId": "51a0e3a4ad570bf9",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698629981986",
            "endTimeUnixNano": "1796047698630057249",
            "durationMs": 0.075263,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveGitWorktreePath",
            "traceId": "7eb5d57521cf9b60c2b16e3fe36c3d74",
            "spanId": "6cba0cdb7f4afaad",
            "parentSpanId": "95afa88c9492c3de",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698630091941",
            "endTimeUnixNano": "1796047698630264579",
            "durationMs": 0.172638,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveWorktreeT3Home",
            "traceId": "7eb5d57521cf9b60c2b16e3fe36c3d74",
            "spanId": "95afa88c9492c3de",
            "parentSpanId": "eec1f08cee11b59e",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698630086102",
            "endTimeUnixNano": "1796047698630271198",
            "durationMs": 0.185096,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "7eb5d57521cf9b60c2b16e3fe36c3d74",
            "spanId": "a575a8d56f9984d3",
            "parentSpanId": "eec1f08cee11b59e",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698630521843",
            "endTimeUnixNano": "1796047698630612168",
            "durationMs": 0.090325,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n          SELECT t.payload_json, p.workspace_root AS \"workspaceRoot\"\n          FROM orchestration_v2_projection_threads t\n          JOIN projection_projects p ON p.project_id = t.project_id\n         \u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.027,
              "db.client.connection.wait_time_ms": 0.038998
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "BEGIN",
            "traceId": "7eb5d57521cf9b60c2b16e3fe36c3d74",
            "spanId": "584b355cedd302f4",
            "parentSpanId": "f9dd3aac0057c0c9",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698630710665",
            "endTimeUnixNano": "1796047698630752117",
            "durationMs": 0.041452,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "BEGIN"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "7eb5d57521cf9b60c2b16e3fe36c3d74",
            "spanId": "b411d921161fb10e",
            "parentSpanId": "244e122926f9ff9d",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698630852717",
            "endTimeUnixNano": "1796047698630940328",
            "durationMs": 0.087611,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n            SELECT\n              t.thread_id,\n              t.payload_json,\n              t.fork_run_ids_json,\n              CASE\n                WHEN json_extract(t.payload_json, '$.forkedFrom.type'\u2026[truncated]",
              "db.client.connection.wait_time_ms": 0.011347
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "7eb5d57521cf9b60c2b16e3fe36c3d74",
            "spanId": "7c22b234cea2d0cf",
            "parentSpanId": "244e122926f9ff9d",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698630995581",
            "endTimeUnixNano": "1796047698631047829",
            "durationMs": 0.052248,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n        SELECT MAX(sequence) AS snapshot_sequence\n        FROM orchestration_events\n        WHERE application_event_version = 2\n          AND aggregate_kind = 'thread'\n      ",
              "db.client.connection.wait_time_ms": 0.008993
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readShellSnapshotRows",
            "traceId": "7eb5d57521cf9b60c2b16e3fe36c3d74",
            "spanId": "244e122926f9ff9d",
            "parentSpanId": "f9dd3aac0057c0c9",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698630771386",
            "endTimeUnixNano": "1796047698631061930",
            "durationMs": 0.290544,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "COMMIT",
            "traceId": "7eb5d57521cf9b60c2b16e3fe36c3d74",
            "spanId": "e7b4d2e6aff060cd",
            "parentSpanId": "f9dd3aac0057c0c9",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698631070913",
            "endTimeUnixNano": "1796047698631099827",
            "durationMs": 0.028914,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "COMMIT"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sql.transaction",
            "traceId": "7eb5d57521cf9b60c2b16e3fe36c3d74",
            "spanId": "f9dd3aac0057c0c9",
            "parentSpanId": "c8fb81fd5cbb8a05",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698630668602",
            "endTimeUnixNano": "1796047698631124684",
            "durationMs": 0.456082,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.client.connection.wait_time_ms": 0.036605,
              "db.connection": "reader",
              "db.lock_wait_ms": 0.022
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.pendingBackgroundDataByThreadId",
            "traceId": "7eb5d57521cf9b60c2b16e3fe36c3d74",
            "spanId": "14193fbf4aafac03",
            "parentSpanId": "4b819cf9bfd674c7",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698631166767",
            "endTimeUnixNano": "1796047698631170963",
            "durationMs": 0.004196,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.decodeShellSnapshot",
            "traceId": "7eb5d57521cf9b60c2b16e3fe36c3d74",
            "spanId": "4b819cf9bfd674c7",
            "parentSpanId": "c8fb81fd5cbb8a05",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698631153707",
            "endTimeUnixNano": "1796047698631180016",
            "durationMs": 0.026309,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "7eb5d57521cf9b60c2b16e3fe36c3d74",
            "spanId": "2076a61891374aa0",
            "parentSpanId": "91a988aaff42ac8e",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698631214558",
            "endTimeUnixNano": "1796047698631324732",
            "durationMs": 0.110174,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.032,
              "db.client.connection.wait_time_ms": 0.041442
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectStoreV2.listShells",
            "traceId": "7eb5d57521cf9b60c2b16e3fe36c3d74",
            "spanId": "91a988aaff42ac8e",
            "parentSpanId": "c8fb81fd5cbb8a05",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698631189761",
            "endTimeUnixNano": "1796047698631396470",
            "durationMs": 0.206709,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.readThreads",
            "traceId": "7eb5d57521cf9b60c2b16e3fe36c3d74",
            "spanId": "c8fb81fd5cbb8a05",
            "parentSpanId": "eec1f08cee11b59e",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698630646830",
            "endTimeUnixNano": "1796047698631404992",
            "durationMs": 0.758162,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "7eb5d57521cf9b60c2b16e3fe36c3d74",
            "spanId": "f77f690de3209902",
            "parentSpanId": "eec1f08cee11b59e",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698631429208",
            "endTimeUnixNano": "1796047698631532162",
            "durationMs": 0.102954,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.03,
              "db.client.connection.wait_time_ms": 0.04006
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "7eb5d57521cf9b60c2b16e3fe36c3d74",
            "spanId": "8199e5f915398571",
            "parentSpanId": "2dbd106bb4090e36",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698631596198",
            "endTimeUnixNano": "1796047698631680664",
            "durationMs": 0.084466,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT DISTINCT json_extract(payload_json, '$.worktreePath') AS \"worktreePath\"\n      FROM orchestration_v2_projection_threads\n      WHERE json_extract(payload_json, '$.worktreePath') IS NOT NUL\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.032,
              "db.client.connection.wait_time_ms": 0.038648
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "7eb5d57521cf9b60c2b16e3fe36c3d74",
            "spanId": "7368667b0b36c931",
            "parentSpanId": "69f7f75d10aade0c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698633179103",
            "endTimeUnixNano": "1796047698634304214",
            "durationMs": 1.125111,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "7eb5d57521cf9b60c2b16e3fe36c3d74",
            "spanId": "69f7f75d10aade0c",
            "parentSpanId": "63506d607ea93ed5",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698633017271",
            "endTimeUnixNano": "1796047698635188775",
            "durationMs": 2.171504,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "7eb5d57521cf9b60c2b16e3fe36c3d74",
            "spanId": "63506d607ea93ed5",
            "parentSpanId": "ddf1137551cf0315",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698632979334",
            "endTimeUnixNano": "1796047698635360261",
            "durationMs": 2.380927,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo/packages/app",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "7eb5d57521cf9b60c2b16e3fe36c3d74",
            "spanId": "ddf1137551cf0315",
            "parentSpanId": "2dbd106bb4090e36",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698632951553",
            "endTimeUnixNano": "1796047698635379841",
            "durationMs": 2.428288,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "7eb5d57521cf9b60c2b16e3fe36c3d74",
            "spanId": "b4e90bbc6d6afb88",
            "parentSpanId": "2dbd106bb4090e36",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698635613439",
            "endTimeUnixNano": "1796047698635650024",
            "durationMs": 0.036585,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "7eb5d57521cf9b60c2b16e3fe36c3d74",
            "spanId": "ed625d58dc93a149",
            "parentSpanId": "2dbd106bb4090e36",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698635731856",
            "endTimeUnixNano": "1796047698635751145",
            "durationMs": 0.019289,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "storageCleanup.measureWorktree",
            "traceId": "7eb5d57521cf9b60c2b16e3fe36c3d74",
            "spanId": "225d6ea9b17c912b",
            "parentSpanId": "2dbd106bb4090e36",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698635769893",
            "endTimeUnixNano": "1796047698636285494",
            "durationMs": 0.515601,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.reportOrphanWorktrees",
            "traceId": "7eb5d57521cf9b60c2b16e3fe36c3d74",
            "spanId": "2dbd106bb4090e36",
            "parentSpanId": "eec1f08cee11b59e",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698631587816",
            "endTimeUnixNano": "1796047698636309329",
            "durationMs": 4.721513,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanWorktrees",
            "traceId": "7eb5d57521cf9b60c2b16e3fe36c3d74",
            "spanId": "eec1f08cee11b59e",
            "parentSpanId": "51a0e3a4ad570bf9",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698630068926",
            "endTimeUnixNano": "1796047698636316880",
            "durationMs": 6.247954,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.sweep",
            "traceId": "7eb5d57521cf9b60c2b16e3fe36c3d74",
            "spanId": "51a0e3a4ad570bf9",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698629767947",
            "endTimeUnixNano": "1796047698636342018",
            "durationMs": 6.574071,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          }
        ]
      },
      {
        "run": 33,
        "warmup": false,
        "elapsedMs": 7.6187210000000505,
        "nestedOrphanFound": true,
        "report": {
          "_tag": "Success",
          "value": {
            "trigger": "manual",
            "startedAt": "2026-11-30T14:08:18.637Z",
            "finishedAt": "2026-11-30T14:08:18.644Z",
            "entries": [
              {
                "kind": "worktree",
                "outcome": "kept",
                "reason": "No thread uses this worktree",
                "path": "$FIXTURE/data/worktrees/repository/replay/repo-wt",
                "projectPath": null,
                "threadId": null,
                "threadTitle": null,
                "bytes": 8192,
                "files": null
              }
            ],
            "counts": {
              "removed": 0,
              "kept": 1,
              "failed": 0
            },
            "omittedCount": 0,
            "bytesFreed": 0
          }
        },
        "spans": [
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "95a12518fe6101d9998135a19ee0e818",
            "spanId": "c07239920532bad2",
            "parentSpanId": "6577a7c064b3ab3b",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698637010707",
            "endTimeUnixNano": "1796047698637123435",
            "durationMs": 0.112728,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      WITH RECURSIVE retained_checkpoint_threads(thread_id) AS (\n        SELECT thread_id FROM orchestration_v2_projection_threads WHERE deleted_at IS NULL\n        UNION\n        SELECT json_extract(t\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.031,
              "db.client.connection.wait_time_ms": 0.042684
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanCheckpointRefs",
            "traceId": "95a12518fe6101d9998135a19ee0e818",
            "spanId": "6577a7c064b3ab3b",
            "parentSpanId": "5a5f16e083afdaa9",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698637001764",
            "endTimeUnixNano": "1796047698637154171",
            "durationMs": 0.152407,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.retryLeftovers",
            "traceId": "95a12518fe6101d9998135a19ee0e818",
            "spanId": "02e3827cfc2fb1fe",
            "parentSpanId": "5a5f16e083afdaa9",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698637170806",
            "endTimeUnixNano": "1796047698637228703",
            "durationMs": 0.057897,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveGitWorktreePath",
            "traceId": "95a12518fe6101d9998135a19ee0e818",
            "spanId": "6ed47926dc09d7fd",
            "parentSpanId": "4862cb2793f4d7ae",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698637257145",
            "endTimeUnixNano": "1796047698637413228",
            "durationMs": 0.156083,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveWorktreeT3Home",
            "traceId": "95a12518fe6101d9998135a19ee0e818",
            "spanId": "4862cb2793f4d7ae",
            "parentSpanId": "58f3e53fcd09729f",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698637251406",
            "endTimeUnixNano": "1796047698637419738",
            "durationMs": 0.168332,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "95a12518fe6101d9998135a19ee0e818",
            "spanId": "4f5a5ccb72ae8802",
            "parentSpanId": "58f3e53fcd09729f",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698637647568",
            "endTimeUnixNano": "1796047698637731103",
            "durationMs": 0.083535,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n          SELECT t.payload_json, p.workspace_root AS \"workspaceRoot\"\n          FROM orchestration_v2_projection_threads t\n          JOIN projection_projects p ON p.project_id = t.project_id\n         \u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.024,
              "db.client.connection.wait_time_ms": 0.035914
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "BEGIN",
            "traceId": "95a12518fe6101d9998135a19ee0e818",
            "spanId": "ed300de441f87f90",
            "parentSpanId": "eff32dbbf27b0bd3",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698637826225",
            "endTimeUnixNano": "1796047698637866435",
            "durationMs": 0.04021,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "BEGIN"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "95a12518fe6101d9998135a19ee0e818",
            "spanId": "5eb30a03cbcfc38d",
            "parentSpanId": "ed716fce4dcd3b35",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698637948077",
            "endTimeUnixNano": "1796047698638029339",
            "durationMs": 0.081262,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n            SELECT\n              t.thread_id,\n              t.payload_json,\n              t.fork_run_ids_json,\n              CASE\n                WHEN json_extract(t.payload_json, '$.forkedFrom.type'\u2026[truncated]",
              "db.client.connection.wait_time_ms": 0.009084
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "95a12518fe6101d9998135a19ee0e818",
            "spanId": "90b79a496145e344",
            "parentSpanId": "ed716fce4dcd3b35",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698638059033",
            "endTimeUnixNano": "1796047698638099363",
            "durationMs": 0.04033,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n        SELECT MAX(sequence) AS snapshot_sequence\n        FROM orchestration_events\n        WHERE application_event_version = 2\n          AND aggregate_kind = 'thread'\n      ",
              "db.client.connection.wait_time_ms": 0.006049
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readShellSnapshotRows",
            "traceId": "95a12518fe6101d9998135a19ee0e818",
            "spanId": "ed716fce4dcd3b35",
            "parentSpanId": "eff32dbbf27b0bd3",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698637885013",
            "endTimeUnixNano": "1796047698638117130",
            "durationMs": 0.232117,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "COMMIT",
            "traceId": "95a12518fe6101d9998135a19ee0e818",
            "spanId": "0f81367dde57195f",
            "parentSpanId": "eff32dbbf27b0bd3",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698638125672",
            "endTimeUnixNano": "1796047698638156288",
            "durationMs": 0.030616,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "COMMIT"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sql.transaction",
            "traceId": "95a12518fe6101d9998135a19ee0e818",
            "spanId": "eff32dbbf27b0bd3",
            "parentSpanId": "2560cbfcf3ca3782",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698637786536",
            "endTimeUnixNano": "1796047698638175517",
            "durationMs": 0.388981,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.client.connection.wait_time_ms": 0.034401,
              "db.connection": "reader",
              "db.lock_wait_ms": 0.02
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.pendingBackgroundDataByThreadId",
            "traceId": "95a12518fe6101d9998135a19ee0e818",
            "spanId": "c61a4abb9bb9fb74",
            "parentSpanId": "a3cc825903e6c2c4",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698638206834",
            "endTimeUnixNano": "1796047698638210880",
            "durationMs": 0.004046,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.decodeShellSnapshot",
            "traceId": "95a12518fe6101d9998135a19ee0e818",
            "spanId": "a3cc825903e6c2c4",
            "parentSpanId": "2560cbfcf3ca3782",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698638197640",
            "endTimeUnixNano": "1796047698638218511",
            "durationMs": 0.020871,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "95a12518fe6101d9998135a19ee0e818",
            "spanId": "55e0af1568ffdf88",
            "parentSpanId": "3f23b0de2063190a",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698638247354",
            "endTimeUnixNano": "1796047698638338450",
            "durationMs": 0.091096,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.023,
              "db.client.connection.wait_time_ms": 0.030816
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectStoreV2.listShells",
            "traceId": "95a12518fe6101d9998135a19ee0e818",
            "spanId": "3f23b0de2063190a",
            "parentSpanId": "2560cbfcf3ca3782",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698638225281",
            "endTimeUnixNano": "1796047698638404018",
            "durationMs": 0.178737,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.readThreads",
            "traceId": "95a12518fe6101d9998135a19ee0e818",
            "spanId": "2560cbfcf3ca3782",
            "parentSpanId": "58f3e53fcd09729f",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698637763391",
            "endTimeUnixNano": "1796047698638413963",
            "durationMs": 0.650572,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "95a12518fe6101d9998135a19ee0e818",
            "spanId": "090f73dc8439e9bb",
            "parentSpanId": "58f3e53fcd09729f",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698638435876",
            "endTimeUnixNano": "1796047698638528685",
            "durationMs": 0.092809,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.029,
              "db.client.connection.wait_time_ms": 0.038377
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "95a12518fe6101d9998135a19ee0e818",
            "spanId": "16571843634849dc",
            "parentSpanId": "ac9f7fa3a15e12f1",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698638582695",
            "endTimeUnixNano": "1796047698638658829",
            "durationMs": 0.076134,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT DISTINCT json_extract(payload_json, '$.worktreePath') AS \"worktreePath\"\n      FROM orchestration_v2_projection_threads\n      WHERE json_extract(payload_json, '$.worktreePath') IS NOT NUL\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.032,
              "db.client.connection.wait_time_ms": 0.040741
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "95a12518fe6101d9998135a19ee0e818",
            "spanId": "59636eab5bd706b7",
            "parentSpanId": "61a7e5fa70459f9f",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698639981665",
            "endTimeUnixNano": "1796047698641075379",
            "durationMs": 1.093714,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "95a12518fe6101d9998135a19ee0e818",
            "spanId": "61a7e5fa70459f9f",
            "parentSpanId": "829336e2df53a942",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698639805762",
            "endTimeUnixNano": "1796047698642150796",
            "durationMs": 2.345034,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "95a12518fe6101d9998135a19ee0e818",
            "spanId": "829336e2df53a942",
            "parentSpanId": "10f45477fce44f25",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698639774596",
            "endTimeUnixNano": "1796047698642467499",
            "durationMs": 2.692903,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo/packages/app",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "95a12518fe6101d9998135a19ee0e818",
            "spanId": "10f45477fce44f25",
            "parentSpanId": "ac9f7fa3a15e12f1",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698639757000",
            "endTimeUnixNano": "1796047698642496522",
            "durationMs": 2.739522,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "95a12518fe6101d9998135a19ee0e818",
            "spanId": "8ac680f0dd68a85c",
            "parentSpanId": "ac9f7fa3a15e12f1",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698642826034",
            "endTimeUnixNano": "1796047698642890030",
            "durationMs": 0.063996,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "95a12518fe6101d9998135a19ee0e818",
            "spanId": "44fe20939b22ca78",
            "parentSpanId": "ac9f7fa3a15e12f1",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698643000455",
            "endTimeUnixNano": "1796047698643026274",
            "durationMs": 0.025819,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "storageCleanup.measureWorktree",
            "traceId": "95a12518fe6101d9998135a19ee0e818",
            "spanId": "d760b90d0d39597e",
            "parentSpanId": "ac9f7fa3a15e12f1",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698643054656",
            "endTimeUnixNano": "1796047698643729264",
            "durationMs": 0.674608,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.reportOrphanWorktrees",
            "traceId": "95a12518fe6101d9998135a19ee0e818",
            "spanId": "ac9f7fa3a15e12f1",
            "parentSpanId": "58f3e53fcd09729f",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698638575194",
            "endTimeUnixNano": "1796047698643756895",
            "durationMs": 5.181701,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanWorktrees",
            "traceId": "95a12518fe6101d9998135a19ee0e818",
            "spanId": "58f3e53fcd09729f",
            "parentSpanId": "5a5f16e083afdaa9",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698637239208",
            "endTimeUnixNano": "1796047698643766429",
            "durationMs": 6.527221,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.sweep",
            "traceId": "95a12518fe6101d9998135a19ee0e818",
            "spanId": "5a5f16e083afdaa9",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698636984307",
            "endTimeUnixNano": "1796047698643812488",
            "durationMs": 6.828181,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          }
        ]
      },
      {
        "run": 34,
        "warmup": false,
        "elapsedMs": 8.707568999999978,
        "nestedOrphanFound": true,
        "report": {
          "_tag": "Success",
          "value": {
            "trigger": "manual",
            "startedAt": "2026-11-30T14:08:18.645Z",
            "finishedAt": "2026-11-30T14:08:18.653Z",
            "entries": [
              {
                "kind": "worktree",
                "outcome": "kept",
                "reason": "No thread uses this worktree",
                "path": "$FIXTURE/data/worktrees/repository/replay/repo-wt",
                "projectPath": null,
                "threadId": null,
                "threadTitle": null,
                "bytes": 8192,
                "files": null
              }
            ],
            "counts": {
              "removed": 0,
              "kept": 1,
              "failed": 0
            },
            "omittedCount": 0,
            "bytesFreed": 0
          }
        },
        "spans": [
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "473bbf6408e1758c92a5466283460803",
            "spanId": "60105b5bde40a8d9",
            "parentSpanId": "02af981cd53463a3",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698644752733",
            "endTimeUnixNano": "1796047698644978390",
            "durationMs": 0.225657,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      WITH RECURSIVE retained_checkpoint_threads(thread_id) AS (\n        SELECT thread_id FROM orchestration_v2_projection_threads WHERE deleted_at IS NULL\n        UNION\n        SELECT json_extract(t\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.044,
              "db.client.connection.wait_time_ms": 0.063365
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanCheckpointRefs",
            "traceId": "473bbf6408e1758c92a5466283460803",
            "spanId": "02af981cd53463a3",
            "parentSpanId": "13ad868b0c9e24ff",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698644735717",
            "endTimeUnixNano": "1796047698645018119",
            "durationMs": 0.282402,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.retryLeftovers",
            "traceId": "473bbf6408e1758c92a5466283460803",
            "spanId": "b79f5c9512bed8b2",
            "parentSpanId": "13ad868b0c9e24ff",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698645043487",
            "endTimeUnixNano": "1796047698645135004",
            "durationMs": 0.091517,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveGitWorktreePath",
            "traceId": "473bbf6408e1758c92a5466283460803",
            "spanId": "4db09f4508a7d462",
            "parentSpanId": "81a9e0e7745627e2",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698645171538",
            "endTimeUnixNano": "1796047698645367892",
            "durationMs": 0.196354,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveWorktreeT3Home",
            "traceId": "473bbf6408e1758c92a5466283460803",
            "spanId": "81a9e0e7745627e2",
            "parentSpanId": "08eed35cfe5ddbcf",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698645163657",
            "endTimeUnixNano": "1796047698645374151",
            "durationMs": 0.210494,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "473bbf6408e1758c92a5466283460803",
            "spanId": "bbbe99fdbdc6d21d",
            "parentSpanId": "08eed35cfe5ddbcf",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698645650404",
            "endTimeUnixNano": "1796047698645751255",
            "durationMs": 0.100851,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n          SELECT t.payload_json, p.workspace_root AS \"workspaceRoot\"\n          FROM orchestration_v2_projection_threads t\n          JOIN projection_projects p ON p.project_id = t.project_id\n         \u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.028,
              "db.client.connection.wait_time_ms": 0.042704
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "BEGIN",
            "traceId": "473bbf6408e1758c92a5466283460803",
            "spanId": "48e9e63ad2054d25",
            "parentSpanId": "8f8835e1fa3d1f19",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698645876582",
            "endTimeUnixNano": "1796047698645932726",
            "durationMs": 0.056144,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "BEGIN"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "473bbf6408e1758c92a5466283460803",
            "spanId": "9c74adeddb1427ee",
            "parentSpanId": "1742615bba85fee8",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698646040717",
            "endTimeUnixNano": "1796047698646146755",
            "durationMs": 0.106038,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n            SELECT\n              t.thread_id,\n              t.payload_json,\n              t.fork_run_ids_json,\n              CASE\n                WHEN json_extract(t.payload_json, '$.forkedFrom.type'\u2026[truncated]",
              "db.client.connection.wait_time_ms": 0.011587
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "473bbf6408e1758c92a5466283460803",
            "spanId": "cabc22c749579c99",
            "parentSpanId": "1742615bba85fee8",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698646197471",
            "endTimeUnixNano": "1796047698646253765",
            "durationMs": 0.056294,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n        SELECT MAX(sequence) AS snapshot_sequence\n        FROM orchestration_events\n        WHERE application_event_version = 2\n          AND aggregate_kind = 'thread'\n      ",
              "db.client.connection.wait_time_ms": 0.00686
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readShellSnapshotRows",
            "traceId": "473bbf6408e1758c92a5466283460803",
            "spanId": "1742615bba85fee8",
            "parentSpanId": "8f8835e1fa3d1f19",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698645956411",
            "endTimeUnixNano": "1796047698646267145",
            "durationMs": 0.310734,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "COMMIT",
            "traceId": "473bbf6408e1758c92a5466283460803",
            "spanId": "a28d82dbf5bcfeb9",
            "parentSpanId": "8f8835e1fa3d1f19",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698646278893",
            "endTimeUnixNano": "1796047698646309569",
            "durationMs": 0.030676,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "COMMIT"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sql.transaction",
            "traceId": "473bbf6408e1758c92a5466283460803",
            "spanId": "8f8835e1fa3d1f19",
            "parentSpanId": "558a2a59e22b3c82",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698645822972",
            "endTimeUnixNano": "1796047698646333424",
            "durationMs": 0.510452,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.client.connection.wait_time_ms": 0.044146,
              "db.connection": "reader",
              "db.lock_wait_ms": 0.025
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.pendingBackgroundDataByThreadId",
            "traceId": "473bbf6408e1758c92a5466283460803",
            "spanId": "19521f389ece5193",
            "parentSpanId": "77012387b4809d65",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698646373314",
            "endTimeUnixNano": "1796047698646379062",
            "durationMs": 0.005748,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.decodeShellSnapshot",
            "traceId": "473bbf6408e1758c92a5466283460803",
            "spanId": "77012387b4809d65",
            "parentSpanId": "558a2a59e22b3c82",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698646359343",
            "endTimeUnixNano": "1796047698646388286",
            "durationMs": 0.028943,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "473bbf6408e1758c92a5466283460803",
            "spanId": "d5a9621e4cd2f04f",
            "parentSpanId": "2c0a0b32f0b775c9",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698646432352",
            "endTimeUnixNano": "1796047698646568946",
            "durationMs": 0.136594,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.038,
              "db.client.connection.wait_time_ms": 0.046259
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectStoreV2.listShells",
            "traceId": "473bbf6408e1758c92a5466283460803",
            "spanId": "2c0a0b32f0b775c9",
            "parentSpanId": "558a2a59e22b3c82",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698646397270",
            "endTimeUnixNano": "1796047698646666812",
            "durationMs": 0.269542,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.readThreads",
            "traceId": "473bbf6408e1758c92a5466283460803",
            "spanId": "558a2a59e22b3c82",
            "parentSpanId": "08eed35cfe5ddbcf",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698645788590",
            "endTimeUnixNano": "1796047698646676737",
            "durationMs": 0.888147,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "473bbf6408e1758c92a5466283460803",
            "spanId": "dcfe8c29a1fdabe4",
            "parentSpanId": "08eed35cfe5ddbcf",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698646702756",
            "endTimeUnixNano": "1796047698646801644",
            "durationMs": 0.098888,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.021,
              "db.client.connection.wait_time_ms": 0.031727
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "473bbf6408e1758c92a5466283460803",
            "spanId": "bcb049e157c49cac",
            "parentSpanId": "6bcc2132175d8094",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698646856105",
            "endTimeUnixNano": "1796047698646936956",
            "durationMs": 0.080851,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT DISTINCT json_extract(payload_json, '$.worktreePath') AS \"worktreePath\"\n      FROM orchestration_v2_projection_threads\n      WHERE json_extract(payload_json, '$.worktreePath') IS NOT NUL\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.031,
              "db.client.connection.wait_time_ms": 0.038458
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "473bbf6408e1758c92a5466283460803",
            "spanId": "3ed341f37d97477a",
            "parentSpanId": "38fbdc518265a0f2",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698648519500",
            "endTimeUnixNano": "1796047698650282504",
            "durationMs": 1.763004,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "473bbf6408e1758c92a5466283460803",
            "spanId": "38fbdc518265a0f2",
            "parentSpanId": "5acc24e73f75c619",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698648283087",
            "endTimeUnixNano": "1796047698651215628",
            "durationMs": 2.932541,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "473bbf6408e1758c92a5466283460803",
            "spanId": "5acc24e73f75c619",
            "parentSpanId": "a67961a664cf25eb",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698648243838",
            "endTimeUnixNano": "1796047698651407334",
            "durationMs": 3.163496,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo/packages/app",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "473bbf6408e1758c92a5466283460803",
            "spanId": "a67961a664cf25eb",
            "parentSpanId": "6bcc2132175d8094",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698648217849",
            "endTimeUnixNano": "1796047698651430469",
            "durationMs": 3.21262,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "473bbf6408e1758c92a5466283460803",
            "spanId": "83870d7a0a6e4609",
            "parentSpanId": "6bcc2132175d8094",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698651716306",
            "endTimeUnixNano": "1796047698651756626",
            "durationMs": 0.04032,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "473bbf6408e1758c92a5466283460803",
            "spanId": "27b09ec01222db89",
            "parentSpanId": "6bcc2132175d8094",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698651850176",
            "endTimeUnixNano": "1796047698651884117",
            "durationMs": 0.033941,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "storageCleanup.measureWorktree",
            "traceId": "473bbf6408e1758c92a5466283460803",
            "spanId": "ebb79bfe31e66bd0",
            "parentSpanId": "6bcc2132175d8094",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698651905058",
            "endTimeUnixNano": "1796047698652560788",
            "durationMs": 0.65573,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.reportOrphanWorktrees",
            "traceId": "473bbf6408e1758c92a5466283460803",
            "spanId": "6bcc2132175d8094",
            "parentSpanId": "08eed35cfe5ddbcf",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698646847052",
            "endTimeUnixNano": "1796047698652589080",
            "durationMs": 5.742028,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanWorktrees",
            "traceId": "473bbf6408e1758c92a5466283460803",
            "spanId": "08eed35cfe5ddbcf",
            "parentSpanId": "13ad868b0c9e24ff",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698645147393",
            "endTimeUnixNano": "1796047698652596831",
            "durationMs": 7.449438,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.sweep",
            "traceId": "473bbf6408e1758c92a5466283460803",
            "spanId": "13ad868b0c9e24ff",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698644708236",
            "endTimeUnixNano": "1796047698652627898",
            "durationMs": 7.919662,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          }
        ]
      },
      {
        "run": 35,
        "warmup": false,
        "elapsedMs": 8.029926000000046,
        "nestedOrphanFound": true,
        "report": {
          "_tag": "Success",
          "value": {
            "trigger": "manual",
            "startedAt": "2026-11-30T14:08:18.653Z",
            "finishedAt": "2026-11-30T14:08:18.661Z",
            "entries": [
              {
                "kind": "worktree",
                "outcome": "kept",
                "reason": "No thread uses this worktree",
                "path": "$FIXTURE/data/worktrees/repository/replay/repo-wt",
                "projectPath": null,
                "threadId": null,
                "threadTitle": null,
                "bytes": 8192,
                "files": null
              }
            ],
            "counts": {
              "removed": 0,
              "kept": 1,
              "failed": 0
            },
            "omittedCount": 0,
            "bytesFreed": 0
          }
        },
        "spans": [
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "b498e3cf6d1d730affc0e6d57b787431",
            "spanId": "25c981945b3c6db5",
            "parentSpanId": "6a30c21c1d69f25d",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698653369966",
            "endTimeUnixNano": "1796047698653528093",
            "durationMs": 0.158127,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      WITH RECURSIVE retained_checkpoint_threads(thread_id) AS (\n        SELECT thread_id FROM orchestration_v2_projection_threads WHERE deleted_at IS NULL\n        UNION\n        SELECT json_extract(t\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.034,
              "db.client.connection.wait_time_ms": 0.04669
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanCheckpointRefs",
            "traceId": "b498e3cf6d1d730affc0e6d57b787431",
            "spanId": "6a30c21c1d69f25d",
            "parentSpanId": "804d3c06ccf13842",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698653361283",
            "endTimeUnixNano": "1796047698653559950",
            "durationMs": 0.198667,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.retryLeftovers",
            "traceId": "b498e3cf6d1d730affc0e6d57b787431",
            "spanId": "42ca60627869c321",
            "parentSpanId": "804d3c06ccf13842",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698653578508",
            "endTimeUnixNano": "1796047698653645057",
            "durationMs": 0.066549,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveGitWorktreePath",
            "traceId": "b498e3cf6d1d730affc0e6d57b787431",
            "spanId": "85225fb509bafc66",
            "parentSpanId": "e1009f1d4cbc179b",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698653672568",
            "endTimeUnixNano": "1796047698653859267",
            "durationMs": 0.186699,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveWorktreeT3Home",
            "traceId": "b498e3cf6d1d730affc0e6d57b787431",
            "spanId": "e1009f1d4cbc179b",
            "parentSpanId": "fe06744e485a3e4a",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698653666880",
            "endTimeUnixNano": "1796047698653865336",
            "durationMs": 0.198456,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "b498e3cf6d1d730affc0e6d57b787431",
            "spanId": "374ba659a04c3e1d",
            "parentSpanId": "fe06744e485a3e4a",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698654167147",
            "endTimeUnixNano": "1796047698654257993",
            "durationMs": 0.090846,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n          SELECT t.payload_json, p.workspace_root AS \"workspaceRoot\"\n          FROM orchestration_v2_projection_threads t\n          JOIN projection_projects p ON p.project_id = t.project_id\n         \u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.025,
              "db.client.connection.wait_time_ms": 0.037757
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "BEGIN",
            "traceId": "b498e3cf6d1d730affc0e6d57b787431",
            "spanId": "1b35ba019257c51b",
            "parentSpanId": "f826456e12b60a58",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698654358373",
            "endTimeUnixNano": "1796047698654400736",
            "durationMs": 0.042363,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "BEGIN"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "b498e3cf6d1d730affc0e6d57b787431",
            "spanId": "3a5f4c05f8950128",
            "parentSpanId": "f84b0b02a2232367",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698654484602",
            "endTimeUnixNano": "1796047698654567816",
            "durationMs": 0.083214,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n            SELECT\n              t.thread_id,\n              t.payload_json,\n              t.fork_run_ids_json,\n              CASE\n                WHEN json_extract(t.payload_json, '$.forkedFrom.type'\u2026[truncated]",
              "db.client.connection.wait_time_ms": 0.011036
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "b498e3cf6d1d730affc0e6d57b787431",
            "spanId": "8431a26c3d9ec06c",
            "parentSpanId": "f84b0b02a2232367",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698654598522",
            "endTimeUnixNano": "1796047698654642167",
            "durationMs": 0.043645,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n        SELECT MAX(sequence) AS snapshot_sequence\n        FROM orchestration_events\n        WHERE application_event_version = 2\n          AND aggregate_kind = 'thread'\n      ",
              "db.client.connection.wait_time_ms": 0.005538
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readShellSnapshotRows",
            "traceId": "b498e3cf6d1d730affc0e6d57b787431",
            "spanId": "f84b0b02a2232367",
            "parentSpanId": "f826456e12b60a58",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698654420496",
            "endTimeUnixNano": "1796047698654654045",
            "durationMs": 0.233549,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "COMMIT",
            "traceId": "b498e3cf6d1d730affc0e6d57b787431",
            "spanId": "0dee1450867a829c",
            "parentSpanId": "f826456e12b60a58",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698654662217",
            "endTimeUnixNano": "1796047698654690699",
            "durationMs": 0.028482,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "COMMIT"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sql.transaction",
            "traceId": "b498e3cf6d1d730affc0e6d57b787431",
            "spanId": "f826456e12b60a58",
            "parentSpanId": "97dc512117c8a7be",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698654315609",
            "endTimeUnixNano": "1796047698654711290",
            "durationMs": 0.395681,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.client.connection.wait_time_ms": 0.036424,
              "db.connection": "reader",
              "db.lock_wait_ms": 0.021
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.pendingBackgroundDataByThreadId",
            "traceId": "b498e3cf6d1d730affc0e6d57b787431",
            "spanId": "160fa5f6d3790061",
            "parentSpanId": "04cf1329319df8e9",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698654742777",
            "endTimeUnixNano": "1796047698654747404",
            "durationMs": 0.004627,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.decodeShellSnapshot",
            "traceId": "b498e3cf6d1d730affc0e6d57b787431",
            "spanId": "04cf1329319df8e9",
            "parentSpanId": "97dc512117c8a7be",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698654733333",
            "endTimeUnixNano": "1796047698654755687",
            "durationMs": 0.022354,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "b498e3cf6d1d730affc0e6d57b787431",
            "spanId": "1398a4bced562ff9",
            "parentSpanId": "8bc7257501d55f4d",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698654789116",
            "endTimeUnixNano": "1796047698654887634",
            "durationMs": 0.098518,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.022,
              "db.client.connection.wait_time_ms": 0.029084
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectStoreV2.listShells",
            "traceId": "b498e3cf6d1d730affc0e6d57b787431",
            "spanId": "8bc7257501d55f4d",
            "parentSpanId": "97dc512117c8a7be",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698654762767",
            "endTimeUnixNano": "1796047698654942736",
            "durationMs": 0.179969,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.readThreads",
            "traceId": "b498e3cf6d1d730affc0e6d57b787431",
            "spanId": "97dc512117c8a7be",
            "parentSpanId": "fe06744e485a3e4a",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698654291914",
            "endTimeUnixNano": "1796047698654951729",
            "durationMs": 0.659815,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "b498e3cf6d1d730affc0e6d57b787431",
            "spanId": "1799978b71d0b48f",
            "parentSpanId": "fe06744e485a3e4a",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698654985890",
            "endTimeUnixNano": "1796047698655071528",
            "durationMs": 0.085638,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.019,
              "db.client.connection.wait_time_ms": 0.028303
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "b498e3cf6d1d730affc0e6d57b787431",
            "spanId": "67cd5d73c7342057",
            "parentSpanId": "19fd8280c4976547",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698655128313",
            "endTimeUnixNano": "1796047698655203225",
            "durationMs": 0.074912,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT DISTINCT json_extract(payload_json, '$.worktreePath') AS \"worktreePath\"\n      FROM orchestration_v2_projection_threads\n      WHERE json_extract(payload_json, '$.worktreePath') IS NOT NUL\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.029,
              "db.client.connection.wait_time_ms": 0.035713
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "b498e3cf6d1d730affc0e6d57b787431",
            "spanId": "0d8fae87842225e1",
            "parentSpanId": "304cc27279ea2f2e",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698656812950",
            "endTimeUnixNano": "1796047698658255876",
            "durationMs": 1.442926,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "b498e3cf6d1d730affc0e6d57b787431",
            "spanId": "304cc27279ea2f2e",
            "parentSpanId": "58b4e64a3e35d8f0",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698656640102",
            "endTimeUnixNano": "1796047698659204873",
            "durationMs": 2.564771,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "b498e3cf6d1d730affc0e6d57b787431",
            "spanId": "58b4e64a3e35d8f0",
            "parentSpanId": "6d2b0823b2676628",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698656606131",
            "endTimeUnixNano": "1796047698659401437",
            "durationMs": 2.795306,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo/packages/app",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "b498e3cf6d1d730affc0e6d57b787431",
            "spanId": "6d2b0823b2676628",
            "parentSpanId": "19fd8280c4976547",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698656586231",
            "endTimeUnixNano": "1796047698659424862",
            "durationMs": 2.838631,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "b498e3cf6d1d730affc0e6d57b787431",
            "spanId": "def12b0ff93c293c",
            "parentSpanId": "19fd8280c4976547",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698659712371",
            "endTimeUnixNano": "1796047698659765150",
            "durationMs": 0.052779,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "b498e3cf6d1d730affc0e6d57b787431",
            "spanId": "9dc665185cbe0c8f",
            "parentSpanId": "19fd8280c4976547",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698659860643",
            "endTimeUnixNano": "1796047698659886321",
            "durationMs": 0.025678,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "storageCleanup.measureWorktree",
            "traceId": "b498e3cf6d1d730affc0e6d57b787431",
            "spanId": "e3e2d43996d2fc5f",
            "parentSpanId": "19fd8280c4976547",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698659907603",
            "endTimeUnixNano": "1796047698660584334",
            "durationMs": 0.676731,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.reportOrphanWorktrees",
            "traceId": "b498e3cf6d1d730affc0e6d57b787431",
            "spanId": "19fd8280c4976547",
            "parentSpanId": "fe06744e485a3e4a",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698655120832",
            "endTimeUnixNano": "1796047698660615941",
            "durationMs": 5.495109,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanWorktrees",
            "traceId": "b498e3cf6d1d730affc0e6d57b787431",
            "spanId": "fe06744e485a3e4a",
            "parentSpanId": "804d3c06ccf13842",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698653656745",
            "endTimeUnixNano": "1796047698660623843",
            "durationMs": 6.967098,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.sweep",
            "traceId": "b498e3cf6d1d730affc0e6d57b787431",
            "spanId": "804d3c06ccf13842",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698653341514",
            "endTimeUnixNano": "1796047698660652856",
            "durationMs": 7.311342,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          }
        ]
      },
      {
        "run": 36,
        "warmup": false,
        "elapsedMs": 8.092309999999998,
        "nestedOrphanFound": true,
        "report": {
          "_tag": "Success",
          "value": {
            "trigger": "manual",
            "startedAt": "2026-11-30T14:08:18.661Z",
            "finishedAt": "2026-11-30T14:08:18.669Z",
            "entries": [
              {
                "kind": "worktree",
                "outcome": "kept",
                "reason": "No thread uses this worktree",
                "path": "$FIXTURE/data/worktrees/repository/replay/repo-wt",
                "projectPath": null,
                "threadId": null,
                "threadTitle": null,
                "bytes": 8192,
                "files": null
              }
            ],
            "counts": {
              "removed": 0,
              "kept": 1,
              "failed": 0
            },
            "omittedCount": 0,
            "bytesFreed": 0
          }
        },
        "spans": [
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "a56f1a73a5b06db4c84f3890803d0843",
            "spanId": "81a25fcd45f8960a",
            "parentSpanId": "88b1b85d32d14bc8",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698661402496",
            "endTimeUnixNano": "1796047698661513723",
            "durationMs": 0.111227,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      WITH RECURSIVE retained_checkpoint_threads(thread_id) AS (\n        SELECT thread_id FROM orchestration_v2_projection_threads WHERE deleted_at IS NULL\n        UNION\n        SELECT json_extract(t\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.031,
              "db.client.connection.wait_time_ms": 0.041913
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanCheckpointRefs",
            "traceId": "a56f1a73a5b06db4c84f3890803d0843",
            "spanId": "88b1b85d32d14bc8",
            "parentSpanId": "0df5ad2c798f54ce",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698661393953",
            "endTimeUnixNano": "1796047698661547383",
            "durationMs": 0.15343,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.retryLeftovers",
            "traceId": "a56f1a73a5b06db4c84f3890803d0843",
            "spanId": "ca07760ce2644cbb",
            "parentSpanId": "0df5ad2c798f54ce",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698661563927",
            "endTimeUnixNano": "1796047698661626521",
            "durationMs": 0.062594,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveGitWorktreePath",
            "traceId": "a56f1a73a5b06db4c84f3890803d0843",
            "spanId": "1300d5037eaa76c4",
            "parentSpanId": "956904d929ead5e6",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698661653161",
            "endTimeUnixNano": "1796047698661851127",
            "durationMs": 0.197966,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveWorktreeT3Home",
            "traceId": "a56f1a73a5b06db4c84f3890803d0843",
            "spanId": "956904d929ead5e6",
            "parentSpanId": "742fe6b67c7be9d9",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698661647512",
            "endTimeUnixNano": "1796047698661856935",
            "durationMs": 0.209423,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "a56f1a73a5b06db4c84f3890803d0843",
            "spanId": "5015dc3962f95f1d",
            "parentSpanId": "742fe6b67c7be9d9",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698662150343",
            "endTimeUnixNano": "1796047698662237484",
            "durationMs": 0.087141,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n          SELECT t.payload_json, p.workspace_root AS \"workspaceRoot\"\n          FROM orchestration_v2_projection_threads t\n          JOIN projection_projects p ON p.project_id = t.project_id\n         \u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.025,
              "db.client.connection.wait_time_ms": 0.038979
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "BEGIN",
            "traceId": "a56f1a73a5b06db4c84f3890803d0843",
            "spanId": "14c15b2cd0a121a7",
            "parentSpanId": "14c861007fe4a771",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698662337393",
            "endTimeUnixNano": "1796047698662376181",
            "durationMs": 0.038788,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "BEGIN"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "a56f1a73a5b06db4c84f3890803d0843",
            "spanId": "27f91884f5b64fd4",
            "parentSpanId": "2dcc570417d76d8b",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698662460857",
            "endTimeUnixNano": "1796047698662527347",
            "durationMs": 0.06649,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n            SELECT\n              t.thread_id,\n              t.payload_json,\n              t.fork_run_ids_json,\n              CASE\n                WHEN json_extract(t.payload_json, '$.forkedFrom.type'\u2026[truncated]",
              "db.client.connection.wait_time_ms": 0.009875
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "a56f1a73a5b06db4c84f3890803d0843",
            "spanId": "231a235dbb8d1ae4",
            "parentSpanId": "2dcc570417d76d8b",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698662557081",
            "endTimeUnixNano": "1796047698662596490",
            "durationMs": 0.039409,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n        SELECT MAX(sequence) AS snapshot_sequence\n        FROM orchestration_events\n        WHERE application_event_version = 2\n          AND aggregate_kind = 'thread'\n      ",
              "db.client.connection.wait_time_ms": 0.007091
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readShellSnapshotRows",
            "traceId": "a56f1a73a5b06db4c84f3890803d0843",
            "spanId": "2dcc570417d76d8b",
            "parentSpanId": "14c861007fe4a771",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698662396201",
            "endTimeUnixNano": "1796047698662608268",
            "durationMs": 0.212067,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "COMMIT",
            "traceId": "a56f1a73a5b06db4c84f3890803d0843",
            "spanId": "fc4c0dc8c73d2b03",
            "parentSpanId": "14c861007fe4a771",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698662620145",
            "endTimeUnixNano": "1796047698662648648",
            "durationMs": 0.028503,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "COMMIT"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sql.transaction",
            "traceId": "a56f1a73a5b06db4c84f3890803d0843",
            "spanId": "14c861007fe4a771",
            "parentSpanId": "fdc48416942d820d",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698662292175",
            "endTimeUnixNano": "1796047698662669309",
            "durationMs": 0.377134,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.client.connection.wait_time_ms": 0.03963,
              "db.connection": "reader",
              "db.lock_wait_ms": 0.023
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.pendingBackgroundDataByThreadId",
            "traceId": "a56f1a73a5b06db4c84f3890803d0843",
            "spanId": "0f528b3c70e5ec16",
            "parentSpanId": "c08b170cb1b30a91",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698662700045",
            "endTimeUnixNano": "1796047698662704271",
            "durationMs": 0.004226,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.decodeShellSnapshot",
            "traceId": "a56f1a73a5b06db4c84f3890803d0843",
            "spanId": "c08b170cb1b30a91",
            "parentSpanId": "fdc48416942d820d",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698662690550",
            "endTimeUnixNano": "1796047698662712013",
            "durationMs": 0.021463,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "a56f1a73a5b06db4c84f3890803d0843",
            "spanId": "06d9f965ca905614",
            "parentSpanId": "f209a31f3428b259",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698662742518",
            "endTimeUnixNano": "1796047698662844981",
            "durationMs": 0.102463,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.034,
              "db.client.connection.wait_time_ms": 0.041973
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectStoreV2.listShells",
            "traceId": "a56f1a73a5b06db4c84f3890803d0843",
            "spanId": "f209a31f3428b259",
            "parentSpanId": "fdc48416942d820d",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698662719734",
            "endTimeUnixNano": "1796047698662910129",
            "durationMs": 0.190395,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.readThreads",
            "traceId": "a56f1a73a5b06db4c84f3890803d0843",
            "spanId": "fdc48416942d820d",
            "parentSpanId": "742fe6b67c7be9d9",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698662270513",
            "endTimeUnixNano": "1796047698662917940",
            "durationMs": 0.647427,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "a56f1a73a5b06db4c84f3890803d0843",
            "spanId": "ed1d66c259c91dad",
            "parentSpanId": "742fe6b67c7be9d9",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698662939973",
            "endTimeUnixNano": "1796047698663040083",
            "durationMs": 0.10011,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.031,
              "db.client.connection.wait_time_ms": 0.042043
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "a56f1a73a5b06db4c84f3890803d0843",
            "spanId": "efcd62ebd5d47281",
            "parentSpanId": "3f2022a4d8d6f419",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698663094184",
            "endTimeUnixNano": "1796047698663178169",
            "durationMs": 0.083985,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT DISTINCT json_extract(payload_json, '$.worktreePath') AS \"worktreePath\"\n      FROM orchestration_v2_projection_threads\n      WHERE json_extract(payload_json, '$.worktreePath') IS NOT NUL\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.04,
              "db.client.connection.wait_time_ms": 0.046719
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "a56f1a73a5b06db4c84f3890803d0843",
            "spanId": "d37da92aa2d1ca95",
            "parentSpanId": "d1545fdc3bcd1f55",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698664687854",
            "endTimeUnixNano": "1796047698666184841",
            "durationMs": 1.496987,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "a56f1a73a5b06db4c84f3890803d0843",
            "spanId": "d1545fdc3bcd1f55",
            "parentSpanId": "fe3e4af14949f072",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698664521456",
            "endTimeUnixNano": "1796047698667023273",
            "durationMs": 2.501817,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "a56f1a73a5b06db4c84f3890803d0843",
            "spanId": "fe3e4af14949f072",
            "parentSpanId": "0488a6407b87d168",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698664489157",
            "endTimeUnixNano": "1796047698667204965",
            "durationMs": 2.715808,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo/packages/app",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "a56f1a73a5b06db4c84f3890803d0843",
            "spanId": "0488a6407b87d168",
            "parentSpanId": "3f2022a4d8d6f419",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698664471431",
            "endTimeUnixNano": "1796047698667224664",
            "durationMs": 2.753233,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "a56f1a73a5b06db4c84f3890803d0843",
            "spanId": "83884128b2b1d45b",
            "parentSpanId": "3f2022a4d8d6f419",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698667522970",
            "endTimeUnixNano": "1796047698667569139",
            "durationMs": 0.046169,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "a56f1a73a5b06db4c84f3890803d0843",
            "spanId": "f79b2fa0d5f91cdd",
            "parentSpanId": "3f2022a4d8d6f419",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698667657260",
            "endTimeUnixNano": "1796047698667687596",
            "durationMs": 0.030336,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "storageCleanup.measureWorktree",
            "traceId": "a56f1a73a5b06db4c84f3890803d0843",
            "spanId": "2b809d45d3c814fd",
            "parentSpanId": "3f2022a4d8d6f419",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698667706804",
            "endTimeUnixNano": "1796047698668715832",
            "durationMs": 1.009028,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.reportOrphanWorktrees",
            "traceId": "a56f1a73a5b06db4c84f3890803d0843",
            "spanId": "3f2022a4d8d6f419",
            "parentSpanId": "742fe6b67c7be9d9",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698663086202",
            "endTimeUnixNano": "1796047698668749322",
            "durationMs": 5.66312,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanWorktrees",
            "traceId": "a56f1a73a5b06db4c84f3890803d0843",
            "spanId": "742fe6b67c7be9d9",
            "parentSpanId": "0df5ad2c798f54ce",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698661637297",
            "endTimeUnixNano": "1796047698668756072",
            "durationMs": 7.118775,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.sweep",
            "traceId": "a56f1a73a5b06db4c84f3890803d0843",
            "spanId": "0df5ad2c798f54ce",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698661375095",
            "endTimeUnixNano": "1796047698668782932",
            "durationMs": 7.407837,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          }
        ]
      },
      {
        "run": 37,
        "warmup": false,
        "elapsedMs": 7.054859000000022,
        "nestedOrphanFound": true,
        "report": {
          "_tag": "Success",
          "value": {
            "trigger": "manual",
            "startedAt": "2026-11-30T14:08:18.669Z",
            "finishedAt": "2026-11-30T14:08:18.676Z",
            "entries": [
              {
                "kind": "worktree",
                "outcome": "kept",
                "reason": "No thread uses this worktree",
                "path": "$FIXTURE/data/worktrees/repository/replay/repo-wt",
                "projectPath": null,
                "threadId": null,
                "threadTitle": null,
                "bytes": 8192,
                "files": null
              }
            ],
            "counts": {
              "removed": 0,
              "kept": 1,
              "failed": 0
            },
            "omittedCount": 0,
            "bytesFreed": 0
          }
        },
        "spans": [
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "5d7a60e7c928d8a3241df76b0c4c261e",
            "spanId": "4382231254b1b37b",
            "parentSpanId": "00486bb0b0fad686",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698669481976",
            "endTimeUnixNano": "1796047698669632852",
            "durationMs": 0.150876,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      WITH RECURSIVE retained_checkpoint_threads(thread_id) AS (\n        SELECT thread_id FROM orchestration_v2_projection_threads WHERE deleted_at IS NULL\n        UNION\n        SELECT json_extract(t\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.047,
              "db.client.connection.wait_time_ms": 0.060591
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanCheckpointRefs",
            "traceId": "5d7a60e7c928d8a3241df76b0c4c261e",
            "spanId": "00486bb0b0fad686",
            "parentSpanId": "570ac2f747aa6e28",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698669473714",
            "endTimeUnixNano": "1796047698669672531",
            "durationMs": 0.198817,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.retryLeftovers",
            "traceId": "5d7a60e7c928d8a3241df76b0c4c261e",
            "spanId": "c377d95c803655d2",
            "parentSpanId": "570ac2f747aa6e28",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698669691059",
            "endTimeUnixNano": "1796047698669752671",
            "durationMs": 0.061612,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveGitWorktreePath",
            "traceId": "5d7a60e7c928d8a3241df76b0c4c261e",
            "spanId": "131bd210ec84f907",
            "parentSpanId": "902366e3ab19927a",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698669779872",
            "endTimeUnixNano": "1796047698669977166",
            "durationMs": 0.197294,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveWorktreeT3Home",
            "traceId": "5d7a60e7c928d8a3241df76b0c4c261e",
            "spanId": "902366e3ab19927a",
            "parentSpanId": "663e56afc7e5f4c3",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698669774103",
            "endTimeUnixNano": "1796047698669985409",
            "durationMs": 0.211306,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "5d7a60e7c928d8a3241df76b0c4c261e",
            "spanId": "6aa6f4cb5366f50e",
            "parentSpanId": "663e56afc7e5f4c3",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698670220760",
            "endTimeUnixNano": "1796047698670313909",
            "durationMs": 0.093149,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n          SELECT t.payload_json, p.workspace_root AS \"workspaceRoot\"\n          FROM orchestration_v2_projection_threads t\n          JOIN projection_projects p ON p.project_id = t.project_id\n         \u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.026,
              "db.client.connection.wait_time_ms": 0.038257
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "BEGIN",
            "traceId": "5d7a60e7c928d8a3241df76b0c4c261e",
            "spanId": "fb981c3e2bb2f99d",
            "parentSpanId": "e3f8176a00bd9d77",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698670411064",
            "endTimeUnixNano": "1796047698670459968",
            "durationMs": 0.048904,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "BEGIN"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "5d7a60e7c928d8a3241df76b0c4c261e",
            "spanId": "f21cde66c77ad77c",
            "parentSpanId": "b278aafb683106b3",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698670545636",
            "endTimeUnixNano": "1796047698670627057",
            "durationMs": 0.081421,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n            SELECT\n              t.thread_id,\n              t.payload_json,\n              t.fork_run_ids_json,\n              CASE\n                WHEN json_extract(t.payload_json, '$.forkedFrom.type'\u2026[truncated]",
              "db.client.connection.wait_time_ms": 0.009624
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "5d7a60e7c928d8a3241df76b0c4c261e",
            "spanId": "d5950200177bbf53",
            "parentSpanId": "b278aafb683106b3",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698670657713",
            "endTimeUnixNano": "1796047698670706105",
            "durationMs": 0.048392,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n        SELECT MAX(sequence) AS snapshot_sequence\n        FROM orchestration_events\n        WHERE application_event_version = 2\n          AND aggregate_kind = 'thread'\n      ",
              "db.client.connection.wait_time_ms": 0.005889
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readShellSnapshotRows",
            "traceId": "5d7a60e7c928d8a3241df76b0c4c261e",
            "spanId": "b278aafb683106b3",
            "parentSpanId": "e3f8176a00bd9d77",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698670481440",
            "endTimeUnixNano": "1796047698670718504",
            "durationMs": 0.237064,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "COMMIT",
            "traceId": "5d7a60e7c928d8a3241df76b0c4c261e",
            "spanId": "ec77838cbd3aa84f",
            "parentSpanId": "e3f8176a00bd9d77",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698670726225",
            "endTimeUnixNano": "1796047698670756260",
            "durationMs": 0.030035,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "COMMIT"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sql.transaction",
            "traceId": "5d7a60e7c928d8a3241df76b0c4c261e",
            "spanId": "e3f8176a00bd9d77",
            "parentSpanId": "04f6e4e59fb503eb",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698670370864",
            "endTimeUnixNano": "1796047698670775168",
            "durationMs": 0.404304,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.client.connection.wait_time_ms": 0.034812,
              "db.connection": "reader",
              "db.lock_wait_ms": 0.02
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.pendingBackgroundDataByThreadId",
            "traceId": "5d7a60e7c928d8a3241df76b0c4c261e",
            "spanId": "6e8383867d8ab315",
            "parentSpanId": "d4cf0a077e495a45",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698670805344",
            "endTimeUnixNano": "1796047698670809079",
            "durationMs": 0.003735,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.decodeShellSnapshot",
            "traceId": "5d7a60e7c928d8a3241df76b0c4c261e",
            "spanId": "d4cf0a077e495a45",
            "parentSpanId": "04f6e4e59fb503eb",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698670796991",
            "endTimeUnixNano": "1796047698670816831",
            "durationMs": 0.01984,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "5d7a60e7c928d8a3241df76b0c4c261e",
            "spanId": "94bc5a88089c2bd3",
            "parentSpanId": "6d1843b4ba0a228b",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698670844752",
            "endTimeUnixNano": "1796047698671036629",
            "durationMs": 0.191877,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.022,
              "db.client.connection.wait_time_ms": 0.029685
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectStoreV2.listShells",
            "traceId": "5d7a60e7c928d8a3241df76b0c4c261e",
            "spanId": "6d1843b4ba0a228b",
            "parentSpanId": "04f6e4e59fb503eb",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698670823541",
            "endTimeUnixNano": "1796047698671091892",
            "durationMs": 0.268351,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.readThreads",
            "traceId": "5d7a60e7c928d8a3241df76b0c4c261e",
            "spanId": "04f6e4e59fb503eb",
            "parentSpanId": "663e56afc7e5f4c3",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698670347570",
            "endTimeUnixNano": "1796047698671099002",
            "durationMs": 0.751432,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "5d7a60e7c928d8a3241df76b0c4c261e",
            "spanId": "231c34a13c86ba2c",
            "parentSpanId": "663e56afc7e5f4c3",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698671127455",
            "endTimeUnixNano": "1796047698671225161",
            "durationMs": 0.097706,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.021,
              "db.client.connection.wait_time_ms": 0.030375
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "5d7a60e7c928d8a3241df76b0c4c261e",
            "spanId": "fc2aef066df7d2aa",
            "parentSpanId": "b7dae9cd39273985",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698671275756",
            "endTimeUnixNano": "1796047698671349196",
            "durationMs": 0.07344,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT DISTINCT json_extract(payload_json, '$.worktreePath') AS \"worktreePath\"\n      FROM orchestration_v2_projection_threads\n      WHERE json_extract(payload_json, '$.worktreePath') IS NOT NUL\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.028,
              "db.client.connection.wait_time_ms": 0.035223
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "5d7a60e7c928d8a3241df76b0c4c261e",
            "spanId": "02172b13e110aa26",
            "parentSpanId": "67bf87dd128aa63e",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698672676179",
            "endTimeUnixNano": "1796047698673837123",
            "durationMs": 1.160944,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "5d7a60e7c928d8a3241df76b0c4c261e",
            "spanId": "67bf87dd128aa63e",
            "parentSpanId": "420f122e78b92c55",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698672515078",
            "endTimeUnixNano": "1796047698674663457",
            "durationMs": 2.148379,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "5d7a60e7c928d8a3241df76b0c4c261e",
            "spanId": "420f122e78b92c55",
            "parentSpanId": "83d52a041aae91c5",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698672482990",
            "endTimeUnixNano": "1796047698674832009",
            "durationMs": 2.349019,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo/packages/app",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "5d7a60e7c928d8a3241df76b0c4c261e",
            "spanId": "83d52a041aae91c5",
            "parentSpanId": "b7dae9cd39273985",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698672465313",
            "endTimeUnixNano": "1796047698674851198",
            "durationMs": 2.385885,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "5d7a60e7c928d8a3241df76b0c4c261e",
            "spanId": "c62f4fbe4f70ae55",
            "parentSpanId": "b7dae9cd39273985",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698675095202",
            "endTimeUnixNano": "1796047698675141672",
            "durationMs": 0.04647,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "5d7a60e7c928d8a3241df76b0c4c261e",
            "spanId": "65a7533957893e82",
            "parentSpanId": "b7dae9cd39273985",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698675221922",
            "endTimeUnixNano": "1796047698675250935",
            "durationMs": 0.029013,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "storageCleanup.measureWorktree",
            "traceId": "5d7a60e7c928d8a3241df76b0c4c261e",
            "spanId": "d28aafc05f579ba7",
            "parentSpanId": "b7dae9cd39273985",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698675269643",
            "endTimeUnixNano": "1796047698675778383",
            "durationMs": 0.50874,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.reportOrphanWorktrees",
            "traceId": "5d7a60e7c928d8a3241df76b0c4c261e",
            "spanId": "b7dae9cd39273985",
            "parentSpanId": "663e56afc7e5f4c3",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698671268385",
            "endTimeUnixNano": "1796047698675804943",
            "durationMs": 4.536558,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanWorktrees",
            "traceId": "5d7a60e7c928d8a3241df76b0c4c261e",
            "spanId": "663e56afc7e5f4c3",
            "parentSpanId": "570ac2f747aa6e28",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698669764198",
            "endTimeUnixNano": "1796047698675811853",
            "durationMs": 6.047655,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.sweep",
            "traceId": "5d7a60e7c928d8a3241df76b0c4c261e",
            "spanId": "570ac2f747aa6e28",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698669455006",
            "endTimeUnixNano": "1796047698675838533",
            "durationMs": 6.383527,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          }
        ]
      },
      {
        "run": 38,
        "warmup": false,
        "elapsedMs": 7.269090000000006,
        "nestedOrphanFound": true,
        "report": {
          "_tag": "Success",
          "value": {
            "trigger": "manual",
            "startedAt": "2026-11-30T14:08:18.677Z",
            "finishedAt": "2026-11-30T14:08:18.683Z",
            "entries": [
              {
                "kind": "worktree",
                "outcome": "kept",
                "reason": "No thread uses this worktree",
                "path": "$FIXTURE/data/worktrees/repository/replay/repo-wt",
                "projectPath": null,
                "threadId": null,
                "threadTitle": null,
                "bytes": 8192,
                "files": null
              }
            ],
            "counts": {
              "removed": 0,
              "kept": 1,
              "failed": 0
            },
            "omittedCount": 0,
            "bytesFreed": 0
          }
        },
        "spans": [
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "3baffa127b0fc1cc12a96e45f42434b7",
            "spanId": "58dac595191d9028",
            "parentSpanId": "d086de225c11a100",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698676530657",
            "endTimeUnixNano": "1796047698676642113",
            "durationMs": 0.111456,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      WITH RECURSIVE retained_checkpoint_threads(thread_id) AS (\n        SELECT thread_id FROM orchestration_v2_projection_threads WHERE deleted_at IS NULL\n        UNION\n        SELECT json_extract(t\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.031,
              "db.client.connection.wait_time_ms": 0.041562
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanCheckpointRefs",
            "traceId": "3baffa127b0fc1cc12a96e45f42434b7",
            "spanId": "d086de225c11a100",
            "parentSpanId": "a1ff1cecd6f94684",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698676521042",
            "endTimeUnixNano": "1796047698676673811",
            "durationMs": 0.152769,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.retryLeftovers",
            "traceId": "3baffa127b0fc1cc12a96e45f42434b7",
            "spanId": "15c2c5b5dc21904a",
            "parentSpanId": "a1ff1cecd6f94684",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698676689534",
            "endTimeUnixNano": "1796047698676757385",
            "durationMs": 0.067851,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveGitWorktreePath",
            "traceId": "3baffa127b0fc1cc12a96e45f42434b7",
            "spanId": "50458292064a177f",
            "parentSpanId": "d4c889208b5e486c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698676784716",
            "endTimeUnixNano": "1796047698676941170",
            "durationMs": 0.156454,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveWorktreeT3Home",
            "traceId": "3baffa127b0fc1cc12a96e45f42434b7",
            "spanId": "d4c889208b5e486c",
            "parentSpanId": "98b92d6bfa3fad82",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698676777946",
            "endTimeUnixNano": "1796047698676947650",
            "durationMs": 0.169704,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "3baffa127b0fc1cc12a96e45f42434b7",
            "spanId": "80555c5513a1c6cc",
            "parentSpanId": "98b92d6bfa3fad82",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698677189701",
            "endTimeUnixNano": "1796047698677268539",
            "durationMs": 0.078838,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n          SELECT t.payload_json, p.workspace_root AS \"workspaceRoot\"\n          FROM orchestration_v2_projection_threads t\n          JOIN projection_projects p ON p.project_id = t.project_id\n         \u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.026,
              "db.client.connection.wait_time_ms": 0.038007
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "BEGIN",
            "traceId": "3baffa127b0fc1cc12a96e45f42434b7",
            "spanId": "bc007553c737a775",
            "parentSpanId": "1464cf80aa002ea2",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698677365093",
            "endTimeUnixNano": "1796047698677402059",
            "durationMs": 0.036966,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "BEGIN"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "3baffa127b0fc1cc12a96e45f42434b7",
            "spanId": "f9512b432abab723",
            "parentSpanId": "04d095eee0714545",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698677489239",
            "endTimeUnixNano": "1796047698677570731",
            "durationMs": 0.081492,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n            SELECT\n              t.thread_id,\n              t.payload_json,\n              t.fork_run_ids_json,\n              CASE\n                WHEN json_extract(t.payload_json, '$.forkedFrom.type'\u2026[truncated]",
              "db.client.connection.wait_time_ms": 0.009193
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "3baffa127b0fc1cc12a96e45f42434b7",
            "spanId": "3977080f31eae6bb",
            "parentSpanId": "04d095eee0714545",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698677594246",
            "endTimeUnixNano": "1796047698677631061",
            "durationMs": 0.036815,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n        SELECT MAX(sequence) AS snapshot_sequence\n        FROM orchestration_events\n        WHERE application_event_version = 2\n          AND aggregate_kind = 'thread'\n      ",
              "db.client.connection.wait_time_ms": 0.00688
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readShellSnapshotRows",
            "traceId": "3baffa127b0fc1cc12a96e45f42434b7",
            "spanId": "04d095eee0714545",
            "parentSpanId": "1464cf80aa002ea2",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698677423340",
            "endTimeUnixNano": "1796047698677643709",
            "durationMs": 0.220369,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "COMMIT",
            "traceId": "3baffa127b0fc1cc12a96e45f42434b7",
            "spanId": "8ec78593e315cef4",
            "parentSpanId": "1464cf80aa002ea2",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698677651251",
            "endTimeUnixNano": "1796047698677674856",
            "durationMs": 0.023605,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "COMMIT"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sql.transaction",
            "traceId": "3baffa127b0fc1cc12a96e45f42434b7",
            "spanId": "1464cf80aa002ea2",
            "parentSpanId": "06e868d95c1c7111",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698677324042",
            "endTimeUnixNano": "1796047698677711110",
            "durationMs": 0.387068,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.client.connection.wait_time_ms": 0.035323,
              "db.connection": "reader",
              "db.lock_wait_ms": 0.021
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.pendingBackgroundDataByThreadId",
            "traceId": "3baffa127b0fc1cc12a96e45f42434b7",
            "spanId": "ada532ada1c2096e",
            "parentSpanId": "3e9ebe0bb507a133",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698677743218",
            "endTimeUnixNano": "1796047698677747495",
            "durationMs": 0.004277,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.decodeShellSnapshot",
            "traceId": "3baffa127b0fc1cc12a96e45f42434b7",
            "spanId": "3e9ebe0bb507a133",
            "parentSpanId": "06e868d95c1c7111",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698677733774",
            "endTimeUnixNano": "1796047698677755456",
            "durationMs": 0.021682,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "3baffa127b0fc1cc12a96e45f42434b7",
            "spanId": "cd05308fdd00b228",
            "parentSpanId": "0ee6dc3193ab502d",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698677784490",
            "endTimeUnixNano": "1796047698677878000",
            "durationMs": 0.09351,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.025,
              "db.client.connection.wait_time_ms": 0.033199
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectStoreV2.listShells",
            "traceId": "3baffa127b0fc1cc12a96e45f42434b7",
            "spanId": "0ee6dc3193ab502d",
            "parentSpanId": "06e868d95c1c7111",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698677762157",
            "endTimeUnixNano": "1796047698677932090",
            "durationMs": 0.169933,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.readThreads",
            "traceId": "3baffa127b0fc1cc12a96e45f42434b7",
            "spanId": "06e868d95c1c7111",
            "parentSpanId": "98b92d6bfa3fad82",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698677301899",
            "endTimeUnixNano": "1796047698677939371",
            "durationMs": 0.637472,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "3baffa127b0fc1cc12a96e45f42434b7",
            "spanId": "44f0bb8a6b0dc8c5",
            "parentSpanId": "98b92d6bfa3fad82",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698677961725",
            "endTimeUnixNano": "1796047698678058990",
            "durationMs": 0.097265,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.02,
              "db.client.connection.wait_time_ms": 0.039609
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "3baffa127b0fc1cc12a96e45f42434b7",
            "spanId": "61b1dd18ff9fb28f",
            "parentSpanId": "a47512fe9a358242",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698678132870",
            "endTimeUnixNano": "1796047698678203986",
            "durationMs": 0.071116,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT DISTINCT json_extract(payload_json, '$.worktreePath') AS \"worktreePath\"\n      FROM orchestration_v2_projection_threads\n      WHERE json_extract(payload_json, '$.worktreePath') IS NOT NUL\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.031,
              "db.client.connection.wait_time_ms": 0.038167
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "3baffa127b0fc1cc12a96e45f42434b7",
            "spanId": "ea3d15d6744e42ac",
            "parentSpanId": "fe55aa6fdbfa144d",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698679678770",
            "endTimeUnixNano": "1796047698681020665",
            "durationMs": 1.341895,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "3baffa127b0fc1cc12a96e45f42434b7",
            "spanId": "fe55aa6fdbfa144d",
            "parentSpanId": "d5025354fb3a1211",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698679481435",
            "endTimeUnixNano": "1796047698681927119",
            "durationMs": 2.445684,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "3baffa127b0fc1cc12a96e45f42434b7",
            "spanId": "d5025354fb3a1211",
            "parentSpanId": "19dcd118d31b4fb1",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698679439723",
            "endTimeUnixNano": "1796047698682114909",
            "durationMs": 2.675186,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo/packages/app",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "3baffa127b0fc1cc12a96e45f42434b7",
            "spanId": "19dcd118d31b4fb1",
            "parentSpanId": "a47512fe9a358242",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698679416688",
            "endTimeUnixNano": "1796047698682135750",
            "durationMs": 2.719062,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "3baffa127b0fc1cc12a96e45f42434b7",
            "spanId": "629fc5b189dc5448",
            "parentSpanId": "a47512fe9a358242",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698682378213",
            "endTimeUnixNano": "1796047698682415558",
            "durationMs": 0.037345,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "3baffa127b0fc1cc12a96e45f42434b7",
            "spanId": "032ffdc7149c752c",
            "parentSpanId": "a47512fe9a358242",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698682498582",
            "endTimeUnixNano": "1796047698682520836",
            "durationMs": 0.022254,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "storageCleanup.measureWorktree",
            "traceId": "3baffa127b0fc1cc12a96e45f42434b7",
            "spanId": "a393b15c87ab0a11",
            "parentSpanId": "a47512fe9a358242",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698682539403",
            "endTimeUnixNano": "1796047698683052179",
            "durationMs": 0.512776,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.reportOrphanWorktrees",
            "traceId": "3baffa127b0fc1cc12a96e45f42434b7",
            "spanId": "a47512fe9a358242",
            "parentSpanId": "98b92d6bfa3fad82",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698678122735",
            "endTimeUnixNano": "1796047698683076376",
            "durationMs": 4.953641,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanWorktrees",
            "traceId": "3baffa127b0fc1cc12a96e45f42434b7",
            "spanId": "98b92d6bfa3fad82",
            "parentSpanId": "a1ff1cecd6f94684",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698676768322",
            "endTimeUnixNano": "1796047698683082515",
            "durationMs": 6.314193,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.sweep",
            "traceId": "3baffa127b0fc1cc12a96e45f42434b7",
            "spanId": "a1ff1cecd6f94684",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698676502815",
            "endTimeUnixNano": "1796047698683111718",
            "durationMs": 6.608903,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          }
        ]
      },
      {
        "run": 39,
        "warmup": false,
        "elapsedMs": 7.03583100000003,
        "nestedOrphanFound": true,
        "report": {
          "_tag": "Success",
          "value": {
            "trigger": "manual",
            "startedAt": "2026-11-30T14:08:18.684Z",
            "finishedAt": "2026-11-30T14:08:18.690Z",
            "entries": [
              {
                "kind": "worktree",
                "outcome": "kept",
                "reason": "No thread uses this worktree",
                "path": "$FIXTURE/data/worktrees/repository/replay/repo-wt",
                "projectPath": null,
                "threadId": null,
                "threadTitle": null,
                "bytes": 8192,
                "files": null
              }
            ],
            "counts": {
              "removed": 0,
              "kept": 1,
              "failed": 0
            },
            "omittedCount": 0,
            "bytesFreed": 0
          }
        },
        "spans": [
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "f0b4019f2d55bcb9b950b717d59f4e91",
            "spanId": "952915fcf9463c7a",
            "parentSpanId": "c365256d58e3a635",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698683804313",
            "endTimeUnixNano": "1796047698683906235",
            "durationMs": 0.101922,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      WITH RECURSIVE retained_checkpoint_threads(thread_id) AS (\n        SELECT thread_id FROM orchestration_v2_projection_threads WHERE deleted_at IS NULL\n        UNION\n        SELECT json_extract(t\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.031,
              "db.client.connection.wait_time_ms": 0.042934
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanCheckpointRefs",
            "traceId": "f0b4019f2d55bcb9b950b717d59f4e91",
            "spanId": "c365256d58e3a635",
            "parentSpanId": "a62e3b8a464af208",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698683796301",
            "endTimeUnixNano": "1796047698683936851",
            "durationMs": 0.14055,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.retryLeftovers",
            "traceId": "f0b4019f2d55bcb9b950b717d59f4e91",
            "spanId": "dbc36111febe480d",
            "parentSpanId": "a62e3b8a464af208",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698683952845",
            "endTimeUnixNano": "1796047698684024362",
            "durationMs": 0.071517,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveGitWorktreePath",
            "traceId": "f0b4019f2d55bcb9b950b717d59f4e91",
            "spanId": "37ba22c40c11e870",
            "parentSpanId": "8a4906d0640150d0",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698684051622",
            "endTimeUnixNano": "1796047698684214946",
            "durationMs": 0.163324,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveWorktreeT3Home",
            "traceId": "f0b4019f2d55bcb9b950b717d59f4e91",
            "spanId": "8a4906d0640150d0",
            "parentSpanId": "cbdb3d01bd8ed3de",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698684045684",
            "endTimeUnixNano": "1796047698684221676",
            "durationMs": 0.175992,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "f0b4019f2d55bcb9b950b717d59f4e91",
            "spanId": "d18d67f5701cdc64",
            "parentSpanId": "cbdb3d01bd8ed3de",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698684460483",
            "endTimeUnixNano": "1796047698684554193",
            "durationMs": 0.09371,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n          SELECT t.payload_json, p.workspace_root AS \"workspaceRoot\"\n          FROM orchestration_v2_projection_threads t\n          JOIN projection_projects p ON p.project_id = t.project_id\n         \u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.032,
              "db.client.connection.wait_time_ms": 0.047231
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "BEGIN",
            "traceId": "f0b4019f2d55bcb9b950b717d59f4e91",
            "spanId": "48e18eb6dd1de84c",
            "parentSpanId": "27fee342d408cfcd",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698684661253",
            "endTimeUnixNano": "1796047698684692089",
            "durationMs": 0.030836,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "BEGIN"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "f0b4019f2d55bcb9b950b717d59f4e91",
            "spanId": "d4494a3bc1553f92",
            "parentSpanId": "f60f06c8a8061d09",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698684774823",
            "endTimeUnixNano": "1796047698684833761",
            "durationMs": 0.058938,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n            SELECT\n              t.thread_id,\n              t.payload_json,\n              t.fork_run_ids_json,\n              CASE\n                WHEN json_extract(t.payload_json, '$.forkedFrom.type'\u2026[truncated]",
              "db.client.connection.wait_time_ms": 0.009604
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "f0b4019f2d55bcb9b950b717d59f4e91",
            "spanId": "8a50aadabd555229",
            "parentSpanId": "f60f06c8a8061d09",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698684861803",
            "endTimeUnixNano": "1796047698684891587",
            "durationMs": 0.029784,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n        SELECT MAX(sequence) AS snapshot_sequence\n        FROM orchestration_events\n        WHERE application_event_version = 2\n          AND aggregate_kind = 'thread'\n      ",
              "db.client.connection.wait_time_ms": 0.005117
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readShellSnapshotRows",
            "traceId": "f0b4019f2d55bcb9b950b717d59f4e91",
            "spanId": "f60f06c8a8061d09",
            "parentSpanId": "27fee342d408cfcd",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698684711178",
            "endTimeUnixNano": "1796047698684902784",
            "durationMs": 0.191606,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "COMMIT",
            "traceId": "f0b4019f2d55bcb9b950b717d59f4e91",
            "spanId": "b3c93306e15a7eb9",
            "parentSpanId": "27fee342d408cfcd",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698684910596",
            "endTimeUnixNano": "1796047698684931587",
            "durationMs": 0.020991,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "COMMIT"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sql.transaction",
            "traceId": "f0b4019f2d55bcb9b950b717d59f4e91",
            "spanId": "27fee342d408cfcd",
            "parentSpanId": "e6544f302d4a7472",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698684616827",
            "endTimeUnixNano": "1796047698684949644",
            "durationMs": 0.332817,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.client.connection.wait_time_ms": 0.038798,
              "db.connection": "reader",
              "db.lock_wait_ms": 0.022
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.pendingBackgroundDataByThreadId",
            "traceId": "f0b4019f2d55bcb9b950b717d59f4e91",
            "spanId": "751c6e1d5491b299",
            "parentSpanId": "77f4f875e3f315a5",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698684989574",
            "endTimeUnixNano": "1796047698684994912",
            "durationMs": 0.005338,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.decodeShellSnapshot",
            "traceId": "f0b4019f2d55bcb9b950b717d59f4e91",
            "spanId": "77f4f875e3f315a5",
            "parentSpanId": "e6544f302d4a7472",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698684980821",
            "endTimeUnixNano": "1796047698685003094",
            "durationMs": 0.022273,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "f0b4019f2d55bcb9b950b717d59f4e91",
            "spanId": "214008ee58b2f226",
            "parentSpanId": "3b4b9f47dba79615",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698685032328",
            "endTimeUnixNano": "1796047698685119798",
            "durationMs": 0.08747,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.023,
              "db.client.connection.wait_time_ms": 0.031216
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectStoreV2.listShells",
            "traceId": "f0b4019f2d55bcb9b950b717d59f4e91",
            "spanId": "3b4b9f47dba79615",
            "parentSpanId": "e6544f302d4a7472",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698685009594",
            "endTimeUnixNano": "1796047698685173058",
            "durationMs": 0.163464,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.readThreads",
            "traceId": "f0b4019f2d55bcb9b950b717d59f4e91",
            "spanId": "e6544f302d4a7472",
            "parentSpanId": "cbdb3d01bd8ed3de",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698684590928",
            "endTimeUnixNano": "1796047698685180860",
            "durationMs": 0.589932,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "f0b4019f2d55bcb9b950b717d59f4e91",
            "spanId": "9e3244ad608bf845",
            "parentSpanId": "cbdb3d01bd8ed3de",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698685201841",
            "endTimeUnixNano": "1796047698685277474",
            "durationMs": 0.075633,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.019,
              "db.client.connection.wait_time_ms": 0.028302
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "f0b4019f2d55bcb9b950b717d59f4e91",
            "spanId": "b95efbe555f6caa6",
            "parentSpanId": "e8abfb2d96a05d1c",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698685326838",
            "endTimeUnixNano": "1796047698685391895",
            "durationMs": 0.065057,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT DISTINCT json_extract(payload_json, '$.worktreePath') AS \"worktreePath\"\n      FROM orchestration_v2_projection_threads\n      WHERE json_extract(payload_json, '$.worktreePath') IS NOT NUL\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.03,
              "db.client.connection.wait_time_ms": 0.036704
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "f0b4019f2d55bcb9b950b717d59f4e91",
            "spanId": "6b982bae71c086b6",
            "parentSpanId": "32774932c6e5fe99",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698686753399",
            "endTimeUnixNano": "1796047698687933852",
            "durationMs": 1.180453,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "f0b4019f2d55bcb9b950b717d59f4e91",
            "spanId": "32774932c6e5fe99",
            "parentSpanId": "9d84d0ad3722fc03",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698686591106",
            "endTimeUnixNano": "1796047698688852334",
            "durationMs": 2.261228,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "f0b4019f2d55bcb9b950b717d59f4e91",
            "spanId": "9d84d0ad3722fc03",
            "parentSpanId": "a24f708b68b4be38",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698686558498",
            "endTimeUnixNano": "1796047698689066334",
            "durationMs": 2.507836,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo/packages/app",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "f0b4019f2d55bcb9b950b717d59f4e91",
            "spanId": "a24f708b68b4be38",
            "parentSpanId": "e8abfb2d96a05d1c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698686540420",
            "endTimeUnixNano": "1796047698689088066",
            "durationMs": 2.547646,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "f0b4019f2d55bcb9b950b717d59f4e91",
            "spanId": "e253c3c734739e77",
            "parentSpanId": "e8abfb2d96a05d1c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698689331110",
            "endTimeUnixNano": "1796047698689370308",
            "durationMs": 0.039198,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "f0b4019f2d55bcb9b950b717d59f4e91",
            "spanId": "5e496e1848a4b441",
            "parentSpanId": "e8abfb2d96a05d1c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698689452511",
            "endTimeUnixNano": "1796047698689471780",
            "durationMs": 0.019269,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "storageCleanup.measureWorktree",
            "traceId": "f0b4019f2d55bcb9b950b717d59f4e91",
            "spanId": "134249d1eb8e41ce",
            "parentSpanId": "e8abfb2d96a05d1c",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698689490608",
            "endTimeUnixNano": "1796047698690097985",
            "durationMs": 0.607377,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.reportOrphanWorktrees",
            "traceId": "f0b4019f2d55bcb9b950b717d59f4e91",
            "spanId": "e8abfb2d96a05d1c",
            "parentSpanId": "cbdb3d01bd8ed3de",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698685318916",
            "endTimeUnixNano": "1796047698690131035",
            "durationMs": 4.812119,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanWorktrees",
            "traceId": "f0b4019f2d55bcb9b950b717d59f4e91",
            "spanId": "cbdb3d01bd8ed3de",
            "parentSpanId": "a62e3b8a464af208",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698684035839",
            "endTimeUnixNano": "1796047698690138446",
            "durationMs": 6.102607,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.sweep",
            "traceId": "f0b4019f2d55bcb9b950b717d59f4e91",
            "spanId": "a62e3b8a464af208",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698683777924",
            "endTimeUnixNano": "1796047698690163994",
            "durationMs": 6.38607,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          }
        ]
      },
      {
        "run": 40,
        "warmup": false,
        "elapsedMs": 7.121938999999998,
        "nestedOrphanFound": true,
        "report": {
          "_tag": "Success",
          "value": {
            "trigger": "manual",
            "startedAt": "2026-11-30T14:08:18.691Z",
            "finishedAt": "2026-11-30T14:08:18.697Z",
            "entries": [
              {
                "kind": "worktree",
                "outcome": "kept",
                "reason": "No thread uses this worktree",
                "path": "$FIXTURE/data/worktrees/repository/replay/repo-wt",
                "projectPath": null,
                "threadId": null,
                "threadTitle": null,
                "bytes": 8192,
                "files": null
              }
            ],
            "counts": {
              "removed": 0,
              "kept": 1,
              "failed": 0
            },
            "omittedCount": 0,
            "bytesFreed": 0
          }
        },
        "spans": [
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "227e10b9b7d57dac913974073a6becc5",
            "spanId": "32b8c62117087ae9",
            "parentSpanId": "93fb1c1ea8bbb332",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698690873414",
            "endTimeUnixNano": "1796047698690987154",
            "durationMs": 0.11374,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      WITH RECURSIVE retained_checkpoint_threads(thread_id) AS (\n        SELECT thread_id FROM orchestration_v2_projection_threads WHERE deleted_at IS NULL\n        UNION\n        SELECT json_extract(t\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.032,
              "db.client.connection.wait_time_ms": 0.042423
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanCheckpointRefs",
            "traceId": "227e10b9b7d57dac913974073a6becc5",
            "spanId": "93fb1c1ea8bbb332",
            "parentSpanId": "50e0a0c31069f028",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698690865121",
            "endTimeUnixNano": "1796047698691020093",
            "durationMs": 0.154972,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.retryLeftovers",
            "traceId": "227e10b9b7d57dac913974073a6becc5",
            "spanId": "6d86c6f1279189e1",
            "parentSpanId": "50e0a0c31069f028",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698691037269",
            "endTimeUnixNano": "1796047698691097128",
            "durationMs": 0.059859,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveGitWorktreePath",
            "traceId": "227e10b9b7d57dac913974073a6becc5",
            "spanId": "8d3d7d239f5a67c0",
            "parentSpanId": "531cc5ab4e49eb84",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698691130027",
            "endTimeUnixNano": "1796047698691287262",
            "durationMs": 0.157235,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveWorktreeT3Home",
            "traceId": "227e10b9b7d57dac913974073a6becc5",
            "spanId": "531cc5ab4e49eb84",
            "parentSpanId": "23baecd3c45f6990",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698691124499",
            "endTimeUnixNano": "1796047698691293461",
            "durationMs": 0.168962,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "227e10b9b7d57dac913974073a6becc5",
            "spanId": "32e13a414514ec61",
            "parentSpanId": "23baecd3c45f6990",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698691509103",
            "endTimeUnixNano": "1796047698691584847",
            "durationMs": 0.075744,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n          SELECT t.payload_json, p.workspace_root AS \"workspaceRoot\"\n          FROM orchestration_v2_projection_threads t\n          JOIN projection_projects p ON p.project_id = t.project_id\n         \u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.026,
              "db.client.connection.wait_time_ms": 0.037777
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "BEGIN",
            "traceId": "227e10b9b7d57dac913974073a6becc5",
            "spanId": "fc6f5c572c64626f",
            "parentSpanId": "c059c1c09969a6d2",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698691681561",
            "endTimeUnixNano": "1796047698691716133",
            "durationMs": 0.034572,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "BEGIN"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "227e10b9b7d57dac913974073a6becc5",
            "spanId": "0c5a82b672472d72",
            "parentSpanId": "5911256ec139b4f6",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698691799918",
            "endTimeUnixNano": "1796047698691856202",
            "durationMs": 0.056284,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n            SELECT\n              t.thread_id,\n              t.payload_json,\n              t.fork_run_ids_json,\n              CASE\n                WHEN json_extract(t.payload_json, '$.forkedFrom.type'\u2026[truncated]",
              "db.client.connection.wait_time_ms": 0.010185
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "227e10b9b7d57dac913974073a6becc5",
            "spanId": "bc6e416dee750aa9",
            "parentSpanId": "5911256ec139b4f6",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698691883333",
            "endTimeUnixNano": "1796047698691915961",
            "durationMs": 0.032628,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n        SELECT MAX(sequence) AS snapshot_sequence\n        FROM orchestration_events\n        WHERE application_event_version = 2\n          AND aggregate_kind = 'thread'\n      ",
              "db.client.connection.wait_time_ms": 0.005307
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readShellSnapshotRows",
            "traceId": "227e10b9b7d57dac913974073a6becc5",
            "spanId": "5911256ec139b4f6",
            "parentSpanId": "c059c1c09969a6d2",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698691734690",
            "endTimeUnixNano": "1796047698691928260",
            "durationMs": 0.19357,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "COMMIT",
            "traceId": "227e10b9b7d57dac913974073a6becc5",
            "spanId": "4e9c0638bd346635",
            "parentSpanId": "c059c1c09969a6d2",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698691935951",
            "endTimeUnixNano": "1796047698691956161",
            "durationMs": 0.02021,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "COMMIT"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sql.transaction",
            "traceId": "227e10b9b7d57dac913974073a6becc5",
            "spanId": "c059c1c09969a6d2",
            "parentSpanId": "1eb879d73e68feb5",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698691638487",
            "endTimeUnixNano": "1796047698691984954",
            "durationMs": 0.346467,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.client.connection.wait_time_ms": 0.037446,
              "db.connection": "reader",
              "db.lock_wait_ms": 0.021
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.pendingBackgroundDataByThreadId",
            "traceId": "227e10b9b7d57dac913974073a6becc5",
            "spanId": "50e4613383e7cea8",
            "parentSpanId": "4076295bf8b2c91a",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698692016652",
            "endTimeUnixNano": "1796047698692020277",
            "durationMs": 0.003625,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.decodeShellSnapshot",
            "traceId": "227e10b9b7d57dac913974073a6becc5",
            "spanId": "4076295bf8b2c91a",
            "parentSpanId": "1eb879d73e68feb5",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698692007939",
            "endTimeUnixNano": "1796047698692027818",
            "durationMs": 0.019879,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "227e10b9b7d57dac913974073a6becc5",
            "spanId": "0e3d0e6f87bebe47",
            "parentSpanId": "7556716a3b3a2392",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698692057983",
            "endTimeUnixNano": "1796047698692147447",
            "durationMs": 0.089464,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.022,
              "db.client.connection.wait_time_ms": 0.029635
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectStoreV2.listShells",
            "traceId": "227e10b9b7d57dac913974073a6becc5",
            "spanId": "7556716a3b3a2392",
            "parentSpanId": "1eb879d73e68feb5",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698692034548",
            "endTimeUnixNano": "1796047698692199875",
            "durationMs": 0.165327,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.readThreads",
            "traceId": "227e10b9b7d57dac913974073a6becc5",
            "spanId": "1eb879d73e68feb5",
            "parentSpanId": "23baecd3c45f6990",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698691616193",
            "endTimeUnixNano": "1796047698692207196",
            "durationMs": 0.591003,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "227e10b9b7d57dac913974073a6becc5",
            "spanId": "c84f735d4eaeade4",
            "parentSpanId": "23baecd3c45f6990",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698692228939",
            "endTimeUnixNano": "1796047698692304101",
            "durationMs": 0.075162,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.018,
              "db.client.connection.wait_time_ms": 0.027251
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "227e10b9b7d57dac913974073a6becc5",
            "spanId": "80961766d5a88816",
            "parentSpanId": "eccdff34a049c004",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698692353685",
            "endTimeUnixNano": "1796047698692416008",
            "durationMs": 0.062323,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT DISTINCT json_extract(payload_json, '$.worktreePath') AS \"worktreePath\"\n      FROM orchestration_v2_projection_threads\n      WHERE json_extract(payload_json, '$.worktreePath') IS NOT NUL\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.029,
              "db.client.connection.wait_time_ms": 0.035854
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "227e10b9b7d57dac913974073a6becc5",
            "spanId": "64a847c40e7ba8ab",
            "parentSpanId": "9d3edde5ec301a6d",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698693719926",
            "endTimeUnixNano": "1796047698695081490",
            "durationMs": 1.361564,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "227e10b9b7d57dac913974073a6becc5",
            "spanId": "9d3edde5ec301a6d",
            "parentSpanId": "a7d410feb7d8758d",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698693548190",
            "endTimeUnixNano": "1796047698695937469",
            "durationMs": 2.389279,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "227e10b9b7d57dac913974073a6becc5",
            "spanId": "a7d410feb7d8758d",
            "parentSpanId": "906cc076b90ffa04",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698693501871",
            "endTimeUnixNano": "1796047698696127353",
            "durationMs": 2.625482,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo/packages/app",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "227e10b9b7d57dac913974073a6becc5",
            "spanId": "906cc076b90ffa04",
            "parentSpanId": "eccdff34a049c004",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698693483904",
            "endTimeUnixNano": "1796047698696148414",
            "durationMs": 2.66451,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "227e10b9b7d57dac913974073a6becc5",
            "spanId": "6807c3837b36bb3c",
            "parentSpanId": "eccdff34a049c004",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698696413560",
            "endTimeUnixNano": "1796047698696463675",
            "durationMs": 0.050115,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "227e10b9b7d57dac913974073a6becc5",
            "spanId": "d2b2248100d8edb3",
            "parentSpanId": "eccdff34a049c004",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698696557756",
            "endTimeUnixNano": "1796047698696584255",
            "durationMs": 0.026499,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "storageCleanup.measureWorktree",
            "traceId": "227e10b9b7d57dac913974073a6becc5",
            "spanId": "ec2d1484c561f0ac",
            "parentSpanId": "eccdff34a049c004",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698696605347",
            "endTimeUnixNano": "1796047698697241167",
            "durationMs": 0.63582,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.reportOrphanWorktrees",
            "traceId": "227e10b9b7d57dac913974073a6becc5",
            "spanId": "eccdff34a049c004",
            "parentSpanId": "23baecd3c45f6990",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698692346124",
            "endTimeUnixNano": "1796047698697272954",
            "durationMs": 4.92683,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanWorktrees",
            "traceId": "227e10b9b7d57dac913974073a6becc5",
            "spanId": "23baecd3c45f6990",
            "parentSpanId": "50e0a0c31069f028",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698691114484",
            "endTimeUnixNano": "1796047698697280876",
            "durationMs": 6.166392,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.sweep",
            "traceId": "227e10b9b7d57dac913974073a6becc5",
            "spanId": "50e0a0c31069f028",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698690847786",
            "endTimeUnixNano": "1796047698697309949",
            "durationMs": 6.462163,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          }
        ]
      },
      {
        "run": 41,
        "warmup": false,
        "elapsedMs": 10.04340400000001,
        "nestedOrphanFound": true,
        "report": {
          "_tag": "Success",
          "value": {
            "trigger": "manual",
            "startedAt": "2026-11-30T14:08:18.698Z",
            "finishedAt": "2026-11-30T14:08:18.707Z",
            "entries": [
              {
                "kind": "worktree",
                "outcome": "kept",
                "reason": "No thread uses this worktree",
                "path": "$FIXTURE/data/worktrees/repository/replay/repo-wt",
                "projectPath": null,
                "threadId": null,
                "threadTitle": null,
                "bytes": 8192,
                "files": null
              }
            ],
            "counts": {
              "removed": 0,
              "kept": 1,
              "failed": 0
            },
            "omittedCount": 0,
            "bytesFreed": 0
          }
        },
        "spans": [
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "b254b7a47d8723512d5fcabffd7d8a9a",
            "spanId": "85ce8dc058bf5333",
            "parentSpanId": "0079a9a5a6b94ab8",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698698000211",
            "endTimeUnixNano": "1796047698698102824",
            "durationMs": 0.102613,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      WITH RECURSIVE retained_checkpoint_threads(thread_id) AS (\n        SELECT thread_id FROM orchestration_v2_projection_threads WHERE deleted_at IS NULL\n        UNION\n        SELECT json_extract(t\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.034,
              "db.client.connection.wait_time_ms": 0.045087
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanCheckpointRefs",
            "traceId": "b254b7a47d8723512d5fcabffd7d8a9a",
            "spanId": "0079a9a5a6b94ab8",
            "parentSpanId": "d1b8b2a6b229383b",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698697991047",
            "endTimeUnixNano": "1796047698698141371",
            "durationMs": 0.150324,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.retryLeftovers",
            "traceId": "b254b7a47d8723512d5fcabffd7d8a9a",
            "spanId": "defb4c07439ec37d",
            "parentSpanId": "d1b8b2a6b229383b",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698698172348",
            "endTimeUnixNano": "1796047698698247059",
            "durationMs": 0.074711,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveGitWorktreePath",
            "traceId": "b254b7a47d8723512d5fcabffd7d8a9a",
            "spanId": "d447129ec416a254",
            "parentSpanId": "68aa5ab72e98d73b",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698698288331",
            "endTimeUnixNano": "1796047698698541459",
            "durationMs": 0.253128,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveWorktreeT3Home",
            "traceId": "b254b7a47d8723512d5fcabffd7d8a9a",
            "spanId": "68aa5ab72e98d73b",
            "parentSpanId": "5edb8c0d9bb8a702",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698698280439",
            "endTimeUnixNano": "1796047698698557453",
            "durationMs": 0.277014,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "b254b7a47d8723512d5fcabffd7d8a9a",
            "spanId": "33bf84887f1edf1f",
            "parentSpanId": "5edb8c0d9bb8a702",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698698905824",
            "endTimeUnixNano": "1796047698699032943",
            "durationMs": 0.127119,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n          SELECT t.payload_json, p.workspace_root AS \"workspaceRoot\"\n          FROM orchestration_v2_projection_threads t\n          JOIN projection_projects p ON p.project_id = t.project_id\n         \u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.05,
              "db.client.connection.wait_time_ms": 0.072117
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "BEGIN",
            "traceId": "b254b7a47d8723512d5fcabffd7d8a9a",
            "spanId": "1cca528308831010",
            "parentSpanId": "2d6bf2a30c639bf0",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698699157940",
            "endTimeUnixNano": "1796047698699196237",
            "durationMs": 0.038297,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "BEGIN"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "b254b7a47d8723512d5fcabffd7d8a9a",
            "spanId": "4863e7ca9b1e4155",
            "parentSpanId": "6ca558c251cafe5c",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698699282096",
            "endTimeUnixNano": "1796047698699343217",
            "durationMs": 0.061121,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n            SELECT\n              t.thread_id,\n              t.payload_json,\n              t.fork_run_ids_json,\n              CASE\n                WHEN json_extract(t.payload_json, '$.forkedFrom.type'\u2026[truncated]",
              "db.client.connection.wait_time_ms": 0.011487
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "b254b7a47d8723512d5fcabffd7d8a9a",
            "spanId": "fa709e0f08a0088a",
            "parentSpanId": "6ca558c251cafe5c",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698699372761",
            "endTimeUnixNano": "1796047698699404208",
            "durationMs": 0.031447,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n        SELECT MAX(sequence) AS snapshot_sequence\n        FROM orchestration_events\n        WHERE application_event_version = 2\n          AND aggregate_kind = 'thread'\n      ",
              "db.client.connection.wait_time_ms": 0.005298
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readShellSnapshotRows",
            "traceId": "b254b7a47d8723512d5fcabffd7d8a9a",
            "spanId": "6ca558c251cafe5c",
            "parentSpanId": "2d6bf2a30c639bf0",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698699217739",
            "endTimeUnixNano": "1796047698699417047",
            "durationMs": 0.199308,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "COMMIT",
            "traceId": "b254b7a47d8723512d5fcabffd7d8a9a",
            "spanId": "06dc15e395c2c2b1",
            "parentSpanId": "2d6bf2a30c639bf0",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698699425660",
            "endTimeUnixNano": "1796047698699446852",
            "durationMs": 0.021192,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "COMMIT"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sql.transaction",
            "traceId": "b254b7a47d8723512d5fcabffd7d8a9a",
            "spanId": "2d6bf2a30c639bf0",
            "parentSpanId": "2a0f084209a9bc3a",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698699110479",
            "endTimeUnixNano": "1796047698699466751",
            "durationMs": 0.356272,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.client.connection.wait_time_ms": 0.041542,
              "db.connection": "reader",
              "db.lock_wait_ms": 0.026
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.pendingBackgroundDataByThreadId",
            "traceId": "b254b7a47d8723512d5fcabffd7d8a9a",
            "spanId": "ec3995536374808c",
            "parentSpanId": "8708fdf04aace8a5",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698699504708",
            "endTimeUnixNano": "1796047698699510347",
            "durationMs": 0.005639,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.decodeShellSnapshot",
            "traceId": "b254b7a47d8723512d5fcabffd7d8a9a",
            "spanId": "8708fdf04aace8a5",
            "parentSpanId": "2a0f084209a9bc3a",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698699490126",
            "endTimeUnixNano": "1796047698699518208",
            "durationMs": 0.028082,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "b254b7a47d8723512d5fcabffd7d8a9a",
            "spanId": "ff6cb0fe5038370a",
            "parentSpanId": "b61346822c327ab5",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698699547933",
            "endTimeUnixNano": "1796047698701286490",
            "durationMs": 1.738557,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.024,
              "db.client.connection.wait_time_ms": 0.032178
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectStoreV2.listShells",
            "traceId": "b254b7a47d8723512d5fcabffd7d8a9a",
            "spanId": "b61346822c327ab5",
            "parentSpanId": "2a0f084209a9bc3a",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698699525049",
            "endTimeUnixNano": "1796047698701374041",
            "durationMs": 1.848992,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.readThreads",
            "traceId": "b254b7a47d8723512d5fcabffd7d8a9a",
            "spanId": "2a0f084209a9bc3a",
            "parentSpanId": "5edb8c0d9bb8a702",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698699078231",
            "endTimeUnixNano": "1796047698701422583",
            "durationMs": 2.344352,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "b254b7a47d8723512d5fcabffd7d8a9a",
            "spanId": "b10a2dbf606ef5fc",
            "parentSpanId": "5edb8c0d9bb8a702",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698701457435",
            "endTimeUnixNano": "1796047698701586739",
            "durationMs": 0.129304,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.036,
              "db.client.connection.wait_time_ms": 0.059429
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "b254b7a47d8723512d5fcabffd7d8a9a",
            "spanId": "38aaec507e9fec8d",
            "parentSpanId": "93fbc035e31570a0",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698701652457",
            "endTimeUnixNano": "1796047698701745546",
            "durationMs": 0.093089,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT DISTINCT json_extract(payload_json, '$.worktreePath') AS \"worktreePath\"\n      FROM orchestration_v2_projection_threads\n      WHERE json_extract(payload_json, '$.worktreePath') IS NOT NUL\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.045,
              "db.client.connection.wait_time_ms": 0.05389
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "b254b7a47d8723512d5fcabffd7d8a9a",
            "spanId": "5ba33145bccf6d01",
            "parentSpanId": "6289247d1f766d39",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698703424294",
            "endTimeUnixNano": "1796047698704889352",
            "durationMs": 1.465058,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "b254b7a47d8723512d5fcabffd7d8a9a",
            "spanId": "6289247d1f766d39",
            "parentSpanId": "ba7f8ecede5d9f96",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698703246849",
            "endTimeUnixNano": "1796047698705844820",
            "durationMs": 2.597971,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "b254b7a47d8723512d5fcabffd7d8a9a",
            "spanId": "ba7f8ecede5d9f96",
            "parentSpanId": "c703f4fd1905b15e",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698703206949",
            "endTimeUnixNano": "1796047698706048474",
            "durationMs": 2.841525,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo/packages/app",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "b254b7a47d8723512d5fcabffd7d8a9a",
            "spanId": "c703f4fd1905b15e",
            "parentSpanId": "93fbc035e31570a0",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698703184776",
            "endTimeUnixNano": "1796047698706072710",
            "durationMs": 2.887934,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "b254b7a47d8723512d5fcabffd7d8a9a",
            "spanId": "f251b2da9e5142ed",
            "parentSpanId": "93fbc035e31570a0",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698706363394",
            "endTimeUnixNano": "1796047698706412528",
            "durationMs": 0.049134,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "b254b7a47d8723512d5fcabffd7d8a9a",
            "spanId": "e00632279a0d08cf",
            "parentSpanId": "93fbc035e31570a0",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698706499087",
            "endTimeUnixNano": "1796047698706525937",
            "durationMs": 0.02685,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "storageCleanup.measureWorktree",
            "traceId": "b254b7a47d8723512d5fcabffd7d8a9a",
            "spanId": "01013e8a7bd9bdd2",
            "parentSpanId": "93fbc035e31570a0",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698706546438",
            "endTimeUnixNano": "1796047698707196329",
            "durationMs": 0.649891,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.reportOrphanWorktrees",
            "traceId": "b254b7a47d8723512d5fcabffd7d8a9a",
            "spanId": "93fbc035e31570a0",
            "parentSpanId": "5edb8c0d9bb8a702",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698701640809",
            "endTimeUnixNano": "1796047698707223229",
            "durationMs": 5.58242,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanWorktrees",
            "traceId": "b254b7a47d8723512d5fcabffd7d8a9a",
            "spanId": "5edb8c0d9bb8a702",
            "parentSpanId": "d1b8b2a6b229383b",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698698266338",
            "endTimeUnixNano": "1796047698707230780",
            "durationMs": 8.964442,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.sweep",
            "traceId": "b254b7a47d8723512d5fcabffd7d8a9a",
            "spanId": "d1b8b2a6b229383b",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698697957196",
            "endTimeUnixNano": "1796047698707261977",
            "durationMs": 9.304781,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          }
        ]
      },
      {
        "run": 42,
        "warmup": false,
        "elapsedMs": 7.327365999999984,
        "nestedOrphanFound": true,
        "report": {
          "_tag": "Success",
          "value": {
            "trigger": "manual",
            "startedAt": "2026-11-30T14:08:18.708Z",
            "finishedAt": "2026-11-30T14:08:18.715Z",
            "entries": [
              {
                "kind": "worktree",
                "outcome": "kept",
                "reason": "No thread uses this worktree",
                "path": "$FIXTURE/data/worktrees/repository/replay/repo-wt",
                "projectPath": null,
                "threadId": null,
                "threadTitle": null,
                "bytes": 8192,
                "files": null
              }
            ],
            "counts": {
              "removed": 0,
              "kept": 1,
              "failed": 0
            },
            "omittedCount": 0,
            "bytesFreed": 0
          }
        },
        "spans": [
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "2a47eac3ad17c4ead81b26592c72ee1c",
            "spanId": "de1974124e89a9e3",
            "parentSpanId": "f8f60748a1d5a3b9",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698708093379",
            "endTimeUnixNano": "1796047698708215481",
            "durationMs": 0.122102,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      WITH RECURSIVE retained_checkpoint_threads(thread_id) AS (\n        SELECT thread_id FROM orchestration_v2_projection_threads WHERE deleted_at IS NULL\n        UNION\n        SELECT json_extract(t\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.038,
              "db.client.connection.wait_time_ms": 0.048412
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanCheckpointRefs",
            "traceId": "2a47eac3ad17c4ead81b26592c72ee1c",
            "spanId": "f8f60748a1d5a3b9",
            "parentSpanId": "5bb39aa5e3dc6203",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698708084085",
            "endTimeUnixNano": "1796047698708247830",
            "durationMs": 0.163745,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.retryLeftovers",
            "traceId": "2a47eac3ad17c4ead81b26592c72ee1c",
            "spanId": "06e694d4de5a37d4",
            "parentSpanId": "5bb39aa5e3dc6203",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698708266037",
            "endTimeUnixNano": "1796047698708331465",
            "durationMs": 0.065428,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveGitWorktreePath",
            "traceId": "2a47eac3ad17c4ead81b26592c72ee1c",
            "spanId": "1d0d975d8f01814c",
            "parentSpanId": "c7bb67d531e8487a",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698708360999",
            "endTimeUnixNano": "1796047698708550322",
            "durationMs": 0.189323,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveWorktreeT3Home",
            "traceId": "2a47eac3ad17c4ead81b26592c72ee1c",
            "spanId": "c7bb67d531e8487a",
            "parentSpanId": "df247feedb1cd5c2",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698708355110",
            "endTimeUnixNano": "1796047698708557372",
            "durationMs": 0.202262,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "2a47eac3ad17c4ead81b26592c72ee1c",
            "spanId": "94454843ba1b2fa5",
            "parentSpanId": "df247feedb1cd5c2",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698708825883",
            "endTimeUnixNano": "1796047698708920665",
            "durationMs": 0.094782,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n          SELECT t.payload_json, p.workspace_root AS \"workspaceRoot\"\n          FROM orchestration_v2_projection_threads t\n          JOIN projection_projects p ON p.project_id = t.project_id\n         \u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.026,
              "db.client.connection.wait_time_ms": 0.038047
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "BEGIN",
            "traceId": "2a47eac3ad17c4ead81b26592c72ee1c",
            "spanId": "d78366fdcd7c1419",
            "parentSpanId": "bd0340a5063019b0",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698709097810",
            "endTimeUnixNano": "1796047698709154925",
            "durationMs": 0.057115,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "BEGIN"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "2a47eac3ad17c4ead81b26592c72ee1c",
            "spanId": "9a443645749ec584",
            "parentSpanId": "ec857865e85ffe8f",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698709250718",
            "endTimeUnixNano": "1796047698709321554",
            "durationMs": 0.070836,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n            SELECT\n              t.thread_id,\n              t.payload_json,\n              t.fork_run_ids_json,\n              CASE\n                WHEN json_extract(t.payload_json, '$.forkedFrom.type'\u2026[truncated]",
              "db.client.connection.wait_time_ms": 0.011287
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "2a47eac3ad17c4ead81b26592c72ee1c",
            "spanId": "73a97eae0ec0e79f",
            "parentSpanId": "ec857865e85ffe8f",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698709350817",
            "endTimeUnixNano": "1796047698709388364",
            "durationMs": 0.037547,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n        SELECT MAX(sequence) AS snapshot_sequence\n        FROM orchestration_events\n        WHERE application_event_version = 2\n          AND aggregate_kind = 'thread'\n      ",
              "db.client.connection.wait_time_ms": 0.007391
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readShellSnapshotRows",
            "traceId": "2a47eac3ad17c4ead81b26592c72ee1c",
            "spanId": "ec857865e85ffe8f",
            "parentSpanId": "bd0340a5063019b0",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698709183427",
            "endTimeUnixNano": "1796047698709401363",
            "durationMs": 0.217936,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "COMMIT",
            "traceId": "2a47eac3ad17c4ead81b26592c72ee1c",
            "spanId": "777889b90f07c8b5",
            "parentSpanId": "bd0340a5063019b0",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698709412179",
            "endTimeUnixNano": "1796047698709437928",
            "durationMs": 0.025749,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "COMMIT"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sql.transaction",
            "traceId": "2a47eac3ad17c4ead81b26592c72ee1c",
            "spanId": "bd0340a5063019b0",
            "parentSpanId": "807e39426f471cae",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698709015507",
            "endTimeUnixNano": "1796047698709458368",
            "durationMs": 0.442861,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.client.connection.wait_time_ms": 0.074982,
              "db.connection": "reader",
              "db.lock_wait_ms": 0.053
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.pendingBackgroundDataByThreadId",
            "traceId": "2a47eac3ad17c4ead81b26592c72ee1c",
            "spanId": "24d05beb94af8f56",
            "parentSpanId": "a9f82f9cbb8bc816",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698709494963",
            "endTimeUnixNano": "1796047698709499419",
            "durationMs": 0.004456,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.decodeShellSnapshot",
            "traceId": "2a47eac3ad17c4ead81b26592c72ee1c",
            "spanId": "a9f82f9cbb8bc816",
            "parentSpanId": "807e39426f471cae",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698709483676",
            "endTimeUnixNano": "1796047698709507431",
            "durationMs": 0.023755,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "2a47eac3ad17c4ead81b26592c72ee1c",
            "spanId": "e05c2b6adc4331ea",
            "parentSpanId": "7de5b023112b944f",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698709539369",
            "endTimeUnixNano": "1796047698709629013",
            "durationMs": 0.089644,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.026,
              "db.client.connection.wait_time_ms": 0.034412
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectStoreV2.listShells",
            "traceId": "2a47eac3ad17c4ead81b26592c72ee1c",
            "spanId": "7de5b023112b944f",
            "parentSpanId": "807e39426f471cae",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698709514742",
            "endTimeUnixNano": "1796047698709685818",
            "durationMs": 0.171076,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.readThreads",
            "traceId": "2a47eac3ad17c4ead81b26592c72ee1c",
            "spanId": "807e39426f471cae",
            "parentSpanId": "df247feedb1cd5c2",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698708977780",
            "endTimeUnixNano": "1796047698709694451",
            "durationMs": 0.716671,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "2a47eac3ad17c4ead81b26592c72ee1c",
            "spanId": "1c7022413f59ebff",
            "parentSpanId": "df247feedb1cd5c2",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698709717085",
            "endTimeUnixNano": "1796047698709796053",
            "durationMs": 0.078968,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.019,
              "db.client.connection.wait_time_ms": 0.028592
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "2a47eac3ad17c4ead81b26592c72ee1c",
            "spanId": "e830dcf4c42bd8bb",
            "parentSpanId": "44e7d1bbb7698f63",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698709848261",
            "endTimeUnixNano": "1796047698709910654",
            "durationMs": 0.062393,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT DISTINCT json_extract(payload_json, '$.worktreePath') AS \"worktreePath\"\n      FROM orchestration_v2_projection_threads\n      WHERE json_extract(payload_json, '$.worktreePath') IS NOT NUL\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.029,
              "db.client.connection.wait_time_ms": 0.035242
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "2a47eac3ad17c4ead81b26592c72ee1c",
            "spanId": "a658036f78e9ec7f",
            "parentSpanId": "8d0c4ebceca8c1b7",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698711367280",
            "endTimeUnixNano": "1796047698712522165",
            "durationMs": 1.154885,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "2a47eac3ad17c4ead81b26592c72ee1c",
            "spanId": "8d0c4ebceca8c1b7",
            "parentSpanId": "908909378469bb60",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698711200952",
            "endTimeUnixNano": "1796047698713345956",
            "durationMs": 2.145004,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "2a47eac3ad17c4ead81b26592c72ee1c",
            "spanId": "908909378469bb60",
            "parentSpanId": "870665593b0826ef",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698711165909",
            "endTimeUnixNano": "1796047698713520887",
            "durationMs": 2.354978,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo/packages/app",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "2a47eac3ad17c4ead81b26592c72ee1c",
            "spanId": "870665593b0826ef",
            "parentSpanId": "44e7d1bbb7698f63",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698711146891",
            "endTimeUnixNano": "1796047698713543050",
            "durationMs": 2.396159,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "2a47eac3ad17c4ead81b26592c72ee1c",
            "spanId": "2660e0b757debd58",
            "parentSpanId": "44e7d1bbb7698f63",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698713814766",
            "endTimeUnixNano": "1796047698713854095",
            "durationMs": 0.039329,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "2a47eac3ad17c4ead81b26592c72ee1c",
            "spanId": "3937de1029c0b490",
            "parentSpanId": "44e7d1bbb7698f63",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698713936248",
            "endTimeUnixNano": "1796047698713982046",
            "durationMs": 0.045798,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "storageCleanup.measureWorktree",
            "traceId": "2a47eac3ad17c4ead81b26592c72ee1c",
            "spanId": "9deffb9dca2d4acc",
            "parentSpanId": "44e7d1bbb7698f63",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698714009117",
            "endTimeUnixNano": "1796047698714620770",
            "durationMs": 0.611653,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.reportOrphanWorktrees",
            "traceId": "2a47eac3ad17c4ead81b26592c72ee1c",
            "spanId": "44e7d1bbb7698f63",
            "parentSpanId": "df247feedb1cd5c2",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698709840179",
            "endTimeUnixNano": "1796047698714645968",
            "durationMs": 4.805789,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanWorktrees",
            "traceId": "2a47eac3ad17c4ead81b26592c72ee1c",
            "spanId": "df247feedb1cd5c2",
            "parentSpanId": "5bb39aa5e3dc6203",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698708344224",
            "endTimeUnixNano": "1796047698714652257",
            "durationMs": 6.308033,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.sweep",
            "traceId": "2a47eac3ad17c4ead81b26592c72ee1c",
            "spanId": "5bb39aa5e3dc6203",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698708062403",
            "endTimeUnixNano": "1796047698714680850",
            "durationMs": 6.618447,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          }
        ]
      },
      {
        "run": 43,
        "warmup": false,
        "elapsedMs": 8.543182999999999,
        "nestedOrphanFound": true,
        "report": {
          "_tag": "Success",
          "value": {
            "trigger": "manual",
            "startedAt": "2026-11-30T14:08:18.715Z",
            "finishedAt": "2026-11-30T14:08:18.723Z",
            "entries": [
              {
                "kind": "worktree",
                "outcome": "kept",
                "reason": "No thread uses this worktree",
                "path": "$FIXTURE/data/worktrees/repository/replay/repo-wt",
                "projectPath": null,
                "threadId": null,
                "threadTitle": null,
                "bytes": 8192,
                "files": null
              }
            ],
            "counts": {
              "removed": 0,
              "kept": 1,
              "failed": 0
            },
            "omittedCount": 0,
            "bytesFreed": 0
          }
        },
        "spans": [
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "8bac63d8cb38dc737e5b547e8fc9e046",
            "spanId": "6e6f031857ce837b",
            "parentSpanId": "47fdcb943a28bf1c",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698715357972",
            "endTimeUnixNano": "1796047698715516358",
            "durationMs": 0.158386,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      WITH RECURSIVE retained_checkpoint_threads(thread_id) AS (\n        SELECT thread_id FROM orchestration_v2_projection_threads WHERE deleted_at IS NULL\n        UNION\n        SELECT json_extract(t\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.066,
              "db.client.connection.wait_time_ms": 0.076394
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanCheckpointRefs",
            "traceId": "8bac63d8cb38dc737e5b547e8fc9e046",
            "spanId": "47fdcb943a28bf1c",
            "parentSpanId": "ff84cfb476d24fe3",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698715349189",
            "endTimeUnixNano": "1796047698715548046",
            "durationMs": 0.198857,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.retryLeftovers",
            "traceId": "8bac63d8cb38dc737e5b547e8fc9e046",
            "spanId": "d9dfa9a02c0e3404",
            "parentSpanId": "ff84cfb476d24fe3",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698715565332",
            "endTimeUnixNano": "1796047698715624630",
            "durationMs": 0.059298,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveGitWorktreePath",
            "traceId": "8bac63d8cb38dc737e5b547e8fc9e046",
            "spanId": "88718b981fab0342",
            "parentSpanId": "138ce0d3c7f7855a",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698715651901",
            "endTimeUnixNano": "1796047698715909986",
            "durationMs": 0.258085,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveWorktreeT3Home",
            "traceId": "8bac63d8cb38dc737e5b547e8fc9e046",
            "spanId": "138ce0d3c7f7855a",
            "parentSpanId": "1478877bbe9d66a3",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698715646383",
            "endTimeUnixNano": "1796047698715930117",
            "durationMs": 0.283734,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "8bac63d8cb38dc737e5b547e8fc9e046",
            "spanId": "cbb7e499a417cc10",
            "parentSpanId": "1478877bbe9d66a3",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698716252478",
            "endTimeUnixNano": "1796047698716408511",
            "durationMs": 0.156033,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n          SELECT t.payload_json, p.workspace_root AS \"workspaceRoot\"\n          FROM orchestration_v2_projection_threads t\n          JOIN projection_projects p ON p.project_id = t.project_id\n         \u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.043,
              "db.client.connection.wait_time_ms": 0.06715
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "BEGIN",
            "traceId": "8bac63d8cb38dc737e5b547e8fc9e046",
            "spanId": "4909f1cb4b8d0a4a",
            "parentSpanId": "031257a3e6237a8d",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698716583332",
            "endTimeUnixNano": "1796047698716646717",
            "durationMs": 0.063385,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "BEGIN"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "8bac63d8cb38dc737e5b547e8fc9e046",
            "spanId": "71cda34aff94625e",
            "parentSpanId": "8cb7870da1557740",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698716793987",
            "endTimeUnixNano": "1796047698716885985",
            "durationMs": 0.091998,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n            SELECT\n              t.thread_id,\n              t.payload_json,\n              t.fork_run_ids_json,\n              CASE\n                WHEN json_extract(t.payload_json, '$.forkedFrom.type'\u2026[truncated]",
              "db.client.connection.wait_time_ms": 0.019119
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "8bac63d8cb38dc737e5b547e8fc9e046",
            "spanId": "687c1c4cbc79559a",
            "parentSpanId": "8cb7870da1557740",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698716924832",
            "endTimeUnixNano": "1796047698716996710",
            "durationMs": 0.071878,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n        SELECT MAX(sequence) AS snapshot_sequence\n        FROM orchestration_events\n        WHERE application_event_version = 2\n          AND aggregate_kind = 'thread'\n      ",
              "db.client.connection.wait_time_ms": 0.023355
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readShellSnapshotRows",
            "traceId": "8bac63d8cb38dc737e5b547e8fc9e046",
            "spanId": "8cb7870da1557740",
            "parentSpanId": "031257a3e6237a8d",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698716681038",
            "endTimeUnixNano": "1796047698717012634",
            "durationMs": 0.331596,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "COMMIT",
            "traceId": "8bac63d8cb38dc737e5b547e8fc9e046",
            "spanId": "5288f204343d8edb",
            "parentSpanId": "031257a3e6237a8d",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698717023620",
            "endTimeUnixNano": "1796047698717050680",
            "durationMs": 0.02706,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "COMMIT"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sql.transaction",
            "traceId": "8bac63d8cb38dc737e5b547e8fc9e046",
            "spanId": "031257a3e6237a8d",
            "parentSpanId": "92cf0b6ae81cfc00",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698716509522",
            "endTimeUnixNano": "1796047698717072483",
            "durationMs": 0.562961,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.client.connection.wait_time_ms": 0.065568,
              "db.connection": "reader",
              "db.lock_wait_ms": 0.043
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.pendingBackgroundDataByThreadId",
            "traceId": "8bac63d8cb38dc737e5b547e8fc9e046",
            "spanId": "3111395a822f7759",
            "parentSpanId": "826dba4d624241e8",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698717118662",
            "endTimeUnixNano": "1796047698717123309",
            "durationMs": 0.004647,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.decodeShellSnapshot",
            "traceId": "8bac63d8cb38dc737e5b547e8fc9e046",
            "spanId": "826dba4d624241e8",
            "parentSpanId": "92cf0b6ae81cfc00",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698717101787",
            "endTimeUnixNano": "1796047698717132573",
            "durationMs": 0.030786,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "8bac63d8cb38dc737e5b547e8fc9e046",
            "spanId": "a9443e6dd7e46308",
            "parentSpanId": "6f02fdcb5d95875e",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698717169648",
            "endTimeUnixNano": "1796047698717276208",
            "durationMs": 0.10656,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.033,
              "db.client.connection.wait_time_ms": 0.042744
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectStoreV2.listShells",
            "traceId": "8bac63d8cb38dc737e5b547e8fc9e046",
            "spanId": "6f02fdcb5d95875e",
            "parentSpanId": "92cf0b6ae81cfc00",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698717141376",
            "endTimeUnixNano": "1796047698717334214",
            "durationMs": 0.192838,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.readThreads",
            "traceId": "8bac63d8cb38dc737e5b547e8fc9e046",
            "spanId": "92cf0b6ae81cfc00",
            "parentSpanId": "1478877bbe9d66a3",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698716469332",
            "endTimeUnixNano": "1796047698717342106",
            "durationMs": 0.872774,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "8bac63d8cb38dc737e5b547e8fc9e046",
            "spanId": "707c0b7befa1814e",
            "parentSpanId": "1478877bbe9d66a3",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698717364760",
            "endTimeUnixNano": "1796047698717444058",
            "durationMs": 0.079298,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.02,
              "db.client.connection.wait_time_ms": 0.030455
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "8bac63d8cb38dc737e5b547e8fc9e046",
            "spanId": "ca1bf510c07f2de7",
            "parentSpanId": "ad2e3963ff21e68b",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698717496797",
            "endTimeUnixNano": "1796047698717569285",
            "durationMs": 0.072488,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT DISTINCT json_extract(payload_json, '$.worktreePath') AS \"worktreePath\"\n      FROM orchestration_v2_projection_threads\n      WHERE json_extract(payload_json, '$.worktreePath') IS NOT NUL\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.036,
              "db.client.connection.wait_time_ms": 0.042634
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "8bac63d8cb38dc737e5b547e8fc9e046",
            "spanId": "06ebe35596cbf382",
            "parentSpanId": "8163aca0acfa8134",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698719466029",
            "endTimeUnixNano": "1796047698720702115",
            "durationMs": 1.236086,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "8bac63d8cb38dc737e5b547e8fc9e046",
            "spanId": "8163aca0acfa8134",
            "parentSpanId": "e6b3581937d164ad",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698719297397",
            "endTimeUnixNano": "1796047698721588129",
            "durationMs": 2.290732,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "8bac63d8cb38dc737e5b547e8fc9e046",
            "spanId": "e6b3581937d164ad",
            "parentSpanId": "73ad61074d9fcac5",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698719259180",
            "endTimeUnixNano": "1796047698721845614",
            "durationMs": 2.586434,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo/packages/app",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "8bac63d8cb38dc737e5b547e8fc9e046",
            "spanId": "73ad61074d9fcac5",
            "parentSpanId": "ad2e3963ff21e68b",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698719237507",
            "endTimeUnixNano": "1796047698721870751",
            "durationMs": 2.633244,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "8bac63d8cb38dc737e5b547e8fc9e046",
            "spanId": "3dbcfaa40e888d2e",
            "parentSpanId": "ad2e3963ff21e68b",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698722159412",
            "endTimeUnixNano": "1796047698722211981",
            "durationMs": 0.052569,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "8bac63d8cb38dc737e5b547e8fc9e046",
            "spanId": "534f6d24cbd1d731",
            "parentSpanId": "ad2e3963ff21e68b",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698722303848",
            "endTimeUnixNano": "1796047698722338881",
            "durationMs": 0.035033,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "storageCleanup.measureWorktree",
            "traceId": "8bac63d8cb38dc737e5b547e8fc9e046",
            "spanId": "0944a196d575a730",
            "parentSpanId": "ad2e3963ff21e68b",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698722366802",
            "endTimeUnixNano": "1796047698723094349",
            "durationMs": 0.727547,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.reportOrphanWorktrees",
            "traceId": "8bac63d8cb38dc737e5b547e8fc9e046",
            "spanId": "ad2e3963ff21e68b",
            "parentSpanId": "1478877bbe9d66a3",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698717487864",
            "endTimeUnixNano": "1796047698723142541",
            "durationMs": 5.654677,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanWorktrees",
            "traceId": "8bac63d8cb38dc737e5b547e8fc9e046",
            "spanId": "1478877bbe9d66a3",
            "parentSpanId": "ff84cfb476d24fe3",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698715635807",
            "endTimeUnixNano": "1796047698723152516",
            "durationMs": 7.516709,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.sweep",
            "traceId": "8bac63d8cb38dc737e5b547e8fc9e046",
            "spanId": "ff84cfb476d24fe3",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698715331142",
            "endTimeUnixNano": "1796047698723182721",
            "durationMs": 7.851579,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          }
        ]
      },
      {
        "run": 44,
        "warmup": false,
        "elapsedMs": 8.046982000000014,
        "nestedOrphanFound": true,
        "report": {
          "_tag": "Success",
          "value": {
            "trigger": "manual",
            "startedAt": "2026-11-30T14:08:18.724Z",
            "finishedAt": "2026-11-30T14:08:18.731Z",
            "entries": [
              {
                "kind": "worktree",
                "outcome": "kept",
                "reason": "No thread uses this worktree",
                "path": "$FIXTURE/data/worktrees/repository/replay/repo-wt",
                "projectPath": null,
                "threadId": null,
                "threadTitle": null,
                "bytes": 8192,
                "files": null
              }
            ],
            "counts": {
              "removed": 0,
              "kept": 1,
              "failed": 0
            },
            "omittedCount": 0,
            "bytesFreed": 0
          }
        },
        "spans": [
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "1e8d64903009c2505dad16a7085198cb",
            "spanId": "dbfa44e967bcce0c",
            "parentSpanId": "25affb16762e34c6",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698723973272",
            "endTimeUnixNano": "1796047698724089806",
            "durationMs": 0.116534,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      WITH RECURSIVE retained_checkpoint_threads(thread_id) AS (\n        SELECT thread_id FROM orchestration_v2_projection_threads WHERE deleted_at IS NULL\n        UNION\n        SELECT json_extract(t\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.037,
              "db.client.connection.wait_time_ms": 0.050686
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanCheckpointRefs",
            "traceId": "1e8d64903009c2505dad16a7085198cb",
            "spanId": "25affb16762e34c6",
            "parentSpanId": "2cc14b4186697903",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698723954124",
            "endTimeUnixNano": "1796047698724130097",
            "durationMs": 0.175973,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.retryLeftovers",
            "traceId": "1e8d64903009c2505dad16a7085198cb",
            "spanId": "9bf39f5f26fb47d9",
            "parentSpanId": "2cc14b4186697903",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698724148094",
            "endTimeUnixNano": "1796047698724212720",
            "durationMs": 0.064626,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveGitWorktreePath",
            "traceId": "1e8d64903009c2505dad16a7085198cb",
            "spanId": "6f80fe1129a60692",
            "parentSpanId": "7906c43cdb8a1615",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698724241323",
            "endTimeUnixNano": "1796047698724466349",
            "durationMs": 0.225026,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "devHome.resolveWorktreeT3Home",
            "traceId": "1e8d64903009c2505dad16a7085198cb",
            "spanId": "7906c43cdb8a1615",
            "parentSpanId": "de06cce570907ab4",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698724235023",
            "endTimeUnixNano": "1796047698724477406",
            "durationMs": 0.242383,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "1e8d64903009c2505dad16a7085198cb",
            "spanId": "b4bdf7e6f464aaf2",
            "parentSpanId": "de06cce570907ab4",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698724740228",
            "endTimeUnixNano": "1796047698724830303",
            "durationMs": 0.090075,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n          SELECT t.payload_json, p.workspace_root AS \"workspaceRoot\"\n          FROM orchestration_v2_projection_threads t\n          JOIN projection_projects p ON p.project_id = t.project_id\n         \u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.031,
              "db.client.connection.wait_time_ms": 0.048563
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "BEGIN",
            "traceId": "1e8d64903009c2505dad16a7085198cb",
            "spanId": "a40470f741f4087c",
            "parentSpanId": "0bf68312241080ae",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698724991534",
            "endTimeUnixNano": "1796047698725048539",
            "durationMs": 0.057005,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "BEGIN"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "1e8d64903009c2505dad16a7085198cb",
            "spanId": "468f1a77098dea3f",
            "parentSpanId": "1379b6159def1e68",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698725209700",
            "endTimeUnixNano": "1796047698725348957",
            "durationMs": 0.139257,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n            SELECT\n              t.thread_id,\n              t.payload_json,\n              t.fork_run_ids_json,\n              CASE\n                WHEN json_extract(t.payload_json, '$.forkedFrom.type'\u2026[truncated]",
              "db.client.connection.wait_time_ms": 0.021892
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "1e8d64903009c2505dad16a7085198cb",
            "spanId": "83196e81dedbebd1",
            "parentSpanId": "1379b6159def1e68",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698725395327",
            "endTimeUnixNano": "1796047698725449167",
            "durationMs": 0.05384,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n        SELECT MAX(sequence) AS snapshot_sequence\n        FROM orchestration_events\n        WHERE application_event_version = 2\n          AND aggregate_kind = 'thread'\n      ",
              "db.client.connection.wait_time_ms": 0.012589
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.readShellSnapshotRows",
            "traceId": "1e8d64903009c2505dad16a7085198cb",
            "spanId": "1379b6159def1e68",
            "parentSpanId": "0bf68312241080ae",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698725087577",
            "endTimeUnixNano": "1796047698725468126",
            "durationMs": 0.380549,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "COMMIT",
            "traceId": "1e8d64903009c2505dad16a7085198cb",
            "spanId": "a6c88ae6d5222a65",
            "parentSpanId": "0bf68312241080ae",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698725479372",
            "endTimeUnixNano": "1796047698725506603",
            "durationMs": 0.027231,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.operation.name": "COMMIT"
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sql.transaction",
            "traceId": "1e8d64903009c2505dad16a7085198cb",
            "spanId": "0bf68312241080ae",
            "parentSpanId": "e9b3b87380dde507",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698724914308",
            "endTimeUnixNano": "1796047698725528345",
            "durationMs": 0.614037,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "db.client.connection.wait_time_ms": 0.069234,
              "db.connection": "reader",
              "db.lock_wait_ms": 0.048
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.pendingBackgroundDataByThreadId",
            "traceId": "1e8d64903009c2505dad16a7085198cb",
            "spanId": "06c1957368645919",
            "parentSpanId": "4d6950420ec46510",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698725568556",
            "endTimeUnixNano": "1796047698725572491",
            "durationMs": 0.003935,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectionStore.decodeShellSnapshot",
            "traceId": "1e8d64903009c2505dad16a7085198cb",
            "spanId": "4d6950420ec46510",
            "parentSpanId": "e9b3b87380dde507",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698725557970",
            "endTimeUnixNano": "1796047698725581585",
            "durationMs": 0.023615,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "1e8d64903009c2505dad16a7085198cb",
            "spanId": "a7d89d8849e4ce08",
            "parentSpanId": "769928685a5925a7",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698725614254",
            "endTimeUnixNano": "1796047698725711129",
            "durationMs": 0.096875,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.032,
              "db.client.connection.wait_time_ms": 0.041151
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "ProjectStoreV2.listShells",
            "traceId": "1e8d64903009c2505dad16a7085198cb",
            "spanId": "769928685a5925a7",
            "parentSpanId": "e9b3b87380dde507",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698725588756",
            "endTimeUnixNano": "1796047698725768835",
            "durationMs": 0.180079,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.readThreads",
            "traceId": "1e8d64903009c2505dad16a7085198cb",
            "spanId": "e9b3b87380dde507",
            "parentSpanId": "de06cce570907ab4",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698724878525",
            "endTimeUnixNano": "1796047698725776917",
            "durationMs": 0.898392,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "1e8d64903009c2505dad16a7085198cb",
            "spanId": "5acac77151740381",
            "parentSpanId": "de06cce570907ab4",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698725799461",
            "endTimeUnixNano": "1796047698725878719",
            "durationMs": 0.079258,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT\n        project_id AS \"projectId\",\n        title,\n        has_custom_title AS \"hasCustomTitle\",\n        workspace_root AS \"workspaceRoot\",\n        default_model_selection_json AS \"defaul\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.02,
              "db.client.connection.wait_time_ms": 0.030625
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "sqlite",
            "traceId": "1e8d64903009c2505dad16a7085198cb",
            "spanId": "19a8706f87983146",
            "parentSpanId": "d3fb35c9b5d74369",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698725933621",
            "endTimeUnixNano": "1796047698726121752",
            "durationMs": 0.188131,
            "attributes": {
              "db.name": "statev2.sqlite",
              "service.name": "t3code-server",
              "db.system.name": "sqlite",
              "effect.sql.method": "execute",
              "db.query.text": "\n      SELECT DISTINCT json_extract(payload_json, '$.worktreePath') AS \"worktreePath\"\n      FROM orchestration_v2_projection_threads\n      WHERE json_extract(payload_json, '$.worktreePath') IS NOT NUL\u2026[truncated]",
              "db.connection": "reader",
              "db.lock_wait_ms": 0.049,
              "db.client.connection.wait_time_ms": 0.058337
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "NonBlockingSpawner.spawn",
            "traceId": "1e8d64903009c2505dad16a7085198cb",
            "spanId": "1e31f3f004bf0112",
            "parentSpanId": "34e856384b415355",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698727762393",
            "endTimeUnixNano": "1796047698729041654",
            "durationMs": 1.279261,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "runGitCommand",
            "traceId": "1e8d64903009c2505dad16a7085198cb",
            "spanId": "34e856384b415355",
            "parentSpanId": "b9651dc612dd83ec",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698727589705",
            "endTimeUnixNano": "1796047698729925354",
            "durationMs": 2.335649,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "GitVcsDriver.listWorktreePaths",
            "traceId": "1e8d64903009c2505dad16a7085198cb",
            "spanId": "b9651dc612dd83ec",
            "parentSpanId": "a63019afad27635b",
            "sampled": true,
            "kind": "client",
            "startTimeUnixNano": "1796047698727544788",
            "endTimeUnixNano": "1796047698730136700",
            "durationMs": 2.591912,
            "attributes": {
              "git.operation": "GitVcsDriver.listWorktreePaths",
              "git.cwd": "$FIXTURE/fx/repo/packages/app",
              "git.args_count": 4
            },
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "executeWorktreeList",
            "traceId": "1e8d64903009c2505dad16a7085198cb",
            "spanId": "a63019afad27635b",
            "parentSpanId": "d3fb35c9b5d74369",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698727521543",
            "endTimeUnixNano": "1796047698730158693",
            "durationMs": 2.63715,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "1e8d64903009c2505dad16a7085198cb",
            "spanId": "2044df0b9414ad0c",
            "parentSpanId": "d3fb35c9b5d74369",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698730430960",
            "endTimeUnixNano": "1796047698730479873",
            "durationMs": 0.048913,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "WorktreeRemoval.isLinkedWorktree",
            "traceId": "1e8d64903009c2505dad16a7085198cb",
            "spanId": "663719da45c7ad20",
            "parentSpanId": "d3fb35c9b5d74369",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698730578510",
            "endTimeUnixNano": "1796047698730607553",
            "durationMs": 0.029043,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "storageCleanup.measureWorktree",
            "traceId": "1e8d64903009c2505dad16a7085198cb",
            "spanId": "cba07c3748144383",
            "parentSpanId": "d3fb35c9b5d74369",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698730626772",
            "endTimeUnixNano": "1796047698731199578",
            "durationMs": 0.572806,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.reportOrphanWorktrees",
            "traceId": "1e8d64903009c2505dad16a7085198cb",
            "spanId": "d3fb35c9b5d74369",
            "parentSpanId": "de06cce570907ab4",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698725925559",
            "endTimeUnixNano": "1796047698731224635",
            "durationMs": 5.299076,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.cleanWorktrees",
            "traceId": "1e8d64903009c2505dad16a7085198cb",
            "spanId": "de06cce570907ab4",
            "parentSpanId": "2cc14b4186697903",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698724223857",
            "endTimeUnixNano": "1796047698731231606",
            "durationMs": 7.007749,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          },
          {
            "type": "effect-span",
            "name": "StorageCleanup.sweep",
            "traceId": "1e8d64903009c2505dad16a7085198cb",
            "spanId": "2cc14b4186697903",
            "sampled": true,
            "kind": "internal",
            "startTimeUnixNano": "1796047698723932762",
            "endTimeUnixNano": "1796047698731259688",
            "durationMs": 7.326926,
            "attributes": {},
            "events": [],
            "links": [],
            "exit": {
              "_tag": "Success"
            }
          }
        ]
      }
    ]
  }
}