Skip to content

feat(v4): add cross runtime adapters - #7

Merged
oguzhnatly merged 12 commits into
mainfrom
feat/v4
May 2, 2026
Merged

oguzhnatly merged 12 commits into
mainfrom
feat/v4

Conversation

@oguzhnatly

@oguzhnatly oguzhnatly commented Apr 30, 2026 •

Copy link
Copy Markdown
Owner

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

  1. Added a cross runtime adapter layer with a six function contract for health, info, version, required fields, verification mode, and description
  2. Added built in adapters for OpenClaw gateways, HTTP services, Docker containers, and OS processes
  3. Added fleet adapters plus fleet runtime add, test, list, and remove commands
  4. Surfaced runtimes in fleet agents, fleet health, and fleet sitrep with parallel probes and status deltas
  5. Added optional operator constitution rules for fleet task, fleet parallel, and fleet steer
  6. Added required constitution mode so scoped dispatches fail when rules are disabled or empty
  7. Added fleet policy commands for show, preview, enable, disable, require, optional, add, remove, clear, title, and scope
  8. Added dispatch level tests proving policy rules are included in task, parallel, and steer payloads
  9. Added docs, examples, templates, metadata, and version 4.0.0 release notes
  10. Hardened non TTY runtime output so piped commands stay clean
  11. Fixed OpenClaw authenticated fallback probing
  12. Documented OpenClaw, Claude Code, Codex, Cursor, Windsurf, Gemini CLI, and custom agent stack support by name

Verification

  1. shellcheck on bin, core, commands, adapters, and tests
  2. bash tests/test_cli.sh, 163 passed, 0 failed
  3. Manual mixed runtime checks for adapters, runtime list, runtime test, agents, health, and sitrep
  4. Manual policy management, scoping, required mode, and preview checks for injected operator rules
  5. End to end fake server tests for task, parallel, and steer policy payload injection
  6. Guard tests proving required mode blocks task and steer when rules are missing
  7. JSON validation for examples, templates, and metadata
  8. Public boundary scan for rejected wording, generated signatures, bot trailers, unsupported support order, and missing orchestrate positioning

@oguzhnatly oguzhnatly changed the title feat: add cross runtime adapters feat(v4): add cross runtime adapters Apr 30, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 adapters and fleet runtime command 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.

Comment thread lib/commands/policy.sh
Comment thread lib/core/adapters.sh Outdated
Comment thread tests/test_cli.sh
Comment thread lib/commands/runtime.sh Outdated
Comment thread lib/core/adapters.sh
Comment thread lib/commands/runtime.sh Outdated
Comment thread lib/core/adapters.sh
@oguzhnatly
oguzhnatly merged commit c2975c3 into main May 2, 2026
2 checks passed
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.

2 participants