Skip to content

feat(acp): add persistent harness delegation to the RSS Gateway - #16

Open
fffonion wants to merge 8 commits into
masterfrom
feat/rss-acp-harness-delegation
Open

fffonion wants to merge 8 commits into
masterfrom
feat/rss-acp-harness-delegation

Conversation

@fffonion

Copy link
Copy Markdown
Contributor

Summary

Add an opt-in delegate_acp tool to the bundled RSS Gateway. RustScript Agent remains responsible for the parent run, approval, workspace authority, and final answer. A configured local harness owns child inference and its external session state; the Agent communicates with it over ACP v1 stdio.

  • Reuse the Agent's config.yaml for local harness launch definitions. Publish the tool only when the Gateway has a valid nonempty harness table and durable storage. Keep the default RSS inventory, the six legacy MCP tools, and editor-driven acp proxy unchanged.
  • Require a human decision for each new call. Pin an external session to the authorized parent session and harness, and restore it without silently creating a replacement or resending an uncertain task. Retain process capacity until cleanup is confirmed.
  • Add bounded, current-call results and operator guidance. The configured harness runs as a trusted local process; the ACP callback policy does not provide OS or network isolation.

Verification

Local candidate: 8f9b6c3df935530863865a1d46ec4ff6fa7600ee, based on 588c9d47baabcdb2f03179531355508a7238f776.

  • Real Gateway HTTP admission, approval, bundled RSS execution, durable storage, and process restart: two runs before restart and one after. Three child processes recorded one session/new, two successful session/resume responses, and three session/prompt requests on the same external session. Each parent model response depended on the tool result for its current call. The model and ACP peer were synthetic fixtures; no live inference service was used.
  • End-to-end target: 6 passed, 1 child entry ignored. Controls cover denied approval, rejected extra arguments, load-only history exclusion, cancellation and cleanup, pin fencing, and bounded results. Workspace revocation also passed in the policy target.
  • Compatibility: ACP client 33, legacy ACP proxy 53, MCP catalog 8 (including the mixed-registry negative control), config 24, RSS tool contracts 116, tool registry 32, and docs 37. All 89 discovered RSS sources compiled. Scoped strict Clippy, format, and diff checks exited 0.
  • Packaging: 15 tests passed with a process-local hooks setting. The initial local packaging run recorded 14 passes and one failure: the developer machine's Git author hook rejected a disposable test repository's fixture commit. The isolated rerun exercised the exact inventory, modes, and packaged source bytes.
  • GitHub Actions on the exact pull-request head.

Review focus

Check that RSS dispatch and the native launch path share the admitted run and call identity; that new approvals cannot carry over from another call; that restored or interrupted sessions do not replay external work; and that public results exclude private session identifiers, launch definitions, raw frames, and internal replay state.

Own the ACP peer lifecycle, arbitrate prompt publication, and verify
process-group cleanup with a scripted peer.
Bind approval, peer launch, restoration, and settlement to the live run
and durable session state.
Expose delegated sessions in the bundled agent loop and exercise
restart, cancellation, and approval through the Gateway.
Bound the approval race fixture and assert that both callers reach
the gate before the persistence worker serializes them.
Forward workspace reads and reviewed file and process actions through
the run-bound relay. Cover discovery handoff, native callback refusal,
and cleanup without assuming synchronous listener closure.
Use schemas.rustscript.org for bundled schema IDs and references.
Regenerate canonical snapshots and check offline resolution.
Compile the policy peer once per Gateway test process. Install its
bytes at each fixture-local path to keep each launch and workspace
isolated.
@fffonion
fffonion force-pushed the feat/rss-acp-harness-delegation branch from 675eaa1 to 97d97f3 Compare December 2, 2026 16:31

This branch has not been deployed

No deployments
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.

1 participant