Skip to content

fix(irc): apply RFC 1459 nickname casefolding to bot mentions - #116758

Merged
steipete merged 1 commit into
mainfrom
codex/auto-qa-irc
Jul 31, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/auto-qa-irc

Conversation

@steipete

Copy link
Copy Markdown
Contributor

Summary

  • Match bot nicknames according to IRC RFC 1459 case equivalence, including bidirectional [/{, ]/}, backslash/pipe, and ^/~ forms.
  • Preserve nickname boundaries and safely escape regex metacharacters so valid addressed messages are not silently discarded.

Verification

  • Full IRC owner suite: 31 tests passed.
  • Separate reviewer independently reran all 31 tests on Node 24.18 and executed an adversarial exact-source punctuation, boundary, and regex-injection probe; no blockers.
  • Automated autoreview is unavailable because the mandatory TruffleHog binary is missing; independent manual diff and secret review completed.

Root causes fixed

1 canonical IRC nickname casefolding defect.

@clawsweeper clawsweeper Bot added 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. P2 Normal backlog priority with limited blast radius. labels Jul 31, 2026
@clawsweeper

clawsweeper Bot commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed July 31, 2026, 6:10 AM ET / 10:10 UTC.

ClawSweeper review

What this changes

The PR replaces ASCII word-boundary matching for IRC bot mentions with RFC 1459-aware nickname matching and adds coverage for punctuation, nickname boundaries, regex escaping, and equivalent nickname characters.

Merge readiness

⛔ Blocked until stronger real behavior proof is added - 4 items remain

Keep this PR open for normal maintainer review. The RFC 1459-aware matcher is a focused repair for a source-reproducible IRC mention failure and no discrete correctness or security defect is evident in the supplied patch; however, the PR context contains assertions of test execution rather than an inspectable after-fix terminal or live-behavior artifact, and the maintainer label requires explicit maintainer handling. Likely related people: steipete (low confidence, current IRC change author).

Priority: P2
Reviewed head: b845cffa45496c35d34da8a3fa9b43ccbf64e083

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The implementation and focused coverage look solid, but the visible after-fix real-behavior evidence is not inspectable enough to clear the external-proof gate.
Proof confidence 🦪 silver shellfish (2/6) Needs stronger real behavior proof before merge: The PR body describes successful tests and an independent probe, but no inspectable after-fix terminal output, redacted runtime log, recording, or linked artifact is present in the provided context; add one and redact any private server, address, token, or endpoint data. 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 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Needs proof Needs stronger real behavior proof before merge: The PR body describes successful tests and an independent probe, but no inspectable after-fix terminal output, redacted runtime log, recording, or linked artifact is present in the provided context; add one and redact any private server, address, token, or endpoint data. 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 4 items Focused runtime repair: The proposed matcher replaces \\b boundaries with lookarounds based on the IRC nickname alphabet and expands the four RFC 1459 punctuation equivalence pairs before compiling the explicit-mention regular expression.
Boundary and equivalence coverage: The added parameterized inbound tests cover ordinary case folding, every RFC 1459 punctuation pair, valid punctuation-bearing nicknames, and non-mentions that remain inside a longer IRC nickname.
Current PR state: The supplied PR metadata reports a clean three-way merge result against current main, with the branch behind the base rather than conflicting; this alone does not establish after-fix behavior proof.
Findings None None.
Security None None.

How this fits together

The IRC extension receives channel text and determines whether it directly addresses the connected bot nickname before forwarding the message through OpenClaw's channel/agent flow. This change narrows that address detection to IRC's own nickname alphabet and case-equivalence rules so valid addressed messages are not silently ignored.

flowchart LR
  A[IRC server message] --> B[IRC inbound handler]
  B --> C[Connected bot nickname]
  C --> D[RFC 1459 mention matcher]
  B --> E[Shared mention patterns]
  D --> F[Was the bot addressed?]
  E --> F
  F --> G[Channel message routing]
  G --> H[Agent run]
Loading

Before merge

  • Add real behavior proof - Needs stronger real behavior proof before merge: The PR body describes successful tests and an independent probe, but no inspectable after-fix terminal output, redacted runtime log, recording, or linked artifact is present in the provided context; add one and redact any private server, address, token, or endpoint data. 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.
  • Resolve merge risk (P1) - The PR body reports a 31-test run and an independent probe, but the visible context contains no inspectable terminal transcript, redacted runtime log, recording, or linked artifact demonstrating the after-fix behavior.
  • Resolve merge risk (P1) - The branch is behind current main; although GitHub reports it mergeable, maintainer review should use the current merge result or refreshed head before landing.
  • Complete next step (P2) - The patch has no supported line-level defect, but the protected maintainer label and missing inspectable real-behavior artifact require maintainer-led review rather than an automated repair lane.
Agent review details

Security

None.

PR surface

Source +24, Tests +64. Total +88 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 1 25 1 +24
Tests 1 64 0 +64
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 89 1 +88

Review metrics

None.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Keep the RFC 1459-aware matching at the IRC owner boundary, add a redacted after-fix terminal transcript or equivalent executable behavior artifact, then review the refreshed merge result against current main.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Keep the RFC 1459-aware matching at the IRC owner boundary, add a redacted after-fix terminal transcript or equivalent executable behavior artifact, then review the refreshed merge result against current main.

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

Yes, source inspection provides a high-confidence path: with a punctuation-bearing configured IRC bot nickname such as [Claw, the prior ASCII \b-based expression cannot recognize an RFC 1459-equivalent address such as {claw: hello; execution was not independently run in this read-only review.

Is this the best way to solve the issue?

Yes. Building the RFC 1459 equivalence and nickname-boundary logic in the IRC inbound owner is narrower and less error-prone than changing shared cross-channel mention behavior, provided the claimed after-fix proof is supplied.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against fe408e109f67.

Labels

Label changes:

  • add P2: This is a bounded channel-message recognition repair that can silently ignore valid IRC bot mentions, but the evidence does not show a broad urgent regression.
  • add rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🐚 platinum hermit.
  • add status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs stronger real behavior proof before merge: The PR body describes successful tests and an independent probe, but no inspectable after-fix terminal output, redacted runtime log, recording, or linked artifact is present in the provided context; add one and redact any private server, address, token, or endpoint data. 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.

Label justifications:

  • P2: This is a bounded channel-message recognition repair that can silently ignore valid IRC bot mentions, but the evidence does not show a broad urgent regression.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🐚 platinum hermit.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs stronger real behavior proof before merge: The PR body describes successful tests and an independent probe, but no inspectable after-fix terminal output, redacted runtime log, recording, or linked artifact is present in the provided context; add one and redact any private server, address, token, or endpoint data. 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

What I checked:

  • Focused runtime repair: The proposed matcher replaces \b boundaries with lookarounds based on the IRC nickname alphabet and expands the four RFC 1459 punctuation equivalence pairs before compiling the explicit-mention regular expression. (extensions/irc/src/inbound.ts:84, b845cffa4549)
  • Boundary and equivalence coverage: The added parameterized inbound tests cover ordinary case folding, every RFC 1459 punctuation pair, valid punctuation-bearing nicknames, and non-mentions that remain inside a longer IRC nickname. (extensions/irc/src/inbound.behavior.test.ts:334, b845cffa4549)
  • Current PR state: The supplied PR metadata reports a clean three-way merge result against current main, with the branch behind the base rather than conflicting; this alone does not establish after-fix behavior proof. (fe408e109f67)
  • Feature-history signal: The only available concrete provenance is the current focused IRC commit; the review environment could not complete read-only repository commands for a broader blame/log pass, so owner attribution remains low confidence. (extensions/irc/src/inbound.ts:287, b845cffa4549)

Likely related people:

  • steipete: Authored the focused commit that changes the IRC inbound mention path; broader current-main ownership history could not be established from the available read-only inspection environment. (role: current IRC change author; confidence: low; commits: b845cffa4549; files: extensions/irc/src/inbound.ts, extensions/irc/src/inbound.behavior.test.ts)

Rank-up moves

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

  • Attach a redacted terminal transcript showing the focused IRC inbound suite or an equivalent after-fix runtime probe, including the RFC 1459 punctuation cases.
  • Refresh the branch against current main if needed, then let the existing review/check flow evaluate that exact head.

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.

@steipete
steipete merged commit 873bcc2 into main Jul 31, 2026
96 of 104 checks passed
@steipete
steipete deleted the codex/auto-qa-irc branch July 31, 2026 10:21
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Jul 31, 2026
* commit 'refs/frozen/talk-pcm-output-main-refresh':
  fix(skills): allow autonomous sweep sync (#116755)
  fix(irc): recognize punctuation in nickname mentions (#116758)
  fix(plugins): require explicit source external startup (#116759)
  fix(whatsapp): keep sends running when typing presence fails (#116739)
  fix(cli): reject dangling config path escapes (#116738)
  fix(qa): authenticate summaries and bound native scenario commands (#116748)
  fix(bedrock): reject truncated streams and preserve audio results (#116743)
  docs(skill): isolate autonomous issue sweep worktrees
  fix(ci): retire Kova runtime deps coverage (#116760)
  chore(i18n): refresh native locales (#116640)
  fix(ollama): resolve web search secret refs (#104829)
  fix(ollama): honor stop sequences and async payload hooks (#116737)
  fix(ollama): stop oversized stream records from growing memory (#107473)
  fix(agents): preserve thinking for runtime-selected Ollama models (#116584)
vincentkoc added a commit that referenced this pull request Jul 31, 2026
* origin/main: (23 commits)
  fix(agents): preserve resumed turns after stale terminal events (#116777)
  fix(browser): preserve tab-bound browser authorization (#116778)
  fix(doctor): correct SQLite-backed automation warnings (#116769)
  fix(release): skip unavailable Buzz QA runner (#116753)
  feat(plugins): externalize DuckDuckGo search (#116740)
  refactor(reply): simplify task-owned typing refresh (#116770)
  fix(chat): explain chat-only model limits
  feat(models): expose tool support to clients
  docs(skill): require independent proof before issue closure
  fix(skills): allow autonomous sweep sync (#116755)
  fix(irc): recognize punctuation in nickname mentions (#116758)
  fix(plugins): require explicit source external startup (#116759)
  fix(whatsapp): keep sends running when typing presence fails (#116739)
  fix(cli): reject dangling config path escapes (#116738)
  fix(qa): authenticate summaries and bound native scenario commands (#116748)
  fix(bedrock): reject truncated streams and preserve audio results (#116743)
  docs(skill): isolate autonomous issue sweep worktrees
  fix(ci): retire Kova runtime deps coverage (#116760)
  chore(i18n): refresh native locales (#116640)
  fix(ollama): resolve web search secret refs (#104829)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 1, 2026
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 1, 2026
* commit 'refs/frozen/talk-pcm-output-main-refresh':
  fix(skills): allow autonomous sweep sync (openclaw#116755)
  fix(irc): recognize punctuation in nickname mentions (openclaw#116758)
  fix(plugins): require explicit source external startup (openclaw#116759)
  fix(whatsapp): keep sends running when typing presence fails (openclaw#116739)
  fix(cli): reject dangling config path escapes (openclaw#116738)
  fix(qa): authenticate summaries and bound native scenario commands (openclaw#116748)
  fix(bedrock): reject truncated streams and preserve audio results (openclaw#116743)
  docs(skill): isolate autonomous issue sweep worktrees
  fix(ci): retire Kova runtime deps coverage (openclaw#116760)
  chore(i18n): refresh native locales (openclaw#116640)
  fix(ollama): resolve web search secret refs (openclaw#104829)
  fix(ollama): honor stop sequences and async payload hooks (openclaw#116737)
  fix(ollama): stop oversized stream records from growing memory (openclaw#107473)
  fix(agents): preserve thinking for runtime-selected Ollama models (openclaw#116584)
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 1, 2026
* origin/main: (23 commits)
  fix(agents): preserve resumed turns after stale terminal events (openclaw#116777)
  fix(browser): preserve tab-bound browser authorization (openclaw#116778)
  fix(doctor): correct SQLite-backed automation warnings (openclaw#116769)
  fix(release): skip unavailable Buzz QA runner (openclaw#116753)
  feat(plugins): externalize DuckDuckGo search (openclaw#116740)
  refactor(reply): simplify task-owned typing refresh (openclaw#116770)
  fix(chat): explain chat-only model limits
  feat(models): expose tool support to clients
  docs(skill): require independent proof before issue closure
  fix(skills): allow autonomous sweep sync (openclaw#116755)
  fix(irc): recognize punctuation in nickname mentions (openclaw#116758)
  fix(plugins): require explicit source external startup (openclaw#116759)
  fix(whatsapp): keep sends running when typing presence fails (openclaw#116739)
  fix(cli): reject dangling config path escapes (openclaw#116738)
  fix(qa): authenticate summaries and bound native scenario commands (openclaw#116748)
  fix(bedrock): reject truncated streams and preserve audio results (openclaw#116743)
  docs(skill): isolate autonomous issue sweep worktrees
  fix(ci): retire Kova runtime deps coverage (openclaw#116760)
  chore(i18n): refresh native locales (openclaw#116640)
  fix(ollama): resolve web search secret refs (openclaw#104829)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: irc maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. size: S 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