Repository navigation
Description
Context
Maestro already emits local telemetry (packages/ai/src/telemetry/index.ts, per docs/design/TELEMETRY_COST.md) and has explicit EvalOps integration in packages/github-agent/src/worker/evalops.ts. The TelemetryTrainingSection.tsx in the desktop renderer gives users a consent path for training-data contribution.
What's missing: Maestro doesn't currently publish those events as typed CloudEvents onto platform's shared bus. As a result, audit, governance, skills, prompts, meter, and fermata in platform can't subscribe to Maestro state natively — the flywheel stays inside Maestro's process instead of fanning out across the substrate.
Scope
Once platform lands the maestro.v1 proto package (tracked in the platform repo), wire Maestro's telemetry path to publish typed CloudEvents:
- Session start/close/suspend/resume →
maestro.sessions.session.* - Approval mode prompts →
maestro.events.approval_hit - Sandbox / firewall denials →
maestro.events.sandbox_violation,maestro.events.firewall_block - Tool calls via the agent loop →
maestro.events.tool_call.attempted|completed - Prompt variant selection / skill invocation / eval scoring → corresponding
maestro.events.*
Publisher should respect the existing telemetry consent toggle (TelemetryTrainingSection) — enterprise users may want bus publishing mandatory (for audit) while keeping training-data contribution opt-in. These are two distinct consent scopes and should not be conflated.
Acceptance criteria
- Bus publisher implemented in
packages/ai/src/telemetrywith a NATS JetStream transport - Maestro-side typed bindings generated from
evalops/platformproto SDK (TS consumers use the root npm package) - Consent model preserves current user toggle for training; audit-bus publishing gated separately (default on when managed EvalOps routing is active)
- GitHub agent worker (
packages/github-agent/src/worker/evalops.ts) migrated to the new bus publisher - Ambient Agent daemon emits session lifecycle events on the bus
- Headless protocol (
docs/protocols/headless.md) documents the event surface - TUI / web / IDE interfaces share a single publisher via
packages/ai, not per-interface duplication
Notes
Depends on the maestro.v1 proto package landing in evalops/platform first.
Runtime Parity / Conformance Links
- Define Rust core runtime parity contract for hosted Maestro #84 — Rust core runtime parity decision for hosted Maestro.
- Add headless runtime conformance suite for Rust parity #85 — headless runtime conformance suite that should gate Rust-hosted runner parity.
Use #85 as the protocol-level acceptance bar: lifecycle, subscribe/events/messages/heartbeat/disconnect, viewer/controller roles, permission request/response, utility operations, workspace-root enforcement, cursor replay/reset, and drain/resume behavior should match across the current TypeScript web/headless bridge and the target Rust runtime.
Activity
haasonsaas commentedon Apr 22, 2026
Cross-linking from evalops/platform#765:
The event publisher should carry the correlation fields introduced by the deeper integration issues:
Implementation note: keep bus/audit publication separate from product-training consent. Consent-gated training fields can be a subset; operational correlation should still be present.
haasonsaas commentedon Apr 22, 2026
Cross-linking from the hosted remote-server hardening pass:
#76 adds the Maestro-side remote server envelope. Its sub-issues should feed additional event/correlation fields into this publisher work:
This keeps the
maestro.*stream useful for remote server operations, not just chat/session product telemetry.haasonsaas commentedon Apr 27, 2026
Publisher-conformance slice is now in review:
This covers the shared
@evalops/ai/telemetrypublisher export, deterministic CloudEvent IDs, explicit skill identity/status fields, and a Maestro-owned generator for Platform's publisher conformance fixture.Remaining #49 scope after these land: wire more runtime surfaces through the publisher (GitHub worker, Ambient Agent lifecycle, TUI/web/IDE parity) and connect the live NATS/JetStream deployment path end to end.
haasonsaas commentedon Apr 27, 2026
Publisher-conformance PRs are merged now:
5c46dec51cecbea4f0587da0bb541cfe8a13cd3ce5e5d7012f16b0f3bd22e60a45d459bd54d1cd295d6fd54a4ded03c0c89ad26639762b11767bf6f9This closes the publisher-fixture/conformance slice: Maestro owns the generator, Platform consumes generated output, and both sides now validate the approval/tool/skill failure critical path.
Leaving #49 open for the remaining runtime wiring: GitHub agent worker, Ambient Agent lifecycle, and full TUI/web/IDE publisher parity over the event bus.
haasonsaas commentedon Apr 27, 2026
GitHub worker lifecycle slice is now in review: #189 records task session start/close events through the shared @evalops/ai/telemetry event-bus publisher, with task/source-issue correlation and package checks covering the worker path.
haasonsaas commentedon Apr 27, 2026
GitHub worker lifecycle slice is merged now:
This records GitHub agent task session start/close events through the shared @evalops/ai/telemetry event-bus publisher, with task/source-issue correlation. #49 remains open for the remaining runtime wiring: Ambient Agent lifecycle, full TUI/web/IDE parity, and any live NATS/JetStream deployment follow-through.
haasonsaas commentedon Apr 27, 2026
Ambient Agent lifecycle wiring is merged on both sides now:
That covers Ambient daemon started/suspended/resumed/closed session CloudEvents, env-gated NATS/JetStream publication, docs, and the save-failure closed-event regression.
Next TUI parity slice is in review:
This records the TUI session close through the shared telemetry/event-bus mirror with an explicit user-stopped close reason/message.
haasonsaas commentedon Apr 27, 2026
Concrete event-bus/runtime wiring update:
cc5541df8c0c611e16350bc391d938942fe9e0b22bb8a1d8ce6af9b5c273439a6f5a640008459898764d52722ac32dd420cfaf34f4b12ae2e0a27117825ecea7maestro.sessions.session.startedfromstartSessionWithPolicywith web source/surface defaults and model/subject metadata.e27dbce162427fc910c4d37b26a8b8edd62ab9f4c89c0cec4b5c4839dfb8695a3c1e079199392508maestro.sessions.session.closedafter an authorized session delete succeeds, and keeps invalid/denied delete requests quiet.That leaves #49 in a much more concrete state: the main lifecycle surfaces now covered are GitHub worker, Ambient daemon, TUI close, web start, and web delete/close. Remaining work I still see is live NATS/JetStream deployment follow-through and any IDE/headless protocol parity that is not already routed through these shared publisher paths.
haasonsaas commentedon Apr 27, 2026
Strict event-bus smoke is now landed.
Landed:
publishMaestroCloudEventStricthelper plusbun run smoke:event-busfor a real configured NATS/JetStream publish check, while keeping runtime publishers best-effort.CI/review status:
Remaining #49 follow-through is live environment verification: run
bun run smoke:event-buswith the deployed NATS/JetStream URL/creds and confirm the event lands onmaestro.sessions.session.startedin the target stream/consumer path.haasonsaas commentedon Apr 27, 2026
Concrete progress from this pass (keeping this to shipped facts, not architecture phrasing):
0000_initialis treated as applied only when the full baseline exists; theaudit_hash_cachegap is repaired by the new migration.ghcr.io/evalops/maestro:sha-be6be4e@sha256:b377b5dbf91af4719b6ba9aa67edd4ccacb535832b6e9c39ac30f15b91511a8f.prod-continuous;release/prodis now025733db6b5290a293e6e76b2763b5628f206abc.This does not close the typed CloudEvents work in this issue; it clears the production runtime/migration blocker found while working through the Maestro/Platform integration path.
haasonsaas commentedon Jul 19, 2026
Stale triage (2026-07-19): platform-integration still pending. Local telemetry exists; typed CloudEvents → platform bus not complete. Pending: NATS publisher + maestro.v1 event bindings + dual consent scopes. Keep.