Skip to content

v0.4.0

Choose a tag to compare

@avalonreset avalonreset released this 15 Nov 16:58

legends-empire v0.4.0

Added

  • Ontology Engine (claude_empire/ontology.py, claude_empire/ontology_grammar.py): Answerable vault queries over structured entities and flat frontmatter facts, with strict frontmatter parsing (byte-for-byte UTF-8 BOM, uniform \n or \r\n line endings, and exact preservation of protected non-ontology frontmatter blocks and markdown body bytes).
  • operation_type: "ontology" Transaction Bundles: Exact Differential Replacement (EDR) enforcement ensuring mutations only update declared ontology keys while verifying evidence pins and owner review digests.
  • Prerequisite Fact Gating (claude-empire ontology need): Deterministic exit code precedence (12 conflict > 11 missing > 13 stale > 10 draft > 0 certified) with --as-of freshness evaluation and --no-values redaction.
  • Entity & Alias Resolution (claude-empire ontology resolve & ontology ask): Sub-millisecond resolution (0 found, 3 ambiguous, 4 not found) using NFKC and casefold normalization, case-insensitive entity_id lookup, and whole-word token matching.
  • Secret-Like Value Redaction & secret-ref Verification: Prevents raw API keys, bearer tokens, PEM blocks, or passwords from appearing in .vault-meta/ontology/index.json or CLI stdout, while supporting fail-closed secret-ref:<file>.env#<VAR> name-only verification during ontology certify.
  • Automated Proposal & Certification (ontology propose & ontology certify): Shared-root rule table (proj-, biz-, person-, brand-, host-), hyphen-boundary slug truncation (<= 48 chars), per-note security/encoding/invariant pre-validation, look-alike alias normalization, and id_only triplet proposals bounded to <= 150 writes per batch.
  • AI Marketing Hub Home v0.7.1 & v0.7.2 Compatibility Pins & Managed Upgrades (claude_empire/home_upgrade.py): Qualified shared-root pins and home-adapter upgrade workflow.
  • Disclosure Safety Gate (claude_empire/disclosure.py, release disclosure): Scans git history, text files, and release archives against sensitive credentials, phone numbers, and private term denylists.
  • Steward Linting & Documentation: Integrated ontology findings into claude_empire/lint_engine.py and legends_vault_steward, plus docs/ontology.md, templates/vault/wiki/meta/start-here-ontology.md, and examples/sample-vault/.

Fixed

  • Fixed Windows handle cleanup race in claude_empire/transaction.py (remove_operation) by closing backups_fd before removing transaction runtime directories.
  • Preserved backward-compatible inspection of already-completed (complete / rolled-back) historical transaction journals from pre-0.3.5 installations with >150 writes or selection_profile == 1 LICENSE.md/PRIVACY.md entries while enforcing the strict 150-write ceiling and selection_profile == 2 scope on all new bundles and incomplete journals.