Skip to content

feat(dashboard): chart review handoff pressure - #567

Closed
brokemac79 wants to merge 1 commit into
mainfrom
codex/bay-handoff-pressure
Closed

brokemac79 wants to merge 1 commit into
mainfrom
codex/bay-handoff-pressure

Conversation

@brokemac79

Copy link
Copy Markdown
Contributor

Summary

Adds a compact Review handoff pressure panel to OpenClaw Bay. It shows whether the exact-review admission queue is rising, falling, or steady over the last three hours, with the current waiting count and stepped pending/leased lines.

Problem

The operational overview exposes the current exact-review handoff queue, but Bay only showed the animated work snapshot. That made it hard to see whether admission pressure was building or clearing while using the visual view.

Implementation

  • Stores queue-owned snapshots in the existing exact-review Durable Object when the queue changes: five-minute buckets, three-hour retention, at most 37 points.
  • Replaces a point inside the current bucket instead of growing the history on each mutation.
  • Keeps pressure telemetry explicitly best-effort: a history read/write failure cannot interrupt queue admission, claims, completion, or dispatch.
  • Renders a responsive Bay panel with a plain-language direction, current pending count, coral pending line, and dashed teal leased line.
  • Extends the deployment smoke contract and regenerates the deterministic Bay browser proof bundle.

API footprint

This change adds no GitHub REST or GraphQL calls and no browser-side GitHub requests. The history is small Durable Object storage local to the existing exact-review queue and is recorded on queue mutations, not on Bay page refreshes.

Bay still consumes the shared /api/status response on its existing 20-second browser refresh. The API footprint is therefore unchanged at GitHub, but this PR does not claim a measured end-to-end API advantage over the Overview page.

Validation

  • pnpm run build:dashboard
  • node --test test/dashboard-worker.test.ts test/dashboard-smoke.test.ts — 110 passing
  • pnpm run lint:dashboard
  • git diff --check
  • Deterministic Chromium proof on Crabbox local-container: cbx_e42103e2f43c (coral-barnacle), 28 assertions; zero browser GitHub API requests and zero mutation requests. The regenerated storyboard, trace, and JSON summary are included under docs/proof/openclaw-bay/.
  • codex review --uncommitted — clean after accepting and fixing the telemetry-failure and stale-proof findings.
  • codex review --base origin/main — clean; no actionable correctness findings.

Risks and rollout

  • There is intentionally no historic backfill: a newly deployed queue starts with “Collecting queue history” and develops a trend as queue mutations occur.
  • The chart is operational telemetry, not a scheduling control; queue mutations remain correct even if history storage is temporarily unavailable.
  • #555 is related current-pressure telemetry work; this PR is intentionally independent and only adds the bounded historical series and Bay presentation.

User-facing note

OpenClaw Bay now makes the review handoff backlog trend visible without making the visual demo poll GitHub more aggressively.

@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:

@brokemac79

Copy link
Copy Markdown
Contributor Author

@clawsweeper review

@vincentkoc

Copy link
Copy Markdown
Member

Landed the canonical version through #569. I could not push the required maintainer fixes to this branch because maintainerCanModify=false, so the follow-up branch retained your original commit and added the queue-anchoring, single-sample, proof-formatting, and accessibility corrections found during review. Your authored commit is preserved at 5c4a83b. Closing this PR as superseded by the landed series.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants