PageIndex/pageindex
Ray 6f200927cb fix: enforce collection membership on cloud query doc_ids
Cloud query()/query_stream() now run the same _require_document membership
guard the four doc-scoped ops received in 929b3df, so a doc_id from another
collection raises DocumentNotFoundError (matching the local backend's
_scoped_docs) instead of silently answering from another collection's
document. The guard runs after doc_ids normalization and before the
completion request; query_stream runs it via asyncio.to_thread. Folders
unavailable on the plan -> guard skips, as with the sibling ops.

Also rename the streaming QueryEvent types answer_delta/answer_done ->
text_delta/text_done: text_done fires once per assistant text message, which
is honest for the local agent loop's multi-message stream (the last one
before the stream ends carries the final answer). Corrects the cloud
backend's now-inaccurate "single terminal contract" comment. reasoning
stays reserved for future model-reasoning tokens. QueryEvent is unreleased
API (0.3.0.dev1), so the rename is not a breaking change.
2026-07-16 14:40:19 +08:00
..
backend fix: enforce collection membership on cloud query doc_ids 2026-07-16 14:40:19 +08:00
index fix: harden indexing and query paths against malformed inputs 2026-07-16 06:20:36 +08:00
parser fix: empty-list scope, get_tree bool casing, md fence tracking; dedupe base URL 2026-07-10 11:17:20 +08:00
storage fix: resolve concurrency and DoS pitfalls from PR #272 review 2026-07-10 14:49:55 +08:00
__init__.py fix: address xhigh review findings for PR #272 2026-07-16 01:31:57 +08:00
agent.py fix: enforce collection membership on cloud query doc_ids 2026-07-16 14:40:19 +08:00
client.py fix: address xhigh review findings for PR #272 2026-07-16 01:31:57 +08:00
cloud_api.py fix: address xhigh review findings for PR #272 2026-07-16 01:31:57 +08:00
collection.py fix: enforce collection membership on cloud doc-scoped operations 2026-07-16 06:20:24 +08:00
config.py fix: address xhigh review findings for PR #272 2026-07-16 01:31:57 +08:00
config.yaml fix: restore config.yaml as the CLI config base 2026-07-13 19:28:39 +08:00
errors.py fix: address max-effort review findings 2026-07-13 18:49:09 +08:00
events.py fix: enforce collection membership on cloud query doc_ids 2026-07-16 14:40:19 +08:00
page_index.py fix: CMYK image drop, empty-doc crash, page_index shadowing, sqlite hardening, flaky tests 2026-07-09 11:58:59 +08:00
page_index_md.py fix: address xhigh code-review findings on 2d46d68..8f536cb 2026-07-08 21:56:41 +08:00
retrieve.py fix: CMYK image drop, empty-doc crash, page_index shadowing, sqlite hardening, flaky tests 2026-07-09 11:58:59 +08:00
tokens.py refactor(sdk): typed returns, protocol contract, parser layering 2026-07-07 12:15:34 +08:00
types.py fix: CMYK image drop, empty-doc crash, page_index shadowing, sqlite hardening, flaky tests 2026-07-09 11:58:59 +08:00
utils.py fix: address xhigh review findings for PR #272 2026-07-16 01:31:57 +08:00