Skip to content

refactor(message): keep read fallback policy at call site#108930

Merged
steipete merged 1 commit into
mainfrom
refactor/message-read-scope-results
Jul 16, 2026
Merged

refactor(message): keep read fallback policy at call site#108930
steipete merged 1 commit into
mainfrom
refactor/message-read-scope-results

Conversation

@steipete

Copy link
Copy Markdown
Contributor

Related: #108637

AI-assisted: Codex implemented and reviewed this maintainer-requested follow-up.

What Problem This Solves

The explicit-read fallback rule introduced while fixing #108637 lived behind a read-specific boolean in the shared channel selector. That made a generic selection helper own message-action policy and required toggle-specific selector tests.

Why This Change Was Made

Keep the policy at the message-action call site: explicit reads omit the current-conversation fallback, while implicit reads and non-read actions continue to pass it. Remove the single-caller selector option and its duplicate tests. The focused behavior suite remains the boundary proof.

User Impact

No user-visible behavior change. Explicit malformed, unknown, and unavailable read targets still fail closed; implicit reads and non-read fallback behavior remain unchanged.

Evidence

  • Blacksmith Testbox focused proof: pnpm test src/infra/outbound/channel-selection.test.ts src/infra/outbound/message-action-runner.context.test.ts — 2 files, 49 tests passed. Run
  • Blacksmith Testbox changed gate: CI=1 pnpm check:changed — passed all selected format, typecheck, lint, boundary, and repository policy lanes on lease tbx_01kxn98ca5rzyrhq2tarbs3td7.
  • git diff --check — passed.
  • Fresh autoreview — no actionable findings, correctness confidence 0.94.
  • Net result: 36 fewer lines across the bounded selector/caller surface.

@steipete steipete self-assigned this Jul 16, 2026
@openclaw-barnacle openclaw-barnacle Bot added size: S maintainer Maintainer-authored PR labels Jul 16, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

Land-ready at 283354231e8f081a06a7860439e16c2e67ef9a4e.

@steipete
steipete merged commit 122c6e4 into main Jul 16, 2026
132 of 134 checks passed
@steipete
steipete deleted the refactor/message-read-scope-results branch July 16, 2026 11:21
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant