Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 31 additions & 17 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 5 additions & 3 deletions deny.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
21 changes: 21 additions & 0 deletions plan/2026-11-25-1-pin-the-gateway-client-adapter.plan.md
Original file line number Diff line number Diff line change
@@ -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`.
Loading