You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 9ffd9a8
Browse filesBrowse the repository at this point in the historyBrowse files
A `moved` link is at its code, and the memory's text may still name the old definition or
661
+
path. `namespace.validate` lists each memory whose text does under the `info` finding
662
+
`code_rename_edits`, with either the `edits` its text allows (replace `old` with `new`
663
+
from `start` to `end`, counted in Unicode code points of the text, where the text reads
664
+
`old`) and the `content_sha256` they are of, or the one `reason` no edit is offered. The finding's `totals` count the memories by `edits` and by reason. Loom
665
+
writes nothing: to apply an edit, read the sentence it changes, then call `memory.update`
666
+
on the key with the revised text and `if_match_sha256` set to the listed hash. That is a
667
+
revision by the caller, with its conflict check, and it is refused when the memory changed
668
+
after the report read it. The link pass then links the revised memory where the code is.
669
+
670
+
An edit is offered only for a name written as code (a whole backticked identifier, an
671
+
`A::b`, or a call written `a.b(` or `name()`) and for a whole repository path, in the
672
+
spelling the text uses: `Reader.get` becomes `Reader.fetch`, a full dotted name becomes the
673
+
full new one, and `self.get` keeps its receiver. The whole memory gets no edit for the
|`not_text`| has a value that is not one string. |
679
+
|`link_not_settled`| has a link that is pending, `changed`, `unresolved` or `missing`, that its renamed class carried, or that is hashed under older fingerprint rules. |
680
+
|`incomplete`| names more code than the link caps keep. |
681
+
|`overloaded`| is linked to a definition the index numbers among several of one name. |
682
+
|`quoted_or_literal`| holds the old name or path in a fenced block, a URL, a quoted string or a backticked span that is more than one name. |
683
+
|`prose_occurrence`| writes the old name as a bare word of the prose. |
684
+
|`old_name_remains`| would still hold the old name or path where no edit reaches: a plain word, a part of a longer name, a longer name written as code that names no definition on the indexed trunk (`conn.read_rows()`), the dotted module the definition left (two segments or more) outside a name written as code that names a definition on the indexed trunk, a path before a line number, or a path whose file still exists. |
685
+
|`names_several`| writes one name that two of its links were written against. |
686
+
|`receiver_form`| writes the name as `self.name`, `cls.name` or `this.name`, and its `files` do not name the defining file. |
687
+
|`old_name_still_defined`| spells the old name in a way that still names a definition on the indexed trunk. |
688
+
|`new_name_present`| already holds the new name or path. |
689
+
|`dated_claim`| is dated (`valid_to`, `invalid_at` or `temporal_anchor`), or the sentence to edit holds a commit hash, a version tag, a year, a month (`May` only capitalised after another word), or a pull request or issue number. |
690
+
|`about_naming`| would be edited in a sentence about the name or the place: it holds `name`, `names`, `named`, `naming`, a word that starts with `renam` or `alias`, `called`, `formerly`, `used to`, `replaced`, `moved from`, `deprecated`, `legacy`, `before` or `previously`. |
691
+
|`named_in_key_or_tags`| holds the old name or path in its `memory_key` or a tag. |
692
+
|`named_in_files`| lists the old path in `files`, which `memory.update` keeps. |
693
+
|`would_unlink`| would lose a link once revised: the new name is not one definition on the indexed trunk, or the revised text no longer names a definition or file it is linked to. |
694
+
695
+
A memory whose text names no old name or path is not listed, whatever its links, key, tags
696
+
and `files` say: its bare name still holds after a move, or the link is back where the text
697
+
says. A sentence ends after `.`, `!` or `?` and a space (not after a one-letter abbreviation
698
+
such as `e.g.`), at a blank line and before a list item; a line break alone does not end
699
+
one. The words that mark a sentence as
700
+
being about the name are English, and `call` or `calls` is not one: it is read as calling
701
+
the code. The finding reads the 2,000 memories whose `moved` link was last checked (all
702
+
under `keys` when given), in the repositories the caller may read, and no high-sensitivity
703
+
memory; a link whose code also changed is listed under `code_links_stale`. Neither the
704
+
memory's key, tags, `files`, entities and concepts nor a line number written in its text
[`namespace.validate`](../reference/operations/namespace.md#namespacevalidate) lists the
87
90
memories whose code changed, was not found again or is gone, and the dashboard shows each
88
91
memory's links and their state.
92
+
-**The edit a rename allows.** After a rename or a move the link follows, the same report
93
+
lists the exact token edits that bring the memory's text up to date, or the reason it
94
+
offers none. [Bring a lesson's text up to a rename](#bring-a-lessons-text-up-to-a-rename)
89
95
90
96

91
97
@@ -150,6 +156,44 @@ tool selection are not tested.
150
156
For removal, held-memory exceptions and model-backed revision, see the
0 commit comments