Repository navigation
Pin the Harness at ee89d088, pass a run its services by value, and take its events as values - #34
Conversation
The three `rev` values of the root `Cargo.toml` name `ee89d088`. That commit of the Harness lets the setup of a run take a service in any of three forms, warns about a run report that is dropped unread, and hands a recorder each event with its record. Workshop's code is as it was, and it builds and passes its tests on the new commit. - `Cargo.lock` changes the 14 `source` lines of the crates that come from `runvil-harness`. It adds no crate and removes none. - The pin moves across nine commits of `runvil-harness`. - The diff changes no code and no test. Plan: runvil-harness/plan/2026-11-21-2-run-services-and-event-values.plan.md
`RunSetup::new` of the Harness takes a service itself and puts it into an `Arc`, so `setup_for` passes its `RunBroker` and `TokioTimer` directly. `recorder` of `Conversation` takes its inner recorder as `impl IntoShared<dyn RunRecorder>`, the forms that `RunSetup::new` takes, so `setup_for` hands it the recorder of the agent by value. The three `Arc::new` of `setup_for` are gone. - A caller of `recorder` passes the recorder itself, an `Arc` of it, or an `Arc<dyn RunRecorder>`. `recorder` calls `into_shared` on what it is given. - Seven arguments of `RunSetup::new` in three test files lose their `Arc::new`, and `bindings-tests.rs` loses `use std::sync::Arc;`. - No assertion changes, and the diff adds no test. Plan: runvil-harness/plan/2026-11-21-2-run-services-and-event-values.plan.md
The Harness hands a recorder each event with its record, through `append_event`. The tee overrides that method: it passes the record and the event on to the inner recorder, and once that recorder has accepted the record, it hands the event to the conversation. So the tee stops copying the payload of each record and parsing the event back out of it, and the error branch for a payload that fails to parse goes. - `append` passes each record on to the inner recorder as it is. - The order is as it was: the inner recorder takes the record first, and its refusal is returned as its own, so a refused event reaches no one. - The three tests that feed events call `append_event` with the record and the event. `Watching`, the inner recorder of the tests, leaves `append_event` at its default, so the record of an event reaches its `append`, and the test of the order still finds the transcript empty at that moment. - `tee.rs` loses its import of `RecordKind`. - No assertion changes, and the diff adds no test. Plan: runvil-harness/plan/2026-11-21-2-run-services-and-event-values.plan.md
|
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 implementation of cppalliance/runvil-harness#62 leaves the event-dispatch, default/Arc-forwarding, and IntoShared/append_event contracts at ee89d088 unverified, along with upstream merge status and required merge order.
No open issues 🎉
What changed in this PR
Updates Workshop to Harness commit ee89d088, simplifying run setup and consuming typed events directly instead of decoding their recorded JSON. This PR depends on cppalliance/runvil-harness#62 merging first.
Changes:
- Updates all three Harness dependency pins and 14 lockfile source entries.
- Passes run services directly and lets
Conversation::recorderaccept owned or shared recorders. - Routes typed events through
append_event, preserving record-before-observation ordering and adapting existing tests.
| File | Description |
|---|---|
crates/workshop/server/src/agents/tests.rs |
Passes broker and timer values directly in tests. |
crates/workshop/server/src/agents/bindings-tests.rs |
Simplifies test setup and removes the unused Arc import. |
crates/workshop/server/src/agents.rs |
Removes explicit service wrapping from production run setup. |
crates/workshop/agents/tests/it/support.rs |
Updates integration-test setup to pass services directly. |
crates/workshop/agents/src/tee.rs |
Forwards typed events after successful recording, removing JSON parsing. |
crates/workshop/agents/src/tee-tests.rs |
Exercises append_event with existing ordering and failure assertions. |
crates/workshop/agents/src/conversation-run.rs |
Accepts owned or shared recorders through IntoShared. |
Cargo.toml |
Pins all three Harness dependencies to the new commit. |
Cargo.lock |
Aligns 14 Harness package sources with the new pin. |
Review effort: Balanced
Workshop builds the setup of each run without
Arc::new, and its recorder tee takes each event of a run as a value. Both come with the Harness atee89d088, the head of cppalliance/runvil-harness#62:RunSetup::newtakes a service itself, and a recorder is handed each event with its record. The pin moves first, in a commit of its own, with Workshop's code as it is. So that commit shows that Workshop as written builds and passes on the new Harness.Merge order: this pull request merges after cppalliance/runvil-harness#62. Its pin names a commit that only that pull request holds until then. The Harness merge is a fast-forward, so the commit keeps its id.
The commits
ee89d088. The threerevvalues ofrunvil-harnessinCargo.tomlmove, with the lock file, and no code changes.RunSetup::new.setup_forloses its threeArc::new, andConversation::recordertakes its inner recorder in each form in which a setup takes one.append_event, and its parse of the record of each event goes.Each of the three passes Workshop's whole verification list by itself. Each commit message ends with a
Plan:line that names the plan file in runvil-harness.What changes
setup_for, before:After:
The tee, before:
After:
Conversation::recordertakesinner: impl IntoShared<dyn RunRecorder>, where it took anArc<dyn RunRecorder>. A caller passes the recorder itself, anArcof it, or anArc<dyn RunRecorder>.append_eventwith the record and the event. The tee hands both to the inner recorder, and once that recorder has accepted the record, it hands the event to the conversation.Cargo.lockchanges its 14sourcelines of the Harness packages and nothing else.RunSetup::newtake a service in any form, and hand the recorder each event runvil-harness#62, and three thatmasterof the Harness held already, which change text only.What a person will notice
The window, the transcript, and the run log get the same events in the same order as before.
Call sites
setup_foris three statements, and its threeArc::neware gone.RunSetup::newin three test files are plain values, and one of those files lost its import ofArc.Conversation::recorderpass a recorder by value once and anArcthree times.Tests
The two test groups run 706 and 354 tests on Windows, all passing, after each of the three commits. Those are the counts of before.
append_event. The inner recorder of those tests overridesappendalone, so the test of the order still shows that the transcript was empty while the inner recorder took the record.Checks
Every command in
AGENTS.mdpassed on the new pin before each of the three commits, with--locked: the format check, clippy in its two groups withCARGO_BUILD_WARNINGS=deny, nextest in its two groups, the docs build withRUSTDOCFLAGS="-D warnings",cargo dylint, the structural checks, and the wording scan. The pre-push hook passed on the push.The checks ran on Windows.
Summary by CodeRabbit