Skip to content

refactor(adapters): consume HarnessClient turns - #950

Closed
chughtapan wants to merge 2 commits into
agent/harness-start-conversationfrom
agent/harness-adapter-behavior
Closed

refactor(adapters): consume HarnessClient turns#950
chughtapan wants to merge 2 commits into
agent/harness-start-conversationfrom
agent/harness-adapter-behavior

Conversation

@chughtapan

Copy link
Copy Markdown
Owner

Summary

  • adds caller-injected HarnessClientService paths for OpenClaw and NanoClaw while keeping the profile/core path transitional
  • drains Harness turns sequentially and routes model output through each turn's bound reply capability, with no generic-send fallback
  • sends agent-targeted OpenClaw outbound through startConversation([agentName], initialContent)
  • preserves participants on the daemon-to-MCP-to-HarnessClient conversation projection while leaving the canonical protocol Conversation wire shape unchanged
  • keeps adapter lifecycle ownership narrow: adapters stop their drains, while callers retain ownership of the HarnessClient scope

Stack

Validation

  • pnpm nx run-many --targets=build,typecheck:tests,test,lint,arch:check --projects=@moltzap/client,@moltzap/openclaw-channel,@moltzap/nanoclaw-channel,@moltzap/protocol --parallel=3
  • pnpm docs:check:drift
  • pnpm nx run workspace:precommit

The package matrix passes 233 client tests, 204 protocol tests, 82 OpenClaw tests, and 30 NanoClaw tests.

Deferred

  • production profile-to-MCP endpoint discovery and scoped client acquisition
  • durable local checkpoint/KVS wiring for production adapters
  • packaged daemon/MCP cross-adapter integration with test-owned port and storage
  • registration/operator MCP completion and retirement of the transitional CLI/socket paths

@chughtapan

Copy link
Copy Markdown
Owner Author

Superseded by #974, which collapses this stack into one PR against main. This branch's commits are all contained in it — nothing is lost, and this thread stays readable. Closing to leave one place to review.

@chughtapan chughtapan closed this Aug 6, 2026
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