docs(vault): documentation exists for point of use — destroy the ledgers (−13.7k lines) #31

Merged
dank merged 13 commits from docs/vault-destruction-20261019 into main 2026-10-19 10:59:51 -07:00
Showing only changes of commit 483fd843b7 - Show all commits
+8 -2
View File
@@ -25,8 +25,14 @@ def toks(line):
out.append(n)
# Identifiers, flags, paths and backticked spans are the facts worth
# tracking; ordinary prose words are not — they reword on every rewrite.
out += [w for w in re.findall(r"[A-Za-z][\w./:-]{7,}", line)
if re.search(r"[\d_.:/-]", w) or w.isupper()]
# A hyphen alone is not evidence of an identifier (`long-standing`), so a
# dashed word counts only with two hyphens (`frank-tts-engine`) or with a
# digit, dot, slash, colon or `--` inside it.
for w in re.findall(r"[A-Za-z][\w./:-]{7,}", line):
core = w.strip(".,;:!?\"')]")
if (core.startswith("--") or core.isupper()
or re.search(r"[\d_/:.]", core) or core.count("-") >= 2):
out.append(core)
out += [s.strip() for s in re.findall(r"`([^`]+)`", line) if len(s) > 3]
return out