Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
ba81a0f
loom instance export and import move orgs into a deployment that serv…
zlareb1 Dec 4, 2026
6313d22
loom instance import: a finished landing is left alone, shared target…
zlareb1 Dec 4, 2026
044655a
loom instance import: claimed handles must hold no access, merges onl…
zlareb1 Dec 4, 2026
637dae7
loom instance import: a revoked account has no way in, a merge stores…
zlareb1 Dec 4, 2026
5a4c351
loom instance import: a row-only landing stays unfinished, acl- names…
zlareb1 Dec 4, 2026
05b8393
loom instance: pass the unit gates the import's statements meet
zlareb1 Dec 4, 2026
e9e5697
Merge remote-tracking branch 'origin/main' into feat/instance-consoli…
zlareb1 Dec 4, 2026
14bdc82
loom instance import: grants match the person, bundle accounts never …
zlareb1 Dec 4, 2026
a20d3e7
loom instance: a revoked account's emails and a source's synced copie…
zlareb1 Dec 4, 2026
4490331
loom instance: a landing records its created_at, recording transcript…
zlareb1 Dec 4, 2026
70b7c65
Merge remote-tracking branch 'origin/main' into feat/instance-consoli…
zlareb1 Dec 4, 2026
c6e8988
loom instance: a landing's email and row are the import's only while …
zlareb1 Dec 4, 2026
906daf2
loom instance: a resumed run never writes over a fact written since
zlareb1 Dec 4, 2026
daa9aa4
loom instance: a revoked account's earlier landing refuses whatever t…
zlareb1 Dec 4, 2026
5d28c2c
loom instance: two merges into one namespace land an address once
zlareb1 Dec 4, 2026
d5828b2
loom instance: the receipt counts memories admission declined
zlareb1 Dec 4, 2026
67d34aa
loom instance: a merge writes outside facts as memory.import does
zlareb1 Dec 4, 2026
c4fca22
loom instance: a merge writes the newest of rows that would retire ea…
zlareb1 Dec 4, 2026
adf898f
loom instance: a merged row with no user lands beside a named one of …
zlareb1 Dec 4, 2026
e840a2d
loom instance: the merge order of rows with no user is tested on its own
zlareb1 Dec 4, 2026
828dc3d
loom instance: a merged row past its expiry is tested on a fixed clock
zlareb1 Dec 4, 2026
e855764
loom instance: a merge decides a row live once, at the run's start
zlareb1 Dec 5, 2026
bbde463
loom instance: a merge leaves a redacted head out
zlareb1 Dec 5, 2026
d1626d0
loom instance: a merge reads the target's keys again at each write
zlareb1 Dec 5, 2026
0e6ea23
loom instance: a merge reads the target's keys before each call
zlareb1 Dec 5, 2026
7eacd37
loom instance: a merge carries conflicted rows and keeps definitions
zlareb1 Dec 5, 2026
8d0b239
loom instance: a namespace definition holds only its own row
zlareb1 Dec 5, 2026
7e1599a
loom instance: a merge picks one row per identity before newest_wins
zlareb1 Dec 5, 2026
1f1c07d
loom instance: a removed source's kept documents move
zlareb1 Dec 5, 2026
73380f5
loom instance: the held-key reads always name their keys
zlareb1 Dec 5, 2026
1746958
loom instance: name the held-key read's ceiling plainly
zlareb1 Dec 5, 2026
63c7e11
Merge remote-tracking branch 'origin/main' into feat/instance-consoli…
zlareb1 Dec 5, 2026
687bc55
loom instance: short keys read first, tags name the subcommand, refus…
zlareb1 Dec 5, 2026
ad7cc5f
loom instance: a resume narrows its own row, revoked handles are refused
zlareb1 Dec 5, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1171,6 +1171,7 @@ jobs:
tests/integration/test_knowledge_sharing.py
tests/integration/test_knowledge_restore.py
tests/integration/test_restored_memory_ids.py
tests/integration/test_instance_consolidation.py
tests/integration/test_memory_import.py
tests/integration/test_cross_principal_leakage.py
tests/integration/test_memory_get.py
Expand Down
13 changes: 8 additions & 5 deletions docs/architecture/security.md
Original file line number Diff line number Diff line change
Expand Up @@ -1278,11 +1278,14 @@ no search leg returns it. The other reads that could serve its value follow thre
the version before a sweep labelled the row holds the same value unlabelled; a redacted
version, which served no value, is not) and `memory.evidence` each write a
`memory.sensitive_read` row. The admin dumps `namespace.snapshot` and `erasure.export`
carry `high` rows on purpose and write one per row. A conversation row has no label, so
`erasure.export` labels `high` a turn or thread whose text reads as high and audits it
the same way. `memory.copy_to` and `memory.cross_promote` read a `high` row by key and
copy it to another namespace with its label; each writes its own audit row (both are
`audit=True` ops), which records the copy.
carry `high` rows on purpose and write one per row. `loom instance export` is an
operator's dump, like `dev/backup_loom.py`: it reads the deployment's stores with its
own credentials, carries `high` rows into its owner-only bundle, and writes none. A
conversation row has no label, so `erasure.export` labels `high` a turn or thread whose
text reads as high and audits it the same way. `memory.copy_to` and
`memory.cross_promote` read a `high` row by key and copy it to another namespace with
its label; each writes its own audit row (both are `audit=True` ops), which records the
copy.
`memory.get` (with or without `as_of`), `memory.get_by_id` and `memory.bulk_get` never
serve a `high` row past its retention window; `memory.history` and `memory.evidence` still
do until the sweep. `memory.bulk_get`, like `memory.list`, serves any other row past
Expand Down
16 changes: 8 additions & 8 deletions docs/architecture/storage-layout.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,12 +176,12 @@ wave's pull request finds them all and rewrites each in one of four ways. It fin

The rewrites:

| Rewrite | When | Example |
| ------------------------------- | ------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Bind a parameter** | the moved table narrows a ClickHouse read to a small set of keys | switched-off orgs, open runs, candidate ids |
| **Keep a projection or mirror** | the moved table is joined with large ClickHouse tables or feeds a view | `memory_records` with `memory_record_fields` (the record side leg), `agent_runs` in the mentor's scans, `namespaces` in worker scans |
| **Split per store** | one check reads a table in each store while its tables move in different waves | the sign-up check that refuses a name an existing principal holds (`_refuse_empowered` in `server/auth/self_signup.py`): each part reads its store, under the claim that guards it today, until every table it reads is in Postgres |
| **Move together** | two tables are always read together | `session_briefs` with its revisions |
| Rewrite | When | Example |
| ------------------------------- | ------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Bind a parameter** | the moved table narrows a ClickHouse read to a small set of keys | switched-off orgs, open runs, candidate ids |
| **Keep a projection or mirror** | the moved table is joined with large ClickHouse tables or feeds a view | `memory_records` with `memory_record_fields` (the record side leg), `agent_runs` in the mentor's scans, `namespaces` in worker scans |
| **Split per store** | one check reads a table in each store while its tables move in different waves | the sign-up check that refuses a name an existing principal holds (`refuse_empowered` in `server/auth/self_signup.py`): each part reads its store, under the claim that guards it today, until every table it reads is in Postgres |
| **Move together** | two tables are always read together | `session_briefs` with its revisions |

Wave 1 moves namespace budget policy reads to Postgres and keeps spend reads in
ClickHouse. In `server/observability/budget.py`, `budget_snapshot` reads
Expand Down Expand Up @@ -210,7 +210,7 @@ transaction) and inserts its `namespaces` row with `ON CONFLICT`. An owned row w
an ownerless one and never over an explicit registration, as `ReplacingMergeTree`
ordering decides today. It stays best effort and never fails the write it rides on. A
split check keeps its semantics: the sign-up check still refuses every holder
`_refuse_empowered` checks today (`server/auth/self_signup.py`), a grant, a namespace, a
`refuse_empowered` checks today (`server/auth/self_signup.py`), a grant, a namespace, a
token, an inbox, a poster rule, a task, and the names a setting grants a role.
`tests/unit/test_package_contracts.py` keeps the store modules separate; each rewrite
lives in the store module of the table that moved.
Expand Down Expand Up @@ -1256,7 +1256,7 @@ revocation are stored with the latest expiry the table holds (`revocation_expiry
`server/auth/revocation.py`), so they never lapse. `namespace_grants` keys by
`(org, namespace, subject)`, with an index on `(lower(subject), org)` for a principal's
reach across orgs, which SCIM deprovisioning reads case-folded (`_orgs_beyond` in
`server/auth/scim.py`); the sign-up check reads it within one org (`_refuse_empowered`
`server/auth/scim.py`); the sign-up check reads it within one org (`refuse_empowered`
in `server/auth/self_signup.py`). Erasure deletes the org's replay answers in Postgres
`idempotency` (its `idempotency_revisions` rows cascading) and sets the org's
`idempotency_fences` row, as `server/erasure/store/steps_pg.py` does today: by org,
Expand Down
7 changes: 4 additions & 3 deletions docs/operations/backup-and-recovery.md
Original file line number Diff line number Diff line change
Expand Up @@ -548,9 +548,10 @@ when that colour has no workers container does the rolled-forward one keep runni

A new Loom process pointed at the same ClickHouse (and Postgres, under
`LOOM_STORAGE_AUTHORITY=postgres`), or at a moved or restored one, gets back every
feature. Under the Postgres authority, stop the source before copying either store;
restoring one store from a backup taken at another time is a
[one-store restore](#restoring-one-store). Carry these:
feature. To land some orgs in another deployment that keeps serving its own, see
[moving orgs into another deployment](consolidation.md). Under the Postgres authority,
stop the source before copying either store; restoring one store from a backup taken at
another time is a [one-store restore](#restoring-one-store). Carry these:

- ClickHouse: the same service, a copy with its Keeper state, or a `dev/backup_loom.py`
dump restored into a ClickHouse that `loom migrate` prepared;
Expand Down
Loading
Loading