Commit Graph

161 Commits (acd8966ff054511b541ab1020377055b2694de09)

Author SHA1 Message Date
Vincent Koc 19b7fbaa73 fix(memory): honor mocked batch fetch clients 8 months ago
Peter Steinberger 67d6fc8847
chore(plugins): sync versions to 2026.4.4 8 months ago
Peter Steinberger dd771f1dc6
fix(ci): repair plugin boundary and bootstrap regressions 8 months ago
Vincent Koc 0609bf8581
feat(memory): harden dreaming and multilingual memory promotion (#60697)
* feat(memory): add recall audit and doctor repair flow

* refactor(memory): rename symbolic scoring and harden dreaming

* feat(memory): add multilingual concept vocabulary

* docs(changelog): note dreaming memory follow-up

* docs(changelog): shorten dreaming follow-up entry

* fix(memory): address review follow-ups

* chore(skills): tighten security triage trust model

* Update CHANGELOG.md
8 months ago
Vignesh 4c1022c73b
feat(memory-core): add dreaming promotion with weighted recall thresholds (#60569)
* memory-core: add dreaming promotion flow with weighted thresholds

* docs(memory): mark dreaming as experimental

* memory-core: address dreaming promotion review feedback

* memory-core: harden short-term promotion concurrency

* acpx: make abort-process test timer-independent

* memory-core: simplify dreaming config with mode presets

* memory-core: add /dreaming command and tighten recall tracking

* ui: add Dreams tab with sleeping lobster animation

Adds a new Dreams tab to the gateway UI under the Agent group.
The tab is gated behind the memory-core dreaming config — it only
appears in the sidebar when dreaming.mode is not 'off'.

Features:
- Sleeping vector lobster with breathing animation
- Floating Z's, twinkling starfield, moon glow
- Rotating dream phrase bubble (17 whimsical phrases)
- Memory stats bar (short-term, long-term, promoted)
- Active/idle visual states
- 14 unit tests

* plugins: fix --json stdout pollution from hook runner log

The hook runner initialization message was using log.info() which
writes to stdout via console.log, breaking JSON.parse() in the
Docker smoke test for 'openclaw plugins list --json'. Downgrade to
log.debug() so it only appears when debugging is enabled.

* ui: keep Dreams tab visible when dreaming is off

* tests: fix contracts and stabilize extension shards

* memory-core: harden dreaming recall persistence and locking

* fix: stabilize dreaming PR gates (#60569) (thanks @vignesh07)

* test: fix rebase drift in telegram and plugin guards
8 months ago
Peter Steinberger 1e6e685347
fix: unblock cli startup metadata 8 months ago
Peter Steinberger 8e8f8d0745
test: trim more extension importOriginal usage 8 months ago
Peter Steinberger 6eca4e0136
test: trim extension partial mocks 8 months ago
Vincent Koc 7e3b48c254 test(ci): align memory fallback reindex assertion 8 months ago
Peter Steinberger d0d5b34b44
fix(ci): repair extension test regressions 8 months ago
Peter Steinberger f36ed7105f
test: reduce extension runtime partial mocks 8 months ago
Peter Steinberger 1a75fc9e05 fix: align latest-main gate drift on #60221 8 months ago
Vincent Koc 710c63edad test(extensions): use direct runtime capture helpers 8 months ago
Peter Steinberger 8988894ff7
build: prepare 2026.4.1-beta.1 release 8 months ago
upupc d766bfc6b2
fix(memory): preserve session indexing during full reindex (#39732)
Merged via squash.

Prepared head SHA: 0dbaf5fffbf9bd79d164e60a1b0dc02ddd93e69c
Co-authored-by: upupc <12829489+upupc@users.noreply.github.com>
Co-authored-by: altaywtf <9790196+altaywtf@users.noreply.github.com>
Reviewed-by: @altaywtf
8 months ago
chi cad3da52c9
fix(memory): prefer --mask over --glob for qmd collection pattern flag (#58736)
* fix(memory): prefer --mask over --glob for qmd collection pattern flag

qmd 2.0.1 silently ignores the --glob flag when creating collections,
causing all patterns (e.g. MEMORY.md, memory.md) to fall back to the
default **/*.md glob. This leads to collection conflicts when multiple
collections target the same workspace directory with different patterns.

The existing flag negotiation logic in addCollection() tries --glob
first (when collectionPatternFlag is null), and since qmd accepts the
flag without error, OpenClaw never falls back to --mask. The result is
that memory-root-{agent} gets created with **/*.md instead of MEMORY.md,
and memory-alt-{agent} fails with a duplicate path+pattern conflict.

Fix: default collectionPatternFlag to '--mask' so the working flag is
tried first. The fallback to --glob is preserved for older qmd versions
that may not support --mask.

* docs(changelog): note qmd collection flag fix

---------

Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
8 months ago
Peter Steinberger 4765ce3ad7
test: drop low-signal extension registration smokes 8 months ago
Peter Steinberger 9ea7e06460
build: bump version to 2026.4.1 8 months ago
Peter Steinberger 213a704b71
fix: unblock 2026.3.31 release preflight 8 months ago
Peter Steinberger 2a60e34f2a
build: prepare 2026.3.31 stable release 8 months ago
Peter Steinberger 91be36ca4f
build: prepare 2026.3.31-beta.1 release 8 months ago
Peter Steinberger c425ef3e74
build: bump version to 2026.3.31 8 months ago
Peter Steinberger 59866dd253
fix(memory): restore readonly recovery helper seams 8 months ago
Peter Steinberger 4fb373466e
refactor: simplify memory recovery and test setup 8 months ago
Vincent Koc 3a5042b6cc fix(memory): surface qmd degraded vector status 8 months ago
Vincent Koc d2dcd6fca6
fix(memory): stagger qmd embed maintenance across agents (#58180)
* fix(memory): stagger qmd embed maintenance across agents

* fix(memory): keep qmd embed serialization in-process

* fix(memory): extend qmd embed lock wait budget
8 months ago
Vincent Koc 5707038e6c
fix(memory): preserve qmd query semantics and collection recovery (#58183)
* fix(memory): preserve qmd search queries and repair collection rebuilds

* fix(qmd): cover null-byte rebuild cycle
8 months ago
Vincent Koc 075645f5cb
fix(memory): use explicit qmd snippet line metadata (#58181)
* fix(memory): preserve qmd snippet line metadata

* Memory/QMD: preserve snippet span with partial line metadata
8 months ago
Shakker 020858647d test: fix qmd and discord ci regressions 8 months ago
Altay 910134b702 fix(memory): stabilize qmd collection scoping 8 months ago
Altay 9c25544e6c
test(ci): fix stale regression expectations (#57899) 8 months ago
Vincent Koc b7de04f23f
fix(memory): preserve shared qmd collection names (#57628)
* fix(memory): preserve shared qmd collection names

* fix(memory): canonicalize qmd path containment
8 months ago
Vincent Koc 118a497496
fix(memory): keep qmd session paths roundtrip-safe (#57560) 8 months ago
Vincent Koc 89dbaa87aa
fix(memory): add cli qmd session context (#57493) 8 months ago
Gustavo Madeira Santana fca8880968 Tests: reuse QMD availability mock type 8 months ago
Gustavo Madeira Santana 16b452040b Memory: fix QMD doctor contract typing 8 months ago
Vincent Koc 8623c28f1d
fix(memory): warn when qmd binary is missing (#57467)
* fix(memory): warn when qmd binary is missing

* fix(memory): avoid probing cached qmd managers

* docs(memory): clarify qmd doctor probe behavior

* fix(memory): probe qmd from agent workspace
8 months ago
Vincent Koc c142a396f4
fix(memory): rebind qmd collections on pattern drift (#57438) 8 months ago
Vincent Koc da35718cb2
fix(memory): add qmd mcporter search tool override (#57363)
* fix(memory): add qmd mcporter search tool override

* fix(memory): tighten qmd search tool override guards

* chore(config): drop generated docs baselines from qmd pr

* fix(memory): keep explicit qmd query override on v2 args

* docs(changelog): normalize qmd search tool attribution

* fix(memory): reuse v1 qmd tool after query fallback
8 months ago
Vincent Koc 9b33380fb6 fix(test): harden qmd release callback typing 8 months ago
Vincent Koc 5bac1aad04
fix(memory): support qmd glob collection flags (#57351) 8 months ago
Peter Steinberger f3bf7fe53a
chore: bump version to 2026.3.30 8 months ago
Vincent Koc d26d7c797b
fix(memory): add QMD sync parity hooks (#57354)
* fix(memory): add qmd sync parity hooks

* fix(memory): avoid blocking qmd session warm searches
8 months ago
hnshah 19113637e8
fix(memory): keep qmd embeddings active in search mode (#54509)
Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
8 months ago
dadgo 2885c65c74
fix(memory): point qmd config dir at nested path (#39078)
Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
8 months ago
Armand du Plessis b888741462
fix: QMD 1.1+ mcporter compatibility with legacy fallback [AI-assisted] (#54728)
* fix: QMD 2.0 mcporter compatibility with v1 fallback [AI-assisted]

QMD 2.0 unified all search modes under a single 'query' MCP tool
with typed sub-queries, replacing search/vector_search/deep_search.

- Default to QMD 2.0 'query' tool with {searches: [...]} format
- Auto-detect version on first call and cache for the session
- Fall back to v1 tool names if 'query' is not found
- Backwards compatible: v1 users get one retry then cached

AI-assisted: Built with Claude (Opus 4.6) via OpenClaw. Fully tested
against QMD 2.0 with mcporter 0.7.3 daemon. v1 fallback path not
live-tested (no v1 instance available). Code reviewed and understood.

* test: add QMD v2 tool format and v1 fallback tests

- Verify mcporter bridge uses 'query' tool with {searches: [...]} format (v2)
- Verify fallback to 'deep_search' with {query, limit} format when v2 not found
- Verify v1 fallback logs a warning for visibility

* fix: address review feedback — multi-collection v1 fallback + test cleanup

- Fix multi-collection v1 fallback: resolve effectiveTool at the top
  of runQmdSearchViaMcporter so stale 'query' tool names from the
  loop are corrected once qmdMcpToolVersion is set to 'v1'
- Assert callCount in v1 fallback test (one v2 attempt + one v1 retry)
- Remove spurious global state reset (qmdMcpToolVersion is per-instance)

* docs: correct version references — breaking change was QMD 1.5, not 2.0

The MCP tool removal (search/vector_search/deep_search → query) happened
in QMD 1.5, not 2.0. QMD 2.0 was the SDK/library refactor.
Updated all comments, test names, and documentation to reflect this.

* fix: respect searchMode when building v2 mcporter queries

When searchMode is 'search' (BM25), only send lex sub-query.
When 'vsearch', only send vec. Default 'query' sends all three
(lex + vec + hyde) for full hybrid search with reranking.

Previously all three sub-queries were always sent regardless of
the configured searchMode, which could trigger unnecessary vector
embedding and HyDE LLM work on setups explicitly requesting
lexical-only search.

Addresses Codex P2 review feedback.

* docs: correct to QMD 1.1.0 — that's the actual version that removed the tools

Per CHANGELOG.md, MCP tools search/vector_search/deep_search were removed
in QMD 1.1.0 (2026-02-20), not 1.5 (which doesn't exist). Versions go
1.0.7 → 1.1.0 → 1.1.1 → 1.1.2 → 1.1.5 → 1.1.6 → 2.0.0.

* fix: remove redundant v1 guard (race condition) + tighten error matching

1. Remove qmdMcpToolVersion !== 'v1' guard from catch block. It's
   redundant (effectiveTool === 'query' already prevents infinite retry)
   and introduces a race condition: concurrent searches that both probe
   with 'query' while version is null would fail after the first sets
   version to 'v1'.

2. Tighten isToolNotFoundError regex to require 'Tool' near 'not found'
   (within 40 chars, no sentence boundary). Prevents false-positives
   when user query text in the mcporter args contains both words.

Addresses Greptile P1 (concurrent-search race) and Codex P2
(overly broad error matching).

* fix: address claude code review — type safety, minScore docs, explicit switch

- Restore type union for tool param instead of bare string
- Add comment explaining minScore omission for v2 (QMD 1.1+ uses
  its own reranking pipeline, no minScore parameter)
- Make buildV2Searches switch exhaustive with explicit case 'query'

* fix: resolve CI failures — oxfmt formatting + TypeScript type errors

- Run oxfmt to fix formatting issues
- Add union return type to resolveQmdMcpTool() and
  runMcporterAcrossCollections() tool param to satisfy tsc
  (string was not assignable to the union type)

* fix(memory): align qmd query collection filters

* fix(memory): narrow qmd missing-tool fallback detection

* fix(memory): ignore qmd timeout text for v1 fallback

---------

Co-authored-by: Vincent Koc <vincentkoc@ieee.org>
8 months ago
Peter Steinberger 8861cdbb6f
refactor(plugin-sdk): untangle extension test seams 8 months ago
Peter Steinberger f1af7d66d2
chore: bump version to 2026.3.29 8 months ago
Vignesh Natarajan 1a0c3bf400
Memory: fix FTS-only branch compile on rebased main 8 months ago
Vignesh Natarajan 598f539be5
Memory: keep FTS-only indexing on reindex (#42714) 8 months ago