vault-librarian: drop .00 category-note check per Ryan's 2026-07-22 ruling
This commit is contained in:
+4
-9
@@ -61,15 +61,10 @@ def check_structure():
|
|||||||
for fn in fns:
|
for fn in fns:
|
||||||
if vl.EXTEND_RE.match(fn):
|
if vl.EXTEND_RE.match(fn):
|
||||||
out["extend_notation"].append(os.path.relpath(os.path.join(dp, fn), vl.VAULT))
|
out["extend_notation"].append(os.path.relpath(os.path.join(dp, fn), vl.VAULT))
|
||||||
# (b) missing .00 per category + (c) missing folder-note per structural folder
|
# (b) .00 category-management notes are NOT a vault-wide requirement (ruling 2026-07-22:
|
||||||
for code, rel in s["cats"].items():
|
# category-level "about this category" info can live in the category's own SYS.AC note;
|
||||||
catf = os.path.join(vl.VAULT, rel)
|
# .00 is only added ad-hoc when a category needs its own inbox/archive/store). Not checked.
|
||||||
has_dot00 = any(vl.id_code(d) == code + ".00"
|
# (c) missing folder-note per structural folder
|
||||||
for d in os.listdir(catf) if os.path.isdir(os.path.join(catf, d)))
|
|
||||||
# a .00 may also be a bare note; check for any NN.00 leaf
|
|
||||||
if not has_dot00:
|
|
||||||
out["missing_dot00"].append(code)
|
|
||||||
# folder-notes: every area/cat/id folder should contain <name>.md
|
|
||||||
for level in ("areas", "cats", "ids"):
|
for level in ("areas", "cats", "ids"):
|
||||||
for code, rel in s[level].items():
|
for code, rel in s[level].items():
|
||||||
f = os.path.join(vl.VAULT, rel)
|
f = os.path.join(vl.VAULT, rel)
|
||||||
|
|||||||
Reference in New Issue
Block a user