Skip to content

Commit f8e12be

Browse files
authored
docs: sync with goclaw source changes b9670555..1b862707 (EN+VI+ZH) (#58)
- TTS v3.10.0: Gemini provider, per-agent tts_params override, provider capabilities schema, expanded param tables for all 5 providers - Context pruning: now enabled by default (cache-ttl mode) - Knowledge vault: vault_read namespace-redirect protection - Tools: Windows credentialed_exec env inheritance - REST API: +GET /v1/tts/capabilities; updated tts/{synthesize,config, test-connection}, voices?provider=minimax - WS RPC: agents.update 28-field signature Trilingual sync (EN/VI/ZH). goclaw-source metadata bumped to 1b862707.
1 parent d999423 commit f8e12be

18 files changed

Lines changed: 1064 additions & 281 deletions

advanced/context-pruning.md

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ Context pruning is distinct from [session compaction](../core-concepts/sessions-
1717

1818
## How Pruning Triggers
1919

20-
Pruning is **opt-in** — it only runs when `mode: "cache-ttl"` is set on the agent. The flow:
20+
Pruning is **enabled by default** using `cache-ttl` mode. No configuration is required to activate it. Set `mode: "off"` to disable it explicitly. The flow:
2121

2222
```
2323
history → limitHistoryTurns → sanitizeHistory → LLM
2424
```
2525

26-
> **Note:** `pruneContextMessages` (PruneStage) is **not** part of the main pipeline above. It runs opt-in and separately — only when `mode: "cache-ttl"` is set. The diagram above reflects the standard history preparation path.
26+
> **Note:** `pruneContextMessages` (PruneStage) is **not** part of the main pipeline above. It runs as a separate stage — by default in `cache-ttl` mode unless explicitly disabled with `mode: "off"`. The diagram above reflects the standard history preparation path.
2727
2828
Before each LLM call, GoClaw:
2929

@@ -78,12 +78,12 @@ This placeholder is configurable. Hard clear can also be disabled entirely.
7878

7979
## Configuration
8080

81-
Context pruning is **opt-in**. To enable it, set `mode: "cache-ttl"` in the agent config.
81+
Context pruning runs with `cache-ttl` mode **by default** — no config needed to activate it. To disable pruning entirely, set `mode: "off"`.
8282

8383
```json
8484
{
8585
"contextPruning": {
86-
"mode": "cache-ttl"
86+
"mode": "off"
8787
}
8888
}
8989
```
@@ -115,7 +115,7 @@ All other fields have sensible defaults and are optional.
115115

116116
| Field | Default | Description |
117117
|-------|---------|-------------|
118-
| `mode` | *(unset — pruning disabled)* | Set to `"cache-ttl"` to enable pruning. Omit or leave empty to keep pruning off. |
118+
| `mode` | `"cache-ttl"` *(enabled by default)* | Set to `"off"` to disable pruning. Omit or leave empty to keep the default `cache-ttl` mode. |
119119
| `keepLastAssistants` | `3` | Number of recent assistant turns to protect from pruning. |
120120
| `softTrimRatio` | `0.25` | Trigger soft trim when context fills this fraction of the context window. |
121121
| `hardClearRatio` | `0.5` | Trigger hard clear when context fills this fraction after soft trim. |
@@ -130,12 +130,14 @@ All other fields have sensible defaults and are optional.
130130

131131
## Configuration Examples
132132

133-
### Enable pruning (minimum config)
133+
### Disable pruning
134+
135+
Pruning is on by default. To turn it off:
134136

135137
```json
136138
{
137139
"contextPruning": {
138-
"mode": "cache-ttl"
140+
"mode": "off"
139141
}
140142
}
141143
```
@@ -223,7 +225,7 @@ Once the consolidation pipeline has promoted a body of knowledge to L0 (via drea
223225

224226
**Pruning never triggers**
225227

226-
Confirm that `mode` is set to `"cache-ttl"` — pruning is opt-in and disabled by default. Also confirm that `contextWindow` is set on the agent — pruning needs a token count to calculate ratios.
228+
Pruning is enabled by default. If it appears inactive, confirm that `mode` is not explicitly set to `"off"` in the agent config. Also confirm that `contextWindow` is set on the agent — pruning needs a token count to calculate ratios. Finally, verify the context ratio is actually reaching `softTrimRatio` (0.25 by default).
227229

228230
**Agent re-runs tools unexpectedly**
229231

@@ -276,4 +278,4 @@ Tool output is now capped at the source before being added to context. Rather th
276278
- [Memory System](../core-concepts/memory-system.md) — 3-tier memory architecture and consolidation pipeline
277279
- [Configuration Reference](/config-reference) — full agent config reference
278280

279-
<!-- goclaw-source: b9670555 | updated: 2026-04-19 -->
281+
<!-- goclaw-source: 1b862707 | updated: 2026-04-20 -->

advanced/knowledge-vault.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,16 @@ Primary discovery tool. Searches across vault, episodic memory, and Knowledge Gr
281281
}
282282
```
283283

284+
Each result carries a **source-specific ID field** that tells you which follow-up tool to use:
285+
286+
| Source | ID field | Follow-up tool |
287+
|--------|----------|---------------|
288+
| `vault` | `doc_id` | `vault_read(doc_id=...)` |
289+
| `kg` | `entity_id` | `knowledge_graph_search(entity_id=...)` |
290+
| `episodic` | `episodic_id` | `memory_expand(id=episodic_id)` |
291+
292+
> **ID namespace protection:** If you pass a `entity_id` or `episodic_id` to `vault_read` by mistake, the tool returns a descriptive error telling you the correct tool to use — rather than a generic "document not found". Always use the `doc_id` from vault results with `vault_read`.
293+
284294
> **Note on linking:** Explicit document linking is now handled automatically by the enrichment pipeline. The `vault_link` agent tool has been removed. Links are created via wikilink syntax in document content (`[[target]]`) or generated semantically by EnrichWorker. You can view links via `GET /v1/agents/{agentID}/vault/documents/{docID}/links`.
285295
286296
---
@@ -413,4 +423,4 @@ No feature flag. Vault is active if the migration ran and VaultStore initialized
413423
- [Memory System](../core-concepts/memory-system.md) — Vector-based long-term memory
414424
- [Context Files](../agents/context-files.md) — Static documents injected into agent context
415425

416-
<!-- goclaw-source: b9670555 | updated: 2026-04-19 -->
426+
<!-- goclaw-source: 1b862707 | updated: 2026-04-20 -->

0 commit comments

Comments
 (0)