Add change feed with named consumers and acknowledgements #19

Merged
piers merged 1 commit from feat/svd-dev-peoplemind-mcp-8-change-feed-with-named-consumer-46c82a6e into main 2026-11-01 09:40:33 +00:00
Collaborator

Add validated feed consumer configuration, paginated person changes, and monotonic integer-sequence acknowledgements on the read scope. Restrict API writes to consumer positions with a SQLite authorizer, exclude feed footers from row counts, and document the feed configuration and tools.

Add HTTP acceptance tests covering independent positions, repeated reads, merge and deletion events, acknowledgement bounds, write restrictions, configuration, logging, and lock contention.

Validation: baseline 153 passed, 3 skipped; final suite 164 passed, 3 skipped. Mypy, Ruff, and source/wheel builds pass.

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

Add validated feed consumer configuration, paginated person changes, and monotonic integer-sequence acknowledgements on the read scope. Restrict API writes to consumer positions with a SQLite authorizer, exclude feed footers from row counts, and document the feed configuration and tools. Add HTTP acceptance tests covering independent positions, repeated reads, merge and deletion events, acknowledgement bounds, write restrictions, configuration, logging, and lock contention. Validation: baseline 153 passed, 3 skipped; final suite 164 passed, 3 skipped. Mypy, Ruff, and source/wheel builds pass. Closes #8 Co-Authored-By: gpt-6.1-sol <noreply@openai.com>
Add validated feed consumer configuration, paginated person changes, and monotonic integer-sequence acknowledgements on the read scope. Restrict API writes to consumer positions with a SQLite authorizer, exclude feed footers from row counts, and document the feed configuration and tools.

Add HTTP acceptance tests covering independent positions, repeated reads, merge and deletion events, acknowledgement bounds, write restrictions, configuration, logging, and lock contention.

Validation: baseline 153 passed, 3 skipped; final suite 164 passed, 3 skipped. Mypy, Ruff, and source/wheel builds pass.

Closes #8
Co-Authored-By: gpt-6.1-sol <noreply@openai.com>
Owner

Architect verification on a scratch worktree at efa70db (host voyager, 08:55Z):

  • Full suite: 164 passed, 3 skipped (Radicale). mypy strict clean. ruff check clean. uv lock --check clean. No nested .git.
  • Combined with PR #18 on main: 173 passed, 3 skipped; mypy and ruff clean. No file overlap between the two PRs.
  • One nit, not blocking: ruff format --check reports tests/test_feed.py would be reformatted (one assert wrapped differently). The architect folds the reformat into the next change that touches the file.

Review notes: open_positions opens mode=rw, checks the schema version before installing the authorizer, and the allow-list admits reads plus INSERT and UPDATE on consumers only; PRAGMA, DDL, DELETE and ATTACH are denied by the default branch. feed.ack checks the unknown-consumer and past-end cases inside the transaction and writes only when seq exceeds the held position, so a repeated or backwards ack is a no-op. The gate rulings landed: parameter seq: int, [feed] consumers, footer ack_seq=N more=true|false.

Ready for the operator to merge.

Architect verification on a scratch worktree at efa70db (host voyager, 08:55Z): - Full suite: 164 passed, 3 skipped (Radicale). mypy strict clean. ruff check clean. `uv lock --check` clean. No nested `.git`. - Combined with PR #18 on main: 173 passed, 3 skipped; mypy and ruff clean. No file overlap between the two PRs. - One nit, not blocking: `ruff format --check` reports `tests/test_feed.py` would be reformatted (one assert wrapped differently). The architect folds the reformat into the next change that touches the file. Review notes: `open_positions` opens `mode=rw`, checks the schema version before installing the authorizer, and the allow-list admits reads plus INSERT and UPDATE on `consumers` only; PRAGMA, DDL, DELETE and ATTACH are denied by the default branch. `feed.ack` checks the unknown-consumer and past-end cases inside the transaction and writes only when `seq` exceeds the held position, so a repeated or backwards ack is a no-op. The gate rulings landed: parameter `seq: int`, `[feed] consumers`, footer `ack_seq=N more=true|false`. Ready for the operator to merge.
piers merged commit 5e97395ee8 into main 2026-11-01 09:40:33 +00:00
Sign in to join this conversation.
No description provided.