Skip to content

test(channels): distinguish status and batch fixtures - #207232

Merged
vincentkoc merged 1 commit into
mainfrom
test-channel-projection-oracles-20261128
Nov 28, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
test-channel-projection-oracles-20261128

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Nov 28, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

The legacy account fixture uses the default name, so fallback behavior hides a missing name lookup. The batch capability fixture puts every distinguishing capability in its last payload, so it passes when earlier payloads are ignored.

User Impact

No product behavior changes. All seven cases remain and two existing cases now detect the regressions they describe.

Why This Change Was Made

Use a non-default legacy account name and matching request. Split media and presentation across the batch members so the existing exact union assertion requires both payloads.

Evidence

  • Removing only legacy name lookup passes the original four status cases and fails the repaired existing case.
  • Processing only the last payload passes the original three capability cases and fails the repaired union case on missing media.
  • Restored production passes all seven affected cases; scoped format, lint, channel test types and diff checks pass.
  • Independent preservation review is clear. One test line removed; production unchanged.
  • Local ClawSweeper reviewed the complete committed range 501ee91..4e8e67a with no findings.
  • Exact-head native suite and review-artifact validation pass.
  • Exact-head CI 46108271740 and completed-hosted native preparation passed; signed head unchanged.

@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 04:35
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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. labels Nov 28, 2026
@clawsweeper

clawsweeper Bot commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

Codex review: passed.

What this changes

This PR makes legacy-account lookup and batch-capability fixtures distinguish correct behavior from plausible regressions.

Example: The batch contains media at https://example.com/a.png in its first payload and presentation blocks in its second.

  • Before: Processing only the final payload still satisfies the existing assertion.
  • After: Processing only the final payload fails because the expected media capability is missing.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) A minimal, useful test repair supported by focused unit contracts and passing exact-head CI; shipped-entry-point proof is unnecessary for this scope.
Proof confidence 🦐 gold shrimp (3/6) No user-visible production behavior changes; source supports the reported mutation sensitivity, and exact-head CI validates the test-only patch.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: Existing tests can pass despite broken legacy account-name lookup or incomplete batch capability aggregation.
Reason: The maintainer-authored change improves regression detection through existing tests at negligible ongoing cost.

Merge readiness

✅ Ready for maintainer review

This maintainer-authored PR strengthens two existing regression checks without changing production behavior; no actionable defects were found.

Reviewed head: 4e8e67a71ed9edb6c4e02ff4c2bde3d75c91c938

Before merge

None.

Findings

None.

Agent review details

How this fits together

The status read model turns Gateway account records into credential-availability summaries, while message capability derivation turns prepared payloads into transport requirements.

flowchart TD
  A[Gateway account records] --> B[Status read model]
  B --> C[CLI status summaries]
  D[Prepared message batch] --> E[Capability derivation]
  E --> F[Delivery support preflight]
Loading

Technical review

Best possible solution:

Retain the focused fixture changes with the existing production owners and assertions.

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

Source inspection confirms that the original default-name fixture tolerates a missing name lookup and the original batch fixture tolerates last-payload-only processing; no target code was executed during this review.

Is this the best way to solve the issue?

Changing the existing inputs is the smallest complete repair: it strengthens the intended contracts without adding cases, mocks, helpers, or production seams.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Legacy runtime-account fixture keeps the original intent (4d28450: Protect legacy account lookup while sharing channel status projection between CLI consumers.)
  • Prepared-batch capability fixture keeps the original intent (4219ece: Require transport capabilities derived from the complete final prepared batch used by durable outbound delivery.)

Testing

Proof path: unit tests only.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 4d28450 adds src/channels/status/read-model.test.ts:23 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 4d284503126a; files: src/channels/status/read-model.test.ts)
  • Josh Avant: Raw commit 4219ece adds src/channels/message/capabilities.test.ts:73 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 4219ece28185; files: src/channels/message/capabilities.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 5 -1
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 4 5 -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: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp 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: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp 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:04 AM ET / 05:04 UTC.

@vincentkoc
vincentkoc merged commit a8beee9 into main Nov 28, 2026
201 of 202 checks passed
@vincentkoc
vincentkoc deleted the test-channel-projection-oracles-20261128 branch November 28, 2026 07:45
@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: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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