Skip to content

feat(dashboard): add Bay journey timing and portrait layout - #543

Merged
brokemac79 merged 9 commits into
mainfrom
codex/bay-journey-timings
Jul 14, 2026
Merged

brokemac79 merged 9 commits into
mainfrom
codex/bay-journey-timings

Conversation

@brokemac79

Copy link
Copy Markdown
Contributor

Summary

  • Add a bounded, end-to-end timing signal for explicit OpenClaw Bay @clawsweeper review and @clawsweeper re-review journeys.
  • Make OpenClaw Bay work naturally in portrait phone and tablet views: stages flow top-to-bottom over a portrait beach scene, with terminal pools below.

Problem

Bay previously showed only a generic last-hour placeholder because the dashboard could not safely connect a requested review to its durable final ClawSweeper result. It also treated the wide beach layout as the only layout, which made portrait screens difficult to use.

Implementation

  • Keep at most 100 journey records for 24 hours in the existing dashboard state store.
  • Start a journey only from the existing signed GitHub webhook for a trusted explicit review/re-review command.
  • Complete it only when the matching ClawSweeper status comment says State: Complete; that status is emitted after the durable review summary/update.
  • Preserve distinct commands and out-of-order webhook delivery, including same-second edits, with GitHub delivery identities.
  • Expose the last-hour average as Avg trigger -> final review, including the completed-journey sample count.
  • Add a compressed portrait WebP background plus responsive stage, terminal-pool, and master-sweeper positioning rules.

GitHub API footprint

This does not add browser-to-GitHub calls or new GitHub scans to /api/status. Bay reads its bounded local journey state from STATUS_STORE; that state is captured from the existing signed webhook stream. The deterministic browser proof observed 0 direct GitHub API requests and 0 browser mutation requests.

Validation

  • pnpm run build:dashboard
  • node --test test/dashboard-worker.test.ts test/dashboard-smoke.test.ts — 108 passed, 0 failed
  • pnpm run lint:dashboard
  • pnpm exec oxfmt --check dashboard/worker.ts test/dashboard-worker.test.ts docs/proof/openclaw-bay/run-proof.mjs
  • git diff --check

Browser proof

Crabbox local-container browser proof passed against implementation commit a59c19f698393955404e46fe7bd413a7828adb4a:

  • Provider/image: local-container, mcr.microsoft.com/playwright:v1.60.0-noble
  • Lease: cbx_260d3395d7b0 (tidal-lobster)
  • Fixture SHA-256: F766EE78A4E8E4F41EA9F2F64C9C85DFE3D04D7962B647007F073F40AF94ADA5
  • Result: 27 assertions passed; 18 evidence frames captured.
  • Covers review-trigger to final-review timing, no initial sample state, portrait top-to-bottom stage ordering, portrait no-horizontal-overflow, the tide, search, filtering, master-sweeper behaviour, and terminal pools.

Committed evidence is under docs/proof/openclaw-bay/, including proof-summary.json, playwright-proof-storyboard.jpg, and trace.zip.

Risks and rollout

  • The metric begins collecting reliable values after deployment, so it may initially say that it is awaiting a completed journey.
  • It deliberately measures only explicit review/re-review command journeys; it does not speculate about unrelated automatic jobs.
  • State is bounded to 100 records/24 hours and old persisted records migrate safely.
  • Portrait uses a 180 KB WebP asset rather than the original multi-megabyte source image.

Codex review closeout

  • Dirty-patch reviews were run before each implementation/proof commit; accepted findings were fixed, including distinct command delivery identity and out-of-order completion association.
  • Final branch review: codex review --base origin/main.
  • Result: clean — no accepted/actionable findings. The reviewer found the journey timing state, webhook ingestion, status exposure, and portrait layout coherent and confirmed the focused dashboard build/tests pass.

@brokemac79

Copy link
Copy Markdown
Contributor Author

@clawsweeper review

@clawsweeper

clawsweeper Bot commented Jul 14, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

Re-review progress:

@clawsweeper clawsweeper Bot added proof: sufficient Contributor real behavior proof is sufficient. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. feature: ✨ showcase ClawSweeper spotlight: unusually compelling feature idea for maintainer attention. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. P2 Normal priority bug or improvement with limited blast radius. labels Jul 14, 2026
@clawsweeper

clawsweeper Bot commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed July 13, 2026, 8:15 PM ET / July 14, 2026, 00:15 UTC.

Summary
The PR adds bounded explicit review-command journey timing and a responsive portrait layout to OpenClaw Bay, with worker, smoke-test, and browser-proof updates.

Reproducibility: not applicable. as a bug reproduction: this PR adds a new dashboard metric and portrait behavior, and the existing wide-layout and placeholder state are characterized by the branch tests and browser proof.

Review metrics: 3 noteworthy metrics.

  • Changed surface: 14 files, +951/-79. The feature spans dashboard state, presentation, tests, smoke validation, an image asset, and committed browser proof.
  • Worker regression coverage: 370 test lines added. The largest validation addition targets journey association, ordering, identity, expiry, bounds, and averaging behavior.
  • Browser proof: 27 assertions, 18 evidence frames. The committed Playwright run directly exercises the timing display and portrait layout on the real Bay route.

Merge readiness
Overall: 🦞 diamond lobster
Proof: 🦞 diamond lobster ✨ media proof bonus
Patch quality: 🦞 diamond lobster
Result: ready for maintainer review.

Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch.

Risk before merge

  • [P1] The metric intentionally excludes automatic jobs and begins without samples after deployment, so maintainers should confirm that explicit review and re-review commands are the intended Bay latency KPI.
  • [P1] The committed proof uses a real local-container browser and worker route with synthetic redacted events rather than an observed production GitHub webhook journey.

Maintainer options:

  1. Decide the mitigation before merge
    Adopt the bounded signed-webhook design if maintainers want an explicit-command latency KPI, preserving the 100-record/24-hour limits, migration coverage, portrait overflow checks, and observability-only dashboard boundary.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Next step before merge

  • [P2] A maintainer should confirm the supported Bay latency definition and feature direction; no concrete code defect currently calls for an automated repair.

Maintainer decision needed

  • Question: Should OpenClaw Bay adopt explicit review and re-review command journeys as its supported trigger-to-final-review latency metric, together with the portrait layout?
  • Rationale: The implementation is technically sound, but choosing this deliberately narrow KPI and making it part of the dashboard contract is a product and operations decision rather than a correctness repair.
  • Likely owner: steipete — The unresolved choice defines the supported dashboard KPI and product surface rather than requiring a mechanical code repair.
  • Options:
    • Adopt the proposed Bay metric (recommended): Accept explicit review and re-review commands as the bounded latency sample and land the portrait layout with the supplied proof and migration coverage.
    • Land portrait only: Keep the mobile layout improvement but defer journey-state persistence until maintainers choose the dashboard latency definition.
    • Pause the feature: Keep the existing completed-job placeholder until a broader dashboard metrics design is agreed.

Security
Cleared: The diff keeps ingestion behind the existing signed webhook, adds no browser GitHub access or dependency execution, and uses bounded local persistence.

Review details

Best possible solution:

Adopt the bounded signed-webhook design if maintainers want an explicit-command latency KPI, preserving the 100-record/24-hour limits, migration coverage, portrait overflow checks, and observability-only dashboard boundary.

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

Not applicable as a bug reproduction: this PR adds a new dashboard metric and portrait behavior, and the existing wide-layout and placeholder state are characterized by the branch tests and browser proof.

Is this the best way to solve the issue?

Yes technically: using the existing signed webhook stream and bounded local state is narrower and safer than polling GitHub or adding browser API access, but maintainers must confirm the metric semantics before merge.

AGENTS.md: found and applied where relevant.

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

Label changes

Label changes:

  • add P2: This is a bounded dashboard observability and responsive-layout improvement with meaningful operator value but no urgent production regression.
  • add proof: sufficient: Contributor real behavior proof is sufficient. The committed Crabbox Playwright run shows the changed timing and portrait behavior on the real Bay route with redacted synthetic data, 27 passing assertions, 18 frames, and captured network evidence.
  • add rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • add feature: ✨ showcase: ClawSweeper spotlight: unusually compelling feature idea for maintainer attention. The idea turns a decorative operational dashboard into a measurable command-to-durable-result journey while making the full Bay workflow usable on portrait devices.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (linked_artifact): The committed Crabbox Playwright run shows the changed timing and portrait behavior on the real Bay route with redacted synthetic data, 27 passing assertions, 18 frames, and captured network evidence.

Label justifications:

  • P2: This is a bounded dashboard observability and responsive-layout improvement with meaningful operator value but no urgent production regression.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • feature: ✨ showcase: ClawSweeper spotlight: unusually compelling feature idea for maintainer attention. The idea turns a decorative operational dashboard into a measurable command-to-durable-result journey while making the full Bay workflow usable on portrait devices.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (linked_artifact): The committed Crabbox Playwright run shows the changed timing and portrait behavior on the real Bay route with redacted synthetic data, 27 passing assertions, 18 frames, and captured network evidence.
  • proof: sufficient: Contributor real behavior proof is sufficient. The committed Crabbox Playwright run shows the changed timing and portrait behavior on the real Bay route with redacted synthetic data, 27 passing assertions, 18 frames, and captured network evidence.
Evidence reviewed

What I checked:

  • Current main does not implement journey timing: The reviewed main snapshot still derives the Bay timing display from completed jobs, while this branch introduces a separate bounded journey state and changes the status contract to completed_review_journeys. (dashboard/worker.ts:107, 7296ed70fb91)
  • Bounded durable state: The branch adds a dedicated journey-state key, a 100-record limit, a 24-hour TTL, signature-based no-op handling, and StatusStore merge persistence. (dashboard/worker.ts:110, 8ac79696d23f)
  • Focused webhook boundary: Journey triggers are sourced from the existing signed GitHub webhook path for trusted explicit review commands, and completion is tied to the durable command-status completion update rather than adding browser-side GitHub calls. (dashboard/worker.ts:388, 8ac79696d23f)
  • Extensive state regression coverage: The worker tests add coverage for trigger-to-summary averaging, duplicate and distinct command deliveries, same-second edits, out-of-order delivery, expiry, bounds, and migration behavior. (test/dashboard-worker.test.ts:421, 8ac79696d23f)
  • Real browser proof: The committed Crabbox Playwright evidence reports 27 passing assertions and 18 frames covering the timing label, empty-sample state, portrait stage ordering, horizontal overflow, terminal pools, filtering, tide behavior, and zero browser GitHub mutations. (docs/proof/openclaw-bay/proof-summary.json:1, a59c19f69839)
  • Repository direction: VISION.md prioritizes reliable live dashboard reporting, trustworthy workflow status, clearer dashboard views, narrow changes, and fixture or replay proof for dashboard-state changes; this PR follows those technical guardrails. (VISION.md:2, 7296ed70fb91)

Likely related people:

  • brokemac79: The contributor authored the nine commits in this branch and carried the timing, portrait, out-of-order delivery, delivery-identity, tests, and refreshed Bay proof as one cohesive implementation; current-main ownership beyond this branch is not fully established. (role: Bay feature contributor; confidence: medium; commits: 78ebc0656f52, 6eaf7f413cfe, a59c19f69839; files: dashboard/worker.ts, dashboard/bay-page.ts, test/dashboard-worker.test.ts)
  • steipete: The remaining question concerns whether the new Bay metric and its explicit-command-only semantics should become supported dashboard behavior; the available file history did not establish a more specific current-main decision owner. (role: likely product-direction owner; confidence: low; files: VISION.md, dashboard/worker.ts, dashboard/bay-page.ts)
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

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.

How this review workflow works
  • 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.

@brokemac79
brokemac79 merged commit 3ab249b into main Jul 14, 2026
12 checks passed
@brokemac79
brokemac79 deleted the codex/bay-journey-timings branch July 14, 2026 00:21
azaj01 pushed a commit to azaj01/clawsweeper that referenced this pull request Sep 21, 2026
…#543)

* feat(dashboard): add Bay journey timing and portrait view

* test(dashboard): refresh Bay journey proof

* test(dashboard): stabilize Bay tide animation proof

* test(dashboard): refresh rebased Bay proof

* fix(dashboard): retain out-of-order Bay journeys

* test(dashboard): refresh corrected Bay proof

* test(dashboard): refresh rebased journey proof

* fix(dashboard): distinguish Bay command deliveries

* test(dashboard): refresh delivery journey proof
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature: ✨ showcase ClawSweeper spotlight: unusually compelling feature idea for maintainer attention. P2 Normal priority bug or improvement with limited blast radius. proof: sufficient Contributor real behavior proof is sufficient. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. 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