Skip to content

chore: sync public mirror from internal - #789

Merged
haasonsaas merged 10 commits into
mainfrom
sync/public-release-mirror
Jun 19, 2026
Merged

haasonsaas merged 10 commits into
mainfrom
sync/public-release-mirror

Conversation

@haasonsaas

@haasonsaas haasonsaas commented Jun 18, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • sync the sanitized public tree from evalops/maestro-internal
  • keep evalops/maestro as a generated public mirror of the private source of truth
  • preserve public-owned CI and trusted-publishing workflows from the public checkout
  • internal source SHA: fdc5baa7009a84f20281ca20a216807ec325e7f4
  • last generated public sync base: 00ad52eb824790a859a29331862883db0ab6a801
  • previewed public-tree drift: 18 file(s) to copy/update and 0 stale file(s) to delete
  • public-only commits since last generated sync: 2

Source-of-truth status

Public Mirror Drift Audit

  • package: @evalops/maestro
  • private source: https://github.com/evalops/maestro-internal@main (fdc5baa7009a)
  • public projection: https://github.com/evalops/maestro@main (2f8e0a9a3508)
  • files to copy or update: 18
  • stale files to delete: 0
  • result: drift detected
  • invariant: public_projection_has_drift

Sample Changed Paths

  • copy/update CHANGELOG.md
  • copy/update package.json
  • copy/update packages/desktop/src/renderer/components/Settings/SettingsModal.tsx
  • copy/update scripts/check-runtime-env-snapshot-hygiene.mjs
  • copy/update scripts/pr-feedback-audit.mjs
  • copy/update src/load-env.ts
  • copy/update src/runtime/env.ts
  • copy/update src/telemetry.ts
  • copy/update test/cli-runtime.test.ts
  • copy/update test/cli/load-env.test.ts
  • copy/update test/helpers/load-env-mock.ts
  • copy/update test/platform/operating-layer.test.ts
  • copy/update test/runtime/env.test.ts
  • copy/update test/scripts/ci-guardrails.test.ts
  • copy/update test/telemetry/telemetry-meter.test.ts
  • copy/update test/web-server-profile.test.ts
  • copy/update test/workflows/tag-release.test.ts
  • copy/update .github/workflows/tag-release.yml

Guidance

Let internal main generate and merge the public sync PR before relying on public main.

Drift sample

  • copy/update CHANGELOG.md
  • copy/update package.json
  • copy/update packages/desktop/src/renderer/components/Settings/SettingsModal.tsx
  • copy/update scripts/check-runtime-env-snapshot-hygiene.mjs
  • copy/update scripts/pr-feedback-audit.mjs
  • copy/update src/load-env.ts
  • copy/update src/runtime/env.ts
  • copy/update src/telemetry.ts
  • copy/update test/cli-runtime.test.ts
  • copy/update test/cli/load-env.test.ts
  • copy/update test/helpers/load-env-mock.ts
  • copy/update test/platform/operating-layer.test.ts
  • copy/update test/runtime/env.test.ts
  • copy/update test/scripts/ci-guardrails.test.ts
  • copy/update test/telemetry/telemetry-meter.test.ts
  • copy/update test/web-server-profile.test.ts
  • copy/update test/workflows/tag-release.test.ts
  • copy/update .github/workflows/tag-release.yml

Public-only commits since last generated sync

Validation

  • generated by the sync-public-release-mirror workflow in public-tree mode

Test Plan

  • generated by the sync-public-release-mirror workflow in public-tree mode
  • public-source-provenance require-internal-pr check confirms internal source PR lineage
  • CI, integration, rust-hosted-conformance, coverage, Socket, and Cursor checks must pass before merge

Staged Rollout

  • Staging is unnecessary for this generated mirror PR: it does not independently promote user-visible behavior. It mirrors already-reviewed internal source from evalops/maestro-internal@fdc5baa7009a84f20281ca20a216807ec325e7f4, including existing hidden/evaluation surfaces, and keeps public package parity behind the established public-source-provenance gate.

Supersedes

@cursor

cursor Bot commented Jun 18, 2026 •

Copy link
Copy Markdown

PR Summary

Medium Risk
Touches process bootstrap (RuntimeEnv finalization), telemetry enablement/persistence, and public release dispatch—important for correct env/security ordering and shipping, though changes are guarded by new hygiene checks and tests.

Overview
This mirror sync brings over release automation, RuntimeEnv bootstrap hardening, and related telemetry / CI hygiene from internal.

Tag-release dispatch confirmation now prefers comparing the latest dispatched run databaseId before and after dispatch (with an empty-array-safe jq guard), so confirmation still works when gh run list --limit 50 is saturated with prior runs for the same tag; count-only checks remain as fallback.

Runtime env changes mark bootstrap complete via markRuntimeEnvFinalized() after dotenv load/scrub/reset, warn or strict-fail on defaultRuntimeEnv() before finalization, and add a check:runtime-env-snapshot-hygiene ratchet that blocks eager module-scope defaultRuntimeEnv() snapshots. telemetry.ts drops import-time env capture in favor of lazy getExporterRuntimeConfig(), refreshes enablement when OAuth/meter credentials appear, and adjusts default file persistence for meter-only vs non-canonical events.

Tooling / UX: pr-feedback-audit gains --recent-days / --limit and a review:unresolved-threads script; desktop Settings composer status/selection share one state object; CHANGELOG reflects 0.10.50 notes; tests and guardrails cover the above.

Reviewed by Cursor Bugbot for commit 50a5758. Bugbot is set up for automated code reviews on this repo. Configure here.

@haasonsaas
haasonsaas force-pushed the sync/public-release-mirror branch from 543c105 to 7c29e29 Compare June 18, 2026 06:54

@haasonsaas haasonsaas left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

🔒 Hermes automated security scan flagged this PR.

🟠 Unsafe patterns (review):

  • scripts/check-runtime-env-snapshot-hygiene.mjs — exec(): const match = /\bstatic\s+(?:[$A-Z_a-z][$\w]*\s+)*\[([\s\S]*?)\]/.exec(

Automated gitleaks + pattern scan. Dismiss this review if it's a false positive.

@haasonsaas
haasonsaas force-pushed the sync/public-release-mirror branch from 7c29e29 to 5ea72ae Compare June 18, 2026 12:48
Comment thread .github/workflows/tag-release.yml Resolved

@cursor cursor Bot 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.

Cursor Bugbot has reviewed your changes using high effort and found 2 potential issues.

Autofix Details

Bugbot Autofix prepared fixes for both issues found in the latest run.

  • ✅ Fixed: Workflow tests assert wrong function
    • Updated the tag-release workflow test expectations to assert latest_dispatched_release_run_id and its retry calls, matching the workflow YAML.
  • ✅ Fixed: Stale cached telemetry enablement
    • Telemetry status and recording now use live shouldEnableTelemetry(...) checks instead of cached initial enablement, with a regression test covering late OAuth meter credentials.

You can send follow-ups to the cloud agent here.

Comment thread test/workflows/tag-release.test.ts Resolved
Comment thread src/telemetry.ts Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ac0613509c

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

expect(dispatchStep?.run).toMatch(
/gh run list\s+\\\n\s+--repo "\$\{GITHUB_REPOSITORY\}"/,
);
expect(dispatchStep?.run).toContain("dispatched_release_run_count()");

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Update release dispatch test expectations

When the tag-release workflow test runs, this assertion still expects the old dispatched_release_run_count() helper, but .github/workflows/tag-release.yml in this commit defines latest_dispatched_release_run_id() instead. That makes the workflow test fail even though the workflow was updated, blocking the normal Maestro test suite until these assertions are brought in sync with the new dispatch-confirmation logic.

Useful? React with 👍 / 👎.

@cursor

cursor Bot commented Jun 18, 2026

Copy link
Copy Markdown

Bugbot Autofix prepared a fix for the issue found in the latest run.

  • ✅ Fixed: Dispatch confirm caps at fifty
    • Changed release dispatch confirmation to compare the latest matching run ID instead of a limited run count, so a new dispatch still confirms when the fifty-run window is full.
Preview (12dbafdab1)
diff --git a/.github/workflows/tag-release.yml b/.github/workflows/tag-release.yml
--- a/.github/workflows/tag-release.yml
+++ b/.github/workflows/tag-release.yml
@@ -175,16 +175,61 @@
           RELEASE_VERSION: ${{ needs.tag-current-version.outputs.release_version }}
         run: |
           set -euo pipefail
-          active_count="$(
+
+          # shellcheck disable=SC2317 # Invoked indirectly through retry.
+          active_release_run_count() {
             gh run list \
               --repo "${GITHUB_REPOSITORY}" \
               --workflow release \
               --json headBranch,status \
               --limit 50 \
               --jq "[.[] | select(.headBranch == \"${RELEASE_TAG}\" and .status != \"completed\")] | length"
-          )"
+          }
+
+          # shellcheck disable=SC2317 # Invoked indirectly through retry.
+          latest_dispatched_release_run_id() {
+            gh run list \
+              --repo "${GITHUB_REPOSITORY}" \
+              --workflow release \
+              --json databaseId,event,headBranch \
+              --limit 50 \
+              --jq "([.[] | select(.headBranch == \"${RELEASE_TAG}\" and .event == \"workflow_dispatch\")] | first | .databaseId) // \"\""
+          }
+
+          retry() {
+            local description="$1"
+            shift
+            local attempt
+            for attempt in 1 2 3; do
+              if "$@"; then
+                return 0
+              fi
+              if [[ "$attempt" == "3" ]]; then
+                echo "::error::${description} failed after ${attempt} attempts." >&2
+                return 1
+              fi
+              echo "::warning::${description} failed on attempt ${attempt}; retrying..." >&2
+              sleep $((attempt * 5))
+            done
+          }
+
+          active_count="$(retry "List active release workflows" active_release_run_count)"
           if [[ "${active_count}" != "0" ]]; then
             echo "Found ${active_count} active release workflow run(s) for ${RELEASE_TAG}; not dispatching another."
             exit 0
           fi
-          gh workflow run release --repo "${GITHUB_REPOSITORY}" --ref "${RELEASE_TAG}" --field "version=${RELEASE_VERSION}"
+          existing_run_id="$(retry "List dispatched release workflows" latest_dispatched_release_run_id)"
+          retry "Dispatch release workflow" gh workflow run release --repo "${GITHUB_REPOSITORY}" --ref "${RELEASE_TAG}" --field "version=${RELEASE_VERSION}"
+
+          for attempt in 1 2 3 4 5 6; do
+            release_run_id="$(retry "Confirm dispatched release workflow" latest_dispatched_release_run_id)"
+            if [[ -n "${release_run_id}" && "${release_run_id}" != "${existing_run_id}" ]]; then
+              echo "Confirmed release workflow dispatch for ${RELEASE_TAG}; run ${release_run_id} is queued."
+              exit 0
+            fi
+            echo "Release workflow for ${RELEASE_TAG} has not appeared yet; confirmation attempt ${attempt}/6."
+            sleep 10
+          done
+
+          echo "::error::Release workflow dispatch did not produce a new run for ${RELEASE_TAG}."
+          exit 1

diff --git a/CHANGELOG.md b/CHANGELOG.md
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -23,34 +23,50 @@
 
 ## [0.10.50] - 2026-06-18
 
-### Changed
+### Added
 
-- Add operating layer backend persistence (#786). <!-- maestro-release-note:7e0e5141dded -->
-- Add operating layer platform primitives. <!-- maestro-release-note:b5735cb3ce5d -->
-- Fix public release workflow dispatch. <!-- maestro-release-note:1057f526e486 -->
+- Migrate OpenTelemetry exporter module-load reads to RuntimeEnv (#2783). <!-- maestro-release-note:4e4c3aeec5bc -->
+- Migrate meter fallback to resolveOrganizationIdFromOAuthCredentials (#2780). <!-- maestro-release-note:94fd92045c54 -->
+- Migrate hasRemoteMeterDestination to consume RuntimeEnv (#2777). <!-- maestro-release-note:271e51f8e6a7 -->
+- Permanent exploit-vector regression suite + OAuth test isolation (#2766). <!-- maestro-release-note:db1a1859c56a -->
+- Rotate-on-parse-fail for persisted JSON state (#2631) (#2734). <!-- maestro-release-note:c67088bdd211 -->
+- /skills trust UX for the prompt-trust cache (#2629) (#2733). <!-- maestro-release-note:ee310419fa98 -->
+- MultiClientSessionAccessControl impl (#2641) (#2731). <!-- maestro-release-note:87fd6caca58c -->
+- Move tokens from plaintext file to OS keychain (#2611) (#2729). <!-- maestro-release-note:141d21360aa3 -->
+- Wire SessionAccessControl into HostedSessionManager (#2641) (#2724). <!-- maestro-release-note:d8692e272efc -->
+- Enforce trust gate + lock AccessControl binding (#2722). <!-- maestro-release-note:5684559db1ef -->
+- Stronger controls — trust cache, path-confine, AccessControl scaffold (#2721). <!-- maestro-release-note:cd53cac465d9 -->
+- Emit contentSha alongside loaded skills (#2629) (#2720). <!-- maestro-release-note:b8f408d83cae -->
 
-## [0.10.49] - 2026-06-18
-
 ### Changed
 
-- Bump actions/setup-java from 4.7.1 to 5.3.0 (#782). <!-- maestro-release-note:6b8c0d9d6456 -->
-- Sync release mirror for main. <!-- maestro-release-note:b4c37a629b19 -->
-- [maestro] Pin AgentRuntime safe projection gaps (#778). <!-- maestro-release-note:5ffdf2e14dd8 -->
-- Bump actions/checkout from 6.0.2 to 6.0.3 (#777). <!-- maestro-release-note:06b78a737257 -->
-- Fix MCP workspace trust override from project config (#771). <!-- maestro-release-note:090ba8c8599d -->
-- Bump astral-sh/setup-uv from 8.1.0 to 8.2.0 (#776). <!-- maestro-release-note:9f9780d7f548 -->
-- [maestro] Add Agent Workforce native event projector (#774). <!-- maestro-release-note:5c0e4a3f50c3 -->
-- Run public workflow footgun smoke on infra PRs. <!-- maestro-release-note:e425e66fe616 -->
-- Fix public workflow footgun guardrail inputs (#760). <!-- maestro-release-note:2a2e60c47eb7 -->
-- [maestro] Require user presence for desktop device identity signing key (#714). <!-- maestro-release-note:e32ded663112 -->
-- [maestro] Require project approval for Fathom CUA MCP server (#709). <!-- maestro-release-note:a9c00aa6a552 -->
-- [maestro] block protocol/mode/set while in review mode (#712). <!-- maestro-release-note:1ee6f677b15f -->
+- Add operating layer backend persistence (#2789). <!-- maestro-release-note:ba507fd32b3b -->
+- Add operating layer platform primitives. <!-- maestro-release-note:b5735cb3ce5d -->
+- [maestro] fix(runtime): centralize finalized env bootstrap (#2786). <!-- maestro-release-note:811b6585548d -->
+- [maestro] feat(substrate): migrate src/opentelemetry.ts MAESTRO_OTEL_* reads to RuntimeEnv (#2784). <!-- maestro-release-note:878ab1165fc2 -->
+- [maestro] feat(substrate): extend Settings.telemetry, migrate isBeaconEnabled to take Settings["telemetry"] (#2782). <!-- maestro-release-note:969bc8426066 -->
+- [maestro] feat(runtime): Settings primitive — typed composed substrate (Week 2 PR 2) (#2781). <!-- maestro-release-note:850fdda30a75 -->
+- [maestro] feat(runtime): settings-reads scanner + ratchet (Week 2 PR 1) (#2779). <!-- maestro-release-note:5b5db6a13752 -->
+- [maestro] feat(runtime): factor resolveOrganizationId into env-side and OAuth-disk primitives (#2778). <!-- maestro-release-note:3f79e78e3fb7 -->
+- [maestro] feat(runtime): RuntimeEnv substrate + Logger migration + env-reads ratchet (#2776). <!-- maestro-release-note:6e025d6c3faa -->
+- Bump actions/setup-java from 4.7.1 to 5.3.0 (#2774). <!-- maestro-release-note:df640ac35b8b -->
+- [maestro] fix(safety): scan bash command strings for mid-string URLs in network policy (#2773). <!-- maestro-release-note:a1bb966e51f9 -->
+- [maestro] fix(desktop): pass raw sessionId (not "default") to composer API (#2771). <!-- maestro-release-note:2030c97ef373 -->
 
 ### Fixed
 
-- Default bind to localhost (#705). <!-- maestro-release-note:d5418d08f6cf -->
-- Gate plugin bundle mutations in app-server (#711). <!-- maestro-release-note:dffa823ab892 -->
-- Prevent MCP read-only hint from bypassing destructive safeguards (#708). <!-- maestro-release-note:e1f946ac1415 -->
+- Address recent review feedback (#2785). <!-- maestro-release-note:b91a857ef801 -->
+- Include #-prefix tokens in URL scan to close quoted-hash bypass (#2775). <!-- maestro-release-note:60e9d6076311 -->
+- Clear flush timer when global aggregator is reset (#2772). <!-- maestro-release-note:fcf1eef587e8 -->
+- Make config lazy so env mutations after import still take effect (#2769). <!-- maestro-release-note:34f46e265b77 -->
+- Scope composer to sessionKey + clear stale state on fetch failure (#2767). <!-- maestro-release-note:09792182d3c1 -->
+- Add resetOAuthStorageForTests to cli.integration before/after (#2762). <!-- maestro-release-note:7da82628a84c -->
+- Force file-mode OAuth in two more leak-vulnerable test files (#2761). <!-- maestro-release-note:0e64f11c57fe -->
+- Isolate test OAuth and telemetry state to prevent cross-test pollution (#2752). <!-- maestro-release-note:bbc2bc8ef968 -->
+- Adversarial-review round 2 — close residual bugs in batch1/2/3 fixes (#2750). <!-- maestro-release-note:27a95e3c0652 -->
+- Adversarial-review batch 3 — trust hash, OAuth sentinel, drop PPID heuristic (#2629, #2611, #2481) (#2749). <!-- maestro-release-note:9047393fd410 -->
+- Adversarial-review batch 2 — admin split + HostedSessionManager gates (#2641) (#2747). <!-- maestro-release-note:7127a2730ba9 -->
+- Adversarial-review fixes batch 1 (#2641, #2611, #2481, #2629, #2631) (#2746). <!-- maestro-release-note:af0049548b49 -->
 
 ## [0.10.48] - 2026-05-30
 

diff --git a/package.json b/package.json
--- a/package.json
+++ b/package.json
@@ -1,308 +1,310 @@
 {
-	"name": "@evalops/maestro",
-	"description": "Maestro by EvalOps - Deterministic coding agent with TUI/CLI and Web UI for AI-assisted development",
-	"version": "0.10.50",
-	"private": false,
-	"type": "module",
-	"workspaces": [
-		"packages/*"
-	],
-	"bin": {
-		"maestro": "dist/cli.js"
-	},
-	"main": "./dist/index.js",
-	"types": "./dist/index.d.ts",
-	"files": [
-		"dist",
-		"skills"
-	],
-	"maestroRuntimeWorkspaces": [
-		"@evalops/contracts",
-		"@evalops/tui"
-	],
-	"scripts": {
-		"clean": "node ./scripts/clean-paths.js dist ./tmp/tsbuildinfo/composer.tsbuildinfo",
-		"prepare": "husky",
-		"postinstall": "node -e \"const fs=require('node:fs');const cp=require('node:child_process');if(!fs.existsSync('./scripts/ensure-deps.js')||!fs.existsSync('./packages/contracts/package.json'))process.exit(0);const r=cp.spawnSync(process.execPath,['./scripts/ensure-deps.js','--no-install'],{stdio:'inherit'});process.exit(r.status??1);\"",
-		"install:local": "node ./scripts/install-client.js",
-		"prebuild": "node ./scripts/ensure-deps.js && node ./scripts/session-wire-format-codegen.mjs && node ./scripts/headless-protocol-codegen.mjs && bun run generate:headless-proto:buf",
-		"build": "node ./scripts/ensure-dir.js ./tmp/tsbuildinfo && tsc -b tsconfig.build.json --force && node ./scripts/bundle-runtime-deps.mjs && node ./scripts/copy-themes.js && node ./scripts/copy-db-migrations.js",
-		"start": "node --enable-source-maps dist/cli.js",
-		"start:native": "MAESTRO_AGENT_SCRIPT=\"$(pwd)/dist/cli.js\" ./packages/tui-rs/target/release/maestro-tui",
-		"dev": "node ./scripts/headless-protocol-codegen.mjs && bun run generate:headless-proto:buf && node ./scripts/ensure-dir.js ./tmp/tsbuildinfo && tsc -b tsconfig.build.json --watch --preserveWatchOutput",
-		"dev:all": "concurrently --names \"cli,test\" --prefix-colors \"cyan,yellow\" \"npm run dev\" \"npm run test:watch\"",
-		"test:watch": "node ./scripts/run-vitest.js --watch",
-		"test:fast": "VITEST_FAST=1 node ./scripts/run-vitest.js --run",
-		"lint": "biome check . && npm run lint:evals",
-		"setup:worktree": "node scripts/setup-worktree.mjs",
-		"check:headless-proto:generated": "node scripts/check-headless-proto-generated.mjs",
-		"verify:headless-proto:sync": "node scripts/verify-headless-proto-sync.mjs",
-		"lint:headless-proto": "buf lint && bun run verify:headless-proto:sync && bun run check:headless-proto:generated",
-		"check:drift-surfaces": "node scripts/check-drift-prone-surfaces.mjs",
-		"check:staged-rollout": "node scripts/check-staged-rollout.mjs",
-		"check:context-manifest": "tsx scripts/check-context-manifest-contract.ts",
-		"check:session-wire-contract": "tsx scripts/check-session-wire-contract.ts",
-		"check:cli-runtime-conformance": "tsx scripts/check-cli-runtime-conformance.ts",
-		"check:rpc-protocol-conformance": "tsx scripts/check-rpc-protocol-conformance.ts",
-		"check:session-replay-fixtures": "tsx scripts/check-session-replay-fixtures.ts",
-		"check:agent-trajectory-fixtures": "tsx scripts/check-agent-trajectory-fixtures.ts",
-		"check:agent-trajectory-replay-fixtures": "tsx scripts/check-agent-trajectory-replay-fixtures.ts",
-		"check:agent-trajectory-score-fixtures": "tsx scripts/check-agent-trajectory-score-fixtures.ts",
-		"check:agent-trajectory-inspection-fixtures": "tsx scripts/check-agent-trajectory-inspection-fixtures.ts",
-		"check:agent-trajectory-scenario-fixtures": "tsx scripts/check-agent-trajectory-scenario-fixtures.ts",
-		"check:slack-teammate-runtime-scenarios": "tsx scripts/check-slack-teammate-runtime-scenarios.ts",
-		"check:scripted-scenario-fixtures": "tsx scripts/check-scripted-scenario-fixtures.ts",
-		"check:evidence-integrity": "tsx scripts/check-evidence-integrity.ts",
-		"check:maestro-release-gate-events": "tsx scripts/check-maestro-release-gate-events.ts",
-		"check:scenario-replay-gate": "node scripts/run-scenario-replay-gate.mjs",
-		"check:workflow-footguns": "node scripts/check-workflow-footguns.mjs",
-		"check:test-skip-hygiene": "node scripts/check-test-skip-hygiene.mjs",
-		"check:test-timing-wait-hygiene": "node scripts/check-test-timing-wait-hygiene.mjs",
-		"check:atomic-write-hygiene": "node scripts/check-atomic-write-hygiene.mjs",
-		"check:codex-parity": "node scripts/check-codex-parity-conformance.mjs",
-		"check:codex-operating-layer": "node scripts/check-codex-operating-layer-conformance.mjs",
-		"check:platform-runtime-conformance": "node scripts/check-platform-runtime-conformance.mjs",
-		"check:release-surface": "node scripts/check-release-surface-conformance.mjs",
-		"lint:evals": "bun run lint:headless-proto && node scripts/ensure-deps.js --no-install --workspace @evalops/contracts && node scripts/verify-evals.js && node scripts/verify-tool-versions.js && node scripts/validate-system-paths.js && node scripts/validate-package-boundaries.js && node scripts/validate-public-package-deps.js && node scripts/check-public-surface-boundary.mjs && npm run check:context-manifest && npm run check:session-wire-contract && npm run check:cli-runtime-conformance && npm run check:rpc-protocol-conformance && npm run check:evidence-integrity && npm run check:maestro-release-gate-events && npm run check:session-replay-fixtures && npm run check:agent-trajectory-fixtures && npm run check:agent-trajectory-replay-fixtures && npm run check:agent-trajectory-score-fixtures && npm run check:agent-trajectory-inspection-fixtures && npm run check:agent-trajectory-scenario-fixtures && npm run check:slack-teammate-runtime-scenarios && npm run check:scripted-scenario-fixtures && node scripts/session-wire-format-codegen.mjs --check && node scripts/headless-protocol-codegen.mjs --check && npm run check:app-server-schema && npm run check:drift-surfaces && npm run check:staged-rollout && npm run check:workflow-footguns && npm run check:test-skip-hygiene && npm run check:test-timing-wait-hygiene && npm run check:atomic-write-hygiene && npm run check:codex-parity && npm run check:codex-operating-layer && npm run check:platform-runtime-conformance && npm run check:release-surface && npm run developer-surface:check",
-		"platform:sdk-smoke": "tsx scripts/check-platform-sdk-contract.ts",
-		"platform:agentruntime-e2e": "tsx scripts/smoke-platform-agentruntime-lifecycle.ts",
-		"platform:timeline-e2e": "tsx scripts/smoke-platform-timeline-e2e.ts",
-		"platform:a2a-delegation-live": "tsx scripts/smoke-platform-a2a-delegation-live.ts",
-		"platform:a2a-evidence-verify": "tsx scripts/verify-platform-a2a-live-evidence.ts",
-		"developer-surface:check": "node scripts/check-developer-surface.mjs",
-		"format": "biome format .",
-		"check": "npm run lint && npm run check --workspaces --if-present && tsc -p tsconfig.build.json --noEmit",
-		"evals": "npm run build && node scripts/run-evals.js",
-		"evals:skill-package": "bunx tsx scripts/evals/run-skill-package-evals.ts",
-		"evals:pipeline-tool-integration": "bun run build && bunx tsx scripts/evals/run-pipeline-tool-integration-evals.ts",
-		"evals:shared-memory-integration": "bun run build && bunx tsx scripts/evals/run-shared-memory-integration-evals.ts",
-		"evals:platform-fermata-scenario-suite": "bun run build && bunx tsx scripts/evals/run-platform-fermata-scenario-suite.ts",
-		"evals:openrouter-live-smoke": "bun run build && bunx tsx scripts/evals/run-openrouter-live-smoke.ts",
-		"evals:openrouter-approvals-judge": "bun run build && bunx tsx scripts/evals/run-openrouter-approvals-judge-evals.ts",
-		"evals:openrouter-tool-surface-judge": "bun run build && bunx tsx scripts/evals/run-openrouter-tool-surface-judge-evals.ts",
-		"telemetry:report": "node scripts/telemetry-report.js",
-		"device-identity:harness": "MAESTRO_DEVICE_IDENTITY_ALLOW_TEST_HELPER=1 node ./scripts/run-vitest.js --run test/oauth-device-identity-harness.test.ts",
-		"generate-models": "bun scripts/generate-models.ts",
-		"generate:headless-protocol": "node scripts/headless-protocol-codegen.mjs",
-		"generate:app-server-schema": "tsx scripts/app-server-schema-codegen.ts",
-		"check:app-server-schema": "tsx scripts/app-server-schema-codegen.ts --check",
-		"generate:session-wire-format": "node scripts/session-wire-format-codegen.mjs",
-		"check:session-wire-format:generated": "node scripts/session-wire-format-codegen.mjs --check",
-		"generate:headless-proto:buf": "buf generate --template buf.gen.yaml && bunx biome check --write --unsafe packages/contracts/src/proto/maestro/v1/headless_pb.ts",
-		"test": "node ./scripts/run-vitest.js --run",
-		"test:integration:capabilities": "node scripts/run-capability-integration-tests.mjs",
-		"test:coverage": "node ./scripts/run-vitest.js --run --coverage",
-		"prepublishOnly": "npm run clean && npm run build && npm run verify:runtime-deps",
-		"bun:install": "bun install",
-		"bun:cli": "bun run ./src/cli.ts",
-		"bun:watch": "bun run --watch ./src/cli.ts",
-		"web": "node dist/web-server.js",
-		"web:rust-control": "packages/control-plane-rs/target/release/maestro-control-plane",
-		"web:dev": "node ./scripts/ensure-deps.js --workspace @evalops/contracts && concurrently --names \"server,ui\" --prefix-colors \"blue,green\" \"tsx --watch src/web-server.ts\" \"bun run dev:web\"",
-		"web:dev:local": "MAESTRO_WEB_REQUIRE_KEY=0 MAESTRO_WEB_REQUIRE_REDIS=0 MAESTRO_WEB_ORIGIN=http://localhost:3000 npm run web:dev",
-		"bun:lint": "bunx biome check . && bun run lint:evals",
-		"bun:test": "node ./scripts/run-vitest.js --run",
-		"bun:test:fast": "VITEST_FAST=1 node ./scripts/run-vitest.js --run",
-		"bun:check": "bun run bun:lint && bunx tsc -p tsconfig.build.json --noEmit",
-		"bun:compile": "npm run build && bun build ./src/cli.ts --target node --packages external --external tree-sitter --external tree-sitter-bash --define MAESTRO_BUNDLE_RUNTIME=true --compile --outfile dist/maestro-bun",
-		"bun:compile:bytecode": "npm run build && bun build ./src/cli.ts --target node --packages external --external tree-sitter --external tree-sitter-bash --define MAESTRO_BUNDLE_RUNTIME=true --compile --bytecode --outfile dist/maestro-bun-bytecode",
-		"build:release-binary": "node scripts/build-release-binary.mjs",
-		"bun:evals": "bun run build && bun run ./scripts/run-evals.js",
-		"compile:binary": "npm run bun:compile && echo \"Binary ready at dist/maestro-bun\"",
-		"cli": "node ./dist/cli.js",
-		"verify-build": "bun scripts/verify-build.ts",
-		"verify-build:packages": "VERIFY_PACKAGES=1 bun scripts/verify-build.ts",
-		"release:check": "node scripts/release-readiness.js release",
-		"release:check:ci": "node scripts/release-readiness.js ci",
-		"ci:plan": "node scripts/plan-ci-checks.mjs",
-		"pr:ready": "node scripts/pr-ready-to-merge.mjs",
-		"pr:feedback": "node scripts/pr-feedback-audit.mjs",
-		"verify:runtime-deps": "node scripts/check-runtime-deps.js && node scripts/check-docker-runtime-workspaces.mjs && node scripts/check-packed-bundled-workspaces.mjs",
-		"tui": "npm run cli",
-		"verify": "npm run format && npm run lint && npm run test && npm run build && npm run smoke && npm run telemetry:report",
-		"smoke": "node scripts/smoke-cli.js",
-		"smoke:local-e2e": "node scripts/smoke-cli.js",
-		"smoke:codex-app-server-live": "node scripts/smoke-codex-app-server-live.mjs",
-		"smoke:fathom-cua-mcp": "tsx scripts/smoke-fathom-cua-mcp.ts",
-		"smoke:event-bus": "tsx scripts/smoke-maestro-event-bus.ts",
-		"smoke:a2a-local": "tsx scripts/smoke-maestro-a2a-local.ts",
-		"smoke:a2a-local-swarm": "tsx scripts/smoke-maestro-a2a-local-swarm.ts",
-		"smoke:a2a-input-required": "tsx scripts/smoke-maestro-a2a-input-required.ts",
-		"smoke:a2a-tmux": "bash scripts/smoke-maestro-a2a-tmux.sh",
-		"a2a": "tsx src/cli.ts a2a",
-		"a2a:codex-bridge": "python3 scripts/codex-a2a-bridge.py",
-		"a2a:peer": "tsx src/cli.ts a2a",
-		"smoke:headless": "node scripts/smoke-headless.js",
-		"smoke:release-binary": "node scripts/smoke-release-binary.mjs",
-		"smoke:exec-replay-e2e": "node scripts/smoke-exec-replay-e2e.js",
-		"headless:responsiveness": "node scripts/headless-responsiveness-harness.js",
-		"smoke:pack": "node scripts/smoke-packed-cli.js",
-		"metadata:sync": "node scripts/sync-package-metadata.js",
-		"metadata:check": "node scripts/sync-package-metadata.js --check",
-		"cutover:check": "node scripts/check-package-cutover-readiness.js",
-		"factory:import": "npm run build && node dist/scripts/import-factory-config.js",
-		"factory:export": "npm run build && node dist/scripts/export-factory-config.js",
-		"version:patch": "node scripts/version.js patch",
-		"version:minor": "node scripts/version.js minor",
-		"version:major": "node scripts/version.js major",
-		"version:sync": "node scripts/sync-versions.js",
-		"openapi:generate": "bun scripts/generate-openapi.ts",
-		"openapi:check": "bun scripts/generate-openapi.ts --check",
-		"openapi:serve": "bun scripts/serve-openapi.ts",
-		"nix:update-hash": "bash scripts/update-nix-hash.sh",
-		"dev:web": "bun run --filter @evalops/maestro-web dev",
-		"dev:tui": "bun run --filter @evalops/tui dev",
-		"dev:packages": "concurrently --names \"tui,web\" --prefix-colors \"magenta,green\" \"bun run dev:tui\" \"bun run dev:web\"",
-		"guardian": "bash scripts/guardian.sh",
-		"guardian:install-hook": "node scripts/install-guardian-hook.js",
-		"build:all": "bun run --filter @evalops/contracts build && bun run --filter @evalops/consumer build && bun run --filter @evalops/tui build && bun run --filter @evalops/maestro-web build && bun run build && bun run --filter @evalops/ai build",
-		"test:all": "npm run test && npm run test --workspaces --if-present",
-		"db:generate": "MAESTRO_DATABASE_TYPE=postgres drizzle-kit generate",
-		"db:migrate": "bun run src/db/migrate.ts",
-		"db:migrate:status": "bun run -e \"import('./src/db/migrate.js').then(m => m.getMigrationStatus()).then(console.log)\"",
-		"db:studio": "drizzle-kit studio",
-		"db:seed": "bun run src/db/seed.ts",
-		"db:check": "bun run src/db/check.ts",
-		"vscode:build": "npx nx run vscode-extension:build",
-		"vscode:package": "npx nx run vscode-extension:package",
-		"vscode:publish": "npx nx run vscode-extension:publish",
-		"tui-rs:build": "cd packages/tui-rs && cargo build --release",
-		"control-plane-rs:build": "cd packages/control-plane-rs && cargo build --release --bin maestro-control-plane",
-		"control-plane-rs:check": "cd packages/control-plane-rs && cargo check --bin maestro-control-plane",
-		"rust:harness": "bash scripts/rust-local-harness.sh",
-		"tui-rs:build:debug": "cd packages/tui-rs && cargo build",
-		"tui-rs:check": "cd packages/tui-rs && cargo check",
-		"tui-rs:test": "cd packages/tui-rs && cargo test",
-		"release:verify:published": "node scripts/smoke-registry-install.js",
-		"release:verify:published:e2e": "node scripts/smoke-published-replay-e2e.js",
-		"release:verify:published:evidence": "node scripts/verify-published-replay-evidence.js",
-		"release:deprecate": "node scripts/deprecate-release.js"
-	},
-	"dependencies": {
-		"@aws-sdk/client-bedrock-runtime": "^3.1020.0",
-		"@bufbuild/protobuf": "^2.11.0",
-		"@crosscopy/clipboard": "^0.2.8",
-		"@modelcontextprotocol/sdk": "^1.29.0",
-		"@napi-rs/keyring": "^1.3.0",
-		"@openai/codex": "^0.135.0",
-		"@opentelemetry/api": "^1.9.1",
-		"@opentelemetry/auto-instrumentations-node": "^0.76.0",
-		"@opentelemetry/resources": "^2.7.1",
-		"@opentelemetry/sdk-node": "0.218.0",
-		"@opentelemetry/semantic-conventions": "^1.41.1",
-		"@sentry/node": "^10.53.1",
-		"@sinclair/typebox": "^0.34.49",
-		"ajv": "^8.18.0",
-		"ajv-formats": "^3.0.1",
-		"bcrypt": "^6.0.0",
-		"chalk": "^5.6.2",
-		"clipboardy": "^4.0.0",
-		"diff": "^8.0.4",
-		"dotenv": "^16.6.1",
-		"drizzle-orm": "0.45.2",
-		"exceljs": "^4.4.0",
-		"fflate": "^0.8.2",
-		"glob": "^13.0.6",
-		"ioredis": "^5.10.1",
-		"jiti": "^2.6.1",
-		"jose": "^6.2.2",
-		"js-yaml": "^4.1.1",
-		"jsonc-parser": "^3.3.1",
-		"jsonwebtoken": "^9.0.3",
-		"jszip": "^3.10.1",
-		"luxon": "^3.7.2",
-		"mammoth": "^1.12.0",
-		"marked": "^17.0.5",
-		"mime-types": "^3.0.2",
-		"minimatch": "^10.2.5",
-		"nats": "^2.29.3",
-		"openai": "^6.33.0",
-		"otplib": "^13.4.0",
-		"partial-json": "^0.1.7",
-		"pdf-parse": "^2.4.5",
-		"postgres": "^3.4.8",
-		"smol-toml": "^1.6.1",
-		"string-width": "^8.2.0",
-		"undici": "^7.25.0",
-		"uuid": "^14.0.0",
-		"vscode-jsonrpc": "^8.2.1",
-		"ws": "^8.20.0",
-		"yaml": "^2.8.3",
-		"zod": "^4.3.6",
-		"zod-validation-error": "^5.0.0"
-	},
-	"devDependencies": {
-		"@bufbuild/buf": "^1.67.0",
-		"@bufbuild/protoc-gen-es": "2.12.0",
-		"@biomejs/biome": "^1.9.4",
-		"@google/genai": "^1.50.1",
-		"@smithy/types": "^4.13.1",
-		"@types/bcrypt": "^6.0.0",
-		"@types/diff": "^7.0.2",
-		"@types/js-yaml": "^4.0.9",
-		"@types/jsonwebtoken": "^9.0.10",
-		"@types/luxon": "^3.7.1",
-		"@types/mime-types": "^3.0.1",
-		"@types/node": "^24.12.0",
-		"@types/pdf-parse": "^1.1.5",
-		"@types/uuid": "^11.0.0",
-		"@vitest/coverage-v8": "^4.1.2",
-		"concurrently": "^9.2.1",
-		"drizzle-kit": "1.0.0-beta.21",
-		"esbuild": "^0.27.4",
-		"fast-check": "^4.6.0",
-		"google-auth-library": "^10.6.2",
-		"husky": "^9.1.7",
-		"nx": "22.6.5",
-		"tsx": "^4.21.0",
-		"typescript": "^5.9.3",
-		"vitest": "^4.1.2"
-	},
-	"keywords": [
-		"maestro",
-		"evalops",
-		"ai",
-		"llm",
-		"cli",
-		"tui",
-		"agent"
-	],
-	"author": "EvalOps",
-	"license": "BUSL-1.1",
-	"maestro": {
-		"canonicalPackageName": "@evalops/maestro",
-		"packageAliases": [
-			"@evalops/maestro",
-			"@evalops-jh/maestro"
-		]
-	},
-	"repository": {
-		"type": "git",
-		"url": "git+https://github.com/evalops/maestro.git"
-	},
-	"engines": {
-		"node": ">=20.0.0",
-		"bun": ">=1.1.0"
-	},
-	"overrides": {
-		"jws": ">=4.0.1",
-		"rollup": ">=4.59.0",
-		"koa": ">=2.16.4",
-		"axios": ">=1.15.0",
-		"follow-redirects": ">=1.16.0",
-		"@isaacs/brace-expansion": ">=5.0.1",
-		"picomatch": ">=4.0.4",
-		"qs": ">=6.14.2"
-	},
-	"optionalDependencies": {
-		"sharp": "0.34.5",
-		"tree-sitter": "^0.25.0",
-		"tree-sitter-bash": "^0.25.1"
-	},
-	"packageManager": "bun@1.3.6",
-	"trustedDependencies": [
-		"electron",
-		"tree-sitter",
-		"tree-sitter-bash"
-	]
+  "name": "@evalops/maestro",
+  "description": "Maestro by EvalOps - Deterministic coding agent with TUI/CLI and Web UI for AI-assisted development",
+  "version": "0.10.50",
+  "private": false,
+  "type": "module",
+  "workspaces": [
+    "packages/*"
+  ],
+  "bin": {
+    "maestro": "dist/cli.js"
+  },
+  "main": "./dist/index.js",
+  "types": "./dist/index.d.ts",
+  "files": [
+    "dist",
+    "skills"
+  ],
+  "maestroRuntimeWorkspaces": [
+    "@evalops/contracts",
+    "@evalops/tui"
+  ],
+  "scripts": {
+    "clean": "node ./scripts/clean-paths.js dist ./tmp/tsbuildinfo/composer.tsbuildinfo",
+    "prepare": "husky",
+    "postinstall": "node -e \"const fs=require('node:fs');const cp=require('node:child_process');if(!fs.existsSync('./scripts/ensure-deps.js')||!fs.existsSync('./packages/contracts/package.json'))process.exit(0);const r=cp.spawnSync(process.execPath,['./scripts/ensure-deps.js','--no-install'],{stdio:'inherit'});process.exit(r.status??1);\"",
+    "install:local": "node ./scripts/install-client.js",
+    "prebuild": "node ./scripts/ensure-deps.js && node ./scripts/session-wire-format-codegen.mjs && node ./scripts/headless-protocol-codegen.mjs && bun run generate:headless-proto:buf",
+    "build": "node ./scripts/ensure-dir.js ./tmp/tsbuildinfo && tsc -b tsconfig.build.json --force && node ./scripts/bundle-runtime-deps.mjs && node ./scripts/copy-themes.js && node ./scripts/copy-db-migrations.js",
+    "start": "node --enable-source-maps dist/cli.js",
+    "start:native": "MAESTRO_AGENT_SCRIPT=\"$(pwd)/dist/cli.js\" ./packages/tui-rs/target/release/maestro-tui",
+    "dev": "node ./scripts/headless-protocol-codegen.mjs && bun run generate:headless-proto:buf && node ./scripts/ensure-dir.js ./tmp/tsbuildinfo && tsc -b tsconfig.build.json --watch --preserveWatchOutput",
+    "dev:all": "concurrently --names \"cli,test\" --prefix-colors \"cyan,yellow\" \"npm run dev\" \"npm run test:watch\"",
+    "test:watch": "node ./scripts/run-vitest.js --watch",
+    "test:fast": "VITEST_FAST=1 node ./scripts/run-vitest.js --run",
+    "lint": "biome check . && npm run lint:evals",
+    "setup:worktree": "node scripts/setup-worktree.mjs",
+    "check:headless-proto:generated": "node scripts/check-headless-proto-generated.mjs",
+    "verify:headless-proto:sync": "node scripts/verify-headless-proto-sync.mjs",
+    "lint:headless-proto": "buf lint && bun run verify:headless-proto:sync && bun run check:headless-proto:generated",
+    "check:drift-surfaces": "node scripts/check-drift-prone-surfaces.mjs",
+    "check:staged-rollout": "node scripts/check-staged-rollout.mjs",
+    "check:context-manifest": "tsx scripts/check-context-manifest-contract.ts",
+    "check:session-wire-contract": "tsx scripts/check-session-wire-contract.ts",
+    "check:cli-runtime-conformance": "tsx scripts/check-cli-runtime-conformance.ts",
+    "check:rpc-protocol-conformance": "tsx scripts/check-rpc-protocol-conformance.ts",
+    "check:session-replay-fixtures": "tsx scripts/check-session-replay-fixtures.ts",
+    "check:agent-trajectory-fixtures": "tsx scripts/check-agent-trajectory-fixtures.ts",
+    "check:agent-trajectory-replay-fixtures": "tsx scripts/check-agent-trajectory-replay-fixtures.ts",
+    "check:agent-trajectory-score-fixtures": "tsx scripts/check-agent-trajectory-score-fixtures.ts",
+    "check:agent-trajectory-inspection-fixtures": "tsx scripts/check-agent-trajectory-inspection-fixtures.ts",
+    "check:agent-trajectory-scenario-fixtures": "tsx scripts/check-agent-trajectory-scenario-fixtures.ts",
+    "check:slack-teammate-runtime-scenarios": "tsx scripts/check-slack-teammate-runtime-scenarios.ts",
+    "check:scripted-scenario-fixtures": "tsx scripts/check-scripted-scenario-fixtures.ts",
+    "check:evidence-integrity": "tsx scripts/check-evidence-integrity.ts",
+    "check:maestro-release-gate-events": "tsx scripts/check-maestro-release-gate-events.ts",
+    "check:scenario-replay-gate": "node scripts/run-scenario-replay-gate.mjs",
+    "check:workflow-footguns": "node scripts/check-workflow-footguns.mjs",
+    "check:test-skip-hygiene": "node scripts/check-test-skip-hygiene.mjs",
+    "check:test-timing-wait-hygiene": "node scripts/check-test-timing-wait-hygiene.mjs",
+    "check:atomic-write-hygiene": "node scripts/check-atomic-write-hygiene.mjs",
+    "check:runtime-env-snapshot-hygiene": "node scripts/check-runtime-env-snapshot-hygiene.mjs",
+    "check:codex-parity": "node scripts/check-codex-parity-conformance.mjs",
+    "check:codex-operating-layer": "node scripts/check-codex-operating-layer-conformance.mjs",
+    "check:platform-runtime-conformance": "node scripts/check-platform-runtime-conformance.mjs",
+    "check:release-surface": "node scripts/check-release-surface-conformance.mjs",
+    "lint:evals": "bun run lint:headless-proto && node scripts/ensure-deps.js --no-install --workspace @evalops/contracts && node scripts/verify-evals.js && node scripts/verify-tool-versions.js && node scripts/validate-system-paths.js && node scripts/validate-package-boundaries.js && node scripts/validate-public-package-deps.js && node scripts/check-public-surface-boundary.mjs && npm run check:context-manifest && npm run check:session-wire-contract && npm run check:cli-runtime-conformance && npm run check:rpc-protocol-conformance && npm run check:evidence-integrity && npm run check:maestro-release-gate-events && npm run check:session-replay-fixtures && npm run check:agent-trajectory-fixtures && npm run check:agent-trajectory-replay-fixtures && npm run check:agent-trajectory-score-fixtures && npm run check:agent-trajectory-inspection-fixtures && npm run check:agent-trajectory-scenario-fixtures && npm run check:slack-teammate-runtime-scenarios && npm run check:scripted-scenario-fixtures && node scripts/session-wire-format-codegen.mjs --check && node scripts/headless-protocol-codegen.mjs --check && npm run check:app-server-schema && npm run check:drift-surfaces && npm run check:staged-rollout && npm run check:workflow-footguns && npm run check:test-skip-hygiene && npm run check:test-timing-wait-hygiene && npm run check:atomic-write-hygiene && npm run check:runtime-env-snapshot-hygiene && npm run check:codex-parity && npm run check:codex-operating-layer && npm run check:platform-runtime-conformance && npm run check:release-surface && npm run developer-surface:check",
+    "platform:sdk-smoke": "tsx scripts/check-platform-sdk-contract.ts",
+    "platform:agentruntime-e2e": "tsx scripts/smoke-platform-agentruntime-lifecycle.ts",
+    "platform:timeline-e2e": "tsx scripts/smoke-platform-timeline-e2e.ts",
+    "platform:a2a-delegation-live": "tsx scripts/smoke-platform-a2a-delegation-live.ts",
+    "platform:a2a-evidence-verify": "tsx scripts/verify-platform-a2a-live-evidence.ts",
+    "developer-surface:check": "node scripts/check-developer-surface.mjs",
+    "format": "biome format .",
+    "check": "npm run lint && npm run check --workspaces --if-present && tsc -p tsconfig.build.json --noEmit",
+    "evals": "npm run build && node scripts/run-evals.js",
+    "evals:skill-package": "bunx tsx scripts/evals/run-skill-package-evals.ts",
+    "evals:pipeline-tool-integration": "bun run build && bunx tsx scripts/evals/run-pipeline-tool-integration-evals.ts",
+    "evals:shared-memory-integration": "bun run build && bunx tsx scripts/evals/run-shared-memory-integration-evals.ts",
+    "evals:platform-fermata-scenario-suite": "bun run build && bunx tsx scripts/evals/run-platform-fermata-scenario-suite.ts",
+    "evals:openrouter-live-smoke": "bun run build && bunx tsx scripts/evals/run-openrouter-live-smoke.ts",
+    "evals:openrouter-approvals-judge": "bun run build && bunx tsx scripts/evals/run-openrouter-approvals-judge-evals.ts",
+    "evals:openrouter-tool-surface-judge": "bun run build && bunx tsx scripts/evals/run-openrouter-tool-surface-judge-evals.ts",
+    "telemetry:report": "node scripts/telemetry-report.js",
+    "device-identity:harness": "MAESTRO_DEVICE_IDENTITY_ALLOW_TEST_HELPER=1 node ./scripts/run-vitest.js --run test/oauth-device-identity-harness.test.ts",
+    "generate-models": "bun scripts/generate-models.ts",
+    "generate:headless-protocol": "node scripts/headless-protocol-codegen.mjs",
+    "generate:app-server-schema": "tsx scripts/app-server-schema-codegen.ts",
+    "check:app-server-schema": "tsx scripts/app-server-schema-codegen.ts --check",
+    "generate:session-wire-format": "node scripts/session-wire-format-codegen.mjs",
+    "check:session-wire-format:generated": "node scripts/session-wire-format-codegen.mjs --check",
+    "generate:headless-proto:buf": "buf generate --template buf.gen.yaml && bunx biome check --write --unsafe packages/contracts/src/proto/maestro/v1/headless_pb.ts",
+    "test": "node ./scripts/run-vitest.js --run",
+    "test:integration:capabilities": "node scripts/run-capability-integration-tests.mjs",
+    "test:coverage": "node ./scripts/run-vitest.js --run --coverage",
+    "prepublishOnly": "npm run clean && npm run build && npm run verify:runtime-deps",
+    "bun:install": "bun install",
+    "bun:cli": "bun run ./src/cli.ts",
+    "bun:watch": "bun run --watch ./src/cli.ts",
+    "web": "node dist/web-server.js",
+    "web:rust-control": "packages/control-plane-rs/target/release/maestro-control-plane",
+    "web:dev": "node ./scripts/ensure-deps.js --workspace @evalops/contracts && concurrently --names \"server,ui\" --prefix-colors \"blue,green\" \"tsx --watch src/web-server.ts\" \"bun run dev:web\"",
+    "web:dev:local": "MAESTRO_WEB_REQUIRE_KEY=0 MAESTRO_WEB_REQUIRE_REDIS=0 MAESTRO_WEB_ORIGIN=http://localhost:3000 npm run web:dev",
+    "bun:lint": "bunx biome check . && bun run lint:evals",
+    "bun:test": "node ./scripts/run-vitest.js --run",
+    "bun:test:fast": "VITEST_FAST=1 node ./scripts/run-vitest.js --run",
+    "bun:check": "bun run bun:lint && bunx tsc -p tsconfig.build.json --noEmit",
+    "bun:compile": "npm run build && bun build ./src/cli.ts --target node --packages external --external tree-sitter --external tree-sitter-bash --define MAESTRO_BUNDLE_RUNTIME=true --compile --outfile dist/maestro-bun",
+    "bun:compile:bytecode": "npm run build && bun build ./src/cli.ts --target node --packages external --external tree-sitter --external tree-sitter-bash --define MAESTRO_BUNDLE_RUNTIME=true --compile --bytecode --outfile dist/maestro-bun-bytecode",
+    "build:release-binary": "node scripts/build-release-binary.mjs",
+    "bun:evals": "bun run build && bun run ./scripts/run-evals.js",
+    "compile:binary": "npm run bun:compile && echo \"Binary ready at dist/maestro-bun\"",
+    "cli": "node ./dist/cli.js",
+    "verify-build": "bun scripts/verify-build.ts",
+    "verify-build:packages": "VERIFY_PACKAGES=1 bun scripts/verify-build.ts",
+    "release:check": "node scripts/release-readiness.js release",
+    "release:check:ci": "node scripts/release-readiness.js ci",
+    "ci:plan": "node scripts/plan-ci-checks.mjs",
+    "pr:ready": "node scripts/pr-ready-to-merge.mjs",
+    "pr:feedback": "node scripts/pr-feedback-audit.mjs",
+    "review:unresolved-threads": "node scripts/pr-feedback-audit.mjs --recent-days 3 --check",
+    "verify:runtime-deps": "node scripts/check-runtime-deps.js && node scripts/check-docker-runtime-workspaces.mjs && node scripts/check-packed-bundled-workspaces.mjs",
+    "tui": "npm run cli",
+    "verify": "npm run format && npm run lint && npm run test && npm run build && npm run smoke && npm run telemetry:report",
+    "smoke": "node scripts/smoke-cli.js",
+    "smoke:local-e2e": "node scripts/smoke-cli.js",
+    "smoke:codex-app-server-live": "node scripts/smoke-codex-app-server-live.mjs",
+    "smoke:fathom-cua-mcp": "tsx scripts/smoke-fathom-cua-mcp.ts",
+    "smoke:event-bus": "tsx scripts/smoke-maestro-event-bus.ts",
+    "smoke:a2a-local": "tsx scripts/smoke-maestro-a2a-local.ts",
+    "smoke:a2a-local-swarm": "tsx scripts/smoke-maestro-a2a-local-swarm.ts",
+    "smoke:a2a-input-required": "tsx scripts/smoke-maestro-a2a-input-required.ts",
+    "smoke:a2a-tmux": "bash scripts/smoke-maestro-a2a-tmux.sh",
+    "a2a": "tsx src/cli.ts a2a",
+    "a2a:codex-bridge": "python3 scripts/codex-a2a-bridge.py",
+    "a2a:peer": "tsx src/cli.ts a2a",
+    "smoke:headless": "node scripts/smoke-headless.js",
+    "smoke:release-binary": "node scripts/smoke-release-binary.mjs",
+    "smoke:exec-replay-e2e": "node scripts/smoke-exec-replay-e2e.js",
+    "headless:responsiveness": "node scripts/headless-responsiveness-harness.js",
+    "smoke:pack": "node scripts/smoke-packed-cli.js",
+    "metadata:sync": "node scripts/sync-package-metadata.js",
+    "metadata:check": "node scripts/sync-package-metadata.js --check",
+    "cutover:check": "node scripts/check-package-cutover-readiness.js",
+    "factory:import": "npm run build && node dist/scripts/import-factory-config.js",
+    "factory:export": "npm run build && node dist/scripts/export-factory-config.js",
+    "version:patch": "node scripts/version.js patch",
+    "version:minor": "node scripts/version.js minor",
+    "version:major": "node scripts/version.js major",
+    "version:sync": "node scripts/sync-versions.js",
+    "openapi:generate": "bun scripts/generate-openapi.ts",
+    "openapi:check": "bun scripts/generate-openapi.ts --check",
+    "openapi:serve": "bun scripts/serve-openapi.ts",
+    "nix:update-hash": "bash scripts/update-nix-hash.sh",
+    "dev:web": "bun run --filter @evalops/maestro-web dev",
+    "dev:tui": "bun run --filter @evalops/tui dev",
+    "dev:packages": "concurrently --names \"tui,web\" --prefix-colors \"magenta,green\" \"bun run dev:tui\" \"bun run dev:web\"",
+    "guardian": "bash scripts/guardian.sh",
+    "guardian:install-hook": "node scripts/install-guardian-hook.js",
+    "build:all": "bun run --filter @evalops/contracts build && bun run --filter @evalops/consumer build && bun run --filter @evalops/tui build && bun run --filter @evalops/maestro-web build && bun run build && bun run --filter @evalops/ai build",
+    "test:all": "npm run test && npm run test --workspaces --if-present",
+    "db:generate": "MAESTRO_DATABASE_TYPE=postgres drizzle-kit generate",
+    "db:migrate": "bun run src/db/migrate.ts",
+    "db:migrate:status": "bun run -e \"import('./src/db/migrate.js').then(m => m.getMigrationStatus()).then(console.log)\"",
+    "db:studio": "drizzle-kit studio",
+    "db:seed": "bun run src/db/seed.ts",
+    "db:check": "bun run src/db/check.ts",
+    "vscode:build": "npx nx run vscode-extension:build",
+    "vscode:package": "npx nx run vscode-extension:package",
+    "vscode:publish": "npx nx run vscode-extension:publish",
+    "tui-rs:build": "cd packages/tui-rs && cargo build --release",
+    "control-plane-rs:build": "cd packages/control-plane-rs && cargo build --release --bin maestro-control-plane",
+    "control-plane-rs:check": "cd packages/control-plane-rs && cargo check --bin maestro-control-plane",
+    "rust:harness": "bash scripts/rust-local-harness.sh",
+    "tui-rs:build:debug": "cd packages/tui-rs && cargo build",
+    "tui-rs:check": "cd packages/tui-rs && cargo check",
+    "tui-rs:test": "cd packages/tui-rs && cargo test",
+    "release:verify:published": "node scripts/smoke-registry-install.js",
+    "release:verify:published:e2e": "node scripts/smoke-published-replay-e2e.js",
+    "release:verify:published:evidence": "node scripts/verify-published-replay-evidence.js",
+    "release:deprecate": "node scripts/deprecate-release.js"
+  },
+  "dependencies": {
+    "@aws-sdk/client-bedrock-runtime": "^3.1020.0",
+    "@bufbuild/protobuf": "^2.11.0",
+    "@crosscopy/clipboard": "^0.2.8",
+    "@modelcontextprotocol/sdk": "^1.29.0",
+    "@napi-rs/keyring": "^1.3.0",
+    "@openai/codex": "^0.135.0",
+    "@opentelemetry/api": "^1.9.1",
+    "@opentelemetry/auto-instrumentations-node": "^0.76.0",
+    "@opentelemetry/resources": "^2.7.1",
+    "@opentelemetry/sdk-node": "0.218.0",
+    "@opentelemetry/semantic-conventions": "^1.41.1",
+    "@sentry/node": "^10.53.1",
+    "@sinclair/typebox": "^0.34.49",
+    "ajv": "^8.18.0",
+    "ajv-formats": "^3.0.1",
+    "bcrypt": "^6.0.0",
+    "chalk": "^5.6.2",
+    "clipboardy": "^4.0.0",
+    "diff": "^8.0.4",
+    "dotenv": "^16.6.1",
+    "drizzle-orm": "0.45.2",
+    "exceljs": "^4.4.0",
+    "fflate": "^0.8.2",
+    "glob": "^13.0.6",
+    "ioredis": "^5.10.1",
+    "jiti": "^2.6.1",
+    "jose": "^6.2.2",
+    "js-yaml": "^4.1.1",
+    "jsonc-parser": "^3.3.1",
+    "jsonwebtoken": "^9.0.3",
+    "jszip": "^3.10.1",
+    "luxon": "^3.7.2",
+    "mammoth": "^1.12.0",
+    "marked": "^17.0.5",
+    "mime-types": "^3.0.2",
+    "minimatch": "^10.2.5",
+    "nats": "^2.29.3",
+    "openai": "^6.33.0",
+    "otplib": "^13.4.0",
+    "partial-json": "^0.1.7",
+    "pdf-parse": "^2.4.5",
+    "postgres": "^3.4.8",
+    "smol-toml": "^1.6.1",
+    "string-width": "^8.2.0",
+    "undici": "^7.25.0",
+    "uuid": "^14.0.0",
+    "vscode-jsonrpc": "^8.2.1",
+    "ws": "^8.20.0",
+    "yaml": "^2.8.3",
+    "zod": "^4.3.6",
+    "zod-validation-error": "^5.0.0"
+  },
+  "devDependencies": {
+    "@bufbuild/buf": "^1.67.0",
+    "@bufbuild/protoc-gen-es": "2.12.0",
+    "@biomejs/biome": "^1.9.4",
+    "@google/genai": "^1.50.1",
+    "@smithy/types": "^4.13.1",
+    "@types/bcrypt": "^6.0.0",
+    "@types/diff": "^7.0.2",
+    "@types/js-yaml": "^4.0.9",
+    "@types/jsonwebtoken": "^9.0.10",
+    "@types/luxon": "^3.7.1",
+    "@types/mime-types": "^3.0.1",
+    "@types/node": "^24.12.0",
+    "@types/pdf-parse": "^1.1.5",
+    "@types/uuid": "^11.0.0",
+    "@vitest/coverage-v8": "^4.1.2",
+    "concurrently": "^9.2.1",
+    "drizzle-kit": "1.0.0-beta.21",
+    "esbuild": "^0.27.4",
+    "fast-check": "^4.6.0",
+    "google-auth-library": "^10.6.2",
+    "husky": "^9.1.7",
+    "nx": "22.6.5",
+    "tsx": "^4.21.0",
+    "typescript": "^5.9.3",
+    "vitest": "^4.1.2"
+  },
+  "keywords": [
+    "maestro",
+    "evalops",
+    "ai",
+    "llm",
+    "cli",
+    "tui",
+    "agent"
+  ],
+  "author": "EvalOps",
+  "license": "BUSL-1.1",
+  "maestro": {
+    "canonicalPackageName": "@evalops/maestro",
+    "packageAliases": [
+      "@evalops/maestro",
+      "@evalops-jh/maestro"
+    ]
+  },
+  "repository": {
+    "type": "git",
+    "url": "git+https://github.com/evalops/maestro.git"
+  },
+  "engines": {
+    "node": ">=20.0.0",
+    "bun": ">=1.1.0"
+  },
+  "overrides": {
+    "jws": ">=4.0.1",
+    "rollup": ">=4.59.0",
+    "koa": ">=2.16.4",
+    "axios": ">=1.15.0",
+    "follow-redirects": ">=1.16.0",
+    "@isaacs/brace-expansion": ">=5.0.1",
+    "picomatch": ">=4.0.4",
+    "qs": ">=6.14.2"
+  },
+  "optionalDependencies": {
+    "sharp": "0.34.5",
+    "tree-sitter": "^0.25.0",
+    "tree-sitter-bash": "^0.25.1"
+  },
+  "packageManager": "bun@1.3.6",
+  "trustedDependencies": [
+    "electron",
+    "tree-sitter",
+    "tree-sitter-bash"
+  ]
 }

diff --git a/packages/desktop/src/renderer/components/Settings/SettingsModal.tsx b/packages/desktop/src/renderer/components/Settings/SettingsModal.tsx
--- a/packages/desktop/src/renderer/components/Settings/SettingsModal.tsx
+++ b/packages/desktop/src/renderer/components/Settings/SettingsModal.tsx
@@ -91,6 +91,16 @@
 	queueMode: "all",
 };
 
+interface ComposerPanelState {
+	status: ComposerStatus | null;
+	selected: string;
+}
+
+const EMPTY_COMPOSER_STATE: ComposerPanelState = {
+	selected: "",
+	status: null,
+};
+
 export function SettingsModal({
 	open,
 	settings,
@@ -140,13 +150,18 @@
 	const [expandedMcpServer, setExpandedMcpServer] = useState<string | null>(
 		null,
 	);
-	const [composerStatus, setComposerStatus] = useState<ComposerStatus | null>(
-		null,
-	);
-	const [selectedComposer, setSelectedComposer] = useState<string>("");
+	const [composerState, setComposerState] =
+		useState<ComposerPanelState>(EMPTY_COMPOSER_STATE);
+	const composerStatus = composerState.status;
+	const selectedComposer = composerState.selected;
+	const setComposerStatus = useCallback((status: ComposerStatus | null) => {
+		setComposerState((prev) => ({ ...prev, status }));
... diff truncated: showing 800 of 2560 lines

You can send follow-ups to the cloud agent here.

cursoragent and others added 2 commits June 18, 2026 13:45
Resolve conflicts in .github/workflows/tag-release.yml and
test/workflows/tag-release.test.ts by taking main's hardened
dispatch confirmation (dispatched_release_run_count + dispatch_status
capture) from PR #790, which is the deliberately-merged source-of-truth
hardening (maestro-internal#2792). The mirror sync preserves public-owned
CI workflows per the PR's stated invariant.

Both Bugbot findings are addressed:
- Workflow test assertions now match the workflow YAML (dispatched_release_run_count).
- Stale cached telemetry enablement fixed via live shouldEnableTelemetry()
  checks (commits 8806287 + 7eaaff1 regression test), preserved through the merge.

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f26b7cde9c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/telemetry.ts
Comment on lines +859 to +862
} else if (
config.endpoint === null &&
!hasRemoteMeterDestination(config.env)
) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Keep non-turn telemetry from being dropped

When only the Meter destination is configured (no telemetry endpoint and no explicit telemetry file), this new guard suppresses the default file write for every telemetry event, but only canonical-turn events are actually mirrored to Meter above. Non-canonical events such as tool-execution, api-request, and background-task therefore build an empty persistence task list and are silently lost; keep the default file path for those event types or only skip it when the current event is a canonical turn.

Useful? React with 👍 / 👎.

Address review feedback on the public mirror sync:

1. src/telemetry.ts (codex-connector P2): the meter-only guard added in
   8806287 skipped the default file write whenever a remote meter
   destination was configured, but only canonical-turn events mirror to
   Meter. Non-canonical events (tool-execution, api-request,
   background-task) therefore had no sink and were silently dropped.
   Now skip the default file only for canonical turns when a meter
   destination is present; non-canonical events fall back to the default
   file. Regression test in test/telemetry/telemetry-meter.test.ts
   records a tool-execution event and asserts the default file captures
   it (and the meter endpoint is not called).

2. .github/workflows/tag-release.yml (Bugbot 0855fa3a): the count-based
   dispatch confirmation caps gh run list at --limit 50, so a tag that
   already has 50+ matching dispatched runs would not see the count
   increase on a new successful dispatch and the step would fail. Add a
   latest_dispatched_release_run_id() helper (highest databaseId, which
   is monotonic with creation time) and use it as the primary
   confirmation, with the count check retained as a fallback. This keeps
   PR #790's dispatch_status capture and count-based design intact while
   closing the capped-window edge case. Test assertions updated to lock
   in the new helper.

@cursor cursor Bot 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.

Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.

Fix All in Cursor

Bugbot Autofix is ON. A cloud agent has been kicked off to fix the reported issue. You can view the agent here.

Reviewed by Cursor Bugbot for commit 8b9dc84. Configure here.

Comment thread .github/workflows/tag-release.yml Resolved
Bugbot (0855fa3a, high severity) on 8b9dc84: latest_dispatched_release_run_id()
used max_by(.databaseId).databaseId with // "" fallback. While // catches
the max_by error in some jq builds, it can propagate non-zero under
set -euo pipefail in CI when no workflow_dispatch runs exist for the tag
yet, aborting the step before a new release can be dispatched.

Replace with an explicit length guard:
  if length == 0 then "" else (max_by(.databaseId).databaseId | tostring) end

Verified empty/no-match/match cases all return rc=0. The tostring ensures
consistent string output for bash comparison.

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 50a5758bc3

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/runtime/env.ts
Comment on lines +329 to +330
if (process.env.MAESTRO_RUNTIME_ENV_STRICT_BOOTSTRAP === "1") {
throw new Error(message);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Finalize env before strict bootstrap checks

When MAESTRO_RUNTIME_ENV_STRICT_BOOTSTRAP=1 is set, this new throw aborts repo maintenance scripts that legitimately run outside the CLI bootstrap path and do not call loadAndFinalizeEnv() first; for example, ./node_modules/.bin/tsx scripts/check-context-manifest-contract.ts now fails through Logger.config -> defaultRuntimeEnv(), and the same scripts are part of bun run lint:evals. Either those entrypoints need to finalize the env before importing config/logger paths, or strict mode should not apply to non-bootstrap scripts, otherwise enabling the guard in CI breaks the standard validator.

Useful? React with 👍 / 👎.

@haasonsaas
haasonsaas merged commit 654bf0c into main Jun 19, 2026
15 of 16 checks passed
@haasonsaas
haasonsaas deleted the sync/public-release-mirror branch June 19, 2026 07:25
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