Repository navigation
Conversation
|
Codex review: needs real behavior proof before merge. What this changesThis PR records fenced MEDIA directives and warns after accepted outbound delivery while preserving them as literal text. Example: An assistant replies with
Review scores
ProductKind: Bug fix · Worth it: Needs a maintainer decision · Fix scope: Complete Merge readiness⛔ Blocked before merge - 8 items remain Keep this PR open: its diagnostic remains absent from main, it has maintainer review engagement, and the outstanding hook defect still blocks merge. Priority: P2 Decision needed
Before merge
Findings
Provenance
Tests
Agent review detailsHow this fits togetherAssistant text enters reply parsing and outbound planning; policy hooks and durable queue preparation precede channel sends, whose accepted results trigger the diagnostic. flowchart LR
A[Assistant reply] --> B[Pure directive parser]
B --> C[Outbound plan]
C --> D[Policy and queue custody]
D --> E[Channel send]
C --> F[Direct delivery helpers]
F --> E
E --> G[Accepted send warning]
Technical reviewBest possible solution: Preserve parsing policy through hooks and use one shared accepted-send diagnostic implementation with only the owner-approved queue and SDK surface. Do we have a high-confidence way to reproduce the issue? Current main source and existing tests establish literal fenced MEDIA output without a diagnostic; the introduced hook-policy failure is also traceable in source, but no target code was executed. Is this the best way to solve the issue? Warning-only handling respects the documented literal-code contract, but the implementation needs policy preservation and consolidation rather than additional downstream guards. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 2dd328a2a0cc. Merge-risk optionsMaintainer options:
Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +796, Tests +1211, Config +11, Other +1. Total +2019 across 44 files. Added test files: 3. View PR surface stats
Review metrics
LabelsLabel changes: No label changes. Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (117 earlier review cycles; latest 8 shown)
Reviewed October 10, 2026, 10:17 AM ET / 14:17 UTC (Revision 118). |
|
This pull request has been automatically marked as stale due to inactivity. |
|
ClawSweeper PR egg 🎁 Pass real behavior proof to wake the egg and unlock a hatchable treat. Where did the egg go?
|
5dea644 to
5102c3c
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review |
|
🦞👀 Command router queued. I will update this comment with the next step. Re-review progress:
|
|
Heads up: this PR needs to be updated against current |
5102c3c to
5366ecb
Compare
|
@RomneyDa Done — rebased onto current Verification on the rebased branch:
|
5366ecb to
3c3a2bc
Compare
…latch test mock - Drop unnecessary Boolean() around boolean merge in reply directive merge - Telegram fenced-media test: mock latch with real plan builder so warn spy receives fencedSkippedMediaDirectives (relative warn import bypassed mock)
Drop === true boolean-literal compares for mediaTokenSkippedInFence merge.
ClawSweeper P2 on openclaw#80396: pending assistant reply directives now retain mediaTokenSkippedInFence / fencedSkippedMediaDirectives, hasReplyDirectiveMetadata treats them as real metadata, and createOutboundPayloadPlan merges payload-carried facts so embedded streamed block replies still warn after accepted send. Also drop !! boolean coercion that failed oxlint on the merge helper.
…G pre-hook) ClawSweeper on 7756f33: latch Slack text-only sends; join accepted chunks without synthetic newlines and match directive identity contiguously; build Telegram latch from pre-hook plan facts.
…law#41966) deliverTextOrMediaReply already owns the accepted-caption latch; Slack must not also fire its outer latch for the same caption. Keep the outer latch for text/block-only paths and pass cfg/surface into the shared helper.
- oxlint curly on Slack/Telegram fenced-MEDIA test latch mocks - keep AgentRuntimeReplyPayload keys in sync with ReplyPayload fence signals
…#41966) Remove static import of channel-outbound-fenced-media-runtime from the public reply-payload entrypoint to break the reply-payload → latch → payloads → reply-payload ESM cycle and avoid loading outbound planning on every plugin import. Latch loads only inside async direct-delivery helpers.
…law#41966) ClawSweeper P1 on 934b1e7d3615: createOutboundPayloadPlan only reads extractMarkdownImages from context, so cfg/surface on public reply-payload helpers and the private direct latch widened the SDK surface with no effect. Remove those parameters and caller plumbing; keep payload-only latch identity.
…cks (openclaw#41966) P1: omit mediaTokenSkippedInFence/fencedSkippedMediaDirectives from compact nested payload and drop them on message_sending text rewrite so redacted paths cannot enter queue custody. P2: latch fenced MEDIA warn after accepted Slack structured-block sends.
Assertion-safety ratchet requires // SAFETY immediately above `as never` in channel-outbound-fenced-media-latch.ts (openclaw#41966).
…openclaw#41966) ClawSweeper P2 on openclaw#80396: block replies disable MEDIA directive parsing, but the direct-delivery latch reparsed with defaults and could false-warn. - Stamp extractMediaDirectives:false onto normalized block payloads - Thread the mode through createOutboundPayloadPlan / direct latch - Skip latch entirely when extraction is disabled - Regressions: latch unit + deliverTextOrMediaReply + reply-delivery stamp
…plan ClawSweeper P2 on openclaw#80396: prepareOutboundPayloadBatch replan of accepted text must carry extractMediaDirectives:false so disabled block-reply parsing cannot false-mark fenced MEDIA as skipped for durable diagnostics.
- Place // SAFETY immediately above `as never` for assertion-safety ratchet in channel-outbound-fenced-media-latch (openclaw#41966). - Cast extractMediaDirectives test bags as never so OutboundReplyPayload typing accepts the private latch option without expanding the public type.
…ctives - assertion-safety: // SAFETY above LatchPayload cast - AgentRuntimeReplyPayload: add extractMediaDirectives so keyof ReplyPayload stays in sync
CI shard auto-reply-reply-state-routing failed: block delivery now stamps extractMediaDirectives:false on normalized payloads; update expectations.
Wake 2026-08-18 — ClawSweeper owner-gate + clean rebaseLatest durable ClawSweeper (reviewed
ClawSweeper recommendation: keep all accepted-send paths. Author cannot self-approve that product/architecture scope. This wake:
Please re-score exact head @clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Fast wake (ClawSweeper re-review @ 04:48 UTC)Human gate still open: Vincent’s earlier request (warn once at outbound delivery, not on every ClawSweeper standing item: owner decision on all-path durable + bundled direct-send diagnostic ownership vs a single canonical outbound owner. No new mechanical code defect in the latest review — merge readiness is that product/architecture call. Happy to narrow to one owner path if maintainers prefer that over the current all accepted-send coverage. |
ClawSweeper latest pass (head
|
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Thanks for the refreshed ClawSweeper pass — agree this is now maintainer product/ownership, not more author code churn. Status (author):
CI note: latest red on Deferring to outbound/SDK owners on the remaining durable/direct delivery + exported subpath acceptance items. |
Fast wake (mention) — still maintainer-gatedLatest ClawSweeper (head Author stance: no further product-surface churn this wake. Vincent P2 (pure parser signal + warn once at accepted delivery) remains on tip. CI compact-large-7 timeout previously noted as unrelated audit store flake — will chase only if it reproduces after next main rebase. mergeable but behind main (~13); will rebase on next actionable CI/code finding, not for owner-decision noise. No @clawsweeper re-review requested (no code delta). |
ClawSweeper 2026-08-18 re-review notedLatest durable review (head
No further contributor code changes pending from this pass. Standing by for maintainer direction. |
|
This pull request has been automatically marked as stale due to inactivity. |
|
Closing due to inactivity. |
body_len 64889
head d3f29acb719da7e0566c74f9e6d7d6c9770acea6
e-backtick code fence,
splitMediaFromOutput()correctly skips extraction (by design — code examples shouldn't trigger delivery). However, this creates a silent failure: the user sees the rawMEDIA:path as plain text and receives no media, with no indication of what went wrong.As reported in #41966, LLMs like GLM-4.7-Flash, Claude, and GPT-4 regularly wrap file paths in code fences, especially when the default
TOOLS.mdtemplate showsMEDIA:inside a code block as an example.Fix
Emit a
logWarn()when aMEDIA:line is found inside a fenced code block. This is a warn-only change:mediaUrlsoutputMEDIA:lines still render as text)Warning message shown in logs:
Tests
Three new test cases under
"MEDIA token inside fenced code block emits a warning (#41966)":MEDIA:lineMEDIA:tokens outside fences (no regression)TypeScript: clean (
tsc --noEmitpasses).Changelog
Related
Follows up on my analysis comment proposing Option B (warn-only) as the safe minimal fix before any potential Option A (extract-from-fences) config flag.
Real behavior proof
Behavior or issue addressed: When an LLM wraps a
MEDIA:token inside a triple-backtick fenced code block,splitMediaFromOutput()silently skips the token (by design — code examples must not trigger media delivery) but emits no log signal, so the user sees a rawMEDIA:path in chat and has no clue why nothing was delivered. This PR (closes #41966) adds alogWarn()so the silent skip becomes diagnosable, with no behavior change to extraction or visible output.Real environment tested:
fix/41966-media-token-warn-in-fence@5102c3ca43(Bartok9/openclaw fork)Exact steps or command run after this patch:
git checkout fix/41966-media-token-warn-in-fence CI=true pnpm install --frozen-lockfile --prefer-offline node scripts/run-vitest.mjs run \ --config test/vitest/vitest.media.config.ts \ src/media/parse.test.ts \ -t "MEDIA token inside fenced code block" \ --reporter=verboseEvidence after fix:
Full file run (all 60 cases including the 3 new ones) also passes — 1 file passed, 60/60 tests green at 17:12:43 in 451ms (transform 364ms, setup 233ms, import 50ms, tests 73ms). Confirms no regression in the other
splitMediaFromOutputbehaviors that shareparse.ts.Observed result after fix:
The three new test cases under
"MEDIA token inside fenced code block emits a warning (#41966)"exercise the actualsplitMediaFromOutput()function (no mocks of the unit under test; onlylogWarnis spied on). Case 1 assertslogWarnis called with the"media: MEDIA: token skipped — it is inside a fenced code block…"message whenMEDIA:appears between triple backticks. Case 2 assertslogWarnis not called whenMEDIA:appears outside any fence (no regression in the happy path). Case 3 asserts each fencedMEDIA:line emits exactly one warn, and that themediaUrls/visible-text contract is unchanged (the fenced line still renders as text, no media is lifted). Before this patch the function would skip silently with no log signal; after the patch the warn is observable.What was not tested:
logWarn()change; the test is at the function boundary)logWarnconventions inparse.ts)#41966is specifically about triple-backtick wrapping by LLMs)Update 2026-06-13 — rebased onto current main
Rebased onto
upstream/main@340c2456bbto clear the conflict flagged by @RomneyDa. Single commit5366ecb8(Bartok9 authorship preserved). Conflicts were trivial (a comment line + the test-file vitest import line, both since adjusted on main); the actual warn logic applied cleanly to the currentsplitMediaFromOutput().Re-verified on the rebased branch (real output):
node scripts/run-vitest.mjs run src/media/parse.test.ts→ 60/60 passed.oxlinton the two touched files → 0 warnings, 0 errors.Direct function-level repro (no test harness, real
logWarnoutput to stderr):Confirms the warn fires only for the fenced token, the fenced token is still kept as visible text (not delivered), and the out-of-fence control path is unchanged (extracted to
mediaUrls, no warn).Update 2026-06-13 (2) — fixed a real
build-artifactsregression in this PRThe first rebase pushed surfaced a red
build-artifacts/ "Build dist" check. I traced it to a genuine regression introduced by the original approach in this PR, not a main-wide flake:src/media/parse.tsis bundled into the browser UI (ui/src/ui/chat/message-normalizer.tsimportssplitMediaFromOutput).import { logWarn } from "../logger.js"directly inparse.ts. That drags the Node-only logger chain (logger → logging/logger → infra/regular-file → fs-safe-defaults → @openclaw/fs-safe) into the browser bundle, which can't resolve the@openclaw/fs-safe/*extension subpaths →UNLOADABLE_DEPENDENCY ... No such file or directory.Proof it was ours (local
node scripts/ui.js build):parse.tsvariantimport { logWarn }(original)UNLOADABLE_DEPENDENCYfs-safe, 972 modulesFix: keep
parse.tsbrowser-pure via dependency injection. Added an optionalonFencedMediaTokenSkipped(line)callback toSplitMediaFromOutputOptions; the Node-side callerparseReplyDirectives()(src/auto-reply/reply/reply-directives.ts) injects the reallogWarn. No Node-only import inparse.tsanymore.Re-verified (
08170177b1):node scripts/ui.js build→ ✅ built, 918 modules (matches clean main)src/media/parse.test.ts→ 61/61 passingsrc/auto-reply/reply/reply-state.test.ts→ 40/40 passingoxlinton the 3 touched files → 0 warnings / 0 errorsparseReplyDirectives()(real Node path):Update 2026-08-07 — current-head unmocked outbound runtime proof
Exact head
97a72ef66b510e5c6993c5503ad0c1e196eb2a9b(this PR tip). Node v25.5.0. Direct import viatsxof realnormalizeReplyPayloadDirectives/parseReplyDirectives— no Vitest, no mockedlogWarn. Warning text below is the live logger line from the outbound delivery boundary.Shows on current head: one real operator warning at outbound normalization for fenced
MEDIA:; unfenced control extracts media with no warning; repeatedparseReplyDirectivesonly sets the pure signal (no log). Addresses ClawSweeper proof gap after the 2026-08-01 rebuild.Update 2026-08-07 (2) — accepted-delivery boundary + extractMediaDirectives guard
Addresses ClawSweeper P2s on head
47b842122884(after proof cleared):logWarnfrom reusablenormalizeReplyPayloadDirectives(also used for recovery/final-text). Plan now carriesmediaTokenSkippedInFence;warnFencedMediaSkipsForAcceptedOutboundDelivery(plan)runs insendMessageafter dry-run is ruled out.splitMediaFromOutputis gated so disabled directive parsing cannot create a warning signal.Tests:
parse.test.ts+reply-directives.test.ts+ outbound payloads #41966 cases green locally.Update 2026-08-07 (3) — shared durable prepare boundary (ClawSweeper P1)
Head
17bebdecaef0.P1 fix: Removed sendMessage-only warnFencedMediaSkipsForAcceptedOutboundDelivery. Signal still lives on the outbound plan; accepted prepared-batch entries now carry mediaTokenSkippedInFence, and the warn runs once in prepareOutboundPayloadBatch after hooks/suppression — the shared path used by sendDurableMessageBatch (routed replies) and sendMessage.
Tests: payloads.test.ts + new deliver.test.ts case "warns for fenced MEDIA skip only on accepted durable preparation (#41966)" — 222 outbound tests green; parse/reply-directives still green.
Update 2026-08-07 (4) — current-head shared durable-prepare proof
Addresses ClawSweeper review on
47b842122884(P1 shared accepted-delivery boundary). Tip now17bebdecaef0.Code:
warnFencedMediaSkipsForAcceptedOutboundDeliveryruns only fromprepareOutboundPayloadBatchafter hooks/suppression; accepted entries carrymediaTokenSkippedInFence. Removed sendMessage-only call so routedsendDurableMessageBatchpaths share the diagnostic.Unmocked runtime transcript (Node v25.5.0, direct
tsximport ofcreateOutboundPayloadPlan+warnFencedMediaSkipsForAcceptedOutboundDelivery— the helper invoked at the durable prepare boundary):What this shows on the current tip:
MEDIA:→ planmediaTokenSkippedInFence: true+ exactfencedSkippedMediaDirectives; one live path-neutral[media] token skipped…warn when the helper is called with accepted-entry{ text, mediaTokenSkippedInFence, fencedSkippedMediaDirectives }(the prepare/Telegram/Slack/Signal contract).Focused tests on tip
@clawsweeper re-review
Update 2026-08-08 (14) — exact-head accepted-entry proof (ClawSweeper)
Tip:
86032c22ecf(86032c22ecf52d52482e19d495e1938a43574b92)Node: v24.18.0 (CI) / also verified v25.5.0
Local:
pnpm plugin-sdk:api:check→ OK on tip (Node 24.18.0).Unmocked exact-head shared boundary proof (no Vitest; live logger)
What this shows on the current tip:
MEDIA:→ plan skip signal + exact directive identity; one live path-neutral warn at the shared accepted-delivery helper (prepare/Telegram/Slack/Signal).Focused tests on tip
-t 41966|fenced): 6 passed@clawsweeper re-review
Update 2026-08-08 (15) — plugin-sdk baseline refresh
Tip:
5154dca2dd3(5154dca2dd3)CI: regenerated
docs/.generated/plugin-sdk-api-baseline.sha256socheck-plugin-sdk-api-baselinematches the private-local fenced-media runtime seam (pnpm plugin-sdk:api:gen+ check OK on Node 24.18.0).#41966 behavior unchanged vs
86032c22ecf(proof in Updates 13–14).@clawsweeper re-review
Update 2026-08-08 (16) — rebase + exact-head accepted-boundary proof
Tip:
23d5e461699(23d5e461699bcde3ee28e4c9647ba03811fed290)Base: rebased clean onto current
upstream/main(was BEHIND).CI note on prior tip:
checks-node-compact-large-7failed on unrelatedsrc/cli/acp-cli-exit.process.test.ts(ACP client --help exit timing); Windows shard failed similarly. Not a #41966 assertion. Focused #41966 suite green on this tip.Unmocked exact-head shared boundary proof (no Vitest; live logger)
What this shows on the current tip:
MEDIA:→ planmediaTokenSkippedInFence: true+ exactfencedSkippedMediaDirectives; one live path-neutral[media] token skipped…warn at the shared accepted-delivery helper (prepare/Telegram/Slack/Signal contract).Focused tests on tip
@clawsweeper re-review
Update 2026-08-08 (17) — rebase + exact-head accepted-entry proof (ClawSweeper)
Tip:
31497cf8bc3(31497cf8bc37c55288c92d77c054cabdc761e215)Base: rebased clean onto current
upstream/main(was BEHIND).CI hygiene:
pnpm plugin-sdk:api:gen+ check OK after rebase (private-local seam retained).Unmocked exact-head shared boundary proof (no Vitest; live logger)
What this shows on the current tip:
MEDIA:→ planmediaTokenSkippedInFence: true+ exactfencedSkippedMediaDirectives; one live path-neutral[media] token skipped…warn when the helper is called with accepted-entry final text + plan signals (prepare/Telegram/Slack/Signal contract).Focused tests on tip
@clawsweeper re-review
Update 2026-08-08 (18) — rebase + exact-head accepted-boundary proof (ClawSweeper)
Tip:
bdce13554ccb(bdce13554ccb978846575c68c0b5185eeaac81ca)Base: rebased clean onto current
upstream/main(was BEHIND; mergeable_state=behind).CI: plugin-sdk baseline check OK on tip after rebase (
pnpm plugin-sdk:api:check).Unmocked exact-head shared boundary proof (no Vitest; live logger)
What this shows on the current tip:
MEDIA:→ planmediaTokenSkippedInFence: true+ exactfencedSkippedMediaDirectives; one live path-neutral[media] token skipped…warn at the shared accepted-delivery helper (prepare/Telegram/Slack/Signal contract).Focused tests on tip
@clawsweeper re-review
Update 2026-08-08 (19) — exact-head accepted-boundary proof (ClawSweeper on tip)
Tip:
e2c6165adabf(e2c6165adabf31d0976a3c0de777eeb38d63217d)Base: current tip after plugin-sdk baseline refresh rebase.
Node: v25.5.0
Unmocked exact-head shared boundary proof (no Vitest; live logger)
What this shows on the current tip:
MEDIA:→ planmediaTokenSkippedInFence: true+ exactfencedSkippedMediaDirectives; one live path-neutral[media] token skipped…warn at the shared accepted-delivery helper (prepare/Telegram/Slack/Signal contract).Focused tests on tip
@clawsweeper re-review
Update 2026-08-09 — exact-head accepted-boundary proof (ClawSweeper on tip)
Tip:
ee63b64432ed(ee63b64432edb85102b8d65c55c15b6a6f99abea)Base: current tip after plugin-sdk baseline refresh (mergeable_state was behind earlier; CI re-running).
Node: v25.5.0
Unmocked exact-head shared boundary proof (no Vitest; live logger)
What this shows on the current tip:
MEDIA:→ planmediaTokenSkippedInFence: true+ exactfencedSkippedMediaDirectives; one live path-neutral[media] token skipped…warn at the shared accepted-delivery helper (prepare/Telegram/Slack/Signal contract).Focused tests on tip
@clawsweeper re-review
Update 2026-08-12 — streamed Telegram finals + current-head proof (ClawSweeper P2 on 4f953b66e58c)
Tip:
0811c3304487(0811c3304487d203d193f0f0c84025ac407034e0)Note: ClawSweeper reviewed older head
4f953b66e58c. Tip already includes:extensions/telegram/src/lane-delivery-text-deliverer.ts—warnFencedMediaIfPresentOnVisibleStreamFinalruns after acceptedpreview-finalized(shared helper; plan-time skip signal). Commitfd24e39d540.delivery.replies.tsstill warns only after first visible send.lane-delivery.test.ts— warns once after streamed preview final accepts fenced MEDIA; silent without fenced MEDIA.Focused tests on tip
Unmocked exact-head shared boundary proof (no Vitest; live logger)
@clawsweeper re-review
Update 2026-08-12 (2) — Telegram reaction≠content warn gate (ClawSweeper P2 on ce52bfc0efd9)
Tip:
ebb6bf0295ca(ebb6bf0295cacd87d46eb1aad8581e2a8a60093f)P2 fix: Telegram direct fallback no longer treats a successful reaction as content delivery for the fenced-MEDIA diagnostic when text/media is still pending.
extensions/telegram/src/bot/delivery.replies.ts— afterreactMessageTelegramok: callwarnFencedMediaAfterFirstVisibleSendonly if there is no pending text/media (!resolvedReplyText && mediaList.length===0). Otherwise warn runs solely viaonFirstVisibleSendfromdeliverTextReply/deliverMediaReply.delivery.test.ts— does not warn when reaction succeeds but content send rejects (MEDIA: tokens inside markdown code fences are silently ignored #41966).Channel-boundary harness (exact tip)
Focused tests on tip
Includes: first-send reject silent; media first-success warn; reaction-success/content-failure silent; hook-blank silent.
@clawsweeper re-review
Update 2026-08-12 (3) — Slack native stream + Mattermost direct (ClawSweeper P2 on 991cc6d54835)
Tip:
49e38dce83b(49e38dce83bc96c1dc14d41d5ab4108ff6226f42)P2 fixes (ClawSweeper):
warnFencedMediaForSuccessfulStreamedDeliveriesruns fromacknowledgeStoppedStreamedDeliveriesafterstopSlackStreamsuccess (happy path never hitsdeliverReplies).deliverMattermostReplyPayloademits the shared helper only after a successful visible send (visibleReplySent).Focused tests:
reply-delivery.test.tsMEDIA: tokens inside markdown code fences are silently ignored #41966 → 3/3dispatch-streaming.fenced-media.test.tsMEDIA: tokens inside markdown code fences are silently ignored #41966 → 2/2Unmocked shared-helper proof (plan + live logger):
@clawsweeper re-review
Update 2026-08-12 (4) — P1 durable custody + P3 Slack private + rebase proof
Tip:
93d2e081453b(93d2e081453bc05226bfe2bef5581e4063ee57ad)Base: rebased onto current
upstream/main(was dirty/behind).ClawSweeper P1/P3 (on older
7385610d2891): addressed on tip.Code
prepareOutboundPayloadBatchonly stampsmediaTokenSkippedInFence/fencedSkippedMediaDirectiveswhen accepted post-policy text still retains the exact directive identity (or accepted text is still parse-fenced). Hook rewrite toredacted/ ordinary prose → no pre-redaction MEDIA path in prepared-batch / queue recovery.warnFencedMediaForSuccessfulStreamedDeliveriesis module-private (not exported); streamed tests exercise the acknowledged success path without a public Knip-only export.Focused tests (exact tip)
Unmocked exact-head shared helper proof (no Vitest; live logger)
Custody regression covered in
deliver.test.ts: message_sending →redactedleaves accepted entry withoutmediaTokenSkippedInFence/fencedSkippedMediaDirectives.@clawsweeper re-review
Update 2026-08-12 — Slack native stream ack + rebase + exact-head proof
Tip:
0a5aaa30532(0a5aaa30532720cbf660ae0b0b71d90fb8123661)Base: rebased clean onto current
upstream/main(was CONFLICTING).Node: v24.18.0
ClawSweeper findings addressed (review on
b822ee70dbc)dispatchPreparedSlackMessage/stopSlackStreamack + rejected-stop coverage so removing the production warn fails the regression (dispatch.preview-fallback.test.ts).pnpm plugin-sdk:api:gen+ check OK.Focused tests (post-rebase)
Unmocked exact-head shared boundary proof (no Vitest)
What this shows on the current tip:
MEDIA:→ plan skip + exact directive identity; one live path-neutral[media] token skipped…warn at accepted-delivery helper.Update 2026-08-12 — rebase + exact-head accepted-boundary proof (ClawSweeper on 8a29c01abdde)
Tip:
908bbf820f1(908bbf820f1283bbf94eeab775082ce6d72f80d9)Base: rebased clean onto current
upstream/main(was BEHIND; mergeable).Node: v25.5.0
ClawSweeper block items addressed
pnpm plugin-sdk:api:gen+plugin-sdk:api:check→ OK.createOutboundPayloadPlan+warnFencedMediaSkipsForAcceptedOutboundDelivery(live logger; no Vitest).dispatchPreparedSlackMessage/stopSlackStreamregressions (prior tip).Unmocked exact-head shared boundary proof (no Vitest; live logger)
What this shows on the current tip:
MEDIA:→ plan skip + exactfencedSkippedMediaDirectives; one live path-neutral[media] token skipped…warn at the accepted-delivery helper.@clawsweeper re-review
Update 2026-08-12 — Mattermost latch + Knip P3 + exact-head proof (ClawSweeper on 908bbf820f12)
Tip:
038b7d4a7711(038b7d4a77111d1b6e12b43d546c394df16d65b2)Node: v25.5.0
Findings addressed
maybeWarnFencedMediaAfterFirstVisibleSendonly setsfencedMediaWarnEmittedafter accepted visible content retains the exact skipped directive (preamble-first chunk order still warns). Regression:reply-delivery.test.ts"warns when preamble chunk precedes fenced MEDIA chunk (MEDIA: tokens inside markdown code fences are silently ignored #41966 latch)".extensions/slack/.../dispatch-streaming.tsexport ignore (helper is module-private; stream tests drive dispatcher).Focused tests
Unmocked exact-head shared boundary proof (no Vitest; live logger)
@clawsweeper re-review
Update 2026-08-12 — deliver-core chunk latch + exact-head proof (ClawSweeper on 65f1b2bc5620)
Tip:
618b49b93b61(618b49b93b614a1861d4e1631531bdd0fa84b672)Node: v25.5.0
P2 fix (ClawSweeper)
Latch the warning to text that was actually sent —
src/infra/outbound/deliver-core.ts:sendTextChunksnow passes accepted chunk text intoonFirstVisibleSend(not the full original payload).warnFencedMediaAfterPhysicalSendaccumulates accepted visible chunks persourceIndexand only latches / warns when accumulated text retains the exactfencedSkippedMediaDirectivesidentity (same rule as Mattermost).Regression
deliver.test.ts— "does not warn when preamble chunk succeeds but fenced MEDIA chunk fails (#41966 latch)" → passed on tip.Unmocked exact-head proof (no Vitest; live logger)
@clawsweeper re-review
Update 2026-08-12 — Slack stream rotation dedupe (ClawSweeper P2)
Tip:
d3f29acb719d(d3f29acb719da7e0566c74f9e6d7d6c9770acea6)P2 fix:
warnFencedMediaForNewlySuccessfulStreamedDeliveriesmarks each streamed delivery withfencedMediaWarnEmittedafter the first successful diagnostic consideration. Later native stream stops / rotations that retain prior successful deliveries stay silent.Code:
extensions/slack/src/monitor/message-handler/dispatch-streaming.ts(acknowledgeStoppedStreamedDeliveries).Tests (exact-head):
Rotation unit proof: first successful fenced delivery → one
warnFencedMediaSkipsForAcceptedOutboundDeliverycall; second call with the same retained array (stream rotation) → still one call total; unfenced/failure → silent.@clawsweeper re-review
Update 2026-08-13 — exact-head Matrix transport owner proof (ClawSweeper gate)
Tip: ()
Node: v25.5.0 · Darwin arm64
Date: 2026-08-13T23:25:55Z
What ClawSweeper asked for
Prior gate: terminal proof exercised helpers rather than an injected fenced directive through a changed transport owner to an accepted send. This update adds that path on the current head.
Owner path proven
→ → matrix (physical accepted send). Reject path uses the same owner with transport throw.
Focused transport regressions (exact-head)
^[[1m^[[30m^[[46m RUN ^[[49m^[[39m^[[22m ^[[36mv4.1.10 ^[[39m^[[90m/Users/bartokmoltbot/clawd/openclaw^[[39m
^[[32m✓^[[39m ^[[30m^[[42m infra ^[[49m^[[39m src/infra/outbound/deliver.test.ts ^[[2m(^[[22m^[[2m187 tests^[[22m^[[2m | ^[[22m^[[33m176 skipped^[[39m^[[2m)^[[22m^[[32m 80^[[2mms^[[22m^[[39m
^[[2m Test Files ^[[22m ^[[1m^[[32m1 passed^[[39m^[[22m^[[90m (1)^[[39m
^[[2m Tests ^[[22m ^[[1m^[[32m11 passed^[[39m^[[22m^[[2m | ^[[22m^[[33m176 skipped^[[39m^[[90m (187)^[[39m
^[[2m Start at ^[[22m 19:26:23
^[[2m Duration ^[[22m 2.69s^[[2m (transform 1.17s, setup 308ms, import 2.15s, tests 80ms, environment 0ms)^[[22m
Covers: warn only after durable physical send succeeds; silent on reject; preamble/chunk latch; hook rewrite silence; SMS fence flatten retains identity; queue recovery facts.
Unmocked exact-head transport transcript (no Vitest; live delivery owner)
Reading the transcript
Note: the proof script’s spy under-counts because also writes via the subsystem file logger; the live warn line is visible in the same transcript immediately before for the fenced case.
@clawsweeper re-review
Update 2026-08-17 — exact-head runtime proof (
779b15757fd)ClawSweeper on
779b15757fd3b0704cb98584ca0a4b2983054f57: no discrete code findings; blocked on current-head real behavior proof + maintainer scope decision for durable/direct diagnostic breadth.Exact-head focused vitest (#41966 filter) — green
Host: Darwin arm64, Node v25.5.0, head
779b15757fd3b0704cb98584ca0a4b2983054f57@ 2026-08-17T20:38–20:41Z.Unmocked current-head transcript (parser + plan + latch/durable warn)
Observed (redacted):
Contract shown on this head: parser stays pure (signal only); fenced path keeps text + skip identities and does not extract; unfenced extracts
/tmp/demo.png; warn fires only after accepted-visible / durable helper path with retained identity.Still waiting on maintainer: product scope decision (durable + direct diagnostic breadth vs narrower owner). No further product surface this wake.
@clawsweeper re-review
Update 2026-08-17 (2) — exact-head runtime proof (
ac846cceca7)ClawSweeper reviewed
779b15757fdneeding current-head proof after durable/direct path changes. Tip is nowac846cceca71f54bbea0199cb61dbbb93605c0bd(closes Slack text-only + hard-split + TG pre-hook gaps).Focused vitest on exact tip — green
Host: Darwin arm64, Node v25.5.0, head
ac846cceca71f54bbea0199cb61dbbb93605c0bd@ 2026-08-17T20:53Z.Unmocked exact-head transcript (no Vitest; live logger)
Contract on this head: parser pure signal; durable helper warns once for retained fenced identity; direct latch (
createDirectAcceptedFencedMediaWarnLatch) warns once after accepted visible text; plain/unfenced and hook-rewrite stay silent. Focused channel suites cover Telegram Bot API + Slack text-only accepted-send paths.Still waiting on maintainer: product scope decision (durable + direct diagnostic breadth). No further product surface this wake.
@clawsweeper re-review
Update 2026-08-17 (3) — exact-head runtime proof (
717b32b03d79)ClawSweeper (review @
717b32b03d79, 2026-08-18T01:03Z) asked for a redacted exact-head accepted-send transcript covering durable/direct + post-policy redaction suppression after durable-redaction and Slack-block latch work.Focused vitest on exact tip — green
Host: Darwin arm64, Node v25.5.0, head
717b32b03d798a22c9ecdce39c9929b6a88811e4.Unmocked exact-head transcript (no Vitest; live
defaultRuntime.log/logWarn)Contract on this head: parser pure signal; durable helper warns once for retained fenced identity; silent for plain and for post-policy/hook text that drops the directive identity; direct latch (
createDirectAcceptedFencedMediaWarnLatch) warns once after accepted visible text; Slack-style structured-block retained identity still warns. Tip includes strip of fenced-MEDIA facts from durable nested payloads + Slack block latch (this SHA).Still waiting on maintainer: product scope decision (durable-only vs durable + selected direct diagnostic breadth / private SDK seam). No further product surface this wake.
@clawsweeper re-review
Update 2026-08-18 (4) — exact-head proof after durable
extractMediaDirectives:false(114a31c79c1b)ClawSweeper durable on
196b238e682(P2: durable prepare must honor disabled media parsing). Tip114a31c79c1b316e435f41a6033a1c62ae11326bcarries that fix + direct-latch mode + green focused suite.Focused vitest on exact tip — green
Unmocked exact-head transcript (no Vitest; live logger)
Contract on this head: enabled fenced → skip facts + warn after accepted helper; plain → silent;
extractMediaDirectives: falseplan produces no skip facts and no warn (durable replan + direct latch). ClawSweeper P2 on durable prepare addressed.@clawsweeper re-review