Skip to content

test: a hashed guard keeps protected names out of every file; the bench guards ledgers by content - #75

Merged
HackPoint merged 1 commit into
mainfrom
fix/hashed-name-guard
Oct 19, 2026
Merged

HackPoint merged 1 commit into
mainfrom
fix/hashed-name-guard

Conversation

@HackPoint

Copy link
Copy Markdown
Owner

Replaces the pieces-based name checks with a guard that holds only SHA-256 hashes, and scans every tracked file, text or binary, with no allow-list. The bench's real-ledger guard now finds ledgers by content (any lumen.db directly under the data root), so it no longer depends on the old identifier. It also re-pins the v1.5.1 meter script at its tag. lumen-bench (278 tests) and the workspace without the app crate (1,469 tests) pass. No release.

…ch guards ledgers by content

The repository may not name the company the old app identifier carried, or a related product,
project or person. The checks that kept them out spelt the words in pieces, which is a trace of
its own. crates/lumen-core/tests/protected_names.rs now holds only their SHA-256 and scans
every tracked file, text or binary, for any run of letters that hashes to one, in any case and
inside longer words. There is no allow-list. The pieces-based check in the bench's pins test
is gone.

The bench's real-ledger guard named the previous data folder through the app identifier,
which no longer tells the two apart. It now guards every folder directly under the platform's
data root that holds a lumen.db, whatever it is called, as well as the current folder and
~/.lumen_db_path. METHOD.md says so.

The v1.5.1 meter script's pin is updated to the script as it is now committed at that tag.

Tests: protected_names (4 planted cases and the repository: no hit); the sandbox test plants a
previous install under a neutral name. lumen-bench 278 and the workspace without the app crate
(1,469 tests) pass; clippy -D warnings is clean.
@HackPoint
HackPoint merged commit 2a82c76 into main Oct 19, 2026
17 checks passed
@HackPoint
HackPoint deleted the fix/hashed-name-guard branch October 19, 2026 20:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant