The English audit_l2 / audit_l3 role paragraphs kept the short lines
left by moving the surface and slot names to the end; they are
rewrapped with the same words. The research forced-finish docstring now
says the tool_choice="none" behavior was measured on deepseek-flash
only.
Refs #2974
parse() swallowed a `[^token]` that was part of an entry's text. The
new-bullet regex matched trailing markers as `[^...]` (any non-`]`
run), so prose ending in a footnote-like token (e.g. "footnote syntax
is [^note]") was absorbed into the markers group and dropped, breaking
the documented `parse(serialize(d)) == d` contract. Because the token
label failed to resolve, the text was silently truncated and, once the
entry also carried a real ref, its markers were mangled too.
serialize() emits integer labels exclusively, so narrow the inline-marker
pattern to `[^<digits>]`. Non-integer footnote-like tokens now stay in
the text where they belong; real numeric citation markers still parse
(including the legacy compact `[^1][^2]` form).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Preserve the ASCII whitespace requirement while allowing CJK sentence terminators to end memory chunks without intervening spaces. Add regressions for punctuation, supported closing quotes, default chunk sizes and decimal compatibility.
Fixes#2130
Formatting pass with ruff 0.16.0 so the lint job stops asking for a reformat;
no behaviour change: tests/services/memory/test_chunker.py still passes 15/15.
Signed-off-by: Eapp1e <163811520+Eapp1e@users.noreply.github.com>
chunk_with_boundary() documented a hard upper bound of `budget` chunks but
sized the window off len(text) / budget while every cut advances the cursor
by target - overlap. The overlap is spent at each cut, so the default 10%
overlap profile needed 21 chunks for a budget of 20 and one extra LLM call
per consolidation. Derive the window from the distance the budget chunk
really covers and assert the bound in a new regression test.
Signed-off-by: Eapp1e <163811520+Eapp1e@users.noreply.github.com>
* fix(codex): log a warning when token revocation fails during logout
Logout previously swallowed revocation failures silently, leaving the
remote token possibly valid with no operator trace. Log only the error
kind and HTTP status (never credential material) and keep clearing the
local credentials as before.
* fix(llm): warn when CodeBuddy tool-call interrupt or drain fails
A silent except-pass after receiving tool_calls let the SDK keep
generating in the background when interrupt() failed, quietly draining
quota. Log a warning (exception type + short reason) for interrupt and
drain failures; return value semantics unchanged.
* fix(memory): log corrupt snapshot files instead of skipping silently
read_notebook_entities / read_cowriter_entities / read_book_entities
swallowed (OSError, json.JSONDecodeError) with a bare continue, so a
corrupt notebook file or manifest silently dropped content from the
memory snapshot. Each skip now logs a warning with the file path and
reason (no file content); snapshot results are otherwise unchanged.
* fix(notebook): log unreadable files instead of skipping them silently during index rebuild
* fix(question): log failed error-event delivery in mimic websocket
The mimic generation error handler swallowed secondary failures of the
error send_json with a bare 'except Exception: pass', so a delivery
failure left the frontend without any reason and nothing in the logs.
Split the handler: closed/disconnecting clients (RuntimeError,
WebSocketDisconnect) stay debug-level, any other send failure is logged
as a warning with traceback. Cleanup paths keep their best-effort
narrow handling. Focused tests cover both branches.
* test(codebuddy): make credential fixture expiry relative to now
test_load_credentials_parses_session wrote a hard-coded expiresAt of
1791055241000 (2026-10-03 15:40:41 UTC) and asserted is_expired() is
False. Once that instant passed the assertion flipped, so the test now
fails on every Python version for every branch.
Derive expiresAt / refreshExpiresAt from time.time() so the fixture
always describes a live session, and assert against the value written.
---------
Co-authored-by: XZH <cto@xzh.ai>
Co-authored-by: Bingxi Zhao (Frank) <13051345080@163.com>
Ship a content workspace you choose, one exec tool for every language,
Mastery Path modes that gate its tools, and Settings that grades
readiness instead of listing faults.
Release notes: assets/releases/ver1-6-5.md
Ship lighter isolated runtimes, richer Books and Mastery flows,
Reading/session polish, and explicit model API capabilities.
Release notes: assets/releases/ver1-6-4.md
Ship the breaking front- and back-end runtime and route refactor,
learner and guardian flows, grounded reading, knowledge and parser
updates, and recoverable long-running streams.
Release notes: assets/releases/ver1-6-3.md
Book is the bulk of this one. Compilation outlives the request that
started it, so a bus owned by that request dropped every background event
and "watch your book being written" degraded into a frozen page; the
stream is now owned per book by the process and survives a refresh or a
reconnect. Reading progress is finally recorded — `visited_page_ids` and
`bookmarked_page_ids` had been declared but never written for the life of
the feature — and rolls up into a completion score and weak chapters. A
book can also leave the app now, as one self-contained Markdown document,
with non-ASCII titles surviving the download.
Two scheduling defects that were invisible in production are fixed: the
same page compiled twice concurrently (billed twice, one result
discarded), and a book grinding on through a provider outage until every
chapter was half-generated. The source sweep is bounded and allocated
round-robin rather than spent on the first few knowledge bases, and
retrieval now tells indexed bases from connected pointers, so an Obsidian
vault or a remote IMA library no longer contributes zero while looking
like a source with nothing relevant. Confirming a spine shows a live
per-chapter estimate derived from the Section Architect's own templates.
Also here: three home starter suggestions built from memory recall,
mastery-path handoff moved into one module that changes lease, session
preference, and live turn together, and account-level Tencent IMA
credentials with the per-KB pair still winning.
Notes: assets/releases/ver1-5-13.md
This commit also carries the README prose sync, the eleven translated
READMEs, the release-notes archive sweep, and the version bump. Two gate
fixes ride along: the `Stamped` protocol is declared read-only so the
frozen `EntityStamp` satisfies it, and six GraphRAG adapter tests that
reached a deep `graphrag` import without guarding it now skip like their
four neighbours instead of failing where the extra is not installed.
L1 keeps two kinds of record and answering "what happened lately" needs both.
The snapshot knows what exists (sessions, notebook records, quiz attempts,
documents, books) with a label and a timestamp; the trace knows what was done,
of which knowledge-base queries are the one kind holding a question the
learner typed themselves.
``recent`` merges the seven surfaces newest-first; ``recent_queries`` reads
the trace. Both run on stamps — no message body, no document text, no answer
is read — which is what makes them callable outside consolidation.
Two shaping rules earn their place. Undated items are dropped rather than
assumed recent: knowledge bases stamp their *earliest* index time, so one in
daily use would otherwise be filtered out as ancient while claiming to be
inside the window — the trace answers for KBs instead. And a label repeated on
one surface collapses to its newest occurrence, so a session reopened all
afternoon counts once rather than crowding out everything else.
The chat adapter inlines every message body of every session into each
Entity's ``content``. That is what L2 consolidation needs, and it is the
wrong price for a caller that only wants to know what the sessions are
called — or for the diff, which reads nothing but fingerprints and labels.
Adds ``EntityStamp`` (identity + label + fingerprint + timestamp) and a
per-surface probe that produces stamps directly. ``read_stamps`` uses a
surface's probe when it has one and projects the full read otherwise, so a
surface without a probe is slower rather than unsupported, and a probe that
raises degrades to the full read rather than reporting the surface empty —
which the diff would take for a mass deletion.
Only ``chat`` gets a probe: every other adapter reads a bounded amount, and
each probe is a standing obligation to match its full reader expression by
expression. The chat probe's fingerprint deliberately picks the last message
under ``created_at ASC, id ASC`` via a window function rather than MAX(id);
the two diverge on backfilled rows, and a probe-driven refresh would then
disagree with a content-driven one about what changed.
Keep Partner configuration and assets shared while isolating authenticated users’ sessions, relationship memory, search, and media paths. Preserve legacy admin/IM behavior and enforce assignment checks at every access boundary.
Maintenance release on top of v1.5.2.
- Themeable code blocks: Settings → Appearance gains a Code blocks panel
(syntax theme, line numbers, wrapping) applied across chat, Book, and
Co-Writer.
- My Agents connects four more coding CLIs — Gemini, Kimi, opencode, and
MiMo Code — alongside Claude Code and Codex.
- Atlas Cloud joins as an LLM provider (34 bindings total); DashScope text
embeddings route correctly and encoding_format is omitted for strict
OpenAI-compatible gateways.
- Reliability sweep: RAG coexists with an exclusive knowledge capability
(#650), DeepSeek DSML tool-call parsing (#666), autoscroll release (#649),
idempotent write_memory (#647), seeded persona presets (#659), plus Book
WebSocket streaming, partner filename/split fixes, Visualize fences, and
CLI UTF-8 input hardening.
- Packaging: cap requires-python to >=3.11,<3.14 so pip refuses 3.14 with a
readable message instead of a failed source build (#664).
Release notes: assets/releases/ver1-5-3.md
preferences.md is never auto-consolidated, so a repeated identical
write_memory add persisted forever as a duplicate — common in long,
tool-driven mastery turns. write_preference now short-circuits a
duplicate add to a no-op that reports the existing entry, and the tool
returns an explicit 'already saved' signal to the model.
Trailing prose containing braces made the greedy rfind slice invalid,
so parse_edits_payload silently dropped valid edits. Decode the first
JSON value like math_animator.
Replaces the flat single-blob memory page with a structured store:
- L1 captures raw run traces; L2 holds normalized document records;
L3 holds curated slots per surface (chat, notebook, book, TutorBot).
- New consolidator pipeline (chunker, guards, parse, references, runs,
modes, line-doc, meta) turns traces into versioned line-oriented
documents with stable ids and snapshot history.
- Per-user isolation flows through PathService; the store API is
stateless.
UI ships a dedicated /memory workbench with graph / L1 / L2 / L3 /
resolve subpages, plus a reusable MemorySection embedded where the
legacy panel lived.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>