Lock, not pin: the flag that keeps the model from rewriting a node

The badge reads LOCKED, the status line and messages say lock and unlock, p's
help says what it is and that it is not P, and the cascade says a locked node
was flagged, not rewritten. Pin now means only a pane's pin. The stored flag
and the op API keep the old name, pinned, so a live library keeps its locks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
This commit is contained in:
thalladaandClaude Opus 5.5 committed 2026-11-16 02:03:28 -05:00
1 parent edc31aac9a
commit abf79c14cc
8 files changed
+21 -18

No files matched your search

+1 -1
View File
@@ -92,7 +92,7 @@ describe("cascade", () => {
doc.apply(sections(doc.snap(), part).map((id) => ({ op: "bless" as const, id })), "Accept");
doc.apply([{ op: "update", id: a, body: "Leaf A changed again." }], "Human edit");
const events = await cascade(llm, doc, a, "edit");
expect(events.map((e) => e.kind)).toEqual(["decide", "pinned"]);
expect(events.map((e) => e.kind)).toEqual(["decide", "locked"]);
expect(doc.snap().nodes[part].body).toBe("A human wrote this summary.");
expect(staleness(doc.snap(), part).up).toBe(true);
});