Skip to content

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

chore(docs): add deletion ledger for tinyagents migration plan

Steven Enamakel0004f9eb1d35
diff --git a/docs/tinyagents-full-migration-plan/99-deletion-ledger.md b/docs/tinyagents-full-migration-plan/99-deletion-ledger.md
index ebc496f1fd..1b41634b71 100644
--- a/docs/tinyagents-full-migration-plan/99-deletion-ledger.md
+++ b/docs/tinyagents-full-migration-plan/99-deletion-ledger.md
@@ -32,6 +32,10 @@ also name its upstream PR before the host copy is removed.
| WP-5 | `agent/harness/session/turn_checkpoint.rs` | No deletion: built on `ChatMessage`, the versioned on-disk record WP-1 settled as host-owned | HOST-OWNED | Replacing it with crate `Message` would change existing users' data. Only design §4 Option B reopens this |
| WP-5 | #4249 JSONL↔store session mirror — `agent/session_import/live.rs`, `Agent::maybe_shadow_read_session_store` / `maybe_dual_write_session_store` (`session/turn/session_io.rs`), the `StoreRegistry` registration in `agent/tinyagents/mod.rs`, the two `session_dual_write` / `session_shadow_reads` `AgentConfig` flags, and `config/migrations/enable_session_shadow_reads.rs` (~565 prod LOC) | The one genuine parallel session-persistence implementation in the tree, over crate `Store`/`AppendStore` rather than `ChatHistory` | BLOCKED | Gated on #4249's own Phase-2 parity soak (#5396 flipped `session_shadow_reads` default-ON with a config migration). **Not** the 2026-07-28 design's S5 soak — that one compares free-function reads against trait reads. Retire as a #4249 phase-3 item once parity is declared |
| WP-5 | `agent/harness/session/migration.rs` | No deletion: zero host imports, but migrates *OpenHuman's* layout — hardcodes `session_raw`, `sessions`, `state/migrations/session_layout_v1.done`, keyed to release 0.53.4 | HOST-OWNED | Design §5 S1 check performed, not assumed: generic code for a host-specific format |
+| WP-5 | `agent/harness/subagent_runner/handoff.rs` | Crate `tinyagents::harness::handoff` owns the progressive-disclosure cache, placeholder renderer, and content-hygiene helpers | DELETED | 287 → ~66-line shim re-exporting the crate module under the historical OpenHuman names; zero call-site edits. The host shim resolves `OPENHUMAN_TEST_HANDOFF_THRESHOLD_TOKENS` and passes it as the crate's explicit `threshold_tokens` parameter. Host: `cargo fmt --check`, `cargo check --lib` (product features and `--no-default-features`), 11,622 lib tests green. `vendor/tinyagents`: fmt, `clippy -D warnings`, 1,802 tests green |
+| WP-5 | `inference/provider/types.rs::build_tool_instructions_text` | Crate `tinyagents::harness::tool::prompt_tool_instructions` owns the markdown tool-use instructions block | DELETED | 33 lines removed; one call site (`mcp/server/tools/dispatch.rs`) repointed. Model-facing prompt copy changed two words ("may emit" vs "may use", "After execution" vs "After tool execution"). Host: `cargo fmt --check`, `cargo check --lib` (product features and `--no-default-features`), 11,622 lib tests green. `vendor/tinyagents`: fmt, `clippy -D warnings`, 1,802 tests green |
+| WP-5 | `agent/tinyagents/delegation.rs` | Crate `tinyagents::graph::delegation` owns the generic delegation graph | REHOMED | 1,524 → ~190 lines; ~888 production + ~636 test lines moved to new upstream `graph::delegation`. The host copy was not zero-coupled — it reached `super::observability` by a relative path — so the crate's `DelegationConfig` gained an optional `event_sink`, letting the host wrapper still attach `GraphTracingSink`. Host: `cargo fmt --check`, `cargo check --lib` (product features and `--no-default-features`), 11,622 lib tests green. `vendor/tinyagents`: fmt, `clippy -D warnings`, 1,802 tests green |
+| WP-5 | `agent/orchestration/ops.rs` dead half | Crate `tinyagents::graph::orchestration::DetachedTaskRegistry` owns the live half | DELETED / REHOMED | ~255 dead lines deleted; remainder re-pointed onto the crate registry (697 → 574 lines). Host `AgentStatus` replaced by crate `OrchestrationTaskStatus`; `DomainEvent::AgentOrchestrationClosed` removed as unconstructable (`rg AgentOrchestrationClosed src` empty). Accepted behaviour change: the crate's `wait` prunes terminal entries, so a child can be waited on once. Host: `cargo fmt --check`, `cargo check --lib` (product features and `--no-default-features`), 11,622 lib tests green. `vendor/tinyagents`: fmt, `clippy -D warnings`, 1,802 tests green |
Deletion totals are reconciled in WP-6 after all rows are terminal. The
original projection is approximately 30k host LOC deleted and 12–15k generic