Skip to content

feat(x): add the X (Twitter) mentions channel plugin - #165138

Merged
steipete merged 10 commits into
mainfrom
steipete/roboclaw-steering-extension-301aea
Oct 4, 2026
Merged

steipete merged 10 commits into
mainfrom
steipete/roboclaw-steering-extension-301aea

Conversation

@steipete

@steipete steipete commented Oct 4, 2026

Copy link
Copy Markdown
Contributor

What Problem This Solves

Maintainers want to steer a team agent by mentioning its bot account on X and receive the result as a public reply linking to the resulting work session; OpenClaw had no X channel.

User Impact

Adds the bundled X (Twitter) channel plugin (x, configured through channels.x). Mentions from allowlisted X accounts become agent turns with the available thread as context. Answers are posted as public reply chains, with 280-character splitting, URL weighting through linkify-it and tlds, and any visible work-session URL appended.

Administrators manage allowed accounts through the X replies Control UI page and x.allowlist.* Gateway methods. Activity API streaming (post.mention.create) has a polling fallback. Durable ingress, a persisted since_id cursor, and persisted OAuth2 refresh-token rotation support recovery. DMs, media, likes, and follows are unsupported in v1. Setup, access controls, and API costs are documented in docs/channels/x.md.

The xai provider manifest also gets a name and description so it no longer appears as a bare ID beside “X (Twitter)” in plugin lists.

Live X round-trip proof remains pending a separately approved Team deployment. This PR does not deploy or restart a Gateway.

Why This Change Was Made

X moved to pay-per-use API pricing in February 2026. Per-event Activity streaming avoids routine polling cost and targets real mentions. The plugin refuses posts that do not mention the configured bot; X API replies are restricted to posts that mention or quote the app account. The existing core owns ingress admission, durable delivery custody, and agent dispatch; the plugin owns X transport, account state, and reply encoding.

Evidence

  • Coordinator autoreview was clean on the original head. A required rebase resolved only the two generated config-baseline conflicts with pnpm config:docs:gen; the seven commits otherwise replayed unchanged. Product code is patch-identical to the coordinator-reviewed source. The rebase X suite and core typecheck pass. A separate generated-hash repair incorporates the final xAI display labels; it changes no config counts and passed a focused Codex autoreview with no P0–P2 findings.
  • Prior local verification passed core/extension/test/script typechecks, typed lint, formatting, docs sanity, plugins:inventory:check, config-baseline checks, sample channels.x config validation, and CLI discovery (plugins list reports x loaded and enabled).
  • The 2026.9.8 SDK subpath audit checked 27 imports with zero missing; this is source compatibility evidence, not a live install claim.
  • Synthetic Control UI proof passed nine assertions covering add/remove, config/store union, named-only accounts, administrator revocation, and mobile scrolling, with no browser errors. The actual plugin view ran in a synthetic local host harness.
  • The post-review reply-classification regression covers 429 as a known undelivered rejection and 5xx as an ambiguous outcome; successful prefix IDs survive later chunk failures.
  • Prior full-build proof completed. Its startup-size report exceeded the inherited absolute budget by 210 bytes at baseline; the candidate added 49 bytes, within the existing 64-byte variance allowance, with the same 529-file startup source closure. No UI budget was changed.

pnpm test extensions/x --maxWorkers=1 passed 8 files / 53 tests in 91.42 s wall time (83.07 s Vitest), including a cold worker-cache build. pnpm tsgo:core and the final pnpm config:docs:check pass. Review-checkout proof and exact-head CI evidence will be added below. CI seconds are not yet available. No CHANGELOG.md edits: release notes are generated at release time.

X replies — before

X replies with an empty allowlist (synthetic fixture)

X replies — after

X replies after adding an allowed account (synthetic fixture)

@clawsweeper

clawsweeper Bot commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation scripts Repository scripts extensions: xai size: XL labels Oct 4, 2026
@steipete
steipete marked this pull request as ready for review October 4, 2026 21:54
@github-actions github-actions Bot added the dependencies-changed PR changes dependency-related files label Oct 4, 2026
@github-actions

github-actions Bot commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ Dependency graph changes

This maintainer PR changes the dependency graph.

No secops approval is required. This comment is informational because the PR author has Maintain or Admin access.

  • Current SHA: b108db5f9c40afcfbd0bafec82b0d09ea9bccbba
  • Maintainer: @steipete
  • Repository role: admin

These dependency graph changes were made:

  • pnpm-lock.yaml
  • extensions/x/package.json

Carefully review these changes before merging.

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Oct 4, 2026
@clawsweeper

clawsweeper Bot commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed October 4, 2026, 7:23 PM ET / 23:23 UTC (Revision 3).

ClawSweeper review

What this changes

Adds an X mentions channel with public reply chains, administrator allowlist controls, durable recovery, setup documentation, and clearer xAI plugin labels.

Merge readiness

⛔ Blocked before merge - 6 items remain

This maintainer-authored PR remains useful and is not implemented on fetched main. The previously reported allowlist-revocation defect remains, and authorization proof still does not reach production dispatch and final X transport.

Priority: P2
Reviewed head: b108db5f9c40afcfbd0bafec82b0d09ea9bccbba

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The plugin has coherent implementation and substantial supplemental coverage, but the unresolved authorization defect and final-effect proof gap prevent merge readiness.
Proof confidence 🦪 silver shellfish (2/6) Needs stronger real behavior proof before merge: Authority-chain proof required: show allowed, unallowlisted, and removed-during-resolution senders through production storage, agent dispatch, and final X transport, with rejection before unauthorized effects. Inspected screenshots prove synthetic allowlist presentation only; tests replace storage, dispatch, or transport. The trusted author is exempt from unrelated contributor proof, but scoped policy still requires the pending live X API verification. Additive plugin namespaces preserve existing stored data without migration. Post redacted terminal traces, logs, or diagnostic recordings; remove credentials and private details. Updating the PR body should trigger review, or a maintainer can request @clawsweeper re-review. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Patch quality 🦐 gold shrimp (3/6) Security review found an item that needs attention.

Verification

Check Result Evidence
Real behavior Needs proof Needs stronger real behavior proof before merge: Authority-chain proof required: show allowed, unallowlisted, and removed-during-resolution senders through production storage, agent dispatch, and final X transport, with rejection before unauthorized effects. Inspected screenshots prove synthetic allowlist presentation only; tests replace storage, dispatch, or transport. The trusted author is exempt from unrelated contributor proof, but scoped policy still requires the pending live X API verification. Additive plugin namespaces preserve existing stored data without migration. Post redacted terminal traces, logs, or diagnostic recordings; remove credentials and private details. Updating the PR body should trigger review, or a maintainer can request @clawsweeper re-review. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Evidence reviewed 9 items Introduced authorization snapshot: The pinned introduced diff adds a copied union of configured and stored grants before awaiting the core policy resolver. The core resolver performs further asynchronous work using that copied input.
Revocation does not invalidate captured grants: Removing a grant deletes its stored row without invalidating policy resolutions already using that row. After awaiting resolveXIngress, sendXDelivery checks handoff authority and config-object identity, neither of which detects this stored-row removal.
Core asynchronous policy boundary: The policy owner awaits store resolution, identifier normalization, access-group facts, and ingress state. Its group store callback does not reread the plugin allowlist because readChannelIngressStoreAllowFrom returns immediately for group conversations.
Findings 1 actionable finding [P1] [P1] Invalidate stored grants before the final reply handoff
Security Needs attention Removed sender retains captured authorization: Stored sender IDs become detached policy inputs across asynchronous resolution, while removal supplies no invalidation consumed at the final effect.

How this fits together

The X plugin receives mentions, checks sender access, and passes accepted posts with thread context into OpenClaw’s agent workflow. Agent answers return through the plugin as public X replies.

flowchart TD
  A[X mention feed] --> B[Durable incoming queue]
  C[Config and administrator allowlist] --> D[Sender authorization]
  B --> D
  D --> E[Thread context and agent dispatch]
  E --> F[Reply authorization]
  C --> F
  F --> G[Public X reply chain]
Loading

Before merge

  • Add real behavior proof - Needs stronger real behavior proof before merge: Authority-chain proof required: show allowed, unallowlisted, and removed-during-resolution senders through production storage, agent dispatch, and final X transport, with rejection before unauthorized effects. Inspected screenshots prove synthetic allowlist presentation only; tests replace storage, dispatch, or transport. The trusted author is exempt from unrelated contributor proof, but scoped policy still requires the pending live X API verification. Additive plugin namespaces preserve existing stored data without migration. Post redacted terminal traces, logs, or diagnostic recordings; remove credentials and private details. Updating the PR body should trigger review, or a maintainer can request @clawsweeper re-review. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
  • [P1] Invalidate stored grants before the final reply handoff (P1) - This prior finding remains unresolved. A stored-only sender is copied into groupAllowFrom before resolveStable performs further awaits. If an administrator removes that sender while resolution is pending, the returned decision still uses the captured ID. sendXDelivery subsequently checks only handoff authority and config identity; deleting the row changes neither, so a public reply can still be posted after removal. The monitor similarly consumes the captured decision for agent dispatch. Bind these decisions to revocable owner-held authority and invalidate it before either effect.
  • Resolve security concern: Removed sender retains captured authorization - Stored sender IDs become detached policy inputs across asynchronous resolution, while removal supplies no invalidation consumed at the final effect.
  • Resolve merge risk (P1) - Production-boundary evidence does not yet show allowed, unallowlisted, and revoked senders reaching or being rejected before agent dispatch and the final X reply POST.
  • Resolve merge risk (P1) - The new external X API contract remains unverified in a live setup; the captured PR body explicitly leaves that verification pending.
  • Complete next step (P2) - Repair stored-grant invalidation at agent dispatch and each public reply handoff.

Findings

  • [P1] [P1] Invalidate stored grants before the final reply handoff — extensions/x/src/ingress.ts:21-22
  • [high] Removed sender retains captured authorization — extensions/x/src/ingress.ts:21
Agent review details

Security

Needs attention: Stored allowlist revocation can fail to stop a pending authorization decision before agent dispatch or public posting.

PR surface

Source +2613, Tests +1882, Docs +273, Config +33, Generated +5, Other +23. Total +4829 across 52 files.

View PR surface stats
Area Files Added Removed Net
Source 26 2613 0 +2613
Tests 10 1882 0 +1882
Docs 8 279 6 +273
Config 2 33 0 +33
Generated 4 13 8 +5
Other 2 23 0 +23
Total 52 4843 14 +4829

Review metrics

Metric Value Why it matters
Plugin implementation and coverage Production source +2586 lines; tests and test support +1881 lines The new transport, operator UI, and recovery behavior explain the production growth, while the test doubles leave final-effect authorization unproven.

Merge-risk options

Maintainer options:

  1. Repair revocation and prove final effects (recommended)
    Invalidate grants captured before removal and demonstrate rejection at production dispatch and X transport before enabling the channel.

Technical review

Best possible solution:

Keep one plugin-owned allowlist authority that invalidates captured grants on removal and remains current at agent dispatch and every public reply handoff.

Do we have a high-confidence way to reproduce the issue?

Yes, source establishes the race: remove a stored-only sender after its IDs are captured but before policy resolution finishes; config identity remains unchanged and the captured grant can still authorize the effect. No runtime reproduction was executed.

Is this the best way to solve the issue?

The plugin uses the appropriate existing SDK and durable-ingress owners, but the authorization implementation needs repair: rereading a store before asynchronous resolution does not establish live authority at the final effect.

Full review comments:

  • [P1] [P1] Invalidate stored grants before the final reply handoff — extensions/x/src/ingress.ts:21-22
    This prior finding remains unresolved. A stored-only sender is copied into groupAllowFrom before resolveStable performs further awaits. If an administrator removes that sender while resolution is pending, the returned decision still uses the captured ID. sendXDelivery subsequently checks only handoff authority and config identity; deleting the row changes neither, so a public reply can still be posted after removal. The monitor similarly consumes the captured decision for agent dispatch. Bind these decisions to revocable owner-held authority and invalidate it before either effect.
    Confidence: 0.97

Overall correctness: patch is incorrect
Overall confidence: 0.96

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 5837209ed1ba.

Labels

Label changes:

  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Authority-chain proof required: show allowed, unallowlisted, and removed-during-resolution senders through production storage, agent dispatch, and final X transport, with rejection before unauthorized effects. Inspected screenshots prove synthetic allowlist presentation only; tests replace storage, dispatch, or transport. The trusted author is exempt from unrelated contributor proof, but scoped policy still requires the pending live X API verification. Additive plugin namespaces preserve existing stored data without migration. Post redacted terminal traces, logs, or diagnostic recordings; remove credentials and private details. Updating the PR body should trigger review, or a maintainer can request @clawsweeper re-review.

Label justifications:

  • P2: This is an optional new channel with a bounded pre-merge defect rather than a demonstrated outage in shipped behavior.
  • merge-risk: 🚨 security-boundary: Removing a stored sender grant can leave an asynchronous authorization snapshot usable for agent dispatch or public posting.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🦐 gold shrimp.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs stronger real behavior proof before merge: Authority-chain proof required: show allowed, unallowlisted, and removed-during-resolution senders through production storage, agent dispatch, and final X transport, with rejection before unauthorized effects. Inspected screenshots prove synthetic allowlist presentation only; tests replace storage, dispatch, or transport. The trusted author is exempt from unrelated contributor proof, but scoped policy still requires the pending live X API verification. Additive plugin namespaces preserve existing stored data without migration. Post redacted terminal traces, logs, or diagnostic recordings; remove credentials and private details. Updating the PR body should trigger review, or a maintainer can request @clawsweeper re-review. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Authority-chain proof required: show allowed, unallowlisted, and removed-during-resolution senders through production storage, agent dispatch, and final X transport, with rejection before unauthorized effects. Inspected screenshots prove synthetic allowlist presentation only; tests replace storage, dispatch, or transport. The trusted author is exempt from unrelated contributor proof, but scoped policy still requires the pending live X API verification. Additive plugin namespaces preserve existing stored data without migration. Post redacted terminal traces, logs, or diagnostic recordings; remove credentials and private details. Updating the PR body should trigger review, or a maintainer can request @clawsweeper re-review.

Evidence

Security concerns:

  • [high] Removed sender retains captured authorization — extensions/x/src/ingress.ts:21
    Stored sender IDs become detached policy inputs across asynchronous resolution, while removal supplies no invalidation consumed at the final effect.
    Confidence: 0.97

What I checked:

  • Introduced authorization snapshot: The pinned introduced diff adds a copied union of configured and stored grants before awaiting the core policy resolver. The core resolver performs further asynchronous work using that copied input. (extensions/x/src/ingress.ts:21, b108db5f9c40)
  • Revocation does not invalidate captured grants: Removing a grant deletes its stored row without invalidating policy resolutions already using that row. After awaiting resolveXIngress, sendXDelivery checks handoff authority and config-object identity, neither of which detects this stored-row removal. (extensions/x/src/send.ts:110, b108db5f9c40)
  • Core asynchronous policy boundary: The policy owner awaits store resolution, identifier normalization, access-group facts, and ingress state. Its group store callback does not reread the plugin allowlist because readChannelIngressStoreAllowFrom returns immediately for group conversations. (src/channels/message-access/runtime.ts:315, b108db5f9c40)
  • Review continuity: GitHub’s comparison against the previous reviewed head shows only partial-mock changes in three test files; the production authorization implementation is unchanged. The prior P1 finding therefore remains unresolved. A local comparison encountered unavailable objects and an HTTP 403; the successful GitHub comparison supplied the continuity evidence. (b108db5f9c40)
  • Inspected visual proof and remaining coverage: Both prepared screenshots were inspected: they show an empty allowlist and a newly added synthetic account. The captured body explicitly describes a synthetic UI host and pending live X verification. Monitor tests replace keyed storage, dispatch, and the X client; API tests inject fetch responses. These establish supplemental behavior coverage, not production final-effect authorization proof. (extensions/x/src/monitor.test.ts:92, b108db5f9c40)
  • Additive stored-data compatibility: The plugin adds x.allowlist, x.cursor, and x.oauth namespaces through the existing keyed-store owner. Registry runtime binds stores to plugin identity, and SQL conflicts are scoped by plugin_id, namespace, and entry_key. No existing schema or stored format is rewritten, so existing-state migration is unnecessary. (src/plugin-state/plugin-state-store.kernel.ts:152, b108db5f9c40)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Invalidate captured stored grants when a sender is removed.
  • Prove allowed, forbidden, and revoked senders at production dispatch and final transport boundaries.
  • Complete the pending live X API contract verification with redacted evidence.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (2 earlier review cycles)
  • reviewed 2026-10-04T22:01:38.215Z sha a3ab54912bc8b93edf14992af23181f0c0c970c9 :: needs real behavior proof before merge. :: [P1] [P1] Invalidate stored grants before the final reply handoff
  • reviewed 2026-10-04T22:44:47.634Z sha 4b91c23 :: needs real behavior proof before merge. :: [P1] [P1] Invalidate stored grants before the final reply handoff

Connect allowlisted X mentions to bound group sessions with thread context,
durable ingress, account-scoped cursors, and public threaded replies. Preserve
visible work-session links and append a configurable automation signature.

Verify both the bot recipient and sender before dispatch. Support Activity
streaming with polling fallback, SecretRef inputs and OAuth refresh rotation,
and administrator-only allowlist controls in the X replies plugin page.

Keep channel routing, queue custody and ambiguous-delivery recovery with their
existing core owners. Use only SDK subpaths available in OpenClaw 2026.9.8.
Cover cursor ordering and replay handoff, stream recipient filtering and
fallback, thread assembly, weighted reply chains, refresh ownership, and
administrator authorization. Distinguish safe pre-dispatch failures from
uncertain POST outcomes and preserve receipts for partial reply chains.

Validation: X suite 50 tests in 15.93s wall time; Zalo sibling suite 164 tests
in 145.31s. The shared host ambiguity integration suite also passed 8 tests.
The X queue fixture proves the plugin contract, not SQLite crash durability.
Document bot credentials, event modes, account settings, the allowlist page,
thread context and public reply behavior. Explain API costs, retry uncertainty,
and the 2026.9.8 SDK compatibility boundary. Add the channel to navigation,
glossary and generated plugin/channel inventories.

Record exactly 58 new channel config entries and 21 standard plugin entries
in the canonical config baseline; core field count remains unchanged.
A 429 or other client rejection of the reply POST proves X created no post, so the reply now
carries the not-dispatched marker (retryable only for 429). Server errors after dispatch stay
ambiguous so a retry cannot duplicate a public reply.
@steipete
steipete force-pushed the steipete/roboclaw-steering-extension-301aea branch from a3ab549 to 4b91c23 Compare October 4, 2026 22:38
@clawsweeper clawsweeper Bot added the proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. label Oct 4, 2026
@steipete
steipete merged commit 9666c02 into main Oct 4, 2026
142 checks passed
@steipete
steipete deleted the steipete/roboclaw-steering-extension-301aea branch October 4, 2026 23:35
MarMarLabs added a commit to MarMarLabs/openclaw that referenced this pull request Oct 5, 2026
17 upstream commits. Upstream's new X mentions channel (openclaw#165138) adds 60
channel and 21 plugin config entries. openclaw#165095 drops the search emoji from
a tool label in two Feishu tests, reply-dispatcher.test.ts and
streaming-card.test.ts. Both merged cleanly, and this branch has no other
copy of those lines.

Three generated files conflicted, docs/.generated/config-baseline.counts.json,
config-baseline.sha256 and src/config/bundled-channel-config-metadata.generated.ts.
All three were regenerated from this merge rather than hand-merged.
build:docker ran in a separate detached checkout of this commit. Counts are
core 2502, channel 3848 and plugin 4490, which is upstream's counts plus
this branch's two channel entries. The core and plugin hashes match
upstream/main and the channel hash is new, as predicted. The three
generated-file checks pass there.

Feishu: 102 files and 1521 tests in the extension project, 17 files and 241
tests in the database-workers project, all passing. The forwarder test and
the routing guards pass, 503 tests. tsgo:core, tsgo:extensions,
tsgo:extensions:test, tsgo:test:root, the line-cap, max-lines,
assertion-safety, database-worker, test-timeout-race and test-mock-exports
ratchets against upstream/main, oxlint and oxfmt on the 43 changed code
files all pass.
shakkernerd added a commit that referenced this pull request Oct 5, 2026
Pin the X runtime API to its existing runtime setter so plugin contract validation recognizes the bundled channel and catches export growth.

Refs #165138.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 5, 2026
* feat(x): add bundled mentions and public reply channel

Connect allowlisted X mentions to bound group sessions with thread context,
durable ingress, account-scoped cursors, and public threaded replies. Preserve
visible work-session links and append a configurable automation signature.

Verify both the bot recipient and sender before dispatch. Support Activity
streaming with polling fallback, SecretRef inputs and OAuth refresh rotation,
and administrator-only allowlist controls in the X replies plugin page.

Keep channel routing, queue custody and ambiguous-delivery recovery with their
existing core owners. Use only SDK subpaths available in OpenClaw 2026.9.8.

* test(x): verify mention delivery and operator controls

Cover cursor ordering and replay handoff, stream recipient filtering and
fallback, thread assembly, weighted reply chains, refresh ownership, and
administrator authorization. Distinguish safe pre-dispatch failures from
uncertain POST outcomes and preserve receipts for partial reply chains.

Validation: X suite 50 tests in 15.93s wall time; Zalo sibling suite 164 tests
in 145.31s. The shared host ambiguity integration suite also passed 8 tests.
The X queue fixture proves the plugin contract, not SQLite crash durability.

* docs(x): document setup, access controls and API costs

Document bot credentials, event modes, account settings, the allowlist page,
thread context and public reply behavior. Explain API costs, retry uncertainty,
and the 2026.9.8 SDK compatibility boundary. Add the channel to navigation,
glossary and generated plugin/channel inventories.

Record exactly 58 new channel config entries and 21 standard plugin entries
in the canonical config baseline; core field count remains unchanged.

* fix(x): use a product-neutral default reply signature

* fix(x): log the reason when an allowlist method fails

* fix(x): treat 4xx reply rejections as undelivered and keep 5xx ambiguous

A 429 or other client rejection of the reply POST proves X created no post, so the reply now
carries the not-dispatched marker (retryable only for 429). Server errors after dispatch stay
ambiguous so a retry cannot duplicate a public reply.

* improve(xai): name and describe the xAI plugin in its manifest

* docs(xai): regenerate config baseline for plugin display name

* fix(x): satisfy bundled channel and build contracts

* test(x): preserve real exports in partial mocks
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 5, 2026
Pin the X runtime API to its existing runtime setter so plugin contract validation recognizes the bundled channel and catches export growth.

Refs openclaw#165138.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies-changed PR changes dependency-related files docs Improvements or additions to documentation extensions: xai merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. scripts Repository scripts size: XL status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant