Skip to content

docs(mcp): drop the unenforced MAX_PAGE_ROWS comparison (#1266) - #1277

Merged
cameri merged 2 commits into
rewrite/mainfrom
fix/1266-option-1
Nov 29, 2026
Merged

cameri merged 2 commits into
rewrite/mainfrom
fix/1266-option-1

Conversation

@chappie-daemon

Copy link
Copy Markdown
Collaborator

Option 1, as chosen on #1266: remove the nostream_storage::MAX_PAGE_ROWS comparison from the MAX_ROWS_PER_SKIP doc comment and from ADR 0020's D2, keeping only the measurement that justifies 5,000.

Cherry-picked with -x from ItsAbir005#2 (0e0b5eec, author Abir Maity), which implements that answer on the thread. One addition on top: e07aa933 re-wraps the D2 Cost paragraph to the file's 100 columns, since the edit had left a 108-character line.

Why this option rather than the pinning test: assert!(MAX_ROWS_PER_SKIP >= nostream_storage::MAX_PAGE_ROWS) would couple the MCP schema to the relay's event-page clamp again, which is exactly what #1265 removed. The comparison was information about the magnitude, not a derivation, so prose was the only place it lived — and prose no assertion reads is a claim that rots silently.

No behaviour change: the constant stays 5,000, and the surviving paragraph still carries the 0.941 ms / 7.936 ms measurement and the two-pages-deep rejection of 500. The changeset is empty, as a docs-only change requires.

Closes #1266.

@changeset-bot

changeset-bot Bot commented Nov 29, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: e07aa93

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 0 packages

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@coderabbitai

coderabbitai Bot commented Nov 29, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 5dd58acc-0985-406a-9a1b-3cc46a339977

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@greptile-apps

greptile-apps Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

Confidence Score: 5/5 · This documentation-only change appears safe to merge.RetriggerView in GreptileConfidence Score: 5/5

[Low impact] This documentation-only change appears safe to merge.

Summary

Removes the comparison to nostream_storage::MAX_PAGE_ROWS from the MAX_ROWS_PER_SKIP comment and ADR 0020.

  • The MCP offset ceiling explanation no longer compares it with the relay page limit.

Reviews (1) · Last reviewed commit: "style(mcp): rewrap ADR 0020's D2 cost pa..." · Reviewed by Greptile

@cameri
cameri merged commit 090136c into rewrite/main Nov 29, 2026
19 checks passed
@cameri
cameri deleted the fix/1266-option-1 branch November 29, 2026 13:11
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.

3 participants