Skip to content

test(qa): cover remote logging boundaries - #118951

Merged
vincentkoc merged 4 commits into
mainfrom
codex/qa0803-logging
Aug 3, 2026
Merged

vincentkoc merged 4 commits into
mainfrom
codex/qa0803-logging

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Aug 3, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Resolves a coverage gap where remote Gateway log tailing and file-log rotation/correlation were only proven by isolated unit paths, not executable QA Lab scenarios.

Why This Change Was Made

Adds two test-only QA scenarios. One launches an authenticated ephemeral Gateway and exercises logs.tail plus the packaged openclaw logs CLI with explicit remote credentials, JSON output, cursor/line/byte bounds, and an owner-signaled follow child. The other runs the actual file logger with a tiny cap and verifies valid current/archive JSONL plus trace correlation with the linked diagnostic event.

The broader observability.redaction-patterns-and-sinks claim is intentionally not included: its required console, file, OTLP, transcript, Control UI, support-export, and WebSocket sinks cannot all be hermetically executed inside this reserved test-only boundary without crossing active ownership/collision scopes.

User Impact

No production behavior changes. Maintainers gain executable regression proof for remote log access, bounded tails, log rotation, and diagnostic trace correlation.

Evidence

  • Focused current-head Vitest passed, including the forced-operation-failure case proving the owned logs --follow child closes before rejection escapes.
  • Exact-head remote-log QA passed on bf7060e9f5fe0744a2d8bb104395aee40a295edd: Actions 30857722120, Testbox tbx_01kz4txsnkmqftfxpkkyrcax9b.
  • Exact-head file-boundary QA passed on bf7060e9f5fe0744a2d8bb104395aee40a295edd: Actions 30858774913, Testbox tbx_01kz4vw61ekrxy2hx8v5zgpg2z.
  • Exact-head changed gate passed on bf7060e9f5fe0744a2d8bb104395aee40a295edd: Actions 30857730390, Testbox tbx_01kz4ty19qbdxhh0qx77e2yy96; full tsgo, core/extensions/scripts oxlint, import-cycle checks, and repository guards were green.
  • The branch remains frozen at that proven exact head rather than rebasing solely to chase unrelated main movement.
  • Targeted oxfmt, oxlint, and git diff --check passed.
  • Production LOC delta: 0. Test/QA LOC delta: +483.
  • TruffleHog passed. Autoreview was unavailable after its exact-head Codex helper stalled for more than 31 minutes; the owned review session was stopped without an artifact.

AI-assisted: yes. I understand the change and verified the scoped implementation and tests.

@vincentkoc vincentkoc self-assigned this Aug 3, 2026
@clawsweeper clawsweeper Bot added 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. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. labels Aug 3, 2026
@clawsweeper

clawsweeper Bot commented Aug 3, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 3, 2026, 6:18 PM ET / 22:18 UTC.

ClawSweeper review

What this changes

This PR adds two QA Lab script scenarios for authenticated remote Gateway log tailing and for JSONL file rotation with diagnostic trace correlation.

Merge readiness

⚠️ Ready for maintainer review - 3 items remain

Keep open for maintainer review: the current head fixes the earlier follow-child cleanup blocker and adds distinct QA coverage, but the draft still needs refreshed exact-head private-QA proof after its base drift.

Priority: P3
Reviewed head: bf7060e9f5fe0744a2d8bb104395aee40a295edd
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The patch cleanly resolves the prior lifecycle finding and follows QA contracts, but refreshed exact-head runtime evidence is still needed.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-authored test-only PR is assessed through the QA evidence path; the PR body notes that exact-head private-QA execution is still pending.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-authored test-only PR is assessed through the QA evidence path; the PR body notes that exact-head private-QA execution is still pending.
Evidence reviewed 5 items Prior cleanup finding fixed: The current head wraps the follow operation in a finally block that signals and awaits the child; the adjacent regression test forces an operation failure and verifies signal termination.
Canonical QA execution path: Current main runs script scenarios through Node with tsx, substitutes the scenario artifact directory, and rejects a successful script that lacks fresh producer evidence.
Production boundary exercised: Current Gateway logs.tail forwards cursor, line limit, and byte limit to the bounded configured-log reader; the CLI calls that RPC for explicit remote URLs.
Findings None None.
Security None None.

How this fits together

QA Lab runs declared YAML scenarios against OpenClaw runtime boundaries and records evidence artifacts. These scenarios exercise the Gateway log RPC and packaged CLI, plus the file logger and diagnostic event stream.

flowchart LR
A[QA scenario YAML] --> B[QA script runner]
B --> C[Gateway or file logger]
C --> D[RPC, CLI, JSONL, diagnostics]
D --> E[Boundary assertions]
E --> F[QA evidence artifacts]
Loading

Decision needed

Question Recommendation
After refresh and exact-head private-QA evidence, should this maintainer-owned draft be marked ready for merge? Ready after exact-head proof: Rebase or refresh the branch and accept it once both scripts pass through the private-QA build with redacted evidence.

Why: The protected maintainer item and new automation coverage need an owner to assess the refreshed runtime proof.

Before merge

  • Resolve merge risk (P1) - The branch is behind current main, and the new process-owning scripts have not yet been run through the private-QA build on the exact merge head.
  • Complete next step (P2) - The remaining action is maintainer validation of the refreshed draft and its exact-head private-QA proof, not a mechanical repair.
Agent review details

Security

None.

PR surface

Tests +427, Other +56. Total +483 across 6 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 4 427 0 +427
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 2 56 0 +56
Total 6 483 0 +483

Review metrics

Metric Value Why it matters
Production vs test LOC production +0, QA/tests +483 All added code is test and scenario coverage, so merge confidence depends on its execution reliability rather than production compatibility.

Stored data model

Persistent data-model change detected: serialized state: test/e2e/qa-lab/runtime/logging-file-boundary-runtime.ts, serialized state: test/e2e/qa-lab/runtime/remote-log-tailing-runtime.ts. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Refresh exact-head QA proof (recommended)
    Rebase or refresh against current main, then run the private-QA build and both new scenario scripts on the exact merge head.
  2. Keep the draft pending
    Pause this coverage addition if the refreshed process-lifecycle run is flaky or cannot produce authenticated scenario evidence.

Technical review

Best possible solution:

Rebase or refresh against current main, run both scenarios through the private-QA path, and retain the canonical QA scripts as the regression boundary.

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

Not applicable: this PR adds regression coverage rather than fixing a reported user failure. Source inspection confirms the scenarios exercise real runtime boundaries, while exact-head private-QA execution remains pending.

Is this the best way to solve the issue?

Yes. The scripts use the existing QA YAML catalog, public QA Lab API, and producer-evidence runner instead of adding a parallel harness or production logging behavior.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This maintainer-authored test-only PR is assessed through the QA evidence path; the PR body notes that exact-head private-QA execution is still pending.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P3: This is additive test-only regression coverage with no production behavior change.
  • merge-risk: 🚨 automation: The PR adds executable QA scripts that start a Gateway and manage a long-running CLI child process.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This maintainer-authored test-only PR is assessed through the QA evidence path; the PR body notes that exact-head private-QA execution is still pending.

Evidence

What I checked:

Likely related people:

  • vincentkoc: Authored the current follow-child repair and prior file-log rotation, trace-field, and Vitest lifecycle work. (role: recent QA and logging contributor; confidence: high; commits: bf7060e9f5fe, cd89adf0ac01, df542f75a9c1; files: test/e2e/qa-lab/runtime/remote-log-tailing-runtime.ts, src/logging/logger-file-transport.ts)
  • steipete: Recent history includes the QA scenario verification path and asynchronous file-log transport behavior used by these scripts. (role: recent QA runner and logging transport contributor; confidence: high; commits: 80bbdeda1ce9, 1cbbda18c390; files: extensions/qa-lab/src/test-file-scenario-runner.ts, src/logging/logger-file-transport.ts)
  • Dallin Romney: Added the real-transport QA scenario pattern that this PR follows. (role: real-transport QA contributor; confidence: medium; commits: 9d68f877ac3e; files: extensions/qa-lab/src/test-file-scenario-runner.ts)

Rank-up moves

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

  • Rebase or refresh against current main and post redacted private-QA evidence for both scenarios.

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.

History

Review history (2 earlier review cycles)
  • reviewed 2026-08-03T21:03:16.803Z sha 18e922c :: needs maintainer review before merge. :: none
  • reviewed 2026-08-03T22:04:16.334Z sha dc6678a :: needs changes before merge. :: [P2] Clean up the follow child on every failure path

@clawsweeper clawsweeper Bot added status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. and removed status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 3, 2026
@clawsweeper clawsweeper Bot added status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 3, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review August 3, 2026 22:36
@vincentkoc
vincentkoc merged commit ba2764a into main Aug 3, 2026
148 of 152 checks passed
@vincentkoc
vincentkoc deleted the codex/qa0803-logging branch August 3, 2026 22:53
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Aug 3, 2026
…ansports-20260803

* origin/main: (120 commits)
  test(ui): add service-worker update primary QA proof (#118805)
  test(qa): cover CLI onboarding and plugin install sources (#118882)
  test(qa): cover remote logging boundaries (#118951)
  fix(sms): retry transient MMS failures before durable adoption (#118994)
  test(qa): cover video generation invocation (#118864)
  test(qa): cover media reference intake (#118858)
  test(qa): cover image generation task lifecycle (#118915)
  feat(sms): track Twilio delivery status (#118665)
  test(tasks): cover TaskFlow registry lifecycle (#118983)
  test(gateway): verify SSH tunnel fallback (#118818)
  fix(security): harden network tool output at canonical owner boundaries (#118984)
  fix(googlechat): align doctor policy ownership with canonical account configuration (#118972)
  test(tui): prove editor input through PTY (#118982)
  fix(memory): persist trusted owner provenance at canonical transcript boundary (#118987)
  test(qa): cover health monitor and cache boundaries (#118961)
  fix(macos): restore dashboard frame double-click zoom (#118976)
  fix(googlechat): recover durable lanes after oversized attachments (#118986)
  test(qa): cover runtime telemetry evidence (#118950)
  fix(gateway): resolve SQLite usage details (#118918)
  test(cron): cover durable scheduler state (#118981)
  ...
vincentkoc added a commit to clawSean/openclaw that referenced this pull request Aug 3, 2026
* origin/main: (1301 commits)
  fix(sms): align MMS retries with network timeouts (openclaw#119002)
  test(qa): cover composed tool result consumption (openclaw#118991)
  test(cron): cover delivery outcomes (openclaw#118993)
  test(qa): cover guarded media fetch boundaries (openclaw#118857)
  test(qa): cover music generation controls (openclaw#118901)
  test(qa): cover core vision routing (openclaw#118861)
  test(qa): cover Gateway usage and memory APIs (openclaw#118995)
  fix(docker): use authenticated gateway health command (openclaw#118996)
  test(plugins): align tool fixtures with owner policy (openclaw#118959)
  test(qa): cover managed gateway service lifecycle (openclaw#118855)
  test(qa): cover audio proxy and limit handling (openclaw#118863)
  test(qa): cover PDF extraction dispatch (openclaw#118860)
  test(ui): add service-worker update primary QA proof (openclaw#118805)
  test(qa): cover CLI onboarding and plugin install sources (openclaw#118882)
  test(qa): cover remote logging boundaries (openclaw#118951)
  fix(sms): retry transient MMS failures before durable adoption (openclaw#118994)
  test(qa): cover video generation invocation (openclaw#118864)
  test(qa): cover media reference intake (openclaw#118858)
  test(qa): cover image generation task lifecycle (openclaw#118915)
  feat(sms): track Twilio delivery status (openclaw#118665)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 4, 2026
* test(qa): cover remote logging boundaries

* test(qa): tolerate gateway log interleaving

* test(qa): satisfy logging type guards

* test(qa): always stop log follow child
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

extensions: qa-lab maintainer Maintainer-authored PR merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: M 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