Skip to content

The pre-edit block serves extracted decisions without an unconfirmed mark; pinning is optional - #192

Merged
zlareb1 merged 10 commits into
mainfrom
docs/decisions-pin-optional
Nov 3, 2026
Merged

zlareb1 merged 10 commits into
mainfrom
docs/decisions-pin-optional

Conversation

@zlareb1

@zlareb1 zlareb1 commented Nov 3, 2026 •

Copy link
Copy Markdown
Member

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):

The pre-edit block no longer marks an unpinned decision (unconfirmed): decisions written by loom decisions extract are 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_file marked every decision that was not pinned or attested (unconfirmed), and a pinned or attested one whose source changed (source changed since confirmation). Rows written by loom decisions extract are 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, and memory.pin or memory.verify freezes a row so a later run tags it source-changed instead 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).
  • The extractor's behaviour is unchanged: a pinned or attested row is still never revised or deleted by a re-run. What changes is naming and wording only:
    • server/memory/app/decision_extract.py: _confirmed is renamed _frozen and _confirmed_restatement _frozen_restatement; the module docstring, the flagged field comment, the _retire docstring and the comments in the reconcile step (the pinned-or-attested branch) and in _frozen_restatement say "frozen" or "pinned or attested".
    • server/cli/decisions.py: the extract help says pinning or attesting freezes a row against re-extraction; the report's source-changed line says "pinned, attested or with a recorded outcome".
    • tests/unit/test_decision_extract.py: five tests renamed from "confirmed" to "frozen" (and the design/confirmed fixture key), plus the integration test in tests/integration/test_memory_for_file_decisions.py renamed to ..._whether_they_are_pinned.
  • Docs: docs/features/tasks-and-decisions.md, docs/concepts/memory.md, the Claude Code plugin README, and the restatement setting's description (regenerated into docs/reference/configuration.md, loom.example.yaml and schemas/loom-settings.schema.json).
  • Read path only: no stored data, auth or tenant scoping changes. The hit's verification field is still returned.

Compatibility, rollout and rollback

  • Wire: no op or field changes; the rendered text of memory.for_file loses the (unconfirmed) mark and the "since confirmation" suffix.
  • Rolling upgrade: build N-1 keeps rendering the old marks while both serve; the text differs, nothing breaks.
  • Operator steps: none.
  • Rollback: reverting restores the marks; nothing is left behind.

Tests

  • tests/unit/test_memory_for_file.py: updated the cases that pinned (unconfirmed) and since confirmation; added one asserting an extracted (unpinned, unattested) decision renders with no status note; a pinned decision tagged source-changed renders (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.
  • CLI snapshots regenerated with 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_notes and 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 typecheck and make test-unit pass; the integration suite passes if server behaviour changed.
  • Generated files are regenerated in this PR, not by hand: the SDK op tables, docs/reference/configuration.md and the docs/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).
  • A new migration is additive and numbered after the latest on main; no merged migration is edited.
  • A behaviour change to any file a plugin ships (hooks/, lib/, bin/, skills/, .mcp.json, the Codex plugin-defaults.json) bumps both plugin manifests' version, and no other open PR uses that version.
  • The frontend builds (npm --prefix frontend run build) and its tests pass, if frontend/ changed.
  • 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; the history goes in this description (tests/unit/test_public_copy.py).
  • Commits are signed off (git commit -s), as CONTRIBUTING.md asks.

🤖 Generated with Claude Code

@zlareb1
zlareb1 force-pushed the docs/decisions-pin-optional branch 5 times, most recently from 9526e39 to 4c2558f Compare November 3, 2026 14:12
zlareb1 and others added 8 commits November 3, 2026 14:50
…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]>
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
zlareb1 force-pushed the docs/decisions-pin-optional branch from 4c2558f to 3525243 Compare November 3, 2026 14:51
zlareb1 and others added 2 commits November 3, 2026 14:54
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
@zlareb1
zlareb1 merged commit 0ca5beb into main Nov 3, 2026
20 of 22 checks passed
@zlareb1
zlareb1 deleted the docs/decisions-pin-optional branch November 3, 2026 15:14
@pufit pufit mentioned this pull request Nov 4, 2026
9 tasks done
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