Skip to content

Pin Harness at fb29b8a2 and remove the WorkspaceRoots slot - #29

Merged
vinniefalco merged 2 commits into
cppalliance:masterfrom
vinniefalco:master
Nov 20, 2026
Merged

vinniefalco merged 2 commits into
cppalliance:masterfrom
vinniefalco:master

Conversation

@vinniefalco

@vinniefalco vinniefalco commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

Workshop pins the Harness at fb29b8a2 and drops the workspace_roots field from with_host_state. A second commit removes the WorkspaceRoots registry slot and the grant-set generation watch that only it used.

  • The agents fixture selects test-model, and test prompts call models.loop().
  • revoke.rs is removed because its prompt read ui().workspace_root.

Summary by CodeRabbit

  • Changes
    • Agent runs now use the model selected from the menu.
    • Workspace access is no longer provided to agent sessions as a separate granted-roots setting.

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.
Copilot AI balanced review requested due to automatic review settings November 20, 2026 21:50

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude Code Review

This pull request is from a fork — automated review is disabled. A repository maintainer can comment @claude review to run a one-time review.

@coderabbitai

coderabbitai Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The workspace-roots registry API and its generation notifications were removed. Workspace registration now retains routes and state, and server setup no longer reads roots from the registry. Tests check grant visibility through the workspace tree route. Harness-related dependencies were repinned, and agent integration setup selects models through the menu.

Changes: Workspace-roots registry removal

Layer / File(s) Summary
Remove roots generation notifications
crates/workshop/workspace/src/workspace.rs, crates/workshop/workspace/src/workspace/backing.rs, crates/workshop/workspace/src/workspace/tests/grants.rs
Workspace grant changes and backing replacements no longer update a roots generation watch channel. The related notification test and documentation were removed.
Remove roots registry contract and registration
crates/workshop/registry/src/*, crates/workshop/registry/tests/it/main.rs, crates/workshop/workspace/src/handles.rs
The WorkspaceRoots trait, adapter, and exports were removed. Workspace registration no longer returns a roots registration guard, and related registry tests were removed.
Update server wiring and workspace tests
crates/workshop/server/src/*, crates/workshop/server/tests/it/agents*, crates/workshop/workspace/tests/it/main.rs
Server composition and host setup no longer require or read WorkspaceRoots. The agent revocation test was removed. Workspace integration tests check granted roots through a subsequent tree request.

Harness pin and model-selection test updates

Layer / File(s) Summary
Update dependency pin and agent model setup
Cargo.toml, crates/workshop/server/tests/it/agents.rs, crates/workshop/server/tests/it/agents/turns.rs, crates/workshop/server/tests/it/chat_gate.rs
Three workspace dependencies now use a new commit. Agent integration setup selects test-model through the menu, and agent scripts call models.loop() without an explicit model argument.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Possibly related PRs

Merge Risk: Minimal · up to 41c2a

This change repins Harness, removes the unused workspace-roots registry slot and its change signal, and adjusts tests to select the model through the menu. No concrete defect remains after review, so the merge risk is minimal.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names two things the changeset does: it pins Harness at commit fb29b8a2 across the three runvil-harness dependencies, and it removes the WorkspaceRoots registry slot. The raw summary confirm…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names two things the changeset does: it pins Harness at commit fb29b8a2 across the three runvil-harness dependencies, and it removes the WorkspaceRoots registry slot. The raw summary confirms both, including the Cargo.toml commit change and the deletion of the WorkspaceRoots trait, adapter, and registration. The title is concise and specific, and it covers both main changes.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Essentials
  • Run ID: 592350f8-35a2-4948-a0d4-fba061bf5e16
Commits

Reviewing files that changed from the base of the PR and between 68c7249 and 41c2aa6.

Files ignored due to path filters: 1

  • Cargo.lock is excluded by !**/*.lock
Files selected for processing: 19

  • Cargo.toml
  • crates/workshop/registry/src/lib.rs
  • crates/workshop/registry/src/traits.rs
  • crates/workshop/registry/tests/it/main.rs
  • crates/workshop/server/src/agents.rs
  • crates/workshop/server/src/agents/bindings-tests.rs
  • crates/workshop/server/src/agents/bindings.rs
  • crates/workshop/server/src/app.rs
  • crates/workshop/server/src/app/compose.rs
  • crates/workshop/server/src/lib.rs
  • crates/workshop/server/tests/it/agents.rs
  • crates/workshop/server/tests/it/agents/revoke.rs
  • crates/workshop/server/tests/it/agents/turns.rs
  • crates/workshop/server/tests/it/chat_gate.rs
  • crates/workshop/workspace/src/handles.rs
  • crates/workshop/workspace/src/workspace.rs
  • crates/workshop/workspace/src/workspace/backing.rs
  • crates/workshop/workspace/src/workspace/tests/grants.rs
  • crates/workshop/workspace/tests/it/main.rs
Files with no reviewable changes: 4

  • crates/workshop/server/src/lib.rs
  • crates/workshop/server/tests/it/agents/revoke.rs
  • crates/workshop/workspace/src/workspace.rs
  • crates/workshop/workspace/src/workspace/backing.rs

Included review availability: This review used your included allowance. 2 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 4 reviews per hour.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 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 WorkspaceRoots registry interface, registrations, and grant-change watch.
  • Updates agent fixtures to select test-model and use models.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

@vinniefalco
vinniefalco merged commit 41c2aa6 into cppalliance:master Nov 20, 2026
17 checks passed
@vinniefalco

Copy link
Copy Markdown
Member Author

Merged by fast-forward push to upstream master after CI passed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants