Serve Mail peer snapshots and feed handoff #169

Merged
Collaborator

Add evidence-scoped, read-only snapshots reconstructed at H, signed lease-bound cursors, frozen freshness and final feed handoff. Add the entity lookup index while retaining schema 16, and align evidence watermarks with peer events.

Cover P06/P07, entity reuse, paging, cursor validation, privacy, resource bounds and query plans. Update capability advertisement, documentation and the I02 snapshot/feed harness.

Validation: pristine filtered baseline 278 passed; watermark regression failed before implementation; final filtered suite 362 passed. make check passed with 1,311 tests passed, 8 skipped and 18 deselected, plus lint, formatting, typing and dependency audit. Wheel and source distribution built at unchanged version 0.10.6.

I02 (architect, voyager, at cc56ba7)

Three runs of uv run python3 scripts/bench_feed.py. Every ADR 0012 rule 14 budget passes in every run:

Run Snapshot p99 Feed p99 all / single Health p99 Search p95 loaded ÷ idle RSS growth
1 62.52 ms 58.81 / 62.54 ms 6.48 ms 1.00 3.78 MiB
2 66.15 ms 57.01 / 61.61 ms 5.83 ms 1.07 3.41 MiB
3 69.32 ms 66.07 / 61.22 ms 6.45 ms 1.12 3.58 MiB

No call returned busy or a non-200 status. Each run pages about 72 snapshot pages, so no full snapshot completes inside the window. One full in-process walk on the same 210k-row store covered 2,100 pages and 210,000 rows and ended complete with a resume_cursor. Its page p99 for store plus render was 0.90 ms, with a maximum of 1.60 ms. The full report lines are in ADR 0008 "Local implementation observations (#161)" (cd7d705).

Merge note: this PR touches scripts/, so it is T4 (dev/stables#1379). It merges only on the operator's word, pinned to the gated head.

Closes #161
Co-Authored-By: gpt-6.1-sol noreply@openai.com

Add evidence-scoped, read-only snapshots reconstructed at H, signed lease-bound cursors, frozen freshness and final feed handoff. Add the entity lookup index while retaining schema 16, and align evidence watermarks with peer events. Cover P06/P07, entity reuse, paging, cursor validation, privacy, resource bounds and query plans. Update capability advertisement, documentation and the I02 snapshot/feed harness. Validation: pristine filtered baseline 278 passed; watermark regression failed before implementation; final filtered suite 362 passed. make check passed with 1,311 tests passed, 8 skipped and 18 deselected, plus lint, formatting, typing and dependency audit. Wheel and source distribution built at unchanged version 0.10.6. ## I02 (architect, voyager, at `cc56ba7`) Three runs of `uv run python3 scripts/bench_feed.py`. Every ADR 0012 rule 14 budget passes in every run: | Run | Snapshot p99 | Feed p99 all / single | Health p99 | Search p95 loaded ÷ idle | RSS growth | | --- | --- | --- | --- | --- | --- | | 1 | 62.52 ms | 58.81 / 62.54 ms | 6.48 ms | 1.00 | 3.78 MiB | | 2 | 66.15 ms | 57.01 / 61.61 ms | 5.83 ms | 1.07 | 3.41 MiB | | 3 | 69.32 ms | 66.07 / 61.22 ms | 6.45 ms | 1.12 | 3.58 MiB | No call returned `busy` or a non-200 status. Each run pages about 72 snapshot pages, so no full snapshot completes inside the window. One full in-process walk on the same 210k-row store covered 2,100 pages and 210,000 rows and ended `complete` with a `resume_cursor`. Its page p99 for store plus render was 0.90 ms, with a maximum of 1.60 ms. The full report lines are in ADR 0008 "Local implementation observations (#161)" (`cd7d705`). Merge note: this PR touches `scripts/`, so it is T4 (dev/stables#1379). It merges only on the operator's word, pinned to the gated head. Closes #161 Co-Authored-By: gpt-6.1-sol <noreply@openai.com>
Serve Mail peer snapshots and feed handoff
All checks were successful
ci/woodpecker/pr/validation Pipeline was successful
cc56ba7139
Add evidence-scoped, read-only snapshots reconstructed at H, signed lease-bound cursors, frozen freshness and final feed handoff. Add the entity lookup index while retaining schema 16, and align evidence watermarks with peer events.

Cover P06/P07, entity reuse, paging, cursor validation, privacy, resource bounds and query plans. Update capability advertisement, documentation and the I02 snapshot/feed harness.

Validation: pristine filtered baseline 278 passed; watermark regression failed before implementation; final filtered suite 362 passed. make check passed with 1,311 tests passed, 8 skipped and 18 deselected, plus lint, formatting, typing and dependency audit. Wheel and source distribution built at unchanged version 0.10.6.

Closes #161
Co-Authored-By: gpt-6.1-sol <noreply@openai.com>
Record the #161 I02 runs in ADR 0008
All checks were successful
ci/woodpecker/pr/validation Pipeline was successful
cd7d7056e9
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
svc-agent-writer deleted branch feat/svd-dev-mail-mind-mcp-161-serve-the-mail-peer-snapshot-a-3ff10f55 2026-11-03 19:22:02 +00:00
Sign in to join this conversation.
No description provided.