Skip to content

fix(mcp): honor catalog transport lifecycle and streaming responses - #4773

Merged
reachjalil merged 1 commit into
devfrom
fix/mcp-catalog-protocol
Sep 10, 2026
Merged

reachjalil merged 1 commit into
devfrom
fix/mcp-catalog-protocol

Conversation

@benjaminshafii

Copy link
Copy Markdown
Member

Summary

  • Parse incremental SSE responses by JSON-RPC request ID without waiting for EOF; support CR, LF, and CRLF frames.
  • Negotiate supported protocol versions, normalize session headers, validate initialization notification acceptance, and share resource discovery with the skill catalog.
  • Add a synthetic real-server journey covering 14 success and rejection modes. No catalog diagnostics or app fallback changes.

Verification

  • Committed head: d5e970f.
  • pnpm --filter openwork-server typecheck: passed (exit 0).
  • pnpm evals:pr specs/mcp-catalog-transport.test.ts: 14 passed, 0 failed, 0 skipped (exit 0); cold server per case. PR lane emitted no placement line.
  • Consumer review: skill, automation, and MCP-server catalogs retain the shared resource-reader interface; all now require a supported InitializeResult version and an empty HTTP 202 notification response.
  • Initial test launch lacked evals dependencies (exit 1); frozen evals install repaired tooling before successful runs.

Verdict

Functional checks passed; overall Incomplete pending hosted checks and review. Bare pnpm warden:check exited 1 (auth_failed), configured model unchanged. Expected skills: diff-security-review, confidentiality-review, spec-provenance-review; actual complete coverage: none. No native finding IDs were emitted; this is not clearance. Before/after HEAD d5e970f and origin/dev 7d5097d were unchanged. Clear when all expected skills complete on this scope without blockers. No merge requested.

@vercel

vercel Bot commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
openwork-app Ready Ready Preview Sep 10, 2026 5:00am UTC
openwork-den Ready Ready Preview Sep 10, 2026 5:00am UTC
openwork-diagnostics Ready Ready Preview Sep 10, 2026 5:00am UTC
openwork-landing Ready Ready Preview, v0 Sep 10, 2026 5:00am UTC

@github-actions

Copy link
Copy Markdown
Contributor

Warden review summary — Clear

Native findings: 0. Blocking policy matches before consolidation: 0. Full finding text remains in Warden's native checks and review threads. This comment retains only native IDs, severity, skill attribution, and safe locations. Analysis run

Reported trigger coverage (not proof of complete repository or context coverage): diff-security-review (31346 ms), confidentiality-review (10749 ms), spec-provenance-review (41341 ms).

Blockers

  • None.

Advisories

  • None.

Needs recheck

  • None.

Observed review-thread metrics

  • Unique observed run attempts in retained window: 1
  • Distinct heads in retained window: 1
  • Current unresolved Warden threads: 0 of 0 observed
  • Observed resolved/unresolved transitions in retained snapshots: 0 / 0
  • First observed resolved/unresolved (state at first collection, not event time): 0 / 0
  • Precision: unavailable (no adjudications; no TP/FP values are inferred)
  • Observation window: 1/20 run attempts retained; truncated: false
  • Transition snapshot: 0/0 current attributed threads retained (limit 500); truncated: false

Thread states are read-only collection snapshots. These metrics are neither lifetime totals nor exact resolution times, and this summary is not clearance authority.

@diff-warden diff-warden Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (d5e970f46fcd251f5b0eb61e1c6a5713251c887c). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run

@github-actions

Copy link
Copy Markdown
Contributor

Passed · 6/6 tests · 7/7 assertions · 5 images

Commit d5e970f46fcd251f5b0eb61e1c6a5713251c887c · selected evidence

Open review report

@benjaminshafii

Copy link
Copy Markdown
Member Author

Committed-head protocol verification

Head: d5e970f46fcd251f5b0eb61e1c6a5713251c887c. Functional verdict Passed: 14 passed / 0 failed / 0 skipped. Reproduce: pnpm evals:pr specs/mcp-catalog-transport.test.ts (exit 0, 9.61s). The PR lane emitted no placement line; each case booted a cold real server locally. Server typecheck also exited 0.

Assertion evidence and source records

Each row is a separate catalog transport: <mode> test and its matching Catalog interoperability: <mode> assertion, copied from the committed-head testkit records. All rows observed HTTP 200 from the catalog API, bounded completion under 15 seconds, POST discovery despite GET 405, and configured auth/Accept headers. Version/session assertions apply to requests after initialization, when present.

Test mode Verdict Observable assertion Original record timestamp (UTC, 2026-09-10)
json Passed Witness skill visible; initialize → initialized → resources/read 04-58-30-423Z
sse-lf Passed Witness skill visible; initialize → initialized → resources/read 04-58-30-728Z
sse-cr Passed Witness skill visible; initialize → initialized → resources/read 04-58-31-031Z
sse-crlf Passed Witness skill visible; initialize → initialized → resources/read 04-58-31-320Z
older-version Passed Witness skill visible; negotiated older version overrides contradictory response header 04-58-31-594Z
unsupported-version Passed No skill leaked; only initialize sent 04-58-31-871Z
missing-version Passed No skill leaked; only initialize sent 04-58-32-140Z
initialize-error Passed No skill leaked; only initialize sent 04-58-32-419Z
notification-rejected Passed No skill leaked; no resources/read sent 04-58-32-690Z
notification-rpc-error Passed No skill leaked; no resources/read sent 04-58-32-951Z
read-error Passed No skill leaked after resources/read 04-58-33-215Z
wrong-id Passed No skill leaked from unmatched SSE response 04-58-33-515Z
wrong-json-id Passed No skill leaked from unmatched JSON response 04-58-33-791Z
unfinished-stream Passed No skill leaked; unfinished stream terminated within bound 04-58-34-053Z

Original records and HTML reports remain under evals/results/test-runs/2026-09-10T<timestamp>-catalog-transport-<mode>/{test-run.json,index.html} in the protocol PR worktree. Every record has the head SHA above and outcome passed. No screenshots or visual claims.

Publication limitation

pnpm evals:e2e --publish --pr 4773 --all exited 1: Set OPENWORK_REVIEW_URL to the review app URL. This comment is the no-review-app fallback; original report upload remains Incomplete, not a functional failure.

Final Warden ownership and CI

Local bare pnpm warden:check: exit 1, auth_failed; run 16a4f61d-2026-09-10T04-58-41-672Z. HEAD above and origin/dev 7d5097d4258da3c8568d0735712ea47c6c2fb482 unchanged before/after. Expected security, confidentiality, and provenance; actual local completed coverage none (other files skipped after auth failure). Native finding IDs: none emitted. Disposition: local Incomplete. Clear when approved credentials allow all three expected skills to complete on the four committed files without blockers. Configured model unchanged; private logs not uploaded.

Hosted counterpart Warden run 34439275975 completed all three expected skills with zero findings (security 31.3s, confidentiality 10.7s, provenance 41.3s); sync was correctly not applicable to the changed paths. Hosted review: no blockers; this does not relabel local auth failure as clearance.

gh pr checks 4773 --watch --interval 30 reached terminal exit 0: core/build/required checks, CodeQL analyses, Warden, audits and deployments passed. Extended tests, docs/models validation, optional review integrations and the earlier approval job were skipped by CI—not claimed as tests passed. No tests/hooks/policy were disabled. PR remains open and unmerged.

This branch was successfully deployed

4 active deployments
Preview – openwork-landing — d5e970f4 Deployed Sep 10, 2026 by vercel[bot]
Preview – openwork-app — d5e970f4 Deployed Sep 10, 2026 by vercel[bot]
Preview – openwork-den — d5e970f4 Deployed Sep 10, 2026 by vercel[bot]
Preview – openwork-diagnostics — d5e970f4 Deployed Sep 10, 2026 by vercel[bot]
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