Skip to content

test(discord): stop pinning refused-followup notice wording - #202471

Merged
obviyus merged 1 commit into
mainfrom
test/discord-recovery-no-wording
Nov 20, 2026
Merged

obviyus merged 1 commit into
mainfrom
test/discord-recovery-no-wording

Conversation

@obviyus

@obviyus obviyus commented Nov 20, 2026

Copy link
Copy Markdown
Collaborator

Problem

channel-run-admission.discord-recovery.test.ts (#202330) pinned the exact refused-followup notice. #202402 then added a next step to that notice in its owner (agent-runner-error-handler.ts), so the test fails on main whenever it is selected.

Fix

Stop pinning wording. The test still proves the behavior: one terminal error event with a notice, the same notice shown once in the transcript, the same text delivered for the unavailable case, and no model or channel effects for a revoked sender.

Evidence

ocx test src/auto-reply/reply/channel-run-admission.discord-recovery.test.ts: passed. oxfmt and test types clean.

@clawsweeper

clawsweeper Bot commented Nov 20, 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.

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 20, 2026
@obviyus
obviyus merged commit 656de08 into main Nov 20, 2026
105 checks passed
@obviyus
obviyus deleted the test/discord-recovery-no-wording branch November 20, 2026 12:33
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 21, 2026
…#202471)

## Problem

`channel-run-admission.discord-recovery.test.ts` (openclaw#202330) pinned the exact refused-followup notice. openclaw#202402 then added a next step to that notice in its owner (`agent-runner-error-handler.ts`), so the test fails on `main` whenever it is selected.

## Fix

Stop pinning wording. The test still proves the behavior: one terminal error event with a notice, the same notice shown once in the transcript, the same text delivered for the unavailable case, and no model or channel effects for a revoked sender.

## Evidence

`ocx test src/auto-reply/reply/channel-run-admission.discord-recovery.test.ts`: passed. oxfmt and test types clean.

Co-authored-by: Ayaan Zaidi <[email protected]>
tideclaw-bot pushed a commit that referenced this pull request Nov 24, 2026
…rts (#202330)

Problem: on Discord, a message queued behind a busy turn was admitted and run after its sender lost access (real Discord on main: config.patch returned 05:15:42.400Z, the queued message was admitted 05:15:43.874Z and replied). Preflight decided access once at receipt and shared run admission reused that decision; the only admission-time renewal was bound for public child-session publication (X).

Fix: one Discord access decision (resolveDiscordMessageAccess) serves receipt (receipt policy) and queued-run admission (live policy); preflight's copy is deleted and receipt-time native facts are reused without refetch. childSessionPublication.audience becomes optional: the same memoized renewal runs for ordinary user_request and room_event ingress at the start of the queued turn, before memory-flush or compaction model work; child-session publication still requires audience "public" on a user request. A refused queued turn reaches #202252's existing denied handler (silent on the channel, one owner notice). Started turns are not rechecked.

Proof: real queued path (followup-runner, followup-turn-execution, canonical execution, Gateway lifecycle persistence): red on the previous head (no owner notice); green with exactly one persisted owner notice, zero provider requests (including maintenance), zero deliveries, for user_request and room_event; allowed queued messages run once; unavailable verification still warns. 295 tests across 7 files; typecheck, oxlint, format, ratchets; clean exact-head local ClawSweeper review; real Discord run on the exact head (see the PR comment).

Co-authored-by: Ayaan Zaidi <[email protected]>
(cherry picked from commit 5148804)

Gap-sweep intake (Dallin, 2026-11-24): ledger-high/P0-P1 fix not yet on 2026.11.10. Clean apply. Later main mentions of #202330: 656de08 test(discord): stop pinning refused-followup notice wording (#202471);.

Co-authored-by: RomneyDa <[email protected]>
tideclaw-bot pushed a commit that referenced this pull request Nov 24, 2026
## Problem

`channel-run-admission.discord-recovery.test.ts` (#202330) pinned the exact refused-followup notice. #202402 then added a next step to that notice in its owner (`agent-runner-error-handler.ts`), so the test fails on `main` whenever it is selected.

## Fix

Stop pinning wording. The test still proves the behavior: one terminal error event with a notice, the same notice shown once in the transcript, the same text delivered for the unavailable case, and no model or channel effects for a revoked sender.

## Evidence

`ocx test src/auto-reply/reply/channel-run-admission.discord-recovery.test.ts`: passed. oxfmt and test types clean.

Co-authored-by: Ayaan Zaidi <[email protected]>
(cherry picked from commit 656de08)

Companion of #202330 (gap-sweep): its regression pinned notice wording that this branch already extended (4eb5484); main fixed the test the same way.

Co-authored-by: RomneyDa <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant