diff --git a/Cargo.toml b/Cargo.toml index 57be93f42..60bfae354 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" diff --git a/plan/2026-11-07-1-host-runsetup-harness.plan.md b/plan/2026-11-07-1-host-runsetup-harness.plan.md index ad55d6952..dccf18c3f 100644 --- a/plan/2026-11-07-1-host-runsetup-harness.plan.md +++ b/plan/2026-11-07-1-host-runsetup-harness.plan.md @@ -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 `. Source: `AGENTS.md:46-50`. - **Full suite:** run both of these. Source: `AGENTS.md:46-50`, `.github/workflows/ci.yml`. diff --git a/plan/2026-11-08-1-per-run-packs.plan.md b/plan/2026-11-08-1-per-run-packs.plan.md index 2e9785cbe..98be76268 100644 --- a/plan/2026-11-08-1-per-run-packs.plan.md +++ b/plan/2026-11-08-1-per-run-packs.plan.md @@ -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 `, 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. diff --git a/plan/2026-11-08-2-run-inbox-user-pack.plan.md b/plan/2026-11-08-2-run-inbox-user-pack.plan.md index 8d2779a3c..26ea030c5 100644 --- a/plan/2026-11-08-2-run-inbox-user-pack.plan.md +++ b/plan/2026-11-08-2-run-inbox-user-pack.plan.md @@ -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 `, 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). @@ -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. diff --git a/plan/2026-11-08-3-run-inbox-fixes.plan.md b/plan/2026-11-08-3-run-inbox-fixes.plan.md index 0ba707e43..b4a435c3d 100644 --- a/plan/2026-11-08-3-run-inbox-fixes.plan.md +++ b/plan/2026-11-08-3-run-inbox-fixes.plan.md @@ -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 `, 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/.mjs` from `crates/workshop/ui`, which is how the `test` script in `crates/workshop/ui/package.json` runs the suite. @@ -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. diff --git a/vibe/2026-07/2026-07-29-4-webfetch-crate-extraction.md b/vibe/2026-07/2026-07-29-4-webfetch-crate-extraction.md index 5040bf821..cf41e5f16 100644 --- a/vibe/2026-07/2026-07-29-4-webfetch-crate-extraction.md +++ b/vibe/2026-07/2026-07-29-4-webfetch-crate-extraction.md @@ -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 ``, 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 ``, and follow the block inside it. It writes `design-webfetch.md` (prose only, no code) into the crate directory. ## House rules (load first) diff --git a/vibe/2026-08/2026-08-02-2-mcp-server.md b/vibe/2026-08/2026-08-02-2-mcp-server.md index ad8c255b4..f828c7ed3 100644 --- a/vibe/2026-08/2026-08-02-2-mcp-server.md +++ b/vibe/2026-08/2026-08-02-2-mcp-server.md @@ -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. @@ -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. -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? diff --git a/vibe/2026-08/2026-08-03-1-mcp-server-correction.md b/vibe/2026-08/2026-08-03-1-mcp-server-correction.md index 1a5a87f5c..5941df163 100644 --- a/vibe/2026-08/2026-08-03-1-mcp-server-correction.md +++ b/vibe/2026-08/2026-08-03-1-mcp-server-correction.md @@ -151,7 +151,7 @@ Each step is one commit with its code, tests, and doc comments. **A code step that falsifies an example fixes that example in the same commit, even when the document is scheduled for rewrite later.** Steps 17 through 19 rewrite the crate's design document, but a reader between here and there should not be told to write a configuration that no longer loads or to call a tool that no longer exists. The repair is narrow - the example, the sentence around it, nothing else - and the rewrite still happens later. This is the same judgement that pulled the shipped `prompts.toml` into step 1, and it applies to `README.md`, `STATUS.md`, and any design document a step invalidates. -House rules are unchanged from the previous plan: `c:\Users\Vinnie\src\cursor\tools-public\how-to\rust-how-to.md` binds every change, `runvil/AGENTS.md` is the repository's own, `STATUS.md` and `README.md` move with every commit, and a step whose implementation contradicts a decision here revises this plan in the same commit. +House rules are unchanged from the previous plan: `../tools-public/how-to/rust-how-to.md` binds every change, `runvil/AGENTS.md` is the repository's own, `STATUS.md` and `README.md` move with every commit, and a step whose implementation contradicts a decision here revises this plan in the same commit. The gate for every step is `cargo fmt --all --check`, `cargo clippy --workspace --all-targets --all-features -- -D warnings`, the same clippy for `-p runvil-mcp-server --no-default-features`, `cargo test --locked --workspace --all-features`, and `cargo test -p runvil-mcp-server --no-default-features`. Note that a running server holds a lock on its own binary on Windows; stop it before building. @@ -234,13 +234,13 @@ Nineteen steps, and the three-commit shape is not negotiable for a document that Three subagents per step, and this applies to the document steps exactly as it does to the code ones: one writes, a second reviews with a fresh view, a third fixes, with findings passing through `vibe-review.md` and nowhere else. A document commit gets the same cold review as a code commit, because a migration that silently drops a paragraph or calls an unbuilt thing built is the same class of defect as a bug and is harder to notice later. -**Dispatch by reference, never by copy.** A dispatch carries the path to this plan, the step number, the path to `c:\Users\Vinnie\src\cursor\tools-public\how-to\rust-how-to.md`, and nothing else of substance. It does not restate the step, and it does not carry guidance invented at dispatch time. If a subagent needs to know something, that something is written into this plan first and the dispatch points at it - otherwise the real instructions live in a chat message that no later reader can find, and a prompt that inlines its constraints is a prompt that can be shortened into one that drops half of them. This was violated throughout the previous build and is the discipline most worth keeping here. +**Dispatch by reference, never by copy.** A dispatch carries the path to this plan, the step number, the path to `../tools-public/how-to/rust-how-to.md`, and nothing else of substance. It does not restate the step, and it does not carry guidance invented at dispatch time. If a subagent needs to know something, that something is written into this plan first and the dispatch points at it - otherwise the real instructions live in a chat message that no later reader can find, and a prompt that inlines its constraints is a prompt that can be shortened into one that drops half of them. This was violated throughout the previous build and is the discipline most worth keeping here. **What the main context does.** It commits, amends, reads bounded output such as a status line or a test summary, and decides what to dispatch next. It does not read source, diffs, or design documents: those are dispatches, because their size depends on what they contain and the context holding the plan has to survive nineteen steps. A finding that needs judgement comes back as a subagent's report, not as a file for me to read. **Migrations start with an audit.** For each of steps 8, 11, 14, and 17, the first act is a read-only subagent that checks the document against its crate's code and reports, claim by claim, what is built and what is not, citing the file that proves each. The refactor is written from that report. The divergence is the whole difficulty of these steps, and a writer that audits and rewrites in one pass will believe the document. -To review, apply the general checks in `c:\Users\Vinnie\src\cursor\tools-public\how-to\vibe-how-to.md` (grep it for `code-review`), the language rules in `rust-how-to.md`, and the project checks below. +To review, apply the general checks in `../tools-public/how-to/vibe-how-to.md` (grep it for `code-review`), the language rules in `rust-how-to.md`, and the project checks below. Project checks, applied in addition to the general ones and to the language guide: diff --git a/vibe/2026-08/2026-08-04-1-recover-core-design-rationale.md b/vibe/2026-08/2026-08-04-1-recover-core-design-rationale.md index 7652f6f75..d9dc46c8d 100644 --- a/vibe/2026-08/2026-08-04-1-recover-core-design-rationale.md +++ b/vibe/2026-08/2026-08-04-1-recover-core-design-rationale.md @@ -38,11 +38,11 @@ isProject: false Every relative path below is relative to the code repository. Nothing in this plan depends on anything said in the conversation that produced it. -- Code repository, and the only git repository this plan commits to: `c:\Users\Vinnie\src\cursor\runvil` +- Code repository, and the only git repository this plan commits to: `runvil` - The crate under study: `crates/runvil-core` - The ledger: `research/2026-08-03-recover-rationale-runvil-core.md`, inside the code repository, so each step is a real commit with a real diff -- Review findings, overwritten each cycle: `c:\Users\Vinnie\src\cursor\cabinet\_scratch\recover-rationale\vibe-review.md` -- Pass 1 group files, one per extraction step: `c:\Users\Vinnie\src\cursor\cabinet\_scratch\recover-rationale\group-.md` +- Review findings, overwritten each cycle: `../cabinet/_scratch/recover-rationale/vibe-review.md` +- Pass 1 group files, one per extraction step: `../cabinet/_scratch/recover-rationale/group-.md` ## 1. What this is and why it might work @@ -66,7 +66,7 @@ The failure mode this guards against is confident fabrication. A model asked why ## 2. The method, precisely -**What counts as a design element.** Include it only if changing it would change one of three things: what a person sees, reads, writes, types, or names - for a library that means the public API and its contracts, and it emphatically includes the *names*; or the shape of the system; or something costly to reverse that nobody sees, such as an on-disk format, a cross-cutting convention, or a security or failure-mode trade-off. A private helper, an internal algorithm, or a dependency version is implementation. This test is stated at length in the `design-doc` block at the end of `c:\Users\Vinnie\src\cursor\tools-public\tools\architect.md`. +**What counts as a design element.** Include it only if changing it would change one of three things: what a person sees, reads, writes, types, or names - for a library that means the public API and its contracts, and it emphatically includes the *names*; or the shape of the system; or something costly to reverse that nobody sees, such as an on-disk format, a cross-cutting convention, or a security or failure-mode trade-off. A private helper, an internal algorithm, or a dependency version is implementation. This test is stated at length in the `design-doc` block at the end of `../tools-public/tools/architect.md`. **What counts as evidence.** Anything structural in the permitted sources: a type, a signature, a lint setting, an edition, a test that would fail otherwise, a trait bound, a name, an absence where a presence would be expected. Also the language and its ecosystem - knowing that `set_var` is unsafe in edition 2024 is reasoning, not reading. Plausibility is *not* evidence. "This is the sort of thing people do for testability" kills nothing. @@ -154,7 +154,7 @@ These four steps carry no commit of their own. The group files are scratch and l Pass 1 leaves most records narrowed or open - on the order of four dozen - and each one needs the whole archive searched against it, so this runs as three agents over disjoint thirds of the record list rather than one agent over all of them. Splitting by record cannot produce two proposals for one element the way splitting by archive source would, since no two agents share a record. Each writes to its own proposal file in the scratch directory from section 0 and none touches the ledger; a fourth agent then appends all three into the ledger, which is also the only place a proposal that bears on two records can be noticed. The commit is still one commit. -8. **Write `crates/runvil-core/design-core-recovered.md` as a design document, organized by the system rather than by the ledger.** Follow the `design-doc` block at the end of `c:\Users\Vinnie\src\cursor\tools-public\tools\architect.md`: it is the authority on the document's shape - three fixed opening sections, ten to fifteen headline choices with the rest demoted to a line, headings that state a point, ordered by importance, naming no source document. The ledger is the evidence behind the document, not its outline: consult it, never transcribe it. A document a reader could rebuild by rewording the ledger one record at a time has failed, however clean its sentences, because the reader wanted the crate and got the audit trail. Stay blind to the existing `design-core.md` - do not read it - so the recovered document is an independent artifact the two can be compared against; leave it untouched. +8. **Write `crates/runvil-core/design-core-recovered.md` as a design document, organized by the system rather than by the ledger.** Follow the `design-doc` block at the end of `../tools-public/tools/architect.md`: it is the authority on the document's shape - three fixed opening sections, ten to fifteen headline choices with the rest demoted to a line, headings that state a point, ordered by importance, naming no source document. The ledger is the evidence behind the document, not its outline: consult it, never transcribe it. A document a reader could rebuild by rewording the ledger one record at a time has failed, however clean its sentences, because the reader wanted the crate and got the audit trail. Stay blind to the existing `design-core.md` - do not read it - so the recovered document is an independent artifact the two can be compared against; leave it untouched. The block covers the document's shape and its "why"; the one thing it does not cover is how to be honest about what code alone could not establish, which is this method's whole point and its trap. The rule: the audience is a reader learning the crate, not an auditor of the recovery. - Where the code forced the reason, state it as fact, which is the block's own "why". @@ -178,7 +178,7 @@ This plan exists because the documents this repository produces keep failing in **Never count what you do not name.** "Two of those five are refuted by the code" sends a reader hunting. Name the two. -Checks for this work, applied with the general ones in `c:\Users\Vinnie\src\cursor\tools-public\how-to\vibe-how-to.md` (grep it for `code-review`): +Checks for this work, applied with the general ones in `../tools-public/how-to/vibe-how-to.md` (grep it for `code-review`): 1. Does every record carry at least three genuinely competing explanations, rather than one idea in four costumes? 2. Does every dead hypothesis cite evidence that exists - open the file and confirm it says what the record claims - and does that evidence make the hypothesis impossible or unnecessary, rather than merely unlikely? diff --git a/vibe/2026-08/2026-08-05-1-section-lua-lifecycle.md b/vibe/2026-08/2026-08-05-1-section-lua-lifecycle.md index 53a65656c..b0b39f1f5 100644 --- a/vibe/2026-08/2026-08-05-1-section-lua-lifecycle.md +++ b/vibe/2026-08/2026-08-05-1-section-lua-lifecycle.md @@ -56,7 +56,7 @@ isProject: false Runvil will parse one required H1, one optional shared `lua prompt` block immediately after it, and H2 sections containing an optional leading Lua preamble, prose, and optional trailing Lua epilog. Parsing compiles every Lua region once into source-backed process-local bytecode. Launch binding resolves prompt-local capability aliases to stable live `ToolId` values through `runvil-tool-picker`. Execution creates one isolated VM per section, preserves its globals and functions across the model turn, exposes the final model text as `reply`, runs the epilog, and destroys the VM. One report-only observer receives deterministic `(Section, Detail)` strings across parsing, binding, execution, Lua phases, scope validation, model and tool boundaries, and harness-mediated store operations. -The new [`design-core.md`](C:/Users/Vinnie/src/cursor/runvil/crates/runvil-core/design-core.md) is the authoritative design and is updated with each behavior-bearing step. [`design-core-orig.md`](C:/Users/Vinnie/src/cursor/runvil/crates/runvil-core/design-core-orig.md) remains byte-for-byte historical. Fan-out execution, branching, retries, child execution, persistent bytecode, compatibility parsing, reranking, and model-generated progress labels are non-goals. +The new `crates/runvil-core/design-core.md` is the authoritative design and is updated with each behavior-bearing step. `crates/runvil-core/design-core-orig.md` remains byte-for-byte historical. Fan-out execution, branching, retries, child execution, persistent bytecode, compatibility parsing, reranking, and model-generated progress labels are non-goals. Two rules govern every choice: @@ -155,15 +155,15 @@ Each step carries its code, owning regression tests, Rust documentation, and the - Test: trait compatibility, null behavior, deterministic ordering, exact safe strings, failure reports, payload exclusion, execution equivalence between recording and null observers, and MCP handling of recognized and unknown details. - Complete when `Event` and its wire format no longer exist and observer choice cannot change execution behavior. 2. **Stable live-tool identity** - - Code: extend [`tools.rs`](C:/Users/Vinnie/src/cursor/runvil/crates/runvil-core/src/tools.rs) and concrete tools with stable `ToolId`, description, and schema fidelity; preserve concrete wire names only as transport details. + - Code: extend `crates/runvil-core/src/tools.rs` and concrete tools with stable `ToolId`, description, and schema fidelity; preserve concrete wire names only as transport details. - Test: descriptor fidelity and ID-based registry lookup. - Complete when current Hosts compile against the identity surface without semantic binding. 3. **Picker near-duplicate primitive** - - Code: add public `NearDuplicate` and `ToolPicker::near_duplicates(ids)` in [`runvil-tool-picker`](C:/Users/Vinnie/src/cursor/runvil/crates/runvil-tool-picker), reusing stored vectors and `duplicate_threshold`. + - Code: add public `NearDuplicate` and `ToolPicker::near_duplicates(ids)` in `crates/runvil-tool-picker`, reusing stored vectors and `duplicate_threshold`. - Test: absent and repeated IDs, below threshold, exact threshold, cross-server pairs, and deterministic order. - Complete when picker tests pass without a core dependency. 4. **Parse-time `LuaProgram`** - - Code: add source retention, compilation, bytecode dump and load, a location-bearing compilation error, and safe parse and compile reports in [`lua.rs`](C:/Users/Vinnie/src/cursor/runvil/crates/runvil-core/src/lua.rs) and [`error.rs`](C:/Users/Vinnie/src/cursor/runvil/crates/runvil-core/src/error.rs). + - Code: add source retention, compilation, bytecode dump and load, a location-bearing compilation error, and safe parse and compile reports in `crates/runvil-core/src/lua.rs` and `crates/runvil-core/src/error.rs`. - Test: bytecode round trip, malformed Lua, and source-bearing diagnostics. - Complete when parser and executor remain otherwise unchanged. 5. **Persistent `SectionVm`** @@ -199,15 +199,15 @@ Each step carries its code, owning regression tests, Rust documentation, and the - Test: no automatic injection, `always`, H2 `add`, aliased schemas, concrete dispatch, similar tools isolated in separate sections, and near-duplicate failure before model. - Complete when prompt code requires no canonical tool name. 13. **CLI registry integration** - - Code: construct the complete live registry and matching picker catalog in [`runvil-cli`](C:/Users/Vinnie/src/cursor/runvil/crates/runvil-cli); omit unavailable gateway tools, bind synchronously, and pass `NullObserver` unless the caller installs another observer. + - Code: construct the complete live registry and matching picker catalog in `crates/runvil-cli`; omit unavailable gateway tools, bind synchronously, and pass `NullObserver` unless the caller installs another observer. - Test: available binding, absent unavailable capability, and ID agreement. - Complete when CLI selection uses needs only. 14. **MCP registry integration** - - Code: construct or share the prepared picker and complete live registry in [`runvil-mcp-server`](C:/Users/Vinnie/src/cursor/runvil/crates/runvil-mcp-server); move binding to `spawn_blocking`; consume reports and recognize only pinned cosmetic details. + - Code: construct or share the prepared picker and complete live registry in `crates/runvil-mcp-server`; move binding to `spawn_blocking`; consume reports and recognize only pinned cosmetic details. - Test: registry agreement, semantic binding, `Send` execution, pinned progress details, and unknown-detail tolerance. - Complete when CLI and MCP use the same core contract. 15. **Repository migration and authoritative design** - - Code: add the missing H1 to [`research-person.md`](C:/Users/Vinnie/src/cursor/runvil/prompts/research-person.md), replace YAML tool names with aliased needs, and use `tools.always` only where universal. + - Code: add the missing H1 to `prompts/research-person.md`, replace YAML tool names with aliased needs, and use `tools.always` only where universal. - Test: every repository prompt parses and binds under the new grammar. - Docs: finish `design-core.md`, README, and STATUS; document the spike's domain-dependent reranker results; leave `design-core-orig.md` unchanged. - Complete when the full workspace verification suite passes and no documentation describes the old grammar. @@ -300,10 +300,10 @@ Each step carries its code, owning regression tests, Rust documentation, and the ## Vibe execution protocol 1. The main context selects one numbered step, previews exactly what the implementer will receive, and dispatches an implementation subagent with this plan path and step number. -2. The implementer reads this plan, [`rust-how-to.md`](C:/Users/Vinnie/src/cursor/tools-public/how-to/rust-how-to.md), and repository rules; implements only that step; adds its tests and documentation; and runs targeted checks. +2. The implementer reads this plan, `../tools-public/how-to/rust-how-to.md`, and repository rules; implements only that step; adds its tests and documentation; and runs targeted checks. 3. The main context performs only bounded status and verification checks. If commit creation has not been explicitly authorized, it stops with a verified working tree. 4. After explicit authorization, the main context stages and creates the step commit. -5. A fresh reviewer reads the commit diff, the general review block in [`vibe-how-to.md`](C:/Users/Vinnie/src/cursor/tools-public/how-to/vibe-how-to.md), and ``. It overwrites scratch `vibe-review.md` with actionable failures only. +5. A fresh reviewer reads the commit diff, the general review block in `../tools-public/how-to/vibe-how-to.md`, and ``. It overwrites scratch `vibe-review.md` with actionable failures only. 6. A fresh fixer reads the numbered step and scratch review, applies only listed corrections, and reruns checks. 7. Review and fix repeat until the scratch review is empty. Amend only when the commit was created in this session, remains unpushed, and amendment is authorized. 8. A bug introduced by an earlier completed commit gets its own explicitly authorized fix commit. diff --git a/vibe/2026-08/2026-08-06-1-prompt-fixtures-logging.md b/vibe/2026-08/2026-08-06-1-prompt-fixtures-logging.md index 7cac7d5c0..84bd7841f 100644 --- a/vibe/2026-08/2026-08-06-1-prompt-fixtures-logging.md +++ b/vibe/2026-08/2026-08-06-1-prompt-fixtures-logging.md @@ -98,7 +98,7 @@ crates/runvil-core-tests/ real-tool-call.md ``` -- Move the user-created [`runvil-core/tests/valid/1.md`](C:/Users/Vinnie/src/cursor/runvil/crates/runvil-core/tests/valid/1.md) to `runvil-core-tests/prompts/valid/minimal.md` and use it as the canonical minimum prompt after version removal. +- Move the user-created `crates/runvil-core/tests/valid/1.md` to `runvil-core-tests/prompts/valid/minimal.md` and use it as the canonical minimum prompt after version removal. - Register each fixture explicitly with `include_str!`; do not add directory discovery, TOML manifests, generated loaders, or build scripts. - Valid cases assert parsed structure. Invalid cases assert the error variant and a stable message fragment. Execution cases assert result, store effects, and exact `(execution, section, detail)` checkpoints without a live network or model. - Keep current inline tests for exact fence near-misses, individual malformed fields, instruction budgets, mock gateway wire behavior, and picker policy. diff --git a/vibe/2026-08/2026-08-07-1-dev-loop.md b/vibe/2026-08/2026-08-07-1-dev-loop.md index 63f742353..67369d85a 100644 --- a/vibe/2026-08/2026-08-07-1-dev-loop.md +++ b/vibe/2026-08/2026-08-07-1-dev-loop.md @@ -57,14 +57,14 @@ flowchart LR ## Resolution 3: Settled behavior -### Server profiles ([server.rs](C:/Users/Vinnie/src/cursor/runvil/crates/runvil-core-tests/src/server.rs)) +### Server profiles (`crates/runvil-core-tests/src/server.rs`) - Add a `ServerProfile` threaded through `ServerGuard::start` and `server_args` (the `start_with` test seam at lines 143-205 already exists). - The scenario profile reproduces today's exact flags; the existing `invocation_pins_deterministic_jinja_settings` test keeps pinning it. - Dev profile: `--ctx-size` from `--context` (default 131072), `--n-predict` from `--max-tokens` (default 8192, reasoning chains are long), `--flash-attn on`, `--cache-type-k q8_0 --cache-type-v q8_0`, `-ngl 99`, `--jinja`, `--reasoning-format auto` with thinking enabled (a `--no-think` flag switches to the non-thinking preset), model-card sampling (`--temp 1.0 --top-p 0.95 --top-k 20 --presence-penalty 1.5`), `--parallel 1`. - The 9B is a hybrid model with only 8 of 32 full-attention layers, so 128K context KV fits comfortably beside ~5.7 GB weights in 16 GB VRAM. -### Artifacts ([artifacts.rs](C:/Users/Vinnie/src/cursor/runvil/crates/runvil-core-tests/src/artifacts.rs)) +### Artifacts (`crates/runvil-core-tests/src/artifacts.rs`) - Parameterize provisioning: `provision(ModelKind::Scenario | ModelKind::Dev)`. `Provisioner::provision_file` is already asset-generic; only the selected `FileAsset` and server asset table change. One call never downloads the other mode's artifacts. - Dev model pin (verified via the Hugging Face LFS metadata): @@ -75,11 +75,11 @@ flowchart LR ### Dev runner (new `src/dev.rs`) -- Mirrors the CLI pipeline ([runvil-cli/src/main.rs](C:/Users/Vinnie/src/cursor/runvil/crates/runvil-cli/src/main.rs) lines 49-117): read file, require `runvil_version`, `Prompt::parse`, build live registry, `ToolPicker::build`, `bind_prompt`, `execute::run` - but with `client: Some(GatewayClient::new(base_url, api_key, model_alias))` pointed at the guarded server, exactly as `scenarios.rs` does. No `runvil-gateway`. +- Mirrors the CLI pipeline (`crates/runvil-cli/src/main.rs` lines 49-117): read file, require `runvil_version`, `Prompt::parse`, build live registry, `ToolPicker::build`, `bind_prompt`, `execute::run` - but with `client: Some(GatewayClient::new(base_url, api_key, model_alias))` pointed at the guarded server, exactly as `scenarios.rs` does. No `runvil-gateway`. - Registry: port the CLI's `available_tools` construction (add `runvil-webfetch` workspace dep to this crate). `web_fetch` is always live; `web_search` joins only when `RUNVIL_TOKEN`/`RUNVIL_BASE_URL` name a gateway, otherwise a prompt needing search fails loudly as `Absent` at bind. - Execution ID `dev-{nonce:016x}` per run. Verbose observer prints every `(execution, section, detail)` record - including `Lua: ...` log checkpoints - to stderr; stdout carries only the final result string. Errors print with the server's bounded diagnostics. -### Dispatch and watch ([main.rs](C:/Users/Vinnie/src/cursor/runvil/crates/runvil-core-tests/src/main.rs)) +### Dispatch and watch (`crates/runvil-core-tests/src/main.rs`) - Hand-rolled `std::env::args` dispatch matching workspace convention (no clap; none exists in the workspace). Empty args or `scenarios` runs today's suite unchanged; `dev [input] [--watch] [--context N] [--max-tokens N] [--no-think]` runs the dev path. Unknown args fail with usage text. - The existing Ctrl-C `tokio::select!` wrapper in `main` is preserved and wraps both paths. @@ -107,7 +107,7 @@ Each step carries its code, its regression tests, and its documentation, is comm - Complete when `scenarios` remains default and byte-compatible and `dev --watch` logic is covered offline. 5. **Real-model verification and documentation closure** - Run `cargo run -p runvil-core-tests` (cache-only scenarios) and `cargo run -p runvil-core-tests -- dev "input"` twice: first run downloads the ~5.7 GB model plus the GPU server archive, second run must be cache-only. Verify a tool-calling prompt end to end and clean teardown. - - Docs: crate README (commands, flags, both model provenances, GPU archive provenance), root [README.md](C:/Users/Vinnie/src/cursor/runvil/README.md), [STATUS.md](C:/Users/Vinnie/src/cursor/runvil/STATUS.md), and the real-model item in [design-core.md](C:/Users/Vinnie/src/cursor/runvil/crates/runvil-core/design-core.md); `design-core-orig.md` stays byte-identical. + - Docs: crate README (commands, flags, both model provenances, GPU archive provenance), root `README.md`, `STATUS.md`, and the real-model item in `crates/runvil-core/design-core.md`; `design-core-orig.md` stays byte-identical. - Complete when both commands succeed, the second dev run reports only cache hits, and the full offline verification suite is green. ## Verification for every commit @@ -141,8 +141,8 @@ Each step carries its code, its regression tests, and its documentation, is comm ## Governing guides -- [tools-public/how-to/vibe-how-to.md](C:/Users/Vinnie/src/cursor/tools-public/how-to/vibe-how-to.md) governs the loop: one testable commit per step, fresh-context review, fixes folded back by amend, reversible decisions made without asking and recorded here with falsifiers. -- [tools-public/how-to/rust-how-to.md](C:/Users/Vinnie/src/cursor/tools-public/how-to/rust-how-to.md) governs every Rust edit: its non-negotiable rules bind each commit (tests land with code, lints in manifest tables, `Result` for expected failures, documented public items, fmt and Clippy clean before commit). +- `../tools-public/how-to/vibe-how-to.md` governs the loop: one testable commit per step, fresh-context review, fixes folded back by amend, reversible decisions made without asking and recorded here with falsifiers. +- `../tools-public/how-to/rust-how-to.md` governs every Rust edit: its non-negotiable rules bind each commit (tests land with code, lints in manifest tables, `Result` for expected failures, documented public items, fmt and Clippy clean before commit). - Every implementer, reviewer, and fixer subagent must read both files plus this plan before acting. ## Vibe execution protocol diff --git a/vibe/2026-08/2026-08-07-3-models-debug-cluster.md b/vibe/2026-08/2026-08-07-3-models-debug-cluster.md index f9329df92..0a0bc3a0c 100644 --- a/vibe/2026-08/2026-08-07-3-models-debug-cluster.md +++ b/vibe/2026-08/2026-08-07-3-models-debug-cluster.md @@ -24,8 +24,8 @@ isProject: false ## Governing guides -- [tools-public/rulebooks/vibe-rulebook.md](C:\Users\Vinnie\src\cursor\tools-public\rulebooks\vibe-rulebook.md) - bind for shape and discipline; execution uses the lean protocol below so the loop stays fast. -- [tools-public/rulebooks/rust-rulebook.md](C:\Users\Vinnie\src\cursor\tools-public\rulebooks\rust-rulebook.md) - tests land with code; `Result` for expected failures; fmt + clippy clean; documented public items with `# Errors`. +- `../tools-public/rulebooks/vibe-rulebook.md` - bind for shape and discipline; execution uses the lean protocol below so the loop stays fast. +- `../tools-public/rulebooks/rust-rulebook.md` - tests land with code; `Result` for expected failures; fmt + clippy clean; documented public items with `# Errors`. Scratch review file: `cabinet/_scratch/vibe-review-runvil-models/vibe-review.md` (overwrite each cycle; empty when clean). @@ -104,12 +104,12 @@ flowchart LR **Goal:** Hosts can opt into raw request/response capture without widening `Observer`. -In [runvil-core](C:\Users\Vinnie\src\cursor\runvil\crates\runvil-core): +In `crates/runvil-core`: - Add `DebugCapture: Send + Sync` trait with a single method that receives `(execution, section, turn_index, event)` where `event` is an owned enum carrying request body and/or response body as `serde_json::Value` (and finish_reason / reasoning_content when present). `NullDebugCapture` or `Option<&dyn DebugCapture>` on `RunOptions` - prefer `Option` so production runs pay zero. - Extend `RunOptions` with `debug: Option<&'a dyn DebugCapture>`. -- In [client.rs](C:\Users\Vinnie\src\cursor\runvil\crates\runvil-core\src\client.rs) / the tool loop in [execute.rs](C:\Users\Vinnie\src\cursor\runvil\crates\runvil-core\src\execute.rs): after building the request body and after parsing the response, call the capture when `Some`. Parsing must surface `finish_reason` and optional `reasoning_content` alongside today's `CompletionResult` (internal fields or a richer result type) so later steps can observe them; still do not put those payloads on the Observer. -- Dev runner in [runvil-core-tests](C:\Users\Vinnie\src\cursor\runvil\crates\runvil-core-tests): implement a capture that writes `turn-N-request.json` and `turn-N-response.json` under `.store/.trace/` (same dump directory as store files; announce on stderr). Wire it in `run_once` always for dev mode. +- In `crates/runvil-core/src/client.rs` / the tool loop in `crates/runvil-core/src/execute.rs`: after building the request body and after parsing the response, call the capture when `Some`. Parsing must surface `finish_reason` and optional `reasoning_content` alongside today's `CompletionResult` (internal fields or a richer result type) so later steps can observe them; still do not put those payloads on the Observer. +- Dev runner in `crates/runvil-core-tests`: implement a capture that writes `turn-N-request.json` and `turn-N-response.json` under `.store/.trace/` (same dump directory as store files; announce on stderr). Wire it in `run_once` always for dev mode. **Tests:** offline fake HTTP - capture receives request/response when set; `None` changes nothing; dump lands beside the prompt under `.trace/`. @@ -121,7 +121,7 @@ In [runvil-core](C:\Users\Vinnie\src\cursor\runvil\crates\runvil-core): **Goal:** payload-free signals that would have named today's empty `evidence.md`. -In [observe.rs](C:\Users\Vinnie\src\cursor\runvil\crates\runvil-core\src\observe.rs) `detail`: +In `crates/runvil-core/src/observe.rs` `detail`: - `MODEL_REPLY_EMPTY` = `"Model reply was empty"` - `MODEL_TURN_TRUNCATED` = `"Model turn truncated"` (when `finish_reason == "length"`) @@ -138,14 +138,14 @@ Emit from the tool loop when binding final text: empty `content` after a success **Goal:** the Harness fetches authoritative model metadata from the gateway. -In [runvil-gateway](C:\Users\Vinnie\src\cursor\runvil\crates\runvil-gateway): +In `crates/runvil-gateway`: -- Extend `ModelConfig` in [config.rs](C:\Users\Vinnie\src\cursor\runvil\crates\runvil-gateway\src\config.rs): +- Extend `ModelConfig` in `crates/runvil-gateway/src/config.rs`: - `description: String` (required for catalogued models - bind needs prose) - `context: u32` (context window size) - `thinking: ThinkingMode` enum: `never` | `always` | `switchable` (default `never` for today's Anthropic entry) - Add `GET /v1/models` (bearer-authed like chat) returning OpenAI-shaped list plus Runvil extensions in each object: `id` (= caller `name`), `description`, `context`, `thinking`. -- Update [gateway.toml](C:\Users\Vinnie\src\cursor\runvil\gateway.toml) with description/context/thinking for `claude-sonnet-4-6`. +- Update `gateway.toml` with description/context/thinking for `claude-sonnet-4-6`. - Leave chat passthrough unchanged (`rest` already carries temperature / max_tokens / chat_template_kwargs). **Tests:** config load rejects missing description/context; `/v1/models` returns the configured entries; unknown key still fails load. @@ -199,10 +199,10 @@ In [runvil-gateway](C:\Users\Vinnie\src\cursor\runvil\crates\runvil-gateway): ## Step 5 - User-facing docs pass and fixture -- Root [README.md](C:\Users\Vinnie\src\cursor\runvil\README.md): consolidate Prompt language (tools + models), Gateway `[[model]]` + `/v1/models`, Watching a run (new details), Dev loop (`.store` + `.trace`). -- [design-core.md](C:\Users\Vinnie\src\cursor\runvil\crates\runvil-core\design-core.md): authoritative lifecycle paragraphs for DebugCapture, model bind/execute, observer details. +- Root `README.md`: consolidate Prompt language (tools + models), Gateway `[[model]]` + `/v1/models`, Watching a run (new details), Dev loop (`.store` + `.trace`). +- `crates/runvil-core/design-core.md`: authoritative lifecycle paragraphs for DebugCapture, model bind/execute, observer details. - Crate READMEs for gateway and core-tests as needed. -- Update [briefer.md](C:\Users\Vinnie\src\cursor\runvil\briefer.md) (user prompt, keep untracked via exclude if needed) or add a tracked example under `prompts/` demonstrating: +- Update `briefer.md` (user prompt, keep untracked via exclude if needed) or add a tracked example under `prompts/` demonstrating: ```lua models.need("analyst", "A model suited for careful analysis", { thinking = false, temperature = 0, context = 40000 }) diff --git a/vibe/2026-08/2026-08-07-4-completion-normalize-layer.md b/vibe/2026-08/2026-08-07-4-completion-normalize-layer.md index 92e3a482e..edc8fd930 100644 --- a/vibe/2026-08/2026-08-07-4-completion-normalize-layer.md +++ b/vibe/2026-08/2026-08-07-4-completion-normalize-layer.md @@ -50,7 +50,7 @@ flowchart LR client --> loop ``` -Single new module: [`crates/runvil-core/src/normalize.rs`](C:\Users\Vinnie\src\cursor\runvil\crates\runvil-core\src\normalize.rs). +Single new module: `crates/runvil-core/src/normalize.rs`. | Piece | Role | |---|---| @@ -59,7 +59,7 @@ Single new module: [`crates/runvil-core/src/normalize.rs`](C:\Users\Vinnie\src\c | `OpenAiChatNormalizer` | Default impl: today's parse + synonyms + empty-text error | | `Error::EmptyModelReply` | Distinct from `MalformedResponse`; message names empty content (and that reasoning was ignored if present, without pasting it) | -[`GatewayClient::complete`](C:\Users\Vinnie\src\cursor\runvil\crates\runvil-core\src\client.rs) calls the normalizer instead of private `parse_completion`. For slender drop-in without threading every Host: store `Arc` on `GatewayClient`, defaulting to `OpenAiChatNormalizer` in `new` / `from_env`. A later Host can construct with another impl; execute and RunOptions stay unchanged. +`GatewayClient::complete` (`crates/runvil-core/src/client.rs`) calls the normalizer instead of private `parse_completion`. For slender drop-in without threading every Host: store `Arc` on `GatewayClient`, defaulting to `OpenAiChatNormalizer` in `new` / `from_env`. A later Host can construct with another impl; execute and RunOptions stay unchanged. Execute tool loop: `EmptyModelReply` from `complete` fires `MODEL_TURN_FAILED` and fails the run. Remove the soft path that observes `MODEL_REPLY_EMPTY` and continues with `reply == ""` - empty text must not reach epilogs. Truncation (`finish_reason == length`) remains an observer detail only when text is non-empty; empty+length is still `EmptyModelReply`. Retire or repurpose `MODEL_REPLY_EMPTY` in docs so it is not described as a successful-run signal. @@ -67,7 +67,7 @@ Execute tool loop: `EmptyModelReply` from `complete` fires `MODEL_TURN_FAILED` a ## Steps (lean vibe) -Governing guides: [vibe-rulebook](C:\Users\Vinnie\src\cursor\tools-public\rulebooks\vibe-rulebook.md) + [rust-rulebook](C:\Users\Vinnie\src\cursor\tools-public\rulebooks\rust-rulebook.md). Lean protocol: targeted tests in implementer; parallel full suite + diff-only review; **one amend round**; max three findings; never ask between steps. Scratch: `cabinet/_scratch/vibe-review-runvil-normalize/vibe-review.md`. +Governing guides: `../tools-public/rulebooks/vibe-rulebook.md` + `../tools-public/rulebooks/rust-rulebook.md`. Lean protocol: targeted tests in implementer; parallel full suite + diff-only review; **one amend round**; max three findings; never ask between steps. Scratch: `cabinet/_scratch/vibe-review-runvil-normalize/vibe-review.md`. ### Step 1 - Normalize module + hard-fail empty text diff --git a/vibe/2026-08/2026-08-08-4-add-sys-model.md b/vibe/2026-08/2026-08-08-4-add-sys-model.md index 8a0acb4a0..00fb14e1c 100644 --- a/vibe/2026-08/2026-08-08-4-add-sys-model.md +++ b/vibe/2026-08/2026-08-08-4-add-sys-model.md @@ -28,7 +28,7 @@ Runvil stops inventing a model or gateway endpoint. Prompts bind models. Hosts s ## Principle (design doc) -In [design-core.md](c:\Users\Vinnie\src\cursor\runvil\crates\runvil-core\design-core.md), near the top: +In `crates/runvil-core/design-core.md`, near the top: **No defaults. Everything explicit. Implicit is the enemy of precision.** @@ -105,7 +105,7 @@ Mirror in fanout arms. ### Commit 5 - briefer + docs sweep -[briefer.md](c:\Users\Vinnie\src\cursor\runvil\briefer.md) Report epilog: +`briefer.md` Report epilog: ```lua store.write("report.md", reply .. "\n\n*" .. sys.when .. " - " .. sys.model .. "*") diff --git a/vibe/2026-08/2026-08-08-5-extract-dev-crate.md b/vibe/2026-08/2026-08-08-5-extract-dev-crate.md index 9a652b864..3ba6ed75a 100644 --- a/vibe/2026-08/2026-08-08-5-extract-dev-crate.md +++ b/vibe/2026-08/2026-08-08-5-extract-dev-crate.md @@ -21,8 +21,8 @@ isProject: false Governing rulebooks (load before coding or reviewing): -- [`tools-public/rulebooks/vibe-rulebook.md`](c:\Users\Vinnie\src\cursor\tools-public\rulebooks\vibe-rulebook.md) -- [`tools-public/rulebooks/rust-rulebook.md`](c:\Users\Vinnie\src\cursor\tools-public\rulebooks\rust-rulebook.md) +- `../tools-public/rulebooks/vibe-rulebook.md` +- `../tools-public/rulebooks/rust-rulebook.md` House conventions come from existing leaf bins ([`runvil-cli`](runvil/crates/runvil-cli/), [`runvil-core-tests`](runvil/crates/runvil-core-tests/)): hand-rolled args (no clap), `anyhow` in binaries, workspace-inherited package fields and `[lints] workspace = true`, unit tests in the same file as the code. diff --git a/vibe/2026-08/2026-08-08-6-local-toml-bigger-model.md b/vibe/2026-08/2026-08-08-6-local-toml-bigger-model.md index 746656c22..c5a477382 100644 --- a/vibe/2026-08/2026-08-08-6-local-toml-bigger-model.md +++ b/vibe/2026-08/2026-08-08-6-local-toml-bigger-model.md @@ -1,12 +1,12 @@ --- name: local.toml bigger model -overview: Create inherited local profiles under `C:\Users\Vinnie\cursor\` (common/gemma/qwen), wire HF_TOKEN for official Gemma downloads, and purge stale model caches in `~/.runvil` and the runvil repo. +overview: Create inherited local profiles under `../` (common/gemma/qwen), wire HF_TOKEN for official Gemma downloads, and purge stale model caches in `~/.runvil` and the runvil repo. todos: - id: hf-token-download content: "Gateway: send HF_TOKEN/HUGGING_FACE_HUB_TOKEN on Hugging Face downloads" status: completed - id: write-profile-hierarchy - content: Write C:\Users\Vinnie\cursor\{common,gemma,qwen}.toml with include inheritance + content: Write ../{common,gemma,qwen}.toml with include inheritance status: completed - id: purge-stale-caches content: Purge stale ~/.runvil and repo .model-cache leftovers against the keep-set @@ -18,19 +18,19 @@ isProject: false ## Layout -Directory: `C:\Users\Vinnie\cursor\` (outside the repo; not committed). +Directory: `../` (the parent workspace directory outside the repo; not committed). | File | Role | |---|---| -| [`common.toml`](C:\Users\Vinnie\cursor\common.toml) | Shared server, queue, Brave search | -| [`gemma.toml`](C:\Users\Vinnie\cursor\gemma.toml) | `include = ["common.toml"]` + official Gemma 3 27B IT QAT Q4_0 | -| [`qwen.toml`](C:\Users\Vinnie\cursor\qwen.toml) | `include = ["common.toml"]` + Qwen3.5-9B Q4_K_M (existing pin) | +| `../common.toml` | Shared server, queue, Brave search | +| `../gemma.toml` | `include = ["common.toml"]` + official Gemma 3 27B IT QAT Q4_0 | +| `../qwen.toml` | `include = ["common.toml"]` + Qwen3.5-9B Q4_K_M (existing pin) | Serve a leaf file, not common: ```text -runvil-gateway serve C:\Users\Vinnie\cursor\gemma.toml -runvil-gateway serve C:\Users\Vinnie\cursor\qwen.toml +runvil-gateway serve ../gemma.toml +runvil-gateway serve ../qwen.toml ``` Includes resolve relative to the file (gateway design). Array merge: child `[[local_model]]` appends; same `name` replaces. diff --git a/vibe/2026-08/2026-08-10-1-crate-review.md b/vibe/2026-08/2026-08-10-1-crate-review.md index 6ce1b6c25..42b7502a0 100644 --- a/vibe/2026-08/2026-08-10-1-crate-review.md +++ b/vibe/2026-08/2026-08-10-1-crate-review.md @@ -72,7 +72,7 @@ Preserved review evidence in `cabinet/_scratch/runvil-crate-review/` and `cabine ## Fixed scope and order -Review all Rust source, test, fixture, integration-test, and build-script files under [runvil](C:\Users\Vinnie\src\cursor\runvil), plus each crate's `Cargo.toml` and the root workspace [Cargo.toml](C:\Users\Vinnie\src\cursor\runvil\Cargo.toml), excluding generated build output and dependencies. Process crates strictly in this topological order: +Review all Rust source, test, fixture, integration-test, and build-script files under `runvil`, plus each crate's `Cargo.toml` and the root workspace `Cargo.toml`, excluding generated build output and dependencies. Process crates strictly in this topological order: 1. `runvil-tool-picker` 2. `runvil-core` @@ -83,19 +83,19 @@ Review all Rust source, test, fixture, integration-test, and build-script files 7. `runvil-dev` 8. `runvil-mcp-server` -The root [Cargo.toml](C:\Users\Vinnie\src\cursor\runvil\Cargo.toml), each crate manifest, existing crate design documents, and [rust-rulebook.md](C:\Users\Vinnie\src\cursor\tools-public\rulebooks\rust-rulebook.md) provide review context. +The root `Cargo.toml`, each crate manifest, existing crate design documents, and `../tools-public/rulebooks/rust-rulebook.md` provide review context. Three rulebooks bind this pipeline and are cited by path, never copied into the plan or into a dispatched prompt: -- [rust-rulebook.md](C:\Users\Vinnie\src\cursor\tools-public\rulebooks\rust-rulebook.md) is the review criteria, the API-design law (section 6), and the verification gate list (section 12). -- [vibe-rulebook.md](C:\Users\Vinnie\src\cursor\tools-public\rulebooks\vibe-rulebook.md) sets the subagent loop, the code-review checks, and fix-forward completion. -- [prompts-rulebook.md](C:\Users\Vinnie\src\cursor\tools-public\rulebooks\prompts-rulebook.md) sets dispatch-by-reference, capped returns, and the main-context token contract. +- `../tools-public/rulebooks/rust-rulebook.md` is the review criteria, the API-design law (section 6), and the verification gate list (section 12). +- `../tools-public/rulebooks/vibe-rulebook.md` sets the subagent loop, the code-review checks, and fix-forward completion. +- `../tools-public/rulebooks/prompts-rulebook.md` sets dispatch-by-reference, capped returns, and the main-context token contract. ## Operating discipline (applies to every crate loop) Main context holds only: the plan, current crate name, current step, file inventory paths, artifact paths, bounded Git lines, and each subagent's capped return. Main context never holds: raw source, findings bodies, API-design bodies, diffs, or build and test logs. Every subagent reads large inputs from disk and returns at most 2000 tokens of distilled findings plus artifact paths; when a result exceeds that, it returns a summary plus the path to the full file. -Dispatch every subagent by reference. Each task prompt carries the target file path, the three rulebook paths, the relevant artifact paths, and the task's few variable values. It does not inline rulebook text or criteria blocks. Each review task instructs the subagent to read [rust-rulebook.md](C:\Users\Vinnie\src\cursor\tools-public\rulebooks\rust-rulebook.md) from its path before analyzing. +Dispatch every subagent by reference. Each task prompt carries the target file path, the three rulebook paths, the relevant artifact paths, and the task's few variable values. It does not inline rulebook text or criteria blocks. Each review task instructs the subagent to read `../tools-public/rulebooks/rust-rulebook.md` from its path before analyzing. Assemble multi-file inputs through the shell, not through the write tool. The synthesis agent receives its crate's findings as a single shell-concatenated file so the combined payload never travels as a tool-call argument. @@ -118,7 +118,7 @@ Run this only after the recovery-and-reset section completes and `HEAD` is `66e7 Launch one fresh subagent for every `.rs` file in the current crate, plus one for the crate's `Cargo.toml`. Agents may run in parallel within that crate, but no agent is reused and no next-crate work begins. -Each `.rs` task prompt carries the target source path, the mirrored findings-file path to create, and the three rulebook paths. The agent reads its assigned source, relevant module ancestry and manifest context, and reads [rust-rulebook.md](C:\Users\Vinnie\src\cursor\tools-public\rulebooks\rust-rulebook.md) from its path before analyzing. It writes exactly one `*.findings.md` artifact containing: +Each `.rs` task prompt carries the target source path, the mirrored findings-file path to create, and the three rulebook paths. The agent reads its assigned source, relevant module ancestry and manifest context, and reads `../tools-public/rulebooks/rust-rulebook.md` from its path before analyzing. It writes exactly one `*.findings.md` artifact containing: - The externally reachable public API contributed by the file, with signatures, visibility, contracts, and source locations. The authoritative crate surface comes from the `cargo public-api` baseline snapshot captured at baseline (`//public-api.baseline.txt`); the agent attributes those public items to the file it owns rather than reconstructing the surface from scratch. Test-only or private files explicitly record that they contribute no public API. - Rulebook violations and risks, each citing the specific rust-rulebook section, with evidence, severity, confidence, impact, and a concrete correction. diff --git a/vibe/2026-08/2026-08-15-1-store-input-files.md b/vibe/2026-08/2026-08-15-1-store-input-files.md index a51f9aebd..bc2fe4fe0 100644 --- a/vibe/2026-08/2026-08-15-1-store-input-files.md +++ b/vibe/2026-08/2026-08-15-1-store-input-files.md @@ -113,7 +113,7 @@ All five parameters are flat strings. Any model can fill this in. File input, file output: ```json -{ "prompt": "papergate", "args": "Focus on ABI", "input_file": "c:/papers/p2996r7.md", "output_file": "c:/output/report.md" } +{ "prompt": "papergate", "args": "Focus on ABI", "input_file": "papers/p2996r7.md", "output_file": "output/report.md" } ``` Text input, inline output: @@ -215,9 +215,9 @@ impl StoreRef { ## Execution References Load these before building: -- `c:\Users\Vinnie\src\cursor\tools-public\rulebooks\rust-rulebook.md` - Rust coding standards (formatting, errors, API design, testing, docs) -- `c:\Users\Vinnie\src\cursor\tools-public\rulebooks\vibe-rulebook.md` - Work loop: plan into testable commits, coder/review-and-fix/verify subagents -- `c:\Users\Vinnie\src\cursor\tools-public\tools\architect.md` - Design doc updates (integrate into existing per-crate docs, not a new file) +- `../tools-public/rulebooks/rust-rulebook.md` - Rust coding standards (formatting, errors, API design, testing, docs) +- `../tools-public/rulebooks/vibe-rulebook.md` - Work loop: plan into testable commits, coder/review-and-fix/verify subagents +- `../tools-public/tools/architect.md` - Design doc updates (integrate into existing per-crate docs, not a new file) ## Design Decisions (settled) diff --git a/vibe/2026-08/2026-08-15-2-quickref-file.md b/vibe/2026-08/2026-08-15-2-quickref-file.md index 3e6ed0c4b..1378fbdd9 100644 --- a/vibe/2026-08/2026-08-15-2-quickref-file.md +++ b/vibe/2026-08/2026-08-15-2-quickref-file.md @@ -118,8 +118,8 @@ Per-prompt overrides still work via `[prompts.NAME]` blocks (e.g. `enabled = fal ## Execution References Load these before building: -- `c:\Users\Vinnie\src\cursor\tools-public\rulebooks\rust-rulebook.md` - Rust coding standards -- `c:\Users\Vinnie\src\cursor\tools-public\rulebooks\vibe-rulebook.md` - Work loop: per-step commits, coder/review/verify subagents +- `../tools-public/rulebooks/rust-rulebook.md` - Rust coding standards +- `../tools-public/rulebooks/vibe-rulebook.md` - Work loop: per-step commits, coder/review/verify subagents ## Constraints diff --git a/vibe/2026-08/2026-08-18-2-empty-turn-and-mcp-env.md b/vibe/2026-08/2026-08-18-2-empty-turn-and-mcp-env.md index 43d41c5e4..a19b81a60 100644 --- a/vibe/2026-08/2026-08-18-2-empty-turn-and-mcp-env.md +++ b/vibe/2026-08/2026-08-18-2-empty-turn-and-mcp-env.md @@ -110,7 +110,7 @@ Mirror the gateway (`crates/runvil-gateway/src/profile.rs:119-162`: `config_path ## Execution rules -This plan runs under the vibe-rulebook (c:\Users\Vinnie\src\cursor\tools-public\rulebooks\vibe-rulebook.md) and the rust-rulebook (c:\Users\Vinnie\src\cursor\tools-public\rulebooks\rust-rulebook.md). Dispatch subagents with these paths so they can load the rules themselves. +This plan runs under the vibe-rulebook (../tools-public/rulebooks/vibe-rulebook.md) and the rust-rulebook (../tools-public/rulebooks/rust-rulebook.md). Dispatch subagents with these paths so they can load the rules themselves. - Work the todos as testable commits. Part 1 (`runvil-core`) and Part 2 (`runvil-mcp-server`) touch disjoint crates and may run as two parallel workstreams; within each part, keep step order. Each step is one commit carrying its code, its test, and its documentation. Per step: dispatch the coder subagent, commit, dispatch the review-and-fix subagent against the diff (applying `` below, overwriting `vibe-review.md`), amend if review dirtied the tree. Run Verify (build + tests) on every 3rd step, at the end of each crate's work, and on the final step. - Do all search, read, edit, review, and test work in subagents; keep this session's context clean. Pass results through scratch files. @@ -119,7 +119,7 @@ This plan runs under the vibe-rulebook (c:\Users\Vinnie\src\cursor\tools-public\ ## Final step: generate the design document -After implementation is complete, generate the design document: spawn one subagent whose entire prompt is - read this plan at c:\Users\Vinnie\.cursor\plans\empty-turn_policy_and_mcp_env_loading_ff979c47.plan.md, grep for ``, and follow the block inside it. +After implementation is complete, generate the design document: spawn one subagent whose entire prompt is - read this plan at `vibe/2026-08/2026-08-18-2-empty-turn-and-mcp-env.md`, grep for ``, and follow the block inside it. OUTPUT A DESIGN DOCUMENT, NOT CODE. Write one markdown file, design-empty-turn-exit-and-env-loading.md, diff --git a/vibe/2026-08/2026-08-18-3-untrusted-global-vm-reorder.md b/vibe/2026-08/2026-08-18-3-untrusted-global-vm-reorder.md index 4e461422b..58093fcbb 100644 --- a/vibe/2026-08/2026-08-18-3-untrusted-global-vm-reorder.md +++ b/vibe/2026-08/2026-08-18-3-untrusted-global-vm-reorder.md @@ -114,7 +114,7 @@ Fold each finding that stays inside the step's file set into the same commit. Re ### Step 7: design document -After implementation is complete, generate the design document: spawn one subagent whose entire prompt is - read this plan at c:\Users\Vinnie\.cursor\plans\untrusted_global_and_vm_reorder_42176da9.plan.md, grep for ``, and follow the block inside it. Move the generated `design-runvil-store-and-vm-rework.md` into `crates/runvil-core/` beside `design-core.md`. +After implementation is complete, generate the design document: spawn one subagent whose entire prompt is - read this plan at `vibe/2026-08/2026-08-18-3-untrusted-global-vm-reorder.md`, grep for ``, and follow the block inside it. Move the generated `design-runvil-store-and-vm-rework.md` into `crates/runvil-core/` beside `design-core.md`. OUTPUT A DESIGN DOCUMENT, NOT CODE. Write one markdown file, design-runvil-store-and-vm-rework.md, diff --git a/vibe/2026-08/2026-08-18-4-fanout-collection-items.md b/vibe/2026-08/2026-08-18-4-fanout-collection-items.md index 84b011b55..352718828 100644 --- a/vibe/2026-08/2026-08-18-4-fanout-collection-items.md +++ b/vibe/2026-08/2026-08-18-4-fanout-collection-items.md @@ -154,7 +154,7 @@ Assumption corrections the sweep surfaced (all folded into the steps): `resolve_ ### Step 8: design document -After implementation is complete, generate the design document: spawn one subagent whose entire prompt is - read this plan at c:\Users\Vinnie\.cursor\plans\fanout_collection_items_44b6589f.plan.md, grep for ``, and follow the block inside it. Move the generated `design-runvil-section-marker-and-fanout-collections.md` into `crates/runvil-core/` beside `design-core.md`. +After implementation is complete, generate the design document: spawn one subagent whose entire prompt is - read this plan at `vibe/2026-08/2026-08-18-4-fanout-collection-items.md`, grep for ``, and follow the block inside it. Move the generated `design-runvil-section-marker-and-fanout-collections.md` into `crates/runvil-core/` beside `design-core.md`. OUTPUT A DESIGN DOCUMENT, NOT CODE. Write one markdown file, design-runvil-section-marker-and-fanout-collections.md, diff --git a/vibe/2026-08/2026-08-19-1-collapse-fanout-arm-engine.md b/vibe/2026-08/2026-08-19-1-collapse-fanout-arm-engine.md index d60cd3b29..359137859 100644 --- a/vibe/2026-08/2026-08-19-1-collapse-fanout-arm-engine.md +++ b/vibe/2026-08/2026-08-19-1-collapse-fanout-arm-engine.md @@ -174,7 +174,7 @@ Each step is one commit, worked as the rulebook loop: Code (coder subagent, disp ### Step 7: design document -- Code: spawn one subagent whose entire prompt is - read this plan at c:\Users\Vinnie\.cursor\plans\collapse_the_fanout_arm_engine_*.plan.md (use the actual path of this file), grep for ``, and follow the block inside it. Move the generated `design-runvil-arm-engine-collapse.md` into `crates/runvil-core/` beside `design-core.md`. If the plan carries no key design choices, write no document and return the reason. +- Code: spawn one subagent whose entire prompt is - read this plan at `vibe/2026-08/2026-08-19-1-collapse-fanout-arm-engine.md`, grep for ``, and follow the block inside it. Move the generated `design-runvil-arm-engine-collapse.md` into `crates/runvil-core/` beside `design-core.md`. If the plan carries no key design choices, write no document and return the reason. - Test: none (documentation deliverable). - Docs: the design document is the deliverable. - Commit: "add the arm-engine-collapse design document". diff --git a/vibe/2026-08/2026-08-19-2-runvil-refactor.md b/vibe/2026-08/2026-08-19-2-runvil-refactor.md index 6da2c5f2f..e81920427 100644 --- a/vibe/2026-08/2026-08-19-2-runvil-refactor.md +++ b/vibe/2026-08/2026-08-19-2-runvil-refactor.md @@ -9,7 +9,7 @@ isProject: false From the 83 review notes in `runvil/review-notes.md` (committed; the decisions source of truth). Ordered by dependency. Each step names its files, behavior, and test. -Repo: `c:\Users\Vinnie\src\cursor\runvil`. Crate under change: `runvil-core` (`crates/runvil-core/src/`). Integration prompts: `crates/runvil-core-tests/prompts/`. +Repo: `runvil`. Crate under change: `runvil-core` (`crates/runvil-core/src/`). Integration prompts: `crates/runvil-core-tests/prompts/`. Done: step 2 (rename `walk_section_blocks` -> `run_one_section_impl`), commit `2c55b19`, 767 tests green. diff --git a/vibe/2026-08/2026-08-20-1-fix-core-review-findings.md b/vibe/2026-08/2026-08-20-1-fix-core-review-findings.md index ebdb29a38..b486f38ef 100644 --- a/vibe/2026-08/2026-08-20-1-fix-core-review-findings.md +++ b/vibe/2026-08/2026-08-20-1-fix-core-review-findings.md @@ -58,7 +58,7 @@ isProject: false # Fix runvil-core review findings -Source of truth for every finding: `cabinet/_output/code-review-runvil-core.md` (machine-readable: `cabinet/_scratch/code-review-runvil-core/final_findings.json`). All commits land on `master` in `c:\Users\Vinnie\src\cursor\runvil` (clean tree, tracks origin/master; do NOT push). Commit messages: lowercase imperative per repo history. Per AGENTS.md: prefer existing facilities, doc comments on public items, update docs when behavior changes. +Source of truth for every finding: `cabinet/_output/code-review-runvil-core.md` (machine-readable: `cabinet/_scratch/code-review-runvil-core/final_findings.json`). All commits land on `master` in `runvil` (clean tree, tracks origin/master; do NOT push). Commit messages: lowercase imperative per repo history. Per AGENTS.md: prefer existing facilities, doc comments on public items, update docs when behavior changes. ## Pre-flight diff --git a/vibe/2026-08/2026-08-24-1-stage-1-the-window.md b/vibe/2026-08/2026-08-24-1-stage-1-the-window.md index 87e5554a9..f6f84c27c 100644 --- a/vibe/2026-08/2026-08-24-1-stage-1-the-window.md +++ b/vibe/2026-08/2026-08-24-1-stage-1-the-window.md @@ -37,7 +37,7 @@ isProject: false # Stage 1: The Window -Build the first deliverable of the Runvil Workbench per the design notes at `c:\Users\Vinnie\.cursor\plans\runvil_workbench_notes_8491f808.plan.md` (read its "Running this plan" section first; it governs). Stage 1 is defined there as: server crate plus shell crate plus a chat panel - streaming conversation with Claude through the gateway, local models too, and push-to-talk voice from day one - with a raw append-only JSONL tape recording every request and response from the first commit. +Build the first deliverable of the Runvil Workbench per the design notes in the untracked external Cursor plan draft `runvil_workbench_notes_8491f808.plan.md` outside this repository (read its "Running this plan" section first; it governs). Stage 1 is defined there as: server crate plus shell crate plus a chat panel - streaming conversation with Claude through the gateway, local models too, and push-to-talk voice from day one - with a raw append-only JSONL tape recording every request and response from the first commit. ## What is being built diff --git a/vibe/2026-08/2026-08-24-2-autogen-config-first-run.md b/vibe/2026-08/2026-08-24-2-autogen-config-first-run.md index f65a52502..ed718680a 100644 --- a/vibe/2026-08/2026-08-24-2-autogen-config-first-run.md +++ b/vibe/2026-08/2026-08-24-2-autogen-config-first-run.md @@ -28,11 +28,11 @@ isProject: false # Auto-generate config, gateway cache API, status bar, and skinning -This plan touches both the runvil-gateway and the runvil workbench crates. It assumes the stage-1 build is complete (commits through `cb00dee` on master in the runvil repo at `c:\Users\Vinnie\cursor\runvil`). +This plan touches both the runvil-gateway and the runvil workbench crates. It assumes the stage-1 build is complete (commits through `cb00dee` on master in the runvil repo at `runvil`). ## Context for a fresh reader -The runvil workspace (`c:\Users\Vinnie\cursor\runvil`) contains: +The runvil workspace (`runvil`) contains: - `crates/runvil-gateway` - a local model gateway serving OpenAI-compatible chat completions, with local GGUF provisioning via hf-hub - `crates/runvil-wb-server` - an axum HTTP server: chat proxy to the gateway via WebSocket, append-only tape, push-to-talk voice with whisper-rs transcription, dark Cursor-like UI served as embedded static assets - `crates/runvil-wb` - a desktop shell (wry/tao window) that spawns the server in-process @@ -313,13 +313,13 @@ At startup, after the gateway heartbeat reports connected: ## Key paths -- Workspace root: `c:\Users\Vinnie\cursor\runvil` +- Workspace root: `runvil` - Gateway crate: `crates/runvil-gateway/` - Workbench server: `crates/runvil-wb-server/` - Workbench shell: `crates/runvil-wb/` - UI assets: `crates/runvil-wb-server/ui/` - Decision log: `design/design-runvil-wb-1.md` -- Rulebooks: `c:\Users\Vinnie\cursor\tools-public\rulebooks/` (vibe-rulebook.md, rust-rulebook.md, html-css-rulebook.md) +- Rulebooks: `../tools-public/rulebooks/` (vibe-rulebook.md, rust-rulebook.md, html-css-rulebook.md) --- diff --git a/vibe/2026-08/2026-08-26-1-remove-voice-status-line.md b/vibe/2026-08/2026-08-26-1-remove-voice-status-line.md index ad2ed1489..4eec10eaa 100644 --- a/vibe/2026-08/2026-08-26-1-remove-voice-status-line.md +++ b/vibe/2026-08/2026-08-26-1-remove-voice-status-line.md @@ -55,7 +55,7 @@ isProject: false # Runvil Workshop UI overhaul -All paths below are relative to `runvil/` (the repo at `c:\Users\Vinnie\cursor\runvil`). The UI lives in `crates/runvil-ws-server/ui/`; the desktop shell is `crates/runvil-ws/`; the in-process server is `crates/runvil-ws-server/src/`. +All paths below are relative to `runvil/` (the repo at `runvil`). The UI lives in `crates/runvil-ws-server/ui/`; the desktop shell is `crates/runvil-ws/`; the in-process server is `crates/runvil-ws-server/src/`. ## House rules (binding on every step) diff --git a/vibe/2026-08/2026-08-26-2-model-turn-actions.md b/vibe/2026-08/2026-08-26-2-model-turn-actions.md index 49ca913c6..2ae187a2d 100644 --- a/vibe/2026-08/2026-08-26-2-model-turn-actions.md +++ b/vibe/2026-08/2026-08-26-2-model-turn-actions.md @@ -33,46 +33,46 @@ isProject: false - Keep the existing TypeScript configuration stable; do not enable repo-wide `noUncheckedIndexedAccess` as part of this feature because the prior audit found unrelated pre-existing failures. New and touched modules must still be written to that standard and checked in isolation. ## Execution steps -1. **Thinking states.** Replace the dot loader and grace-delay path with immediate `Planning next moves`, then the first reasoning token switches to a durable, toggleable `Thinking` block. Test: [thinking-block.mjs](c:/Users/Vinnie/cursor/runvil/crates/runvil-ws-server/ui/test/thinking-block.mjs). -2. **Model-turn footer.** Add one footer per completed model turn with working Copy, intentionally inert Fork, relative time, and absolute-time/duration tooltip. Test: new focused footer test wired into [package.json](c:/Users/Vinnie/cursor/runvil/crates/runvil-ws-server/ui/package.json). -3. **Model menu and sidebar removal.** Move catalog ownership and selection into TypeScript state, add the dynamic Model title-bar menu, and remove the obsolete selector sidebar. Test: [smoke.mjs](c:/Users/Vinnie/cursor/runvil/crates/runvil-ws-server/ui/test/smoke.mjs) and [window-menu.mjs](c:/Users/Vinnie/cursor/runvil/crates/runvil-ws-server/ui/test/window-menu.mjs). Verify after this step. -4. **Tabbed Agent panels.** Add File > New Agent, stable per-agent panel ids, one `ChatUI` per Agent tab, active-agent routing, shared model application, and per-tab cleanup. Test: [workshop-zones.mjs](c:/Users/Vinnie/cursor/runvil/crates/runvil-ws-server/ui/test/workshop-zones.mjs), [window-menu.mjs](c:/Users/Vinnie/cursor/runvil/crates/runvil-ws-server/ui/test/window-menu.mjs), and focused Agent lifecycle coverage. -5. **Always-unlocked workbench.** Remove lock state, controls, persistence, styles, and menu commands; make tabs and dividers permanently interactive while preserving user rearrangements. Test: [workshop-layout.mjs](c:/Users/Vinnie/cursor/runvil/crates/runvil-ws-server/ui/test/workshop-layout.mjs) and [workshop-zones.mjs](c:/Users/Vinnie/cursor/runvil/crates/runvil-ws-server/ui/test/workshop-zones.mjs). +1. **Thinking states.** Replace the dot loader and grace-delay path with immediate `Planning next moves`, then the first reasoning token switches to a durable, toggleable `Thinking` block. Test: `crates/runvil-ws-server/ui/test/thinking-block.mjs`. +2. **Model-turn footer.** Add one footer per completed model turn with working Copy, intentionally inert Fork, relative time, and absolute-time/duration tooltip. Test: new focused footer test wired into `crates/runvil-ws-server/ui/package.json`. +3. **Model menu and sidebar removal.** Move catalog ownership and selection into TypeScript state, add the dynamic Model title-bar menu, and remove the obsolete selector sidebar. Test: `crates/runvil-ws-server/ui/test/smoke.mjs` and `crates/runvil-ws-server/ui/test/window-menu.mjs`. Verify after this step. +4. **Tabbed Agent panels.** Add File > New Agent, stable per-agent panel ids, one `ChatUI` per Agent tab, active-agent routing, shared model application, and per-tab cleanup. Test: `crates/runvil-ws-server/ui/test/workshop-zones.mjs`, `crates/runvil-ws-server/ui/test/window-menu.mjs`, and focused Agent lifecycle coverage. +5. **Always-unlocked workbench.** Remove lock state, controls, persistence, styles, and menu commands; make tabs and dividers permanently interactive while preserving user rearrangements. Test: `crates/runvil-ws-server/ui/test/workshop-layout.mjs` and `crates/runvil-ws-server/ui/test/workshop-zones.mjs`. 6. **Final verification.** Run the full UI suite, TypeScript typecheck, `cargo fmt --all --check`, `cargo clippy --all-targets --all-features -- -D warnings`, and `cargo test --locked --workspace --all-features`. ## Implementation ### Model menu and sidebar removal -- Remove the entire static model selector sidebar, including `#model-picker`, `#model-description`, and their styles, from [index.html](c:/Users/Vinnie/cursor/runvil/crates/runvil-ws-server/ui/index.html) and [style.css](c:/Users/Vinnie/cursor/runvil/crates/runvil-ws-server/ui/style.css). The Dockview workbench then occupies the full application width, making Workspace the leftmost visible panel. -- Add `Model` between Edit and Window in the custom title bar. Extend [window-menu.ts](c:/Users/Vinnie/cursor/runvil/crates/runvil-ws-server/ui/src/window-menu.ts) with a dynamic Model popover that lists the current catalog, marks the selected model, disables unavailable states, and uses each model description as supporting tooltip text. -- Replace DOM-owned selection in [main.ts](c:/Users/Vinnie/cursor/runvil/crates/runvil-ws-server/ui/src/main.ts) with explicit catalog and selected-model state. Boot and pushed catalogs update that state, preserve the current model when still available, otherwise select the first model, rebuild the Model menu, update `ChatEngine` request defaults, and continue blocking submission only when no model exists. Browser-mode tests may still auto-select the first catalog entry even though the desktop-only menu is hidden. +- Remove the entire static model selector sidebar, including `#model-picker`, `#model-description`, and their styles, from `crates/runvil-ws-server/ui/index.html` and `crates/runvil-ws-server/ui/style.css`. The Dockview workbench then occupies the full application width, making Workspace the leftmost visible panel. +- Add `Model` between Edit and Window in the custom title bar. Extend `crates/runvil-ws-server/ui/src/window-menu.ts` with a dynamic Model popover that lists the current catalog, marks the selected model, disables unavailable states, and uses each model description as supporting tooltip text. +- Replace DOM-owned selection in `crates/runvil-ws-server/ui/src/main.ts` with explicit catalog and selected-model state. Boot and pushed catalogs update that state, preserve the current model when still available, otherwise select the first model, rebuild the Model menu, update `ChatEngine` request defaults, and continue blocking submission only when no model exists. Browser-mode tests may still auto-select the first catalog entry even though the desktop-only menu is hidden. ### Tabbed Agent panels -- Add `File > New Agent` to [window-menu.ts](c:/Users/Vinnie/cursor/runvil/crates/runvil-ws-server/ui/src/window-menu.ts). The command opens a new Agent panel in the right zone and activates its tab; it does not clear or replace the existing Agent conversation. -- Change chat panel identity in [zones.ts](c:/Users/Vinnie/cursor/runvil/crates/runvil-ws-server/ui/src/workshop/zones.ts) from the singleton id `chat` to stable per-agent ids such as `agent:`. Keep the Workspace tree singleton and path-keyed editors. Persist per-agent ids so restored layouts recreate the same tabs. -- Replace the single global `ChatUI` mount in [main.ts](c:/Users/Vinnie/cursor/runvil/crates/runvil-ws-server/ui/src/main.ts) with an Agent panel controller. The controller creates one `ChatUI` per Agent panel, shares the socket provider and model-selection state across all agents, applies model changes to every live agent, tracks the active agent for File > New Chat and voice submission, and destroys a `ChatUI` when its panel closes. The controller owns plugin lifecycle per agent so each tab gets isolated voice, thinking, and tool state. -- Rename the panel type and default tab title from `Chat` to `Agent` in [panel-types.ts](c:/Users/Vinnie/cursor/runvil/crates/runvil-ws-server/ui/src/workshop/panel-types.ts). Every Agent group shows Dockview tabs in unlocked mode; opening a second Agent creates a second tab in the right bank. +- Add `File > New Agent` to `crates/runvil-ws-server/ui/src/window-menu.ts`. The command opens a new Agent panel in the right zone and activates its tab; it does not clear or replace the existing Agent conversation. +- Change chat panel identity in `crates/runvil-ws-server/ui/src/workshop/zones.ts` from the singleton id `chat` to stable per-agent ids such as `agent:`. Keep the Workspace tree singleton and path-keyed editors. Persist per-agent ids so restored layouts recreate the same tabs. +- Replace the single global `ChatUI` mount in `crates/runvil-ws-server/ui/src/main.ts` with an Agent panel controller. The controller creates one `ChatUI` per Agent panel, shares the socket provider and model-selection state across all agents, applies model changes to every live agent, tracks the active agent for File > New Chat and voice submission, and destroys a `ChatUI` when its panel closes. The controller owns plugin lifecycle per agent so each tab gets isolated voice, thinking, and tool state. +- Rename the panel type and default tab title from `Chat` to `Agent` in `crates/runvil-ws-server/ui/src/workshop/panel-types.ts`. Every Agent group shows Dockview tabs in unlocked mode; opening a second Agent creates a second tab in the right bank. ### Always-unlocked workbench -- Remove [layout-lock.ts](c:/Users/Vinnie/cursor/runvil/crates/runvil-ws-server/ui/src/workshop/layout-lock.ts), its zone-header padlock control, the Window menu Lock/Unlock command, `.dock--locked` and `.layout-lock-toggle` styles, and every import or callback dedicated to lock state. -- Create Dockview with `locked: false` in [main.ts](c:/Users/Vinnie/cursor/runvil/crates/runvil-ws-server/ui/src/main.ts), leaving dividers, tabs, and panel drag targets permanently interactive. Keep floating groups disabled. -- Simplify [layout-persistence.ts](c:/Users/Vinnie/cursor/runvil/crates/runvil-ws-server/ui/src/workshop/layout-persistence.ts) by removing the persisted `locked` field and lock-change subscription, then bump the layout schema so stale locked snapshots cannot reapply obsolete state. Preserve users' moved panel positions and their Agent tab identities across launches. -- Keep the affinity mapping in [panel-types.ts](c:/Users/Vinnie/cursor/runvil/crates/runvil-ws-server/ui/src/workshop/panel-types.ts): Workspace tree to `left`, document editors to `main`, and Agent panels to `right`. Make the known-good default boot order explicit as Workspace-left, empty Editor-middle until a document opens, and one Agent-right. +- Remove `crates/runvil-ws-server/ui/src/workshop/layout-lock.ts`, its zone-header padlock control, the Window menu Lock/Unlock command, `.dock--locked` and `.layout-lock-toggle` styles, and every import or callback dedicated to lock state. +- Create Dockview with `locked: false` in `crates/runvil-ws-server/ui/src/main.ts`, leaving dividers, tabs, and panel drag targets permanently interactive. Keep floating groups disabled. +- Simplify `crates/runvil-ws-server/ui/src/workshop/layout-persistence.ts` by removing the persisted `locked` field and lock-change subscription, then bump the layout schema so stale locked snapshots cannot reapply obsolete state. Preserve users' moved panel positions and their Agent tab identities across launches. +- Keep the affinity mapping in `crates/runvil-ws-server/ui/src/workshop/panel-types.ts`: Workspace tree to `left`, document editors to `main`, and Agent panels to `right`. Make the known-good default boot order explicit as Workspace-left, empty Editor-middle until a document opens, and one Agent-right. ### Thinking and model-turn actions -- Correct [thinking-plugin.ts](c:/Users/Vinnie/cursor/runvil/crates/runvil-ws-server/ui/src/chat/plugins/thinking/thinking-plugin.ts) so generation starts immediately with only `Planning next moves` (no trailing ellipsis), with no three-dot loader and no 500 ms delay. On the first reasoning token, replace that prefill row with the normal `Thinking` toggle and stream the auditable reasoning preview beneath it. Clicking `Thinking` expands the preserved reasoning, and clicking it again rolls the block back up. Keep that toggle available after completion. -- Give the thinking plugin explicit ownership of the empty assistant loading state instead of allowing [message-node.ts](c:/Users/Vinnie/cursor/runvil/crates/runvil-ws-server/ui/src/chat/components/message-node.ts) to render its generic three-dot fallback at the same time. Update [thinking.css](c:/Users/Vinnie/cursor/runvil/crates/runvil-ws-server/ui/src/chat/plugins/thinking/thinking.css) so shimmer applies only to prefill, not to the `Thinking` label used while reasoning tokens stream. -- Add a reusable turn-footer component beside [feed-node.ts](c:/Users/Vinnie/cursor/runvil/crates/runvil-ws-server/ui/src/chat/components/feed-node.ts). Mount it once per completed model turn for both grouped agent runs and ordinary assistant responses, keeping it outside collapsible thinking and tool activity so it never disappears. -- Reuse `extractPlainText` from [msg-utils.ts](c:/Users/Vinnie/cursor/runvil/crates/runvil-ws-server/ui/src/chat/core/msg-utils.ts) for Copy, preserving the existing checkmark feedback behavior. Add the fork glyph as an accessible button with tooltip, but intentionally give it no conversation mutation or click behavior yet. -- Derive the footer clock from the model response's completion timestamp and the existing user-to-final-response duration calculation in [feed-items.ts](c:/Users/Vinnie/cursor/runvil/crates/runvil-ws-server/ui/src/chat/components/feed-items.ts). Render compact relative text such as `2m ago`, refresh it at time-unit boundaries, and show a styled hover and keyboard-focus tooltip containing the localized absolute timestamp plus `Worked for 1m 50s` when duration is available. -- Style the muted icon row and dark rounded tooltips in [feed.css](c:/Users/Vinnie/cursor/runvil/crates/runvil-ws-server/ui/src/chat/styles/feed.css), matching the supplied Cursor reference while retaining visible focus states, semantic `