Skip to content

v0.60.809.0

Latest

Choose a tag to compare

@github-actions github-actions released this 05 Dec 19:55
2006bf8

Stable release v0.60.809.0: every change since the previous stable release, v0.60.806.0, newest first.

What changed since v0.60.806.0: 8 changes.

Behavior changes (1):

  • OpenClaw's gbrain-context-engine plugin now owns compaction by default using context folding with unfold(id) instead of immediately delegating to OpenClaw's summary compaction.

Plus 7 fixes and 0 additions. gbrain doctor --only behavior_changes lists every change in full.

[0.60.809.0] - 2026-12-05

Capture off-topic entity updates buried in long conversations, recover cross-entity leadership and vendor history, and close prior slot windows at unslotted state transitions.

Fixed nine community-reported bugs across extraction limits, stale sync hold counters, doctor checks, dream pattern evidence counting, Google Calendar dating, and Markdown table wikilinks.

Importing Markdown files with unquoted template tags in YAML frontmatter (such as Svelte {@render ...} and {#if ...} titles) now succeeds without data loss, and retrying a local PGLite sync after an abrupt kill (SIGKILL) now recovers automatically from stranded locks.

Routine memory writes, page edits, and tool discovery now emit destructiveHint as false in MCP tool annotations so approval-gated clients no longer deadlock on normal writes.

Codex worker capture now falls back to inherited CODEX_THREAD_ID when detached hooks lack process ancestry, and conversation fact extraction binds unparented owner claims on verified single-human owner transcripts.

Idle Postgres pools now drain unused connections through LIFO reuse, and Supavisor EMAXCONN refusals are retried and classified as pool exhaustion.

Managed Dream synthesize now re-attaches completed child jobs with one batched indexed lookup instead of scanning the job history per transcript.

Legacy synthesize_concepts pages stay capped at agent_written during gbrain trust claim-sources and backfill.

OpenClaw's gbrain-context-engine now folds older finished tool outputs into compact labelled notes with an on-demand unfold(id) tool instead of immediately running summary compaction.

Hardened standalone binary self-update locking, streaming SHA-256 verification, stale unpack cleanup, release completeness checks, and key-rotation recovery hints.

The optional Rust engine's vector search no longer reads a record for every chunk that ties on distance, so a small result limit bounds its work.

Fixed

  • Prioritized durable state changes, updates, and corrections about named entities ahead of routine hobby details and assistant advice in fact extraction, and added deterministic salience-preserving cap selection when a turn returns more candidates than the per-turn limit.

  • Added cross-entity mention recovery in readSlotHistory so dated leadership, vendor, and relational facts filed under a counterpart entity slug are returned when querying the referenced entity, with strict word-boundary, extended-name, privacy, and withdrawal isolation.

  • Disabled extended thinking on the short conversation slot-tagging call so thinking-by-default models no longer exhaust the 400-token output budget on reasoning tokens and leave segments untagged, skipped assistant recommendations during slot tagging, and rejected self-referential lead/vendor/manager/employer slots.

  • Updated deriveSlotEnds, slotWindows, and applySlotEnds so unambiguous non-speculative unslotted state transitions (including reported updates attributed to other) close prior slotted stints cleanly instead of letting an older value span across a newer one.

  • Honored --limit N on gbrain extract --stale across both link and mention passes, dry-run previews, managed brains, and owner-delegated runs, while rejecting non-positive or non-integer limits (#10993).

  • Reconciled stale sync-hold-summary counters to zero inside a locked transaction when gbrain sources retry-held finds zero remaining hold records for a source incarnation (#11032).

  • Checked $CLAUDE_CONFIG_DIR/.claude.json in gbrain doctor harness_wiring for both active MCP registration lookup and bootstrap unreadable-config detection (#11031).

  • Reported warn with unknown health instead of absent-table ok when gbrain doctor secret_store encounters permission-denied or non-missing-table database read failures (#11056).

  • Warned as bounded-unknown in gbrain doctor purge_mirror when recent purge tombstones exceed the 10,000-request scan cap while keeping exact 10,000-row scans clean (#11055).

  • Counted dream.patterns.min_evidence over distinct origin transcripts instead of raw reflection pages across owner, external, and cycle-sliced passes (#11068).

  • Excluded archived sources from gbrain doctor multi_source_drift on both local and remote report paths (#11076).

  • Added local-day event_date frontmatter to rendered Google Calendar event pages so evening events in negative-UTC time zones date to their local day (#11081).

  • Stripped trailing escape backslashes from Obsidian table-escaped wikilink aliases ([[name\|alias]]) across filesystem link extraction, frontmatter unwrapping, and whitespace-padded generic wikilinks (#11006).

  • Unquoted single-line template directives and closed bracketed titles in YAML frontmatter (such as {@render ...}, {#if ...}, {% liquid %}, and [WIP] ...) are now quoted automatically during import and sync instead of being rejected as unclosed flow collections, while genuinely unclosed brackets and protected visibility keys remain held.

  • gbrain import now notes on stderr when unquoted YAML frontmatter values were recovered by quoting.

  • Read-only PGLite lock inspection (inspectLockHolder, peekLock, and serve delegation probes) now verifies the OS kernel lock for kernel-v1 datastores, so stale .gbrain-lock/lock metadata left behind by a killed gbrain serve no longer blocks gbrain sources or gbrain sync when a PID is reused.

  • Persistent PGLite datastores now record pre-existing gbrain_cycle_locks rows when opening under the exclusive OS kernel lock and reclaim those abandoned rows automatically on gbrain sync, gbrain sync --break-lock, and dead-lock sweeps while keeping mutual exclusion intact for active writers.

  • Reclassified routine versioned and additive memory operations — including remember, put_page, put_pages, capture, edit_page, commit_page_upload, correct, request_tools, add_link, confirm_memory, extract_facts, extract_entities, ontology_propose, restore_page, think, questions_pin, questions_refresh, propose_decide, sources_add, put_skill, import_skill_proposal, takes_update, takes_supersede, sync_brain_skills, connector_sync, chronicle_backfill, submit_agent, run_onboard, run_skillopt, and entity_identity_link — to emit explicit destructiveHint as false in both OP_DESTRUCTIVE and curated inline MCP annotations.

  • Preserved explicit destructiveHint as true for genuinely destructive, irreversible, unversioned-overwrite, removal, cancellation, revocation, spend-reversal, undo/revert, page-deleting sync/job, policy-override, cache-wipe, and migration operations (including delete_page, purge_deleted_pages, forget, forget_fact, purge_fact, unpurge_page, delete_skill, sources_remove, extraction_review, log_action, put_raw_data, file_upload, file_register, sync_brain, submit_job, retry_job, resume_job, replay_job, takes_rebuild, join_brain, household_add, and household_mark).

  • Regenerated the MCP operation manifest and tool reference docs, added an upgrade notice superseding the earlier annotation posture, and added regression assertions covering both live operations and the cold-start manifest across the default starter surface.

  • Codex worker sessions run under detached or external SessionEnd hooks without GBRAIN_HOOK_ANCESTRY are now classified as agent-launched when an inherited CODEX_THREAD_ID differs from a known current session id, while top-level human sessions, missing or unknown session ids, self-matching thread ids, interactive sessions, and hosted claude remote-control sessions remain attributed to the owner (GST-5200).

  • CODEX_THREAD_ID is now quarantined from cwd .env files in env-trust.ts so an untrusted repository checkout cannot spoof worker detection to suppress owner capture (GST-5200).

  • During extract-conversation-facts, pages carrying a trusted speaker_owner marker where the owner speaker is the sole human speaker in the window now bind user-attributed facts (attributed_to="user") with a null or generic self-reference entity (user, owner, self, me) to the resolved owner entity strictly after third-party entity resolution, clean no_mention inference, and withdrawal checks, while carried free relinks win atomically under the publication lock before duplicate detection and explicit non-generic owner labels resolve on multi-human windows (GST-5200).

  • Switched the vendored Postgres driver (vendor/postgres, patches/postgres@3.4.9.patch) to hand idle connections out newest first via Queue.pop for both statements and reserve(). Under stock FIFO order, periodic background checks rotated across every idle socket and prevented connections from reaching their 20-second idle_timeout, allowing multiple resident gbrain serve processes on one host to saturate a connection pooler's client cap.

  • Classified Supavisor transaction-mode EMAXCONN (max client connections reached) refusals as transient pool_exhausted errors across the retry matcher, access classifier, MCP error envelopes, and persistence contention handling instead of falling through to config_error.

  • Added bounded jittered backoff for connectWithRetry, surfaced pool-sizing guidance naming GBRAIN_POOL_SIZE and GBRAIN_DIRECT_POOL_SIZE when connect fails due to pool exhaustion, and immediately closed failed connect pools in both module and worker-instance paths so side connections do not hold slots until idle timeout.

  • Contributed by @kozkozkoz (Supersedes #11033).

  • On a managed brain, Dream synthesize now looks up completed child jobs for already-synthesized transcripts with a single exact-key idempotency_key = ANY($1::text[]) query served by uniq_minion_jobs_idempotency, replacing the per-transcript OR left(idempotency_key, ...) sequential scan that could time out on large job histories (#11044).

  • Chunk key matching now requires exact unchunked keys or strict :c<i>of<n> suffixes so unrelated job keys sharing a :c prefix are never attached (#11044).

  • If gbrain jobs prune deletes a re-attached completed child between lookup and completion checks, Dream drops that pruned child cleanly while continuing to fail the phase if a newly submitted child disappears (#11044).

  • Cap pages whose frontmatter synthesized_by starts with synthesize_concepts (and their child facts, takes, and timeline entries) at agent_written in frontmatterTrustCaps, frontmatterTrustCapsSql, and gbrain trust backfill so gbrain trust claim-sources never lifts pre-#7914 model-written concept pages to operator_curated.

  • Surface already-lifted legacy synthesize_concepts pages through gbrain trust claim-sources --relower and gbrain doctor trust_sources_unclaimed.

  • Co-located the persistent standalone binary swap lock in the canonical target binary directory keyed by target filename (mount-path independent), aligning the lock's group and 0660 mode inside group-writable non-sticky prefixes via fchown/fchmod on the open descriptor, reporting exact lock/directory permissions on EACCES/EPERM, and coordinating with the legacy ~/.gbrain/locks/ lock during rollout while skipping it only when confirmed absent in a read-only HOME.

  • Streamed SHA-256 calculation in bounded 512 KiB chunks inside defaultComputeDigest and reused computed digests across build-provenance attestation and signed-manifest checks so ~300 MB Linux binaries verify cleanly on 512 MiB hosts.

  • Allowed stale stage-directory cleanup to reclaim updater-owned .gbrain-unpack.* subdirectories left behind after a SIGKILL mid-extract when the binary directory, staging directory, and unpack entries are owner-confined and not group- or world-writable, refusing symlinks, unexpected files, or fresh unpack directories.

  • Hardened the release workflow completeness check with strict jq payload validation and positive release-API SHA-256 digest verification on downloaded SHA256SUMS and .sig files so missing metadata or transient CDN errors abort while genuinely corrupt or 0-byte published metadata exits 2 to trigger repair.

  • Replaced unpinned default-branch Bun reinstall hints on rotated or revoked release signing keys with #stable reinstall instructions targeting the resolved binary path (without pinning unverified or revoked release tags, downgrading live alpha binaries, or bypassing the swap lock, and handling non-canonical binary filenames explicitly), added Homebrew recovery messaging on --channel stable, and enforced a hard SIGKILL 10-second timeout on --version probes with a 15-second default swap lock wait.

  • Rust engine (off by default): when many chunks share one embedding, searchVector read and held the chunk record of every tied chunk to order the tie by chunk id, whatever the limit. The search now takes a run of equal distances one window at a time, ordered by chunk ids the in-memory vector index keeps. A 10,000-chunk tie under limit: 1 read 10,000 chunk records per search before the fix and 101 after: 100 for the window and 1 to recheck the returned row. The first window search after the index is rebuilt also reads each chunk vector's record once, to learn its chunk id (10,101 for that tie). The search reads each page in the window once for its filters, and reads a page again only for a row it returns. Results are unchanged, row for row, on PGLite, Postgres and Rust.

  • Rust engine (off by default): on a transaction that several threads share, a vector search now waits for a write running on another thread to finish, as statements on one Postgres connection run one at a time. A search therefore never mixes records from before and during that write, and never keeps a vector index built from writes that are then rolled back.

Added

  • Added deterministic context folding in src/core/context/folding.ts wired into src/core/context-engine.ts and src/openclaw-context-engine.ts, replacing older finished tool results outside the recent active tail window with compact notes carrying fold id, tool name, char/byte/line size, and first/last preview lines.
  • Added bounded per-session folded-output storage under ~/.gbrain/context-folds/ with strict session isolation, restart persistence, owner-only permissions (0700/0600), and FIFO entry/byte/session eviction.
  • Registered the direct-only unfold(id) tool on the OpenClaw plugin surface and declared it in openclaw.plugin.json so agents can expand retained outputs verbatim on demand and receive typed error codes (invalid_fold_id, fold_not_found, fold_evicted) for missing or evicted ids.
  • Added opt-out and tuning controls via plugins.entries.gbrain-context-engine.config.contextFolding, file-plane ~/.gbrain/config.json context_folding, and GBRAIN_CONTEXT_FOLDING=0, with automatic fallback to OpenClaw's runtime compactor when folding falls short or custom compaction instructions are given.

[0.60.808.0] - 2026-12-05

Isolate snapshot-restored PGLite brain IDs and fix three intermittent test flakes.

Added six HTML comment markers to INSTALL_FOR_AGENTS.md and a unit test guard so automated install checks keep finding each setup command when the guide is edited.

The OpenClaw skill resolver plugin now pre-warms replacement workers asynchronously on library updates so active turns do not hit a cold respawn inside the 100 ms deadline.

Standalone binary updates now support offline post-quantum ML-DSA-65 release signatures alongside Sigstore provenance.

Restored the release scale validation workflow to 16-vCPU Ubicloud runners so the 600,000-page Postgres search latency check stays under its 3-second p95 limit.

The page-twin parity test no longer fails when two Rust writes land in the same millisecond.

Fixed

  • Re-randomized persistence_brain.brain_id when restoring an in-memory PGLite snapshot so separate test brains no longer collide on shared local-writer files.

  • Replaced the in-place manifest overwrite in the Rust addon identity test with an atomic rename so fast Linux filesystems always record a distinct file inode.

  • Used a deterministic high-entropy token ID in the guest-note output redaction test so random low-entropy UUIDs no longer skip the high-entropy redaction rule.

  • Subtracted PGLite's double-counted WebAssembly linear memory from the file-drift repair heap test so WASM memory growth is not misread as a JavaScript memory leak.

  • Added proactive state-file watching, explicit worker-affecting fingerprinting (library_sha256), and asynchronous replacement worker pre-warming in the gbrain-skill-resolver OpenClaw plugin (code version 17). When the resolver library updates, active turns keep running on the existing warm worker with catalog rebuilds fenced off until the replacement warms up and swaps in atomically.

  • Added commit-acknowledged retirement for replaced workers, per-catalog staging warm budgets, and isolated staging backoff with cold-swap fallback so replaced workers finish in-flight session commits before exiting and slow multi-catalog hosts never loop on staging timeouts.

  • Preserved the 200-skill large-catalog deadline floor at plugin code version 16 (OPENCLAW_LARGE_CATALOG_PLUGIN_VERSION) in gbrain doctor and updated the version 16 outdated-plugin warning so gateways still running version 16 report accurate deadlines after the bump to version 17.

  • Switched the soak job in .github/workflows/production-soak.yml back from ubicloud-standard-8-ubuntu-2404 to ubicloud-standard-16-ubuntu-2404 after 8-vCPU runs measured 3.2 to 4.2 second p95 search latency against the 3-second release gate while 16-vCPU runs pass at 1.5 to 1.6 seconds.

  • Kept the daily release-validation schedule, ubuntu-latest planning job, cancel-in-progress concurrency setting, and 4-vCPU default in ubi-runner.sh unchanged, and updated the workflow tests and runner sizing docs.

  • The page-twin parity test (test/engine-parity/page-twin.test.ts) picked the fresher of two twin pages by comparing millisecond stamps. The Rust engine can write both pages inside one millisecond, so the test read a tie and kept the wrong page, and the Rust run failed while PGLite passed. The test now compares the twin times in microseconds, and the PGLite and Postgres runs stamp the private-twin pair with exact times through a new test fixture. No product behavior changes, and the twin choice that gbrain get, search and recall make is the same.

Added

  • Marked the six install and harness setup routes in INSTALL_FOR_AGENTS.md with stable HTML comments (step1-default, step3-claude-code-codex, step3-otherwise, release-binary, if-openclaw, and if-hermes) and regenerated llms-full.txt.

  • Added deterministic verification in test/build-llms.test.ts (run by bun run verify) asserting that every marker appears once, precedes an extractable shell or inline command, and matches the expected CLI or installer entrypoints.

  • Release builds now generate a canonical SHA256SUMS manifest covering all release artifacts and sign it with Bun's built-in FIPS 204 ML-DSA-65 inside a master-restricted signing job once a release key is provisioned and pinned.

  • Added scripts/release-keygen-mldsa65.ts and scripts/release-sign-mldsa65.ts for key generation, offline key-rotation endorsements, deterministic manifest signing, and pre-upload / published-release verification with zero new npm dependencies.

  • Added an offline ML-DSA-65 verifier, endorsement chain resolver, and pinned keyring in binary self-update that validates signed manifests, tag bindings, archive hashes before extraction, and extracted binary hashes before execution, while preserving Sigstore fallback for historical pre-enforcement tags.

  • Added provisioning, rotation, and revocation steps in docs/RELEASING.md.

Security

  • Binary self-update now stages downloads in private 0700 directories with exclusive 0600 file creation, serializes the final version check and swap under an interprocess lock, enforces download size caps, checks exact --version tokens instead of substrings, and rejects mismatched or downgraded tags before downloading assets.

[0.60.807.0] - 2026-12-05

A new nightly check on master runs each storage engine (PGLite, Postgres, Rust) from a fresh gbrain init and reports import, memory-verb and retrieval results, so a Rust engine break shows up before the counted engine benchmark.

The optional Rust store engine gains keyword search, vector search, guest pages and more of its shared store code. The Rust engine stays off by default.

Added

  • scripts/engine-pregate.ts and the Engine pre-gate nightly workflow. Per engine, from a fresh gbrain init brain (--pglite, --url, or a config that names the rust engine, which gbrain init keeps): an import smoke test, the 32 checks of the existing memory-verb conformance suite over the CLI and over MCP (each marked pass, refuse with the error text, differ, expected-difference for the remote-caller fence case over the trusted CLI, or skip), managed storage per engine as information, and 48 LongMemEval-S questions through keyword, vector and hybrid search with P@5, R@5, MRR and nDCG@5 against a stored baseline. Report only: no quality threshold. The workflow fails when the Rust addon is missing, when this run did not build it, or when the Rust engine did not get a working brain (its import and read-back failed, or retrieval was not whole: an errored, degraded or cut-short question, or a search arm not scored on every question); the report then shows Rust engine: FAIL with the reason. While master's Rust engine refuses every import for its missing persistence_journal capability, the report and the workflow error say so in plain words and call it expected until the Rust engine parts land; the run still fails. It is named as expected only when nothing else in the Rust run failed: a retrieval failure or a verb-suite stop beside it is reported as its own failure. nightly-watch does not watch this workflow, so a failure shows only as a red scheduled run; no issue is filed. All of an engine's LongMemEval questions share a 15-minute budget, and an engine that would start after 60 minutes is reported as not run, and every gbrain call (init, the import smoke test, both verb suites) ends by one run deadline, so the report and the Rust check are always written inside the 90-minute step. Each question's restore compares file contents, so a store file changed in the same second at the same size is put back. The scratch brains are removed when a run fails, too. A gbrain call that runs past its 180 s limit stops that engine's checks with a recorded failure, and the other engines and the report still run; so does a gbrain call that cannot start. A keyword search that finds nothing scores 0 and counts in the mean. The embedding cache keeps only a whole response: one finite vector of the expected width per input; a malformed response caches nothing. Deltas are shown only against a baseline of the same sample, and only when every question ran; a sample the time budget cut short gets no delta and is never written as the baseline. The run removes provider keys and embedding overrides from its environment, so no benchmark text reaches a paid provider. A pull request that changes the pre-gate runs it too. Embeddings use a local Ollama model, so a run costs nothing.

Changed

  • The Rust store now carries its own keyword search index, which folds new writes in small steps so that a page save does not wait for a full index rebuild.
  • The Rust store now stores and searches page vectors.
  • The Rust store now keeps guest pages and their promotions, and the read paths that the doctor, export and import commands use.
  • The Postgres and PGLite engines gain a few read-only helpers that the Rust store's checks use. They do not change what a brain on either engine returns.
  • gbrain engine shadow seed now stops with the reason null_array_element when a Chronicle ledger row holds an array with a NULL element, which Postgres allows but no gbrain writer makes. The message names the row by its key and says how to fix that one row (an SQL line for a flat array, a hand edit otherwise), where it used to stop with a generic store error.
  • Nothing else changes for a brain on PGLite or Postgres.