Repository navigation
feat(v4): add cross runtime adapters - #7
Merged
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR introduces Fleet v4’s cross-runtime adapter layer and operator constitution (policy) injection so the CLI can monitor/probe heterogeneous runtimes (OpenClaw/HTTP/Docker/process) and optionally enforce scoped dispatch rules across task, parallel, and steer.
Changes:
- Added adapter registry/dispatcher + built-in adapters, plus
fleet adaptersandfleet runtimecommand suite. - Added optional “operator constitution” policy management + prompt injection/guarding across dispatch commands.
- Updated docs, templates, examples, and versioning to 4.0.0; improved non-TTY output behavior in some commands.
Reviewed changes
Copilot reviewed 36 out of 37 changed files in this pull request and generated 7 comments.
Show a summary per file
| File | Description |
|---|---|
| tests/test_cli.sh | Expands integration coverage for v4 adapters/runtimes and policy injection; adjusts test runner bash selection. |
| templates/configs/minimal.json | Adds runtimes placeholder and constitution block defaults. |
| templates/configs/full.json | Adds example runtimes + constitution fields; updates model labels. |
| lib/core/policy.sh | New core policy helpers (apply, guard, summary) implemented via embedded Python. |
| lib/core/config.sh | Bumps Fleet version to 4.0.0. |
| lib/core/adapters.sh | New adapter registry/dispatcher + parallel probing and rendering helpers. |
| lib/commands/task.sh | Applies policy guard + injection to task dispatch payload. |
| lib/commands/steer.sh | Applies policy guard + injection to steer dispatch payload. |
| lib/commands/sitrep.sh | Adds runtime probing + delta tracking and improves non-TTY color handling via env. |
| lib/commands/runtime.sh | New fleet runtime CRUD + probe UI (health/info/version). |
| lib/commands/policy.sh | New fleet policy command for enabling/scoping/editing/previewing constitution rules. |
| lib/commands/parallel.sh | Adds constitution guard + injection for parallel-dispatched subtasks. |
| lib/commands/init.sh | Safer PATH rc-file edits via printf grouping. |
| lib/commands/health.sh | Adds runtime probing section via adapter layer. |
| lib/commands/backup.sh | Replaces `ls |
| lib/commands/audit.sh | Improves placeholder token detection; replaces `ls |
| lib/commands/agents.sh | Adds runtime section (adapter-probed) and improves non-TTY color handling via env. |
| lib/commands/adapters.sh | New fleet adapters command showing adapters + bindings. |
| lib/adapters/process.sh | New inferred process adapter via pgrep. |
| lib/adapters/openclaw.sh | New OpenClaw adapter with /health + authenticated /v1/models fallback. |
| lib/adapters/http.sh | New generic HTTP adapter with expected status/method/headers/token and version probing. |
| lib/adapters/docker.sh | New Docker adapter for container state/health and version from image tag. |
| examples/solo-empire/config.json | Updates model labels for v4 naming. |
| examples/solo-empire/README.md | Updates diagram labels to match new model naming. |
| examples/research-lab/config.json | Updates model labels for v4 naming. |
| examples/research-lab/README.md | Updates diagram labels to match new model naming. |
| examples/dev-team/config.json | Updates model labels for v4 naming. |
| examples/dev-team/README.md | Updates diagram labels and narrative to match new model naming. |
| examples/cross-runtime/config.json | New mixed-runtime example config including runtimes. |
| examples/cross-runtime/README.md | New documentation for the cross-runtime example and expected output. |
| docs/patterns.md | Updates model naming language in patterns documentation. |
| docs/configuration.md | Documents new constitution block, runtimes schema, and adapter env vars. |
| bin/fleet | Sources new core libs and adds routing/help entries for adapters, runtime(s), and policy. |
| _meta.json | Bumps to 4.0.0 and documents new env vars + permissions for runtimes/adapters. |
| SKILL.md | Updates skill docs for v4 features (adapters/runtimes/policy) and model naming. |
| README.md | Updates positioning, adds v4 operator constitution and cross-runtime docs, updates architecture tree. |
| CHANGELOG.md | Adds 4.0.0 release notes covering adapters/runtimes/policy and related CLI changes. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
Purpose
Fleet v4 adds Multi-agent fleet management with OpenClaw upfront, followed by Claude Code, Codex, Cursor, Windsurf, Gemini CLI, and custom agent stacks. One CLI to monitor, manage, and orchestrate your entire AI agent fleet. The goal is to let operators see agent health, track runtime status, judge reliability, route intelligently, and keep accountability across the full system without locking Fleet to one runtime.
What changed
Verification