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 Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ libraries = [{ git = "https://github.com/cppalliance/dylints", rev = "982b297ede
# differs from this workspace's.
[workspace.metadata.workshop]
git = "https://github.com/cppalliance/runvil-workshop"
rev = "6f8ed26d438be9e4bf4296b36f1e6e42de13f28f"
rev = "a3bc9517846f5f8df17907491fb61daebb1c486a"

[workspace.lints.rust]
unsafe_code = "deny"
Expand Down
2 changes: 1 addition & 1 deletion plan/2026-11-07-1-host-runsetup-harness.plan.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ flowchart LR

## Notes

- **Repository:** `runvil/` in the workspace, at `c:\Users\Vinnie\cursor\runvil`. Every path in this plan is relative to it.
- **Repository:** `runvil/` in the workspace. Every path in this plan is relative to the repository root.
- **Build:** `cargo build` builds the default members, which are the Engine and its facades. The Workshop builds with `cargo build --locked -p workshop`. Source: `Cargo.toml:10-14`, `.github/workflows/ci.yml`.
- **Package tests:** `cargo nextest run --locked -p <package>`. Source: `AGENTS.md:46-50`.
- **Full suite:** run both of these. Source: `AGENTS.md:46-50`, `.github/workflows/ci.yml`.
Expand Down
2 changes: 1 addition & 1 deletion plan/2026-11-08-1-per-run-packs.plan.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ runvil moves from one Pack object per process, shared by every run, to one Pack

## Notes

- **Repository:** `c:\Users\Vinnie\cursor\runvil`, a Rust workspace on Windows (PowerShell), at `master` `56925dd41` when this plan was written. Every path in this plan is relative to that root, except paths in the sibling repository `runvil-plugin-api`, which say so.
- **Repository:** `runvil`, a Rust workspace on Windows (PowerShell), at `master` `56925dd41` when this plan was written. Every path in this plan is relative to the repository root, except paths in the sibling repository `runvil-plugin-api`, which say so.
- **Conventions:** `AGENTS.md` and the `AGENTS.md` of every crate a step touches define the terms and layout conventions.
- **Build:** `cargo build --locked -p workshop`. The two lint commands compile every other target, so there is no standalone workspace build or `cargo check` (`AGENTS.md` lines 45 to 51, `.github/workflows/ci.yml`).
- **Package tests:** `cargo nextest run --locked -p <package>`, for example `-p harness-runner`, `-p plugin-mcp`, or `-p workshop-agents`. For runvil-plugin use `cargo nextest run --locked -p runvil-plugin --all-features`: its `tests/it` binary needs the `test-support` feature and runs no tests without it, which the first full-suite command's `--all-features` covers.
Expand Down
4 changes: 2 additions & 2 deletions plan/2026-11-08-2-run-inbox-user-pack.plan.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Every chain of a run gets an inbox in the Engine. The Host sends the operator's

## Notes

- Repository: `c:\Users\Vinnie\cursor\runvil`, a Rust workspace on Windows (PowerShell). Every path in this plan is relative to its root, except the guide paths in steps 5 and 6 (see Docs).
- Repository: `runvil`, a Rust workspace on Windows (PowerShell). Every path in this plan is relative to its root, except the guide paths in steps 5 and 6 (see Docs).
- Setup: `npm ci --prefix crates/workshop` (Node 22) before cargo commands that build the Workshop (`.github/workflows/ci.yml`).
- Build: `cargo build --locked -p workshop` (`.github/workflows/ci.yml` line 198).
- Package tests: `cargo nextest run --locked -p <package>`, for example `-p runvil-engine`, `-p runvil-lua`, `-p harness-runner`, `-p workshop-agents` (`plan/2026-11-08-1-per-run-packs.plan.md`, Notes).
Expand All @@ -29,7 +29,7 @@ Every chain of a run gets an inbox in the Engine. The Host sends the operator's
- Wording: `node --test crates/workshop/ui/test/docs-claims.mjs`, from any directory.
- Rustdoc: run `$env:RUSTDOCFLAGS = '-D warnings'` first, then `cargo doc --workspace --no-deps --all-features --exclude workshop --exclude workshop-server --exclude workshop-server-api`, `cargo doc -p runvil --no-deps`, `cargo doc -p harness --no-deps`, `cargo doc --locked --no-deps --all-features -p runvil-engine --document-private-items`, and `cargo doc --locked --no-deps -p workshop-server --document-private-items` (`.github/workflows/ci.yml` lines 97 to 108 and 154). A doc link to an item a step removes fails these.
- API surface: run `Remove-Item Env:CARGO_BUILD_WARNINGS -ErrorAction SilentlyContinue`, then `cargo +nightly-2026-09-05 xtask api --check` (toolchain pinned in `crates/build-xtask/src/api/toolchain.rs` line 19). A step that changes the `runvil` facade regenerates `crates/runvil/public-api.txt` with `cargo +nightly-2026-09-05 xtask api --bless`; a plain `xtask api` only prints the difference (`crates/build-xtask/src/api.rs` lines 31 to 35).
- Docs: the language guide is the sibling repository `runvil-docs` (`c:\Users\Vinnie\cursor\runvil-docs`), and the `src/language/` paths in steps 5 and 6 are relative to its root. Build it from the `runvil` root: run `$env:RUNVIL_DOCS = 'c:\Users\Vinnie\cursor\runvil-docs'`, put `$env:USERPROFILE\.cargo\bin` on `PATH` (or set `$env:MDBOOK`), run `cargo xtask site --books-only`, which stages the chapters, builds them with mdbook, and checks links, then run `cargo test -p build-user-guide` (`runvil-docs` files `CONTRIBUTING.md` line 7 and `plans/build-language-guide.md` line 149). House rules: no em dash and no double dash, every code fence opens with four backticks, and each paragraph stays on one line (`runvil-docs` file `CONTRIBUTING.md` lines 14 to 18). Write each rule as steps 1 to 4 built it, checked against their tests. Steps 5 and 6 come before step 7 so that the final step builds and tests `runvil` as a whole. The guide therefore drops the `user-input` Pack, `input.ask`, the input broker, and host services, and describes the chat agent's new loop, before step 7 changes the code to match.
- Docs: the language guide is the sibling repository `runvil-docs` (`../runvil-docs`), and the `src/language/` paths in steps 5 and 6 are relative to its root. Build it from the `runvil` root: run `$env:RUNVIL_DOCS = '../runvil-docs'`, put `$env:USERPROFILE\.cargo\bin` on `PATH` (or set `$env:MDBOOK`), run `cargo xtask site --books-only`, which stages the chapters, builds them with mdbook, and checks links, then run `cargo test -p build-user-guide` (`runvil-docs` files `CONTRIBUTING.md` line 7 and `plans/build-language-guide.md` line 149). House rules: no em dash and no double dash, every code fence opens with four backticks, and each paragraph stays on one line (`runvil-docs` file `CONTRIBUTING.md` lines 14 to 18). Write each rule as steps 1 to 4 built it, checked against their tests. Steps 5 and 6 come before step 7 so that the final step builds and tests `runvil` as a whole. The guide therefore drops the `user-input` Pack, `input.ask`, the input broker, and host services, and describes the chat agent's new loop, before step 7 changes the code to match.
- Guide steps: steps 5 and 6 change files only in `runvil-docs`, so for those two steps `runvil-docs` is the repository: run their git commands there and take their commit hashes from it. The plan copy stays in `runvil`, outside `runvil-docs`, so commit it apart from the guide: right after a guide step's first commit in `runvil-docs`, commit the plan copy alone in `runvil` with the same message. From then on, an amend that stages the plan copy amends that `runvil` commit, and an amend of guide files amends the `runvil-docs` commit. On resume, take a guide step's commit from `runvil-docs`'s HEAD. Before step 5 makes its first change, check that `runvil-docs` has a clean worktree; when it does not, stop and ask the user.
- Unrelated, unfixed: `runvil-docs` chapter 04's `### Unavailable Packs` quotes the log `Pack construct failed; it is built as unavailable`, which no longer exists, and omits a factory refusing one run; `crates/harness-internal/runner/src/packs.rs` logs `Pack was inserted unavailable` (line 123) and the per-run refusal and panic (lines 310 and 319).
- Unrelated, unfixed: `runvil-docs` chapter 16's `### Run codes` still says `requirements_unmet` covers a required Pack that needs a service the run lacks, though the guide no longer describes host services and `requirements.rs` checks none.
Expand Down
6 changes: 3 additions & 3 deletions plan/2026-11-08-3-run-inbox-fixes.plan.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ The language guide and the Rust docs say what the code does.

## Notes

- Repository: `c:\Users\Vinnie\cursor\runvil`, a Rust workspace on Windows (PowerShell) with a TypeScript UI under `crates/workshop`. Every path in this plan is relative to its root, except the guide paths in step 4 (see Docs).
- Repository: `runvil`, a Rust workspace on Windows (PowerShell) with a TypeScript UI under `crates/workshop`. Every path in this plan is relative to its root, except the guide paths in step 4 (see Docs).
- Setup: `npm ci --prefix crates/workshop` (Node 22) before cargo commands that build the Workshop (`.github/workflows/ci.yml`).
- Build: `cargo build --locked -p workshop` (`.github/workflows/ci.yml` line 198).
- Package tests: `cargo nextest run --locked -p <package>`, for example `-p runvil-engine`, `-p runvil-lua`, `-p harness-runner`, `-p workshop-server`, `-p workshop-agents` (`plan/2026-11-08-1-per-run-packs.plan.md`, Notes). UI tests: one file with `node --test test/<file>.mjs` from `crates/workshop/ui`, which is how the `test` script in `crates/workshop/ui/package.json` runs the suite.
Expand All @@ -51,8 +51,8 @@ The language guide and the Rust docs say what the code does.

These come from `.github/workflows/ci.yml` lines 97 to 108 and 154.
- API surface: run `Remove-Item Env:CARGO_BUILD_WARNINGS -ErrorAction SilentlyContinue`, then `cargo +nightly-2026-09-05 xtask api --check` (toolchain pinned in `crates/build-xtask/src/api/toolchain.rs` line 19). A step that changes the `runvil` facade regenerates `crates/runvil/public-api.txt` with `cargo +nightly-2026-09-05 xtask api --bless`; a plain `xtask api` only prints the difference (`crates/build-xtask/src/api.rs` lines 31 to 35).
- Docs: the language guide is the sibling repository `runvil-docs` (`c:\Users\Vinnie\cursor\runvil-docs`), and the `src/language/` paths in step 4 are relative to its root, with line numbers as they stand at its HEAD `1b19d20`.
- Build it from the `runvil` root: run `$env:RUNVIL_DOCS = 'c:\Users\Vinnie\cursor\runvil-docs'` and put `$env:USERPROFILE\.cargo\bin` on `PATH` (or set `$env:MDBOOK`).
- Docs: the language guide is the sibling repository `runvil-docs` (`../runvil-docs`), and the `src/language/` paths in step 4 are relative to its root, with line numbers as they stand at its HEAD `1b19d20`.
- Build it from the `runvil` root: run `$env:RUNVIL_DOCS = '../runvil-docs'` and put `$env:USERPROFILE\.cargo\bin` on `PATH` (or set `$env:MDBOOK`).
- Then run `cargo xtask site --books-only`, which stages the chapters, builds them with mdbook, and checks links, and then `cargo test -p build-user-guide`. Sources: `runvil-docs` files `CONTRIBUTING.md` line 7 and `plans/build-language-guide.md` line 149.
- House rules: no em dash and no double dash, every code fence opens with four backticks, and each paragraph stays on one line (`runvil-docs` file `CONTRIBUTING.md` lines 14 to 18).
- Write each rule as steps 1 to 3 built it, checked against their tests.
Expand Down
2 changes: 1 addition & 1 deletion vibe/2026-07/2026-07-29-4-webfetch-crate-extraction.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Built per [tools-public/how-to/how-to-vibe.md](tools-public/how-to/how-to-vibe.m

Guiding constraint from the author: every commit makes progress on its own. Each capability is defined, wired into `web_fetch`, and tested end-to-end in the same commit, and carries its own final error handling. No commit builds unused scaffolding that a later commit exists to realize.

To generate the design document: spawn one subagent whose entire prompt is - read this plan at `c:\Users\Vinnie\.cursor\plans\webfetch_crate_extraction_cf3b8853.plan.md`, grep for `<design-doc>`, and follow the block inside it. It writes `design-webfetch.md` (prose only, no code) into the crate directory.
To generate the design document: spawn one subagent whose entire prompt is - read this plan at `vibe/2026-07/2026-07-29-4-webfetch-crate-extraction.md`, grep for `<design-doc>`, and follow the block inside it. It writes `design-webfetch.md` (prose only, no code) into the crate directory.

## House rules (load first)

Expand Down
10 changes: 5 additions & 5 deletions vibe/2026-08/2026-08-02-2-mcp-server.md
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ A glob-matched file that declares no `runvil:` version is not a prompt and is sk

Each step is one commit carrying its code, its tests, and its doc comments.

House rules, in force for every step: `c:\Users\Vinnie\src\cursor\tools-public\how-to\rust-how-to.md` is the language guide and binds each change; `runvil/AGENTS.md` is the repository's own; the plan is the spec. What they settle that this plan does not repeat: unit tests live in `#[cfg(test)] mod tests` in the file under test, integration tests in one binary at `crates/runvil-mcp/tests/it/main.rs` with `mod` per area, `lib.rs` holds crate docs and `mod`/`pub use` and no logic, every public item carries a `///` with `# Errors` where it returns `Result`, error `Display` text is a lowercase noun phrase with no `failed to` and no trailing period, public error enums are `#[non_exhaustive]` and leak no dependency's error type, `anyhow` appears in the binary and never in a public signature, no file passes 500 lines, and filesystem tests use `tempfile::TempDir` rather than writing in the tree.
House rules, in force for every step: `../tools-public/how-to/rust-how-to.md` is the language guide and binds each change; `runvil/AGENTS.md` is the repository's own; the plan is the spec. What they settle that this plan does not repeat: unit tests live in `#[cfg(test)] mod tests` in the file under test, integration tests in one binary at `crates/runvil-mcp/tests/it/main.rs` with `mod` per area, `lib.rs` holds crate docs and `mod`/`pub use` and no logic, every public item carries a `///` with `# Errors` where it returns `Result`, error `Display` text is a lowercase noun phrase with no `failed to` and no trailing period, public error enums are `#[non_exhaustive]` and leak no dependency's error type, `anyhow` appears in the binary and never in a public signature, no file passes 500 lines, and filesystem tests use `tempfile::TempDir` rather than writing in the tree.

Every step also updates `STATUS.md` and `README.md` in its own commit, per `AGENTS.md`. An earlier draft of this plan deferred both to the shipping step; that contradicts the repository rule and defeats what STATUS.md is for, which is being true for the next fresh context rather than true at the end. `Event` also derives `PartialEq`, which the step 1 review asked for so tests compare values instead of serialized JSON.

Expand Down Expand Up @@ -375,20 +375,20 @@ Most tests need no gateway: a prompt whose Lua block returns a value finishes wi

13. **Ship it.** A working `prompts.toml` beside the existing `gateway.toml`, the Cursor and Claude Code configuration snippets in `README.md`, the recommended developer loop (write as `list`, promote when stable), and a final pass over `STATUS.md` (which every prior step has kept current). Test: the shipped example config parses and validates against the repo's `prompts/` directory, and `RUSTDOCFLAGS="-D warnings" cargo doc --no-deps --all-features` is clean.

14. **Generate the design document.** By now the plan's decisions have been kept current commit by commit, so the generator composes rather than reconstructs. After implementation is complete: spawn one subagent whose entire prompt is - read this plan at `c:\Users\Vinnie\.cursor\plans\runvil_mcp_server_63a2e252.plan.md`, grep it for the literal string `design-doc`, and follow the instructions in the block those tag lines delimit. Slug: `runvil-mcp`.
14. **Generate the design document.** By now the plan's decisions have been kept current commit by commit, so the generator composes rather than reconstructs. After implementation is complete: spawn one subagent whose entire prompt is - read this plan at `vibe/2026-08/2026-08-02-2-mcp-server.md`, grep it for the literal string `design-doc`, and follow the instructions in the block those tag lines delimit. Slug: `runvil-mcp`.

## 8. How to run each step

Write the code in one subagent, review in a second, fix in a third. Keep git in the main context, where its output is bounded.

- To build step N: hand the subagent this plan's path and the step number, tell it to read `c:\Users\Vinnie\src\cursor\tools-public\how-to\rust-how-to.md` first, and tell it to implement only that step.
- To review: the reviewer applies the general checks in `c:\Users\Vinnie\src\cursor\tools-public\how-to\vibe-how-to.md` (grep it for `code-review`), the language checks in `rust-how-to.md`, and the project checks in this plan (grep for `mcp-review`); it reads the diff for the step's commit and overwrites `vibe-review.md` with its findings.
- To build step N: hand the subagent this plan's path and the step number, tell it to read `../tools-public/how-to/rust-how-to.md` first, and tell it to implement only that step.
- To review: the reviewer applies the general checks in `../tools-public/how-to/vibe-how-to.md` (grep it for `code-review`), the language checks in `rust-how-to.md`, and the project checks in this plan (grep for `mcp-review`); it reads the diff for the step's commit and overwrites `vibe-review.md` with its findings.
- To fix: send a third subagent to `vibe-review.md`, then re-run the gate and amend the commit. The gate is `cargo fmt --all --check`, `cargo clippy --workspace --all-targets --all-features -- -D warnings`, and `cargo test --locked --workspace --all-features`, plus the same clippy and test pair for `-p runvil-mcp --no-default-features`. Step 12's review found the picker-off configuration failing clippy while passing `cargo check`, which is what added the second pair: a feature combination nothing lints is a feature combination nobody is keeping.

**Keep the record current.** A step whose implementation contradicts, extends, or resolves a decision in section 2 or a contract in section 6 edits that decision in this plan, in the same commit, saying what the implementation forced and why. A step that changes nothing about the design writes nothing. This plan is the design record and the only thing that carries reasoning forward; a diff can show that a default changed and can never show why. The document itself is not written until the last step, because ranking the choices by importance is a judgment about the whole design and cannot be made a step at a time.

<mcp-review>
Project checks, applied in addition to the general ones and to the language guide at c:\Users\Vinnie\src\cursor\tools-public\how-to\rust-how-to.md:
Project checks, applied in addition to the general ones and to the language guide at ../tools-public/how-to/rust-how-to.md:

1. Does every public item carry a `///` with `# Errors` wherever it returns `Result`, and does `RUSTDOCFLAGS="-D warnings" cargo doc --no-deps --all-features` pass?
2. Is the change free of `unwrap`, `expect`, and `unsafe` outside test code?
Expand Down
Loading
Loading