agent: per-session todo queue (todo tool, pinned TODO section, GUI panel)

Persistent task list (pending/doing/done) with never-reused seq from a per-session high-water mark; open items injected as a dynamic TODO section with pre-warm-on-change; read-only GUI panel + i18n; TOOL_USE manual extended. Docs updated; agent-feedback memory Q&A exchange and AGENT_RULES seed rules included. Verified: 245 passed / 6 ignored, clippy+fmt clean; dogfooded live.
This commit is contained in:
adm committed 2026-11-30 12:10:45 +01:00
1 parent f74d53e446
commit 9b05592efb
16 files changed
+1067 -21

No files matched your search

+18 -4
View File
@@ -211,7 +211,8 @@ The GUI model can **act**, not just chat. The core tools are **always on** — t
is no toggle, because the framework could not function without them. The agent's tool
surface is small and deliberate: **`shell_exec`** (a shell is universal: file ops,
programs, system inspection, web via curl, git, …), **`notepad`** (agent-curated
persistent memory, see below) and **`share_file`** (hand the user a download link
persistent memory, see below), **`todo`** (the persistent per-session task queue,
see below) and **`share_file`** (hand the user a download link
for a file on its filesystem, see below). A session that opts into **semantic
memory** additionally gets `remember` / `recall` / `forget` (see **Semantic vector
memory** below). A bounded server-side loop drives
@@ -267,7 +268,7 @@ shared JSON config ──► InklingFormatter ──► Engine supervisor ──
per-turn `[SPEAKER]` provenance (prompt-only).
- `render` — server-side Markdown → sanitized HTML with LaTeX → native MathML
(`pulldown-cmark` + `pulldown-latex`) for assistant replies.
- `agent` — the bounded server-side tool loop: `shell_exec`, `notepad`,
- `agent` — the bounded server-side tool loop: `shell_exec`, `notepad`, `todo`,
`share_file`, MCP connectors and the per-session memory tools.
- `memory` — the semantic memory service: the authoritative `Store` plus a
rebuildable vector index, kept in step and fail-open. Backed by the
@@ -328,7 +329,7 @@ later adaptation round.
## Status
Working and tested (238 tests passing; 6 ignored tests exercise the real engine,
Working and tested (245 tests passing; 6 ignored tests exercise the real engine,
embedder or files and run on demand). Text, images,
the full client-side tool loop, the Anthropic endpoint, the web GUI (session
context, streaming, stats, **file/image upload**, **file download** (`share_file`
@@ -341,7 +342,9 @@ verified against the real chat template. A per-session **notepad** (agent-curate
`<NOTEPAD>` entries via the `notepad` tool) and a **sliding DIALOG window**
(message-count main area + buffer headroom, stepped KV-cache-friendly eviction at
turn boundaries, `window_start` persisted per session, full history never deleted)
are implemented and dogfooded live. Per-session **semantic memory**
are implemented and dogfooded live. A per-session **todo** queue (the `todo`
tool, open tasks pinned as a `<TODO>` block) complements the notepad as the
operational resume point. Per-session **semantic memory**
(`remember` / `recall` / `forget` over an embedded Qdrant Edge index with BGE-M3
embeddings) is implemented and validated live against the Altair embedder. A
best-effort **cache pre-warm** (`GEN 0` over
@@ -475,6 +478,17 @@ key, text?)`) upserts/removes by key — idempotent, no shifting numeric indices
Compact single-line block, deterministic order, a **soft size budget** (chars,
per-entry and total caps) with a hard ceiling that asks the agent to consolidate.
**Todo queue.** Alongside the notepad, each session has a persistent **task
list** (`todo` tool: `add` / `update` / `remove` / `clear_done`; statuses
`pending` / `doing` / `done`; stable numeric ids from a per-session high-water
mark, never reused). Open items are injected as a pinned `<TODO>` block above
`DIALOG` — done items stay in history, out of the prompt — and a header change
triggers the same pre-warm-on-change as the notepad. The split is deliberate:
the notepad curates **durable knowledge** (goals, decisions, constraints), the
todo tracks the **operational work queue** — the agent's resume point across
restarts and, later, periodic wake-ups. Bounded (30 open items, 512 chars each),
nothing evicted automatically; a read-only GUI panel exposes it.
Design stance — **importance, not recency**: no silent FIFO eviction, no age-based
decay. strata-ctl sessions are **persistent (no expiry)** and the agent is
**reactive** — it runs only on external input, with no autonomous background