Repository navigation
The docs and code comments match the code on graph walks, write verdicts, vector reads, row-scoped ops and audit - #593
Merged
Merged
Conversation
zlareb1
force-pushed
the
docs/accuracy
branch
from
November 13, 2026 06:22
034d09d to
30d6875
Compare
zlareb1
force-pushed
the
docs/accuracy
branch
2 times, most recently
from
November 13, 2026 07:41
5c09377 to
ec52f05
Compare
…cts, vector reads, row-scoped ops and audit Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
…worker's targets read plainly Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
…bedding worker's docstring parses Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
…ADME paragraph is reflowed Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…e-grade's judges are counted once Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
…the re-grade names its three judges Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
…verify, and the fact-leg switch reads in short sentences Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
zlareb1
force-pushed
the
docs/accuracy
branch
from
November 13, 2026 08:05
54675f9 to
0425f95
Compare
…memory.verify sits with the before-the-read ops Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
…ther pages do Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
…rash bound covers a detached erasure Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
…s to the memory.ask column, and the edited lines are wrapped Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
…perations legend reads as a sentence Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
zlareb1
force-pushed
the
docs/accuracy
branch
from
November 13, 2026 09:02
86f43d3 to
17b2c62
Compare
…nd the extraction intro is wrapped Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
…e refines cell reads plainly Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
…ts do Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
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.
Changelog category (leave one):
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):
...
Why
Fifteen places where the docs, a code comment or an op description said something the code does not do. Each was checked against
main:server/memory/app/facts.py,_handle_facts_traverse_uncached) and its docstring explains why a recursive CTE is not used.system-overview.md, themodels_facts.pybanner and agraph_quality.pycomment saidWITH RECURSIVE.memory.setembeds before it inserts (set_commit._set_embedhas no fallback), so a failed embed fails the call.concepts/memory.mdsaid a stub is written.conflicts.check_on_commitdecides merge, then pinned, then thenewest_winssubstitution (refines, orconflictwhen the peer'svalid_atis later), then duplicate, then conflict.concepts/memory.mdhad pinned last and neither page named the substitution.clickhouse.md#vector-storage). The retrieval page, the memory-architecture leg table and a failure-and-recovery limit called every vector read an exact scan.erasure.statusandblacklist.removealso setrow_scoped=True, andmemory.verifyis addressed by id the same way withskip_namespace_authz=True.security.mdnow states the rule and its two paths:memory.get_by_idandmemory.update_by_idresolve the id's namespace throughauthz.row_reachbefore the read (id_namespace.namespace_for_id);memory.redact,erasure.statusandblacklist.removecheck after the fetch, withauthz.row_in_scopefor a row held in a namespace; a user's erasure saga needs the org-wide view, an org blacklist pattern of the caller's own org needsORG_ADMIN, and a global pattern needsPLATFORM_ADMIN(both 403, as neither belongs to another tenant). The developer guide's code sample now usesnamespace_for_id. The identities page,memory-architecture.mdandAGENTS.mdfollow it.audit.mdsaid audit rows have no TTL;LOOM_RETENTION_AUDIT_LOG_DAYSabove 0, or a namespace'sretention_days(server/storage/retention_overrides.pyincludesloom.audit_loginTARGETS), puts one on it.audit.mdsaid a crash can lose audit rows queued in the events stream.observability/audit.emitinserts directly andtransport/post_rows.pyawaits it before the response; the events stream carries budget violations only.audit.mdis fixed.failure-and-recovery.mdandsecurity.mdsaid a failed audit insert never fails the write;audit.emit_strictmakes it fail amemory.restorethat undoes a retirement (server/memory/app/restore.py) andnamespace.restore(server/identity/app/namespace_snapshot.py), so all three pages now name those two.authz.grant_role_for); a failed re-read of the cached grant map serves the cached entry while it is younger thanLOOM_JWT_REVOCATION_MAX_STALE_SECONDSand answers 503 past it (core/grant_cache._load).failure-and-recovery.mdand the gate step insecurity.mdnow both say this.erasure.request/erasure.exportdescriptions (andknowledge.delete's pointer to erasure) named GDPR articles while the architecture docs disclaim any compliance guarantee. Fixed inserver/transport/mcp_descriptions.py(erasure.requestnow also says the audit trail is kept, asaudit.mdstates);docs/reference/operations.mdandoperations/erasure.mdregenerated.extractor/loom_extractor/source.pydo.code_ask_cache_thresholdcomment pointed atcode/app/answers.py; the table is inanswers_entry.py. The settings reference, example YAML and schema are regenerated.scip-clangon amd64 (Dockerfile). The README and quickstart now name the C++ indexer on amd64. The translations underi18n/of the README and quickstart go stale with this change; the i18n workflow refreshes them on the push tomain(scripts/i18n/translate.py check --skip-stalepasses).docs/benchmarks/results.mdgave LongMemEval per-type figures fromlongmemeval_s.csv(armask) whilelongmemeval_s_judges.jsonreports gpt-4o-2024-08-06 at 29/30 preference and 123/133 multi-session; both total 483. Cause, found offline with no re-judging: the per-typenmatch in both files, so no question is mislabelled. The--hyp-outfile thatbench/rejudge.pygrades is the primaryaskarm of the same run. All six of the re-grade's split items are WRONG in the CSV. The totals and split lists show at least two labels that differ: on net one multi-session (CSV WRONG, re-grade CORRECT) and one preference (CSV CORRECT, re-grade WRONG), each agreed by all three re-grading judges. Swaps inside one type would leave every committed figure unchanged, so the exact count needs the answers file. The judge call runs at temperature 0 with no seed (bench/judges.py), so a second gpt-4o call is not repeatable. The answers file is not committed, so the two question ids cannot be named. results.md now says which file each figure comes from and what the two labels change. No published number changed.docs/concepts/identities-and-namespaces.mdsaid a user- or session-scoped read is a primary-key range.loom.memoryandloom.memory_embeddingssort by(org, namespace, agent, user_id, session_id, …), reads default toagent="*", and no skip index coversuser_idorsession_id. The page now says what the key gives and links to the memory-at-scale measurement.docs/concepts/memory.mdsaid a byte-identical restatement bumpsreinforcement_count"instead of writing a version".memory.setinserts a new version row carrying the live row'sreinforcement_count + 1(server/memory/app/write.py,reinforcement_count_for_insert), asmemory-architecture.mdsays.Also corrected while checking the pages above, each against the code named:
memory-architecture.mdsearch step: trace, exposure and query-node rows are inserted directly withasync_insert(server/memory/app/search/telemetry.py), not through the events stream.embedding_workerdocstring (server/memory/workers/embedding.py) and theextraction.mdworkers row: a failed inline embed no longer leaves a stub; the worker fills stubs from paths that can wait for a vector and memories with no embedding row.writing.md'smemory.update_by_idrow,adding-an-operation.md,errors.mdandtroubleshooting.md: the row-scoped rule of item 5.bench/code_ask_cache_threshold/measure.py: the cache lookup is inanswers_cache.py, the threshold table inanswers_entry.py.sharing.mdand the erasure comments: the GDPR wording of item 9.code-index-architecture.md: thecode.searchvector leg readscode_chunks, a coded table (CODED_TABLES), so codes first applies there too.Scope and risk
Docs, comments and op description text only. The MCP tool descriptions of the three ops change wording; no behaviour changes.
Compatibility, rollout and rollback
Tests
On the head rebased onto
main:make format-check lint typecheckpass, and every generator (docs_reference, the settings reference, example and schema, both SDK op tables, the Codex plugin sync) reports its output current. The fulltests/unitsuite: 34468 passed, 26 skipped, 1 failed,test_deeply_nested_hidden_html_parses_in_bounded_time, a timing test that also fails onmainon this machine and that this change does not touch.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; each finding was checked against the code on
mainbefore the edit.I can explain every line of this diff and how it interacts with the rest of Loom.
🤖 Generated with Claude Code