Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion plan/2026-11-12-1-bash-shell-pack.plan.md
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ pub(super) fn run_vfs() -> VfsRef {
}
```

- **Mount point.** `C:\Users\Vinnie` is `/c/Users/Vinnie` in a run, the path Git Bash uses. The in-memory root stays at `/` and stays the store.
- **Mount point.** `C:\Users` is `/c/Users` in a run, the path Git Bash uses. The in-memory root stays at `/` and stays the store.
- **Read-only.** `mount_at` already mounts with `Writability::ReadOnly`, so the `std` tools and, later, the shell's writes are refused there by the file system itself.
- **Both switches may be on.** `VfsRef::overlay` keeps the store declaration and stacks, so the two mounts sit side by side. One new test maps two temporary directories and reads both; the existing tests cover the rest of `mount_at`.
- **Off anywhere but this machine.** On a system with no `C:\`, `mount_at` logs a warning and leaves the run its plain root, as it does today for a missing guide.
Expand Down
28 changes: 14 additions & 14 deletions plan/2026-12-02-2-unified-tool-info.plan.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ flowchart TD
### Wave 1a: `gateway-client` (3 Testable Commits -> Merged Upstream SHA `G`)

- **Commit 1**: Add `plan/2026-12-02-2-unified-tool-info.plan.md`.
- **Commit 2 (additive, keeps `ToolSchema` compiling)**: Add `[gateway-client/crates/gateway-types/src/tool.rs](c:/Users/Vinnie/cursor/gateway-client/crates/gateway-types/src/tool.rs)` + unit tests, re-export `ToolInfo` from `[gateway-client/crates/gateway-types/src/lib.rs](c:/Users/Vinnie/cursor/gateway-client/crates/gateway-types/src/lib.rs)` and `[gateway-client/crates/gateway-client/src/lib.rs](c:/Users/Vinnie/cursor/gateway-client/crates/gateway-client/src/lib.rs)`, and update both `public-api.txt` snapshots:
- **Commit 2 (additive, keeps `ToolSchema` compiling)**: Add `gateway-client/crates/gateway-types/src/tool.rs` + unit tests, re-export `ToolInfo` from `gateway-client/crates/gateway-types/src/lib.rs` and `gateway-client/crates/gateway-client/src/lib.rs`, and update both `public-api.txt` snapshots:
- Rust 1.85 syntax (no `let` chains), no `#[non_exhaustive]`, `<= 100` lines and `<= 7` args per function, `use std::fmt;`, text-only doc fences, and intra-doc links scoped strictly to `ToolInfo`:

```rust
Expand Down Expand Up @@ -103,51 +103,51 @@ pub struct ToolInfo {
```

- Provide infallible `ToolInfo::new(name, description, input_schema)`, `with_*` builders, `effective_wire_name(&self) -> Cow<'_, str>`, `qualified_name(&self) -> Cow<'_, str>`, and field getters.
- **Commit 3 (replace `ToolSchema` with concrete `Arc<ToolInfo>`)**: Update `[gateway-client/crates/gateway-types/src/request.rs](c:/Users/Vinnie/cursor/gateway-client/crates/gateway-types/src/request.rs)`, `request-tests.rs`, `[gateway-client/crates/gateway-types/src/broker.rs](c:/Users/Vinnie/cursor/gateway-client/crates/gateway-types/src/broker.rs)`, and `[gateway-client/crates/gateway-client/src/transport.rs](c:/Users/Vinnie/cursor/gateway-client/crates/gateway-client/src/transport.rs)`. Keep `tools` concrete (`Option<&[Arc<ToolInfo>]>` on `build_request_body` and `GatewayClient::complete`; `Vec<Arc<ToolInfo>>` on `InferenceBroker::chat`) so all 22 bare `None` / `Some(&[])` call sites infer cleanly without `E0282`. Validate `(tool.effective_wire_name(), &tool.input_schema)` via `validate_tool_schema` (retaining `ErrorCode::ToolSchemaInvalid = 509`), refresh both `public-api.txt` files, verify all CI gates (`+1.88`, `dylint`, `deny`, `nextest`), push to `origin`, open PR, and merge to `upstream` -> SHA `G`.
- **Commit 3 (replace `ToolSchema` with concrete `Arc<ToolInfo>`)**: Update `gateway-client/crates/gateway-types/src/request.rs`, `request-tests.rs`, `gateway-client/crates/gateway-types/src/broker.rs`, and `gateway-client/crates/gateway-client/src/transport.rs`. Keep `tools` concrete (`Option<&[Arc<ToolInfo>]>` on `build_request_body` and `GatewayClient::complete`; `Vec<Arc<ToolInfo>>` on `InferenceBroker::chat`) so all 22 bare `None` / `Some(&[])` call sites infer cleanly without `E0282`. Validate `(tool.effective_wire_name(), &tool.input_schema)` via `validate_tool_schema` (retaining `ErrorCode::ToolSchemaInvalid = 509`), refresh both `public-api.txt` files, verify all CI gates (`+1.88`, `dylint`, `deny`, `nextest`), push to `origin`, open PR, and merge to `upstream` -> SHA `G`.

### Wave 1b: `runvil-plugin-api` v0.9.0 (3 Testable Commits -> Merged Upstream SHA `P`)

- **Commit 1**: Add `plan/2026-12-02-2-unified-tool-info.plan.md`.
- **Commit 2 (sync `tool_info.rs` + `xtask` check, keeping 0.8 ABI intact)**: Add `serde` and `serde_json` to `[runvil-plugin-api/Cargo.toml](c:/Users/Vinnie/cursor/runvil-plugin-api/Cargo.toml)` and `[runvil-plugin-api/crates/runvil-plugin-sdk/Cargo.toml](c:/Users/Vinnie/cursor/runvil-plugin-api/crates/runvil-plugin-sdk/Cargo.toml)` (`runvil-plugin-sys` stays `#![no_std]` with zero dependencies), copy `tool.rs` verbatim to `[runvil-plugin-api/crates/runvil-plugin-sdk/src/tool_info.rs](c:/Users/Vinnie/cursor/runvil-plugin-api/crates/runvil-plugin-sdk/src/tool_info.rs)`, and add `sync-tool-info` check in `[runvil-plugin-api/crates/build-xtask/src/main.rs](c:/Users/Vinnie/cursor/runvil-plugin-api/crates/build-xtask/src/main.rs)`. Verify `+1.85 check` and `cargo test` pass.
- **Commit 2 (sync `tool_info.rs` + `xtask` check, keeping 0.8 ABI intact)**: Add `serde` and `serde_json` to `runvil-plugin-api/Cargo.toml` and `runvil-plugin-api/crates/runvil-plugin-sdk/Cargo.toml` (`runvil-plugin-sys` stays `#![no_std]` with zero dependencies), copy `tool.rs` verbatim to `runvil-plugin-api/crates/runvil-plugin-sdk/src/tool_info.rs`, and add `sync-tool-info` check in `runvil-plugin-api/crates/build-xtask/src/main.rs`. Verify `+1.85 check` and `cargo test` pass.
- **Commit 3 (bump C contract & SDK to `0.9.0` with JSON `RvToolInfo`)**:
- Update `[runvil-plugin-api/crates/runvil-plugin-sys/src/lib.rs](c:/Users/Vinnie/cursor/runvil-plugin-api/crates/runvil-plugin-sys/src/lib.rs)` (`RV_API_MINOR = 9`, `RvToolInfo { size: u32, reserved: u32, json: RvStr }` size 24, `RV_MAX_TOOL_JSON = 262_144`, keeping `RV_MAX_TOOL_TEXT = 65_536` for `description`), regenerate `[runvil-plugin-api/crates/runvil-plugin-sys/include/runvil_plugin.h](c:/Users/Vinnie/cursor/runvil-plugin-api/crates/runvil-plugin-sys/include/runvil_plugin.h)`, and update `[runvil-plugin-api/tests/c-layout/src/lib.rs](c:/Users/Vinnie/cursor/runvil-plugin-api/tests/c-layout/src/lib.rs)` + `layout.c`.
- Update `runvil-plugin-api/crates/runvil-plugin-sys/src/lib.rs` (`RV_API_MINOR = 9`, `RvToolInfo { size: u32, reserved: u32, json: RvStr }` size 24, `RV_MAX_TOOL_JSON = 262_144`, keeping `RV_MAX_TOOL_TEXT = 65_536` for `description`), regenerate `runvil-plugin-api/crates/runvil-plugin-sys/include/runvil_plugin.h`, and update `runvil-plugin-api/tests/c-layout/src/lib.rs` + `layout.c`.
- Switch `runvil-plugin-sdk` (`src/tool.rs`, `src/entry/{pack,tool,file}.rs`, `src/testing.rs`, `src/testing/{pack,render,fixture}.rs`, `examples/hello-plugin/src/lib.rs`, `AGENTS.md`, `README.md`) to re-export `tool_info::ToolInfo`, keeping `let jsons: Vec<String>` alive across `extern "C"` render calls and updating `Mode::Respaced` in `testing/render.rs` for semantic JSON `Value` comparison.
- Verify all CI checks (`+1.85`, `c-layout`, `clippy`, `doc`), push to `origin`, open PR, and merge to `upstream` -> SHA `P`.

## Wave 2: Three Plugin Repos + `runvil-harness` (4 Parallel PRs once `G` and `P` Merge)

### Wave 2a: `runvil-plugin-std`, `runvil-plugin-bashkit`, and `runvil-plugin-web` (2 Testable Commits Each -> Merged SHAs `S`, `B`, `W`)

In each of `[runvil-plugin-std](c:/Users/Vinnie/cursor/runvil-plugin-std)`, `[runvil-plugin-bashkit](c:/Users/Vinnie/cursor/runvil-plugin-bashkit)`, and `[runvil-plugin-web](c:/Users/Vinnie/cursor/runvil-plugin-web)` independently in parallel:
In each of `runvil-plugin-std`, `runvil-plugin-bashkit`, and `runvil-plugin-web` independently in parallel:
- **Commit 1**: Add `plan/2026-12-02-2-unified-tool-info.plan.md`.
- **Commit 2**: Pin `runvil-plugin-sdk = "0.9.0"` at `P`, pass `serde_json::Value` directly to `ToolInfo::new` using `.with_wire_name(...)` and `.with_changes_files(true)`, update `[ToolInfo::with_changes_files]` doc link in `[runvil-plugin-std/crates/plugin-std/src/lib.rs](c:/Users/Vinnie/cursor/runvil-plugin-std/crates/plugin-std/src/lib.rs)`, and update `tool.input_schema` assertions in `pack-tests.rs` and `web-tests.rs`.
- **Commit 2**: Pin `runvil-plugin-sdk = "0.9.0"` at `P`, pass `serde_json::Value` directly to `ToolInfo::new` using `.with_wire_name(...)` and `.with_changes_files(true)`, update `[ToolInfo::with_changes_files]` doc link in `runvil-plugin-std/crates/plugin-std/src/lib.rs`, and update `tool.input_schema` assertions in `pack-tests.rs` and `web-tests.rs`.
- Verify all checks (`build-checks`, `clippy`, `test`, `doc`), push to `origin`, open PRs, and merge to `upstream` -> SHAs `S`, `B`, `W`.

### Wave 2b: `runvil-harness` (4 Testable Commits -> Merged Upstream SHA `H`)

- **Commit 1**: Add `plan/2026-12-02-2-unified-tool-info.plan.md`.
- **Commit 2 (pin `gateway-types` at `G` and unify `ToolInfo` across Engine, Harness, and `plugin-mcp` while keeping loader on 0.8)**:
- Update `[runvil-harness/Cargo.toml](c:/Users/Vinnie/cursor/runvil-harness/Cargo.toml)` to pin `gateway-client` / `gateway-types` at `G`.
- Delete `runvil_types::tools::ToolInfo` in `[runvil-harness/crates/runvil-internal/types/src/tools.rs](c:/Users/Vinnie/cursor/runvil-harness/crates/runvil-internal/types/src/tools.rs)` and re-export `gateway_types::ToolInfo`. Split 2+ segment `ToolId`s at the first `/` (`pack` + `name`) and index `(ToolId, Arc<ToolInfo>)` inside `ToolCatalog`, `OfferedTool::Catalog`, `ToolBinding`, and `LuaToolHandle` (keeping `.id() -> &ToolId` borrowed at all 30+ Engine sites and `.parameters` userdata reading `input_schema`).
- Update `runvil-harness/Cargo.toml` to pin `gateway-client` / `gateway-types` at `G`.
- Delete `runvil_types::tools::ToolInfo` in `runvil-harness/crates/runvil-internal/types/src/tools.rs` and re-export `gateway_types::ToolInfo`. Split 2+ segment `ToolId`s at the first `/` (`pack` + `name`) and index `(ToolId, Arc<ToolInfo>)` inside `ToolCatalog`, `OfferedTool::Catalog`, `ToolBinding`, and `LuaToolHandle` (keeping `.id() -> &ToolId` borrowed at all 30+ Engine sites and `.parameters` userdata reading `input_schema`).
- Update `Effect::Chat` (`tools: Vec<Arc<ToolInfo>>`), `scope.rs`, `RunPacks`, `plugin-mcp` (`rmcp::model::Tool` -> `Arc<ToolInfo>` preserving `title`, `output_schema`, and hints while keeping `mcp/get_dynamic_tools` output unchanged), `harness-plugin-loader` (adapting 0.8 `RvToolInfo` into new `ToolInfo`), `harness-gateway-client`, and facades (`runvil-engine`, `runvil`, dropping `ToolSchema` re-exports and blessing `public-api.txt`). Every workspace test and `xtask` check passes at this commit.
- **Commit 3 (embed `Arc<ToolInfo>` in `Frontmatter` / `Prompt` and drop `pub struct Annotations`)**:
- In `[runvil-harness/crates/runvil-internal/prompt/src/frontmatter.rs](c:/Users/Vinnie/cursor/runvil-harness/crates/runvil-internal/prompt/src/frontmatter.rs)` and `prompt.rs`, keep private `RawAnnotations` so every YAML error message and span test in `frontmatter-tests-annotations.rs` stays identical, build `tool: Arc<ToolInfo>` on `Frontmatter` (keeping `.name()`, `.description()`, `.title()`, `.args()` delegating on `Frontmatter` and adding `Frontmatter::tool_info` + `Prompt::tool_info`), remove `Annotations` from `runvil-engine` and `runvil`, and bless `public-api.txt`.
- In `runvil-harness/crates/runvil-internal/prompt/src/frontmatter.rs` and `prompt.rs`, keep private `RawAnnotations` so every YAML error message and span test in `frontmatter-tests-annotations.rs` stays identical, build `tool: Arc<ToolInfo>` on `Frontmatter` (keeping `.name()`, `.description()`, `.title()`, `.args()` delegating on `Frontmatter` and adding `Frontmatter::tool_info` + `Prompt::tool_info`), remove `Annotations` from `runvil-engine` and `runvil`, and bless `public-api.txt`.
- **Commit 4 (pin `runvil-plugin-sys = "0.9.0"` at `P` and switch loader + `test-plugin` to JSON `RvToolInfo`)**:
- Pin `runvil-plugin-sys = "0.9.0"` at `P` in `Cargo.toml`.
- Delete `AddedTool`, `Offered`, and `raw_parameters` in `[runvil-harness/crates/harness-internal/plugin-loader/src/pack.rs](c:/Users/Vinnie/cursor/runvil-harness/crates/harness-internal/plugin-loader/src/pack.rs)` and `session.rs`, deserializing `RvToolInfo.json` straight into `ToolInfo` (keeping `Vec<String>` alive across `send_render`).
- Update zero-dep `[runvil-harness/crates/harness-internal/test-plugin/src/lib.rs](c:/Users/Vinnie/cursor/runvil-harness/crates/harness-internal/test-plugin/src/lib.rs)` + `lib-tests.rs` to contract `0.9` (`size == 24`, balanced-brace `object_of` helper for `"shape"`), add a `build-xtask` sync check when sibling repos are present, and update `decisions/tools-and-packs.md` and `decisions/prompt-language.md`.
- Delete `AddedTool`, `Offered`, and `raw_parameters` in `runvil-harness/crates/harness-internal/plugin-loader/src/pack.rs` and `session.rs`, deserializing `RvToolInfo.json` straight into `ToolInfo` (keeping `Vec<String>` alive across `send_render`).
- Update zero-dep `runvil-harness/crates/harness-internal/test-plugin/src/lib.rs` + `lib-tests.rs` to contract `0.9` (`size == 24`, balanced-brace `object_of` helper for `"shape"`), add a `build-xtask` sync check when sibling repos are present, and update `decisions/tools-and-packs.md` and `decisions/prompt-language.md`.
- Run full pre-push + CI suite (`docs-claims.mjs`, `clippy`, `nextest`, `xtask tidy`, `+nightly-2026-09-05 xtask api`, `dylint`, `deny`), push to `origin`, open PR, and merge to `upstream` -> SHA `H`.

## Wave 3: `runvil-workshop` and `runvil` (Sequential Final Wave)

### Wave 3a: `runvil-workshop` (3 Testable Commits -> Merged Upstream SHA `K`)

- **Commit 1**: Add `plan/2026-12-02-2-unified-tool-info.plan.md`.
- **Commit 2 (pins + broker)**: Update `[runvil-workshop/Cargo.toml](c:/Users/Vinnie/cursor/runvil-workshop/Cargo.toml)` to pin `runvil-harness` (`H`), `runvil-plugin-sdk` `0.9.0` (`P`), and `std-plugin` (`S`), `bashkit-plugin` (`B`), `web-plugin` (`W`), and switch `WorkshopBroker::chat` in `[runvil-workshop/crates/workshop/server/src/agents/broker.rs](c:/Users/Vinnie/cursor/runvil-workshop/crates/workshop/server/src/agents/broker.rs)` to `Vec<Arc<runvil::ToolInfo>>`. Verify `cargo test` and `xtask tidy`.
- **Commit 3 (`/prompts/contract` + UI)**: Flatten `&**prompt.tool_info()` onto `ContractResponse` in `[runvil-workshop/crates/workshop/server/src/routes/prompts.rs](c:/Users/Vinnie/cursor/runvil-workshop/crates/workshop/server/src/routes/prompts.rs)` (keeping explicit `null` for absent `runvil` and `max_tool_iterations`), and update `prompts-tests.rs`, `[runvil-workshop/crates/workshop/ui/src/services/run-api.ts](c:/Users/Vinnie/cursor/runvil-workshop/crates/workshop/ui/src/services/run-api.ts)`, `run-rows.ts`, `test/run-api.mjs`, and `test/run-panel.mjs`.
- **Commit 2 (pins + broker)**: Update `runvil-workshop/Cargo.toml` to pin `runvil-harness` (`H`), `runvil-plugin-sdk` `0.9.0` (`P`), and `std-plugin` (`S`), `bashkit-plugin` (`B`), `web-plugin` (`W`), and switch `WorkshopBroker::chat` in `runvil-workshop/crates/workshop/server/src/agents/broker.rs` to `Vec<Arc<runvil::ToolInfo>>`. Verify `cargo test` and `xtask tidy`.
- **Commit 3 (`/prompts/contract` + UI)**: Flatten `&**prompt.tool_info()` onto `ContractResponse` in `runvil-workshop/crates/workshop/server/src/routes/prompts.rs` (keeping explicit `null` for absent `runvil` and `max_tool_iterations`), and update `prompts-tests.rs`, `runvil-workshop/crates/workshop/ui/src/services/run-api.ts`, `run-rows.ts`, `test/run-api.mjs`, and `test/run-panel.mjs`.
- Verify Rust + UI tests + `xtask tidy`, push to `origin`, open PR, and merge to `upstream` -> SHA `K`.

### Wave 3b: `runvil` (2 Testable Commits -> Merged Upstream)

- **Commit 1**: Add `plan/2026-12-02-2-unified-tool-info.plan.md`.
- **Commit 2**: Pin `[workspace.metadata.workshop]` in `[runvil/Cargo.toml](c:/Users/Vinnie/cursor/runvil/Cargo.toml)` to SHA `K`, verify `xtask`, push to `origin`, open PR, and merge to `upstream`.
- **Commit 2**: Pin `[workspace.metadata.workshop]` in `runvil/Cargo.toml` to SHA `K`, verify `xtask`, push to `origin`, open PR, and merge to `upstream`.
Loading