Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
java-version: "21"

- name: Test (Nx affected)
timeout-minutes: 45
timeout-minutes: 60
env:
NX_BASE: ${{ github.event.pull_request.base.sha || 'HEAD~1' }}
NX_HEAD: ${{ github.event.pull_request.head.sha || 'HEAD' }}
Expand Down
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,17 @@ versioning when releases are cut.

## [0.10.21] - 2026-05-22

### Changed

- Add Platform-owned A2A delegation (#2080). <!-- maestro-release-note:f30599cbae56 -->
- Reduce avoidable tool serialization (#2079). <!-- maestro-release-note:cde1f5c1a424 -->

### Fixed

- Vendor runtime workspaces under `dist/node_modules` so Bun and npm installs of
`@evalops/maestro` do not resolve unpublished `@evalops/contracts` or
`@evalops/tui` packages from the registry.
`@evalops/tui` packages from the registry. <!-- maestro-release-note:449e0b2ad97f -->
- Allow public mirror ci guardrail shape (#2092). <!-- maestro-release-note:e5749b2d000b -->

## [0.10.20] - 2026-05-22

Expand Down
12 changes: 0 additions & 12 deletions docs/protocols/a2a-fleet-delegation.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,18 +121,6 @@ MAESTRO_SWARM_A2A_PREFER_INTERNAL=1 \
maestro swarm run plan.md
```

For a host-local proof of the full Maestro loop, run:

```sh
npm run smoke:a2a-local-swarm
```

The smoke starts a mock Agent Registry plus two real Rust control-plane
instances, waits for both peers to auto-register and heartbeat, runs the swarm
executor through Platform-style discovery, verifies both peers complete remote
A2A tasks, resumes one task by `message.taskId`, and checks that a denied task
class returns zero eligible candidates before dispatch.

Platform-discovered peers are ranked by the A2A capability market
(`evalops.maestro.a2a-capability-market.v1`) before selection. The ranking
prefers exact skill matches, idle/online and freshly heartbeated agents,
Expand Down
2 changes: 1 addition & 1 deletion docs/protocols/codex-operating-layer.json
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
"records Platform observations for cached dynamic read callbacks",
"lets Codex dynamic tool callbacks wait for user approval instead of auto-denying",
"preserves Platform joins for denied Codex dynamic callbacks",
"returns workflow-state errors from cached dynamic callbacks",
"returns workflow-state errors from repeated dynamic callbacks",
"withTimeout",
"action_approval_required",
"ActionApprovalService(\"prompt\")",
Expand Down
567 changes: 283 additions & 284 deletions package.json

Large diffs are not rendered by default.

48 changes: 47 additions & 1 deletion packages/slack-agent/test/tools-status.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,52 @@ import { describe, expect, it, vi } from "vitest";
import type { ExecOptions, Executor } from "../src/sandbox.js";
import { type ContainerHealth, createStatusTool } from "../src/tools/status.js";

vi.mock("node:child_process", () => ({
exec: vi.fn(
(
cmd: string,
_options: unknown,
callback: (error: Error | null, stdout: string, stderr: string) => void,
) => {
if (cmd.includes("docker inspect")) {
callback(
null,
JSON.stringify([
{
Id: "abcdef1234567890",
Name: "/test-container",
Config: { Image: "node:20-slim" },
State: {
StartedAt: new Date(Date.now() - 1000).toISOString(),
Status: "running",
},
},
]),
"",
);
return;
}

if (cmd.includes("docker stats")) {
callback(
null,
JSON.stringify({
CPUPerc: "1.23%",
MemUsage: "12MiB / 1GiB",
MemPerc: "1.17%",
NetIO: "1kB / 2kB",
BlockIO: "0B / 0B",
}),
"",
);
return;
}

callback(new Error(`unexpected command: ${cmd}`), "", "");
},
),
}));

// Mock executor factory
function createMockExecutor(
responses: Record<
Expand Down Expand Up @@ -159,7 +205,7 @@ describe("createStatusTool", () => {
const health = result.details as ContainerHealth;

expect(health.environment).toBe("docker");
});
}, 15_000);
});

describe("output formatting", () => {
Expand Down
29 changes: 29 additions & 0 deletions scripts/ci-nx-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,33 @@ affected_projects_log="nx-affected-projects.log"

git diff --name-only "$NX_BASE" "$NX_HEAD" | tee "$changed_files_log"

changed_files_match() {
local pattern="$1"
grep -qE "$pattern" "$changed_files_log"
}

run_ci_guardrail_tests() {
if ! changed_files_match '^(\.github/workflows/.*|scripts/ci-nx-tests\.sh|scripts/(plan-ci-checks|plan-nx-test-command)\.mjs|test/scripts/ci-guardrails\.test\.ts)$'; then
return 0
fi

echo "Running CI guardrail tests for workflow/planner changes..."
node ./scripts/run-vitest.js --run test/scripts/ci-guardrails.test.ts
}

run_runtime_package_validators() {
if ! changed_files_match '^(package\.json|packages/[^/]+/package\.json|scripts/(bundle-runtime-deps|check-docker-runtime-workspaces|check-packed-bundled-workspaces|runtime-workspaces)\.mjs|scripts/(check-runtime-deps|validate-public-package-deps)\.js)$'; then
return 0
fi

echo "Running runtime package validators..."
node scripts/validate-public-package-deps.js
npm run build
node scripts/check-runtime-deps.js
node scripts/check-docker-runtime-workspaces.mjs
node scripts/check-packed-bundled-workspaces.mjs
}

run_shared_memory_tests() {
if git diff --name-only "$NX_BASE" "$NX_HEAD" | grep -qE '^(src/shared-memory/|test/shared-memory/|src/config/env-vars\.ts|src/cli/commands/memory\.ts|src/cli/help\.ts|src/session/manager\.ts)'; then
echo "Running shared memory tests..."
Expand All @@ -34,6 +61,8 @@ run_shared_memory_tests() {
}

node scripts/ensure-deps.js --no-install --workspace @evalops/contracts --workspace @evalops/tui
run_ci_guardrail_tests
run_runtime_package_validators

nx_plan="$(node scripts/plan-nx-test-command.mjs --base "$NX_BASE" --head "$NX_HEAD")"
nx_mode="$(printf '%s\n' "$nx_plan" | sed -n '1p')"
Expand Down
30 changes: 30 additions & 0 deletions scripts/plan-ci-checks.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,45 @@ function isNestedReadme(path, prefix) {
return rest.includes("/") && rest.endsWith("/README.md");
}

const CI_GUARDRAIL_FILES = new Set([
"scripts/ci-nx-tests.sh",
"scripts/plan-ci-checks.mjs",
"scripts/plan-nx-test-command.mjs",
"test/scripts/ci-guardrails.test.ts",
]);
const RUNTIME_PACKAGE_VALIDATOR_FILES = new Set([
"scripts/bundle-runtime-deps.mjs",
"scripts/check-docker-runtime-workspaces.mjs",
"scripts/check-packed-bundled-workspaces.mjs",
"scripts/check-runtime-deps.js",
"scripts/runtime-workspaces.mjs",
"scripts/validate-public-package-deps.js",
]);

function isPackageManifest(path) {
return path === "package.json" || /^packages\/[^/]+\/package\.json$/.test(path);
}

function isTestFile(path) {
return /(^|\/)test\/.*\.(test|spec)\.[cm]?[jt]sx?$/.test(path);
}

function shouldSkipCoverageForPath(path) {
return (
path.startsWith(".github/workflows/") ||
(path.startsWith("docs/") && path.endsWith(".md")) ||
CI_GUARDRAIL_FILES.has(path) ||
RUNTIME_PACKAGE_VALIDATOR_FILES.has(path) ||
isPackageManifest(path) ||
isTestFile(path) ||
isNestedReadme(path, "examples") ||
isNestedReadme(path, "packages") ||
isNestedReadme(path, "src") ||
path === "CHANGELOG.md" ||
path === "CONTRIBUTING.md" ||
path === "CODE_OF_CONDUCT.md" ||
path === "SECURITY.md" ||
path === "openapi.json" ||
path === "todo.md" ||
(hasNoSlash(path) && path.startsWith("LICENSE"))
);
Expand Down
Loading
Loading