Skip to content

Releases

Memthena v0.14.0

Choose a tag to compare

@w00ch3a w00ch3a released this 17 Nov 01:40

Memthena v0.14.0 (formerly LLM-Brain)

Released 2026-11-17.

Seven memory-quality and safety changes. Each change has its own behavioural
self-check, and all of them run in the release gate. Pack layout is opt-in;
the default pack remains the 0.13 ranked layout.

Safety and correctness

  • Safeguard-relaxing memories stay scoped to their task. A lesson that
    would skip a test or confirmation, auto-approve, or pass --no-verify is
    tagged brain_relaxes_safeguard and held at promotion until it names a
    task (review decide ... --applies-when 'task=TYPE', audit
    applies-when-set). It is packed only for that task.
    LLM_BRAIN_SAFEGUARD_SCOPE=0 turns this off (#1).
  • Per-lesson share scope. Lessons carry brain_share_scope: this-agent | this-owner | all-agents, set with review decide ... --share-scope. A
    lesson captured for a named principal is this-owner by default.
    Owner-only, private, restricted or secret-bearing records can never be
    all-agents. Packs, search, recall, briefs, exports and replication honour
    the scope. share audit PROJECT --as PRINCIPAL is a read-only leak probe.
    LLM_BRAIN_SHARE_SCOPE_STAMP=0 stops the default stamp;
    LLM_BRAIN_SHARE_SCOPE_ENFORCE=0 is a diagnostic off switch (#2).
  • Ingest transforms are recorded. Each episode carries
    brain_source_transforms, brain_source_bytes_identical, and any
    brain_upstream_transforms an adapter declared (Hermes and MCP capture now
    declare theirs). custody verify PROJECT re-hashes every stored source and
    lists what changed on the way in. It is read-only and prints paths and
    transform names only (#3).
  • Look-alike names never merge. A review that would supersede or merge a
    different entity with a look-alike name is held (audit namesake-hold).
    review decide ... --same-entity confirms on purpose. A second person with
    the same name gets their own record. Triage, doctor and health stop
    suggesting such merges, and packs label look-alikes with what tells them
    apart. LLM_BRAIN_NAMESAKE_GUARD=0 and LLM_BRAIN_PACK_NAMESAKE_LABELS=0
    turn those off (#7).

Packs and evaluation

  • Conflict reserve. Packs hold 20% of the budget
    (LLM_BRAIN_PACK_CONFLICT_RESERVE) for open conflicts touching the task
    and show both sides together. Packs without an open conflict are unchanged.
    =0 turns it off (#4).
  • Check evidence before acting. Lessons record how the task they came
    from ended (brain_source_outcome: success | failure | unknown, also set
    with review decide ... --source-outcome) and the evidence path. Packs
    and recall mark a failure-derived or conflicting lesson "Check evidence
    before acting". LLM_BRAIN_PACK_EVIDENCE_FLAGS=0 hides the marks (#5).
  • Opt-in pack layout. pack build --layout auto (or
    LLM_BRAIN_PACK_LAYOUT) lays the same records out as a timeline, current
    value first, open conflicts side by side, or steps first, according to the
    question. The default remains ranked. scripts/personal-eval.py --layout-ab
    compares the two on a copy of a brain (#6).
  • Leak-free eval scores. eval run reports leak-free scores, folds cases
    by source group, and records each case's retrieval margin in fairness.tsv.
    --margin-log FILE appends the margin and brain size per run (#7).

Upgrade notes

  • No vault migration. Storage schema 3, OKF v0.2 and the writer format are
    unchanged.
  • Existing records are not retro-tagged with safeguard, share-scope or entity
    fields. Episodes captured before 0.14 show as unrecorded in
    custody verify.
  • Upgrade every machine that shares a vault, so that all of them apply the
    new promotion holds and share-scope enforcement.

Memthena v0.13.0

Choose a tag to compare

@w00ch3a w00ch3a released this 13 Nov 01:11

Memthena v0.13.0 (formerly LLM-Brain)

Released 2026-11-13.

Fifteen memory-quality and safety changes, plus support for the Hermes 0.23 provider contract. Each change has its own behavioural self-check, and all of them run in the release gate. Two new Hermes options are off by default.

Hermes 0.23

  • Provider contract. The plugin now reads initialize(resumed, message_count), so a resumed session finishes its pending captures instead of re-seeding. It also uses on_turn_start(previous_message, model) to re-warm recall after a resume, and it answers prefetch within Hermes' external-prefetch timeout, falling back to the context warmed after the last turn.
  • Subagent compaction no longer blocks. A subagent fork's checkpoint is saved instead of raising, so compression.checkpoint_required no longer stops a fork from compacting.
  • Opt-in raw_secret_custody (off). Hermes scrubs recognised secrets before every hand-off. With this option on, the plugin restores the exact original from Hermes' own local session store and keeps it owner-only (restricted, mode 0600). Restricted records never render in recall, packs or exports. With the option off, a scrubbed capture is labelled egress_scrubbed.
  • Opt-in snapshot_host_memory (off). When on, each new primary session snapshots Hermes' MEMORY.md and USER.md into source custody. The files are only read.

Safety and correctness

  • Stale writes are refused. A writer whose record changed underneath it gets exit 75. The newer file stays, and the refused version is saved as a unique .conflict-* copy (#10).
  • Counterfactual check before cascading invalidation. A dependent that still has surviving support is kept, and weak dependence is marked UNKNOWN. LLM_BRAIN_COUNTERFACTUAL=0 restores the old plan (#11).
  • Fired intentions are assessed. A fired intention is assessed as ACT or WAIT against its condition. A fire-once intention retires only on intention done (#12).
  • As-of packs abstain. When records written by the as-of date don't settle a value, the pack says so instead of guessing, and later records are left out (#13).
  • Credit after use. feedback record --used credits only the records that were actually used. Rarely retrieved records get an exploration slot. A merge or compression that drops answer facts is held for review (#14).
  • Point-of-use pack judgement. pack judge reports which delivered records were new and which were used. eval run adds a "Point of use" table (#15).
  • Replaced versions are not promoted again. A candidate that repeats an already-replaced version is deferred, and --restore-superseded allows a deliberate rollback (#1).
  • Current packs carry only current versions. Recently changed records get a "Changed recently" notice. LLM_BRAIN_PACK_CURRENT_ONLY=0 opts out (#2).
  • Reported preferences bind to the person who said them. A quoted or forwarded preference is bound to its source. The claim projection is now claims-v3 and is rebuilt on demand (#3).
  • Sources are counted, not voices. Agent and session mentions of one claim count as one source. Independent roots are reported per record (#4).
  • The pack footer says what was left out. It reads "Returned N of M matching records, about T tokens; K lower-ranked and J out of scope omitted." (#5)
  • Nested projects. project ensure DIR --nested makes a folder inside a repository its own project. It sees parent memory only with --inherits PARENT (#6).
  • Conflict decisions are records. conflict decide|list stores each decision tied to the hashes of both sides. The decision re-opens when either side is edited or retracted (#7).
  • Host-native memory snapshots. host-memory snapshot|list|diff takes read-only snapshots of Claude Code, Codex and Hermes memory files, records them with their session ids, and shows the diffs (#8).

Upgrade notes

  • No vault migration. Storage schema 3, OKF v0.2 and the writer format are unchanged.
  • Claim projections are versioned by file name, so claims-v3 files are built alongside the old ones when they are needed.
  • Upgrade every machine that shares a vault, so that all of them apply the stale-write refusal and the new promotion holds.

Memthena v0.12.1

Choose a tag to compare

@w00ch3a w00ch3a released this 26 Oct 08:29

Memthena v0.12.1 (formerly LLM-Brain)

Released 2026-10-26.

Patch release.

Fix

  • doctor no longer reports OKF folder index pages as records. After
    migrate okf-backfill --apply, doctor could report
    missing validation timestamp for the generated per-folder index.md pages
    in projects still on a pre-schema-3 OKF bundle. OKF v0.2 reserves index.md
    and log.md for navigation, so doctor now skips them in its record checks,
    as every other record path already did. A file with one of those names that
    carries record frontmatter is still checked as a record, and a real record
    without a validation timestamp is still reported. lint was not affected.

Upgrade notes

  • No vault migration. Storage schema 3, OKF v0.2 and the writer format are
    unchanged, so 0.12.0 and 0.12.1 can share a vault.
  • Nothing in the vault needs to change: the backfill's index pages were
    correct; only the doctor report was wrong.

Memthena v0.12.0

Choose a tag to compare

@w00ch3a w00ch3a released this 26 Oct 05:03

Memthena v0.12.0 (formerly LLM-Brain)

Released 2026-10-26.

One intelligence. Infinite possibilities.

LLM-Brain is now called Memthena. It is the same project and the same brain.
This release is much faster on large and network-shared vaults, bundles a small
embedding model, adds an opt-in review model, and brings nine new memory
features. No vault migration is needed: storage schema 3 and canonical OKF v0.2
are unchanged, and every new field is optional.

New name, nothing renamed on disk

  • memthena is a new command for the same CLI. llm-brain keeps working.
  • Every LLM_BRAIN_* setting can also be written as MEMTHENA_*. When both
    are set, MEMTHENA_* wins.
  • Unchanged: the llm-brain command, plugin ids, the Hermes provider id,
    release file names, the repository URL and the vault layout.
  • Error and warning lines now start with memthena: instead of llm-brain:.
    Exit codes are unchanged.

Faster, especially on a shared network drive

Synthetic 5,000-record vault, v0.11.0 vs v0.12.0 (warm):

Command Local disk, 0.11.0 Local disk, 0.12.0 Network drive (SMB), 0.11.0 Network drive (SMB), 0.12.0
index build 207.9 s 1.50 s over 1,500 s 5.70 s
brief 20.2 s 1.38 s 290.1 s 1.80 s
search 2.98 s 1.49 s 193.7 s about 2.8 s (3–7 s after an idle gap)
lint 35.5 s 0.43 s 149.8 s 0.73 s
doctor 306.5 s 0.61 s 667.1 s 1.07 s

Search output is identical to v0.11.0. Where the time went:

  • Index builds are batched.
  • Each machine keeps a local, stat-checked cache of record bytes outside the
    vault. It survives upgrades. MEMTHENA_CACHE=0 turns it off.
  • On macOS, search checks a whole folder with one bulk listing instead of one
    network round trip per file. Each record is still judged by its own size and
    timestamps, so hand edits are seen by the next search. MEMTHENA_BULK_STAT=0
    turns it off.
  • Locks record which machine holds them. A lock from another machine is only
    taken over after it has gone 5 minutes without a heartbeat, and a live one
    refreshes itself every 75 seconds.
  • The session-start hook shows the last good brief, marked as cached, if the
    live brief is slow.
  • An optional trust window, MEMTHENA_NAS_TRUST_SECONDS, is off by default.
    Any write made through Memthena ends it at once.

Models: both optional, both fail open

  • Embedder (bundled). lbembed-v2-int4 is a 4 MB pure-Python embedder.
    Set MEMTHENA_EMBED=1 to use it for hybrid search. Lexical search stays the
    default.
  • System One (opt-in). Set MEMTHENA_S1=1. It can only make a review
    outcome more cautious (AUTO to WAIT). It never promotes anything, and
    protected items never reach it. The base package includes a small linear
    model that only checks for duplicates.
  • System One 32m (optional download). A larger model that adds keep and
    relevance decisions, shipped as a separate release asset
    (llm-brain-0.12.0-system-one-32m.tar.gz, with a .sha256). Install it on
    each machine that wants it with memthena models install system-one-32m.
    It needs onnxruntime and tokenizers. If the model or its runtime is
    missing, System One falls back to the linear model. Check it with
    memthena models status, and remove it with
    memthena models remove system-one-32m.

OKF backfill (optional)

migrate okf-backfill adds the OKF v0.2 description: line to records that
lack one, and writes a generated index.md in each folder.

  • --check (the default) is read-only and prints counts.
  • --apply only adds text. It records an audit row and a manifest.
  • --undo ID restores the files byte for byte.
  • Restricted, secret and owner-only records never get a description, and
    search ranking ignores the field.
  • After a backfill, newly promoted records get a one-line description from
    their first sentence.

Nine new memory features

  1. Safer recall. Lines in recalled text that look like a speaker label
    are escaped in packs, so recalled memory can't pose as a new message
    (brain_role_labels_escaped).
  2. Recall after compaction (Hermes). The Hermes plugin re-injects a
    size-capped pack after a context compaction (post_compaction_reinject, on
    by default; post_compaction_budget_tokens, default 625). Older Hermes
    builds are unaffected.
  3. Retraction that finishes. A full retract also purges derived
    stores, and retract --finish re-checks one that didn't complete. retract --source drops one source and
    keeps the claim if another independent source still backs it.
  4. Index freshness in packs. Packs say how current the index is, for
    example "index as of audit seq N; M captures not yet indexed".
    LLM_BRAIN_PACK_FRESHNESS=0 turns the line off.
  5. Scoped preferences. An optional brain_applies_when (project, host or
    task) limits where a preference or constraint shows up. Scope fails open:
    a record is hidden only when the caller's host, task or project is known
    and different. A caller that doesn't say who it is, including the MCP
    server with no LLM_BRAIN_HOST, sees all memory.
  6. Raw-history baseline. eval run --strategies raw-bm25,raw-embed ranks
    the raw history with no memory pipeline, so reports show whether memory
    beats it.
  7. Doctor checks the audit log. doctor replays the audit log against
    records and the index without changing anything (--no-audit-replay to skip).
  8. Re-check before risky actions. pack build --action-risk high marks
    stale or single-source premises "re-verify before acting". Low, medium and
    unset packs are unchanged. The MCP brain_pack_build tool takes the same
    option.
  9. Personal eval kit. scripts/personal-eval.py scores a copy of a brain
    on the corrections and decisions it holds. It writes hashes and scores only
    and never writes to the source brain.

Upgrade notes

  • Upgrade every machine that shares a vault together. The writer format
    level is unchanged from 0.11, so 0.11 and 0.12 can share a vault. 0.10.x
    builds still refuse to write to a vault that 0.11 or later has written.
    0.9.x builds are not blocked by writer.format, so keep them off shared
    vaults.
  • Before an OKF backfill, run memthena migrate okf-backfill --check and
    read the counts. Upgrade every machine first: older builds index the new
    description: field, which shifts their search ranking. Keep the run id that
    --apply prints, so you can --undo it.
  • Restart Codex, Claude Code, Gemini CLI and Hermes after upgrading.
  • Nothing is renamed, so existing settings, scripts and plugin configuration
    keep working.

No vault migration.

v0.11.0

Choose a tag to compare

@w00ch3a w00ch3a released this 20 Oct 03:03

LLM-Brain v0.11.0

Released 2026-10-20. This release also ships everything prepared for 0.10.0,
which was not published on its own (see "Includes 0.10.0" below).

No vault migration. Storage schema 3 and canonical OKF v0.2 are unchanged.

Review queue: only real exceptions

  • Tiered review policy by default (LLM_BRAIN_REVIEW_POLICY=tiered). strict is byte-identical to the pre-0.11 behaviour for capture,
    closeout and promotion (covered by tests/review-sweep-self-check.sh).
  • Capture writes source custody markers as captured, not proposed.
  • review sweep PROJECT_ID|--all --dry-run|--apply --confirm TOKEN|--undo RUN_ID: a counts-only dry run, a
    token-confirmed apply with labels, audit rows and a manifest, and a working undo. Nothing is deleted.
  • Tiers: CLOSE-custody, CLOSE-legacy, CLOSE-duplicate, AUTO-cooloff, AUTO-private, PARK, HOLD, FLAG-secret (left
    byte-for-byte as written and open for the owner) and FLAG-redaction (counted, untouched).
  • Secret-bearing records (same detector as secret-scan) are owner-only wherever they sit: hidden from every named
    principal except LLM_BRAIN_OWNER_PRINCIPAL, and left out of export knowledge-catalog and export bundle.
    Nothing is redacted or blanked.
  • review sweep PROJECT_ID|--all --scan-sources: read-only, counts-only secret census by area, file kind and
    detector, plus whether the custody behind a secret-like review item holds the same kind of text.
  • Owner-only private sensitivity for auto-stored health, privacy, legal and finance facts: hidden from other
    principals and never replicated or exported. The evidence-graph traversal already fails closed for non-internal records.
  • The work run-once closeout applies the policy only to candidates received after the project's start marker.
  • New candidates record brain_received_at, which starts the cool-off clock (tiered mode only).

Includes 0.10.0

All of the v0.10.0 notes apply. In short:

  • Faster search and recall, and hybrid search that uses z-score fusion and
    only calls the embedder when lexical search is unsure (gate 0.2, alpha 0.4).
  • Lexical profile v2 by default: light stemming, two-letter and numeric
    tokens, identifier spans, camelCase parts and accent folding, k1 0.9.
    Link anchors and state order are on by default under v2. Opt out with
    LLM_BRAIN_LEXICAL_ANCHORS=0 and/or LLM_BRAIN_LEXICAL_STATE_ORDER=0, or
    restore the old scores with LLM_BRAIN_LEXICAL_PROFILE=legacy. See the
    lexical profile note.
  • Session handover, the ruled-out ledger, forgotten saves, health checks,
    automatic capture tags, careful belief updates, forgetting that sticks,
    procedure lifecycle, tried-and-reverted diffs and recall after compaction.
  • Neural Expansion for Hermes Desktop.
  • Writer guard: this version records a writer format level in
    writer.format. Upgrade every machine that shares a vault at the same time.

No embedding model is bundled or required. Fusion-protect is not part of this
release.

Not in this release

  • No reflector. Auto-promotion needs a local reflector (LLM_BRAIN_REFLECTOR), and that choice is still open.
  • No evidence lane in search for captured, unreviewed sources.

Upgrade notes

  • Run review sweep --all --dry-run on each vault root before any apply. An apply needs explicit authority.
  • Set LLM_BRAIN_REVIEW_POLICY=strict to keep the pre-0.11 review behaviour.

LLM-Brain v0.9.2

Choose a tag to compare

@w00ch3a w00ch3a released this 12 Oct 07:34

LLM-Brain v0.9.2

Released 2026-10-12.

A documentation release. No code paths change. Storage schema 3 and canonical
OKF v0.2 are unchanged. No vault migration is needed; hosts already on 0.9.1
lose nothing by staying there.

Documentation

  • New README. A short introduction: what LLM-Brain is, measured
    real-agent results, a quick start, Hermes and Neural Expansion setup,
    multi-user brains, label lineage and upgrading. The previous README, with
    every command and setting, is now docs/guide.md and ships in
    the archives.
  • Real-agent results in docs/real-eval-results.md:
    coding memory tasks 100% with memory versus 3% without; research recall 27%,
    then 67% after the v0.8.2 fixes (10% without memory).
  • Screenshots of Neural Expansion inside Hermes in docs/images/, taken
    from a demo brain with fictional content.
  • Hermes profiles. The Hermes plugin guide and README explain that when
    llm-brain lives in a named profile, llm-brain must be in plugins.enabled
    in both that profile's config.yaml and the root ~/.hermes/config.yaml;
    the dashboard serves tab files using the root config.

LLM-Brain v0.9.1

Choose a tag to compare

@w00ch3a w00ch3a released this 12 Oct 02:47

LLM-Brain v0.9.1

Released 2026-10-12.

This patch release fixes where the Hermes Neural Expansion page is written.
Storage schema 3 and canonical OKF v0.2 are unchanged. No vault migration is
needed; upgrade from 0.9.0 or 0.8.x by installing the release as usual.

Fixes

  • Private, local Neural Expansion output. Hermes /neural-expansion and
    the dashboard page now write to $HERMES_HOME/neural-expansion/ (directory
    0700, file 0600) instead of $HERMES_HOME/llm-brain/neural-expansion/. On
    installs where $HERMES_HOME/llm-brain is a symlink to the vault, 0.9.0
    wrote demo pages into the vault, where a network share could ignore the
    private permissions.
  • Fail closed. An output directory that resolves inside the vault, or a
    filesystem that does not keep 0700/0600 modes (for example SMB/CIFS), is
    refused with an error instead of producing a shared-readable page.

LLM-Brain v0.9.0

Choose a tag to compare

@w00ch3a w00ch3a released this 12 Oct 02:07

LLM-Brain v0.9.0

Released 2026-10-12.

This release adds label lineage (traceable decision trees with nothing
deleted), cascading invalidation, named-gate abstention, sufficiency-gated
recall, working memory, a fuller intention lifecycle, derived folder
summaries, progressive state disclosure, brief compaction, standing-constraint
re-injection, an opt-in access-recency re-rank, a Memory-Gym-style eval
family, and Neural Expansion inside Hermes. Storage schema 3 and canonical
OKF v0.2 are unchanged; no canonical record is rewritten by any new command.

Every new behaviour that could change ranking or default output is opt-in, or
only appears when the vault contains the new data (labels, working items,
constraints, fire-once intentions). Defaults are listed at the end.

Label lineage (instead of a net-zero size cap)

Growth and change are managed through labels, so a user can trace where a
decision tree changed. Labels live in an append-only, hash-chained ledger
beside the vault (projects/ID/lineage/labels.tsv); canonical records are
never edited. Removing a label appends an unlabel event, so history is kept.

  • llm-brain label add|remove PROJECT REF LABEL --reason TEXT [--target REF]
    and label list PROJECT [REF] [--label NAME] [--json]. Vocabulary:
    superseded-by, revised, retired, decision-point:NAME,
    branch:NAME, topic:NAME, outcome:KEEP|STALE|REPLACE|UNKNOWN,
    constraint:prohibition|non-amplification|commitment, or any
    name[:value]. Appends are refused if the hash chain is broken.
  • Derived labels are computed (never stored) from existing lifecycle
    data: superseded-by/supersedes from brain_supersedes, revised from
    brain_version_of, retracted from retraction tombstones, state:KEY, and
    intention-done|cancelled.
  • llm-brain lineage show PROJECT (--ref REF | --topic TEXT | --decision NAME) [--json]
    prints the decision tree, the current head(s) and a timeline where every
    change point (supersession, retraction, revision, retirement, STALE/REPLACE
    outcome, decision-point or branch label) is marked *. Dependencies
    (brain_depends_on, brain_derived_from) are part of the tree.
  • Search and packs accept --label L and --without-label L (repeatable;
    name matches any name:value). Packs list the lineage labels of selected
    records when the ledger has any.

Example (synthetic):

$ llm-brain lineage show proj_wages --decision dataset
LINEAGE (5 records, 4 change point(s); derived, read-only)
Tree:
  Dataset choice: CensusA [okf/claims/dataset-v1.md] {outcome:REPLACE, superseded-by}
    └─ Dataset choice: CensusB [okf/claims/dataset-v2.md] {decision-point:dataset, outcome:REPLACE}
  Dataset choice: CensusC [okf/claims/dataset-v3.md]
  Wage gap finding [okf/claims/finding-gap.md] {outcome:STALE}
Current: okf/claims/dataset-v3.md
Timeline (* = decision tree changed here):
   2026-01-01T00:00:00  recorded  okf/claims/dataset-v1.md
 * 2026-02-01T00:00:00  supersedes  okf/claims/dataset-v2.md — okf/claims/dataset-v1.md (Dataset choice: CensusA)
 * 2026-10-12T00:00:00  label outcome:REPLACE  okf/claims/dataset-v2.md — okf/claims/dataset-v3.md — CensusC adopted; older holder of state study.dataset

Ideas implemented

  1. Access-recency soft re-rank — search|pack --recency-boost (or
    LLM_BRAIN_RECENCY_BOOST=1): ×1.5 for just-used records decaying (7-day
    half-life) to a ×0.7 floor; never-used records share the floor, nothing is
    filtered. Separate from --usage-boost and FSRS. Off by default.
  2. Named-gate abstention — llm-brain gates PROJECT QUERY reports which
    gate refused: relevance, validity (superseded, retracted, unapproved,
    expired), applicability (principal, cold tier, not yet valid) or risk
    (sensitivity, quarantine). Hidden or risky records are counted, never
    named. Empty searches add abstain_gate= to --metadata-file; packs with
    no selection add a "Recall Gates" section.
  3. Brief compact-on-limit — when the brief would omit items, entries are
    rewritten to one line each (title + ref) before anything is dropped.
    --no-compact or LLM_BRAIN_BRIEF_COMPACT=0 restores 0.8 behaviour.
  4. Standing-constraint re-injection — records with
    brain_constraint: prohibition|non-amplification|commitment, a
    constraint:* label, or a working add --kind constraint item are
    re-injected into packs every K turns when the host passes --turn N
    (K = LLM_BRAIN_CONSTRAINT_EVERY, default 8). llm-brain constraints.
  5. Intention aftereffects — intention add --once intentions go quiet
    after a pack surfaces them; intention quiet ID --until ISO snoozes; packs
    name recently completed intentions whose cue matched ("do not repeat").
  6. Folder summary indexes — llm-brain browse build|show writes derived,
    reproducible indexes/summaries/*.md for okf/ and episodes/ folders
    (month-grouped, lifecycle state, restricted/scoped records counted only).
  7. Progressive state disclosure — llm-brain state index (thin
    key/ref/summary/hash), state open KEY|REF, incremental
    state index --since FILE [--changes-only] (added/updated/removed), and
    pack build --state-index.
  8. Cascading invalidation — llm-brain invalidate preview|apply --from REF
    adjudicates KEEP / STALE / REPLACE / UNKNOWN: explicit supersession and
    older holders of the same state key (implicit, no supersedes needed) are
    REPLACE; depends_on/derived_from dependants are STALE, propagated up to
    3 hops; supporting records with their own sources are KEEP, otherwise
    UNKNOWN; conflicts are UNKNOWN. apply records each outcome as an
    outcome:* label targeting the trigger; nothing is retracted or edited.
  9. Sufficiency-gated expand-or-stop — llm-brain recall-check PROJECT QUERY
    fetches in batches and reports sufficiency (query-term coverage), missing
    terms, contradiction count and continue-utility, stopping at
    sufficient, no-gain, budget or exhausted. pack build --sufficiency
    selects only as many records as the loop needed. No learned controller.
  10. Working memory — llm-brain working add|list|done|drop keeps
    short-horizon to-dos, bindings and constraints in an append-only
    working/items.tsv, separate from OKF and excluded from search; open
    items appear in the brief and in packs (--session scopes them).
  11. Intention lifecycle — intention revise --reschedule|--override
    typed patches (appended to intentions/ID.patches.tsv, old values kept),
    intention board (formed → revised → filtered-due → quiet → decided),
    and intention observe [--within-days N], which inspects the observed
    state key (--observe KEY on add) before an intention is due.
  12. Not built (net-zero cap) — replaced by label lineage above.
  13. Memory-Gym task family — evals/real/tasks/memorygym.py: single-hop,
    multi-hop and multi-session-summary tasks plus tasks for folder summaries,
    progressive state, implicit invalidation, sufficiency and label lineage
    (8 memory + 1 control). The bundle stays runnable with Codex on macOS;
    coding and research prompts are unchanged so scores remain comparable.

Neural Expansion in Hermes

  • /neural-expansion [demo|export] slash command, registered by the
    Hermes plugin. It writes a new self-contained page under
    $HERMES_HOME/llm-brain/neural-expansion/ (directory 0700, file 0600) and
    replies with its file:// link. demo is synthetic data only.
  • Dashboard page (/neural-expansion tab) via Hermes' dashboard plugin
    system. Its backend (/api/plugins/llm-brain/) is mounted by Hermes only
    when llm-brain is in plugins.enabled, refuses non-loopback clients, and
    returns the page for a sandboxed srcdoc iframe with a no-network CSP.
  • Real-brain export is opt-in: "neural_expansion_export": true in
    llm-brain.json, then the CLI's existing gate, principal filter and
    owner-only output apply. Nothing is served beyond Hermes' own dashboard
    and no network is used.
  • Exports now carry active lineage labels on visible nodes and label
    edges between visible records (reasons and actors are never exported).

Upgrade

No vault migration is needed. Upgrading from 0.8.x or 0.7.6 keeps every record, custody file, review,
feedback item and receipt unchanged (tested for both). New data lives in new
files created on first use (lineage/, working/, indexes/summaries/,
intentions/*.patches.tsv). A 0.8.x upgrader does not know the new
lib/memory_lineage.py helper; standalone installs upgraded by it should run
llm-brain upgrade repair-standalone --source RELEASE_DIR once. Until then
the new commands report the missing helper and existing commands fail open.

Defaults and decisions

  • Labels never change default ranking or filtering; retired/outcome:*
    only filter with --without-label. Search and gates agree on eligibility.
  • Recency re-rank, sufficiency packs, state index in packs, constraint
    re-injection (--turn) and fire-once intentions are opt-in.
  • Brief compaction is on by default but only triggers when the 0.8 brief
    would have dropped items.
  • Working-memory, completed-intention and lineage-label pack sections only
    appear when that data exists.
  • Hermes: the slash command and dashboard page are registered by default;
    real-brain export stays off until neural_expansion_export: true.
  • No new dependencies; all derived files are rebuildable.

LLM-Brain v0.8.2

Choose a tag to compare

@w00ch3a w00ch3a released this 09 Oct 22:53

LLM-Brain v0.8.2

Released 2026-10-10.

This patch release surfaces corrections and retractions to agents, makes index
builds work on network shares without symlink support and on legacy projects,
and makes evidence recall fast on slow storage. Storage schema 3 and canonical
OKF v0.2 are unchanged.

Recall of corrections and retractions

  • "Corrections and Retractions" in packs and briefs. Active records that
    supersede another record, and retractions with their reason, are shown in
    their own section whether or not they share words with the task (most
    task-relevant first, at most LLM_BRAIN_PACK_NOTICES, default 6). The
    section says that a local copy of a corrected or retracted document is the
    outdated version, and asks agents to cite the correction or retraction
    notice together with the original. Superseded or retracted content is not
    shown, and nothing is shown for records hidden from the current principal.
  • Fuller brief summaries. Briefs keep whole leading sentences up to the
    summary cap, so "Correction: X corrects Y." keeps the corrected value.
    Retraction lines name the retracted record and the reason.
  • Brief header. Current sources outrank memory, except where memory
    records a later correction or retraction of that same source.
  • Keyword intentions also match simple inflections: "recommend" fires a
    keyword:recommendation trigger, reported as keyword-stem~.

In the repository's real-agent evaluation (10 research memory tasks, 3
repeats, Codex), memory-on pass rate rose from 30% to 67% (memory-off 10%).
The r10 grader check was also corrected: it failed answers that cited a
withdrawn dataset while saying it was withdrawn.

Index builds and recall on network storage

  • No-symlink filesystems. index build aborted on CIFS/SMB mounts
    without mfsymlinks after publishing the new generation, which left
    rebuild-state.json at building (maintenance: rebuild-pending).
    Compatibility aliases now fall back to copies. Rerunning index build
    clears a stuck state.
  • Legacy projects without audit.v2.tsv. Audited writes, including
    index build, no longer abort; the hash chain starts fresh. No migration is
    performed.
  • Faster evidence recall without an evidence index. Recall no longer
    opens every source file each time. Source metadata is cached in the derived
    indexes/evidence-sources-meta.tsv and re-read only for new or modified
    sources. On a 1,305-source project on a CIFS NAS, bridge recall fell from
    19-33 s to 3-5 s with identical output.

Upgrading

No vault migration is required. Upgrade as for 0.8.1: standalone and plugin
hosts with upgrade check, upgrade apply and upgrade verify; Hermes
installs replace $HERMES_HOME/plugins/llm-brain with the Hermes archive and
point cli_path at the 0.8.2 CLI, then restart Hermes. Rerun
index build PROJECT_ID on projects whose maintenance status shows
index:primary as rebuild-pending.

Compatibility

No daemon, database or new dependency is introduced.

LLM-Brain v0.8.1

Choose a tag to compare

@w00ch3a w00ch3a released this 09 Oct 07:45

LLM-Brain v0.8.1

Released 2026-10-09.

This patch release fixes stale-lock recovery on Linux and a long-task pack
failure, adds opt-in Hermes plugin settings, and adds a reproducible Hermes
plugin archive. Storage schema 3 and canonical OKF v0.2 are unchanged.

Fixes

  • Stale locks on GNU/Linux. lock_mtime chained stat -f '%m' and
    stat -c '%Y' on stdout. GNU stat -f means --file-system: it printed
    filesystem details and failed, and that text was mixed into the timestamp.
    The result was never a number, so an ownerless lock directory (for example
    one left by a process that died between creating the lock and writing its
    owner file) was never treated as stale. Writers then waited forever, or
    until LLM_BRAIN_LOCK_WAIT_SECONDS. Each probe is now captured separately
    and must be a bare integer; GNU stat -c is tried before BSD/macOS
    stat -f. macOS behaviour is unchanged. tests/lock-portability-self-check.sh
    checks both stat dialects with shims, recovers an old ownerless lock and
    confirms that a fresh one is still respected.
  • Long pack build --task text. Pack file names now cap the task part at
    80 characters, with the hash suffix keeping names unique. Before, long task
    text failed with "File name too long".

Hermes plugin

The six selector keys written by hermes memory setup are unchanged. New
settings are opt-in: they are read when present in llm-brain.json and never
written as defaults.

  • Local Laya recall filter (laya_url, off by default). When set, a recall
    with up to four results is sent to a local typed-decisions endpoint, and only
    results it rates relevant are kept. The endpoint must be localhost or a
    loopback, private or link-local IP literal. Redirects, proxies, embedded
    credentials and public addresses are refused. Sensitive-looking text is
    redacted before sending. The filter is fail-open: a timeout
    (laya_timeout_seconds, default 4), connection error, malformed answer,
    unclear margin or too many candidates returns the normal recall, with the
    reason in an additive local_laya field.
  • Bridge timeouts stop the whole process group. A timed-out recall or
    capture used to stop only the CLI shell, leaving its descendants running
    and holding or waiting for the vault lock on slow (for example NAS)
    storage. Bridge calls also set LLM_BRAIN_LOCK_WAIT_SECONDS=2 unless the
    environment already sets it, so lock contention fails quickly and capture
    retries from the outbox.
  • context_engine_registration (always by default, or when-selected).
    Hermes has one plugin context-engine slot. when-selected registers
    LLM-Brain's engine only while context.engine is llm-brain, leaving the
    slot free for another context-engine plugin. Memory-provider recall and
    capture are unaffected.
  • Setup rewrites of llm-brain.json keep keys owned by other integrations in
    the same file instead of dropping them.
  • Secret redaction also covers AWS access-key IDs and AWS key assignments.

See the Hermes plugin guide.

Packaging and evaluation

  • scripts/package-hermes-archive.sh builds
    dist/llm-brain-VERSION-hermes.tar.gz and its .sha256. The archive is
    byte-reproducible, with fixed owners, timestamps and 0644/0755 modes (the
    hand-built 0.8.0 archive used owner-only modes). The release gate rebuilds
    and compares it.
  • The real-agent evaluation suite (evals/real/, checked by
    tests/real-eval-self-check.sh) runs synthetic coding and research tasks
    with memory on and off through codex exec, graded by hidden tests and a
    deterministic answer key. It is repository-only and not packaged.

Upgrading

No vault migration is required. Standalone and plugin hosts upgrade as usual
with upgrade check, upgrade apply and upgrade verify. Hermes installs
replace $HERMES_HOME/plugins/llm-brain with the contents of the Hermes
archive and point cli_path at the 0.8.1 CLI. Existing llm-brain.json files
keep working unchanged. Hermes picks up the new plugin after a restart.

Compatibility

No daemon, database or new dependency is introduced. The Laya filter uses only
the Python standard library and talks to an endpoint you run yourself.