Repository navigation
legends-empire v0.4.1
legends-empire v0.4.1 (2026-11-21)
Public release. Health pass over 0.4.0 plus multi-vendor entry checks, ontology and lint performance hardening, and native Windows test isolation.
Added
- Added
steward entry-auditto audit multi-vendor entry harnesses (CLAUDE.md,GEMINI.md,AGENTS.md, and configured~/...shims):@pathimport chains (depth cap 8, cycle-safe, 64-file cap, 256 KiB per-file cap, contained per origin, UNC/device/.env/junction targets rejected), core reachability, cross-harness SHA-256 parity, encoding and C0 control bytes, andforbidden_paths. - Added byte budget checks (
budget.surface_bytes_exceeded,budget.entry_chain_exceeded,entry.shim_oversize),fresh_untilfrontmatter expiry (freshness.expired_fresh_until), a 14-day default freshness window forrole: hot, and dated-state leak detection inrole: corenotes (freshness.state_leak_in_core). - Added deterministic law checks (
law.expired_directive,law.duplicate_block, and validated-regexlaw.value_conflict) across entry-chain files and opt-inlaw_paths. - Added
steward digest(legends.vault-steward.digest/v1plus a digest.md of 1024 bytes or less) with atomic writes and non-ratcheting high-severity regression detection, plustemplates/legends-temporal/steward-digest.jobs.jsonandexamples/steward-overlay.multivendor.json. - Added a compact
snapshot.json(legends.vault-steward.snapshot/v1) onsteward scan --out, raised the--baselineJSON cap to 64 MiB, and added--as-of YYYY-MM-DDtoscan,entry-audit, anddigest. - Added
stat_fingerprintand an exclusions-awareconfig_sha256to.vault-meta/ontology/index.json;ontology resolve,need,ask, andbenchnow reuse a fresh index without re-reading note bodies.
Changed
default.jsonskip_dir_namesnow includesbackups,_runtime,_third-party,.backup, and.cache; dead findings config keys were removed.note.unreadableishighon entrypoints, surfaces, and targets of 10 or more unresolved links, and reports the UTF-8 decode byte offset.- Ontology index findings (
ontology_duplicate_entity_id,ontology_certified_without_value,frontmatter_nested_unsupported) are now surfaced bylegends_vault_stewardobserve, with a bounded, contained index read. - The
knowledge/stewardshippack is0.2.2: shelves carry required frontmatter, use PATH-independentpython -m cto_legends --home <home> handoff ...guidance, document native Windows NTFS transaction support, and passlint --strict(duplicate_basenamesexemptsindexalongside_index). - Docs, recipes, and starter ontology templates use PATH- and CWD-independent router invocations, document mandatory
--generated-atand the derived.vault-meta/ontology/bundles/cache, align limits (150 writes per batch, 148 knowledge pack files, Home v0.7.2), and route contribution and security links toavalonreset/legends-empirewhile preserving upstream attribution. release gates --execute --gate <id>exit status is scoped to the selected gate; the retiredtemplatessubcommand is hidden fromscripts/wiki-mode.py --help;scripts/read-hot-cache.shrecognizes.claude-empire.jsonandCLAUDE_EMPIRE_HOT_CACHE_MAX_BYTES.claude_empire/__main__.pyandlegends_vault_steward/__main__.pysetsys.dont_write_bytecode, andlegends_vault_stewardis covered by installed-tree boundary verification.law.value_conflictconflict_keysare validated by a shared stdlib regex AST check that rejects nested quantifiers, alternation inside repeated groups, and backreferences;duplicate_block_entry_onlymust be a boolean.
Fixed
- Vault lint (
_walk_files) applies--excludebeforelstat()/stat()and records per-entryOSErroraslint.unreadable_pathinread_errorsinstead of aborting (for example onWinError 1920). - NTFS junctions can no longer escape the vault in
claude_empire/lint_engine.pyorscripts/allocate-address.sh. - stdout and stderr are reconfigured to UTF-8 with replacement across
claude_empire,legends_vault_steward, andscripts/*.py; aUnicodeEncodeErrorin the steward CLI exits10, not11. ontology certify --class ownerverifies and pins.raw/,bank:, andnote:preconditions on notes with existingcertified_evidence, reads--digestthrough confinedread_vault_regular, and enforces--note-pathsscope.- Flat
ontology.rootsnormalization and standalone Homeprofile.json(legends.home-ready-profile/v1) root resolution moved intoontology_grammar.resolve_scope(). ontology benchevaluatesexpected_exit, booleanexpect_halt, and unresolved queries;ontology proposeno-op runs keep prior proposal bundles.hook_adapter.stop_status()builds journal paths from the transactions directory on native Windows, so incomplete or corrupt journals are reported instead of silently skipped.- All 15 Windows-native Python test suite failures and the Git Bash
test_wiki_lock.shfailure are fixed (explicit Git Bash resolution,WinError 1314symlink sub-check guards with junction fallbacks, restoredwindows_fs.os_proxy.scandirintest_ledgers.py); 15 previously skipped Windows tests now run. legends_vault_stewardpath validation rejects mixed-slash UNC prefixes, NT??device path prefixes, NTFS alternate data stream colons, trailing dots or spaces, andCONIN$/CONOUT$before containment checks.steward digestkeepshighseverity on entry-chainlaw.*findings: duplicatelaw.*entries from the observe pass are dropped and deduplication key collisions keep the higher severity.ontology needwithout--as-ofevaluatesreview_afteragainst today on a cachedindex.json;.vault-meta/ontologyand hook transaction directories refuse junctions and reparse points.docs/AGENT-RECIPE.mdanddocs/ontology.mdlist only CLI flags that exist.lintno longer stalls on large vaults:_Resolverprecomputes a slash-boundary suffix index and cacheswithout_link_suffixper target, and a fresh cached.vault-meta/ontology/index.jsonis reused (otherwise the index is rebuilt in memory without writing.vault-meta). On a 1,713-page, 17,094-link vault, lint completes in about 3 minutes instead of stalling past 9.lintfiltersontology_findingsby active--excludepatterns and records ontology configuration or read failures inconfiguration_errorsandread_errorsinstead of swallowing exceptions.steward digestpreservesharnessinmerge_and_dedupe_findings()andhigh_key(), keys multi-fact ontology findings per fact/detail so distinct conflicts on one note trigger regressions, and collapsesfreshness.expired_fresh_untilorder-independently acrossobserveandentry-audit.steward entry-auditsupportscore_by_reference: truefor unfenced prose entry files (enforcing strict path boundaries, symlink refusal, UTF-8/C0 encoding,fresh_until, and 256 KiB per-file limits on the referenced core);empire.jsonskipsarchiveand registers optionalfleet/Core.mdandHOT.mdsurfaces (normalizing overlay surface paths);examples/steward-overlay.multivendor.jsonusesprimary_branchinconflict_keys.- Standalone test scripts no longer leak
CLAUDE_EMPIRE_VAULTat import time, andtests/test_setup_wrappers.pyisolatesCLAUDE_EMPIRE_VAULTin subprocess environments sopython -m unittest discover -s tests -p "test_*.py"passes cleanly in a shared Windows process.
Erratum (0.4.0)
- The 0.4.0 notes overstated
legends_vault_stewardontology integration. In 0.4.0,observe()only inspected pre-built.vault-meta/ontology/index.jsonfacts for conflict and stale states and did not surface the index findings listed above. 0.4.1 adds that.