Skip to content

feat(mcp): create, review, and download frozen search reports - #753

Merged
wesm merged 9 commits into
mainfrom
feat/mcp-search-reports
Oct 2, 2026
Merged

wesm merged 9 commits into
mainfrom
feat/mcp-search-reports

Conversation

@wesm

@wesm wesm commented Oct 2, 2026

Copy link
Copy Markdown
Member

MCP clients can now capture search counts for an exact document selection, review ambiguous dates, and save a verified evidence ZIP. Enable --allow-report-writes for creation, revision, and local delivery; summary and date inspection are available by default. This is the next bounded slice of #719, following the reviewed design.

The report stays tied to the captured versions after a source changes. Writes make one attempt and report an uncertain outcome when the reply is lost. CLI and MCP share packet verification before publishing a local file. The existing eight-handle limit and 30-minute lifetime remain; each revision consumes a handle, and there is no release operation in this slice.

The shared date pager now returns a continuation when the next member cannot fit, instead of failing a populated page. That correction also applies to web and CLI callers. MCP uses smaller pages to stay within its message limit without dropping evidence.

The existing report drawer, captured against a temporary synthetic vault on this branch:

Selected-document report with completed counts

wesm and others added 8 commits October 1, 2026 13:50
Complete the local report and export workflow with a bounded report adapter.
Reuse captured evidence and reviewed dates while keeping expiry, shared
capacity, uncertain write outcomes, and verified local delivery explicit.

Compact write receipts preserve new report handles when full summaries are
large. A byte budget on the existing date pager keeps complete evidence
readable within MCP replies without adding another cursor service.

Generated with Codex
Co-authored-by: Codex <noreply@openai.com>
The report pager correction must reach web and CLI callers using the
default byte limit as well as MCP. Make that behavior and its default-page
regression explicit before implementation planning.

Document the message-size and shared-handle costs of batching reviewed
dates. Preserve the existing combined candidate limit, which already
rejects more than 256 candidates per member after all sources are joined.

Generated with Codex
Co-authored-by: Codex <noreply@openai.com>
Return the fitting evidence and a continuation instead of failing a populated
page. Apply the correction to every caller and include the cursor in the
encoded byte ceiling. MCP can request smaller pages without truncating evidence.

Generated with Codex
Co-authored-by: Codex <noreply@openai.com>
Use one verification path for CLI and MCP delivery so a different valid packet
cannot be accepted in place of the requested report. Preserve local I/O and
budget errors separately from evidence mismatches.

Classify invalid successful write replies as uncertain outcomes. A client must
not assume that an unusable reply means the daemon rejected the report.

Generated with Codex
Co-authored-by: Codex <noreply@openai.com>
Expose report inspection by default and require an independent opt-in to
create observations or revise date choices. Compact write receipts preserve
the new handle even when its complete warning summary is too large for MCP.

Keep writes single-attempt and distinguish an unusable response from known
rejection. Date inspection uses the shared byte-bounded pager so evidence
survives MCP's duplicated result encoding without truncation.

Generated with Codex
Co-authored-by: Codex <noreply@openai.com>
…omes

Save report ZIPs through private staging after summary, transfer, and packet
verification. Concurrent downloads share one memory allowance, and failed or
canceled verification releases its reservations.

Preserve the publication receipt if a later directory sync or cleanup fails.
Keep local causes in operator logs while returning fixed client messages.

Generated with Codex
Co-authored-by: Codex <noreply@openai.com>
Validate the report adapter alongside the merged photo import and retry changes.
Preserve both histories and regenerate the shared API artifacts on this base.

Generated with Codex
Co-authored-by: Codex <noreply@openai.com>
Prove that reviewed counts and exported originals refer to the same selected
versions, even after live sources change. Document the shared capacity and
message limits so callers can choose a workable review and download path.

Mark the approved design as implemented after exercising the complete workflow.

Generated with Codex
Co-authored-by: Codex <noreply@openai.com>
@roborev-ci

roborev-ci Bot commented Oct 2, 2026

Copy link
Copy Markdown

roborev: Combined Review (9d032c3)

Verdict: No findings at or above medium severity.


Reviewers: 2x codex, codex (security) | Synthesis: codex | Total: 16m38s

An HTTP response that closes early does not prove packet corruption. Preserve
the read error so MCP discards the interrupted connection and the CLI reports
a normal request failure. Keep integrity errors for completed transfers whose
size or digest disagrees with the report.

Exercise an interrupted download followed by an explicit retry against a new
daemon connection, including cleanup of the unpublished partial file.

Generated with Codex
Co-authored-by: Codex <noreply@openai.com>
@roborev-ci

roborev-ci Bot commented Oct 2, 2026

Copy link
Copy Markdown

roborev: Combined Review (d48cbf4)

Verdict: No findings at or above medium severity.


Reviewers: 2x codex, codex (security) | Synthesis: codex, 5s | Total: 16m36s

@wesm
wesm merged commit b048949 into main Oct 2, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant