Skip to content

feat(evidence): paginate retained evidence discovery summaries - #9084

Merged
N0zoM1z0 merged 15 commits into
morluto:mainfrom
Afloat16:feat/evidence-summary-pagination
Nov 22, 2026
Merged

N0zoM1z0 merged 15 commits into
morluto:mainfrom
Afloat16:feat/evidence-summary-pagination

Conversation

@Afloat16

@Afloat16 Afloat16 commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Let callers page the metadata returned by get_evidence_bundle and inspect-evidence-bundle with detail: "summary". Previously that projection returned every matching row and rejected pagination. Once the summary exceeded the MCP response budget, even identifying the next Evidence ID could require exporting the whole bundle. Selecting full records did not solve the problem for large payloads.

Behavior and compatibility

  • Supplying offset or limit enables paging. Offsets default to 0 and page size to 64. Apply the existing exact filters first and return rows in canonical Evidence ID order. Follow page.next_offset until it is null against an unchanged session or file.
  • With neither parameter the existing full summary and output shape are preserved, with no page member. Complete bundle, record and link delivery keep their existing semantics.
  • matching_records, direct_links and missing_direct_links still cover all matches. Bundle totals and unknown-revision counts keep their original scope. Metadata projection is limited to selected rows except where a procedure filter requires it; computing global counts still scans the matches.
  • An oversized summary response now recommends retrying at the same offset with a smaller limit. If one metadata row cannot fit, export is still the recovery path. The portable CLI continues to validate the full bundle before selecting a page.

Regression evidence

The MCP regression uses 96 retained records and a 16 KiB response budget. Before the change the full summary and one complete record exceeded the budget, and a request for seven summary rows was rejected. The test now follows seven-row pages and recovers all 96 IDs exactly once. It checks actual serialized delivery size, advertised schemas, filtered totals and recovery for a single oversized metadata row.

The compiled public CLI regression exercises the same selection from a portable bundle, checks two page offsets and verifies that unpaged summary, complete-record selection and the canonical bundle still work.

Current integration and validation (2026-11-19)

Head 0f1be10e03 integrates main 56d31bc7a. The merge keeps main's typed error projection with summary pagination as the recovery operation, and replaces inherited fixture repairs with the current upstream fixtures. Process capture now preserves the workflow's own terminal cleanup notification; the obsolete extra-completion assertions are gone.

Using Node 24.22.1 / npm 11.16.0, the standard runtime/skill build, npm run check:fast, npm run docs:check (including 8 README consistency tests), changed-file formatting, and git diff --check passed. The six focused suites completed with 77 passed and 2 environment-blocked failures: all 41 MCP tests, all 7 process-progress tests, and 29 CLI tests passed.

The two remaining CLI HAR cases fail because this sandbox lacks /tmp/. and the POSIX CLI fixture intentionally does not inherit TMPDIR. The private-directory owner, HAR decoder, and CLI environment fixture are byte-identical to main. A sanitized child process running that unchanged owner reproduced the same ENOENT; selecting an existing temporary parent allowed creation and cleanup. No temporary-directory or permission workaround is included in this PR. CI for this head provides the standard-host check.

Dependencies were installed from the lockfile with npm ci --ignore-scripts, followed by the repository prepare script, because the optional Frida native download was unavailable. Frida runtime behavior and the full repository gate were not tested here.

Earlier integration and review evidence

The final documentation follow-up addresses the canonical-owner review: the CLI guide keeps its paging example and links to the existing retained Evidence contract for defaults, continuation, ordering and counts. It changes one paragraph in one Markdown file; all 60 code blocks, runtime sources and tests are unchanged from c317bff2eb. The target file and unique existing anchor were checked. The local documentation build was not rerun; the new upstream Documentation job has passed on fd048391ec. The original documentation review thread is now marked resolved by the reviewer.

Current head: fd048391ec. It includes the accepted upstream subject-test repair #11650 and the accepted reverse-tools selector repair #11686 at 4c8e616029, preserving the upstream commits and their original authorship. The latter repair follows the shared CLI registration introduced by #11680. Comparing the previous executed merge against its base and the new merge against 4c8e616029 confirms the same 22-file PR delta, including identical file contents and patches; the final follow-up adds only the two fixture adjustments described below.

Six shared test/verifier compatibility repairs in e2315ffafb are also included in #9279. They align existing checks with upstream contract migrations: explicit unknown subject identity, partial-error cleanup delivery, the isolated release controller's package imports, the replay-card Evidence ID, the supported Kimi schema profile, and the CLI/MCP capture issue-field names. The underlying feature patch is unchanged. For the replay-card golden, the captured 14,421-byte HTTP response contains 19 tool descriptions; replacing only the 19 migrated Evidence IDs reconstructs the previous 825703b02f48… checksum exactly, attributing the new c303f523221a… checksum to upstream 1f24b3fa.

Validation of previous head 1e9e70d81f passed with the repository's Node 24.22.1 / npm 11.16.0 toolchain and locked dependency installation:

  • npm run check:fast: typecheck, lint, and architecture guards passed.
  • Formatting for all 20 changed files and git diff --check passed.
  • The standard test:focused wrapper built the runtime prerequisites and completed 191 passed, 10 platform-specific skipped, across 14 test files. This includes all original 91 pagination/CLI/MCP tests, the 21 repaired subject/kernel-config tests, and the shared boundary regressions, including all seven environment-serving tests.
  • The run verified both the unchanged feature patch and the exact shared repair blobs, and confirmed that source files remained unchanged after validation. Its validation workflow is outside this PR.

The failures were checked against their executed baselines before being repaired. The source-test control reproduced 9 failed / 12 passed at the previous CI merge checkout and then passed all 21 with #11650. The MCP boundary control reproduced both failures on unmodified upstream 9ecfb109e8, then passed the repaired and neighboring cleanup suites. The release-controller control retains the missing-runtime, catalog-drift, and wrong-version rejection checks.

The real capture verifier used checksum-pinned mitmproxy 12.2.3: the original verifier failed at case 122 on the CLI field-name assertion; the repaired verifier passed all 148 public CLI/MCP cases, including cleanup-lineage checks. The focused Windows profile proof passed, detected an injected duplicate uppercase environment key, and passed again after restoration.

The full upstream run for previous head 1e9e70d81f executed merge 6ef512b against base 858ff73880. Source tests, build, static checks and the web-network verifier passed. Built shard 11 found an outdated assertion in the DOL snapshot/reopen test: upstream #11551 changed persisted snapshot targets to { kind, identity }, while this test still expected the format, architecture and entry point at the top level. The test and relevant snapshot/target-identity implementation are identical in the executed upstream base.

Two test-only follow-ups now cover the shared integration failures. The DOL assertion follows identity and identity.selection while retaining the exact PowerPC format and entry point, snapshot replay, artifact manifest and single provider-call checks. The Kuna retry test observes the already-invoked session.close result, preserving its typed error, recovery, repeated-retry, cleanup-state and target-byte assertions; it makes no extra close call. That stale observation was exposed in #9279's full upstream run after #11647 moved close errors to the shared handler. The pagination feature and the six shared repairs above remain unchanged.

The shared fixture control passed on two explicit revisions: #9279's corrected head e129b96ec7 and its corrected executed merge 01faf16ff6. On the original head source, the stale DOL assertion reproduced 1 failed / 2 passed; on the actual merge source, the stale DOL and Kuna observations reproduced 2 failed / 1 passed. Each corrected revision then passed all 22 tests across six files, including the original 12 configuration-printer cases. Removing the production cleanup-retry offer made the Kuna assertion fail; restoring it passed. Both jobs also passed check:fast, formatting of the two changed tests and the final unchanged-source check. These are shared fixture controls on the named revisions; they are not a full run of this PR's pagination suite. This PR includes the identical corrected test blobs.

The subsequent upstream run for 0d134c24c0 executed merge 74f09ae63a against f14e9a1d28. Its reverse-tools and portable lanes exposed a selector that still expected the old CLI registration shape. This head adopts the maintainer's accepted #11686 fix instead of carrying a separate selector implementation.

Two additional test-only adjustments follow the shared owners already present in that executed base: the CLI schema fixture reuses the core registrar for decompile-all, and the process-progress fixture distinguishes the shared outer start/completion messages from provider progress. The latter still requires an actual cleanup notification, the cleaned owned-process group, the correct exit/timeout disposition, bounded progress, cancellation cleanup and the existing evidence assertions.

Validation of runtime source at c317bff2eb passed using Node 24.22.1, the repository's npm 11.16.0 and locked dependencies:

  • Restoring the original two fixtures on the accepted source reproduced 19 failed / 5 passed: 17 duplicate-registration cases and the two stale final-message expectations.
  • The corrected fixtures, both existing Stryker configuration consumers and the compiled CLI regression passed 61 tests across five files, with no skips. This includes all 32 current CLI analysis-view cases.
  • Suppressing only the provider's cleanup notification, while retaining the real cleanup and the shared outer completion message, made both selected progress cases fail on the cleanup assertion. Restoring the unchanged production source made both pass again.
  • Both canonical Stryker configurations completed their real --dryRunOnly preflights. The main configuration's initial run passed 849 tests; the exhaustive-semantics command runner also completed successfully. These are preflight results, not a completed mutation score.
  • npm run check:fast passed typecheck, lint and architecture guards across 2,809 source files. Formatting of the two changed fixtures and the final exact tracked-source restoration checks passed. The validation workflow remains outside this PR.

The full upstream run on c317bff2eb has passed all 12 portable shards, Portable tests, reverse-tools quality, source/static checks, the package build, documentation and the three native package baselines. The Windows capability/package lane was still running when the documentation-only follow-up was published. On fd048391ec, the refreshed upstream run has completed successfully on this exact head. All 12 test shards, Portable tests, documentation, source/static checks, the package build, reverse-tools quality, the Windows capability/package lane and all three native package baselines passed. Windows capability/package verification completed at 05:11:54 UTC on 2026-11-16, and the final CI required gate passed at 05:13:57 UTC. The latest PR title, author-declaration and PR readiness checks also passed. The 61-test control above covers the byte-identical runtime/test sources at c317bff2eb; the earlier 191-test and shared 22-test results apply to their explicitly named revisions.

Earlier validation

Integrated current main bbe2bcc979be747698d9ad9ce87af017b92e0f10 in 3a9a9cde74d206ebc4db36c0854ad7b3af0b9313. The merge retains the upstream private limitation constants and advertised MCP tool-contract validation while preserving the summary-pagination behavior and regressions.

Fresh local validation used Node 24.22.1 and npm 11.16.0:

  • npm run test:focused -- tests/boundary/mcp/evidenceRecordSelectionMcp.test.ts: 10 passed.
  • npm run test:focused -- tests/boundary/mcp/evidenceLinkInspectionMcp.test.ts: 7 passed.
  • npm run test:focused -- tests/boundary/mcp/largeToolResult.test.ts: 8 passed.
  • npm run test:focused -- tests/boundary/cli/analysisViewCli.test.ts: all 31 passed against the compiled public CLI.
  • npm run docs:check: passed through the standard wrapper, including all 9 README conformance tests.
  • The npm run check build/metadata, typecheck, formatting, ordinary lint, Knip, architecture guards and production-reachability stages passed. Ordinary lint reported 0 errors and 3,834 warnings.
  • git diff --check passed. The published Git tree matches the independently inspected local tree exactly.

Validation gaps: the full npm run check invocation did not finish successfully because its final typed-lint tsgolint child was terminated by SIGKILL. A standalone retry using the documented GOMAXPROCS=1 GOMEMLIMIT=512MiB npm run lint:typed controls was also terminated by SIGKILL; typed lint is not counted as passed. The initial combined three-file MCP invocation exited before all files reported results; the three separate successful runs above provide the completed MCP results.

CI for this exact integration commit completed successfully. The upstream title and author-declaration checks, static checks, package build, documentation, source and boundary tests, and native compatibility jobs passed. This hosted result is separate from the local typed-lint limitation recorded above.

Author readiness

Human owner: @Afloat16

  • I reviewed the final diff and relevant existing code, understand the change and its edge cases, and take responsibility for the complete PR, including AI-assisted work.
  • I checked the evidence above, confirmed it supports the current change, and recorded meaningful validation gaps.
  • I declare this PR ready for initial maintainer review.

Let callers page summary metadata in canonical Evidence ID order without loading record payloads into the response. Keep filter and link totals global to all matches and preserve the unpaged response for existing clients.
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ⚠️ Failed 2026-11-06T03:13:00.314795Z
We couldn’t complete this review. Comment @codex review to try again.
6a10f54 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@greptile-apps

greptile-apps Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5 Tier: plus

[Medium impact] The PR appears safe to merge; no blocking issue was found.

Summary

Adds optional metadata paging to get_evidence_bundle and inspect-evidence-bundle.

  • Evidence summaries can now be read a page at a time.

No new correctness or security issues were found. Source paths were checked and git diff --check passed; tests were not rerun. Remote supersession status could not be confirmed because GitHub access was unavailable.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart TD
  MCP[MCP session records] --> Inspect[Shared bundle inspection]
  CLI[CLI bundle file] --> Authenticate[Authenticate complete bundle]
  Authenticate --> Inspect
  Inspect --> Filter[Apply exact filters in Evidence ID order]
  Filter --> Count[Count all matches and direct links]
  Count --> Select[Select requested metadata rows]
  Select --> Page[Return rows and optional page continuation]
  Page --> Budget{MCP response fits?}
  Budget -->|Yes| Deliver[Deliver response]
  Budget -->|No| Recovery[Recommend smaller page or export]
Loading

Reviews (10) · Last reviewed commit: "chore: integrate main with evidence summ..." · Reviewed by Greptile

Afloat16 commented Nov 6, 2026

Copy link
Copy Markdown
Contributor Author

The failed Linux shard (4/8) reports one failing test: sweeps detached run-token descendants and preserves a pre-existing unrelated process (tests/boundary/process/ownedCommand.test.ts:522). collectOwnedCommand reported incomplete process cleanup; the portable-tests and required-CI failures are the downstream summaries. The other 2,343 tests in that shard passed.

The same named test passed on the exact base revision. Both the test and src/process/OwnedCommand.ts are byte-for-byte unchanged in this PR. Could a maintainer re-run the failed jobs in run 42155161953 to see whether the cleanup failure reproduces on 6a10f54?

@CassieFox23

CassieFox23 commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

TL;DR: I ran the 4 changed test files from this PR on Node 22.23.4, 24.22.1 and 26.12.1. All 56 tests passed on each version. With 7 source files put back to the merge base f912a68, 7 tests failed on each version.

Edit (20 Nov): I ran the new head, 0f1be10, in a VM, and the results are here.

Findings

The PR changes 13 files against the merge base: 4 test files and 9 others.

Check Node 22.23.4 Node 24.22.1 Node 26.12.1
Head 9449d7b, 4 changed test files pass: 4/4 files, 56/56 tests pass: 4/4 files, 56/56 tests pass: 4/4 files, 56/56 tests
Red run: same head and tests, 7 source files from f912a68 fail: 4/4 files, 7 failed, 49 passed fail: 4/4 files, 7 failed, 49 passed fail: 4/4 files, 7 failed, 49 passed

The red run fails the same 7 tests on all three Node versions. I read the names from the Node 24.22.1 log:

  • discovers native records from a complete portable bundle using the shared workflow in tests/boundary/cli/analysisViewCli.test.ts
  • refuses link selections outside link delivery and names a smaller page in tests/boundary/mcp/evidenceLinkInspectionMcp.test.ts
  • keeps export recovery when a single metadata row exceeds the response budget in tests/boundary/mcp/evidenceRecordSelectionMcp.test.ts
  • pages filtered metadata without changing summary totals or the unpaged result (compact) in tests/boundary/mcp/evidenceRecordSelectionMcp.test.ts
  • pages filtered metadata without changing summary totals or the unpaged result (full) in tests/boundary/mcp/evidenceRecordSelectionMcp.test.ts
  • pages metadata discovery when complete records and the full summary exceed the response budget in tests/boundary/mcp/evidenceRecordSelectionMcp.test.ts
  • MCP response budget recovery > offers metadata pagination and export when the evidence summary exceeds the budget in tests/boundary/mcp/largeToolResult.test.ts

I read CI on head 9449d7b live with gh. The PR is mergeable true, state clean, not a draft.

  • Workflow runs: CI is completed/success, PR readiness is completed/success, and PR title is completed/success. CodeQL production is completed/skipped.
  • 29 check runs are success. They include CI required, Source tests, Static checks, Portable tests, Documentation, and Test shard (1/8) through Test shard (8/8).
  • 19 check runs are skipped, including Deep static checks and website.
  • The PR readiness commit status is success.

The head is 48 commits behind main c78c8ae.

Not run

  • A probe that loads an unsorted file bundle through the CLI and checks record order in evidenceRecordSummary.ts.
  • A merge with current main, c78c8ae.
Test setup
  • Box: Fedora 44 VM (4 vCPUs, 8 GB) on my Nobara 44 PC, Linux 7.2.11
  • Node: 22.23.4, 24.22.1, 26.12.1
  • Head / base: 9449d7b / f912a68 (merge base with main)
  • Red run: 9449d7b with the changed source files from f912a68
  • Install: npm ci --offline and npm run test:prepare on Node 24.22.1
Commands
npm ci --offline
npm run test:prepare
xvfb-run -a npm run test:focused -- tests/boundary/cli/analysisViewCli.test.ts tests/boundary/mcp/evidenceLinkInspectionMcp.test.ts tests/boundary/mcp/evidenceRecordSelectionMcp.test.ts tests/boundary/mcp/largeToolResult.test.ts

🤖 Written and tested with Claude Code (Sonnet 5.5, verified by Opus 5.5), posted with my OK 🦊

Merge main a8527d4 and resolve the tool-description conflict by retaining the current concise contract while documenting optional metadata pagination, canonical order and whole-selection counts.

Validation: all 30 selected domain and real MCP tests pass on Node 24.22.1 with repository-locked dependencies and the repository Vitest configuration. Coverage includes full and compact summary pages, retained record identities, link counts and paging, and large-response recovery. git diff --check passes. Full repository CI remains pending.

Afloat16 commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor Author

Merged main at a8527d43 into this branch in 28f2d617 and resolved the get_evidence_bundle description conflict. The contract retains the current complete/records/links behavior and documents optional summary pagination, canonical Evidence ID order, page.next_offset, and counts over every filtered match. Omitting both pagination fields continues to return every matching metadata row.

Validation on the published tree: all 30 tests across evidenceRecordSummary.test.ts, evidenceRecordSelectionMcp.test.ts, evidenceLinkInspectionMcp.test.ts and largeToolResult.test.ts passed on Node 24.22.1 using the locked dependencies and repository Vitest configuration. This includes the real full and compact MCP paths, unchanged summary/link totals across pages, retained record identities, stable link paging, and oversized-response recovery. git diff --check passed.

The branch includes main at a8527d43 and remains conflict-free. Repository CI has now passed on 28f2d617, including all eight test shards, source tests, static checks and the required CI gate. The author declaration now matches the repository template, and PR readiness has passed on this head. Ready for maintainer review.

Copy link
Copy Markdown
Contributor Author

Updated to 604905ac3d with the main integration conflicts resolved. The CLI retains its current input-schema wrapper, tool-effect metadata is preserved, and summary pagination now participates in the typed MCP recovery contract (next_operation: get_evidence_bundle) while keeping the upstream mutation, continuation, retained-Evidence, and unknown-page recovery routes. I also adapted the regression to the compact schema profile after upstream removed full, and documented the pagination request default for the architecture guard.

The exact-source validation run passed: locked npm ci, complete check:fast, changed-file formatting, and 91 tests through the standard focused wrapper, including 32 compiled public CLI tests, real MCP pagination/oversized-result tests, typed recovery, and unknown/mutation recovery. The validation workflow stays on its separate branch; the PR contains the tested source only.

This head also merges cleanly with main 465796af0f. The required upstream CI run is queued for the updated head.

Keep the production changes from upstream and update the verification consumers that still asserted their retired contracts:

- assert unknown workflow identity structurally and retain the bounded provider caveats;
- observe the process capture's partial-error delivery while preserving live cleanup ownership assertions;
- use the package's declared imports in the isolated release controller;
- refresh the replay card digest after the Evidence subject identity migration;
- use the supported compact Kimi profile while testing case-insensitive environment keys;
- assert each public interface's own capture issue path.

These are shared test and verifier compatibility repairs. The evidence summary pagination and config-printer feature changes remain separate.
Bring in morluto/rea@9ecfb109 (morluto#11650) with its original authorship and the narrowly scoped shared test/verifier repairs. The PR's functional patch is unchanged; the added repairs align existing checks with the accepted upstream subject identity, delivery, CLI and schema-profile contracts.
Merge morluto/rea commit 4c8e616
(morluto#11686), including its command-registry baseline. Preserve the accepted
upstream implementation and authorship while retaining this PR's feature
changes and previously verified test compatibility repairs.
Reuse the core registrar for decompile-all instead of registering it twice
after upstream morluto#11680. Assert the outer MCP start/completion notifications
separately from provider cleanup progress introduced by morluto#11637, retaining
cleanup, rate, timeout, cancellation, and evidence assertions.
Comment thread docs/getting-started/cli.md Resolved

Copy link
Copy Markdown
Contributor Author

The remaining CI gates are now green on fd048391ec62b6681c8543208aec3b487aa956eb: the full run completed successfully, including Windows capability/package verification, all 12 portable shards and the final required gate. The canonical-contract documentation thread is resolved, and the PR description now links the completed checks while keeping the earlier validation tied to its tested revisions.

This is ready for maintainer review and merge when convenient.

Afloat16 commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor Author

Integrated main 56d31bc7a in 0f1be10e03; the PR is mergeable again. The merge preserves metadata pagination and uses main's current fixtures, including the workflow-owned terminal cleanup progress.

The standard build, check:fast, docs:check, formatting, and diff checks passed. Focused tests finished with 77 passed / 2 blocked by the sandbox's missing /tmp; all 41 MCP and 7 process-progress tests passed. The unchanged directory owner reproduces the same failure in a sanitized child environment, and the body records that control without changing production or test behavior for this host.

Current-head CI is running.

Current-head CI passed.

@CassieFox23

Copy link
Copy Markdown
Contributor

TL;DR: I ran the PR's 5 changed test files on head 0f1be10. All 72 tests passed on Node 22.23.4, 24.22.1 and 26.12.1. With 7 source files swapped back to merge base 56d31bc, 7 tests failed on each version.

Findings

Check Node 22.23.4 Node 24.22.1 Node 26.12.1
Head 0f1be10, 5 test files pass: 5 of 5 files, 72 of 72 tests pass: 5 of 5 files, 72 of 72 tests pass: 5 of 5 files, 72 of 72 tests
Red run, 7 source files from 56d31bc fail: 5 of 5 files, 7 failed, 65 passed fail: 5 of 5 files, 7 failed, 65 passed fail: 5 of 5 files, 7 failed, 65 passed

The red run keeps the head's test files and swaps back these 7 source files:

  • src/application/investigation/InspectEvidenceBundle.ts
  • src/cli/analysisViewCommands.ts
  • src/contracts/sessionToolContracts.ts
  • src/contracts/sessionToolSchemas.ts
  • src/domain/analysisErrorPresentation.ts
  • src/domain/evidenceRecordSummary.ts
  • src/server/ToolResultDelivery.ts

The same 7 tests fail on all three Node versions. On Node 24.22.1 they are:

  • discovers native records from a complete portable bundle using the shared workflow in tests/boundary/cli/analysisViewCli.test.ts
  • refuses link selections outside link delivery and names a smaller page in tests/boundary/mcp/evidenceLinkInspectionMcp.test.ts
  • keeps export recovery when a single metadata row exceeds the response budget in tests/boundary/mcp/evidenceRecordSelectionMcp.test.ts
  • pages filtered metadata without changing summary totals or the unpaged result (compact) in tests/boundary/mcp/evidenceRecordSelectionMcp.test.ts
  • pages metadata discovery when complete records and the full summary exceed the response budget in tests/boundary/mcp/evidenceRecordSelectionMcp.test.ts
  • MCP response budget recovery > offers metadata pagination and export when the evidence summary exceeds the budget in tests/boundary/mcp/largeToolResult.test.ts
  • response-budget recovery routes > names the bundle summary overflow recovery's first operation in tests/boundary/mcp/toolResult.test.ts

The PR changes 14 files against the merge base: 5 test files and 9 others. The head is 417 commits behind main 3e3faf2.

CI on the head, read live with gh: GitHub shows mergeable true, state clean, and not a draft.

  • Workflow runs: CI is completed/success, PR title ran twice and both are completed/success, and CodeQL production is completed/skipped.
  • 25 check runs are success. They include CI required, Portable tests, Static checks, Documentation, Build package and Test shard (1/5) through Test shard (5/5).
  • 23 check runs are skipped. They include Source tests and Windows capability and package lane.

Not run

  • A merge with current main, 3e3faf2.
Test setup
  • Box: Fedora 44 VM (4 vCPUs, 8 GB, Linux 7.2.11) on my Nobara 44 PC
  • Node: 22.23.4, 24.22.1, 26.12.1
  • Head / base: 0f1be10 / 56d31bc (merge base with main)
  • Red run: 0f1be10 with the changed source files from 56d31bc
  • Install: npm ci --offline and npm run test:prepare on Node 24.22.1
Commands
npm ci --offline
npm run test:prepare
xvfb-run -a npm run test:focused -- tests/boundary/cli/analysisViewCli.test.ts tests/boundary/mcp/evidenceLinkInspectionMcp.test.ts tests/boundary/mcp/evidenceRecordSelectionMcp.test.ts tests/boundary/mcp/largeToolResult.test.ts tests/boundary/mcp/toolResult.test.ts

🤖 Written and tested with Claude Code (Sonnet 5.5, verified by Opus 5.5), posted with my OK 🦊

@N0zoM1z0 N0zoM1z0 closed this Nov 22, 2026
@N0zoM1z0 N0zoM1z0 reopened this Nov 22, 2026

@gensokyo-dev gensokyo-dev left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Verified on current main: the 71 focused tests pass and 7 fail without the change. Rows follow canonical Evidence ID order (createEvidenceBundle sorts them, including parsed bundles), totals still cover every match, and the unpaged shape is unchanged. Fresh CI is green. Thanks.

@N0zoM1z0
N0zoM1z0 merged commit a16669a into morluto:main Nov 22, 2026
104 checks passed
gensokyo-dev added a commit to g1at/rea that referenced this pull request Nov 22, 2026
Summary paging (morluto#9084) now owns offset/limit for detail summary, so the
refusal rows for those fields move to detail complete, and the link
count and tool descriptions describe both paging and linked_evidence_id.
Main removed the tracked planning records under docs/specs (morluto#12856), so
this branch's evidence-referrers plan, spec and task files are dropped.
The advertised get_evidence_bundle summary is regenerated.

Co-Authored-By: gensokyo-dev <[email protected]>
@morluto morluto added area: evidence Evidence, artifacts, and reconstruction enhancement New feature or request labels Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: evidence Evidence, artifacts, and reconstruction enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants