Skip to content

fix(mcp): name the filter, not the snapshot route, for a filter-driven gap-list overflow (#9895) - #9970

Merged
EffortlessSteven merged 4 commits into
mainfrom
fix/mcp-gap-list-filter-recovery
Oct 23, 2026
Merged

EffortlessSteven merged 4 commits into
mainfrom
fix/mcp-gap-list-filter-recovery

Conversation

@EffortlessSteven

Copy link
Copy Markdown
Member

Governing issue or accepted claim: #9895 (MCP sweep: a huge list_gaps filter produces a wrong recovery hint)
Acceptance delta (one sentence): when the echoed filter value is what pushes the empty-page shell past the response bound, the typed result_too_large refusal now names the filter as the shrinkable bound instead of pointing at the ripr://snapshot/{snapshot_id} identity route, which cannot fix an echo-driven overflow.

Context

This slice was salvaged from #9959 (closed as superseded): its argument-message half landed more comprehensively via #9945 while #9959 queued and went conflicted, but that half never touched this workspace-side recovery. This PR is the independently valuable remainder, rebased onto current main.

What was wrong

list_gaps measures a zeroed-page shell document to size the page budget. A huge filter echo (e.g. a very long file path) can make even that shell exceed the bound. The old recovery for that refusal always named the snapshot identity route — advice that is truthful for omission-driven overflow but useless here: narrowing ripr://snapshot reads cannot shrink the caller's filter echo.

Fix

  • The session now probes the same shell with an empty filter echo (filtered count unchanged, so only the echo differs).
  • When the echo is the difference between a fitting shell and an overflowing one, the refusal carries RECOVERY_GAP_LIST_FILTER_TOO_LARGE ("the echoed filter value, not the page, exceeds the response bound; narrow the file/class/language filter and retry ripr_list_gaps"); shell-driven overflow keeps RECOVERY_GAP_LIST_IDENTITY_ROUTE.
  • Applied to both the structured-envelope bound and the raw document ceiling paths.

Evidence

  • Unit: mcp::workspace::tests::list_gaps_overflow_recovery_names_the_shrinkable_cause — filter-driven shell overflow names the filter; shell-driven overflow keeps the identity route (30/30 mcp::workspace pass, gaps 26, server 32).
  • check-spec-format and check-traceability pass; spec behavior prose and test mapping updated (RIPR-SPEC-0211), test registered in .ripr/traceability.toml.

Rollback

Revert; overflow recovery returns to always naming the snapshot identity route.

Non-goals: argument parsing messages (owned by #9945); the remaining #9895 items (SIGTERM git child, resource URI trailing slash, host path in next_command).

…n gap-list overflow (#9895)

A huge list_gaps filter value (for example a long file path) can push the
empty-page shell past the response bound on its own, where the old
recovery pointed at the ripr://snapshot/{snapshot_id} identity route —
advice that cannot fix an echo-driven overflow. The session now probes
the same shell with an empty filter echo: when the echo is the difference
between fitting and overflowing, the typed refusal names the filter as
the shrinkable bound; only overflow that filtering cannot cause keeps the
identity route (#9895).

Salvaged from #9959, whose argument-message half was superseded by #9945
while it queued; this is the independently valuable workspace half,
rebased onto current main. RIPR-SPEC-0211 behavior + test mapping updated
and the new test registered in .ripr/traceability.toml.
@coderabbitai

coderabbitai Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

  • Ask an admin to enable usage-based reviews

Open in CodeRabbit

Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing.

Next included review available in 56 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 133 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Essentials
  • Run ID: 799068e6-f1a1-40f2-a8fc-f946f2ae18d0
📥 Commits

Reviewing files that changed from the base of the PR and between d91c149 and a746745.

📒 Files selected for processing: 4
  • .ripr/traceability.toml
  • crates/ripr/src/mcp/workspace.rs
  • crates/ripr/tests/mcp_stdio.rs
  • docs/specs/RIPR-SPEC-0211-mcp-workspace-session-evidence.md
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request refactors the list_gaps error recovery logic to distinguish between filter-driven and shell-driven overflows, returning a more specific recovery suggestion depending on the cause. Feedback on the changes highlights an inconsistency in recovery_for_document, where the check for shell_bytes exceeding the document ceiling does not account for the reserve margin, unlike the other checks and the page budget calculation.

Comment thread crates/ripr/src/mcp/workspace.rs Resolved

EffortlessSteven commented Oct 23, 2026 •

Copy link
Copy Markdown
Member Author

Independent exact-head review of 5b9658ebb976d5eb789fefd5345f60cef7a4a21a, tree fb5d727c4d3e05558c46274da875eda7a775fc7c: REPAIR_REQUIRED. Existing author on fix/mcp-gap-list-filter-recovery retains custody.

  1. The meaningful fix(mcp): truthful list_gaps overflow recovery and 2^64 range error (#9895) #9959 stdio assertion change was not carried forward. crates/ripr/tests/mcp_stdio.rs around line2464 still requires the snapshot identity route for the filter-driven overflow. Its independently sized fixture establishes the interval where this new implementation emits filter recovery, so the retained assertion contradicts intended behavior. Restore the filter-recovery assertion while preserving byte-bound, snapshot-identity and same-session checks. This is source-established, not an observed native failure by this reviewer.
  2. docs/interop/mcp.md around line313 still describes identity recovery unconditionally, unlike the updated spec. Document the filter exception without disturbing fix(mcp): name the real limit/offset constraint and recovery on integer errors (#9895) #9945's integer-bound contract.

The parser composition itself is correct: server.rs retains landed #9945 blob bcb8a53d05e75e1b2163f060e4c4c56052bb4513. The paired shell measurements use the same snapshot/filtered count; the new unit distinguishes filter versus shell envelope attribution and is registered in traceability. Its artificial envelope budget does not establish raw-document boundary behavior. Existing Gemini thread4359873751 needs an evidence-backed boundary disposition; the proposed reserve adjustment is not independently validated here.

At13:20 required39958881635/producer120431910956 and companionCI39958881163 were running. Preserve those admitted runs and inspect outcomes before deciding successor qualification; no duplicate run is requested. Author-focused claims remain author-reported here. No source change, compilation, installation, dispatch, external-agent contact or merge was performed by the independent review.

Terminal execution follow-through, 2026-10-23 14:03 UTC: required producer120431910956 executed merge 0eb01ee639052a81334d48d71bff9dbd0ab3d140, combining this head with base d91c14991a28cf6171424f7b4ba743d61e1a769a, x86_64 Linux/Rust1.95.0. The sole failed subject was ripr::mcp_stdio::empty_gap_pages_keep_structured_outcomes_at_the_response_bound, at the predicted assertion: "empty file refusal lost its bounded identity recovery". Fixture measured 61,666 raw bytes / 133,514 structured bytes against a131,072-byte bound. Nextest15,226 passed/1 failed/5 skipped;4,909 unrun after fail-fast. Producer exit100 and aggregate120443613976 FAILURE. The new attribution unit and #9945 boundary/integer stdio tests passed; downstream stages skipped. This is now an observed native assertion failure, not only a source prediction. The log does not print the refusal payload/length, so it does not distinguish individual recovery-string predicates from the size predicate within that final assertion. Repair the oracle and other recorded findings through the same owner, review successor before its next qualification, and do not rerun this unchanged head.

EffortlessSteven commented Oct 23, 2026 •

Copy link
Copy Markdown
Member Author

Current exact-head review: REPAIR_REQUIRED for documentation; preserve the active qualification. Canonical #9970 is now a746745cddb9ea9d854a7c9c09b4cb63a14c017b, parent17edddf, tree 55bea9fa44ee2817cf19193d5af6eb0bea2b825e. Its only adopted delta is the test midpoint (low + high).div_ceil(2); no documentation was changed. The exact-head review5632881552 records the still-open interop contract finding from parent handoff6370689737. The newly resolved Clippy defect from6371842430 does not dispose of that documentation finding.

Existing writer's next action: apply only the four-file documentation/traceability/changelog patch below to the existing candidate, preserving any concurrently advanced work. It applies cleanly to exact a746745 and reconstructs tree 1cbfb5fdfef468e71107af7c15653f351a1b69d2, the same complete source tree already checked as local proposal b159c34c54cfa41933635c403cfb2f2f420d64aa. Patch SHA-256 c3337635ccffb65fdac3c09b72166ed85421aa1eb678acb8075c31cbc6c2a445. Do not apply the whole b159c34 format-patch again: its one Rust line is already canonical. Do not apply either historical18ff49a/b61daf8 proposal wholesale. Record the code pieces implemented/adopted and the superseded proposal pieces. Canonical source custody has not transferred and this reviewer has not pushed the branch.

This remaining correction finishes the stale interop313–316 paragraph, describes the metadata boundary accurately, maps/registers the existing reserve unit, corrects the stdio evidence description (file, not an unexecuted language/raw-branch claim), and adds the filter-only changelog fragment. No Rust, parser, budget, fixture, oracle or lint-policy change remains in the residual patch. Spec-format, traceability and changelog-fragment checks each passed0; changed Rust formatting and strict impacted-package/all-target Clippy passed0 on b159c34. The focused reserve unit newly executed on b159c34: 1 passed/10,995 filtered, native0 (0.28s; explicit --lib --no-default-features --features lang-rust target). Complete Rust sources/manifests/build configs are byte-identical between b159c34 and canonical a746745; these remain accurately labeled b159c34 executions with unaffected Rust-scope applicability, not newly relabeled canonical executions. Full required qualification remains a separate gate.

Fresh real stdio proof was bound separately to clean canonical17edddf producer, actual Cargo executable SHA-256 e255ba3d8a4a2514ecb83b8c9fac39f8dd33eab8855b33d6bd27539dd68c5167, Rust1.95.0/Linux x86_64/Rust-only. Reusable external-client bytes/source18ff49a were inspected and used only as a client; new execution, not an old18ff49a result transfer. Six independently sized raw-document controls plus escaped-filter envelope refusals passed: reserve-only/exact-ceiling/widest-window success, metadata/wide-offset/shell refusal with correct filter hint, wire/schema/current-snapshot binding, identical same-session unfiltered recovery, and serverPID17012 exit0/reaped. The integer stdio client also passed. A new zero-build negative control used actual old-main97df producer SHA256711e08d1 with that client: native101 at the intended obsolete identity-hint assertion (fixture tree4a29ac90, serverPID19930); this is an old-hint discriminator, not a claimed raw-boundary-only mutant. The canonical17edddf producer was restored and verified at e255ba3d. The17edddf→a746745 delta is cfg(test) midpoint only, so no changed production-runtime dimension was identified.

CI transition evidence: required39997538215/producer120565282928 actually checked merge d0e46a7 = main-basis3d9ce73 + head17edddf and failed101 at manual_div_ceil before required tests; later stages were not passed. Companion39997538129 on that same merge succeeded and directly passed the named attribution/reserve/effective-bound/stdout tests. Before proposing repair, exact current-main observation d84b8be passed cargo clippy --locked -p ripr --all-targets -- -D warnings, native0/5m40: candidate-introduced classification. The joined b159c34 repair passed the same strict scope0/4m09 without allowances. Retained native drivers are now all terminal; no full local matrix, unchanged hosted rerun, cancellation, Draft toggle or label reapplication was performed.

Preserve active current-head required40003373337/producer120585390535 and companionCI40003372927. Observed remote merge subject83ed8910e0252d4f4285e45ea410fc0df9e61676 joins main-basis f63a722 with a746745 (tree0300ad5ef4559cf00955c239836eb694d32d0a9f); confirm the actual executing checkout beneath the run. No merge clearance follows from an active or green wrapper. After terminal outcomes, compose/review the documentation successor and obtain its normal current-head required proof. Normal protected expected-head squash remains authorized only after the documented contract, current review, required checks and integration judgment are satisfied; read back actual landing/main ancestry. #9895 remains a broader partial sweep.

Protection/configuration read limits (independent of the source repair): connected classic-branch-protection GET /repos/EffortlessMetrics/ripr-swarm/branches/main/protection returned 403 Resource not accessible by integration; effective-rules GET /repos/EffortlessMetrics/ripr-swarm/rules/branches/main returned400 unsupported endpoint. No retry, alternate credential/client route, settings change or claim of absent protection followed. These are configuration evidence gaps, not a merge refusal. The normal protected expected-head merge path and all actual checks/approvals remain intact. No merge was attempted because documentation remains unadopted and qualification is active.

All local drivers are terminal: canonical producer build/client runs0; strict main baseline0; strict b159c34 proposal check0; focused b159c34 reserve unit0; intended old-producer negative control101 with canonical producer restored/rehashed. Brief exec-server transport loss after the main baseline did not change that recovered terminal0; the selected environment is available again and all retained exit receipts were verified. Native evidence/identity handoff is /workspace/scratch/pr9970/canonical17/delivery.json; VM paths require this selected environment or explicit artifact transfer, while the residual patch in this comment is self-contained. Clean main-baseline inspection worktree was released; review proposal/client source, warm target, immutable witnesses and raw logs remain retained for this open claim. No native background command or unarranged watcher is running.

Fresh canonical17edddf external-client stdout, checked b159c34 unit result, and new old-producer negative control

running 1 test
empty-page control binary=/workspace/scratch/pr9970/target/debug/ripr sha256=e255ba3d8a4a2514ecb83b8c9fac39f8dd33eab8855b33d6bd27539dd68c5167
empty-page fixture_tree=4a29ac90ca6d3a4db4317738c9c8c1670b0452e7 server_pid=17012
empty file page raw=61666 structured=133514 bound=131072
raw reserve-only: shell=65025 final=65025 envelope=130232/130930 no-filter=1668
raw exact-ceiling: shell=65280 final=65280 envelope=130742/130930 no-filter=1668
raw metadata-exact-ceiling: shell=65261 final=65280 envelope=130742/130930 no-filter=1668
raw metadata-overflow: shell=65280 final=65281 envelope=130744/130930 no-filter=1668
raw wide-offset-overflow: shell=65262 final=65281 envelope=130744/130930 no-filter=1668
raw shell-overflow: shell=65281 final=65281 envelope=130744/130930 no-filter=1668
empty-page healthy recovery snapshot=snapshot:sha256:933153e594467557273af1f20999c45cfdb712860509d96fb89ef033099f5dd8 selected=1
empty-page server_pid=17012 exit=exit status: 0
test empty_gap_pages_keep_structured_outcomes_at_the_response_bound ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 41 filtered out; finished in 3.86s
     Running unittests src/lib.rs (/workspace/scratch/pr9970/target/debug/deps/ripr-daa2a226f91edb44)

running 1 test
test mcp::workspace::tests::document_branch_attribution_charges_the_page_metadata_reserve ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 10995 filtered out; finished in 0.28s

test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 41 filtered out; finished in 2.79s
empty-page control binary=/workspace/scratch/pr9970/target/debug/ripr sha256=711e08d153d5e0d641a1be53beb562c2f35aed4ab55fd1c986d8619c2d15b8f9
Error: "empty file refusal lost its bounded filter recovery: read identities through the ripr://snapshot/{snapshot_id} resource and single items through ripr_get_gap"

The reserve-unit executable actually consumed for b159c34 is SHA-256 98d5e7b506c8deac3113e80979f2b2b7c4a0e3cd94aae4f07770d14338d2ce5b; its immutable witness is retained. The negative result is deliberately reported at its actual old-main97df source identity. None of these are a future documentation-successor qualification or a native current-main combined-tree pass.

Portable residual patch (only these four files remain unadopted):

diff --git a/.ripr/traceability.toml b/.ripr/traceability.toml
--- a/.ripr/traceability.toml
+++ b/.ripr/traceability.toml
@@ -14351,6 +14351,7 @@
   "crates/ripr/src/mcp/server_tests.rs::outer_envelope_budget_reserves_the_escaped_request_id",
   "crates/ripr/src/mcp/workspace.rs::tests::list_gaps_honors_the_id_aware_envelope_budget",
   "crates/ripr/src/mcp/workspace.rs::tests::list_gaps_overflow_recovery_names_the_shrinkable_cause",
+  "crates/ripr/src/mcp/workspace.rs::tests::document_branch_attribution_charges_the_page_metadata_reserve",
   "crates/ripr/src/mcp/writer.rs::tests::pinned_sdk_wraps_the_measured_envelope_within_the_outer_reserve",
   "crates/ripr/src/mcp/writer.rs::tests::request_id_escaping_is_charged_exactly_by_the_outer_budget",
   "crates/ripr/src/mcp/workspace.rs::tests::gap_list_summaries_project_readiness_matching_get_gap",
diff --git a/docs/interop/mcp.md b/docs/interop/mcp.md
--- a/docs/interop/mcp.md
+++ b/docs/interop/mcp.md
@@ -311,9 +311,12 @@
 can overflow the structured envelope while the raw document still fits.
 Those pages return the existing typed `result_too_large` refusal with the
 current snapshot identity. Only a listing that cannot fit even one
-page — an omission disclosure alone over the ceiling — fails closed with
-`result_too_large` naming `ripr://snapshot/{snapshot_id}` as the identity
-route. Other tool responses carry the document once at full fidelity:
+page fails closed with `result_too_large`: when the echoed filter causes
+the overflow, including final page metadata crossing the document ceiling,
+the recovery says to narrow the filter and retry `ripr_list_gaps`. Other
+non-pageable overflows — for example an omission disclosure alone over the
+ceiling — name `ripr://snapshot/{snapshot_id}` as the identity route.
+Other tool responses carry the document once at full fidelity:
 `content[0].text` is the compact JSON serialization, and
 `structuredContent` repeats it in every successful response. Each tool
 advertises an `outputSchema`, so a success never ships without its
diff --git a/docs/specs/RIPR-SPEC-0211-mcp-workspace-session-evidence.md b/docs/specs/RIPR-SPEC-0211-mcp-workspace-session-evidence.md
--- a/docs/specs/RIPR-SPEC-0211-mcp-workspace-session-evidence.md
+++ b/docs/specs/RIPR-SPEC-0211-mcp-workspace-session-evidence.md
@@ -206,8 +206,9 @@
   a refresh between pages fails closed with `stale_snapshot` instead of
   mixing snapshots. Only a listing that cannot fit even one page fails
   closed with `result_too_large`: when the echoed filter value itself is
-  what pushes the shell past the bound — the same shell with an empty
-  filter echo fits — the refusal names the filter as the shrinkable bound,
+  what pushes the page past the bound, including its final metadata — the
+  same shell with an empty filter echo fits — the refusal names the filter
+  as the shrinkable bound,
   because the snapshot identity route cannot fix a filter-driven overflow;
   for every other non-pageable disclosure (for example an omission
   disclosure alone over the ceiling) the refusal names
@@ -445,12 +446,15 @@
 - `crates/ripr/tests/mcp_stdio.rs::empty_gap_pages_keep_structured_outcomes_at_the_response_bound`
   — real committed analysis with nonempty subjects before filtering, fitting
   empty pages, independently sized structured-envelope overflow below the
-  raw-document ceiling, raw-document overflow, the `file` and `language` filters,
-  typed refusals bound to the current snapshot, echo-driven refusals naming
+  raw-document ceiling, oversized echoes, the `file` filter, typed refusals
+  bound to the current snapshot, echo-driven refusals naming
   the filter rather than the snapshot identity route, and same-session recovery.
 - `crates/ripr/src/mcp/workspace.rs::tests::list_gaps_overflow_recovery_names_the_shrinkable_cause`
   — filter-driven shell overflow names the filter; shell-driven overflow
   keeps the snapshot identity route.
+- `crates/ripr/src/mcp/workspace.rs::tests::document_branch_attribution_charges_the_page_metadata_reserve`
+  — raw-document overflow from final offset metadata names the filter;
+  reserve exhaustion alone still serves a fitting document.
 - `crates/ripr/tests/mcp_stdio.rs::oversized_request_id_is_rejected_with_null_id_and_the_session_survives`
   — a request id whose serialized form exceeds 16384 bytes (including one
   that fits the input cap but not the output cap) is answered with a
diff --git a/changelog.d/9970-mcp-filter-overflow-recovery.md b/changelog.d/9970-mcp-filter-overflow-recovery.md
new file mode 100644
--- /dev/null
+++ b/changelog.d/9970-mcp-filter-overflow-recovery.md
@@ -0,0 +1,4 @@
+<!-- section: Fixed -->
+- MCP `ripr_list_gaps` overflow recovery now names the echoed filter when
+  narrowing it can restore a fitting page, including overflow caused by
+  final page metadata at the document ceiling (#9970).
Canonical17edddf source/proof, joined b159c34 proposal, original18ff49a receipts and earlier coordination (historical subjects retained)

Current canonical follow-through (supersedes the old proposal-selection request below): #9970 is at 17edddf0a9f17454f4841ee0ef248110d72688a3, tree 17ef814ef3fbdbad2f92c745c674f885fb727a94. The source now repairs the original stdio assertion and reserve attribution, with its own new unit. It is neither complete five-file proposal18ff49a nor b61daf8; their old native receipts keep their original identities. #9945 parser blob bcb8a53d05e75e1b2163f060e4c4c56052bb4513 is preserved in this canonical source.

The parent handoff6370689737 remains applicable: interop313–316 still omits the filter recovery. Latest review5632150081 also correctly identifies the missing reserve-unit spec mapping. The joined residual-repair proposal below is b159c34c54cfa41933635c403cfb2f2f420d64aa, parent exact canonical 17edddf0a9f17454f4841ee0ef248110d72688a3, tree 1cbfb5fdfef468e71107af7c15653f351a1b69d2; complete portable format-patch SHA-256 2e171aa3e66271827d90da743074f4ddd3a42c0c925b17d26665a2115a568e63. Five files, 20 insertions/8 deletions: the only Rust change is the new unit's midpoint (low + high).div_ceil(2), with the interop correction, accurate spec description, reserve-unit spec/traceability registration and changelog fragment. No production-code, parser, response bound, fixture, oracle or lint-policy change. The earlier docs-only c3337635 patch is a subset; use this joined patch, not both patches or either historical full proposal wholesale.

Focused proposal checks: cargo clippy --locked -p ripr --all-targets -- -D warnings on clean b159c34 exited0 in4m09, Rustfmt on the changed Rust file exited0, and spec-format/traceability/changelog-fragment checks passed using the retained validator whose source is identical at canonical17edddf. A single explicit --lib --no-default-features --features lang-rust run of mcp::workspace::tests::document_branch_attribution_charges_the_page_metadata_reserve is now active against b159c34 (driver15263; /workspace/scratch/pr9970/canonical17/followup-reserve-unit.log), to execute the test-only midpoint edit. No full test suite or hosted run is requested by this isolated proposal.

Owner action: finish this already-diagnosed docs correction through the existing canonical writer; record the independently implemented/adopted and superseded proposal pieces. If documentation repair is already active, keep that owner and use this only as a comparison. Required39997538215/producer120565282928 and companionCI39997538129 were preserved through terminal results. The required producer failed strict Clippy, native101, at the newly added workspace.rs:2773: (low + high + 1) / 2 triggers clippy::manual_div_ceil; the diagnostic suggests (low + high).div_ceil(2). Required Rust tests and later stages were skipped, so the Rust-only companion's success is not required qualification. Both jobs actually checked merge d0e46a77a379b75921413ff6b6edb1c59ee8b4ef = main-basis 3d9ce73d181087e99637e7da519e8b01468dca78 + canonical17edddf. The companion directly passed the new reserve unit, primary attribution unit, effective-integer-bound unit and corrected stdio assertion. No run was cancelled or retriggered. Canonical custody remains unchanged; this reviewer has not pushed the branch.

New independent exact-canonical execution: clean 17edddf0a9f17454f4841ee0ef248110d72688a3, tree17ef814e, built only with cargo build --locked -p ripr --bin ripr --no-default-features --features lang-rust --message-format=json, Rust1.95.0/x86_64 Linux, two jobs/debug0/incremental off. Build native0 (3m02); actual Cargo executable /workspace/scratch/pr9970/target/debug/ripr SHA-256 e255ba3d8a4a2514ecb83b8c9fac39f8dd33eab8855b33d6bd27539dd68c5167, frozen witness retained and unchanged after consumption. The reusable immutable client SHA-256 26e42063cc70f5657d1586c6e463091996b5e91283f3fd2c2ee2166b415f7425 is still source18ff49a, used only as an external stdio client. Its inspected inline B4/JSON/subprocess path does not execute linked WorkspaceSession/production-library code. This is a new client execution against canonical17edddf producer, not transfer of the old18ff49a result and not a claim these extra controls exist in the canonical test file.

Fresh client results: empty_gap_pages_keep_structured_outcomes_at_the_response_bound native0, 1 passed/41 filtered (3.86s), B4 fixture tree4a29ac90, actual serverPID17012. Nonempty selected1 was established before filtering. The same server performed the escaped-filter envelope refusals plus raw probes: reserve-only65025/65025 and exact65280/65280 succeed; max-offset65261/65280 succeeds; metadata65280/65281, max-offset65262/65281 and shell65281/65281 refuse with filter recovery. The three raw-refusal stimuli independently measured130744 < actual130930-byte id-aware envelope budget; paired no-filter shell preserves filtered0 and measures1668. Wire cap, typed failure/schema/current-snapshot identity and whole successful document equality are asserted. Unfiltered recovery returned the identical snapshot/selection, then the owned server exited0 and was reaped. The integer-error stdio client also newly passed1/41 filtered (0.18s). Exact source/Cargo artifact/client identity and raw replies/exits: /workspace/scratch/pr9970/canonical17/producer-client-identities.json and neighboring logs. No full matrix was duplicated locally.

Gate classification recorded before source repair: candidate-introduced. cargo clippy --locked -p ripr --all-targets -- -D warnings on clean exact current-main observation d84b8bedcf172ec3c6d02d384f61f485a1ed1826 exited0 in5m40; native driver98902 terminal0 and saved exit/log were re-read after a brief exec-server disconnect. The same impacted package/all-target strict lint scope is green on main, while required producer120565282928 reports the one new manual_div_ceil error in the candidate-added reserve unit. No failure of the native check is inferred from the separate transport error. The exact joined b159c34 proposal now applies that one-line test-only repair and passes the same strict package/all-target Clippy scope. No lint allowance or gate change is proposed. Its focused unit execution remains active as described above; no canonical source push or successor CI request has occurred.

Integration observation: actual fetched main d84b8bedcf172ec3c6d02d384f61f485a1ed1826 composes locally with17edddf without conflicts, tree 3d9642d9635597e48fb0e6795047e36c9c34e096. This is source composition only, not a native combined-tree pass. GitHub's observed merge ref is d0e46a77a379b75921413ff6b6edb1c59ee8b4ef; actual executing checkout/parents and final current-main applicability remain to inspect beneath the active run. Normal final review and required checks still govern; this is not merge clearance.

From b159c34c54cfa41933635c403cfb2f2f420d64aa Mon Sep 17 00:00:00 2001
From: Codex <codex@openai.com>
Date: Fri, 23 Oct 2026 18:11:27 +0000
Subject: [PATCH] fix(mcp): complete canonical recovery docs and boundary-test
 lint repair

Bounded owner-adoption proposal based on canonical #9970 head 17edddf0a. Preserve its production implementation and stdio oracle. Replace only the new unit search midpoint with div_ceil to satisfy the observed required Clippy gate; register and document that unit, reconcile interop filter recovery and add the filter-only changelog fragment. No canonical branch push or hosted qualification is requested by this local commit.
---
 .ripr/traceability.toml                              |  1 +
 changelog.d/9970-mcp-filter-overflow-recovery.md     |  4 ++++
 crates/ripr/src/mcp/workspace.rs                     |  2 +-
 docs/interop/mcp.md                                  |  9 ++++++---
 .../RIPR-SPEC-0211-mcp-workspace-session-evidence.md | 12 ++++++++----
 5 files changed, 20 insertions(+), 8 deletions(-)
 create mode 100644 changelog.d/9970-mcp-filter-overflow-recovery.md

diff --git a/.ripr/traceability.toml b/.ripr/traceability.toml
index 5fd5ecd66..3b41963fb 100644
--- a/.ripr/traceability.toml
+++ b/.ripr/traceability.toml
@@ -14351,6 +14351,7 @@ tests = [
   "crates/ripr/src/mcp/server_tests.rs::outer_envelope_budget_reserves_the_escaped_request_id",
   "crates/ripr/src/mcp/workspace.rs::tests::list_gaps_honors_the_id_aware_envelope_budget",
   "crates/ripr/src/mcp/workspace.rs::tests::list_gaps_overflow_recovery_names_the_shrinkable_cause",
+  "crates/ripr/src/mcp/workspace.rs::tests::document_branch_attribution_charges_the_page_metadata_reserve",
   "crates/ripr/src/mcp/writer.rs::tests::pinned_sdk_wraps_the_measured_envelope_within_the_outer_reserve",
   "crates/ripr/src/mcp/writer.rs::tests::request_id_escaping_is_charged_exactly_by_the_outer_budget",
   "crates/ripr/src/mcp/workspace.rs::tests::gap_list_summaries_project_readiness_matching_get_gap",
diff --git a/changelog.d/9970-mcp-filter-overflow-recovery.md b/changelog.d/9970-mcp-filter-overflow-recovery.md
new file mode 100644
index 000000000..ed60ad257
--- /dev/null
+++ b/changelog.d/9970-mcp-filter-overflow-recovery.md
@@ -0,0 +1,4 @@
+<!-- section: Fixed -->
+- MCP `ripr_list_gaps` overflow recovery now names the echoed filter when
+  narrowing it can restore a fitting page, including overflow caused by
+  final page metadata at the document ceiling (#9970).
diff --git a/crates/ripr/src/mcp/workspace.rs b/crates/ripr/src/mcp/workspace.rs
index 64b2634cb..63103f06e 100644
--- a/crates/ripr/src/mcp/workspace.rs
+++ b/crates/ripr/src/mcp/workspace.rs
@@ -2770,7 +2770,7 @@ mod tests {
         // sits exactly at the document ceiling.
         let (mut low, mut high) = (0usize, 70_000usize);
         while low < high {
-            let mid = (low + high + 1) / 2;
+            let mid = (low + high).div_ceil(2);
             if refuses_at_offset_zero(mid)? {
                 high = mid - 1;
             } else {
diff --git a/docs/interop/mcp.md b/docs/interop/mcp.md
index e54c9726f..c663e4290 100644
--- a/docs/interop/mcp.md
+++ b/docs/interop/mcp.md
@@ -311,9 +311,12 @@ under the 128-KiB response bound, including empty pages whose echoed filters
 can overflow the structured envelope while the raw document still fits.
 Those pages return the existing typed `result_too_large` refusal with the
 current snapshot identity. Only a listing that cannot fit even one
-page — an omission disclosure alone over the ceiling — fails closed with
-`result_too_large` naming `ripr://snapshot/{snapshot_id}` as the identity
-route. Other tool responses carry the document once at full fidelity:
+page fails closed with `result_too_large`: when the echoed filter causes
+the overflow, including final page metadata crossing the document ceiling,
+the recovery says to narrow the filter and retry `ripr_list_gaps`. Other
+non-pageable overflows — for example an omission disclosure alone over the
+ceiling — name `ripr://snapshot/{snapshot_id}` as the identity route.
+Other tool responses carry the document once at full fidelity:
 `content[0].text` is the compact JSON serialization, and
 `structuredContent` repeats it in every successful response. Each tool
 advertises an `outputSchema`, so a success never ships without its
diff --git a/docs/specs/RIPR-SPEC-0211-mcp-workspace-session-evidence.md b/docs/specs/RIPR-SPEC-0211-mcp-workspace-session-evidence.md
index d0a304184..3cd3c2bcf 100644
--- a/docs/specs/RIPR-SPEC-0211-mcp-workspace-session-evidence.md
+++ b/docs/specs/RIPR-SPEC-0211-mcp-workspace-session-evidence.md
@@ -206,8 +206,9 @@ official SDK transport:
   a refresh between pages fails closed with `stale_snapshot` instead of
   mixing snapshots. Only a listing that cannot fit even one page fails
   closed with `result_too_large`: when the echoed filter value itself is
-  what pushes the shell past the bound — the same shell with an empty
-  filter echo fits — the refusal names the filter as the shrinkable bound,
+  what pushes the page past the bound, including its final metadata — the
+  same shell with an empty filter echo fits — the refusal names the filter
+  as the shrinkable bound,
   because the snapshot identity route cannot fix a filter-driven overflow;
   for every other non-pageable disclosure (for example an omission
   disclosure alone over the ceiling) the refusal names
@@ -445,12 +446,15 @@ is not evidence that a resource with a particular identity exists.
 - `crates/ripr/tests/mcp_stdio.rs::empty_gap_pages_keep_structured_outcomes_at_the_response_bound`
   — real committed analysis with nonempty subjects before filtering, fitting
   empty pages, independently sized structured-envelope overflow below the
-  raw-document ceiling, raw-document overflow, the `file` and `language` filters,
-  typed refusals bound to the current snapshot, echo-driven refusals naming
+  raw-document ceiling, oversized echoes, the `file` filter, typed refusals
+  bound to the current snapshot, echo-driven refusals naming
   the filter rather than the snapshot identity route, and same-session recovery.
 - `crates/ripr/src/mcp/workspace.rs::tests::list_gaps_overflow_recovery_names_the_shrinkable_cause`
   — filter-driven shell overflow names the filter; shell-driven overflow
   keeps the snapshot identity route.
+- `crates/ripr/src/mcp/workspace.rs::tests::document_branch_attribution_charges_the_page_metadata_reserve`
+  — raw-document overflow from final offset metadata names the filter;
+  reserve exhaustion alone still serves a fitting document.
 - `crates/ripr/tests/mcp_stdio.rs::oversized_request_id_is_rejected_with_null_id_and_the_session_survives`
   — a request id whose serialized form exceeds 16384 bytes (including one
   that fits the input cap but not the output cap) is answered with a
-- 
2.52.0
Historical proposal18ff49a, original receipts and earlier coordination (not canonical17edddf qualification)

Owner / governing claim: existing fix/mcp-gap-list-filter-recovery writer retains canonical custody; #9895 filter-only slice. Canonical adoption pending; not merge clearance.

Candidate: #9970 remains Draft at 5b9658ebb976d5eb789fefd5345f60cef7a4a21a (tree fb5d727c4d3e05558c46274da875eda7a775fc7c). Confirmed Draft transition for the blocking findings; no source branch push. Original required merge subject 0eb01ee639052a81334d48d71bff9dbd0ab3d140 joined this head with d91c14991a28cf6171424f7b4ba743d61e1a769a; required39958881635 and CI39958881163 failed. No unchanged rerun requested.

Isolated adoption proposal: commit 18ff49a3342b65cc5d0a6219c1ae23926d9658c6, parent = current PR head, tree 753816ffafb945b4b287b24f5298d5f3362ebfd1. Complete portable format-patch below (SHA-256 7c70cd886d7249cce9c525c81cfb351470bb8c939da98346b2ec2d4c95b364e9). The local commit is a proposal, not canonical adoption. It joins all three findings: corrected filter stdio oracle; interop/spec wording; reserve-aware raw-document attribution behind the unchanged actual-document refusal guard. It also adds raw-boundary/healthy controls and a changelog fragment. #9945's parser blob remains bcb8a53d05e75e1b2163f060e4c4c56052bb4513; parser and existing integer-bound tests are unchanged.

Observed focused proof (Rust1.95.0, x86_64 Linux, two jobs, debug0/incremental off, explicit --test mcp_stdio --no-default-features --features lang-rust target): Cargo build exit0. Actual Cargo binary /workspace/scratch/pr9970/target/debug/ripr, SHA-256 f913e1224ba90b18cfcd885cada4c33bc0c657d142c3ddfb7500d28030b0abda, matches the binary consumed by the test; artifact JSON, hashes and frozen copies retained. empty_gap_pages_keep_structured_outcomes_at_the_response_bound: 1 passed / 41 filtered, 5.92s. Real committed B4 fixture tree 4a29ac90ca6d3a4db4317738c9c8c1670b0452e7; one server PID6868 performed refresh, nonempty selection (selected=1), escaped-filter refusals, all raw boundary probes, identical unfiltered snapshot/selection recovery, then exited0 and was reaped. Raw shell/final sizes: reserve-only65025/65025 succeeds despite reserve crossing ceiling; exact65280/65280 succeeds; max-offset65261/65280 succeeds; metadata65280/65281 and max-offset65262/65281 refuse with filter recovery; shell65281/65281 also refuses correctly. Refusal stimuli independently measure130744 <130930-byte actual id-aware envelope budget, so the raw-document path is established. Paired no-filter shell preserves filtered0 and measures1668 bytes. Byte bounds, typed failure/current-snapshot binding and successful document equality are asserted. limit_errors_state_the_real_constraint_and_recovery_over_stdio: 1 passed / 41 filtered.

Baseline classification candidate: on exact current-main observation 97df16cb946c7f5af0b34760d5be69a879139ffd, the unchanged old stdio test passed1/41 filtered with consumed binary SHA-256 711e08d153d5e0d641a1be53beb562c2f35aed4ab55fd1c986d8619c2d15b8f9; PR and main share test blob d0d4ab94c8a1d6c1c340111fd1ceace834513f1e. Direct inspection of required producer120431910956 confirms actual old merge checkout, 15,226 passed/1 failed/5 skipped, 4,909 unrun, and the old identity-route assertion failure. Baseline check-fast exited0, six gates/zero changed paths, seven skipped; detached review checkout made worktree-doctor exit1 as expected from its branch heuristic, not a product failure. Proposal spec-format, traceability, changelog and process-policy checks passed using the main-built xtask validator SHA-256 51c1f2c1f1875796cc304a1106c4906f043055a91e8df7c6899654d20a8b01e2; relevant validator source is identical across these revisions and these commands read the proposal working directory.

Further observed proof: explicit cargo test --locked -p ripr --lib --no-default-features --features lang-rust mcp:: exited0: 212 passed, 0 failed, 10,783 filtered, including the effective-platform-bound unit and filter-versus-identity recovery unit. Driver6734 is terminal. No active local build remains.

Coordination update 2026-10-23 16:12 UTC: private contribution b61daf8 appeared while the unit proof ran. Its statement about this comment lacking exact patch identity preceded the completed 16:06 publication: the full exact patch, base/head/tree/hash and native stdio receipts are now present below and were read back byte-for-byte. An isolated index application to 5b9658e reconstructs proposal tree 753816ffafb945b4b287b24f5298d5f3362ebfd1 exactly. I have paused planned mutation/composition builds to reconcile and reuse the reported private red/green proof if its source/artifact applicability can be established. b61daf8de589fd725b276347c1fc39a1f1ec9abe is absent from this environment's Git store; connected GitHub fetch_commit also returned HTTP422 No commit found for SHA (one read, no retry or alternate-route retrieval). Source comparison and canonical selection are still pending. Please provide privately through the existing owning context the complete patch or these five blob IDs plus accessible raw command/binary receipts, or compare against this already-published patch. Preserve that contribution's publication hold and canonical branch custody. No additional implementation, successor qualification or adoption is requested pending one selection.

Exact proposed file identities for comparison:

  • workspace.rs aa83e54902ea01895366239175101388b7e535c8
  • mcp_stdio.rs aa1b364ed0fcd625b176061b4a9cf1962de3d304
  • docs/interop/mcp.md c663e42908487f5633dbb6fa431102ca7e9be9f8
  • SPEC-0211 09cc959219af3565848b5727c3d96c45adf2e155
  • changelog fragment ed60ad25764407b073aede1b02000e4e679bc503

Remaining evidence: old-guard mutation control and actual native combined-main execution for this proposal are unestablished here. The private contribution's corresponding results remain reported until raw artifacts/source applicability are inspected; they are not relabeled as this proposal's execution.

Next canonical action / resume condition: existing canonical owner obtains both contributions' exact source identities and selects or reconciles ONE repair before adoption, any source push, or successor CI. Contribution6368843134 is now fully identified as 18ff49a3342b65cc5d0a6219c1ae23926d9658c6, parent 5b9658ebb976d5eb789fefd5345f60cef7a4a21a, tree 753816ffafb945b4b287b24f5298d5f3362ebfd1, complete patch below with SHA-256 7c70cd886d7249cce9c525c81cfb351470bb8c939da98346b2ec2d4c95b364e9. The earlier description that this contribution lacks exact patch identity is superseded by its completed publication/readback. Contribution6369151465 identifies private head b61daf8de589fd725b276347c1fc39a1f1ec9abe and reports the same5b9658e base; its tree, patch bytes, executable identity and raw69950a6→b61daf8 red/green receipts are not available here. No byte or proof equivalence is assumed. Obtain that held material privately through its existing owning context, compare the exact changed-file blobs/behavior and any independently useful proof, and record the selected/reconciled source. Preserve the private publication hold and canonical author custody. This is an owner artifact/selection request, not a request for another implementation or build. After selection only, adopt through the canonical writer into this same PR; refresh affected exact-head review/native proof and actual GitHub main-composition evidence; reply/read back the reserve thread disposition and resolve only after the published repair is verified. Request the installed merge-ready qualification once only after normal Draft-to-Ready admission. Current required checks remain failed; no Ready, branch push, qualification or merge is claimed. Other #9895 sweep items and Perl work are outside this lane.

Final delivery observation, 2026-10-23 16:17 UTC: #9970 is still Draft, head 5b9658ebb976d5eb789fefd5345f60cef7a4a21a, merged=false; no canonical adoption or response after the private contribution was recorded. Current fetched main is d5a4942faaf272e41ac6f31dc3c0e8eab9836407. git merge-tree --write-tree <main> 18ff49a3342b65cc5d0a6219c1ae23926d9658c6 succeeds without conflicts, resulting tree 51364b50e733380bce1a2591addf859e569dd873. This is local composition identity, not a GitHub merge subject or native combined-tree pass. Main's MCP source/test/docs and validator source remain unchanged from the tested baseline, but Cargo.toml/Cargo.lock now add pulldown-cmark0.13.5/unicase2.10.0 and output paths changed. Preserve that changed dependency dimension for the selected successor's actual native/hosted proof. The remote PR merge ref was still old 0eb01ee…; it is not proof of current-main composition.

The explicit selection/adoption action is pending, not attempted or denied: obtain the private contribution's patch/bundle and raw receipts through its owning context, compare with the exact artifact below, and select/reconcile one repair through the canonical writer. Then refresh affected exact-successor proof/review, verify and disposition the actual repaired reserve thread, obtain required qualification once, and perform normal protected expected-head squash only when eligible; verify the actual landing on main. This proposal has not closed the canonical findings, and its completion is not adoption. No Ready transition, source push, successor CI request, merge, release, deployment, settings or access change occurred.

All owned native drivers are terminal. Main inspection worktree was removed after preserving reports. Clean /workspace/pr9970-proposal at18ff49a, warm /workspace/scratch/pr9970/target, exact witnesses and raw receipts are retained for the pending comparison/adoption proof; no consumer is active. Portable bundle proposal.bundle SHA-256 00a5a9219c1a66c7b35fb88a8c6804f6c658f4ac5cbfb2502b19ca4901776f31 verifies against the canonical5b9658e prerequisite. Complete local handoff: /workspace/scratch/pr9970/verification.json. Unlike the self-contained patch below, VM paths are locators and require this selected environment or an explicit artifact transfer before another environment can consume them.

Raw focused native stdout receipts (proposal18ff49a; Rust-only, not required qualification)

Commands: the actual Cargo-produced integration test artifact /workspace/scratch/pr9970/target/debug/deps/mcp_stdio-ee38f8060d84c280 --exact <named-test> --nocapture, each native exit0. Unit command is recorded above; native exit0.


running 1 test
empty-page control binary=/workspace/scratch/pr9970/target/debug/ripr sha256=f913e1224ba90b18cfcd885cada4c33bc0c657d142c3ddfb7500d28030b0abda
empty-page fixture_tree=4a29ac90ca6d3a4db4317738c9c8c1670b0452e7 server_pid=6868
empty file page raw=61666 structured=133514 bound=131072
raw reserve-only: shell=65025 final=65025 envelope=130232/130930 no-filter=1668
raw exact-ceiling: shell=65280 final=65280 envelope=130742/130930 no-filter=1668
raw metadata-exact-ceiling: shell=65261 final=65280 envelope=130742/130930 no-filter=1668
raw metadata-overflow: shell=65280 final=65281 envelope=130744/130930 no-filter=1668
raw wide-offset-overflow: shell=65262 final=65281 envelope=130744/130930 no-filter=1668
raw shell-overflow: shell=65281 final=65281 envelope=130744/130930 no-filter=1668
empty-page healthy recovery snapshot=snapshot:sha256:933153e594467557273af1f20999c45cfdb712860509d96fb89ef033099f5dd8 selected=1
empty-page server_pid=6868 exit=exit status: 0
test empty_gap_pages_keep_structured_outcomes_at_the_response_bound ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 41 filtered out; finished in 5.92s


running 1 test
test limit_errors_state_the_real_constraint_and_recovery_over_stdio ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 41 filtered out; finished in 0.14s
test mcp::server::tests::integer_argument_effective_bound_is_the_platform_cap_everywhere ... ok
test mcp::workspace::tests::list_gaps_overflow_recovery_names_the_shrinkable_cause ... ok
test result: ok. 212 passed; 0 failed; 0 ignored; 0 measured; 10783 filtered out; finished in 5.96s

Portable proposal (save the complete fenced contents as an .patch and apply through the canonical writer; the local commit need not be remotely reachable):

From 18ff49a3342b65cc5d0a6219c1ae23926d9658c6 Mon Sep 17 00:00:00 2001
From: Codex <codex@openai.com>
Date: Fri, 23 Oct 2026 15:59:19 +0000
Subject: [PATCH] fix(mcp): compose filter overflow recovery review repairs

Isolated proposal for adoption into #9970; canonical branch custody remains with its existing writer. Attribute raw-document overflow using the metadata reserve only after the actual document guard refuses. Correct the escaped-filter stdio oracle and add independently sized raw-boundary, reserve-only, snapshot/session and process-exit controls. Reconcile interop/spec prose and add the missing filter-only changelog entry; preserve #9945 parser bytes.
---
 .../9970-mcp-filter-overflow-recovery.md      |   4 +
 crates/ripr/src/mcp/workspace.rs              |   5 +-
 crates/ripr/tests/mcp_stdio.rs                | 154 +++++++++++++++++-
 docs/interop/mcp.md                           |   9 +-
 ...PEC-0211-mcp-workspace-session-evidence.md |  10 +-
 5 files changed, 171 insertions(+), 11 deletions(-)
 create mode 100644 changelog.d/9970-mcp-filter-overflow-recovery.md

diff --git a/changelog.d/9970-mcp-filter-overflow-recovery.md b/changelog.d/9970-mcp-filter-overflow-recovery.md
new file mode 100644
index 000000000..ed60ad257
--- /dev/null
+++ b/changelog.d/9970-mcp-filter-overflow-recovery.md
@@ -0,0 +1,4 @@
+<!-- section: Fixed -->
+- MCP `ripr_list_gaps` overflow recovery now names the echoed filter when
+  narrowing it can restore a fitting page, including overflow caused by
+  final page metadata at the document ceiling (#9970).
diff --git a/crates/ripr/src/mcp/workspace.rs b/crates/ripr/src/mcp/workspace.rs
index a3d7b2730..aa83e5490 100644
--- a/crates/ripr/src/mcp/workspace.rs
+++ b/crates/ripr/src/mcp/workspace.rs
@@ -725,7 +725,10 @@ impl WorkspaceSession {
                 }
             };
         let recovery_for_document = || -> &'static str {
-            if shell_bytes > super::MAX_TOOL_DOCUMENT_BYTES
+            // The final document guard already established overflow. Include
+            // the metadata reserve when attributing it: a zero-page shell
+            // can fit while the caller's final offset pushes it over.
+            if shell_bytes.saturating_add(reserve) > super::MAX_TOOL_DOCUMENT_BYTES
                 && shell_without_filter_bytes.saturating_add(reserve)
                     <= super::MAX_TOOL_DOCUMENT_BYTES
             {
diff --git a/crates/ripr/tests/mcp_stdio.rs b/crates/ripr/tests/mcp_stdio.rs
index d0d4ab94c..aa1b364ed 100644
--- a/crates/ripr/tests/mcp_stdio.rs
+++ b/crates/ripr/tests/mcp_stdio.rs
@@ -2358,6 +2358,13 @@ fn empty_gap_pages_keep_structured_outcomes_at_the_response_bound() -> Result<()
     );
     let mut session = SequentialStdio::spawn(&root)?;
     let discovery = session.call("empty-discover", "server/discover", json!({}), timeout)?;
+    let fixture_tree =
+        common::fixture_git::fixture_git_output(&root, &["rev-parse", "HEAD^{tree}"])?;
+    eprintln!(
+        "empty-page fixture_tree={} server_pid={}",
+        fixture_tree.trim(),
+        session.child.id()
+    );
     if discovery.get("result").is_none() {
         return Err("empty-page fixture failed discovery".into());
     }
@@ -2461,23 +2468,164 @@ fn empty_gap_pages_keep_structured_outcomes_at_the_response_bound() -> Result<()
                 .pointer("/result/structuredContent/failure/recovery")
                 .and_then(Value::as_str)
                 .ok_or("empty-page refusal omitted recovery")?;
-            if !recovery.contains("ripr://snapshot/{snapshot_id}")
-                || !recovery.contains("ripr_get_gap")
+            if !recovery.contains("echoed filter value")
+                || !recovery.contains("narrow the file/class/language filter")
+                || !recovery.contains("retry ripr_list_gaps")
+                || recovery.contains("ripr://snapshot")
                 || serde_json::to_vec(&refused)
                     .map_err(|error| error.to_string())?
                     .len()
                     > RESPONSE_BOUND
             {
                 return Err(format!(
-                    "empty {field} refusal lost its bounded identity recovery"
+                    "empty {field} refusal lost its bounded filter recovery: {recovery}"
+                ));
+            }
+        }
+    }
+    // Independently size ordinary ASCII echoes around the raw-document
+    // ceiling. These envelopes still fit, so a refusal reaches the raw
+    // document guard rather than the structured-envelope guard.
+    const DOCUMENT_BOUND: usize = RESPONSE_BOUND / 2 - 256;
+    let seed = session.call_tool("raw-seed", "ripr_list_gaps", json!({"file": "x"}), timeout)?;
+    let seed = structured_tool_success(&seed, "raw-boundary seed")?;
+    if seed["items"] != json!([])
+        || seed["filtered"] != 0
+        || seed["selected"] != all["selected"]
+        || seed["snapshot_id"] != snapshot_id
+    {
+        return Err("raw-boundary seed lost its nonempty selection or empty page".into());
+    }
+    let seed_bytes = serde_json::to_vec(&seed)
+        .map_err(|error| error.to_string())?
+        .len();
+    let offset_growth = usize::MAX.to_string().len() - 1;
+    for (label, shell_bytes, offset, must_refuse) in [
+        ("reserve-only", DOCUMENT_BOUND - 255, 0, false),
+        ("exact-ceiling", DOCUMENT_BOUND, 0, false),
+        (
+            "metadata-exact-ceiling",
+            DOCUMENT_BOUND - offset_growth,
+            usize::MAX,
+            false,
+        ),
+        ("metadata-overflow", DOCUMENT_BOUND, 10, true),
+        (
+            "wide-offset-overflow",
+            DOCUMENT_BOUND - offset_growth + 1,
+            usize::MAX,
+            true,
+        ),
+        ("shell-overflow", DOCUMENT_BOUND + 1, 0, true),
+    ] {
+        let filler_len = shell_bytes
+            .checked_sub(seed_bytes)
+            .and_then(|difference| difference.checked_add(1))
+            .ok_or("raw-boundary fixture shell already exceeds the target")?;
+        let filter = "x".repeat(filler_len);
+        let mut expected = seed.clone();
+        expected["filters"]["file"] = json!(filter);
+        expected["page"]["offset"] = json!(offset);
+        let text = serde_json::to_string(&expected).map_err(|error| error.to_string())?;
+        let final_bytes = text.len();
+        let envelope = json!({
+            "content": [{"type": "text", "text": text}],
+            "structuredContent": expected,
+            "isError": false,
+        });
+        let envelope_bytes = serde_json::to_vec(&envelope)
+            .map_err(|error| error.to_string())?
+            .len();
+        let id_bytes = serde_json::to_vec("raw-boundary")
+            .map_err(|error| error.to_string())?
+            .len();
+        let envelope_budget = RESPONSE_BOUND - 128 - id_bytes;
+        let mut without_filter = seed.clone();
+        without_filter["filters"]["file"] = Value::Null;
+        let without_filter_bytes = serde_json::to_vec(&without_filter)
+            .map_err(|error| error.to_string())?
+            .len();
+        if envelope_bytes > envelope_budget
+            || (final_bytes > DOCUMENT_BOUND) != must_refuse
+            || without_filter_bytes + 256 > DOCUMENT_BOUND
+        {
+            return Err(format!(
+                "{label} missed raw-only interval: shell={shell_bytes}, final={final_bytes}, envelope={envelope_bytes}/{envelope_budget}, no-filter={without_filter_bytes}"
+            ));
+        }
+        eprintln!(
+            "raw {label}: shell={shell_bytes} final={final_bytes} envelope={envelope_bytes}/{envelope_budget} no-filter={without_filter_bytes}"
+        );
+        let response = session.call_tool(
+            "raw-boundary",
+            "ripr_list_gaps",
+            json!({"file": filter, "offset": offset}),
+            timeout,
+        )?;
+        if serde_json::to_vec(&response)
+            .map_err(|error| error.to_string())?
+            .len()
+            > RESPONSE_BOUND
+        {
+            return Err(format!("{label} exceeded the wire bound"));
+        }
+        if must_refuse {
+            let failure = response
+                .pointer("/result/structuredContent/failure")
+                .ok_or_else(|| format!("{label} omitted typed refusal"))?;
+            let recovery = failure["recovery"]
+                .as_str()
+                .ok_or("raw-boundary refusal omitted recovery")?;
+            if response.get("error").is_some()
+                || response.pointer("/result/isError") != Some(&json!(true))
+                || response.pointer("/result/structuredContent/schema_version")
+                    != Some(&json!("ripr-mcp-gap-list-v3"))
+                || failure["code"] != "result_too_large"
+                || failure["data"]["current_snapshot_id"] != snapshot_id
+                || !failure["detail"]
+                    .as_str()
+                    .is_some_and(|detail| detail.contains("page ceiling"))
+                || !recovery.contains("echoed filter value")
+                || !recovery.contains("retry ripr_list_gaps")
+                || recovery.contains("ripr://snapshot")
+            {
+                return Err(format!(
+                    "{label} lost raw-document filter recovery: {failure}"
                 ));
             }
+        } else if structured_tool_success(&response, label)? != expected {
+            return Err(format!(
+                "{label} changed the independently sized fitting document"
+            ));
         }
     }
     let recovered = session.call_tool("empty-recovered", "ripr_list_gaps", json!({}), timeout)?;
     if structured_tool_success(&recovered, "same-session recovery")? != all {
         return Err("empty-page refusals changed the completed snapshot or selection".into());
     }
+    eprintln!(
+        "empty-page healthy recovery snapshot={snapshot_id} selected={}",
+        all["selected"]
+    );
+    session.stdin = None;
+    let deadline = Instant::now() + timeout;
+    let status = loop {
+        if let Some(status) = session
+            .child
+            .try_wait()
+            .map_err(|error| error.to_string())?
+        {
+            break status;
+        }
+        if Instant::now() >= deadline {
+            return Err("empty-page server did not exit after input closed".into());
+        }
+        std::thread::sleep(Duration::from_millis(10));
+    };
+    eprintln!("empty-page server_pid={} exit={status}", session.child.id());
+    if !status.success() {
+        return Err(format!("empty-page server exited unsuccessfully: {status}"));
+    }
     Ok(())
 }
 
diff --git a/docs/interop/mcp.md b/docs/interop/mcp.md
index e54c9726f..c663e4290 100644
--- a/docs/interop/mcp.md
+++ b/docs/interop/mcp.md
@@ -311,9 +311,12 @@ under the 128-KiB response bound, including empty pages whose echoed filters
 can overflow the structured envelope while the raw document still fits.
 Those pages return the existing typed `result_too_large` refusal with the
 current snapshot identity. Only a listing that cannot fit even one
-page — an omission disclosure alone over the ceiling — fails closed with
-`result_too_large` naming `ripr://snapshot/{snapshot_id}` as the identity
-route. Other tool responses carry the document once at full fidelity:
+page fails closed with `result_too_large`: when the echoed filter causes
+the overflow, including final page metadata crossing the document ceiling,
+the recovery says to narrow the filter and retry `ripr_list_gaps`. Other
+non-pageable overflows — for example an omission disclosure alone over the
+ceiling — name `ripr://snapshot/{snapshot_id}` as the identity route.
+Other tool responses carry the document once at full fidelity:
 `content[0].text` is the compact JSON serialization, and
 `structuredContent` repeats it in every successful response. Each tool
 advertises an `outputSchema`, so a success never ships without its
diff --git a/docs/specs/RIPR-SPEC-0211-mcp-workspace-session-evidence.md b/docs/specs/RIPR-SPEC-0211-mcp-workspace-session-evidence.md
index 747c71e40..09cc95921 100644
--- a/docs/specs/RIPR-SPEC-0211-mcp-workspace-session-evidence.md
+++ b/docs/specs/RIPR-SPEC-0211-mcp-workspace-session-evidence.md
@@ -206,8 +206,9 @@ official SDK transport:
   a refresh between pages fails closed with `stale_snapshot` instead of
   mixing snapshots. Only a listing that cannot fit even one page fails
   closed with `result_too_large`: when the echoed filter value itself is
-  what pushes the shell past the bound — the same shell with an empty
-  filter echo fits — the refusal names the filter as the shrinkable bound,
+  what pushes the page past the bound, including its final metadata — the
+  same shell with an empty filter echo fits — the refusal names the filter
+  as the shrinkable bound,
   because the snapshot identity route cannot fix a filter-driven overflow;
   for every other non-pageable disclosure (for example an omission
   disclosure alone over the ceiling) the refusal names
@@ -445,8 +446,9 @@ is not evidence that a resource with a particular identity exists.
 - `crates/ripr/tests/mcp_stdio.rs::empty_gap_pages_keep_structured_outcomes_at_the_response_bound`
   — real committed analysis with nonempty subjects before filtering, fitting
   empty pages, independently sized structured-envelope overflow below the
-  raw-document ceiling, raw-document overflow, the `file` and `language` filters,
-  typed refusals bound to the current snapshot, and same-session recovery.
+  raw-document ceiling, the `file` filter, raw-document metadata overflow,
+  reserve-only and exact-ceiling success controls, typed refusals bound to
+  the current snapshot, same-session recovery, and a clean server exit.
 - `crates/ripr/src/mcp/workspace.rs::tests::list_gaps_overflow_recovery_names_the_shrinkable_cause`
   — filter-driven shell overflow names the filter; shell-driven overflow
   keeps the snapshot identity route.
-- 
2.52.0

@EffortlessSteven
EffortlessSteven marked this pull request as draft October 23, 2026 15:48

Copy link
Copy Markdown
Member Author

Private contribution offered for canonical-owner selection: b61daf8de589fd725b276347c1fc39a1f1ec9abe (based on this PR’s unchanged 5b9658ebb976d5eb789fefd5345f60cef7a4a21a). Independent exact-head review found no blocking source, oracle or contract findings for private adoption. The five-file delta joins reserve-aware recovery attribution, the retained stdio expectation/controls, interop/spec wording and a changelog fragment. Actual-document refusal gating, page/envelope byte budgets and selection/credit authority remain unchanged.

Bounded evidence: the extended real-stdio test failed at the intended metadata-overflow assertion on test-only 69950a6 (native101), then passed on b61daf8 (native0; 1 passed/41 filtered), Linux/Rust1.95 with --no-default-features --features lang-rust. Green covers six raw-boundary controls, including reserve-only and exact-ceiling success, plus wire bounds, snapshot binding and same-session selection equality. This is focused proof, not full qualification or merge clearance; no successor hosted run was requested.

The isolated proposal in coordination6368843134 has the same stated repair intent but supplies no exact patch identity. Byte equivalence and conflicts remain unverified. Canonical custody stays with fix/mcp-gap-list-filter-recovery. Selection requested: identify that proposal’s exact base/head or patch, then select or reconcile one repair before any adoption or push. This contribution remains unpublished pending that selection.

…e refusal (#9895)

The discrimination in this slice names the shrinkable cause: when the
echoed filter value is what pushes the empty-page shell past the
structured-envelope bound, the refusal recovery must name the filter
and retrying ripr_list_gaps - not the snapshot identity route, which
the same echo would overflow again. The pre-existing stdio witness
still expected the historical identity-route recovery for that exact
stimulus; align it (and the spec test mapping) with the unit-pinned
rule.
…rflow attribution (#9895)

recovery_for_document compared the raw shell against the ceiling while
the page budget and the rendered document both carry the reserve: a
shell that fits raw but overflows once the echoed window gains a digit
was attributed to the snapshot identity route even though dropping the
echo leaves a fitting shell. Charge the reserve on the overflow side
(exact-head review, empirically confirmed with a real binary) and pin
the boundary with a unit test: the edge echo refuses at offset ten with
the filter-named recovery, and the reserve-only control (shell within
255 bytes of the ceiling, widest window echo) still ships.
@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 23, 2026 17:16
@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

Copy link
Copy Markdown
Member Author

Canonical-successor follow-through at 17edddf: the stdio assertion and reserve attribution repairs are now present, but the interop documentation finding from review 6365864695 remains in docs/interop/mcp.md lines 313–316. That text still describes omission-only overflow and snapshot identity rather than the filter-driven exception/recovery.

Please finish this already-diagnosed documentation correction in the existing candidate and record which proposed repairs were adopted or superseded. The current canonical patch is not either complete five-file proposal (18ff49a or b61daf8), so their native receipts must retain their original source identities. Reuse the genuine stdio controls on the actual adopted raw-document boundary, then refresh affected exact-head review and required qualification. No new parallel writer, build or CI request was started by this audit. Source fixes are acknowledged; complete repair/merge clearance is not yet established.

@github-actions github-actions 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.

Decision

  • Needs verification checks before upstream.

Verification questions

  • Confirm the stdio oracle verifies the filter recovery and bounded refusal, but not the retained identity-route fallback or the raw-document branch.
  • Confirm the specification maps only the primary unit oracle and omits the added reserve-boundary unit from its listed evidence.
  • Confirm the raw-document recovery closure charges the reserve consistently with page-budget arithmetic, but its final rendered-document refusal can occur after the envelope probe has already accepted the shell.

Refuted

  • The filterless counterfactual probe could extend or alias the borrowed filter beyond its valid scope and create a native lifetime violation.; refuted because: The probe replaces the filter with GapListFilter::default() and immediately constructs an owned GapListScope; no reference to the original filter is stored, and no unsafe code is involved.
  • The new attribution could reuse a stale shell length after the active response view changes.; refuted because: No shared mutable buffer or typed-array view exists in the changed Rust path; each relevant shell is rendered and measured into an owned byte count before the decision.
  • The new empty-filter counterfactual could race with, detach from, or be invalidated by the original filter before attribution.; refuted because: No worker handoff, async await, callback, FFI, GC handle, or transfer operation occurs between borrowing the filter and serializing the probe documents; both probes use the same synchronous session state and scope lifetime.
  • The change needs a broader architectural refactor or unrelated changes to remain correct.; refuted because: The diff confines behavior to two list_gaps refusal branches, adds two named recovery constants, and updates focused unit, stdio, spec, and traceability surfaces. The complete patch shown also includes the previously required stdio oracle and reserve-aware fix.

Evidence gaps

  • Full native compilation and test execution remain pending because the ripr sensor failed and cargo-test is scheduled late.
  • Model proof intent was rejected by deterministic validation.
  • The PR body claims both structured-envelope and raw-document paths are fixed, but the spec mapping names only the newer unit test and does not explicitly document the reserve-aware document-boundary control.

@EffortlessSteven

Copy link
Copy Markdown
Member Author

Terminal successor qualification finding, canonical head17edddf0a9f17454f4841ee0ef248110d72688a3; existing writer retains repair custody. Required39997538215 producer120565282928 and Result120571253285 are FAILURE. Actual producer checkoutd0e46a77a379b75921413ff6b6edb1c59ee8b4ef merges this head into3d9ce73d181087e99637e7da519e8b01468dca78.

Strict workspace Clippy exited101 before required Rust tests: crates/ripr/src/mcp/workspace.rs:2773, new boundary-test binary search let mid = (low + high + 1) / 2; triggers manual_div_ceil under -D warnings. The compiler suggests (low + high).div_ceil(2). Source comparison confirms this line is in the successor contribution. Do not add a lint allowance or weaken the boundary oracle; preserve its upper-midpoint/search progress and all success/refusal controls with the normal idiomatic arithmetic repair. Later tests/doctests/goldens/fixtures/corpora/PR-evidence/schema are not established by this failed run.

This is additional to already-recorded interop-doc correction6370689737 and adopted-source proof/proposal disposition. Join those repairs in the existing candidate, then affected exact-head review and normal successor qualification. No unchanged rerun, competing source patch/build, duplicate qualification or ownership transfer was initiated here. The proposal-native receipts keep their original subjects; they are not this failed successor's workspace proof.

)

Clippy's manual_div_ceil lint (denied via -D warnings) rejects the
hand-rolled (low + high + 1) / 2 midpoint in the document-branch
reserve-attribution test helper.

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Exact-current-head review: REPAIR_REQUIRED for documentation; required qualification remains active.

The one-line Clippy repair is adopted in a746745 (tree55bea9fa44ee2817cf19193d5af6eb0bea2b825e). Its complete delta from17edddf is the unit's (low + high).div_ceil(2). No production-code/budget/parser change or weakened lint/oracle was introduced.

The already-recorded blocking contract finding in handoff6370689737 is still present: docs/interop/mcp.md313–316 remains omission-only and unconditionally names snapshot identity, despite the served filter recovery. This head changes no documentation. The spec also still omits the reserve unit and overstates this stdio test's language/raw-branch coverage; the existing continuation contains the precise bounded correction and changelog disposition. Please finish the documentation through the existing writer before treating this PR as merge-ready. Do not apply the whole b159c34 patch again: its midpoint is already adopted. The original docs-only c3337635 patch applies cleanly to a746745 and reconstructs tree1cbfb5fdfef468e71107af7c15653f351a1b69d2.

Observed proof and applicability: clean current-main d84b8be strict impacted-package/all-target Clippy passed0, establishing the17edddf lint as candidate-introduced. Isolated b159c34 passed the same strict Clippy0, changed-file Rustfmt0 and the actual reserve unit1/10,995 filtered. All Rust sources/build manifests/configs are byte-identical between b159c34 and canonical a746745; the difference is only the four documentation/traceability/changelog files above. These are b159c34 executions with explicit unaffected-scope applicability, not relabeled a746745 executions.

Fresh genuine stdio execution was separately bound to canonical17edddf producer SHA256e255ba3d8a4a2514ecb83b8c9fac39f8dd33eab8855b33d6bd27539dd68c5167, with inspected immutable external client26e42063 (source18ff49a, client role only). All six independently sized raw-boundary controls and same-session healthy recovery passed; serverPID17012 exited0/reaped. A newly executed old-main97df producer negative control (SHA256711e08d1) failed101 at the intended obsolete identity hint, after which the canonical17edddf producer was restored and rehashed. No18ff49a result is transferred to a different canonical patch. The17edddf→a746745 delta is confined to cfg(test) midpoint arithmetic; no changed production runtime dimension was identified.

Preserve active required40003373337/producer120585390535 and companionCI40003372927; no cancellation, Draft toggle, label reapplication, source push or new qualification was performed. Inspect their actual checkout/parents, terminal stages and complete denominators before final review. No canonical documentation adoption, full successor qualification, current-main native pass or merge is claimed. Current source author retains repair custody; reviewed normal merge is authorized only after documentation disposition, current-head review and required checks.

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

New executable review finding on current head a746745: REPAIR_REQUIRED — final page metadata can also cross the id-aware structured-envelope bound, leaving the wrong snapshot-route recovery.

At crates/ripr/src/mcp/workspace.rs:708–728, recovery_for_envelope still attributes using the zero-page shell. structured_fit later measures the requested page window. A valid large request ID makes this boundary reachable below the raw-document ceiling. The reserve fix in17edddf repairs the raw-document branch only.

Fresh real-stdio experiment (18:59:11 UTC), same committed B4 fixture tree4a29ac90ca6d3a4db4317738c9c8c1670b0452e7, one selected subject, producerPID20441, current snapshot933153e594467557273af1f20999c45cfdb712860509d96fb89ef033099f5dd8:

  • ASCII ID length16,000, serialized16,002 (<16,384 admission ceiling): id-aware budget114,942.
  • ASCII file filter length55,714, offset0: raw57,380, structured envelope114,942; actual success, reply131,001 bytes.
  • SAME ID/filter, offset10: raw57,381 (<65,280), structured114,944; typed result_too_large returns read identities through ripr://snapshot/{snapshot_id} ..., the wrong hint. Offset9,999,999 reproduces it (structured114,954).
  • Paired filterless disclosures at those requested windows would fit:3,518/3,528 bytes. Actually narrowing the filter to "x" at offset10 succeeds in the SAME server/snapshot. A following unfiltered listing exactly matches the initial nonempty listing.
  • All replies id-correlated, bounded and schema-checked; producer exited0/reaped; fixture removed. The client exited2 specifically for the two wrong-recovery controls, not a transport failure.

Execution identity stays 17edddf, immutable producer SHA256e255ba3d8a4a2514ecb83b8c9fac39f8dd33eab8855b33d6bd27539dd68c5167. This is a new execution, not transferred18ff49a proof. Source comparison shows a746745's sole delta is cfg(test) midpoint arithmetic; the affected production closure is byte-identical. The old proof is not mislabeled as an a746745 executable.

Existing author retains custody. Please repair the envelope attribution using paired with/without-filter MINIMUM pages rendered with the SAME requested final page fields, preserving filtered counts and the identity fallback for a non-fitting item/disclosure. Simply removing shell_envelope_overflows would misattribute first-item overflow. I am preparing an isolated owner-readable contribution for this newly proven gap, joined with the pending documentation correction; no canonical branch push, CI rerun or build duplication is authorized by this review. Preserve active required40003373337/producer120585390535. Even a successful existing run cannot close this untested boundary.

@EffortlessSteven

EffortlessSteven commented Oct 23, 2026 •

Copy link
Copy Markdown
Member Author

Post-merge reconciliation — implementation landed, acceptance remains unresolved. Existing owner merged unchangeda746745cddb9ea9d854a7c9c09b4cb63a14c017b at19:44:16UTC asabc13531e4ffdf837b5f54d99c19ee0a9c972c23. Retained integration lead did not merge it. Fetched main4607426e5b5f5ab288d501b52751bc49d24bbe4c contains the squash. Actual parent409081896131b596643a11a795acbecab8c0270b +candidate composes to landed tree71d2187443c59cc6b164e06a9808c6be19911005. This verifies landing/composition, not closure of the blocking reviews.

Two outstanding findings are preserved:

  1. Docs-only c3337635 remains unadopted on inspected main. docs/interop/mcp.md313–316 still describes omission-only overflow and snapshot recovery; review5632881552's doc/spec/mapping limitations are not marked satisfied.
  2. Later executable review fix(mcp): name the filter, not the snapshot route, for a filter-driven gap-list overflow (#9895) #9970 (review) establishes the final-window structured-envelope attribution gap. With valid serialized requestID16,002bytes, the same55,714byte file filter ships offset0 at envelope114,942, then offset10 crosses to114,944 while raw57,381 remains below65,280; refusal incorrectly names snapshot identities although the filterless requested window fits and narrowing the filter succeeds in the same snapshot. This is the reviewer's genuine canonical17edddf execution with explicit byte-identical production applicability to a746745, not a new main-runtime test by this lead. Current-main workspace.rs blob63103f06eb5fb6c8c3c9f4915e7a837cf80ff8e2 is byte-identical to a746745, so no source repair is present there.

Review5633165539 says an isolated owner-readable contribution is being prepared for the envelope gap joined with docs. Bounded open follow-up PR lookup naming9970 found none. Existing semantic/source custody remains; no takeover or third patch is created. Next accepted-owner step is consume/select that retained contribution and publish a bounded follow-up against actual main, preserving requested-window counterfactuals, non-fitting-item/disclosure identity fallback and original byte/selection controls, then exact-source independent review and normal admitted proof/qualification. A new source-bound follow-up is needed; do not replay the whole obsolete proposal, retry unchanged qualification, weaken bounds or auto-revert.

Original green qualification below retains its actual executed subject and does not disprove this untested boundary. No later owner review disposition resolves either finding in the inspected records. No source edit, CI request, revert, access change, release or deployment was made by this reconciliation.


Historical pre-merge terminal receipt (its open/Ready wording records that earlier observation):

Terminal current-head qualification receipt; REPAIR_REQUIRED for documentation remains. Canonical head stilla746745cddb9ea9d854a7c9c09b4cb63a14c017b, open/Ready/unmerged; existing source writer retains custody. This green result does not adopt docs-only c3337635 or grant merge clearance.

Required40003373337 producer120585390535 and Result120611128858 completed SUCCESS; Result app15368 binds exact head. Direct logs plus Git object verify physical checkout83ed8910e0252d4f4285e45ea410fc0df9e61676, tree0300ad5ef4559cf00955c239836eb694d32d0a9f, ordered parentsf63a722a243bcd9574288ccf28ba1ec63f41d549 +candidate.20,252nextest passed/5skipped; doctests2passed/1ignored; strictClippy, policy, goldens, fixture contracts, all4corpora,PR evidence and Schema sweep passed. Schema names the same merge, rows digest8ac8aa8a70df72736f7b64dcf9c4b6e729a4482d4735c65d50902db23520edda. Scratch/optional advisory operations skipped, not additional passes.

Named discriminators actually PASS in this run: list_gaps_overflow_recovery_names_the_shrinkable_cause; document_branch_attribution_charges_the_page_metadata_reserve; empty_gap_pages_keep_structured_outcomes_at_the_response_bound. The canonical runtime-proof uncertainty is separately resolved by exact-current review5632881552 and its genuine canonical17edddf six-control execution/old-main negative with explicit production applicability to a746745. Those original focused proof subjects are preserved; no obsolete adopted-source runtime gap is repeated here.

Remaining blocker: interop/spec/test-mapping/traceability/changelog correction documented in5632881552 is unadopted. Existing docs-only c3337635 applies to this head; do not replay the already-adopted midpoint repair or overwrite production. Canonical writer must adopt/disposition that narrow documentation repair, then refresh affected exact-head review and normal successor gates. This receipt does not claim latest-main composition execution, final integration approval, native32-bit behavior or acceptance of a future head. No unchanged rerun, new CI/build, source push, custody transfer, denied-artifact read, release/deploy/access change or merge was initiated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant