Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

docs(tinyagents-drift-ledger): update status entries for worktree and registry

Steven Enamakel009a5367a4cf
diff --git a/docs/tinyagents-drift-ledger.md b/docs/tinyagents-drift-ledger.md
index 6cb23db8b6..6f4342f85b 100644
--- a/docs/tinyagents-drift-ledger.md
+++ b/docs/tinyagents-drift-ledger.md
@@ -93,7 +93,7 @@ this section as investigation history.
| Surface | Status | Ownership / exit evidence |
| --- | --- | --- |
-| `orchestration/worktree.rs` git plumbing — `BaseRef`, `WorktreeStatus`, `create`/`list`/`status`/`diff_summary`/`remove`, `detect_overlaps`, `validate_repo_root`, `sanitize_run_id` | **CLOSED / DELETED** | Near-verbatim twins of `tinyagents::harness::workspace::git` (`detect_overlaps` and `detect_worktree_overlaps` matched down to the `BTreeSet` dedupe; the two error enums carried identical message strings). Deleted and re-exported under the historical OpenHuman names, so RPC schemas, tools and tests are unchanged. 618 → 242 LOC. The RPC wire shape is pinned by `worktree_status_serializes_with_stable_camel_case_keys`, written and passing **before** the swap and again after; the crate carries the identical `sanitize_run_id` test already. |
+| `orchestration/worktree.rs` git plumbing — `BaseRef`, `WorktreeStatus`, `create`/`list`/`status`/`diff_summary`/`remove`, `detect_overlaps`, `sanitize_run_id` | **CLOSED / DELETED** | Near-verbatim twins of `tinyagents::harness::workspace::git` (`detect_overlaps` and `detect_worktree_overlaps` matched down to the `BTreeSet` dedupe; the two error enums carried identical message strings). Deleted and re-exported under the historical OpenHuman names, so RPC schemas, tools and tests are unchanged. 618 → 242 LOC. The RPC wire shape is pinned by `worktree_status_serializes_with_stable_camel_case_keys`, written and passing **before** the swap and again after; the crate carries the identical `sanitize_run_id` test already. |
| `OpenHumanWorktreeIsolation` (was `GitWorktreeIsolation`) | **HOST-OWNED** | Wraps the crate provider to add the two things that are OpenHuman's rather than every host's: the `openhuman.worktree:{agent}:{run_id}` policy-id convention, and `DomainEvent::Workspace{Prepared,Cleanup}` on the global bus. |
| `enforce_workspace_path` + `WorkspacePathError` | **HOST-OWNED (currently uncalled)** | Descriptor-policy gate that publishes `DomainEvent::WorkspaceViolation`. A repository-wide search finds no caller; it is retained because removing a public fail-closed gate is a separate judgement from this migration, and is recorded here so the next reader does not have to rediscover it. Split off `WorktreeError` (now the crate's git error) since it is about descriptor policy, not git. |
| Shared-workspace claim arbitration — `ownership_file_paths` path validation, `paths_overlap`, the serial-claim accumulator | **CLOSED / CRATE ADOPTED** | Upstreamed as `tinyagents::graph::parallel::claims` (`WorkspaceClaim`, `plan_shared_workspace_dispatch`, `parse_relative_claim_paths`, `paths_overlap`). `prepare_spawn_parallel_tasks_from_defs` is now two passes: OpenHuman policy admits or rejects, then one planner call arbitrates every admitted claim in input order. Behaviour parity is the gate, and `spawn_parallel_agents_tests.rs` passes **unedited** across the cutover; three assertions pinning the mixed-batch dispatch sequence, disjoint-ownership admission, and directory containment were added before it. |
@@ -112,7 +112,7 @@ this section as investigation history.
| Durable detached task lifecycle | **HOST PROJECTION ON CRATE STORE** | OpenHuman maps product `SubagentStatus` into crate `OrchestrationTaskStatus` and owns the store's on-disk location; this is durable product projection, not executor ownership. (Store *selection* itself has since moved to the crate — see the `TaskStoreRegistry` row below, which supersedes the earlier wording of this one.) |
| Per-workspace store selection + durable→memory fallback (`DetachedTaskStore` enum, `TASK_STORES` map, `open_task_store`) | **CLOSED / CRATE ADOPTED** | Upstreamed as `TaskStoreRegistry` + `open_jsonl_task_store_or_memory`. Opening a second store over one append log gives two writers with independently replayed state, so the caching is part of the contract, not an optimization. The 12-arm delegating `TaskStore` impl is deleted; the fallback ladder is ported exactly (a `create_dir_all` failure degrades to memory just as an unreadable log does — a read-only workspace must stay able to spawn work). Lock poisoning is now typed (`TaskStoreRegistryError`) rather than `.expect()`ed. All 17 focused `running_subagents` tests pass unedited. |
| Boot-time orphan reconciliation state machine | **CLOSED / CRATE ADOPTED** | `reconcile_orphaned_tasks` owns which statuses are live and which terminal state each takes (`CancelRequested` → cancelled, other live → failed), and captures per-task transition failures rather than aborting — a record racing to terminal between listing and transition is expected. The reason is passed as a closure, so `"sub-agent orphaned by core restart (was \`running\`)"` and the `publish_subagent_failed` lifecycle event stay host-side. Already wired at `core/jsonrpc.rs`. |
-| `REGISTRY_SOFT_CAP` (256) | **HOST-OWNED — no action** | Already crate-owned as *policy*: it is passed into `DetachedTaskRegistry::new`, which performs the sweep. Only the number is OpenHuman's. Recorded because an earlier scoping pass mistook it for a host-side duplicate. |
+| `REGISTRY_SOFT_CAP` (256) | **HOST-TUNED CRATE POLICY — no action** | The sweep is crate-owned: the constant is passed into `DetachedTaskRegistry::new`, which performs it. Only the number is OpenHuman's. Recorded because an earlier scoping pass mistook it for a host-side duplicate. |
| Detached task metadata, RPC/UI delivery, `RunQueue` fallback | **HOST-OWNED** | Agent/session/thread/workspace metadata, cancellation notices, background delivery, trusted desktop RPC, and compatibility steering are OpenHuman product surfaces. The fallback can shrink independently after live crate-steering parity, but does not block generic registry deletion. |
TinyAgents #75 is merged and the temporary integration gitlink has been