RFC: Remote Agent Harness Bridge and Event Protocol - #31
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed August 6, 2026, 7:57 AM ET / 11:57 UTC. ClawSweeper reviewWhat this changesAdds a draft RFC and supporting reference for a transport-neutral remote AgentHarness bridge that preserves events and Gateway-owned decisions across a remote host boundary. Merge readinessKeep open for maintainer design review. This docs-only RFC is not on current main, and acceptance remains blocked on the required discussion plus a contradictory v1 workspace-data boundary. Priority: P2 Review scores
Verification
How this fits togetherOpenClaw’s Gateway selects an AgentHarness for a provider/model turn and normally receives its lifecycle, output, and policy requests locally. This proposed bridge would carry those events and decisions to and from a separately hosted harness while keeping Gateway policy and persistence authoritative. flowchart LR
A[Provider or model policy] --> B[OpenClaw Gateway]
B --> C[Remote harness bridge]
C --> D[Host runtime]
D --> E[Selected agent harness]
E --> F[Events and decision requests]
F --> B
Decision needed
Why: This controls a public protocol and security boundary; the RFC itself lists the choice as unresolved while already defining path fields. Before merge
Findings
Agent review detailsSecurityNeeds attention: The RFC introduces a security-sensitive remote-host metadata boundary that must be resolved before acceptance. Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Settle the v1 scope in the maintainer discussion, keep opaque workspace identity by default unless an explicit metadata capability is accepted, then publish the resulting contract with current revision metadata. Do we have a high-confidence way to reproduce the issue? Not applicable: this is an RFC-only documentation change with no implemented runtime behavior to reproduce. Is this the best way to solve the issue? No: the proposed contract should not be accepted until the required discussion resolves the workspace metadata boundary and the RFC consistently reflects that choice. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found, but no applicable review policy affected this item. Codex review notes: model internal, reasoning high; reviewed against af708f0ddb6f. LabelsLabel justifications:
EvidenceSecurity concerns:
What I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (22 earlier review cycles; latest 8 shown)
|
|
I'm closing #29 in favor of this draft. This PR has the stronger shape for the remote AgentHarness proposal because it covers the bridge and the event protocol together: event preservation, Gateway-owned decisions, terminal/persistence semantics, transport/container boundaries, and conformance expectations. Let's use this as the canonical RFC discussion thread. |
|
Reviewed this against the remote-harness implementation we built in Lobster. Two correctness issues to fix before treating this as the authoritative upstream contract:
Validation I ran:
Suggested next edit: add a short “Relationship to Lobster implementation” section that names the current portable baseline, then marks the richer event frames as the proposed upstream contract and lists the required migration points ( |
|
One clarification on the intent: the goal is not to document Lobster’s current side version as-is. The goal is to get an upstream OpenClaw contract we can consume directly and build on, so Lobster does not keep carrying a divergent remote-harness dialect. That means the RFC should draw a crisp boundary:
For the current mismatch with Lobster, I would prefer the RFC not merely say “Lobster does X today.” It should define the upstream target contract and list the migration needed for Lobster to adopt it without forking:
The acceptance criterion I care about: after this RFC lands, Lobster should be able to delete or thin its local protocol decisions and treat upstream OpenClaw as the source of truth, with only the runtime/container adapter remaining Lobster-specific. |
|
Thanks for the detailed review. I pushed an update that addresses this as a public upstream-contract boundary rather than documenting any host-specific side version. Changes in
Still intentionally draft/open for maintainer discussion:
I’ll keep this as draft until those public upstream naming/versioning/conformance decisions are settled. |
Summary
Adds a draft RFC for a first-class remote AgentHarness bridge and event protocol. This expands the remote harness direction from #29 with a fuller protocol/workflow contract covering event preservation, Gateway-owned decisions, terminal persistence, transport/container boundaries, and conformance expectations.
Notes
issueremains blank until acceptance, per RFC lifecycle.Validation
git diff --check