From 9aebccc62ff55056b22a47fb139d9b1928bf9039 Mon Sep 17 00:00:00 2001 From: Vinnie Falco Date: Wed, 2 Dec 2026 15:29:13 -0800 Subject: [PATCH 1/2] Replace workstation paths across code, tests, and docs Remove hardcoded workstation and user directory paths so source, tests, and historical records use portable paths. Derive `LANGUAGE_GUIDE_SOURCE` in `crates/workshop/server/src/agents.rs` from `CARGO_MANIFEST_DIR`, and replace user fixture paths in `crates/workshop/desktop/src/bridge.rs`, `crates/workshop/desktop/src/drops.rs`, and `crates/workshop/ui/test/workspace-drops.mjs`. Rewrite paths across `plan/` and `vibe/` relative to the repository root and sibling checkouts such as `../runvil-docs`. --- crates/workshop/desktop/src/bridge.rs | 4 +- crates/workshop/desktop/src/drops.rs | 16 +- crates/workshop/server/src/agents.rs | 7 +- crates/workshop/ui/test/workspace-drops.mjs | 6 +- ...2026-11-07-1-host-runsetup-harness.plan.md | 2 +- plan/2026-11-08-1-per-run-packs.plan.md | 2 +- plan/2026-11-08-2-run-inbox-user-pack.plan.md | 4 +- plan/2026-11-08-3-run-inbox-fixes.plan.md | 6 +- plan/2026-11-24-1-streaming-callback.plan.md | 4 +- .../2026-08-24-1-stage-1-the-window.md | 2 +- .../2026-08-24-2-autogen-config-first-run.md | 8 +- .../2026-08-26-1-remove-voice-status-line.md | 2 +- .../2026-08-26-2-model-turn-actions.md | 48 +-- .../2026-08-26-4-workshop-idiom-refactor.md | 12 +- .../2026-08-27-3-server-driven-menu-state.md | 8 +- .../2026-08-27-4-merged-gateway-workshop.md | 30 +- .../2026-08-29-3-chat-ws-decomposition.md | 16 +- ...26-08-31-6-tauri-migration-for-workshop.md | 2 +- .../2026-08-31-7-interactive-webhook-tool.md | 2 +- .../2026-09-01-1-build-simplification.md | 2 +- ...026-09-02-1-workshop-agent-window-clone.md | 4 +- .../2026-09-02-3-whisper-shared-lib.md | 8 +- ...6-09-03-3-gateway-sidecar-decomposition.md | 6 +- .../2026-09-05-2-generic-realtime-stt.md | 394 +++++++++--------- vibe/2026-09/2026-09-07-1-runvil-debt.md | 54 +-- .../2026-09-09-2-async-stt-boot-reset.md | 30 +- .../2026-09-10-1-unified-prompt-model.md | 12 +- ...2026-09-13-1-capabilities-global-naming.md | 2 +- .../2026-09-15-2-profiles-gate-local.md | 4 +- .../2026-09-15-3-profiles-debt-removal.md | 2 +- .../2026-09-15-5-workshop-menu-overhaul.md | 2 +- .../2026-09-17-4-ci-repair-state-accessors.md | 10 +- .../2026-09-17-5-workshop-family-reorg.md | 34 +- .../2026-09-19-1-chatbox-extraction.md | 6 +- .../2026-09-20-1-chatbox-debt-removal.md | 2 +- .../2026-09-20-2-rust-rulebook-sweep.md | 6 +- vibe/2026-09/2026-09-20-4-debt-removal.md | 2 +- .../2026-09-24-2-workshop-crates-cleanup.md | 4 +- .../2026-09-25-1-vibe2-debt-removal.md | 2 +- vibe/2026-09/2026-09-25-2-workshop-fixes.md | 2 +- .../2026-09-25-3-workshop-structure.md | 12 +- .../2026-09-26-1-workshop-debt-removal.md | 2 +- .../2026-09-27-1-fork-shared-ui-look.md | 2 +- vibe/2026-09/2026-09-27-2-look-fork-debts.md | 10 +- .../2026-09-27-3-platform-extraction.md | 6 +- .../2026-09-28-1-platform-extraction-debts.md | 2 +- ...026-09-28-2-capability-harness-redesign.md | 14 +- .../2026-09-30-2-host-identifier-rename.md | 6 +- .../2026-10-03-3-agent-context-cleanup.md | 22 +- vibe/2026-10/2026-10-04-2-plugin-rename.md | 6 +- vibe/2026-10/2026-10-05-1-debt-removal.md | 2 +- .../2026-10-07-1-plugin-api-minimal.md | 2 +- vibe/2026-10/2026-10-07-2-stt-debt-removal.md | 2 +- .../2026-10/2026-10-08-1-mcp-client-plugin.md | 6 +- .../2026-10-08-2-copy-cursor-everywhere.md | 10 +- .../2026-10-08-3-debt-removal-mcp-cursor.md | 2 +- .../2026-10-08-4-mcp-plugin-debt-removal.md | 2 +- .../2026-10-09-3-models-loop-in-rust.md | 14 +- vibe/2026-10/2026-10-11-1-package-registry.md | 4 +- vibe/2026-10/2026-10-13-1-plugin-offering.md | 8 +- vibe/2026-10/2026-10-14-1-no-trace-fence.md | 2 +- .../2026-10-14-4-internal-test-harnesses.md | 4 +- vibe/2026-10/2026-10-15-2-rulebook-fixes.md | 4 +- .../2026-10-18-2-plugin-registry-rename.md | 6 +- .../2026-10-19-2-pack-plugin-rename.md | 30 +- vibe/2026-10/2026-10-21-1-section-messages.md | 34 +- ...6-10-22-1-section-messages-debt-removal.md | 26 +- vibe/2026-10/2026-10-22-2-utf8-library.md | 32 +- vibe/2026-10/2026-10-23-1-one-offer-api.md | 60 +-- .../2026-10/2026-10-25-1-tools-kernel-redo.md | 32 +- 70 files changed, 566 insertions(+), 567 deletions(-) diff --git a/crates/workshop/desktop/src/bridge.rs b/crates/workshop/desktop/src/bridge.rs index 2d88535d..3ed2839e 100644 --- a/crates/workshop/desktop/src/bridge.rs +++ b/crates/workshop/desktop/src/bridge.rs @@ -328,10 +328,10 @@ mod tests { "drop with files", Some(DROP_MESSAGE), &[ - Some(r"C:\Users\Vinnie\Documents\project"), + Some(r"C:\Users\alice\Documents\project"), Some(r"D:\src\notes.md"), ], - &[r"C:\Users\Vinnie\Documents\project", r"D:\src\notes.md"], + &[r"C:\Users\alice\Documents\project", r"D:\src\notes.md"], true, ), ( diff --git a/crates/workshop/desktop/src/drops.rs b/crates/workshop/desktop/src/drops.rs index eb881546..a6f45e5c 100644 --- a/crates/workshop/desktop/src/drops.rs +++ b/crates/workshop/desktop/src/drops.rs @@ -70,24 +70,20 @@ mod tests { // `None` means the path passes through unchanged. const CASES: &[(&str, &str, Option<&str>)] = &[ - ("plain", r"C:\Users\Vinnie\Documents\project", None), - ( - "spaces", - r"C:\Users\Vinnie\My Documents\file name.txt", - None, - ), + ("plain", r"C:\Users\alice\Documents\project", None), + ("spaces", r"C:\Users\alice\My Documents\file name.txt", None), ( "unicode", - "C:\\Users\\Vinnie\\caf\u{e9} \u{4e2d}\u{6587}.txt", + "C:\\Users\\alice\\caf\u{e9} \u{4e2d}\u{6587}.txt", None, ), ("drive dir", r"D:\src\runvil\crates", None), ("plain unc", r"\\server\share\file.txt", None), - ("posix", "/home/vinnie/project/file.txt", None), + ("posix", "/home/alice/project/file.txt", None), ( "verbatim", - r"\\?\C:\Users\Vinnie\file.txt", - Some(r"C:\Users\Vinnie\file.txt"), + r"\\?\C:\Users\alice\file.txt", + Some(r"C:\Users\alice\file.txt"), ), ( "verbatim unicode", diff --git a/crates/workshop/server/src/agents.rs b/crates/workshop/server/src/agents.rs index d805d5bc..78772907 100644 --- a/crates/workshop/server/src/agents.rs +++ b/crates/workshop/server/src/agents.rs @@ -96,8 +96,11 @@ const HARNESS_STATE_DIR: &str = "harness"; /// The switch: `true` mounts the guide in every run. const LANGUAGE_GUIDE_ENABLED: bool = false; -/// The directory on this machine that holds the guide's pages. -const LANGUAGE_GUIDE_SOURCE: &str = r"C:\Users\Vinnie\cursor\runvil-docs\src\language"; +/// The sibling `runvil-docs` directory that holds the guide's pages. +const LANGUAGE_GUIDE_SOURCE: &str = concat!( + env!("CARGO_MANIFEST_DIR"), + "/../../../../runvil-docs/src/language" +); /// The virtual path a run sees the guide at. const LANGUAGE_GUIDE_MOUNT: &str = "/_runvil/language-guide"; diff --git a/crates/workshop/ui/test/workspace-drops.mjs b/crates/workshop/ui/test/workspace-drops.mjs index 0d4147bf..3fb70386 100644 --- a/crates/workshop/ui/test/workspace-drops.mjs +++ b/crates/workshop/ui/test/workspace-drops.mjs @@ -74,7 +74,7 @@ function scenario({ desktop, responder }) { const { window, calls } = scenario({ desktop: false }); window.dispatchEvent( new window.CustomEvent("runvil:file-drop", { - detail: { paths: ["C:\\Users\\Vinnie\\project"] }, + detail: { paths: ["C:\\Users\\alice\\project"] }, }), ); await flush(); @@ -90,8 +90,8 @@ function scenario({ desktop, responder }) { changed += 1; }); const paths = [ - "C:\\Users\\Vinnie\\My Documents\\project", - "C:\\Users\\Vinnie\\café 中文.txt", + "C:\\Users\\alice\\My Documents\\project", + "C:\\Users\\alice\\café 中文.txt", ]; window.dispatchEvent( new window.CustomEvent("runvil:file-drop", { detail: { paths } }), 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 ad55d695..dccf18c3 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 2e9785cb..98be7626 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 8d2779a3..26ea030c 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 0ba707e4..b4a435c3 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/plan/2026-11-24-1-streaming-callback.plan.md b/plan/2026-11-24-1-streaming-callback.plan.md index f7fa6b70..c87b3bbc 100644 --- a/plan/2026-11-24-1-streaming-callback.plan.md +++ b/plan/2026-11-24-1-streaming-callback.plan.md @@ -76,8 +76,8 @@ The conversation behind this plan is the chat [Streaming design and plan](9f59b3 ### Where things are -- **The repos** are checkouts in the workspace root, `c:\Users\Vinnie\cursor`. In the Harness and in Workshop, `origin` is the fork under `vinniefalco` and `upstream` is the repo under `cppalliance`. In the design repo, `origin` is the repo under `cppalliance`, and it is the one remote. Your fork of it is `vinniefalco/runvil-design`, whose `master` is an ancestor of the local one, and I push to it by its URL, `git push git@github.com:vinniefalco/runvil-design.git master`. The one branch of each repo is `master`, and the work stays on it. -- **This plan** is the file `C:\Users\Vinnie\.cursor\plans\streaming_callback_refactor_93d3a6c9.plan.md`. Each repo's copy is made from it, under one file name in all three repos. +- **The repos** are sibling checkouts in the workspace root. In the Harness and in Workshop, `origin` is the fork under `vinniefalco` and `upstream` is the repo under `cppalliance`. In the design repo, `origin` is the repo under `cppalliance`, and it is the one remote. Your fork of it is `vinniefalco/runvil-design`, whose `master` is an ancestor of the local one, and I push to it by its URL, `git push git@github.com:vinniefalco/runvil-design.git master`. The one branch of each repo is `master`, and the work stays on it. +- **This plan** is stored at `plan/2026-11-24-1-streaming-callback.plan.md`. Each repo's copy is made from it, under one file name in all three repos. - **The scratch folder of this run** is `cabinet/_scratch/streaming-callback/`. It holds the three scripts, `notes.md`, each commit message, and the patch file of the dry run. The notes hold the three heads from prep, each test count, and each result on the way. ### Rules of this work 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 87e5554a..f6f84c27 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 f65a5250..ed718680 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 ad2ed148..4eec10ea 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 49ca913c..2ae187a2 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 `