Add bundle MCP diagnostics timeline spans#81787
Conversation
|
Codex review: needs changes before merge. Reviewed June 30, 2026, 9:22 PM ET / July 1, 2026, 01:22 UTC. Summary PR surface: Source +37, Tests +63. Total +100 across 2 files. Reproducibility: yes. at source level: current main still has only the aggregate Review metrics: 1 noteworthy metric.
Stored data model Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Risk before merge
Maintainer options:
Copy recommended automerge instructionNext step before merge
Security Review findings
Review detailsBest possible solution: Port the gated timeline spans and focused stdio MCP coverage to Do we have a high-confidence way to reproduce the issue? Yes at source level: current main still has only the aggregate Is this the best way to solve the issue? No, not as submitted. The instrumentation shape is narrow and maintainable, but it must be applied to the active Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against b3b51b0c9185. Label changesLabel justifications:
Evidence reviewedPR surface: Source +37, Tests +63. Total +100 across 2 files. View PR surface stats
Acceptance criteria:
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
This comment was marked as low quality.
This comment was marked as low quality.
|
This pull request has been automatically marked as stale due to inactivity. |
Summary
bundle-toolscould take noticeable time during embedded agent prep, but diagnostics only exposed a single opaque timing bucket.tools/listcatalog discovery.Change Type (select all)
Scope (select all touched areas)
Linked Issue/PR
Real behavior proof (required for external PRs)
bundle-toolsprep stage.The new coverage starts a real stdio MCP probe server, materializes bundle MCP tools, and reads the diagnostics timeline JSONL. It asserts
span.endevents for:bundle-tools:1680ms@2047mswith no per-MCP-server/tools-list breakdown.Root Cause (if applicable)
Regression Test Plan (if applicable)
src/agents/pi-bundle-mcp-runtime.test.tsbundle-mcp.server,bundle-mcp.connect, andbundle-mcp.tools-listspans.User-visible / Behavior Changes
None. This only adds diagnostics timeline events when diagnostics timeline output is enabled.
Diagram (if applicable)
Security Impact (required)
Yes/No) NoYes/No) NoYes/No) NoYes/No) NoYes/No) NoYes, explain risk + mitigation: N/ARepro + Verification
Environment
Steps
Expected
bundle-mcp.server,bundle-mcp.connect, andbundle-mcp.tools-listspans.Actual
Evidence
Human Verification (required)
What you personally verified (not just CI), and how:
12 passed.git diff --checkpasses.pnpm build && pnpm check && pnpm test, due memory pressure concerns on the available server.Review Conversations
Compatibility / Migration
Yes/No) YesYes/No) NoYes/No) NoRisks and Mitigations