From c458f2a34bc734b9ef76c323fcf8228ec9e05a03 Mon Sep 17 00:00:00 2001 From: Vinnie Falco Date: Thu, 3 Dec 2026 04:02:59 -0800 Subject: [PATCH 1/3] Tidy up chat.md --- crates/workshop/agents/agents/chat.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/workshop/agents/agents/chat.md b/crates/workshop/agents/agents/chat.md index e6536db0..d2fe374c 100644 --- a/crates/workshop/agents/agents/chat.md +++ b/crates/workshop/agents/agents/chat.md @@ -10,7 +10,7 @@ models: The built-in chat agent: a pass-through between the operator and the selected model, whose one system message says where the Runvil prompting language documentation is mounted. The conversation is the section's `messages` list, retained across turns; the model is the dropdown's selection bound at run launch, so a selection change takes effect on the next run. When the conversation outgrows the model's context window, older turns are summarized so the conversation continues. -## Conversation +--- ```lua tools.offer("std") From 2cd2a7a34ad199d01587486eb5a873c947ce53b2 Mon Sep 17 00:00:00 2001 From: Vinnie Falco Date: Thu, 3 Dec 2026 06:10:18 -0800 Subject: [PATCH 2/3] Update plugin and harness pins to latest upstream commits Bump `runvil-harness`, `runvil-plugin-std`, `runvil-plugin-bashkit`, and `runvil-plugin-web` pins in `Cargo.toml` and `Cargo.lock` to the merged upstream commits. --- Cargo.lock | 32 ++++++++++++++++---------------- Cargo.toml | 12 ++++++------ 2 files changed, 22 insertions(+), 22 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 4a4dbdf2..0d4e0114 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2267,7 +2267,7 @@ dependencies = [ [[package]] name = "harness-gateway-client" version = "0.3.0" -source = "git+https://github.com/cppalliance/runvil-harness?rev=ff54bceebe8912009b55961ab1acaabafd85991b#ff54bceebe8912009b55961ab1acaabafd85991b" +source = "git+https://github.com/cppalliance/runvil-harness?rev=af9eb141d238f8f120c5bd1cfac7a82ca877e9ac#af9eb141d238f8f120c5bd1cfac7a82ca877e9ac" dependencies = [ "gateway-client", "runvil", @@ -2278,7 +2278,7 @@ dependencies = [ [[package]] name = "harness-plugin-loader" version = "0.3.0" -source = "git+https://github.com/cppalliance/runvil-harness?rev=ff54bceebe8912009b55961ab1acaabafd85991b#ff54bceebe8912009b55961ab1acaabafd85991b" +source = "git+https://github.com/cppalliance/runvil-harness?rev=af9eb141d238f8f120c5bd1cfac7a82ca877e9ac#af9eb141d238f8f120c5bd1cfac7a82ca877e9ac" dependencies = [ "libloading 0.8.9", "runvil-plugin", @@ -2289,7 +2289,7 @@ dependencies = [ [[package]] name = "harness-runner" version = "0.3.0" -source = "git+https://github.com/cppalliance/runvil-harness?rev=ff54bceebe8912009b55961ab1acaabafd85991b#ff54bceebe8912009b55961ab1acaabafd85991b" +source = "git+https://github.com/cppalliance/runvil-harness?rev=af9eb141d238f8f120c5bd1cfac7a82ca877e9ac#af9eb141d238f8f120c5bd1cfac7a82ca877e9ac" dependencies = [ "futures-util", "gateway-types", @@ -4054,7 +4054,7 @@ dependencies = [ [[package]] name = "plugin-bashkit" version = "0.1.0" -source = "git+https://github.com/cppalliance/runvil-plugin-bashkit?rev=04e0c869bd7bc7f7234edfa623d112c89cfaff4c#04e0c869bd7bc7f7234edfa623d112c89cfaff4c" +source = "git+https://github.com/cppalliance/runvil-plugin-bashkit?rev=5dc451f6239daeca060602e09f42faa9efed89bc#5dc451f6239daeca060602e09f42faa9efed89bc" dependencies = [ "bashkit", "runvil-plugin-sdk", @@ -4066,7 +4066,7 @@ dependencies = [ [[package]] name = "plugin-mcp" version = "0.3.0" -source = "git+https://github.com/cppalliance/runvil-harness?rev=ff54bceebe8912009b55961ab1acaabafd85991b#ff54bceebe8912009b55961ab1acaabafd85991b" +source = "git+https://github.com/cppalliance/runvil-harness?rev=af9eb141d238f8f120c5bd1cfac7a82ca877e9ac#af9eb141d238f8f120c5bd1cfac7a82ca877e9ac" dependencies = [ "futures-util", "reqwest", @@ -4080,7 +4080,7 @@ dependencies = [ [[package]] name = "plugin-std" version = "0.1.0" -source = "git+https://github.com/cppalliance/runvil-plugin-std?rev=d7c795f51fd3bfa40d892218367be97c6a2572bc#d7c795f51fd3bfa40d892218367be97c6a2572bc" +source = "git+https://github.com/cppalliance/runvil-plugin-std?rev=badf32c91d9c16694758cc3cc847b2e2878d0a82#badf32c91d9c16694758cc3cc847b2e2878d0a82" dependencies = [ "regex", "runvil-plugin-sdk", @@ -4100,7 +4100,7 @@ dependencies = [ [[package]] name = "plugin-web" version = "0.1.0" -source = "git+https://github.com/cppalliance/runvil-plugin-web?rev=9409b2c8070fc43883c8b286a56015eb4747fa20#9409b2c8070fc43883c8b286a56015eb4747fa20" +source = "git+https://github.com/cppalliance/runvil-plugin-web?rev=bab5f78202091389812e75958baf21acfeea311a#bab5f78202091389812e75958baf21acfeea311a" dependencies = [ "encoding_rs", "htmd", @@ -4745,7 +4745,7 @@ dependencies = [ [[package]] name = "runvil" version = "0.3.0" -source = "git+https://github.com/cppalliance/runvil-harness?rev=ff54bceebe8912009b55961ab1acaabafd85991b#ff54bceebe8912009b55961ab1acaabafd85991b" +source = "git+https://github.com/cppalliance/runvil-harness?rev=af9eb141d238f8f120c5bd1cfac7a82ca877e9ac#af9eb141d238f8f120c5bd1cfac7a82ca877e9ac" dependencies = [ "harness-plugin-loader", "harness-runner", @@ -4756,7 +4756,7 @@ dependencies = [ [[package]] name = "runvil-engine" version = "0.3.0" -source = "git+https://github.com/cppalliance/runvil-harness?rev=ff54bceebe8912009b55961ab1acaabafd85991b#ff54bceebe8912009b55961ab1acaabafd85991b" +source = "git+https://github.com/cppalliance/runvil-harness?rev=af9eb141d238f8f120c5bd1cfac7a82ca877e9ac#af9eb141d238f8f120c5bd1cfac7a82ca877e9ac" dependencies = [ "gateway-types", "runvil-lua", @@ -4769,7 +4769,7 @@ dependencies = [ [[package]] name = "runvil-lua" version = "0.3.0" -source = "git+https://github.com/cppalliance/runvil-harness?rev=ff54bceebe8912009b55961ab1acaabafd85991b#ff54bceebe8912009b55961ab1acaabafd85991b" +source = "git+https://github.com/cppalliance/runvil-harness?rev=af9eb141d238f8f120c5bd1cfac7a82ca877e9ac#af9eb141d238f8f120c5bd1cfac7a82ca877e9ac" dependencies = [ "gateway-types", "mlua", @@ -4783,7 +4783,7 @@ dependencies = [ [[package]] name = "runvil-markdown" version = "0.3.0" -source = "git+https://github.com/cppalliance/runvil-harness?rev=ff54bceebe8912009b55961ab1acaabafd85991b#ff54bceebe8912009b55961ab1acaabafd85991b" +source = "git+https://github.com/cppalliance/runvil-harness?rev=af9eb141d238f8f120c5bd1cfac7a82ca877e9ac#af9eb141d238f8f120c5bd1cfac7a82ca877e9ac" dependencies = [ "pulldown-cmark", "serde", @@ -4794,7 +4794,7 @@ dependencies = [ [[package]] name = "runvil-plugin" version = "0.3.0" -source = "git+https://github.com/cppalliance/runvil-harness?rev=ff54bceebe8912009b55961ab1acaabafd85991b#ff54bceebe8912009b55961ab1acaabafd85991b" +source = "git+https://github.com/cppalliance/runvil-harness?rev=af9eb141d238f8f120c5bd1cfac7a82ca877e9ac#af9eb141d238f8f120c5bd1cfac7a82ca877e9ac" dependencies = [ "runvil-lua", "runvil-types", @@ -4820,7 +4820,7 @@ source = "git+https://github.com/cppalliance/runvil-plugin-api?rev=626bd548706a1 [[package]] name = "runvil-prompt" version = "0.3.0" -source = "git+https://github.com/cppalliance/runvil-harness?rev=ff54bceebe8912009b55961ab1acaabafd85991b#ff54bceebe8912009b55961ab1acaabafd85991b" +source = "git+https://github.com/cppalliance/runvil-harness?rev=af9eb141d238f8f120c5bd1cfac7a82ca877e9ac#af9eb141d238f8f120c5bd1cfac7a82ca877e9ac" dependencies = [ "pulldown-cmark", "runvil-lua", @@ -4833,7 +4833,7 @@ dependencies = [ [[package]] name = "runvil-runtime" version = "0.3.0" -source = "git+https://github.com/cppalliance/runvil-harness?rev=ff54bceebe8912009b55961ab1acaabafd85991b#ff54bceebe8912009b55961ab1acaabafd85991b" +source = "git+https://github.com/cppalliance/runvil-harness?rev=af9eb141d238f8f120c5bd1cfac7a82ca877e9ac#af9eb141d238f8f120c5bd1cfac7a82ca877e9ac" dependencies = [ "gateway-types", "mlua", @@ -4851,7 +4851,7 @@ dependencies = [ [[package]] name = "runvil-types" version = "0.3.0" -source = "git+https://github.com/cppalliance/runvil-harness?rev=ff54bceebe8912009b55961ab1acaabafd85991b#ff54bceebe8912009b55961ab1acaabafd85991b" +source = "git+https://github.com/cppalliance/runvil-harness?rev=af9eb141d238f8f120c5bd1cfac7a82ca877e9ac#af9eb141d238f8f120c5bd1cfac7a82ca877e9ac" dependencies = [ "gateway-types", "serde", @@ -4862,7 +4862,7 @@ dependencies = [ [[package]] name = "runvil-vfs" version = "0.3.0" -source = "git+https://github.com/cppalliance/runvil-harness?rev=ff54bceebe8912009b55961ab1acaabafd85991b#ff54bceebe8912009b55961ab1acaabafd85991b" +source = "git+https://github.com/cppalliance/runvil-harness?rev=af9eb141d238f8f120c5bd1cfac7a82ca877e9ac#af9eb141d238f8f120c5bd1cfac7a82ca877e9ac" [[package]] name = "rust-embed" diff --git a/Cargo.toml b/Cargo.toml index 7494ebd6..eba02f2c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -25,9 +25,9 @@ repository = "https://github.com/cppalliance/runvil-workshop" # Workshop links in. All three name one commit, because two commits would # be two copies of every type the crates share. `version` beside `git` # keeps cargo-deny's wildcard check quiet. -runvil = { version = "0.3.0", git = "https://github.com/cppalliance/runvil-harness", rev = "ff54bceebe8912009b55961ab1acaabafd85991b" } -harness-gateway-client = { version = "0.3.0", git = "https://github.com/cppalliance/runvil-harness", rev = "ff54bceebe8912009b55961ab1acaabafd85991b" } -plugin-mcp = { version = "0.3.0", git = "https://github.com/cppalliance/runvil-harness", rev = "ff54bceebe8912009b55961ab1acaabafd85991b" } +runvil = { version = "0.3.0", git = "https://github.com/cppalliance/runvil-harness", rev = "af9eb141d238f8f120c5bd1cfac7a82ca877e9ac" } +harness-gateway-client = { version = "0.3.0", git = "https://github.com/cppalliance/runvil-harness", rev = "af9eb141d238f8f120c5bd1cfac7a82ca877e9ac" } +plugin-mcp = { version = "0.3.0", git = "https://github.com/cppalliance/runvil-harness", rev = "af9eb141d238f8f120c5bd1cfac7a82ca877e9ac" } # The safe layer over the C Plugin contract, version 0.10, from its own # repository, pinned by commit. Only the library Plugin crates under # `crates/workshop/` name it, for `export_plugin!`. The commit is the one @@ -39,21 +39,21 @@ runvil-plugin-sdk = { version = "0.10.0", git = "https://github.com/cppalliance/ # own export of `runvil_plugin`, which `workshop-plugin-std` makes instead. # The key is `std-plugin` because that crate's own library is named # `plugin_std`, the name of the file Workshop ships. -std-plugin = { package = "plugin-std", version = "0.1.0", git = "https://github.com/cppalliance/runvil-plugin-std", rev = "d7c795f51fd3bfa40d892218367be97c6a2572bc", default-features = false } +std-plugin = { package = "plugin-std", version = "0.1.0", git = "https://github.com/cppalliance/runvil-plugin-std", rev = "badf32c91d9c16694758cc3cc847b2e2878d0a82", default-features = false } # The bashkit Plugin, from its own repository, pinned by commit and built # against the same contract commit. default-features off drops its own # export of `runvil_plugin`, which `workshop-plugin-bashkit` makes # instead. The key is `bashkit-plugin` for the reason std's is # `std-plugin`: the crate's own library has the name of the file Workshop # ships, `plugin_bashkit`. -bashkit-plugin = { package = "plugin-bashkit", version = "0.1.0", git = "https://github.com/cppalliance/runvil-plugin-bashkit", rev = "04e0c869bd7bc7f7234edfa623d112c89cfaff4c", default-features = false } +bashkit-plugin = { package = "plugin-bashkit", version = "0.1.0", git = "https://github.com/cppalliance/runvil-plugin-bashkit", rev = "5dc451f6239daeca060602e09f42faa9efed89bc", default-features = false } # The web Plugin, from its own repository, pinned by commit and built # against the same contract commit. default-features off drops its own # export of `runvil_plugin`, which `workshop-plugin-web` makes instead. # The key is `web-plugin` for the reason std's is `std-plugin`: the # crate's own library has the name of the file Workshop ships, # `plugin_web`. -web-plugin = { package = "plugin-web", version = "0.1.0", git = "https://github.com/cppalliance/runvil-plugin-web", rev = "9409b2c8070fc43883c8b286a56015eb4747fa20", default-features = false } +web-plugin = { package = "plugin-web", version = "0.1.0", git = "https://github.com/cppalliance/runvil-plugin-web", rev = "bab5f78202091389812e75958baf21acfeea311a", default-features = false } # The urls Plugin, from its own repository, pinned by commit and built # against the same contract commit. default-features off drops its own # export of `runvil_plugin`, which `workshop-plugin-urls` makes instead. From c685252d51cd71628546c43b3cb63f0c86483a48 Mon Sep 17 00:00:00 2001 From: Vinnie Falco Date: Thu, 3 Dec 2026 06:30:10 -0800 Subject: [PATCH 3/3] Update server tests for trusted plugin output and sparse Read Update `workshop-server` unit and integration tests for trusted outputs from `std`, `bashkit`, and `web`, sparse every-10th-line `Read` numbering, and the unnamed section in `chat.md`. --- .../server/src/agents/language_guide/tests.rs | 2 +- .../server/src/agents/tests-gateway.rs | 4 ++-- crates/workshop/server/src/agents/tests.rs | 6 +++--- .../tests/it/chat_gate/canonical_sequence.rs | 4 ++-- .../server/tests/it/chat_gate/files.rs | 4 ++-- .../server/tests/it/std_real_directory.rs | 19 +++++++++---------- 6 files changed, 19 insertions(+), 20 deletions(-) diff --git a/crates/workshop/server/src/agents/language_guide/tests.rs b/crates/workshop/server/src/agents/language_guide/tests.rs index 2c8a0d69..20375eb8 100644 --- a/crates/workshop/server/src/agents/language_guide/tests.rs +++ b/crates/workshop/server/src/agents/language_guide/tests.rs @@ -190,7 +190,7 @@ async fn a_prompt_sees_the_directory_mapped_under_the_runvil_mount() -> Outcome .await?; assert!(final_text.contains(" - test/"), "{final_text}"); assert!( - final_text.contains(" 1|# Hello from a local page"), + final_text.contains("# Hello from a local page"), "{final_text}" ); Ok(()) diff --git a/crates/workshop/server/src/agents/tests-gateway.rs b/crates/workshop/server/src/agents/tests-gateway.rs index 19bb5302..56140462 100644 --- a/crates/workshop/server/src/agents/tests-gateway.rs +++ b/crates/workshop/server/src/agents/tests-gateway.rs @@ -194,7 +194,7 @@ async fn a_prompts_web_search_asks_the_gateway_registered_when_the_search_starts and its results reach the script: {answer}" ); assert!( - answer.contains("