Repository navigation
Conversation
Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com> (cherry picked from commit 7af4238f1ae28db853b2cdaa61a0dc82f9bed366) Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com> (cherry picked from commit 56f93f0a66c1a64524176f8146c2818724feac0c) Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com> (cherry picked from commit db318a243ada359c31a7f3b346b0b85292898c7b) Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com> (cherry picked from commit 841200529b6ae66d56d73f0dc741b3c37ebf7c8d) Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com> (cherry picked from commit 66fb97246035aa2b582983ef8fd0db5b9d894430) Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com> (cherry picked from commit 396467268abb9ccb56bf4ca77de4900790805cef) Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com> (cherry picked from commit b0b6acc3f253b43a7319c10766bf63e9b1bebfde) Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com> (cherry picked from commit 6ae8f81fd1924e6277cc0bc853ea69943b38ad26) Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com> (cherry picked from commit 504c995f1200b20e223c3c4e545faea4b5d36cfb) Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com> (cherry picked from commit 9346322f70d4cf3f361064dce87973691b47b4eb) Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com> (cherry picked from commit 81ec69be978eb590a063a190f9e4ed932c402164) Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com> (cherry picked from commit 088102f08d6b097cfe1b9a9ab64a50e07dee9ffe) Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com> (cherry picked from commit 1694ff9d052c23cb4a75f4c902d35191c75b464e) Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com> (cherry picked from commit d1286a815d5f2230cf1d5e9afbe78faf636380a8) Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
…tory Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com> (cherry picked from commit 0ccdf915e29e115fc2410e8507b3283242d5c935) Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com> (cherry picked from commit 318e60a504c0d3a009df32d9c22e86cf6979fc4e) Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com> (cherry picked from commit fb4b8544a88eb33d03198a77de020f7086d69f22) Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com> (cherry picked from commit e7b5bde6eb91a460572e7cc9a78460a9e09cbb45) Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com> (cherry picked from commit 09aa2a9c891acae0f2fa3cf5ff960ab600b2b592) Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com> (cherry picked from commit 2d7355935fd13ae18b468512a8a03e34fe853104) Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
…ce generations Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com> (cherry picked from commit b76db25f1e003345395b2c69b314b775a0e9f06a) Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com> (cherry picked from commit 2a67107712a8eafde524e96e68d88db467c1b8b0) Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com> (cherry picked from commit 8c7fd3b899cf2231913a538518270e0c786cf7a1) Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com> (cherry picked from commit b258dd6020d519174124fdc8b041c24fc351a02b) Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
The interpolated token selects a metadata column in a fixed source table. Count that exact statement without treating the column as a control table. Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
The census records complete f-strings and statement-leading writes. Classify the counted generic ALTER TABLE statement and retain exact inventory equality. Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
Remove the stale reference to full-row resealing from the source row decoder comment. Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
6 of 7 tasks
Mirrored crawl documents answer only a session-protecting client that asks for mirrors, so the native canary and the indexed reader tests mint reader tokens with session_protection and answer_mirrors. A new case checks each partial opt-in sees no indexed crawl evidence. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
- The workspace crawl migration moves to 119: main took 114, 115 and 117, and open changes hold 116 and 118. schema.sql, the schema reference and the analyzer shapes are regenerated from a ClickHouse migrated from empty. - check_authorized forwards main's allow_repository_read through the claims-level check; the repository-read helpers take AuthorizationClaims, whose fields they read. - The indexed reader tests mint a primary session token (sid): a reader resolves only for one, so the earlier tokens resolved nobody and every admitted list was empty. The native canary sends X-Loom-Session-Protection, which mirrored reads require of a non-answer client (the 409). - Ruby, Rust and Go SDKs are regenerated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
The fleet gate compares each replica's highest migration number, so after the renumber a build at 117 would have passed a check for 114 without the crawl tables. The tests derive the versions from the gate's constant, and one checks that the constant names the crawl migration file, so a later renumber cannot leave the gate behind. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
- The Directory check runs around each delegated Drive grant, once per person per turn, instead of on every checkout and Drive request. Every use still checks local standing (listed, not excluded, not deactivated) and the authority's fences, and a checkout validates presenter membership, not each presenter's standing. - An indexed read validates the approval with the cached grant reads every request uses; registration and the worker still re-read fresh. - A suspended, archived, deleted or external group member is left out of the readers, and the count is logged. An explicitly selected person who is unavailable still refuses. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
…udited - A file edited while the people are listed keeps the newest revision and only the access of those who saw it; an older observation can only narrow its readers. Two differing observations of one revision still refuse. - A crawl update's audit row names readmitted people as keyed hashes and counts item changes. - Group publication reads and bounds live groups only, leaves written tombstones alone, and takes one version for the whole write. - check_authorized leaves the mirror refusal to the claims check it calls; a test that could not fail and a stale lease comment are gone. - The native privacy workflow runs only for server, schema and dependency changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
…crawls exist - A pending capture records the orgs it names (crawl_erasure_orgs, in migration 119; '*' until they are known) and fences only their crawls. A deletion no capture recorded still fences every org. - Before the deployment's first crawl source nothing holds crawl data: require_settled fences nothing, and the first registration marks every earlier deletion's cleanup done and clears its capsule. Old SCIM deletions no longer stop crawls from ever starting. - A retried DELETE prepares a capture an earlier try could not, after prepare re-proves the captured person. - A workspace with no active crawl source is skipped instead of refusing every later deletion; its copies are retired with it. - The identity capture timeout defaults to 15 s and is capped at 20 s, inside the SCIM user lease's 24 s work window. - The design page says how long an approval lasts and how to renew it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
…es nothing - SCIM deactivates the person at once but writes the deletion's tombstone (deleted, emails cleared) only once the capture is prepared, so a retried DELETE can still prove the person and finish. A retry that finds the person's identity changed merges both captures and prepares the merge, which re-proves everyone in it. - crawl_erasure_required is set only by a deletion that captures; it is no longer derived from deleted. A deletion a build without crawls wrote fences nothing: every turn already leaves a deactivated person out. The first-registration settle mutation and its crawl count read are gone. - A checkout again checks each presenter's local standing, so a person deactivated after their Drive read stops publication. - The worker re-reads the registrant's grants fresh at the turn's start and under the publication lease only; other checks use cached reads. - The union comment and the design page say what the code does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
…first - The capture's Directory proof skips an address with no active person of the workspace (suspended, deleted or external) and a source whose approval has lapsed, so neither can stop a DELETE or deadlock rotate behind the fence. - DELETE deactivates before the capture and writes the tombstone once it is prepared. A retry whose identity changed takes the fresh capture; the merge helper is gone. - Cleanup finishes only a prepared capture, and a request racing a reactivation that ended the DELETE answers cleanly. Reactivating a row whose capture is unprepared ends that DELETE; a prepared one's erasure goes on. - A checkout reads every presenter's exclusions and SCIM state in one batch. - Domain-alias addresses (nonEditableAliases) are a person's addresses. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
… wedge it - The cleanup inventory covers every crawl source the org registered and scrubs by the person's contact emails; a workspace the capture could not read no longer refuses it. - Finalization redacts every capsule the row has held without requiring each to be covered: an earlier one is this deletion's own try or a capture replaced before the tombstone. - A reactivation finishes a prepared capture's erasure, so its fence lifts. - A fence held before the capture lands names the orgs the person signs in to, or every org only when those ties cannot be read. - Batched standing reads return what their caller uses; Directory alias fields are validated before use; the lapsed-approval skip says what it checks. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
A SCIM-deactivated or deleted person is now excluded from every crawl turn by one batched scim_users read over all of their Workspace addresses (SCIM ids are uuid5 of the email). The same read runs at each checkout of that person's Drive grant, so a deactivation during a turn stops their reads and the publication after them. The person cannot authenticate as a mirrored reader, and copies only they presented drop out of the union: the next complete turn writes an empty permission list for them, within one sync interval, the bound the crawl already accepts for permission changes. A reactivated person is expanded again on the next turn. This removes the canonical-person erasure for crawls and the refusal registry it alone fed: the sealed SCIM capture capsule and its prepare/finish/finalize steps, the org exclusion keys, refusal rows, epochs and org lease, crawl_readmit on knowledge.source.update, the listing's crawl_exclusion_generation, the scim_users crawl_erasure_* columns, the canonical-person census class, and the settings only that code read. SCIM DELETE is again a single-step deactivation. Review found failure states in that state machine that could stop an org's crawls with no repair; deactivation-based exclusion gives the same one-interval bound without them. Kept: crawl approval resealing (now validated by a plain scope check), and offline restore, which retires every crawl source and clears every raw version's approval through a source-store mutation. Source credential and secret resealing return to the ordinary full-row path. Migration 119 is unmerged, so it is edited in place: it no longer creates knowledge_crawl_exclusion_keys or knowledge_crawl_exclusions, nor adds the scim_users crawl_erasure_* or listings crawl_exclusion_generation columns. Wire break: crawl_readmit is removed from knowledge.source.update before any release served it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
…ay what remains - A failed SCIM standing read inside a crawl op answers the retryable CREDENTIAL_REFUSED instead of an internal error. - The approval reseal names its table, so the mutation inventory counts it with its reason. - The design page drops the removed design's history and says which records can still name a deactivated person and why none admits them. - A dead dry-run parameter, a dead options key, an audit churn and an exact-SQL test assertion are gone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
…yable - A crawl op whose SCIM standing read fails answers BackendUnavailable, a retryable 503, not an input error. - A selected person the Workspace suspended, archived or moved out is left out, as a group member is; an address the Directory does not know still refuses the selection. - A crawl row an older build wrote without options maps with none, so one retired row cannot break every source scan; crawl authority still refuses it. - The expansion, delegation and group helpers scope their query tags to their own statements. - Update proves the operator with one draft; the census no longer lists the reseal under its old spelling. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
…erver error require_operator maps the registrant permit's refusal to the crawl refusal and a failed SCIM read to BackendUnavailable, as private() does, since remove and sync_now call it outside private(). A crawl source is written with strictly parsed options; only the read mapper tolerates an older build's rows. The contract page names crawl_options for update, says which unavailable people are left out and which address refuses, and says the 2000-person write measurement waits for live qualification. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
A removed or namespace-retired crawl row drops its selected addresses, approval and registrant. Only the completed-listing guard re-reads the registrant's grants; a document's write uses the cached reads. A bounded Drive listing that stops with pages or folders left is not whole. Crawl add records its creator, and check, sync_now and remove are documented as needing the org-wide role. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
The not-whole mark for a bounded stop moves from the Drive client into list_items, which only the crawl bounds, so a shared source's folder walk is complete as before. Listing or inspecting a crawl source and a check's presenter use cached grant reads. Restore retirement writes the same cleared row as remove. The crawl's role rule is in the add, remove and sync_now docstrings, its options are read after validation, and crawl_orgs refuses a bad bound before querying. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
The Directory steps of a crawl add, update or rotate keep the org's grant caches; the permit, the captured approval and the commit under the lease re-read them. The registrant's SCIM standing is one batched read. Tests pin both and the listing's operator-only crawl options. Listing docstrings say a bounded stop is judged by count, a folder chunk stop has a test, and the docs describe how crawl lists, retired rows and restores are handled. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
The Workspace client lowercases every Directory address, so a person answered in mixed case keeps their Drive grant. The batched SCIM callers pass their addresses as they are, the permit says why it defaults to a fresh read, the restore script and the scan-limit comment name what they cover, and two document-sources paragraphs are rewrapped. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
…e the operator once A network failure, rate limit, 5xx or registration deadline from the Workspace store answers BACKEND_UNAVAILABLE; a refusal still answers CREDENTIAL_REFUSED. Rotate and update rely on their draft's fresh permit instead of a second operator check. The lease docstring keeps its general contract beside the settlement rule and the work end reuses work_left; the listing guard says it re-reads grants before and after its writes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
The shared vendor helpers and the write-scope proof raise Unreachable on a network error, so a crawl registration or check answers a retryable BACKEND_UNAVAILABLE there too; an unreadable proof body stays a refusal. The lease keeps main's comment on where the work end counts from, and the design page states which provider failures retry. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
Tests pin Unreachable for the JSON request, the token exchange, both capped-read branches and a Directory read, and that an unreadable write-scope proof body stays a plain refusal. The design page and PR state that only check reports a provider outage as retryable, since add, update and rotate are non-idempotent. A non-error status reads as unexpected, not refused, and the store docstring is reflowed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
The single-address read now calls any_deactivated, so the fail-closed read and its error mapping live in one place; the SCIM, people and callback fakes answer the batched ids. The listing filter names its rule once in a helper, the store docstring keeps that the reseal writes outside the lease, and an unreadable Directory 403 says why it refuses. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
any_deactivated reads the ids in bounded statements and stops at the first deactivated one, so a crawl of 2000 people with many alias domains stays inside the request bounds; it owns the read's contract, and deactivated is its one-address form. The listing helper is named for what it admits. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related: #883
Changelog category
Changelog entry
Add delegated Workspace crawling for explicitly selected people and groups, with mirrored document permissions. A person SCIM has deactivated is left out of every turn. Crawl registration is available only where
LOOM_KNOWLEDGE_MIRRORED_SOURCES_ENABLEDis on, the switch shared with connected and mirrored shared sources, and once every replica is at schema 119.Why
An organization-wide source needs the complete union of selected people's accessible files while preserving each document's permissions. A service-account key alone does not establish the registering administrator's continuing authority or a person's current identity and standing.
Scope and risk
Delegated crawling extends the existing
gdrivesource kind. Registration binds its canonical registrant, signing-key lifecycle, verified Workspace customer, credential, selectors, items and source generation. Registration and mutations require current org and namespace administration. Publication rechecks authority after external work; indexed reads require a completed listing for the current source generation without opening provider credentials.Directory expansion independently verifies provider identities, bounds nested groups, pages, response bytes and the full file union, and caps people at 2000. Delegation must grant the three fixed read-only Drive and Directory scopes and refuse the distinct Drive, user, group and group-member write scopes. These checks do not establish that every unrelated scope is absent.
A turn completes every eligible person's listing before publishing content, ACLs, membership or a completed-listing marker. Selected folders must stay visible. Retirement requires every eligible presenter to confirm the file is no longer reached, and consumes the shared document budget. Retry state belongs to the mirror and source identifier; whole enumeration does not grant a periodic retry every turn.
Claims retain their existing Keeper key when a sent write lacks confirmed completion. Guarded sends must end before that key expires; nested claims retain the earliest deadline and every unanswered send. Acknowledged writes release immediately. Positive scoped statement timeouts also bound the receiver. At the defaults, the 24-second work window plus 29-second send bound fits inside the 60-second claim; insufficient windows refuse before work. No timeout or TTL default increases.
The main risks are identity confusion, stale authority after an await, incomplete expansion, restored copies with stale approval, and concurrent publication. Fake-I/O regressions cover these paths; runtime qualification remains incomplete.
Compatibility, rollout and rollback
knowledge.source.addaddscredential_mode="crawl"andcrawl_optionswithdirectory_subjectand person/group subjects. Update accepts replacement options. Add, update and rotate may returncrawl_proofwith subject hashes, read scopes, write denials and members. List and inspect disclose crawl options only to current org and namespace administrators. Check proves delegation standing without document titles or counts. The default credential mode staysshared; no operation or existing field is removed.Additive migration 119 adds approval and selection fields to sources and a source generation marker to listings. No merged migration changes. Erasure, placement, row builders, resealing and restore companions are included. There is no new public erasure scope.
New settings and defaults:
knowledge_crawl_directory_max_response_bytesknowledge_crawl_directory_max_pagesknowledge_crawl_max_groupsknowledge_crawl_max_filesknowledge_crawl_registry_scan_limitknowledge_crawl_registry_page_sizeApply the additive migration and deploy the validating build everywhere before qualification and source enablement. Crawl admission requires every replica at schema 119 or later. Configure the fixed read-only scope ceiling, Directory reader and explicitly selected people/groups. Provider registration and live acceptance are separate requirements. Restored data requires offline reconciliation before serving.
Older builds continue serving existing modes on the additive schema. Crawl rows leave the legacy kind and credential columns empty. An older build's sync worker still picks up a mirrored crawl row, but stops at its credential with
CREDENTIAL_REFUSEDbefore any mirror write, so during a rolling upgrade it records failed turns for live crawl sources and serves nothing. Rollback retains the new rows. It must not serve restored crawl copies with an unverifiable approval. Fresh approval and a complete listing are required before those copies become readable again.Deactivated and deleted people
BACKEND_UNAVAILABLE, retryable fromcheck;add,updateandrotatereportretryable: falseas non-idempotent ops, though such a failure before the commit wrote nothing. A refusal answersCREDENTIAL_REFUSED.check,sync_nowandremoveof a crawl source need a namespace admin who also holds an org-wide role, as add, update and rotate do.Tests and remaining verification
_CRAWL_MIGRATION). The tests take their versions from that constant, and one checks that it names119_workspace_crawl.sql.sid).reader_subjectresolves a reader only for one, so tokens without it resolved nobody and every admitted list was empty.X-Loom-Session-Protection: v1. With mirrored sources on, a non-answer client must declare protection before a session-content op, which is the 409SESSION_PROTECTION_REQUIREDthe canary hit. The authorized reader sees the canary. The unauthorized reader in the same namespace, the reader with only another namespace's grant, and the other-org identity do not.tests/integration/crawl_native_privacy.pypasses against a ClickHouse migrated from empty. The crawl, SCIM, settings, authz, schema-baseline, table-classification, mutation-inventory and package-contract tests andtests/analyzer/test_corpus.pypass (1624 tests).make lintandmake typecheckpass.schemas/schema.sql,docs/reference/schema.mdandtests/analyzer/shapes.txtare regenerated from that ClickHouse. The Ruby, Rust and Go SDKs are regenerated too.AI assistance in the code
AI-generated: An agent wrote the change.
I can explain every line of this diff and how it interacts with the rest of Loom.
Checklist
🤖 Generated with Claude Code