Repository navigation
The pre-edit block serves extracted decisions without an unconfirmed mark; pinning is optional - #192
Merged
Merged
Conversation
zlareb1
force-pushed
the
docs/decisions-pin-optional
branch
5 times, most recently
from
November 3, 2026 14:12
9526e39 to
4c2558f
Compare
…mark; pinning is optional memory.for_file no longer marks a decision nobody pinned or attested as (unconfirmed): an unpinned row written by loom decisions extract is the normal, served case. A decision tagged source-changed reads (source changed) whether or not it is pinned. The extractor keeps its rule that a pinned or attested row is not revised by a re-run; the CLI help, docs and docstrings now call that freezing the row, an optional step. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
…nfirmed 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]>
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]>
Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
…firmation wording Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
…ark has its own line Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
zlareb1
force-pushed
the
docs/decisions-pin-optional
branch
from
November 3, 2026 14:51
4c2558f to
3525243
Compare
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]>
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):
The pre-edit block no longer marks an unpinned decision
(unconfirmed): decisions written byloom decisions extractare served as they are, and pinning one is an optional way to freeze it against re-extraction. A decision whose source document changed reads(source changed), pinned or not.Why
memory.for_filemarked every decision that was not pinned or attested(unconfirmed), and a pinned or attested one whose source changed(source changed since confirmation). Rows written byloom decisions extractare unpinned by design, so the normal case carried a warning, and the docs described pinning or attesting each extracted row as the step that confirms it. Nobody is expected to review extracted rows by hand. The marker and the wording now say what is true: an unpinned extracted row is served as it is, andmemory.pinormemory.verifyfreezes a row so a later run tags itsource-changedinstead of revising or deleting it.Scope and risk
server/memory/app/for_file.py::_status_notes: drops(unconfirmed)and the "since confirmation" variant; keeps(pinned),(source changed),(outcome: failed)and the code notes. The block's footer is unchanged (it is about correcting a wrong row, not confirming one).server/memory/app/decision_extract.py:_confirmedis renamed_frozenand_confirmed_restatement_frozen_restatement; the module docstring, theflaggedfield comment, the_retiredocstring and the comments in the reconcile step (the pinned-or-attested branch) and in_frozen_restatementsay "frozen" or "pinned or attested".server/cli/decisions.py: theextracthelp says pinning or attesting freezes a row against re-extraction; the report'ssource-changedline says "pinned, attested or with a recorded outcome".tests/unit/test_decision_extract.py: five tests renamed from "confirmed" to "frozen" (and thedesign/confirmedfixture key), plus the integration test intests/integration/test_memory_for_file_decisions.pyrenamed to..._whether_they_are_pinned.docs/features/tasks-and-decisions.md,docs/concepts/memory.md, the Claude Code plugin README, and the restatement setting's description (regenerated intodocs/reference/configuration.md,loom.example.yamlandschemas/loom-settings.schema.json).verificationfield is still returned.Compatibility, rollout and rollback
renderedtext ofmemory.for_fileloses the(unconfirmed)mark and the "since confirmation" suffix.Tests
tests/unit/test_memory_for_file.py: updated the cases that pinned(unconfirmed)andsince confirmation; added one asserting an extracted (unpinned, unattested) decision renders with no status note; a pinned decision taggedsource-changedrenders(pinned) (source changed).tests/integration/test_memory_for_file_decisions.py: expected lines and names updated; 3 passed against a local server (auth off) on its own ClickHouse.LOOM_UPDATE_CLI_SNAPSHOT=1; settings reference, example and schema regenerated.make format lint typecheck;tests/unit/test_memory_for_file.py,test_decision_extract.py,test_decision_retirement.py,test_cli_surface_snapshot.py,test_settings_reference.py,test_public_copy.py,test_doc_links.py,test_agent_instructions.py: 883 passed. Full unit suite (pytest tests/unit -q -p no:randomly) on the rebased head before its last comment and help-string wrap edits (the same code): 25841 passed, 20 skipped, 1 xfailed.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; checked every rendered marker, doc and help line against
_status_notesand the extractor's reconcile and retire rules.I can explain every line of this diff and how it interacts with the rest of Loom.
Checklist
make format-check,make lint,make typecheckandmake test-unitpass; the integration suite passes if server behaviour changed.docs/reference/configuration.mdand thedocs/reference/tables (python scripts/codegen/docs_reference.py), the reach manifest,schemas/schema.sql(make schema-dump) and the Codex plugin copies (python3 scripts/codegen/agent_plugin_sync.py).main; no merged migration is edited.hooks/,lib/,bin/,skills/,.mcp.json, the Codexplugin-defaults.json) bumps both plugin manifests' version, and no other open PR uses that version.npm --prefix frontend run build) and its tests pass, iffrontend/changed.docs/describe the system as it now is, and this description names any operator steps and wire changes.tests/unit/test_public_copy.py).git commit -s), as CONTRIBUTING.md asks.🤖 Generated with Claude Code