Repository navigation
feat: add ACP proxy and workspace MCP tools - #15
Merged
Merged
Conversation
Introduce the shared protocol SDK pins alongside the provider and gateway serialization changes required by their serde_json feature set. Preserve persisted request fingerprints and opaque payload bytes; pin them with provider wire, replay, and gateway regression tests.
Add the provider-free executor, shared workspace capabilities, and stdio server with durable settlement, cancellation, and process ownership. Keep the server and its capability contracts together because admission and shutdown exercise the same lifecycle and ownership boundaries.
Forward ACP v1 over stdio and inject the workspace tool server without taking ownership of harness inference. Include SDK contract, lifecycle, and end-to-end coverage for the proxy and injection boundary.
Document launch, configuration, workspace tool access, and harness ownership. Keep guide consistency and packaged command checks with the documented interface.
fffonion
force-pushed
the
feat/acp-harness-tool-provider
branch
2 times, most recently
from
November 28, 2026 19:34
5f000db to
67a81c2
Compare
fffonion
force-pushed
the
feat/acp-harness-tool-provider
branch
from
November 28, 2026 22:29
a52fe5e to
52e5e44
Compare
Group SIGKILL may finish asynchronously after the owned root is reaped. Poll the real stopped-drain fixture group within its original cleanup cutoff, keeping the root reap and ownership assertions at cleanup return.
Use the standalone MCP settlement policy in the RSS commit-failure fixture. Keep the default abort policy in the other cases, and assert that replay of the unresolved call never reaches a second OS spawn.
Hold the publication gate until cancellation reaches the VM epoch watcher. Confirm that the guest never commits and compare the returned receipt with the durable settlement.
Use the standalone MCP publication policy only in the RSS read-file retention fixture. Check that the failed commit never persists a result and that its exact artifact remains with the original bytes and bound owner metadata.
fffonion
marked this pull request as ready for review
November 29, 2026 20:29
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
tools serve --stdio. The harness owns model calls and credentials; RustScript enforces workspace and profile boundaries for its tools.11c9ee908a29365bd02573311f56e9308eb7dbe6. The Agent auth fixture now compares the complete decoded JSON value without treating object key order as part of its contract. The test still exercises the typed encoder and verifies denial of an unrelated builtin import. Core PR #46 is closed without merging and is not a dependency of this PR.Commit scopes
331c795— SDK dependencies and JSON byte contracts.20ea55a— provider-free MCP stdio, workspace capabilities, and effect settlement.3e48b26— ACP proxy, MCP injection, and end-to-end coverage.67a81c2— ACP documentation and release-package checks.52e5e44— compare the auth fixture's public JSON structurally.1eae2cc— compare logout reports structurally and keep single-line LF framing.7e3b255— compare complete plugin schema property inventories independent of key order.101e4ad— keep canonical bytes for persisted plugin state documents.a8b49a9— emit valid signed state receipts and commit a staged write only after its reread matches.eb153b5— observe managed process-group exit within the existing cleanup cutoff (test fixture only).08c0d38— explicitly exercise standalone MCP process retention after a failed receipt write, with no second OS spawn on reentry (test fixture only).f44f83f— wait for the VM epoch to advance before releasing the MCP write fixture, then check zero guest commits and read back the durable receipt (test fixture only).9eaf9d4— exercise standalone MCP artifact retention in the RSS fixture and check exact artifact identity, bytes, ownership, and absence of a durable result (test fixture only).681ea5a— compare the complete RunLimits JSON object without requiring a particular key order (test fixture only).Verification
52e5e44, the public JSON fixture and the fullauth_bundle_teststarget passed (18/18); the docs contract target passed (36/36). Its full CI also passed formatting, strict Clippy, and 870 library tests, then failed one logout subprocess assertion solely on JSON object key order.1eae2cc, the logout fixture still checks the complete object, a single LF-terminated stdout line, redaction, and the existing home and configuration isolation. On the clean committed head, the original failing case and all 17 subprocess tests passed. Formatting and diff checks passed. Grok accepted both fixture updates.7e3b255passed all 61 plugin contract tests.101e4adpassed the targeted canonical state regression. For the signed state fixture, three exact controls passed on the reviewed tree. In a temporary signed RSS mismatch probe, the corrected fixture kept the durable revision and object unchanged. Grok accepted those changes;a8b49a9has the same complete tree as the reviewed candidate.a8b49a9passed formatting and strict Clippy, then stopped after one managed process-group fixture assertion failed (869 library tests passed, 6 ignored; no integration targets ran). A controlled exit observation reproduced that assertion on the old fixture and passed with the new fixture. The cleaneb153b5exact case passed; Grok accepted the test-only fix. Root reap and ownership assertions remain immediate, and the cleanup still has the original five-second cutoff.eb153b5passed formatting, strict Clippy, and 870 library tests (6 ignored). Plugin state migration passed 46 tests (2 ignored). Cargo stopped after the RSS process retention fixture failed its child-liveness assertion (40 passed, 1 failed in that target).Abortpolicy while testing standalone MCP retention.08c0d38selectsRetainForSettlementonly for this fixture and checks that unresolved reentry never reaches another OS spawn attempt. The clean exact case passed (1 passed, 40 filtered). The affectedrss_process_tool_teststarget then passed all 41 cases at default concurrency on the same clean commit. Grok accepted the fixture-only change.08c0d38passed formatting, strict Clippy, and 870 library tests (6 ignored). The workspace suite stopped at one MCP lifecycle fixture failure (60 passed, 1 failed in that target):published_write_receipt_survives_a_vm_stop_before_tool_commitreturnedpublishedbut did not satisfy the nonemptyhashassertion. That target passed on the preceding head. The affected RSS process target did not launch in this CI; its 41/41 result was local.a8b49a9Linux x86_64 GNU candidate passed the locked offline release build and archive verification (101 files; both packaged executables match the fresh build). From the extracted archive, OpenCode 1.19.6 with a scripted loopback model completed MCP write, exact read-back, and directprintf. The bundled anonymous gateway returned HTTP 200 and shut down cleanly. Grok accepted the package evidence. No live provider was used.eb153b5Linux x86_64 GNU candidate passed a fresh locked offline release build, the archive verifier, and deterministic repeat packaging. All 101 packaged file payloads, including both executables, are byte-identical to the exerciseda8b49a9package. The OpenCode 1.19.6 scripted loopback and bundled gateway results were executed ona8b49a9; Grok independently accepted reusing that evidence for the identical packaged files. The archive timestamp changes to the new commit epoch.08c0d38Linux x86_64 GNU candidate passed the Rust 1.99.1 locked offline release build with unchanged release outputs reused fromeb153b5. The archive verifier passed, two packages at the current epoch are byte-identical, and all 101 files (including both executables) match the exerciseda8b49a9package andeb153b5. Grok independently accepted the archive and the transfer of the existing runtime evidence. OpenCode and the gateway were not rerun.f44f83f, the exact write-publication and neighboring artifact-publication tests each passed (1/1). Grok accepted the fixture-only change. Current CI has passed formatting and strict Clippy; workspace tests are in progress.f44f83fLinux x86_64 GNU candidate (30,241,465 bytes) passed both archive-verifier invocations and deterministic repeat packaging. Cargo reused the existing release binaries. All 101 file payloads match the08c0d38candidate and thea8b49a9archive originally exercised with OpenCode and a scripted model. Grok independently accepted the package; no new runtime smoke test was needed for the identical payloads.f44f83fpassed formatting, strict Clippy, 870 library tests (6 ignored), MCP lifecycle (61/61) and RSS processes (41/41). It stopped at one failure inrss_tools_contract_tests(115 passed, 1 failed): the artifact-retention fixture observed 0 when it expected 1 after a commit-storage failure.Abortretracted it and the existing standalone MCP policy retained it without storing a durable result.9eaf9d4selects the retention policy only for this test. The exact retention and managed-retraction controls passed and the affected target passed 116/116. Grok accepted the fixture-only change. That CI run passed the RSS target (116/116) and failed later at the RunLimits JSON ordering assertion inservice_tests.681ea5areproduces and fixes the previous CI failure in the RunLimits fixture. The limits and workspace validation assertions remain intact. The clean-commit exact fixture, formatting, and diff checks passed; Grok accepted the test-only change. Exact-head CI passed on attempt 1: formatting, strict Clippy, all-target/all-feature workspace tests, whitespace, and clean worktree. The tested merge snapshot has the same tree as681ea5a.9eaf9d4Linux x86_64 GNU candidate (30,241,460 bytes) passed both archive-verifier runs, deterministic repeat packaging, and direct ELF checks. Cargo reused the existing release binaries. All 101 file payloads match thef44f83fcandidate and thea8b49a9archive previously exercised with OpenCode and a scripted model. Grok independently accepted those comparisons; the runtime checks were not repeated.681ea5aLinux x86_64 GNU candidate (30,241,446 bytes) passed archive verification and deterministic repeat packaging at epoch1795972600. Grok independently accepted the archive. All 101 payloads match the9eaf9d4candidate and thea8b49a9archive used for the OpenCode/scripted-model and gateway smoke tests. Cargo reused the existing release executables; no new runtime checks were run.