You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Drive a governed Maestro tool call through Platform ToolExecution end to end #171
Maestro has the design and partial bridge shape for Platform ToolExecution, but we need one real end-to-end governed execution path that proves the contract across Maestro runtime, Platform policy/approvals, ToolExecution state, CloudEvents, and timeline.
Start with one concrete tool class rather than trying to migrate every tool at once.
Why it matters
ToolExecution is the cleanest practical spine for the Maestro/Platform overlap. It is narrow enough to ship, but rich enough to validate the correlation model that later powers AgentRuntime, Slack decisions, audit, meter, governance learning, and timeline.
What to build
Pick one high-signal tool path, preferably Bash/shell or one MCP tool path, and route it through Platform ExecuteTool when the Platform bridge is enabled.
It adds normalized runtime context metadata to every observed/governed Maestro Platform ToolExecution request: AgentRun, AgentRun step, actor, correlation id, cwd, workspace root, repository root/name, git branch, and git commit. The request is built from Maestro/CI env plus process.cwd() without shelling out, so Platform timeline can join the execution to the same run/step/repo context without bespoke Maestro-only joins.
Local focused validation is green with Bun 1.3.6:
npm test -- test/agent/tool-execution-bridge.test.ts test/platform/tool-execution-client.test.ts
Update: #173 now has the required source-of-truth provenance via evalops/maestro-internal#1483, and the public require-internal-pr check reran green. Both PRs have auto-merge enabled and no review threads at the moment.
Bugbot follow-up is now split out as a fix-forward: internal #1484 and public #174. It replaces the metadata scrubber split/map/join with a direct for...of loop while preserving behavior and keeping Biome happy. Both PRs have auto-merge enabled.
PR #176 is up with internal source-of-truth PR evalops/maestro-internal#1485.
This slice completes the final-output leg for governed Platform ToolExecution: Maestro now calls RecordToolExecutionOutput after local governed execution completes, preserving tool_execution_id / approval correlation while sending a safe JSON summary, duration, local outcome, and runtime metadata back to Platform.
Focused validation is green:
npm test -- test/platform/tool-execution-client.test.ts test/agent/tool-execution-bridge.test.ts test/agent/tool-execution-retry.test.ts
Status refresh from the AgentRuntime lifecycle lane: evalops/maestro-internal#1610 is now open and keeps the governed-tool story attached to the Platform run spine.
The new smoke harness drives a governed-tool-shaped lifecycle against a live Platform AgentRuntime handler: Maestro session trigger -> worker lease -> tool-call-intent step -> approval wait/checkpoint -> resume -> completion -> Platform event read-back. I also reran the existing ToolExecution bridge and Platform timeline tests so this remains compatible with the ExecuteTool / approval / output path already landed for this issue.
Validation evidence:
MAESTRO_PLATFORM_REPO=/Users/jonathanhaas/Documents/Projects/platform npm run platform:agentruntime-e2e -> 13 live Platform runtime events
MAESTRO_PLATFORM_REPO=/Users/jonathanhaas/Documents/Projects/platform npm run platform:timeline-e2e
npm run test -- test/agent/tool-execution-bridge.test.ts test/platform/maestro-timeline-client.test.ts
Stale triage (2026-07-19): ToolExecution client/tests exist; end-to-end governed tool path not proven. Keep as concrete policy/execution slice under #73/#74 family.
Activity
haasonsaas commentedon Apr 25, 2026
PR #173 is up for the next ToolExecution slice.
It adds normalized runtime context metadata to every observed/governed Maestro Platform ToolExecution request: AgentRun, AgentRun step, actor, correlation id, cwd, workspace root, repository root/name, git branch, and git commit. The request is built from Maestro/CI env plus
process.cwd()without shelling out, so Platform timeline can join the execution to the same run/step/repo context without bespoke Maestro-only joins.Local focused validation is green with Bun 1.3.6:
npm test -- test/agent/tool-execution-bridge.test.ts test/platform/tool-execution-client.test.tsbunx biome check src/agent/transport/tool-execution-bridge.ts test/agent/tool-execution-bridge.test.ts docs/design/PLATFORM_TOOL_EXECUTION_BRIDGE.mdgit diff --checkhaasonsaas commentedon Apr 25, 2026
Update: #173 now has the required source-of-truth provenance via evalops/maestro-internal#1483, and the public
require-internal-prcheck reran green. Both PRs have auto-merge enabled and no review threads at the moment.haasonsaas commentedon Apr 25, 2026
Bugbot follow-up is now split out as a fix-forward: internal #1484 and public #174. It replaces the metadata scrubber split/map/join with a direct
for...ofloop while preserving behavior and keeping Biome happy. Both PRs have auto-merge enabled.haasonsaas commentedon Apr 25, 2026
PR #176 is up with internal source-of-truth PR evalops/maestro-internal#1485.
This slice completes the final-output leg for governed Platform ToolExecution: Maestro now calls
RecordToolExecutionOutputafter local governed execution completes, preservingtool_execution_id/ approval correlation while sending a safe JSON summary, duration, local outcome, and runtime metadata back to Platform.Focused validation is green:
npm test -- test/platform/tool-execution-client.test.ts test/agent/tool-execution-bridge.test.ts test/agent/tool-execution-retry.test.tsbunx biome check src/platform/tool-execution-client.ts src/agent/transport/tool-execution-bridge.ts src/agent/transport/tool-execution.ts test/platform/tool-execution-client.test.ts test/agent/tool-execution-bridge.test.tsgit diff --checkhaasonsaas commentedon Apr 30, 2026
Status refresh from the AgentRuntime lifecycle lane: evalops/maestro-internal#1610 is now open and keeps the governed-tool story attached to the Platform run spine.
The new smoke harness drives a governed-tool-shaped lifecycle against a live Platform AgentRuntime handler: Maestro session trigger -> worker lease -> tool-call-intent step -> approval wait/checkpoint -> resume -> completion -> Platform event read-back. I also reran the existing ToolExecution bridge and Platform timeline tests so this remains compatible with the
ExecuteTool/ approval / output path already landed for this issue.Validation evidence:
MAESTRO_PLATFORM_REPO=/Users/jonathanhaas/Documents/Projects/platform npm run platform:agentruntime-e2e-> 13 live Platform runtime eventsMAESTRO_PLATFORM_REPO=/Users/jonathanhaas/Documents/Projects/platform npm run platform:timeline-e2enpm run test -- test/agent/tool-execution-bridge.test.ts test/platform/maestro-timeline-client.test.tshaasonsaas commentedon Jul 19, 2026
Stale triage (2026-07-19): ToolExecution client/tests exist; end-to-end governed tool path not proven. Keep as concrete policy/execution slice under #73/#74 family.