1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
[]
= "trusty-code"
# #5073/#6231: test-only stabilization of `daemon_autospawn_tests` — no
# production behavior changed, so this is a PATCH bump. (0.4.0 was the MINOR
# bump for #6286's socket-path API break, per Cargo's 0.x rule.)
# 0.5.0 (#5439): minor — the HTTP router builder (removed in #6637) took 5
# parameters instead of 4 (bearer-auth wiring); cargo-semver-checks reports a
# function_parameter_count_changed break, so Cargo's 0.x rule puts it in MINOR.
# 0.5.1 (#6657): patch — `fs_browse::mpm_registry::parse_owner_repo` (a
# private fn) now delegates to `trusty_common::github_path::parse_remote_url`
# instead of its own split logic; no public item changed shape.
# 0.6.0: minor bump. Triggered by a reinstall carrying #6537/#7158 for live
# verification (owner ruling 2026-09-08 — every reinstall carries a version
# bump so `--version` identifies the build), but `check_semver.sh` found a
# real break versus the 0.5.1 baseline live on crates.io: `Session` (a
# publicly-constructible struct) gained a new pub field `result`
# (src/session/model.rs:180), which is `constructible_struct_adds_field` —
# breaking under Cargo's 0.x rule, so this lands in MINOR rather than PATCH.
#
# 0.6.1 (#7683): patch bump. This PR edits `src/assets/agents/*.md` (the four
# forks' tool-allowlist key is now `tcode_tools:`) and `src/agents/md_loader.rs`
# reads that key instead of `tools:`, which stays a pub(crate) projection — no
# public item signature changed. `scripts/check-pr-version-bump.sh` requires
# the bump in the same PR (#4421).
#
# 0.6.2 (#5428): patch bump. Adds the `mcp` module (`McpToolSet`,
# `register_configured_tools`, and the config/trust/spawn/tool submodules) and
# enables `trusty-mcp/config`. Purely ADDITIVE — no existing public item
# changed shape, and the two `ProjectToolFactory` structs that gained a field
# are private — so Cargo's 0.x rule puts it in PATCH.
#
# 0.7.0 (#7779): MINOR bump. Closing the write-target TOCTOU changes three
# public signatures — `paths::import::apply_import` takes the project root,
# `agents::skill_refs::materialize_skill_refs` takes a pinned
# `paths::write_dir::NativeWriteDir` instead of a `&Path`, and
# `paths::WriteTargetError` gains `Unpinned`/`Unpinnable`. All three are
# `enum_variant_added` / `function_parameter_count_changed` breaks, which
# Cargo's 0.x rule puts in MINOR.
# 0.8.1 (#11481): patch — serves `tm-prose-style` as a referenced skill.
= "0.8.2"
= "2024"
= true
# license.workspace resolves to "MIT"; LICENSE is kept in-crate for correctness.
= true
= true
= true
= "Per-project Claude-Code-compatible MPM orchestration harness (bin: tcode) — an original coding harness, tracked under epic #2052."
= "README.md"
= "https://trustytools.dev"
= ["cli", "mcp", "orchestration", "agents", "harness"]
= ["command-line-utilities", "development-tools"]
# #9302: `tests/*.rs` files are modules of the targets below, not one binary
# each; every new macOS executable pays an XProtect scan on its first exec.
= false
[[]]
= "tcode"
= "src/main.rs"
[]
= "trusty_code"
= "src/lib.rs"
# ── Integration tests (#9302) ─────────────────────────────────────────────────
# `integration` mounts every module that leaves process-global state alone.
# The two below need a process of their own: one sets `$HOME`, the other
# re-execs its own binary with `--exact <test>`.
[[]]
= "integration"
= "tests/integration.rs"
[[]]
= "hermetic_palace_e2e"
= "tests/hermetic_palace_e2e.rs"
[[]]
= "logging_e2e"
= "tests/logging_e2e.rs"
[]
# Core error handling and async runtime
= { = true }
= { = true }
= { = true }
# Serialization (events, ipc, perf, build_info, tools, agents)
= { = true }
= { = true }
# `~/.trusty-code/log_drain.yaml` (#6537) — same format trusty-mpm's own
# `log_drain:` config section uses.
= { = true }
# Timestamp support (perf, build_info)
= { = true }
# UUID generation (ipc task IDs)
= { = true }
# CLI entry point (tcode binary)
= { = true }
= { = true }
# `tcode serve`'s own daily-rotating file log (#6537) — mirrors trusty-mpm's
# `~/.trusty-mpm/logs` appender (`bin/tm/tracing_setup.rs`).
= { = true }
# Phase 2: async trait dispatch for ToolExecutor, AgentRunner, SearchProvider
= { = true }
# #2893 (epic #2892): shared `ServiceTier`/`RunContext`/`HistoryMessage` types,
# deduped from tools/traits.rs against the canonical definitions trusty-agents
# already re-exports from here (see crates/trusty-assistants/src/tools/traits.rs).
= { = true }
# Structured error types for library code (FsError, LlmError, etc.)
= { = true }
# workstreams::path: deterministic SHA-256 project-root fingerprint for the
# workstream store's filename (DOC-48 §3.1: "workstreams-{slug}-{hash}.json").
= { = true }
# LLM client: HTTP + TLS for the OpenRouter chat-completions API
= { = true }
# Bash tool: process-group kill on Unix (setsid / kill syscalls)
= { = true }
# `binding::ProjectBinding::agents_dir`: a projectless daemon has no project
# root to resolve `.claude/agents` from, so it falls back to the USER-level
# `~/.claude/agents` (Claude Code's own user-level agents location). Falling
# back to the process CWD instead would silently bind to a directory the
# operator never chose — the exact implicit-binding bug `ProjectBinding` exists
# to prevent.
# fs_browse: `~` expansion + home-collapsed breadcrumbs for the UI's picker
= { = true }
# verify_gate (#2279): matches a `bash` tool call's command against the
# finalized test-invocation patterns (`pytest\s+\S+`, `cargo test`, …).
# Also powers the `grep` exploration tool's content regex matching (#1027).
= { = true }
# Native exploration tools (#1027): `ignore` provides gitignore-aware recursive
# walking for the `glob`/`grep` tools; `globset` compiles the glob patterns.
= { = true }
= { = true }
# DOC-28 catch-up digest for PM prompt seed context (#1762 PR2), plus the
# shared JSON-RPC 2.0 / MCP wire types + STDIO loop (#2053) so `tcode serve
# --stdio` speaks the exact same JSON-RPC-over-STDIO contract as trusty-memory
# and trusty-search. Those wire types now come from the separate `trusty-mcp`
# crate (ADR-0040, #5803), declared above; `catchup` still brings
# `trusty-common/memory-rpc` transitively for the trusty-memory client.
# `inference-client` (#2406, epic #2400) provides the shared inference adapter
# layer (`trusty_common::inference`) tcode's OpenRouter/Fireworks transport is
# built on: the OpenAI-compatible HTTP core, the two-stage credential resolver
# (env > .env.local > secure store), and the capability registry. The
# dev-dependency below adds `axum-server` to expose
# `inference::test_support::MockInferenceServer` for the offline black-box e2e
# in `tests/inference_shared_adapter_e2e.rs`.
# `stdio-mcp-client` provides the shared `StdioMcpClient` (spawn an MCP binary,
# run the JSON-RPC-over-stdio handshake, call tools) the trusty-search-backed
# code-discovery tool reuses instead of writing its own MCP transport
# (common-entry-point principle) — mirrors trusty-agents' TrustySearchPlugin.
# `search-index` provides the shared ensure-project-indexed helper for tcode
# task startup.
# `crate-config` (#5203): supplies `workspace_layout::workspace_root`, the one
# resolver the project picker shares with trusty-mpm. serde_yaml + thiserror are
# already in this crate's dependency graph, so it adds no new transitive deps.
# #5428: `config` adds the ONE MCP-server configuration authority
# (`McpServerConfig`, the shared `servers.toml`, the layered resolver) that
# `crate::mcp` reads — the same file trusty-agents already reads, per
# ADR-0060 decision 2. The feature is non-default upstream so a wire-only
# consumer pays for neither `toml` nor `thiserror`; tcode needs both.
= { = true, = ["config"] } # JSON-RPC / MCP primitives (ADR-0040, #5803)
# #5428: `crate::mcp::config` parses `<project>/.trusty-code/mcp.toml`, the
# project override tier. `toml` is already in this crate's graph through
# `trusty-mcp/config`, so this adds no new transitive dependency.
= { = true }
# #6637 slice 2c: no `axum-server` or daemon-credential feature here. Both served the
# daemon's retired loopback HTTP listener and its bearer credential.
# `log-drain` (#6537): `trusty_common::log_drain::{run_once, DrainConfig,
# ObjectStoreDestination, DestinationUri, DrainTarget, LogSource, Level}` — the
# drain CORE `tcode serve`'s own scheduler (`crate::log_drain`) calls rather
# than reimplementing collection/upload/manifest logic.
# `uds` (#6637): `trusty_common::uds::{server, rpc, stream_client, probe,
# bind_singleton_hardened}` — the hardened socket `tcode serve` binds and
# `tcode tui` dials. Named explicitly rather than left to arrive transitively
# through `catchup` -> `memory-rpc` -> `uds`, so dropping `catchup` later
# cannot silently take the daemon's own transport with it.
= { = true, = ["catchup", "stdio-mcp-client", "inference-client", "config-cli", "bedrock-client", "search-index", "crate-config", "log-drain", "uds"] }
# `tui_client::CodeEngine` (#3415, DOC-50 §3.3/§3.4, epic #3411 Slice 3): the
# shared engine-adapter trait + event vocabulary (`TuiEngine`/`ReplEvent`)
# both `tcode tui` and tagent's REPL implement against.
= { = true }
# `session.events` / `workstream.events` socket streams (#2054, #6637): wrap
# the `tokio::sync::broadcast`-backed event bus (`crate::events`) as a
# `Stream`, chained after a ring-buffer replay burst built with plain
# `futures_util::stream::iter`.
= { = true }
= { = true }
# `run_task::diff`'s git-tree snapshot (#2061, #1475 bug 3): a scratch
# directory for the THROWAWAY `GIT_INDEX_FILE` git stages into, so the run's
# before/after capture never touches the project's real `.git/index`.
# Promoted from dev-dependencies (where it already served every temp-dir
# test in this crate) since this is now a genuine production code path, not
# test-only.
= { = true }
# AWS Bedrock Converse API transport (#1021, migrated #2407): the Converse wire
# integration now lives in the shared `trusty_common::inference::bedrock` adapter
# (enabled via the `bedrock-client` feature on the `trusty-common` dep below), so
# tcode no longer depends on the AWS SDK directly — `llm::bedrock` is a thin
# bridge onto that adapter. The AWS stack is pulled in transitively by
# `bedrock-client`.
[]
# Async test runtime (events, build_info, perf async tests, tools tests).
# test-util enables Tokio's paused clock (`tokio::time::pause`) used by
# `events_connect_hang_is_bounded_by_connect_timeout_not_infinite` to wait out
# `CONNECT_TIMEOUT` on the virtual clock instead of 10s of real time.
= { = true, = ["test-util"] }
# `cli::daemon_autospawn_tests::daemon_autospawn_waits_on_socket_not_http`: a
# healthy HTTP `/health` decoy that must NOT satisfy the socket readiness
# gate.
= { = true }
# `llm::client::tests` (#4614): the missing-credential tests clear a provider's
# API-key env var so they assert unconditionally instead of skipping on a
# developer machine that has one. `#[serial]` joins the workspace-wide
# exclusion group so that mutation cannot race a parallel test thread.
= { = true }
# #9123: the shared credential test sandbox. Dev-only because it mutates the
# process environment; it must never reach a normal build. #6637: `axum-server`
# is dev-only too — it now serves only `MockInferenceServer`, a test double.
# #7215: `uds-test-support` gives the UDS test stubs their hardened bind.
= { = true, = ["credential-test-sandbox", "axum-server", "uds-test-support"] }