Skip to content

feat: add cached result metadata and replay snapshots#22

Merged
ForeverAngry merged 1 commit into
mainfrom
borrowed-runtime-mcp-replay
May 27, 2026
Merged

feat: add cached result metadata and replay snapshots#22
ForeverAngry merged 1 commit into
mainfrom
borrowed-runtime-mcp-replay

Conversation

@ForeverAngry

Copy link
Copy Markdown
Owner

Summary

Adds the MCP-side pieces needed for bounded result paging and adapter-owned reconnect replay.

Cached result envelopes now expose the same model-boundary metadata vocabulary as rig-compose result envelopes while preserving MCP page handles. Registration replay is kept adapter-local: the snapshot records discovered tool schemas and can replay them into a registry after reconnect without pushing transport state into rig-compose.

Changes

  • Extend CachedResultEnvelope with truncated, omitted_items, and page_token.
  • Add deterministic page-token generation for cached array previews.
  • Add RegistrationReplayPolicy.
  • Add RegistrationSnapshot.
  • Add replay tests for sorting, deduplication, discovery, and idempotent registry replay.
  • Update README, ROADMAP, and changelog.

Validation

  • just check

Copilot AI review requested due to automatic review settings May 27, 2026 18:27
@ForeverAngry ForeverAngry changed the title Add cached result metadata and replay snapshots feat: add cached result metadata and replay snapshots May 27, 2026
@ForeverAngry ForeverAngry merged commit c286361 into main May 27, 2026
9 of 11 checks passed
@ForeverAngry ForeverAngry deleted the borrowed-runtime-mcp-replay branch May 27, 2026 18:29
@ForeverAngry ForeverAngry removed the request for review from Copilot May 27, 2026 18:48
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