Skip to content

Commit 02cdd7b

Browse files
committed
chore: merge current main after CI repair
2 parents dcf0e56 + 29b6f56 commit 02cdd7b

250 files changed

Lines changed: 14205 additions & 1578 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/workflows/docs-external-links.yml‎

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,21 @@ jobs:
2222
with:
2323
persist-credentials: false
2424

25+
- name: Setup Node.js and pnpm
26+
uses: ./.github/actions/setup-node-env
27+
with:
28+
install-bun: "false"
29+
install-deps: "false"
30+
31+
- name: Install link audit dependencies
32+
run: pnpm install --filter . --frozen-lockfile --ignore-scripts
33+
34+
- name: Prepare MDX link audit input
35+
run: >-
36+
node scripts/docs-link-audit.mjs
37+
--prepare-external-links
38+
.artifacts/docs-external-links/mdx
39+
2540
- name: Audit external links
2641
uses: lycheeverse/lychee-action@e7477775783ea5526144ba13e8db5eec57747ce8 # v2.9.0
2742
with:
@@ -45,11 +60,45 @@ jobs:
4560
'./docs/**/*.md'
4661
'./docs/**/*.mdx'
4762
'./docs/docs.json'
63+
'./.artifacts/docs-external-links/mdx/**/*.md'
64+
'./.artifacts/docs-external-links/mdx/**/*.mdx'
4865
fail: false
4966
failIfEmpty: true
5067
format: markdown
5168
output: .artifacts/docs-external-links/report.md
5269

70+
# The main pass follows redirects. This pass stops at the first response
71+
# so permanent moves remain visible without flagging temporary redirects.
72+
- name: Report permanent redirects
73+
if: always()
74+
continue-on-error: true
75+
run: >-
76+
lychee
77+
--no-progress
78+
--base-url https://docs.openclaw.ai
79+
--exclude-all-private
80+
--accept '100..=300,302..=307,309..=599'
81+
--accept-timeouts
82+
--max-retries 2
83+
--retry-wait-time 2
84+
--timeout 20
85+
--max-redirects 0
86+
--scheme http
87+
--scheme https
88+
--exclude '^https://docs\.openclaw\.ai/'
89+
--exclude '^https://github\.com/openclaw/maintainers/'
90+
--exclude '^https://(claude\.ai|help\.openai\.com|openai\.com|platform\.openai\.com|support\.discord\.com|www\.npmjs\.com|www\.raspberrypi\.com)/'
91+
--format markdown
92+
--output .artifacts/docs-external-links/permanent-redirects.md
93+
'./README.md'
94+
'./CONTRIBUTING.md'
95+
'./SECURITY.md'
96+
'./docs/**/*.md'
97+
'./docs/**/*.mdx'
98+
'./docs/docs.json'
99+
'./.artifacts/docs-external-links/mdx/**/*.md'
100+
'./.artifacts/docs-external-links/mdx/**/*.mdx'
101+
53102
- name: Upload audit report
54103
if: always()
55104
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"core": 2305,
2+
"core": 2306,
33
"channel": 3646,
44
"plugin": 3580
55
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
0845a1488544c15c046808a3a6ad4be975dc3919e5812ca64fb6618addfdec68 config-baseline.json
2-
414d80dc1e0a69ad3b3835abb097d35b486e598f3d85d96f3fe315f2e123a139 config-baseline.core.json
1+
2b982f19d640b237cc8a4677eba922901fbf98aca78af2f001cebf0366334ded config-baseline.json
2+
88610e88d2f41cee512e386bd929396bfbf30b7ff95099dcf3dbaa385f18b568 config-baseline.core.json
33
5feb809e645891b6bc9736163dedf3b6b90a3f8154147846c0404f1dc0783d2f config-baseline.channel.json
44
598a029cc19415dac4ae3f04474b3c724c3a355e93fbea3516e5e2dd8410f7d5 config-baseline.plugin.json

‎docs/.generated/plugin-sdk-api-baseline.sha256‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ cbf4e2c3088f8886a7c9ea91325a66e0f0846cea21f0b2891f36399b4811306c module/account
44
8e985f345f21a1c9a2b0e94304aaaad6a326bec1c1ce3b26027d2862804a366e module/account-resolution
55
e5e67ddf3cab38fcbf9220bc3160715897e2709d9a9ff6ff36f1ecc9453c2367 module/agent-config-primitives
66
74daa746deb548379d3f0d6eac3c4d082df1034c4360cc03bf51fee0f10a2e4d module/agent-harness
7-
5de3d5c7eb5b863c12453666725cfe6473d884a1788ad905fbddda64983ef100 module/agent-harness-runtime
7+
ccfc54a6dc389b38bb06c2dbff05b30f35ff4efd953887cac8066e1aae7db45d module/agent-harness-runtime
88
5168648cd946abad8a92822889f13ceacc87ed502314a66190d0b1eb8ebe76ea module/agent-media-payload
99
2dcb4d62d90e5d71594f6b843c97534509a154784e378fb1c75bd86b5122b710 module/agent-runtime
1010
56b6d5fb6af3d95af1200065aca2e7d4f59e5fa59740505fe6ff433077ef6646 module/allow-from

‎docs/channels/slack.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1440,6 +1440,7 @@ Slack native progress task cards are opt-in for progress mode. Set `channels.sla
14401440
- A reply thread must be available for native text streaming and Slack assistant thread status to appear. Thread selection still follows `replyToMode`.
14411441
- Channel, group-chat, and top-level DM roots can still use the normal draft preview when native streaming is unavailable or no reply thread exists.
14421442
- Top-level Slack DMs stay off-thread by default, so they do not show Slack's thread-style native stream/status preview; OpenClaw posts and edits a draft preview in the DM instead.
1443+
- Custom outbound username/icon settings keep portable previews enabled. OpenClaw keeps the preview app-authored so partial/block previews can be removed before a separately customized final; progress mode may instead collapse the app-authored draft into a receipt. Slack does not allow impersonated messages to be deleted.
14431444
- Media and non-text payloads fall back to normal delivery.
14441445
- Media/error finals cancel pending preview edits; eligible text/block finals flush only when they can edit the preview in place.
14451446
- If streaming fails mid-reply, OpenClaw falls back to normal delivery for remaining payloads.

‎docs/concepts/active-memory.md‎

Lines changed: 42 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,24 @@
11
---
2-
summary: "A plugin-owned blocking memory sub-agent that injects relevant memory into interactive chat sessions"
2+
summary: "Deep conversation-history recall that escalates only when deterministic memory recall is insufficient"
33
title: "Active memory"
44
read_when:
55
- You want to understand what active memory is for
66
- You want to turn active memory on for a conversational agent
77
- You want to tune active memory behavior without enabling it everywhere
88
---
99

10-
Active memory is an optional bundled plugin that runs a blocking memory
11-
recall sub-agent before the main reply, for eligible conversational sessions.
12-
It exists because most memory systems are reactive: the main agent has to
13-
decide to search memory, or the user has to say "remember this." By then the
14-
moment for the recalled fact to feel natural has passed. Active memory gives
15-
the system one bounded chance to surface relevant memory before the main
16-
reply is generated.
10+
Active Memory is the deep-recall lane for eligible conversational sessions.
11+
The default `escalate` mode runs its blocking recall sub-agent only when the
12+
message asks about the past and the deterministic memory lane found no strong
13+
trusted trigger match. This keeps ordinary replies fast while preserving a
14+
deeper search path for prior decisions, conversations, and temporal or
15+
multi-hop questions.
16+
17+
Flat retrieval is strongest for direct fact matches and weaker on temporal and
18+
multi-session questions. [LongMemEval (arXiv:2410.10813)](https://arxiv.org/abs/2410.10813)
19+
measures that gap, while the PrefEval benchmark highlights the value of
20+
preference-adjacent reminders. Escalation by default spends the blocking model
21+
call where those harder recall shapes are actually present.
1722

1823
## Remember across conversations
1924

@@ -76,6 +81,7 @@ Paste into `openclaw.json` for an advanced safe default: plugin on, scoped to
7681
enabled: true,
7782
config: {
7883
enabled: true,
84+
mode: "escalate",
7985
agents: ["main"],
8086
allowedChatTypes: ["direct"],
8187
modelFallback: "google/gemini-3-flash",
@@ -111,6 +117,7 @@ To inspect it live in a conversation:
111117
What the key fields do:
112118

113119
- `plugins.entries.active-memory.enabled: true` turns the plugin on
120+
- `config.mode: "escalate"` runs deep recall only for recall intent without a strong deterministic hit
114121
- `config.agents: ["main"]` opts only the `main` agent in
115122
- `config.allowedChatTypes: ["direct"]` scopes it to direct-message sessions (opt in groups/channels explicitly)
116123
- `config.model` (optional) pins a dedicated recall model; unset inherits the current session model
@@ -123,14 +130,17 @@ What the key fields do:
123130

124131
```mermaid
125132
flowchart LR
126-
U["User Message"] --> Q["Build Memory Query"]
127-
Q --> R["Active Memory Blocking Memory Sub-Agent"]
128-
R -->|NONE / no relevant memory| M["Main Reply"]
129-
R -->|relevant summary| I["Append Hidden active_memory_plugin System Context"]
130-
I --> M["Main Reply"]
133+
U["User Message"] --> D["Deterministic Trigger Recall"]
134+
D -->|strong trusted match| I["Inject Bounded Hidden Context"]
135+
D -->|weak or empty| H["Check Recall Intent"]
136+
H -->|no| M["Main Reply"]
137+
H -->|yes| R["Active Memory Deep Recall Sub-Agent"]
138+
R -->|NONE| M
139+
R -->|relevant summary| I
140+
I --> M
131141
```
132142

133-
The blocking sub-agent can call only the configured memory recall tools (see
143+
The deep-recall sub-agent can call only the configured memory recall tools (see
134144
[Memory tools](#memory-tools)). If the connection between the query and
135145
available memory is weak, it returns `NONE` and the main reply proceeds
136146
without extra context.
@@ -156,7 +166,7 @@ personalization would be surprising.
156166

157167
## When it runs
158168

159-
Active Memory has two activation paths:
169+
Active Memory has two targeting paths for the deep-recall lane:
160170

161171
1. **Remember across conversations** automatically targets agents whose
162172
effective `memory.search.rememberAcrossConversations` setting is enabled, but
@@ -170,6 +180,18 @@ persistent conversation. A session-scoped `/active-memory off` pauses both
170180
paths for that conversation. If any condition fails, active memory does not run
171181
for that turn, and the main reply is unaffected.
172182

183+
`config.mode` controls when a targeted turn starts the blocking sub-agent:
184+
185+
| Mode | Behavior |
186+
| ---------- | ----------------------------------------------------------------------- |
187+
| `escalate` | Default. Run only for recall intent when lane 1 has no strong hit. |
188+
| `always` | Preserve the previous behavior and run on every eligible targeted turn. |
189+
| `off` | Disable deep recall without unloading the plugin. |
190+
191+
The deterministic trusted-trigger lane remains available in `off` mode.
192+
`rememberAcrossConversations` is unchanged: it still controls whether deep
193+
recall may search other private conversations.
194+
173195
### Session types
174196

175197
`config.allowedChatTypes` controls which kinds of conversations may run the
@@ -620,6 +642,7 @@ All active memory configuration lives under `plugins.entries.active-memory`.
620642
| Key | Type | Meaning |
621643
| ---------------------------- | ---------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
622644
| `enabled` | `boolean` | Enables the plugin itself |
645+
| `config.mode` | `"escalate" \| "always" \| "off"` | Controls when the blocking deep-recall sub-agent runs; default `"escalate"` |
623646
| `config.agents` | `string[]` | Agent ids that may use active memory |
624647
| `config.model` | `string` | Optional blocking sub-agent model ref; when unset, inherits the current session model |
625648
| `config.allowedChatTypes` | `("direct" \| "group" \| "channel" \| "explicit")[]` | Session types that may run active memory; defaults to `["direct"]` |
@@ -665,6 +688,7 @@ Start with `recent`:
665688
enabled: true,
666689
config: {
667690
agents: ["main"],
691+
mode: "escalate",
668692
queryMode: "recent",
669693
promptStyle: "balanced",
670694
timeoutMs: 15000,
@@ -679,8 +703,9 @@ Start with `recent`:
679703

680704
Use `/verbose on` for the status line and `/trace on` for the debug summary
681705
while tuning — both are sent as a follow-up after the main reply, not
682-
before. Then move to `message` for lower latency, or `full` if extra context
683-
is worth the slower sub-agent run.
706+
before. Use `always` only when every eligible turn warrants the latency. Keep
707+
`escalate` for the recommended balance, then choose `message`, `recent`, or
708+
`full` for the deep-recall query itself.
684709

685710
### Cold-start grace
686711

‎docs/concepts/agent-workspace.md‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ Standard files OpenClaw expects inside the workspace:
7070
<Accordion title="SOUL.md - persona and tone">
7171
Persona, tone, and boundaries. Loaded every session. Guide: [SOUL.md personality guide](/concepts/soul).
7272
</Accordion>
73-
<Accordion title="USER.md - who the user is">
74-
Who the user is and how to address them. Loaded every session.
73+
<Accordion title="USER.md - directive-based user model (optional)">
74+
Stable preferences, communication style, relationships, and active-project context. Write entries as dated active or superseded directives. Loaded every session with a separate 4,000-character budget. See [User model](/concepts/user-model).
7575
</Accordion>
7676
<Accordion title="IDENTITY.md - name, vibe, emoji">
7777
The agent's name, vibe, and emoji. Created/updated during the bootstrap ritual.
@@ -89,7 +89,7 @@ Standard files OpenClaw expects inside the workspace:
8989
Daily memory log (one file per day). Recommended to read today + yesterday on session start.
9090
</Accordion>
9191
<Accordion title="MEMORY.md - curated long-term memory (optional)">
92-
Curated long-term memory: durable facts, preferences, decisions, and short summaries. Keep detailed logs in `memory/YYYY-MM-DD.md` so memory tools can retrieve them on demand without injecting them into every prompt. Only load `MEMORY.md` in the main, private session (not shared/group contexts). See [Memory](/concepts/memory) for the workflow and automatic memory flush.
92+
Curated long-term memory: durable non-profile facts, decisions, and short summaries. Keep detailed logs in `memory/YYYY-MM-DD.md` so memory tools can retrieve them on demand without injecting them into every prompt. Only load `MEMORY.md` in the main, private session (not shared/group contexts). See [Memory](/concepts/memory) for the workflow and automatic memory flush.
9393
</Accordion>
9494
<Accordion title="skills/ - workspace skills (optional)">
9595
Workspace-specific skills. Highest-precedence skill location for that workspace, ahead of project agent skills, personal agent skills, managed skills, bundled skills, and `skills.load.extraDirs` when names collide.
@@ -100,7 +100,7 @@ Standard files OpenClaw expects inside the workspace:
100100
</AccordionGroup>
101101

102102
<Note>
103-
If a bootstrap file is missing, OpenClaw injects a "missing file" marker into the session and continues. Large bootstrap files are truncated when injected; adjust limits with `agents.defaults.bootstrapMaxChars` (default: `20000`) and `agents.defaults.bootstrapTotalMaxChars` (default: `60000`). `openclaw setup` can recreate missing defaults without overwriting existing files.
103+
If a required bootstrap file is missing, OpenClaw injects a "missing file" marker into the session and continues. Optional `USER.md` and `MEMORY.md` files are omitted when absent. Large bootstrap files are truncated when injected; adjust general limits with `agents.defaults.bootstrapMaxChars` (default: `20000`) and `agents.defaults.bootstrapTotalMaxChars` (default: `60000`). `USER.md` keeps its separate 4,000-character cap. `openclaw setup` can recreate missing defaults without overwriting existing files.
104104
</Note>
105105

106106
## What is NOT in the workspace
@@ -109,7 +109,7 @@ These live under `~/.openclaw/` and should NOT be committed to the workspace rep
109109

110110
- `~/.openclaw/openclaw.json` (config)
111111
- `~/.openclaw/state/openclaw.sqlite` (shared workspace setup state and attestations)
112-
- `~/.openclaw/agents/<agentId>/agent/openclaw-agent.sqlite` (model auth profiles, routing state, and other agent-scoped durability)
112+
- `~/.openclaw/agents/<agentId>/agent/openclaw-agent.sqlite` (model auth profiles, routing state, standing intents, and other agent-scoped durability)
113113
- `~/.openclaw/agents/<agentId>/agent/openclaw-agent.sqlite` (session rows, transcripts, and per-agent runtime state)
114114
- `~/.openclaw/agents/<agentId>/agent/codex-home/` (per-agent Codex runtime account, config, skills, plugins, and native thread state)
115115
- `~/.openclaw/credentials/` (channel/provider state plus legacy OAuth import data)

0 commit comments

Comments
 (0)