Skip to content

test(sessions): align storage failure footer with app naming - #199408

Merged
roboclaw-bot merged 2 commits into
mainfrom
openclaw/quick-claw-2
Nov 15, 2026
Merged

roboclaw-bot merged 2 commits into
mainfrom
openclaw/quick-claw-2

Conversation

@roboclaw-bot

Copy link
Copy Markdown
Collaborator

Related: #199226

What Problem This Solves

Fixes: two session failure-notice tests fail after the approved app-name migration because their expected footer still says “Control UI” instead of “OpenClaw app.”

User Impact

No product behavior changes. Restores the test contract for storage-failure notices without changing production recovery guidance or receipt handling.

Why This Change Was Made

#199226 intentionally renamed the shared failure-copy footer. Update the single independently written expected footer in src/sessions/session-run-error.test.ts to match that naming contract. Preserve the complete content assertion, both storage failure classes, retained diagnostic/run ID, context exclusion and all sibling cases.

Evidence

  • Original CI failure: scheduled run 43667891698, job 132671552677, head 41f2b981d240: precisely the two storage-failure rows differ by the old app name.
  • Isolated AWS Linux proof, pinned source 669576890a1f, Node 24.22.1 and repository-pinned Bun, frozen dependencies:
    • Original test: 2 failures, 7 passes, exactly the expected footer mismatch. The enclosing evidence verifier subsequently failed; that does not change the recorded test result.
    • Exact one-line repair: 9 passes, 0 failures/skips. Only the missing green invocation was continued; the red test was not rerun.
  • Node syntax and whitespace checks passed; independent frozen-diff review found no P0–P2 findings.
  • Scoped formatter/lint/typecheck were not executed because qualified tools were absent locally; ordinary PR CI supplies those checks. This synthetic receipt-construction test does not exercise a live database outage.
  • One file, +1/−1. No production code, timeout, assertion strength or baseline changes. AWS lease released and cleanup verified.

Contributor credit: @obviyus and @steipete.

Work sessions

Linked for team reference; these sessions aren’t public.

Worked on by

roboclaw-bot and others added 2 commits November 15, 2026 03:38
Update the independent expected log footer to match the OpenClaw app name
introduced in #199226.

Co-authored-by: obviyus <[email protected]>
Co-authored-by: steipete <[email protected]>
Worked on by:
- @obviyus
- @steipete

Co-authored-by: obviyus <[email protected]>
Co-authored-by: steipete <[email protected]>
OpenClaw-Publication: fc107def-7185-8cbf-9f25-dfe4d297cb7a
@clawsweeper

clawsweeper Bot commented Nov 15, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@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. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 15, 2026
@clawsweeper

clawsweeper Bot commented Nov 15, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

Updates the expected storage-failure footer from “Control UI” to “OpenClaw app” without changing production behavior.

Example: A session run fails with SQLITE_BUSY.

  • Before: The test expects “Control UI” and rejects the renderer’s “OpenClaw app” footer.
  • After: The complete notice matches while diagnostic, run ID, display, and context-exclusion assertions remain intact.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The repair is correct and minimal; focused results are author-reported and current-head CI remains incomplete.
Proof confidence 🦐 gold shrimp (3/6) This test-only repair changes no shipped behavior, so no product-entry-point proof is required.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
Reason: Restores an existing test contract to the approved production wording without weakening coverage or introducing another behavior owner.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-authored PR makes the smallest correct repair to a stale test expectation after the approved naming change; no actionable defects were found.

Priority: P3
Reviewed head: bb65af80ffdb235e1c99509db0069af5fbcafad6

Before merge

None.

Findings

None.

Agent review details

How this fits together

Session failure recording classifies an error, obtains user-facing copy from the shared renderer, and submits a transcript notice; this test captures that notice before persistence.

flowchart TD
  Error[Session run error] --> Recorder[Failure recorder]
  Recorder --> Copy[Shared failure copy]
  Copy --> Notice[Transcript notice]
  Notice --> Capture[Test capture]
  Capture --> Assertion[Independent content assertion]
Loading

Technical review

Best possible solution:

Retain this one-line independent expectation update and complete the existing PR CI gates.

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

Source establishes the exact footer mismatch for writer-claim rebound and SQLITE_BUSY; the author reports matching red/green results, and no target code was executed during this review.

Is this the best way to solve the issue?

The single literal update is the smallest complete fix: it follows the existing copy owner while preserving an independently written expectation and all surrounding assertions.

AGENTS.md: found and applied where relevant.

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

Provenance checked

Testing

Proof path: unit tests only.

Security

None.

Evidence

What I checked:

Likely related people:

  • RoboClaw: Raw commit 8fc58f8 adds src/agents/failover/assistant-request-failure-copy.ts:46 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 8fc58f8c027d; files: src/agents/failover/assistant-request-failure-copy.ts)

PR surface

Tests 0. Total 0 across 1 file. Added test files: 0.

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

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 P3: This repairs a stale test expectation without changing runtime behavior.
  • 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:

  • P3: This repairs a stale test expectation without changing runtime behavior.
  • 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 14, 2026, 10:45 PM ET / November 15, 2026, 03:45 UTC.

@roboclaw-bot
roboclaw-bot merged commit e345d22 into main Nov 15, 2026
120 checks passed
@roboclaw-bot
roboclaw-bot deleted the openclaw/quick-claw-2 branch November 15, 2026 03:55
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 15, 2026
…w#199408)

* test(sessions): align storage failure footer with app naming

Update the independent expected log footer to match the OpenClaw app name
introduced in openclaw#199226.

Co-authored-by: obviyus <[email protected]>
Co-authored-by: steipete <[email protected]>

* test(sessions): align storage failure footer with app naming

Worked on by:
- @obviyus
- @steipete

Co-authored-by: obviyus <[email protected]>
Co-authored-by: steipete <[email protected]>
OpenClaw-Publication: fc107def-7185-8cbf-9f25-dfe4d297cb7a

---------

Co-authored-by: obviyus <[email protected]>
Co-authored-by: steipete <[email protected]>
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