Skip to content

test(channels): fix join failure proof and trim probe fixture - #207264

Merged
vincentkoc merged 1 commit into
mainfrom
test-channel-join-probe-proof-20261128
Nov 28, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
test-channel-join-probe-proof-20261128

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Nov 28, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

The join-introduction persistence test spies on a retired synchronous state API. Its simulated commit failure never reaches the worker-backed persistence path, so the test can pass without exercising its failure condition.

User Impact

No product behavior changes. All 19 affected cases remain.

Why This Change Was Made

Intercept the actual worker comparison and assert that the injected failure was consumed before checking replay suppression. Remove one unused default argument from the package-probe fixture; all three callers supply it.

Evidence

  • Discarding memory replay protection after a failed write passes all 11 original join tests but fails the repaired existing case with a repeated introduction.
  • Restored production passes all 19 affected cases.
  • Scoped format, lint, channel test types and diff checks pass; independent preservation review is clear.
  • No new cases or production code.
  • Local ClawSweeper reviewed the complete committed range 501ee91..b93020a with no findings.
  • Exact-head native suite and review-artifact validation pass.

@vincentkoc vincentkoc self-assigned this Nov 28, 2026
@clawsweeper

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

@clawsweeper clawsweeper Bot added the P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. label Nov 28, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review November 28, 2026 05:32
@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. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. labels Nov 28, 2026
@clawsweeper

clawsweeper Bot commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

Codex review: passed.

What this changes

This PR injects join-introduction commit failures through the active worker API, verifies the injection ran, and removes an unused test-fixture default.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused test repair supported by a source-verified call chain, reported mutation evidence, and passing exact-head checks.
Proof confidence 🐚 platinum hermit (4/6) No shipped behavior changes, so product-entry-point proof is unnecessary; the reported mutation check and exact-head CI support this test repair.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: A regression that repeats a delivered introduction after a failed durable write could escape the existing test.
Reason: The maintainer-authored direction restores a meaningful failure condition while preserving all existing behavioral assertions.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-authored PR repairs a genuine regression-test gap with a minimal change, and no correctness or security defects were found.

Reviewed head: b93020a99be32322f476eb73d865ad5236ba5e70

Before merge

None.

Findings

None.

Agent review details

How this fits together

Channel membership events reach the shared introduction owner, which runs an isolated agent turn and records replay protection through the persistent dedupe store and plugin-state worker.

flowchart TD
  A[Channel membership event] --> B[Join introduction owner]
  B --> C[Persistent dedupe]
  B --> D[Isolated agent turn]
  D --> E[Introduction delivery]
  E --> C
  C --> F[Plugin state worker]
Loading

Technical review

Best possible solution:

Retain the existing regression case with the worker-boundary failure injection and explicit consumption assertion.

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

Source tracing establishes that the original synchronous spy misses the active worker comparison; the reported mutation experiment was not independently rerun under this read-only review.

Is this the best way to solve the issue?

The change repairs the failure injection at the existing persistence boundary without adding production seams, cases, or parallel ownership.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Join-introduction durable-commit failure test keeps the original intent (63f7df8: The original feature required a delivered introduction to remain settled even when its durable claim could not be committed.)
  • Package-state probe fixture default keeps the original intent (62fcd8c: The helper consolidated repeated probe metadata during test cleanup; every remaining caller supplies its override argument.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 63f7df8 adds src/channels/join-intro/report-channel-room-join.test.ts:113 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.test.ts)

PR surface

Tests +1. Total +1 across 2 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 2 4 3 +1
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 4 3 +1

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.

Labels

Label changes:

  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

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.

Reviewed November 28, 2026, 12:45 AM ET / 05:45 UTC.

@vincentkoc
vincentkoc merged commit 19b2534 into main Nov 28, 2026
195 of 196 checks passed
@vincentkoc
vincentkoc deleted the test-channel-join-probe-proof-20261128 branch November 28, 2026 07:03
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Nov 28, 2026
* commit '262f14aab89ca286633992760fa45aeeded998f9': (207 commits)
  fix(ui): remove redundant type argument from Board browser test (#207352)
  test(channels): distinguish status and batch fixtures (#207232)
  fix(ui): type the Board drop test mock as void (#207348)
  fix(ui): break the Skill Workshop import cycle (#207345)
  test(channels): expose label guard regressions (#207195)
  fix: explain when a previous automation run keeps the agent from starting (#207180)
  refactor(test): consolidate loader proof and repair rollback coverage (#207152)
  fix(agents): one tool-result bound on every route, untrusted-content wrapper intact (#207101)
  test(plugins): verify staged SDK named exports (#207170)
  fix(ui): truncate empty Compose hints on narrow screens (#207301)
  fix: keep unsent Cmd+K Compose drafts when reopened (#207307)
  fix: explain chat update errors when a session changes (#206419)
  fix(ios): keep consecutive commands on one line in chat (#207242)
  fix(ios): keep connection messages from flashing when chat reopens (#207233)
  fix(ios): give Sessions groups more breathing room (#207221)
  fix(ui): show chat completions as activity rows (#201891)
  fix(ui): make empty composer hints look distinct from drafts (#207295)
  fix: explain why chat won’t attach an empty file (#206402)
  fix(agents): show Doctor's restore-first warning before deleting a held store (#207290)
  test(channels): fix join failure proof and trim probe fixture (#207264)
  ...
vincentkoc added a commit that referenced this pull request Nov 28, 2026
* commit '262f14aab89ca286633992760fa45aeeded998f9': (207 commits)
  fix(ui): remove redundant type argument from Board browser test (#207352)
  test(channels): distinguish status and batch fixtures (#207232)
  fix(ui): type the Board drop test mock as void (#207348)
  fix(ui): break the Skill Workshop import cycle (#207345)
  test(channels): expose label guard regressions (#207195)
  fix: explain when a previous automation run keeps the agent from starting (#207180)
  refactor(test): consolidate loader proof and repair rollback coverage (#207152)
  fix(agents): one tool-result bound on every route, untrusted-content wrapper intact (#207101)
  test(plugins): verify staged SDK named exports (#207170)
  fix(ui): truncate empty Compose hints on narrow screens (#207301)
  fix: keep unsent Cmd+K Compose drafts when reopened (#207307)
  fix: explain chat update errors when a session changes (#206419)
  fix(ios): keep consecutive commands on one line in chat (#207242)
  fix(ios): keep connection messages from flashing when chat reopens (#207233)
  fix(ios): give Sessions groups more breathing room (#207221)
  fix(ui): show chat completions as activity rows (#201891)
  fix(ui): make empty composer hints look distinct from drafts (#207295)
  fix: explain why chat won’t attach an empty file (#206402)
  fix(agents): show Doctor's restore-first warning before deleting a held store (#207290)
  test(channels): fix join failure proof and trim probe fixture (#207264)
  ...
vincentkoc added a commit that referenced this pull request Nov 28, 2026
* commit '262f14aab89ca286633992760fa45aeeded998f9': (207 commits)
  fix(ui): remove redundant type argument from Board browser test (#207352)
  test(channels): distinguish status and batch fixtures (#207232)
  fix(ui): type the Board drop test mock as void (#207348)
  fix(ui): break the Skill Workshop import cycle (#207345)
  test(channels): expose label guard regressions (#207195)
  fix: explain when a previous automation run keeps the agent from starting (#207180)
  refactor(test): consolidate loader proof and repair rollback coverage (#207152)
  fix(agents): one tool-result bound on every route, untrusted-content wrapper intact (#207101)
  test(plugins): verify staged SDK named exports (#207170)
  fix(ui): truncate empty Compose hints on narrow screens (#207301)
  fix: keep unsent Cmd+K Compose drafts when reopened (#207307)
  fix: explain chat update errors when a session changes (#206419)
  fix(ios): keep consecutive commands on one line in chat (#207242)
  fix(ios): keep connection messages from flashing when chat reopens (#207233)
  fix(ios): give Sessions groups more breathing room (#207221)
  fix(ui): show chat completions as activity rows (#201891)
  fix(ui): make empty composer hints look distinct from drafts (#207295)
  fix: explain why chat won’t attach an empty file (#206402)
  fix(agents): show Doctor's restore-first warning before deleting a held store (#207290)
  test(channels): fix join failure proof and trim probe fixture (#207264)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant