Reduce peer result validation cost and isolate benchmark pollers #168
No reviewers
Labels
No labels
bug
enhancement
epic
needs-info
needs-triage
ready-for-agent
ready-for-human
svd:go
svd:hold
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
dev/mail-mind-mcp!168
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/svd-dev-mail-mind-mcp-167-cut-the-per-call-cost-of-mail-a76c553f"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Serialize peer results directly as CallToolResult while preserving advertised schemas, contract validation and wire shape. Move both benchmark feed pollers into a child process with a ready/go/stop handshake, unchanged polling logic and budgets. Add validation-spy positive controls, JSON/SSE wire-shape guards and ADR observations.
Validation: make check passes with 1,227 tests, 8 skipped and 18 deselected, versus 1,222 passing baseline tests. Peer suites pass 198 tests. The three revalidation cases fail before implementation; all five new cases pass afterwards. Wheel/source builds and subprocess smoke checks pass.
Sandbox cProfile on voyager, Python 3.14.5, 20 calls against the 210k-row store:
Before:
Function | Calls | Cumulative seconds
jsonschema.validate | 40 | 2.346
SDK handler | 60 | 1.186
client result validation | 20 | 1.192
After:
Function | Calls | Cumulative seconds
jsonschema.validate | 20 | 1.302
SDK handler | 60 | 0.011
client result validation | 20 | 1.327
No jsonschema.validate caller remains under the server handler after the change; client validation remains.
I02: three architect runs of
uv run python3 scripts/bench_feed.pyon hostvoyageratcd1a119. Every budget passes. Loaded ÷ idle search p95 is 1.04, 1.01 and 1.03 (budget 1.25; 1.92 to 2.33 before). Recorded in ADR 0008 by63e5d6a.Closes #167
Co-Authored-By: gpt-6.1-sol noreply@openai.com