Skip to content

feat: Phoenix-MCP calibration loop is live in prod — flip the chip green#84

Merged
ComBba merged 1 commit into
mainfrom
feat/phoenix-mcp-live-chip
Jun 6, 2026
Merged

feat: Phoenix-MCP calibration loop is live in prod — flip the chip green#84
ComBba merged 1 commit into
mainfrom
feat/phoenix-mcp-live-chip

Conversation

@ComBba
Copy link
Copy Markdown
Contributor

@ComBba ComBba commented Jun 6, 2026

Builds on #83 (the three bug fixes) + the GCP Phoenix (Cloud Run + Cloud SQL) + the seeded glasshat-calibration dataset. The deployed audit now does a genuine per-request MCP round-trip, verified against prod:

  • eval correction 4.0 to 2.84 (= 4.0 minus 0.8x1.45, clipped to [0,10], not the plus/minus-2 cap, so the p25/p75 fix holds);
  • Phoenix MCP Server running on stdio logged twice per eval (read consult + write-back) — the table fallback never spawns npx;
  • the 4 corrected (yellow, criterion, low) cells grew n 7 to 8 — the write-back landed in the live dataset.

Since it is genuinely live, the honesty signals flip from wired (amber) to live (green):

  • deploy.sh: API memory 512Mi to 2Gi — the npx phoenix-mcp Node subprocess + the Python eval OOM-killed 512Mi (-> 503); 2Gi fits both. (Root-caused from the prod logs.)
  • deployment.ts: chip wired->live, consultantMode table-prior->phoenix-mcp, header (all five pillars live).
  • ProofStrip / ProofTimeline / ProofReceipt (+ tests): caveat text + assertions flip to live.
  • Landing ArizeBand: "wired"->"live" loop, Phoenix . MCP (live) badge.
  • README + Devpost: disclosures updated — no more "deployed image uses the table prior".

Honest framing preserved: the credentialed Agent-Engine run (trace tree + hit@13) stays the separate genuine-AX evidence. Web gates: typecheck . lint . test (74) green.

Next (this session): redeploy via deploy.sh, then the live chip goes green and re-verify.

…p green

The deployed audit now does a genuine per-request MCP round-trip (read the
glasshat-calibration dataset + write each correction back) against a Cloud-SQL-backed
Phoenix on Cloud Run, verified against prod:
  - eval 4.0 to 2.84 (= 4.0 minus 0.8x1.45, NOT the plus/minus-2 cap, so the p25/p75
    fix holds);
  - "Phoenix MCP Server running on stdio" twice per eval (read + write-back);
  - the 4 corrected (yellow, criterion, low) cells grew n 7 to 8 (write-back landed).

Since it is genuinely live, flip the honesty signals from "wired" (amber) to "live":
- deploy.sh: API memory 512Mi to 2Gi (the npx phoenix-mcp Node subprocess + the
  Python eval OOM-killed 512Mi -> 503; 2Gi fits both).
- deployment.ts: phoenixmcp chip wired->live, consultantMode table-prior->phoenix-mcp,
  header comment (all five pillars live).
- ProofStrip / ProofTimeline / ProofReceipt (+ tests): caveat text + assertions flip
  to live.
- Landing ArizeBand: "wired"->"live" loop, "Phoenix . MCP (live)" badge.
- README + Devpost: Phoenix-MCP disclosures updated to the live state (honest, no
  more "deployed image uses the table prior").

Web gates: typecheck . lint . test (74) green.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Jun 6, 2026

Warning

Review limit reached

@ComBba, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 31 minutes and 58 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: addf406a-ec21-4b4e-bc0d-140ea320b63d

📥 Commits

Reviewing files that changed from the base of the PR and between 57ad0f0 and da3229d.

📒 Files selected for processing (10)
  • README.md
  • apps/web/app/page.tsx
  • apps/web/components/ProofReceipt.test.tsx
  • apps/web/components/ProofReceipt.tsx
  • apps/web/components/ProofStrip.test.tsx
  • apps/web/components/ProofStrip.tsx
  • apps/web/components/ProofTimeline.tsx
  • apps/web/lib/deployment.ts
  • claudedocs/2026-06-02-devpost-text.md
  • infra/deploy.sh
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/phoenix-mcp-live-chip

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request transitions the Phoenix MCP calibration loop to a live status on the deployed demo, updating the documentation, UI components, and tests to reflect this change. Additionally, the Cloud Run deployment configuration is updated to increase the container memory to 2Gi to support the Node subprocesses. Feedback highlights a visual inconsistency in ProofTimeline.tsx where the text color was updated to green but the surrounding container and arrow remain amber. It is also recommended to pre-install @arizeai/phoenix-mcp in the container image rather than invoking it via npx on every request to reduce latency and memory overhead.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

</span>
<span className="font-medium text-[var(--color-warn)]">Phoenix MCP</span>
<span className="font-medium text-[var(--color-good)]">Phoenix MCP</span>
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

Changing the text color of 'Phoenix MCP' to var(--color-good) (green) to reflect its live status creates a visual inconsistency with the surrounding elements. The arrow icon (line 192) and the parent container's border/background classes (lines 188-189) are still hardcoded to use var(--color-warn) (amber). Please update the container and arrow to use var(--color-good) as well to ensure consistent coloring for the live state.

Comment thread infra/deploy.sh
# The live Phoenix-MCP audit spawns an `npx @arizeai/phoenix-mcp` Node subprocess
# per request (read consult + write-back) ON TOP of the Python eval; 512Mi OOM-kills
# the container (→ 503). 2Gi fits Python + Node with headroom.
API_MEMORY="${API_MEMORY:-2Gi}"
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

Spawning an npx @arizeai/phoenix-mcp Node subprocess on every single request introduces significant latency and memory overhead (requiring the increase to 2Gi). To optimize performance and reduce request latency, consider pre-installing @arizeai/phoenix-mcp globally or locally in the container image and invoking it directly via node or its binary executable instead of using npx.

@ComBba ComBba merged commit 9843b7c into main Jun 6, 2026
5 checks passed
@ComBba ComBba deleted the feat/phoenix-mcp-live-chip branch June 6, 2026 06:00
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.

1 participant