Repository navigation
Pin Harness at fb29b8a2 and remove the WorkspaceRoots slot - #29
Conversation
The Harness at `fb29b8a29131ca298d517a2e40e9801c7bd6d694` has no `ui()` global and no `workspace_roots` field in `RunSetup`, and its `models.get` takes a model role only. The three `runvil-harness` entries in `Cargo.toml` name that commit, and `with_host_state` sets `selected_model` alone.
- `with_host_state` reads the selection of the menu and does not read `dyn WorkspaceRoots` from the registry. This diff leaves the registration of that slot as it is.
- The echo prompt in `tests/it/agents.rs` and the steer prompt in `agents/turns.rs` call `models.loop()` where they called `models.loop(models.get('test-model'))`. `spawn_agent_server_for_gateway` selects `test-model` with `set_selected`, because the catalog of the mock Gateway lists `model-a` first.
- `a_runs_setup_takes_the_menus_selection` is the bindings test without its roots half.
- `revoke.rs` is deleted with its one test, `a_revoke_reaches_the_next_conversation_and_a_running_one_keeps_its_launch_snapshot`. Its prompt read `ui().workspace_root`, which a run cannot read now.
- `Cargo.lock` changes only the 14 source lines of the crates that come from `runvil-harness`.
- No production prompt changes, and no test here covers a prompt that calls `ui()` or gives `models.get` a model id.
The registry no longer serves the granted roots of the workspace, because nothing outside the tests read the roots or subscribed to their change signal. The trait `WorkspaceRoots`, `WorkspaceRootsAdapter`, the `roots` registration, and the grant-set generation of `Workspace` are deleted. - The diff holds each use of the slot. Outside the tests there are three, and none reads the roots: `register` filled the slot, `compose` required it, and `register_workspace` held its guard. - `Workspace` loses `roots_generation`, `subscribe_roots`, and `bump_roots` with its four calls. The calls `drop(grants)` and `drop(map)` go with them, so each of those two lock guards now lives to the end of its function. - `WorkspaceRegistrations` loses its public field `roots`, and `workshop_registry` exports two names fewer. - A grant, a revoke, and a switch of the workspace file signal nothing now. `Workspace::granted_roots` stays. - `the_registered_routes_serve_the_workspace_api` read the grant back through the slot. It now reads the grant back from `/workspace/tree`. `dropping_the_guards_deregisters_every_contribution` loses its two assertions on the slot. - Three tests are deleted, because the code that they tested is deleted: `the_workspace_roots_handle_serves_the_registrants_grants`, `the_workspace_roots_handle_serves_the_registrants_change_signal`, and `grants_revokes_and_switches_each_signal_a_roots_change`. The diff adds no test.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
There was a problem hiding this comment.
🔵 Needs a closer look
The unavailable external Harness revision prevents checking its RunSetup and model-resolution contracts against Workshop callers, requiring dependency-backed integration validation.
No open issues 🎉
What changed in this PR
Updates Workshop to Harness revision fb29b8a2 and removes the obsolete workspace-roots connection between agent sessions, the registry, and the workspace subsystem.
Changes:
- Pins all Harness dependencies and lockfile entries to the same revision.
- Removes the
WorkspaceRootsregistry interface, registrations, and grant-change watch. - Updates agent fixtures to select
test-modeland usemodels.loop(), while adjusting tests and documentation for the removed API.
| File | Description |
|---|---|
crates/workshop/workspace/tests/it/main.rs |
Verifies granted roots through HTTP instead of the removed registry slot. |
crates/workshop/workspace/src/workspace/tests/grants.rs |
Removes the grant-change watch test. |
crates/workshop/workspace/src/workspace/backing.rs |
Removes roots-change notifications during workspace switches. |
crates/workshop/workspace/src/workspace.rs |
Removes grant-generation watch state and notification methods. |
crates/workshop/workspace/src/handles.rs |
Removes roots-view registration. |
crates/workshop/server/tests/it/chat_gate.rs |
Updates a comment to describe menu selection without ui(). |
crates/workshop/server/tests/it/agents/turns.rs |
Uses parameterless models.loop() in the test prompt. |
crates/workshop/server/tests/it/agents/revoke.rs |
Deletes the test dependent on ui().workspace_root. |
crates/workshop/server/tests/it/agents.rs |
Selects test-model, updates the prompt, and removes the revoke module. |
crates/workshop/server/src/lib.rs |
Removes the obsolete roots-slot documentation invariant. |
crates/workshop/server/src/app/compose.rs |
Removes roots-slot validation and registration retention. |
crates/workshop/server/src/app.rs |
Updates registration-guard documentation. |
crates/workshop/server/src/agents/bindings.rs |
Limits Host-state bindings to the selected model. |
crates/workshop/server/src/agents/bindings-tests.rs |
Updates binding tests to cover menu selection only. |
crates/workshop/server/src/agents.rs |
Removes workspace-roots references from comments. |
crates/workshop/registry/tests/it/main.rs |
Removes tests for the deleted roots interface. |
crates/workshop/registry/src/traits.rs |
Deletes WorkspaceRoots and its adapter. |
crates/workshop/registry/src/lib.rs |
Removes roots-interface exports and documentation. |
Cargo.toml |
Pins the three direct Harness dependencies to fb29b8a2. |
Cargo.lock |
Aligns Harness package sources with the new revision. |
Review effort: Balanced
|
Merged by fast-forward push to upstream master after CI passed. |
Workshop pins the Harness at
fb29b8a2and drops theworkspace_rootsfield fromwith_host_state. A second commit removes theWorkspaceRootsregistry slot and the grant-set generation watch that only it used.test-model, and test prompts callmodels.loop().revoke.rsis removed because its prompt readui().workspace_root.Summary by CodeRabbit