Skip to content

memory.verify takes the content hash the caller read and refuses to attest or revoke other content - #2173

Merged
zlareb1 merged 9 commits into
mainfrom
feat/stewardship
Dec 5, 2026
Merged

zlareb1 merged 9 commits into
mainfrom
feat/stewardship

Conversation

@zlareb1

@zlareb1 zlareb1 commented Dec 4, 2026 •

Copy link
Copy Markdown
Member

Part of: #1175
Part of: #1232

Changelog category (leave one):

  • Improvement

Changelog entry (one or two sentences a user of Loom can read without the diff; the release pull request collects these into the release notes):

memory.verify accepts if_match_sha256, the content_sha256 that memory.get or memory.get_by_id returned for the content being attested or revoked: when the row holds other content the call answers 409 PRECONDITION_FAILED and writes nothing, and the dashboard's Verify and Remove verification send the hash of the content shown.

Why

An attestation records who checked which content, and the content is the value the row holds when the server reads it (handle_memory_verify in server/memory/app/verify.py). A person reads a memory, an edit lands, the person confirms: the attestation binds to text they never saw and the row reads human. The head fence of the insert covers a head that moves during the call. It does not cover an edit that landed before the call, because the server does not know what the caller read.

This is the first slice of stewardship of shared knowledge (the linked issue). A later slice adds a review that records a result against the hash the reviewer read and attests through this handler, so the handler has to refuse content the caller did not read. The slice stands alone: every caller of memory.verify can bind the attestation to its own read.

The rule, in handle_memory_verify:

Row if_match_sha256 Answer
not found; by memory_id, also a row in a namespace the caller cannot write any 200 found=false, unchanged
by namespace and memory_key, without writer on the namespace any 403 FORBIDDEN, unchanged
found "" (the default) unchanged
found the live hash unchanged: attest, revoke, or changed=false
found any other value 409 PRECONDITION_FAILED with detail.current_sha256 (empty for a high row); no version row, no embeddings mirror
  • The comparison sits before the revoke and no-op branches, so a revoke and a repeat verify by the same actor are refused the same way.
  • The live hash is current_content_sha256(row), the value memory.get, memory.get_by_id and memory.verify return as content_sha256. memory.set, memory.list and memory.bulk_get report the hash of the value as it was sent, which is another hash for an object value whose numbers the JSON column renders in another form (1.0 as 1). The field comment, the docs, the SDK docstring and the MCP description therefore name memory.get and memory.get_by_id as the source of the hash.
  • The 409 is PreconditionFailedError, the shape memory.set, memory.update, memory.update_by_id, memory.move and memory.pin answer for the same field. Its message does not print the hash.
  • The 409 of a high row carries an empty current_sha256: the hash of a short secret names it, and the refusal writes no audit row. An empty hash is a shape the error already has (namespace.restore). The rule covers the refusal only: the op's 200 answers return content_sha256 for a high row under the op's memory.verify audit row, as on main, and memory.get and memory.get_by_id serve it with a memory.sensitive_read row.
  • The field is a plain string, as on memory.update: a value that is no hash, absent included, is another hash and answers 409.
  • The access checks run first, so no 409 carries the hash of a row the caller cannot write.
  • Content that moves after the comparison still answers 503 ADMISSION_CONTENDED from the head fence, with nothing written.

Alternatives and their cost:

Alternative Cost
A required hash A wire break: every caller reads first, including MemoryClient.verify(key), the importer's --verify and an agent that attests by key
A field with its own name A second name for the precondition five memory ops take as if_match_sha256
The head fence alone It compares the row the server read with the head at the insert; an edit before the call passes it
A 64-hex format check answering 422 A second refusal for one mistake, and a shape memory.update does not have
A re-read in the dashboard before Verify The race stays between the re-read and the call, and the SDK, CLI and MCP callers gain nothing

Scope and risk

Surfaces:

Surface What ships
Wire if_match_sha256 on POST /v1/memory.verify
SDKs Python, TypeScript, Ruby, Rust and Go regenerated; MemoryClient.verify(if_match_sha256=) in the hand-written Python layer
CLI No command changes: loom call memory.verify memory_id=<id> if_match_sha256=<hash>
MCP The field on loom_memory_verify (listed under ?toolset=all) and through loom_op; the tool description says to send the hash memory.get returned, that a search hit carries none, and that a 409 means show the current text and ask again
Dashboard Verify and Remove verification in the memory drawer address the row shown and send the hash of the value shown; a 409 says the memory changed, with the request id, and reads it again; a verify that finds no row says the memory is no longer live and reads it again
  • One comparison before any write in one handler. It adds no statement, table, migration, op, setting, worker, CLI command, plugin file or audit declaration, and it changes no stored data.
  • Tenant isolation is unchanged: the comparison runs after the writer check on the row's namespace.
  • Audit: memory.verify declares no audit_subject, so the default shaping records if_match_sha256 as a hash and a length, like any other text input.
  • Dashboard: verifyMemory takes the row's identity (rowIdentity) where it took the drawer's agent with the row's user and session. memory.get can answer with another agent's row; under the drawer's agent that call names no row and answers found=false. The hash belongs to the row shown, so the call has to address that row.
  • Dashboard: a verify that answers found=false (the row was deleted after the drawer read it) says "This memory is no longer live" and reads the memory again, where it showed the success toast with an empty attester. The 409 line goes through toastWithId, as the dashboard design guide asks of a page's own line about a refused call: it carries the request id and stays for an error's reading time.
  • tests/unit/session_content_senders.json pins the SHA-256 of sdk/python/loom/memory.py, a reviewed sender module. The pin is renewed: the diff to that file is the verify keyword, its docstring and one payload field, and it touches neither the coalescer nor its body builders.
  • The Python SDK said to retry a 409 with the returned hash, which for memory.verify attests content nobody read. The PreconditionFailed docstring (sdk/python/loom/errors.py), its row in docs/reference/python-sdk.md and MemoryClient.verify's docstring say to read the row again first.
  • The op's summary (the first sentence of the input model's docstring) names both refusals. It is two sentences so the first fits the 200 characters the reference pages keep.

Left alone:

  • The importer's --verify sends no hash.
  • PreconditionFailedError's docstring, which the generated part of docs/reference/errors.md prints, is not edited. The hand-written PRECONDITION_FAILED row above it gains the sentence for memory.verify.
  • The two hash rules named above. memory.update refuses the hash memory.set returned for the same object values on main; one rule for every op that reports content_sha256 is its own change.
  • The 409 of memory.set, memory.update, memory.update_by_id and memory.move still carries the hash of a high row, as on main: there the returned hash is the documented retry without a second read.
  • A hash sent as content_sha256, the name every read serves it under. memory.verify serves that call as it serves any unknown key: 200, the key in ignored_args, no precondition checked. The transport's table of argument synonyms (SYNONYMS, server/transport/arg_check.py) is not keyed by op, so an entry that refuses the key on memory.verify refuses it on memory.set, memory.update, memory.update_by_id, memory.move, memory.pin and profile.set too, which serve it on main; four of those are stable. That refusal is a wire break on six ops this change does not concern, and is its own pull request under Backward Incompatible Change.

Overlap with open pull requests, same files and another concern: #1510 (models_crud.py, verify.py and its unit tests, sdk/python/loom/memory.py, MemoryInspector.tsx and its lifecycle test, api.ts, history-and-provenance.md, rolling-upgrades.md), #2064 (models_crud.py, api.ts, memory-architecture.md, rolling-upgrades.md), #2158 (models_crud.py, api.ts), #1259 (sdk/python/loom/memory.py), #2148 (mcp_descriptions.py, the SDK snapshot) and #1947 (rolling-upgrades.md, the SDK snapshot). In #1510 the verify.py hunks change the embeddings mirror and its signature, and no hunk touches MemoryVerifyInput, verifyMemory or the drawer's onVerify; the new unit tests record the mirror with a function that takes any arguments. The others were checked by file list. Whichever merges second rebases, and regenerates the SDK files and the snapshot.

Compatibility, rollout and rollback

  • Wire: one optional input field, if_match_sha256: str = "", on memory.verify. No default changes. The op answers 409 PRECONDITION_FAILED only when the field is sent. No op, output field, table or setting is added, changed or removed.
  • No other op changes what it answers: the argument check of every op is main's.
  • SDK: MemoryClient.verify gains the keyword if_match_sha256 (tests/unit/snapshots/sdk_public_api.json).
  • Dashboard API module: verifyMemory(id, key, { revoke, ifMatchSha256 }); the userId and sessionId options are gone, and id carries them (the drawer is the one caller).
  • Operator steps: none.
  • Rolling upgrade: a replica one build behind ignores the field, names it in ignored_args and attests or revokes the row it reads (rule 12 of docs/architecture/rolling-upgrades.md gains the sentence). The dashboard does nothing with that answer.
  • Rollback: reverting leaves nothing behind.

Tests

Written first and seen to fail, then run on this branch against a ClickHouse and a server started for it.

  • tests/unit/test_memory_verify.py (25 passed):
    • test_another_hash_than_the_live_one_is_refused_and_writes_nothing: PreconditionFailedError, current_sha256 is the live hash, the message does not contain it, nothing inserted, no mirror scheduled.
    • test_a_refusal_on_a_high_row_carries_no_hash: the same refusal on a high row carries an empty current_sha256. It failed before the check on row.sensitivity.
    • test_the_live_hash_attests: one inserted version row, human.
    • test_a_repeat_verify_still_checks_the_hash: a row this actor already attested, sent with another hash, raises where it answered changed=false.
    • test_a_revoke_checks_the_hash_when_sent: another hash raises and inserts nothing; the live hash reads none.
    • test_a_missing_row_answers_not_found_whatever_the_hash: a missing id and a row the caller cannot write both answer found=false.
    • test_registered_audited_and_callable_by_name_over_mcp also holds the tool description to naming the field.
    • Before the handler change four of these failed: the three refusals and the description.
  • tests/unit/test_sdk_write_kwargs.py::test_verify_sends_the_hash_it_is_given: the payload carries the field when given and omits it otherwise.
  • tests/integration/test_memory_verify.py::test_verify_refuses_the_hash_of_an_edited_row (the file: 4 passed): set, keep the hash, update the value. A verify with the first hash raises PreconditionFailed whose current_sha256 is the new hash, and memory.get reads none at the update's version. A verify with the new hash reads human. A revoke with the first hash raises, and memory.get reads human at the attestation's version. The file is in the Postgres-profile list of ci.yml.
  • Dashboard, npx vitest run src/api.memory.test.ts src/components/MemoryInspector.lifecycle.test.tsx (56 passed): verifyMemory "sends the hash of the content shown, at the row's own agent, user and session" and "sends no precondition when the read carried no hash"; the drawer "verifies the row it shows with the hash of the value it shows", "reads the memory again when a verify is refused because the content changed" and "says a memory is gone when the verify finds no row". In the second of these the refusal returns one hash and the re-read another, the retry has its own answer, and the test holds the retry to the re-read's hash and to the success toast; it also holds the 409 line to toastWithId with the refused error, and a 503 to the old error toast. The last two failed before the drawer change. The nine MemoryInspector test files and the two copy rule files (views/copy.rules.test.ts, lib/errorWords.rules.test.ts) pass (115 tests).
  • By hand against the local server: loom call memory.verify memory_id=<id> if_match_sha256=0000 prints [PRECONDITION_FAILED] and exits 1, and with the live hash answers verification: human; the MCP tools loom_memory_verify and loom_op answer the same 409 with current_sha256, and tools/list under ?toolset=all shows the field and the description; the default listing reaches the op through loom_op. Over HTTP, another hash on a high row answers 409 with current_sha256: "" and the live hash attests it; memory.verify, memory.update and memory.update_by_id with a stray content_sha256 answer 200 and name the key in ignored_args, as on main.
  • make lint (ruff, the function-length and secret gates, every generator --check, Biome's accessibility rules) and make typecheck: pass.
  • pytest -n 2 over the 346 unit test files of the areas this change touches (test_memory_*, test_mcp_*, test_sdk_*, test_op_*, test_audit_*, test_doc*, test_dashboard_*, the snapshot, release and translation files, and the repository-wide scans test_package_contracts.py, test_tunable_constants.py, test_store_names_refused.py, test_degraded_unnoted.py, test_public_copy.py, test_doc_links.py, test_agent_instructions.py and test_session_content_senders.py): 9,580 passed, 40 skipped, 1 xfailed. test_direct_audit_hash_only.py passes too. An earlier run of test_session_content_senders.py failed on the pin named above, which is how the pin was found.
  • After the first review's changes, pytest -n 2 over 164 unit test files (test_mcp_*, test_transport_*, test_http_*, test_sdk_*, test_op_*, test_audit_*, test_dashboard_*, test_store_names_refused.py, test_read_ops_never_5xx.py): 3,094 passed, 13 skipped. The 21 files nearest the change, among them test_memory_verify.py, test_arg_feedback.py, test_session_content_senders.py, test_mcp_listing_budget.py, test_public_copy.py, test_doc_links.py and test_package_contracts.py: 1,071 passed. tests/integration/test_memory_verify.py: 4 passed.
  • On the head that merges main: make lint and make typecheck pass, and ruff, Biome and Prettier are clean on the whole tree. The nine unit files nearest the change (test_memory_verify.py, test_arg_feedback.py, test_sdk_write_kwargs.py, test_sdk_surface_contract.py, test_session_content_senders.py, test_mcp_listing_budget.py, test_public_copy.py, test_doc_links.py, test_degraded_unnoted.py): 569 passed. tests/integration/test_memory_verify.py: 4 passed against a server started from that head. Dashboard, api.memory.test.ts, the nine MemoryInspector test files and the two copy rule files: 127 passed; a first run on the loaded machine failed "names no operation and no API path" in views/copy.rules.test.ts, which passes alone and in the rerun. No wider unit run was made on that head: CI's is the full one.
  • pytest tests/analyzer -n 2: 12 passed. No statement changes, so tests/analyzer/shapes.txt does not move.
  • npm --prefix frontend run build: builds. npm --prefix frontend run budget: OK, index chunk 118.8 kB of 120 kB on the head that merges main. verifyMemory builds its body from the identity it is given, as unpinMemory does; against the base this branch started from, that left the chunk 51 bytes smaller.
  • npm --prefix frontend run test, the whole suite: two runs on a loaded shared machine failed 17 and then 8 of 3,884 tests, none in a file this change touches. The seven files that failed in the second run pass when run alone (157 passed). CI's run decides.
  • npm --prefix sdk/typescript run check: 40 files, 794 tests passed, no type errors.
  • The Rust and Go generators need rustfmt and gofmt, which this machine has no install of. They ran through the toolchain images CI pins (Rust 1.85.1 with the rustfmt component, Go 1.27.4); make lint's --check of both passes with the same wrappers, and the generated diff is the one field.
  • Left to CI: the full unit suite, the Python wheel job, the Postgres-profile integration pass and the Playwright run.
  • ci on an earlier head of the branch, eddf2c3ec, which holds every change of this diff: 44 jobs passed and two failed for a cause on main. pytest unit part 6 failed tests/unit/test_degraded_unnoted.py::test_every_broad_handler_notes_its_fallback_or_says_why_it_need_not on two handlers of server/knowledge/app/source_access.py (1 failed, 10,076 passed), and pytest integration isolation gates failed tests/analyzer/test_corpus.py::test_shapes_file_matches_builders on one statement that reads loom.knowledge_sources. main's own ci run at the merged commit failed the same two tests, and this diff touches neither that module, tests/unit/degraded_unnoted.txt nor tests/analyzer/shapes.txt. The worker copy read gate's broad handlers are listed and the statement shapes regenerated #2193 repairs both on main, and the head merges it: tests/unit/test_degraded_unnoted.py and pytest tests/analyzer (12 passed) pass on the head.
  • ci on the head c77a76af3, which merges that repair: 47 of 47 jobs passed, among them the six unit parts with the coverage floors, the four integration parts, the isolation gates, the four Postgres-profile jobs, the mixed-version job, the dashboard's vitest and Playwright parts, and the Python, TypeScript and Rust SDK jobs.
  • One check outside ci is red on the head for a cause outside this diff: introduced dependency vulnerabilities (dependency-review.yml) exits 2 with Dependency review could not complete: Dependency snapshots are incomplete and snapshot inputs changed. A pull request head has no dependency snapshot (rust-dependency-graph.yml submits one only on a push to main), and the fallback refuses any non-Markdown change under sdk/rust/, which the regenerated sdk/rust/src/wire_models.rs is. The diff adds, removes and bumps no dependency: no manifest or lockfile is in it. The merge decision on this check is the maintainer's.

AI assistance in the code (leave one; writing this description with AI is fine):

  • AI-generated (an agent wrote most of the diff): Claude Code wrote the diff from a reviewed design. Each new test was run and seen to fail before the code it covers; the generated files were read after regenerating; the CLI, MCP and dashboard paths were exercised as listed above.

  • I can explain every line of this diff and how it interacts with the rest of Loom.

Checklist

  • Local lint, type checks and focused tests pass, and ruff, Biome and Prettier are clean on each changed file. make format as a whole needs shfmt, which this machine has no install of; no shell file changed. The full make test-unit and applicable integration results are reported by CI; a full local run is not required before pushing.
  • Generated files are regenerated in this PR, not by hand: the five SDK op tables and wire models, and the docs/reference/ tables (python scripts/codegen/docs_reference.py). The reach manifest, schemas/schema.sql, the plugin copies and the skill bundles are not affected. The branch merges main: both sides rewrite the schema hash on line 2 of sdk/go/wire/models.gen.go, so that file is written by scripts.codegen.sdk_go_gen on the merged tree, and the other generators write no diff there. In tests/unit/session_content_senders.json each pin is the SHA-256 of its file on the merged tree.
  • A new migration is additive and numbered after the latest on main; no merged migration is edited. None added.
  • A behaviour change to any file a plugin ships bumps both plugin manifests' version. None changed.
  • The frontend builds (npm --prefix frontend run build), the bundle budget holds, and the tests of the two changed modules pass. The whole suite did not pass on this machine, as named under Tests; CI runs it.
  • Docs under docs/ describe the system as it now is, and this description names any operator steps and wire changes.
  • Repository text has no dates, people, host names, internal namespaces, ticket or decision numbers (tests/unit/test_public_copy.py passes).
  • Commits are signed off (git commit -s), as CONTRIBUTING.md asks.
  • I signed the Contributor License Agreement (CLA) if CLA assistant requested a signature: none was requested when this was written.

Later slices

Each is one pull request and one concern; none is in this diff.

  1. A namespace admin names who answers for a shared memory and how often it is reviewed, and a list shows who maintains what: an append-only table with its migration and erasure steps, three ops, and a Stewardship tab in the dashboard's Review queue.
  2. A person records a review of the content they read (confirmed, correction requested, needs evidence), and the list shows what is due, overdue and changed since its review. A confirm attests through memory.verify with if_match_sha256.
  3. A document takes a steward and a review.
  4. A correction request files a report, once the report op is on main.
  5. A documented recipe for a scheduled reminder, until a scheduled pass in Loom posts it.

🤖 Generated with Claude Code

…ttest or revoke other content

An attestation records who checked which content, and the content is the
value the row holds when the server reads it. An edit that lands between
the caller's read and the call is attested unseen.

`if_match_sha256` on `memory.verify` names the `content_sha256` of that
read. The handler compares it with the live hash before the revoke and
no-op branches and answers 409 `PRECONDITION_FAILED` with
`current_sha256` on another hash: no version row, no embeddings mirror.
An empty field checks nothing: a call without it attests the row as the
server reads it.

The dashboard's Verify and Remove verification address the row the
drawer shows and send the hash of the value shown; a 409 reads the
memory again. `MemoryClient.verify` takes the field, and the generated
SDKs and reference pages carry it.

Signed-off-by: Mohammad Lareb Zafar <lareb.zafar@clickhouse.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@vercel

vercel Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
loom-docs Ready Ready Preview Dec 5, 2026 2:20am UTC
loom-telemetry Ready Ready Preview Dec 5, 2026 2:20am UTC

Request Review

zlareb1 and others added 8 commits December 4, 2026 23:54
…s content_sha256 is refused

The 409 of `if_match_sha256` returned the live hash of any row. For a `high`
row that hash names a short secret as well as the value does, the refusal
writes no audit row, and `memory.get` and `memory.get_by_id` serve the hash
with a `memory.sensitive_read` row. The refusal of a `high` row carries an
empty `current_sha256`, a shape the error already has.

Every read serves the hash as `content_sha256`. Sent under that name,
`memory.verify` served the call, attested with no precondition and named the
key in `ignored_args`: the name heuristic of `arg_check` finds no near field.
One entry in `SYNONYMS` reads `content_sha256` as `if_match_sha256`, so a
write answers 422 `UNKNOWN_ARGUMENT` and writes nothing. The table is not
keyed by op: `memory.set`, `memory.update`, `memory.update_by_id`,
`memory.move`, `memory.pin` and `profile.set` take the same field and refuse
the same key.

The hash to send is the one `memory.get` or `memory.get_by_id` returned.
`memory.set`, `memory.list` and `memory.bulk_get` report the hash of the value
as it was sent, which is another hash for an object value whose numbers the
JSON column renders in another form. The field comment, the feature pages,
`MemoryClient.verify` and the MCP description name the two reads; the MCP
description also says a search hit carries no hash.

The Python SDK told a caller to retry a 409 with `.current_sha256`, which for
`memory.verify` attests content nobody read. The `PreconditionFailed`
docstring, its row in the Python reference and `MemoryClient.verify` say to
read the row again first. The reviewed-sender pin of `sdk/python/loom/memory.py`
is renewed for the docstring.

Signed-off-by: Mohammad Lareb Zafar <lareb.zafar@clickhouse.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…rify line carries the request id

`memory.verify` answers 200 `found=false` for a row deleted after the drawer
read it. The drawer did not read `found`: it showed "Verified as " with no
name and kept the deleted row on screen. It says the memory is gone and reads
it again, as Unlock and Delete do.

The line for a 409 was a plain info toast: 3.5 s and no request id. The
dashboard design guide sends a page's own line about a refused call through
`toastWithId`, which gives it the request id and an error's reading time. The
line is the only cue that the content changed under the reader.

The drawer test for the 409 gave the refusal and the re-read the same hash, so
it could not tell which one the retry sent, and its retry click had no answer
of its own. The re-read returns a third hash, the retry is answered, and the
test waits for the success toast.

Signed-off-by: Mohammad Lareb Zafar <lareb.zafar@clickhouse.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
`sdk/go/wire/models.gen.go` records the SHA-256 of the registry's model
schemas on its second line. `main` adds `memory_keys` and `actor` to the
proposals models and this branch adds `if_match_sha256` to
`MemoryVerifyInput`, so both rewrite that line and the merge conflicts on it.

The file is written by `scripts.codegen.sdk_go_gen` on the merged tree, not
merged by hand: against `main` it differs in the hash and the one field. The
Python, TypeScript, Ruby and Rust generators and `docs_reference` write no
diff on the merged tree, and the reach census passes.

Signed-off-by: Mohammad Lareb Zafar <lareb.zafar@clickhouse.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…ha256 serves the key

`SYNONYMS` in `server/transport/arg_check.py` is not keyed by op. The entry
that read `content_sha256` as `if_match_sha256` therefore refused the key
with 422 `UNKNOWN_ARGUMENT` on every op that takes the precondition:
`memory.verify`, and also `memory.set`, `memory.update`,
`memory.update_by_id`, `memory.move`, `memory.pin` and `profile.set`, which
serve the key on `main` and name it in `ignored_args`. Four of those six are
`stable`. That is a wire break on ops this change does not concern: it adds
one optional field to `memory.verify` and changes no default.

The entry, its two tests and its sentence in the writing page are removed.
Refusing the key is its own change, with the break in its title and under
its own changelog category.

`memory.verify` treats a hash sent as `content_sha256` as any unknown key: it
answers 200, names the key in `ignored_args` and checks no precondition.

Signed-off-by: Mohammad Lareb Zafar <lareb.zafar@clickhouse.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…the handler keeps

The comment said only the audited read serves the hash of a `high` row. The
handler's 200 answers return `content_sha256` for a `high` row under the
op's own `memory.verify` audit row, with no `memory.sensitive_read` row.

The rule the branch keeps is narrower: a refusal leaves no audit row, so it
carries no hash of a `high` row. The comment says that.

Signed-off-by: Mohammad Lareb Zafar <lareb.zafar@clickhouse.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
… source models too

`main` changes the knowledge source models (`models_sources.py`,
`models_worker_setup.py`), which rewrites the registry schema hash on the
second line of `sdk/go/wire/models.gen.go`. This branch rewrites the same
line for `if_match_sha256` on `MemoryVerifyInput`, so the merge conflicts on
it.

The file is written by `scripts.codegen.sdk_go_gen` on the merged tree:
against `main` it differs in the hash and the one field. The other SDK
generators and `docs_reference` write no diff there, and the reach census
passes.

Signed-off-by: Mohammad Lareb Zafar <lareb.zafar@clickhouse.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…e regenerated statement shapes

Two `ci` jobs fail on the head this merge replaces, for a cause on `main` at
the commit that head merged. `pytest unit part 6` fails
`tests/unit/test_degraded_unnoted.py` on two handlers of
`server/knowledge/app/source_access.py`, and `pytest integration isolation
gates` fails `tests/analyzer/test_corpus.py::test_shapes_file_matches_builders`
on one statement that reads `loom.knowledge_sources`. `main` carries the
repair: the handlers are listed in `tests/unit/degraded_unnoted.txt` and
`tests/analyzer/shapes.txt` is regenerated.

The merge has no conflict, and every generator writes no diff on the merged
tree.

Signed-off-by: Mohammad Lareb Zafar <lareb.zafar@clickhouse.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
… changes

Two files conflict with `main`.

`sdk/go/wire/models.gen.go`: `main` adds the `run.reliance` models, which
rewrites the registry schema hash on the second line, the line this branch
rewrites for `if_match_sha256` on `MemoryVerifyInput`. The file is written
by `scripts.codegen.sdk_go_gen` on the merged tree.

`tests/unit/session_content_senders.json`: `main` renews the pin of
`sdk/python/loom/run.py` on the line next to the pin of
`sdk/python/loom/memory.py`, which this branch renews. Each pin is the
SHA-256 of its file on the merged tree: `main`'s for `run.py`, this branch's
for `memory.py`, which `main` leaves unchanged.

The other generators write no diff on the merged tree.

Signed-off-by: Mohammad Lareb Zafar <lareb.zafar@clickhouse.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@zlareb1
zlareb1 merged commit 80dcd65 into main Dec 5, 2026
94 of 95 checks passed
@zlareb1
zlareb1 deleted the feat/stewardship branch December 5, 2026 03:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant