Stop tracking LevelDB's LOG; it churns on read, not on change

LOG is LevelDB's diagnostic text — "Delete type=3 #1" and compaction notes — and it is
rewritten every time a pack is OPENED. Not rebuilt: opened. So all eighteen went dirty
whenever anything merely read the compendia, Foundry and any verification script
alike, and pack churn kept turning up in commits that had not touched any content.

Verified disposable before ignoring rather than assumed: a copy of packs/npcs with LOG
and LOG.old deleted opens cleanly, reads back all 21 actors, and LevelDB writes itself
a fresh LOG on open.

CURRENT and MANIFEST-* stay committed, deliberately. They are how a fresh clone finds
the data, and ignoring them would ship compendia nobody can open.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
slaguru666
2026-08-31 20:44:38 +01:00
co-authored by Claude Opus 5
parent 77e9aadc79
commit bbe7b92459
19 changed files with 15 additions and 19 deletions
+15 -1
View File
@@ -1,9 +1,23 @@
# Restorable with `npm install` — the pack builder needs classic-level.
node_modules/
# LevelDB runtime locks. The pack DATA is committed on purpose (see README):
# LevelDB runtime scratch. The pack DATA is committed on purpose (see README):
# a remote Foundry needs the built compendia, and building them requires Node.
#
# LOG is LevelDB's own diagnostic text — "Delete type=3 #1", compaction notes — and it
# is rewritten every time a pack is OPENED, not only when one is rebuilt. Tracking it
# meant all eighteen went dirty whenever anything merely READ the compendia, Foundry
# and any verification script included, which was most of the noise in git status here
# and the reason pack churn kept appearing in commits that had not touched content.
#
# Verified disposable before ignoring: a pack copy with LOG and LOG.old deleted opens
# correctly, reads back all its documents, and LevelDB writes a fresh LOG on open.
#
# CURRENT and MANIFEST-* are deliberately NOT in this list. They are how a fresh clone
# finds the data, and ignoring them would ship a compendium nobody can open.
packs/*/LOCK
packs/*/LOG
packs/*/LOG.old
# macOS
.DS_Store
-1
View File
@@ -1 +0,0 @@
2026/08/31-20:33:27.753 73c4 Delete type=3 #1
-1
View File
@@ -1 +0,0 @@
2026/08/31-20:33:28.407 6024 Delete type=3 #1
-1
View File
@@ -1 +0,0 @@
2026/08/31-20:33:27.781 6024 Delete type=3 #1
-1
View File
@@ -1 +0,0 @@
2026/08/31-20:33:28.193 73c4 Delete type=3 #1
-1
View File
@@ -1 +0,0 @@
2026/08/31-20:33:27.992 70a0 Delete type=3 #1
-1
View File
@@ -1 +0,0 @@
2026/08/31-20:33:28.338 70a0 Delete type=3 #1
-1
View File
@@ -1 +0,0 @@
2026/08/31-20:33:27.904 6f80 Delete type=3 #1
-1
View File
@@ -1 +0,0 @@
2026/08/31-20:33:28.285 70a0 Delete type=3 #1
-1
View File
@@ -1 +0,0 @@
2026/08/31-20:33:28.239 6024 Delete type=3 #1
-1
View File
@@ -1 +0,0 @@
2026/08/31-20:33:28.371 6024 Delete type=3 #1
-1
View File
@@ -1 +0,0 @@
2026/08/31-20:33:27.663 73c4 Delete type=3 #1
-1
View File
@@ -1 +0,0 @@
2026/08/31-20:33:28.313 6024 Delete type=3 #1
-1
View File
@@ -1 +0,0 @@
2026/08/31-20:33:28.081 6f80 Delete type=3 #1
-1
View File
@@ -1 +0,0 @@
2026/08/31-20:33:28.035 6f80 Delete type=3 #1
-1
View File
@@ -1 +0,0 @@
2026/08/31-20:33:27.689 6024 Delete type=3 #1
-1
View File
@@ -1 +0,0 @@
2026/08/31-20:33:28.146 6f80 Delete type=3 #1
-1
View File
@@ -1 +0,0 @@
2026/08/31-20:33:27.813 70a0 Delete type=3 #1
-1
View File
@@ -1 +0,0 @@
2026/08/31-20:33:27.714 6f80 Delete type=3 #1