Skip to content

feat(mattermost): acknowledgement reactions, channel events and compact tool progress - #186891

Open
ceckert wants to merge 14 commits into
openclaw:mainfrom
ceckert:feat/mattermost-inbound-parity
Open

ceckert wants to merge 14 commits into
openclaw:mainfrom
ceckert:feat/mattermost-inbound-parity

Conversation

@ceckert

@ceckert ceckert commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Related: #184712

What Problem This Solves

Mattermost gains acknowledgement/status reactions, compact repeated tool progress, post and membership events, optional join introductions, reaction filtering, and spoken-mention admission for voice messages.

The implementation uses shared channel owners. Acknowledgements follow existing messages.ackReactionScope; failed runs receive the failure reaction. reactionNotifications defaults to all, preserving existing forwarding; own and off are opt-ins. Join introductions remain disabled unless explicitly enabled, with live admission rechecked before the model turn. Voice preflight honors audio scope and only echoes transcripts after admission, without downloading admitted media twice. Existing configs remain valid.

Evidence

Current head e22008765ad455a57210dec9bfcca88071053a81 adds only the 254-line test allocation for the measured regression coverage. The local test-line ratchet passes. The runtime and tests are byte-identical to the build and live proof head below. Hosted CI has restarted.

Runtime proof head f7a61e86344452a9253b65ea897c047c1aea980e integrates OpenClaw main 8ae6b3852f97. The native link-preview handling and send tests are preserved. The bundled channel metadata and config-doc baseline were regenerated with the native generators.

  • Node 24.22.2 and pnpm 12.15.0 completed a frozen install and runtime build. Build-info matched the clean head. A disposable Gateway reached readiness and connected to a real Mattermost Team Edition 11.1 server. A human post over Mattermost produced an eyes acknowledgement from the bot on that exact post, confirmed through Mattermost's REST API.
  • Channel metadata, config-doc baseline and whitespace checks pass. The broad local Mattermost run encountered a slash HTTP boundary timeout. Hosted CI on the refreshed head is pending.
  • For source review, start with the channel defaults and monitor-posts.ts, then monitor-feedback.ts, monitor-system-events.ts and preflight-audio.ts. The external proof below covers additional prior-head scenarios.

Reused proof from prior head 6d0cbc6f38c:

  • Mattermost suite: 480 passed, 1 failed across 52 files. The sole failure is the unchanged slash HTTP capacity test (reserves authenticated capacity…, expected 8, got 0); a clean checkout of its exact upstream base ddd4d963 reproduces it (6 passed, 1 failed).
  • Extension production/test types, focused lint/format, generated checks and whitespace checks passed. Fresh independent source review found no actionable correctness issues. The suite is not claimed fully green.

Existing live screenshots and proof were captured on a prior PR head using a disposable Mattermost server and Gateway. They cover acknowledgement reactions, compact progress, system events and reaction filtering; they are not a live run of this refreshed head.

Maintainer edits are enabled.

…ress

Mattermost gains the inbound UX the other chat channels already have: an
acknowledgement reaction with lifecycle status, counted tool rows in progress
previews (compactToolRuns), post edit/delete and member join/leave system
events, a join introduction when the bot is added to a channel,
reactionNotifications (own by default), and spoken-mention admission for
media-only voice posts in mention-gated channels.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
@clawsweeper

clawsweeper Bot commented Oct 28, 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 channel: mattermost Channel integration: mattermost size: XL labels Oct 28, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Oct 28, 2026
@clawsweeper

clawsweeper Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge.

What this changes

Adds Mattermost acknowledgements, compact tool progress, channel events, optional introductions, reaction filtering, and spoken-mention admission.

Example: Alice asks @octo to run twelve commands with progress previews enabled.

  • Before: Repeated Exec rows fill the preview, and Alice receives no acknowledgement reaction.
  • After: Alice receives 👀 and a compact preview row such as Exec ×12.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) Useful behavior has visible live proof, but one definite filtering defect, unresolved product direction, and incomplete authority and upgrade evidence prevent merge readiness.
Proof confidence 🦪 silver shellfish (2/6) Real behavior proof is necessary before merge. See Before merge.
Patch quality 🦐 gold shrimp (3/6) Security review found an item that needs attention.

Product

Kind: Feature · Worth it: Needs a maintainer decision · Fix scope: Complete
User problem: Mattermost users lack immediate acknowledgements, concise repeated-tool progress, channel-change awareness, and spoken-mention activation.
Reason: The feature has demonstrated user value, but its three settings and automatic acknowledgement defaults require an owner decision.

Merge readiness

⛔ Blocked before merge - 6 items remain

Keep open: this PR adds useful Mattermost capabilities absent from main, but its post-type filtering needs repair and its new settings and defaults need an owner decision.

Priority: P2
Reviewed head: e22008765ad455a57210dec9bfcca88071053a81
Owner decision: Required. See Decision needed.

Decision needed

  • Question: Should Mattermost adopt all three new settings and automatic acknowledgements under the shared scope defaults?
  • Recommendation: Approve the bounded parity contract: Accept shared acknowledgement defaults, opt-in introductions, and the preserved all-reactions default after the implementation and evidence blockers are resolved.
  • Why: The capabilities have concrete value, but the historical acknowledgement discussion and this PR contain no maintainer approval of the new configuration and visible defaults.

Before merge

  • Add real behavior proof - Authority-chain proof required: inspected Mattermost screenshots demonstrate acknowledgements, compact progress, and an allowed introduction, and the current body records a real Gateway acknowledgement on the runtime-identical preceding head. The earlier review describes audio-scope, reload, revocation, and upgrade traces, but those primary traces are absent from the current body and comments. Restore those redacted artifacts and demonstrate that revocation during introduction generation prevents the final post; redact credentials, IPs, phone numbers, and non-public endpoints. After adding proof, update the PR body, then request a new review with @clawsweeper re-review. The PR author or someone with repository write access can request it.
  • Preserve human attachment posts in events and introduction context (P2) - A human post decorated by a Mattermost link-preview plugin can have type slack_attachment. This condition drops its edit/delete events, and resolveRoomContext's filter also omits it from introduction context. Merged fix(mattermost): person posts with a link-preview card are dropped as system posts #193836 established this production input and changed normal ingestion/history to exclude only system_* types. Apply that same distinction here while retaining the self-post exclusion, and cover typed human events and context.
  • Resolve security concern: Room authority is checked before execution, not demonstrated at delivery - The callback reads live account/group policy before runCronIsolatedAgentTurn, but the turn receives captured configuration and a null delivery fence. The supplied screenshots show an allowed introduction; they do not establish rejection when admission is revoked while generation is pending.
  • Resolve merge risk - The contributor must establish how account or group-policy revocation during introduction generation reaches final delivery, or a maintainer must explicitly accept admission-at-start semantics; the current callback is consumed only before the isolated turn.
  • Add data-model compatibility proof - The review found that existing stored data may not work after upgrade. Show that existing data still loads and works with this change.
  • Explain or restore the original intent of Human attachment post classification - c0f7a4d: Human link-preview posts can carry slack_attachment; only system_* posts should be excluded as system messages.

Findings

  • [P2] Preserve human attachment posts in events and introduction context — extensions/mattermost/src/mattermost/monitor-system-events.ts:128-129
  • [medium] Room authority is checked before execution, not demonstrated at delivery — src/channels/join-intro/report-channel-room-join.ts:202

Provenance

  • Human attachment post classification changes intended behavior without addressing why it exists (c0f7a4d: Human link-preview posts can carry slack_attachment; only system_* posts should be excluded as system messages.)

Tests

  • Missing end-to-end proof: Restore inspectable audio-scope and join-authority traces, include revocation through final delivery, and provide a latest-stable upgrade preserving configuration and session data.
Agent review details

How this fits together

The Mattermost plugin receives WebSocket events, applies admission and session routing, invokes shared channel owners, and sends reactions and replies through Mattermost REST.

flowchart LR
 A[Mattermost WebSocket] --> B[Plugin event handlers]
 B --> C[Admission and session routing]
 C --> D[Shared agent runtime]
 C --> E[Shared introduction owner]
 D --> F[Feedback and progress adapters]
 E --> G[Mattermost REST]
 F --> G
Loading

Technical review

Best possible solution:

Retain the shared owners, apply the existing system_* post classification consistently, and settle the proposed defaults and introduction authority contract.

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

Current-main source confirms the missing integrations, and a human post with type slack_attachment deterministically reaches the new handler's discard branch; no target code or tests were executed.

Is this the best way to solve the issue?

The smallest implementation uses the existing feedback, compositor, transcription, and introduction owners, but must preserve human attachment posts and resolve the introduction's live-authority lifecycle.

Full review comments:

  • [P2] Preserve human attachment posts in events and introduction context — extensions/mattermost/src/mattermost/monitor-system-events.ts:128-129
    A human post decorated by a Mattermost link-preview plugin can have type slack_attachment. This condition drops its edit/delete events, and resolveRoomContext's filter also omits it from introduction context. Merged fix(mattermost): person posts with a link-preview card are dropped as system posts #193836 established this production input and changed normal ingestion/history to exclude only system_* types. Apply that same distinction here while retaining the self-post exclusion, and cover typed human events and context.
    Confidence: 0.99

Overall correctness: patch is incorrect
Overall confidence: 0.91

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 3a6cc6597d1d.

Merge-risk options

Maintainer options:

  1. Carry live introduction admission through delivery (recommended)
    The contributor should connect the existing room admission decision to the final send boundary and demonstrate rejection after revocation during generation.
  2. Defer introductions
    A maintainer can narrow this PR to the remaining parity improvements until the introduction authority contract is settled.

Provenance checked

  • Progress and final-delivery lifecycle keeps the original intent (6c2ac52: Centralize preview acceptance and preserve delivered answers through shared ownership.)
  • Join introductions keeps the original intent (63f7df8: Channel adapters provide bounded room evidence to one shared, tool-free introduction owner.)
  • Reaction thread identity keeps the original intent (80bab7e: Hydrate the reacted post so events reach the session that owns its thread.)

Testing

Proof path: shipped entry point.

Security

Needs attention: Introduction delivery needs final-effect authority evidence; no dependency or supply-chain changes were found.

Evidence

Security concerns:

  • [medium] Room authority is checked before execution, not demonstrated at delivery — src/channels/join-intro/report-channel-room-join.ts:202
    The callback reads live account/group policy before runCronIsolatedAgentTurn, but the turn receives captured configuration and a null delivery fence. The supplied screenshots show an allowed introduction; they do not establish rejection when admission is revoked while generation is pending.
    Confidence: 0.9

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 63f7df8 adds src/channels/join-intro/report-channel-room-join.ts:28 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 63f7df85bb9b; files: src/channels/join-intro/report-channel-room-join.ts)
  • Ayaan Zaidi: Raw commit 6c2ac52 adds extensions/mattermost/src/mattermost/monitor-turn.ts:193 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 6c2ac526d457; files: extensions/mattermost/src/mattermost/monitor-turn.ts)
  • joshavant: Raw commit 5453504 adds extensions/mattermost/src/mattermost/monitor-turn.ts:192 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 545350488a07; files: extensions/mattermost/src/mattermost/monitor-turn.ts)

PR surface

Source +583, Tests +255, Docs +17, Generated 0, Other 0. Total +855 across 45 files. Added test files: 4.

View PR surface stats
Area Files Added Removed Net
Source 14 595 12 +583
Tests 23 846 591 +255
Docs 3 22 5 +17
Config 0 0 0 0
Generated 3 16 16 0
Other 2 2 2 0
Total 45 1481 626 +855

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Review metrics

Metric Value Why it matters
Configuration additions 3 settings, each available at channel and account scope joinIntro, reactionNotifications, and ackReaction expand configuration; introductions remain opt-in while acknowledgements introduce visible behavior under shared defaults.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: The improvements and identified defect affect bounded Mattermost behavior rather than core runtime availability.
  • merge-risk: 🚨 compatibility: Existing installations gain automatic acknowledgements, and the public introduction helper gains optional parameter capabilities.
  • merge-risk: 🚨 security-boundary: Introduction admission depends on live account and group policy, but enforcement after the isolated turn starts remains unproven.
  • 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.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rank-up moves

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

  • Add final-effect proof that disabling the Mattermost account or group policy during introduction generation prevents delivery.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (6 earlier review cycles)
  • reviewed 2026-10-28T16:39:01.026Z sha 611916e :: needs real behavior proof before merge. :: [P1] Regenerate bundled channel metadata for the new settings | [P2] Give inspected mocks their actual parameter signatures | [P2] Use the agent-run outcome when finishing acknowledgement feedback | [P3] Correct the documented default acknowledgement scope | [P3] Remove the test-only transcription injection surface
  • reviewed 2026-10-28T18:51:32.757Z sha 6bcebf6 :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-28T20:11:47.308Z sha 94316e8 :: needs real behavior proof before merge. :: [P1] [P1] Preserve the actual room kind during audio preflight | [P2] [P2] Defer transcript echoes until mention admission succeeds | [P2] [P2] Keep the isolated-turn mock inside the core test boundary
  • reviewed 2026-10-28T20:52:23.263Z sha 6eee2c6 :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-28T21:19:59.830Z sha 2ae49b1 :: blocked before merge. :: none
  • reviewed 2026-10-28T21:28:12.722Z sha 2ae49b1 :: blocked before merge. :: none

Reviewed November 11, 2026, 10:55 AM ET / 15:55 UTC (Revision 7).

Regenerate bundled channel config metadata and the config docs baseline
for the new joinIntro, reactionNotifications and ackReaction options
(channel budget 4001 -> 4007), parse update_at on posts instead of
asserting it, type the zero-arg mocks whose call tuples the tests read,
and let mock factories pass real exports through.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
@ceckert

ceckert commented Oct 28, 2026

Copy link
Copy Markdown
Contributor Author

Live proof screenshots from the disposable Mattermost server and gateway described in the Evidence section (bot @octo, human user alice, scripted provider issuing twelve real exec calls):

  1. Mid-run progress preview: one post edited in place showing the counted row 🛠️ Exec ×6: running while the bot is still typing.
  2. The channel afterwards: 👀 acknowledgement reaction on every human post, the preview finalized in place (Ran 12 steps…, marked Edited), the failing-step turn, and alice's 👍 on a bot post (forwarded) next to her own-post reaction (not forwarded).
  3. A fresh #ops channel: the bot's join introduction posted right after it was added, following the channel purpose and two prior posts.
pr186891-progress-live pr186891-channel pr186891-join-intro

ceckert and others added 2 commits October 28, 2026 10:33
…action defaults

- Read the agent-run terminal outcome from `inbound.run` so a failed model run
  sets the error reaction even when its error notice delivered normally.
- Default `reactionNotifications` to `all` so existing deployments keep
  forwarding every allowed reaction; `own` and `off` stay opt-ins.
- Document the real `messages.ackReactionScope` default: `group-mentions`
  acks mentioned channel posts only, so DMs need `direct` or `all`.
- Drop the test-only `createMattermostPreflightAudio` factory in favor of one
  module-level adapter; the skip cases prove the transcriber is not called.
- Authorize the join introduction from the current configuration at event
  time (account enabled, group policy not disabled) instead of the policy
  captured at monitor start.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
…line ceiling

The checks-fast-baseline-ratchets test-lines job failed on this branch
(net +520 test lines against a ceiling main already sits ~130 under).
Bring the branch's net test-line delta down to +98 without touching
production code or raising the ceiling.

Consolidated the tests this PR added:
- monitor.loopback.test-support.ts: one shared loopback Mattermost server
  and monitor-context fixture (uses setMattermostRuntime instead of a
  per-file vi.mock of ../runtime.js), now used by monitor-system-events
  and monitor.reaction-thread-session.
- monitor-system-events: post edit/delete, threaded edit, member join/leave
  in one table; join intro and the three authority skip cases unchanged
  (still run the real reportChannelRoomJoin owner).
- monitor.feedback.test-support: ack cycle for completed and failed runs
  (the ❌ case) as one table.
- monitor-websocket: reaction + edit/delete/membership dispatch in one
  test; dropped the post_edited probe from the raw-envelope test it now
  covers.
- preflight-audio, normalize: inline fixtures and it.each tables.

Removed duplicated or implementation-coupled coverage (surviving proof):
- monitor-auth "checks sender allowlists" asserted the arguments of a
  mocked resolveAllowlistMatchSimple; now runs the real matcher with an
  allowed and a denied case. Its four command-authorization cases moved
  into the monitor.test authorizeMattermostCommandInvocation table, which
  also replaces the "DM commands in open mode" ingress-level row.
- inbound "routes a mention-prefixed text command without debouncing":
  the debounce table "flushes text before an immediate command post" now
  asserts WasMentioned/CommandAuthorized/CommandSource too.
- thread-participation "remembers a thread the bot replied in": covered by
  the restart and store-failure tests.
- monitor-ingress "retries a transient append failure and escalates a
  persistent one": escalation folded into the retry-backoff order test.
- monitor-slash "falls back to the configured gateway port when the env
  port is out of range": resolveGatewayPort is owned by
  src/config/paths.test.ts ("resolves env port 65536 ...").
- interactions "falls back to localhost when customBindHost is a wildcard
  bind address": same resolveCallbackHost branch proven in
  slash-commands.test "falls back to localhost callback URL for wildcard
  bind hosts"; single-use request helpers inlined.
- setup "treats secret-ref tokens plus base url as configured": covered by
  channel-actions-setup-status.contract "inspects source SecretRefs".
- send "forwards retry settings when resolving a bare user id": covered
  over real HTTP by send.authority "stops DM backoff after retirement"
  and "resolves cold and warm bare users"; parseMattermostTarget empty
  cases moved into the target-resolution table; dropped a call-count
  assertion on resolveMattermostAccount.
- target-resolution "rejects disabled accounts before cache or provider
  access": channel.test "rejects disabled accounts before opaque target
  resolution provider access" proves it at the action boundary; "uses the
  configured account for directory discovery" only asserted a mock's
  arguments.
- channel.test "rejects invalid read cursors and limits": owned by
  client.test "rejects read options %j before provider access".
- outbound-delivery hook rewrite/cancel tests merged into one table.

Pruned the two retired vi.mock factories from
config/test-mock-exports-baseline.txt.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
@ceckert

ceckert commented Oct 28, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. labels Oct 28, 2026
…loads and make introductions opt-in

- The join-introduction owner now accepts `roomAllowed` as a function and
  re-evaluates it after the room context loads and right before the isolated
  turn starts, releasing its claim and skipping with `room-not-allowed` when
  admission was revoked meanwhile. Mattermost passes a closure that re-reads
  the account and group policy from the gateway's current config, so disabling
  the account or setting `groupPolicy: "disabled"` while the channel purpose
  and posts load prevents both the provider call and the Mattermost post.
- Mattermost introductions are opt-in: the owner takes `enabledByDefault`,
  Mattermost passes `false`, and an unset `joinIntro` skips with `disabled`
  before any channel read. Enable with `channels.mattermost.joinIntro: true`
  (or per account). Docs, the config hint, and the generated channel metadata
  follow; Slack, Discord, and the other callers keep their defaults.

The Mattermost system-event test file moves to the database-worker project so
the real owner's durable join claim can run against the loopback server.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Copilot AI lite review requested due to automatic review settings October 28, 2026 19:16

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The change has an unresolved moderate configuration mismatch with its stated default behavior, plus missing coverage for the successful audio-transcription path.

2 open issues
What changed in this PR

This PR brings Mattermost closer to feature parity with other supported channels by adding acknowledgement/status reactions, compact tool-progress previews, audio-based mention admission, websocket-driven system events, reaction filtering, and channel join introductions. It also consolidates related tests and refreshes documentation and generated configuration metadata.

Changes:

  • Added acknowledgement reactions, failed-run status handling, emoji mappings, and configurable reaction notification modes.
  • Added edit, deletion, membership, and reaction event forwarding through Mattermost websockets.
  • Added join introductions with room-policy and account authorization checks.
  • Added spoken-mention admission for audio-only posts and compact repeated tool-progress rows.
  • Consolidated Mattermost tests and updated documentation, configuration schemas, generated baselines, and worker registration.
File Description
test/​vitest/​vitest.extension-database-workers-paths.mjs Registers the Mattermost system-event tests in the worker test project.
src/​channels/​join-intro/​report-channel-room-join.ts Adds join-introduction defaults and admission revalidation.
src/​channels/​join-intro/​report-channel-room-join.test.ts Tests introduction defaults and admission revocation.
extensions/​mattermost/​src/​setup.test.ts Consolidates Mattermost setup coverage.
extensions/​mattermost/​src/​outbound-delivery.test.ts Consolidates outbound delivery test cases.
extensions/​mattermost/​src/​normalize.test.ts Consolidates target normalization tests.
extensions/​mattermost/​src/​mattermost/​thread-participation.test.ts Removes redundant thread-participation coverage.
extensions/​mattermost/​src/​mattermost/​target-resolution.test.ts Consolidates target validation coverage.
extensions/​mattermost/​src/​mattermost/​send.test.ts Consolidates send and target-resolution tests.
extensions/​mattermost/​src/​mattermost/​preflight-audio.ts Adds audio detection and transcription for spoken-mention admission.
extensions/​mattermost/​src/​mattermost/​preflight-audio.test.ts Tests audio preflight early-return behavior.
extensions/​mattermost/​src/​mattermost/​monitor.ts Wires system-event handling into the Mattermost monitor.
extensions/​mattermost/​src/​mattermost/​monitor.test.ts Expands Mattermost authorization coverage.
extensions/​mattermost/​src/​mattermost/​monitor.reaction-thread-session.test.ts Tests reaction notification modes and shared loopback setup.
extensions/​mattermost/​src/​mattermost/​monitor.preview-delivery.test-support.ts Tests compact and raw tool-progress rendering.
extensions/​mattermost/​src/​mattermost/​monitor.loopback.test-support.ts Provides reusable Mattermost loopback monitor fixtures.
extensions/​mattermost/​src/​mattermost/​monitor.ingress-debounce.test-support.ts Strengthens command-context and debounce assertions.
extensions/​mattermost/​src/​mattermost/​monitor.inbound-system-event.test.ts Integrates feedback and preview harnesses into inbound tests.
extensions/​mattermost/​src/​mattermost/​monitor.feedback.test-support.ts Tests acknowledgement lifecycle and spoken-mention admission.
extensions/​mattermost/​src/​mattermost/​monitor-websocket.ts Recognizes and dispatches Mattermost system events.
extensions/​mattermost/​src/​mattermost/​monitor-websocket.test.ts Tests websocket dispatch for reactions, post changes, membership, and ignored events.
extensions/​mattermost/​src/​mattermost/​monitor-turn.ts Connects feedback lifecycle handling and compact progress rendering to turns.
extensions/​mattermost/​src/​mattermost/​monitor-system-events.ts Implements post-event forwarding, membership events, and join introductions.
extensions/​mattermost/​src/​mattermost/​monitor-system-events.test.ts Tests system-event routing, join context, and authorization behavior.
extensions/​mattermost/​src/​mattermost/​monitor-slash.test.ts Removes redundant slash-command setup coverage.
extensions/​mattermost/​src/​mattermost/​monitor-resources.ts Exports Mattermost media metadata for audio preflight.
extensions/​mattermost/​src/​mattermost/​monitor-reactions.ts Applies configurable reaction notification filtering.
extensions/​mattermost/​src/​mattermost/​monitor-posts.ts Adds audio admission, feedback creation, and media reuse.
extensions/​mattermost/​src/​mattermost/​monitor-ingress.test.ts Consolidates transient ingress retry coverage.
extensions/​mattermost/​src/​mattermost/​monitor-feedback.ts Implements acknowledgement and status-reaction lifecycle handling.
extensions/​mattermost/​src/​mattermost/​monitor-auth.test.ts Consolidates authentication and allowlist coverage.
extensions/​mattermost/​src/​mattermost/​interactions.test.ts Consolidates interaction-token and callback tests.
extensions/​mattermost/​src/​mattermost/​emoji.ts Maps shared lifecycle reaction glyphs to Mattermost names.
extensions/​mattermost/​src/​mattermost/​client.ts Adds post update timestamps to the Mattermost schema.
extensions/​mattermost/​src/​mattermost/​client.test.ts Consolidates invalid post-read option tests.
extensions/​mattermost/​src/​config-surface.ts Adds UI hints for join, reaction, and acknowledgement settings.
extensions/​mattermost/​src/​config-schema-core.ts Adds schema support for the new Mattermost options.
extensions/​mattermost/​src/​channel.test.ts Removes duplicate provider-access validation coverage.
docs/​concepts/​streaming.md Documents compact progress rows.
docs/​channels/​mattermost.md Documents Mattermost reactions, audio admission, events, introductions, and progress compaction.
docs/​channels/​index.md Updates the join-introduction support documentation.
docs/​.generated/​config-baseline.sha256 Refreshes generated configuration hashes.
docs/​.generated/​config-baseline.counts.json Refreshes generated configuration counts.
config/​test-mock-exports-baseline.txt Updates the generated mock-export baseline.

Review effort: Lite

@ceckert

ceckert commented Oct 28, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

ceckert and others added 2 commits October 28, 2026 13:02
Extension tests may not mock src/cron/isolated-agent.js directly, and no
plugin-sdk subpath exposes runCronIsolatedAgentTurn. The revocation case
already observes that no post reaches the loopback server and that the
owner reports room-not-allowed; on the pre-fix owner the turn starts and
the outcome becomes failed, so the observable keeps the case red there.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
@clawsweeper clawsweeper Bot removed the rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. label Oct 28, 2026
@clawsweeper

clawsweeper Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. merge-risk: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. labels Oct 28, 2026
ceckert and others added 2 commits October 28, 2026 14:08
A scope rule added by config reload reached the shared media pass but not the
spoken-mention preflight, which still used the monitor's startup snapshot and
sent a private-room voice note to the transcription provider. Found live on
the disposable gateway. The preflight now reads config.current() like the join
introduction does; the harness case asserts the live scope reaches it.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
@ceckert

ceckert commented Oct 28, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. status: ⏳ waiting on maintainer Only explicit maintainer approvals or decisions remain; merge is still blocked. and removed merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Oct 28, 2026
@openclaw-barnacle openclaw-barnacle Bot added triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. and removed triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. labels Nov 1, 2026
@ceckert

ceckert commented Nov 11, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added the clawsweeper:intake:feature Preliminary submission classification; full source review pending. label Nov 11, 2026
@clawsweeper clawsweeper Bot added merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. 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. and removed proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. clawsweeper:intake:feature Preliminary submission classification; full source review pending. status: ⏳ waiting on maintainer Only explicit maintainer approvals or decisions remain; merge is still blocked. labels Nov 11, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: mattermost Channel integration: mattermost docs Improvements or additions to documentation merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. 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. 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.

2 participants