Skip to content

fix(orb): surface dropped relay events + correct the stale MCP-501 self-host doc - #1481

Merged
JSONbored merged 1 commit into
mainfrom
claude/mcp-doc-relay-gauge
Jun 26, 2026
Merged

fix(orb): surface dropped relay events + correct the stale MCP-501 self-host doc#1481
JSONbored merged 1 commit into
mainfrom
claude/mcp-doc-relay-gauge

Conversation

@JSONbored

Copy link
Copy Markdown
Owner

Summary

Two small correctness/observability fixes (roadmap #5):

  • Relay drops are no longer silent. The Orb relay retry queue dropped events after the 1-hour TTL / 5-attempt budget (e.g. a self-host container down >1h) with zero visibility. retryFailedRelays now emits an alertable orb_relay_events_dropped log with the lost-event count, so the loss leaves a trace.
  • MCP-501 doc correction. self-hosting.md listed the /mcp server as 'returns 501' on self-host — but the native Node MCP transport shipped (Docker image + docker-compose (one-command self-host) #980) and /mcp is fully wired (verified: app.all('/mcp', handleMcpRequest)WebStandardStreamableHTTPServerTransport). Removed the stale entry.

Validation

  • npm run typecheck; npm run test:coverage — full suite green, 100% changed lines + branches (a console.warn spy asserts the drop log; the no-prune path is covered by the existing empty/increment tests).

…lf-host doc

Two small correctness/observability fixes:
- The relay retry queue silently dropped events after the 1-hour TTL / 5-attempt
  budget (e.g. a container down >1h). retryFailedRelays now emits an alertable
  orb_relay_events_dropped log with the lost-event count so the loss leaves a trace.
- docs/self-hosting.md claimed the /mcp server 'returns 501' on self-host. The
  native Node MCP transport shipped (#980) and /mcp is fully wired, so drop the
  stale entry from the 'not on self-host' list.
@dosubot dosubot Bot added the size:S label Jun 26, 2026
@superagent-security

Copy link
Copy Markdown
Contributor

Superagent didn't find any vulnerabilities or security issues in this PR.

@JSONbored JSONbored self-assigned this Jun 26, 2026
@codecov

codecov Bot commented Jun 26, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.44%. Comparing base (6543e3c) to head (0024008).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1481   +/-   ##
=======================================
  Coverage   95.44%   95.44%           
=======================================
  Files         194      194           
  Lines       21070    21072    +2     
  Branches     7624     7625    +1     
=======================================
+ Hits        20110    20112    +2     
  Misses        383      383           
  Partials      577      577           
Files with missing lines Coverage Δ
src/orb/relay.ts 100.00% <100.00%> (ø)
🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@JSONbored JSONbored added the gittensor:bug Gittensor-scored bug fix — scores a 0.05x multiplier. label Jun 26, 2026
@JSONbored
JSONbored merged commit 3d26ca2 into main Jun 26, 2026
18 checks passed
@JSONbored
JSONbored deleted the claude/mcp-doc-relay-gauge branch June 26, 2026 11:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gittensor:bug Gittensor-scored bug fix — scores a 0.05x multiplier.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant