diff --git a/Cargo.lock b/Cargo.lock index ce5ebe7b..c5ec9c82 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1894,6 +1894,22 @@ dependencies = [ "slab", ] +[[package]] +name = "gateway-client" +version = "0.1.0" +source = "git+https://github.com/cppalliance/gateway-client?rev=91e4685c4bdbd70cc89a10fa791e1a37641f728f#91e4685c4bdbd70cc89a10fa791e1a37641f728f" +dependencies = [ + "bytes", + "libc", + "reqwest", + "serde", + "serde_json", + "thiserror 2.0.19", + "tokio", + "url", + "windows-sys 0.61.2", +] + [[package]] name = "gdk" version = "0.18.2" @@ -2242,21 +2258,19 @@ dependencies = [ [[package]] name = "harness-gateway-client" version = "0.3.0" -source = "git+https://github.com/cppalliance/runvil-harness?rev=5d9c7bf86539401382aa5187c1b1873ceac38fb6#5d9c7bf86539401382aa5187c1b1873ceac38fb6" +source = "git+https://github.com/cppalliance/runvil-harness?rev=92abc305b9223513621eba95107648bdf8e4e47f#92abc305b9223513621eba95107648bdf8e4e47f" dependencies = [ - "bytes", - "reqwest", + "gateway-client", "runvil", "serde", "serde_json", "tokio", - "url", ] [[package]] name = "harness-plugin-loader" version = "0.3.0" -source = "git+https://github.com/cppalliance/runvil-harness?rev=5d9c7bf86539401382aa5187c1b1873ceac38fb6#5d9c7bf86539401382aa5187c1b1873ceac38fb6" +source = "git+https://github.com/cppalliance/runvil-harness?rev=92abc305b9223513621eba95107648bdf8e4e47f#92abc305b9223513621eba95107648bdf8e4e47f" dependencies = [ "libloading 0.8.9", "runvil-plugin", @@ -2267,7 +2281,7 @@ dependencies = [ [[package]] name = "harness-runner" version = "0.3.0" -source = "git+https://github.com/cppalliance/runvil-harness?rev=5d9c7bf86539401382aa5187c1b1873ceac38fb6#5d9c7bf86539401382aa5187c1b1873ceac38fb6" +source = "git+https://github.com/cppalliance/runvil-harness?rev=92abc305b9223513621eba95107648bdf8e4e47f#92abc305b9223513621eba95107648bdf8e4e47f" dependencies = [ "futures-util", "harness-plugin-loader", @@ -4058,7 +4072,7 @@ dependencies = [ [[package]] name = "plugin-mcp" version = "0.3.0" -source = "git+https://github.com/cppalliance/runvil-harness?rev=5d9c7bf86539401382aa5187c1b1873ceac38fb6#5d9c7bf86539401382aa5187c1b1873ceac38fb6" +source = "git+https://github.com/cppalliance/runvil-harness?rev=92abc305b9223513621eba95107648bdf8e4e47f#92abc305b9223513621eba95107648bdf8e4e47f" dependencies = [ "reqwest", "rmcp", @@ -4726,7 +4740,7 @@ dependencies = [ [[package]] name = "runvil" version = "0.3.0" -source = "git+https://github.com/cppalliance/runvil-harness?rev=5d9c7bf86539401382aa5187c1b1873ceac38fb6#5d9c7bf86539401382aa5187c1b1873ceac38fb6" +source = "git+https://github.com/cppalliance/runvil-harness?rev=92abc305b9223513621eba95107648bdf8e4e47f#92abc305b9223513621eba95107648bdf8e4e47f" dependencies = [ "harness-plugin-loader", "harness-runner", @@ -4737,7 +4751,7 @@ dependencies = [ [[package]] name = "runvil-engine" version = "0.3.0" -source = "git+https://github.com/cppalliance/runvil-harness?rev=5d9c7bf86539401382aa5187c1b1873ceac38fb6#5d9c7bf86539401382aa5187c1b1873ceac38fb6" +source = "git+https://github.com/cppalliance/runvil-harness?rev=92abc305b9223513621eba95107648bdf8e4e47f#92abc305b9223513621eba95107648bdf8e4e47f" dependencies = [ "runvil-lua", "runvil-model-client", @@ -4750,7 +4764,7 @@ dependencies = [ [[package]] name = "runvil-lua" version = "0.3.0" -source = "git+https://github.com/cppalliance/runvil-harness?rev=5d9c7bf86539401382aa5187c1b1873ceac38fb6#5d9c7bf86539401382aa5187c1b1873ceac38fb6" +source = "git+https://github.com/cppalliance/runvil-harness?rev=92abc305b9223513621eba95107648bdf8e4e47f#92abc305b9223513621eba95107648bdf8e4e47f" dependencies = [ "mlua", "runvil-markdown", @@ -4764,7 +4778,7 @@ dependencies = [ [[package]] name = "runvil-markdown" version = "0.3.0" -source = "git+https://github.com/cppalliance/runvil-harness?rev=5d9c7bf86539401382aa5187c1b1873ceac38fb6#5d9c7bf86539401382aa5187c1b1873ceac38fb6" +source = "git+https://github.com/cppalliance/runvil-harness?rev=92abc305b9223513621eba95107648bdf8e4e47f#92abc305b9223513621eba95107648bdf8e4e47f" dependencies = [ "pulldown-cmark", "serde_json", @@ -4774,7 +4788,7 @@ dependencies = [ [[package]] name = "runvil-model-client" version = "0.3.0" -source = "git+https://github.com/cppalliance/runvil-harness?rev=5d9c7bf86539401382aa5187c1b1873ceac38fb6#5d9c7bf86539401382aa5187c1b1873ceac38fb6" +source = "git+https://github.com/cppalliance/runvil-harness?rev=92abc305b9223513621eba95107648bdf8e4e47f#92abc305b9223513621eba95107648bdf8e4e47f" dependencies = [ "runvil-types", "serde", @@ -4784,7 +4798,7 @@ dependencies = [ [[package]] name = "runvil-plugin" version = "0.3.0" -source = "git+https://github.com/cppalliance/runvil-harness?rev=5d9c7bf86539401382aa5187c1b1873ceac38fb6#5d9c7bf86539401382aa5187c1b1873ceac38fb6" +source = "git+https://github.com/cppalliance/runvil-harness?rev=92abc305b9223513621eba95107648bdf8e4e47f#92abc305b9223513621eba95107648bdf8e4e47f" dependencies = [ "runvil-types", "runvil-vfs", @@ -4807,7 +4821,7 @@ source = "git+https://github.com/cppalliance/runvil-plugin-api?rev=74f9e08ba9cc5 [[package]] name = "runvil-prompt" version = "0.3.0" -source = "git+https://github.com/cppalliance/runvil-harness?rev=5d9c7bf86539401382aa5187c1b1873ceac38fb6#5d9c7bf86539401382aa5187c1b1873ceac38fb6" +source = "git+https://github.com/cppalliance/runvil-harness?rev=92abc305b9223513621eba95107648bdf8e4e47f#92abc305b9223513621eba95107648bdf8e4e47f" dependencies = [ "pulldown-cmark", "runvil-lua", @@ -4820,7 +4834,7 @@ dependencies = [ [[package]] name = "runvil-runtime" version = "0.3.0" -source = "git+https://github.com/cppalliance/runvil-harness?rev=5d9c7bf86539401382aa5187c1b1873ceac38fb6#5d9c7bf86539401382aa5187c1b1873ceac38fb6" +source = "git+https://github.com/cppalliance/runvil-harness?rev=92abc305b9223513621eba95107648bdf8e4e47f#92abc305b9223513621eba95107648bdf8e4e47f" dependencies = [ "mlua", "regex", @@ -4838,7 +4852,7 @@ dependencies = [ [[package]] name = "runvil-types" version = "0.3.0" -source = "git+https://github.com/cppalliance/runvil-harness?rev=5d9c7bf86539401382aa5187c1b1873ceac38fb6#5d9c7bf86539401382aa5187c1b1873ceac38fb6" +source = "git+https://github.com/cppalliance/runvil-harness?rev=92abc305b9223513621eba95107648bdf8e4e47f#92abc305b9223513621eba95107648bdf8e4e47f" dependencies = [ "serde", "serde_json", @@ -4848,7 +4862,7 @@ dependencies = [ [[package]] name = "runvil-vfs" version = "0.3.0" -source = "git+https://github.com/cppalliance/runvil-harness?rev=5d9c7bf86539401382aa5187c1b1873ceac38fb6#5d9c7bf86539401382aa5187c1b1873ceac38fb6" +source = "git+https://github.com/cppalliance/runvil-harness?rev=92abc305b9223513621eba95107648bdf8e4e47f#92abc305b9223513621eba95107648bdf8e4e47f" [[package]] name = "rust-embed" diff --git a/Cargo.toml b/Cargo.toml index 0bb3d481..f5b3566a 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 = "5d9c7bf86539401382aa5187c1b1873ceac38fb6" } -harness-gateway-client = { version = "0.3.0", git = "https://github.com/cppalliance/runvil-harness", rev = "5d9c7bf86539401382aa5187c1b1873ceac38fb6" } -plugin-mcp = { version = "0.3.0", git = "https://github.com/cppalliance/runvil-harness", rev = "5d9c7bf86539401382aa5187c1b1873ceac38fb6" } +runvil = { version = "0.3.0", git = "https://github.com/cppalliance/runvil-harness", rev = "92abc305b9223513621eba95107648bdf8e4e47f" } +harness-gateway-client = { version = "0.3.0", git = "https://github.com/cppalliance/runvil-harness", rev = "92abc305b9223513621eba95107648bdf8e4e47f" } +plugin-mcp = { version = "0.3.0", git = "https://github.com/cppalliance/runvil-harness", rev = "92abc305b9223513621eba95107648bdf8e4e47f" } # The safe layer over the C Plugin contract, version 0.6, 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 diff --git a/deny.toml b/deny.toml index 62d6c2f5..c5a928cc 100644 --- a/deny.toml +++ b/deny.toml @@ -71,14 +71,16 @@ crate = "serde_json" deny = ["preserve_order"] [sources] -# Only crates.io is an allowed registry. The five git sources are the +# Only crates.io is an allowed registry. The six git sources are the # repository of the Engine and the Harness, the C Plugin contract's own -# repository, the std Plugin's, the bashkit Plugin's, and the web -# Plugin's, each of which Cargo.toml pins by commit. +# repository, the std Plugin's, the bashkit Plugin's, the web Plugin's, and +# the Gateway client's. Cargo.toml pins the first five by commit, and the +# sixth comes in through the Harness's pin. unknown-registry = "deny" unknown-git = "deny" allow-registry = ["https://github.com/rust-lang/crates.io-index"] allow-git = [ + "https://github.com/cppalliance/gateway-client", "https://github.com/cppalliance/runvil-harness", "https://github.com/cppalliance/runvil-plugin-api", "https://github.com/cppalliance/runvil-plugin-std", diff --git a/plan/2026-11-25-1-pin-the-gateway-client-adapter.plan.md b/plan/2026-11-25-1-pin-the-gateway-client-adapter.plan.md new file mode 100644 index 00000000..e06953bd --- /dev/null +++ b/plan/2026-11-25-1-pin-the-gateway-client-adapter.plan.md @@ -0,0 +1,21 @@ +--- +name: Pin the Gateway client adapter +overview: Move the pin of runvil, harness-gateway-client, and plugin-mcp to the Harness commit whose harness-gateway-client is an adapter over gateway-client, allow the gateway-client git source in deny.toml, and refresh Cargo.lock. Workshop's source does not change, because the adapter still exports every name Workshop uses. +todos: + - id: workshop-pr + content: "Pin the three Harness crates at one commit, allow the gateway-client git source, refresh Cargo.lock; pull request from the fork, CI, fast-forward merge" + status: pending +isProject: false +--- + +# Pin the Gateway client adapter + +This is the part of the extraction plan that concerns this repository. `harness-gateway-client` is now an adapter over `gateway-client`, a repository of its own, and it keeps its name and the names Workshop uses. This change moves the pin of the three Harness crates to the Harness commit that holds the adapter, and it allows the new git source in `deny.toml`. It changes no Workshop source. + +### runvil-workshop (step D1) + +- **`Cargo.toml`, lines 28 to 30.** `runvil`, `harness-gateway-client`, and `plugin-mcp` all get `rev` = H. All three name one `rev`, as its `harness_pin` check requires. +- **`Cargo.lock`.** `cargo update -p harness-gateway-client` moves the Harness's git source to H and adds `gateway-client` as a git package. Commit the lock. +- **`deny.toml`, `allow-git`.** Add `"https://github.com/cppalliance/gateway-client"`. The lock now holds that source through `harness-gateway-client`, and `unknown-git = "deny"` refuses it otherwise. Today the list names the Harness, `runvil-plugin-api`, `runvil-plugin-std`, `runvil-plugin-bashkit`, and `runvil-plugin-web`. +- **No source change.** Workshop names `GatewayBroker`, `TokioTimer`, `provide_gateway_resources`, `GatewayEndpoint`, and `SecretString`, and the adapter still exports all five. +- **Checks:** the commands in its `AGENTS.md` verification list, which include `cargo test -p build-xtask` (the `harness_pin` check) and `cargo deny check`.