openclaw/docs/channels
Jesse Merhi d7627d6f4c
refactor(prompt): use plain inbound context labels and drop system-tag sanitizer (#112000)
* refactor(prompt): plain inbound context labels with a provenance marker

Replaces trust-worded inbound context labels ("(untrusted metadata)",
"(untrusted, for context)") with plain labels plus a fixed provenance
marker suffix appended to every OpenClaw-injected context header.

Detection keys on the marker, not label text, so strippers stay correct
across UI, TUI, replay, /trace segmentation, memory recall, and the Swift
chat preprocessor. Drops sanitizeInboundSystemTags in favor of the marker
boundary plus trusted system-prompt narration.

Renames the untrusted-named plugin SDK context identifiers to
channel-provenance names, keeping deprecated aliases registered for
removal after 2026-09-08.

Adds `openclaw doctor --fix` migrations that rewrite legacy inbound
labels in stored SQLite transcripts and purge legacy envelope-
contaminated LanceDB recall rows.

* fix(ci): resolve gate failures for plain inbound context labels

- doctor sqlite readers: open read-only connections via openNodeSqliteDatabase
  so the Kysely connection-boundary guardrail holds; unexport the now-internal
  transcript snapshot type (Knip unused-export gate).
- compat registry: split the record table into registry-records.ts and
  plugin-sdk-subpath-records.ts. The new compat record pushed registry.ts past
  the 700-line oxlint cap; suppressions are disallowed, so follow the existing
  sibling record-module pattern. Public exports and PluginCompatCode literals
  unchanged.
- acp-runtime test: assert current finalization behavior (newline normalization
  only). The bracket de-fang and System: rewrite it expected were removed with
  sanitizeInboundSystemTags; forged system lines are neutralized at the
  system-event queue, the single chokepoint feeding the System:-per-line render.
- regenerate docs_map and the plugin SDK API baseline manifest.

* fix(prompt): harden inbound context label migration and drop in-band sanitizer

Review follow-ups on the plain-label + provenance-marker change:

- Remove src/security/system-tags.ts. Rewriting inbound text to neutralize
  look-alike `System:`/`[System]` markers corrupted legitimate user text and is
  not a real injection boundary; role separation plus external-content wrapping
  is. Explicit product decision, recorded at the system-event queue.
- Narrow the LanceDB legacy-row purge so it cannot delete benign memories. It
  now requires a complete known legacy sentinel line, a legacy label followed by
  a fenced JSON body, or the complete legacy external-content header. The prior
  predicates matched ordinary prose such as `Notes (untrusted metadata):`, and
  deletion is irreversible.
- Make explicit-empty canonical ChannelStructuredContext win over the deprecated
  alias via a present/absent result instead of collapsing `[]` to undefined.
- Keep `\r?` in the active-memory doctor rule. It is the only rule spanning the
  header's line break, migrated assistant rows skip newline normalization, and
  without it the marked-header replace wins and the body strips to empty. Added
  a CRLF regression test.
- Fix stale comments that described removed behavior, and cover the Swift
  prose-block strip path.

Claude-Session: https://claude.ai/code/session_01WNzsPddQmxy9Y7jKD4wAxH
2026-07-27 11:27:53 +10:00
..
access-groups.md docs: rewrite published docs grounded in current source (#100142) 2026-07-05 00:32:47 -04:00
ambient-room-events.md docs(discord): document channel-allowlist and ambient room event pitfalls (#113692) 2026-07-25 06:43:02 -07:00
bot-loop-protection.md feat(feishu): bot-to-bot conversation support with @mention handling (#89783) 2026-07-17 11:44:00 +01:00
broadcast-groups.md refactor(config): config-surface reduction tranche 3 — product consolidations (review request) (#111527) 2026-07-21 20:28:43 -07:00
buzz.md fix: make Buzz rooms usable by default (#113419) 2026-07-26 14:09:23 +01:00
channel-routing.md refactor(config): config-surface reduction tranche 3 — product consolidations (review request) (#111527) 2026-07-21 20:28:43 -07:00
clickclack.md feat(ui): path-based session and dashboard URLs (#113883) 2026-07-26 12:46:04 -04:00
discord-activities.md refactor(discord): authorize widgets by channel audience (#110522) 2026-07-18 08:42:40 +01:00
discord.md docs(discord): document channel-allowlist and ambient room event pitfalls (#113692) 2026-07-25 06:43:02 -07:00
feishu.md refactor(config): config-surface reduction tranche 3 — product consolidations (review request) (#111527) 2026-07-21 20:28:43 -07:00
googlechat.md refactor(config): config-surface reduction tranche 3 — product consolidations (review request) (#111527) 2026-07-21 20:28:43 -07:00
group-messages.md refactor(agents): move implicit-main fallback into load-time roster injection (#112678) 2026-07-24 22:38:09 -07:00
groups.md refactor(agents): move implicit-main fallback into load-time roster injection (#112678) 2026-07-24 22:38:09 -07:00
imessage-from-bluebubbles.md refactor(imessage): remove split-send coalescing (#108436) 2026-07-23 00:26:41 -04:00
imessage.md refactor(imessage): remove split-send coalescing (#108436) 2026-07-23 00:26:41 -04:00
index.md feat(channels): add Buzz channel plugin 2026-07-26 14:09:23 +01:00
irc.md docs: document channel ingress guarantees (#111069) 2026-07-18 17:26:41 -07:00
line.md docs: document channel ingress guarantees (#111069) 2026-07-18 17:26:41 -07:00
location.md refactor(prompt): use plain inbound context labels and drop system-tag sanitizer (#112000) 2026-07-27 11:27:53 +10:00
matrix-migration.md refactor(channels): persist runtime state in plugin SQLite (#109380) 2026-07-16 17:05:28 -07:00
matrix-presentation.md docs: rewrite published docs grounded in current source (#100142) 2026-07-05 00:32:47 -04:00
matrix-push-rules.md refactor(config): retire flat and scalar streaming keys from matrix, feishu, and qqbot (#105808) 2026-07-12 20:33:14 -07:00
matrix.md refactor(config): config-surface reduction tranche 3 — product consolidations (review request) (#111527) 2026-07-21 20:28:43 -07:00
mattermost.md feat(channels): add unified implicit mention policy (#108829) 2026-07-16 17:16:01 -07:00
msteams.md fix: prevent LINE channel reloads from hanging on stalled deliveries (#110971) 2026-07-18 23:25:33 +01:00
nextcloud-talk.md refactor(config): retire flat streaming keys from the last six channel schemas via doctor migration (#105709) 2026-07-12 15:27:28 -07:00
nostr.md docs: rewrite published docs grounded in current source (#100142) 2026-07-05 00:32:47 -04:00
pairing.md feat(ui): manage DM pairing requests in Channels (#112401) 2026-07-22 04:54:20 -07:00
qa-channel.md refactor(qa): migrate Matrix scenarios into QA Lab (#103589) 2026-07-15 01:22:20 -07:00
qqbot.md refactor(config): config-surface reduction tranche 3 — product consolidations (review request) (#111527) 2026-07-21 20:28:43 -07:00
raft.md docs: rewrite published docs grounded in current source (#100142) 2026-07-05 00:32:47 -04:00
reef.md feat(reef): follow up on unconfirmed deliveries instead of staying silent (#110938) 2026-07-18 21:08:10 +01:00
signal.md feat(channels): add channel-owned setup contracts (#112176) 2026-07-22 19:57:42 -04:00
slack.md refactor(config): config-surface reduction tranche 3 — product consolidations (review request) (#111527) 2026-07-21 20:28:43 -07:00
sms.md fix: protect SMS webhook callback quota [AI] (#103620) 2026-07-13 10:29:59 +05:30
synology-chat.md docs: document channel ingress guarantees (#111069) 2026-07-18 17:26:41 -07:00
telegram.md refactor(config): config-surface reduction tranche 3 — product consolidations (review request) (#111527) 2026-07-21 20:28:43 -07:00
tlon.md docs: document channel ingress guarantees (#111069) 2026-07-18 17:26:41 -07:00
troubleshooting.md docs(discord): document channel-allowlist and ambient room event pitfalls (#113692) 2026-07-25 06:43:02 -07:00
twitch.md docs: document channel ingress guarantees (#111069) 2026-07-18 17:26:41 -07:00
wechat.md docs: rewrite published docs grounded in current source (#100142) 2026-07-05 00:32:47 -04:00
whatsapp.md refactor(config): retire redundant settings (#113174) 2026-07-23 17:45:02 -07:00
yuanbao.md docs: rewrite published docs grounded in current source (#100142) 2026-07-05 00:32:47 -04:00
zalo.md fix(zalo): prevent webhook message loss after acknowledgment (#110630) 2026-07-18 12:09:22 +01:00
zaloclawbot.md docs: rewrite published docs grounded in current source (#100142) 2026-07-05 00:32:47 -04:00
zalouser.md feat(zalouser): recover accepted messages after local crashes (#110916) 2026-07-18 20:32:30 +01:00