Skip to content

feat(dashboard): add durable lifecycle Bay Kanban - #999

Merged
brokemac79 merged 1 commit into
mainfrom
codex/csw-093-ws5-durable-kanban
Aug 1, 2026
Merged

brokemac79 merged 1 commit into
mainfrom
codex/csw-093-ws5-durable-kanban

Conversation

@brokemac79

@brokemac79 brokemac79 commented Aug 1, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds OpenClaw Bay's durable lifecycle Kanban for #898 Workstream 5. It renders only the WS2 ExactReviewLifecycleProjection reducer, never worker-step, workflow, scheduler, repair, or live-activity state.

Problem

The existing Bay shoreline presents transient worker and queue activity. It must not be mistaken for an authoritative lifecycle lane or used to infer lifecycle completion from workflow success or names.

Maintainer decision

The exact public observer contract and its uncached 512 + 1 Durable Object read budget are explicitly approved in #898 maintainer decision. That decision requires fail-closed Unknown for over-cap, unavailable, malformed, mixed, or stale input and retains all WS5a/WS6/WS7, mutation, replay, gate, deployment, and production-action exclusions.

Implementation

  • Adds public GET /api/durable-lifecycle-bay, which only forwards to the EXACT_REVIEW_QUEUE Durable Object GET /lifecycle-bay; it has no Worker/current-step fallback.
  • Adds a side-effect-free DO reader over ExactReviewLifecycleProjection: no schema initialization, prune, reclaim, scheduler/alarm, write, GitHub call, queue mutation, or pagination.
  • Preserves per-target-revision cardinality and renders reducer-only lanes: Pending, Acknowledgement pending, Completed, Superseded, Requeued, Terminal attention, and fail-closed Unknown. A later re-review remains a separate revision while its earlier revision stays visibly superseded or requeued.
  • Enforces the approved fixed 512 + 1 source cap, 24-card newest round-robin sample, no public cursor, freshness at <=60 seconds, and no partial cards/counts for unavailable, malformed, mixed, stale, or over-cap snapshots. Empty complete remains distinct from Unknown.
  • Redacts operational identifiers, exposes only public target links/revision/safe fact badges/age/provenance, and labels the pre-existing shoreline as transient activity rather than durable lifecycle.
  • Rejects missing githubEffect fields in durable rows so malformed stored projections fail closed to Unknown rather than fabricating a public GitHub-effect badge.

Validation

pnpm run build:repair
pnpm run build:dashboard
pnpm run check:dashboard-queue-boundary
node --test --test-name-pattern="OpenClaw Bay is an unlisted|durable lifecycle Bay" test/dashboard-worker.test.ts  # 4 pass
pnpm run lint:dashboard
pnpm exec oxfmt --check dashboard/exact-review-lifecycle.ts dashboard/exact-review-queue.ts dashboard/worker.ts dashboard/bay-page.ts test/dashboard-worker.test.ts docs/proof/csw-093/run-proof.mjs
bash -n docs/proof/csw-093/run-proof.sh
git diff --check

Real Behavior Proof

  • Current head: adc2bc56090f9560b6c5c4c36421efb73fe1875a. The generated evidence was executed from source commit f05643e215b8026276b3b1b05483437055132d5b; the final head changes only its checked-in generated evidence and has the same proof-tree hash (e1a0719ba50b5991403e32f36cc3da0f9143e47b319d072c0cdadf80f8a0cfc3).
  • Command/environment: controlled Docker-backed Linux Crabbox local-container (mcr.microsoft.com/playwright:v1.60.0-noble, --no-hydrate, --timing-json), final lease cbx_e987e87ac0d9.
  • Observed result: 9 assertions passed. A pure uninitialised Worker GET /api/durable-lifecycle-bay -> DO GET /lifecycle-bay returned fail-closed Unknown with null inventory, lanes, and sample. The next ordinary aggregate-only queue GET to the same disposable DO returned complete: true. The built Bay demo showed the 24-card bounded lifecycle Kanban, then a mixed snapshot as Unknown with no partial cards/counts. Browser capture recorded 13 requests, 0 external requests, and 0 mutation requests.
  • Inspectable current-head evidence: every link below is a direct raw GitHub response, not a blob page.

Populated durable lifecycle Kanban — direct raw image

Fail-closed Unknown lifecycle state — direct raw image

  • Limits: this is controlled synthetic fixture evidence. The ordinary request initializes only the disposable local proof DO; no production Worker/DO, queue, lifecycle, GitHub, R2, deployment, gate, merge, or live-activity state was touched. It does not establish production traffic, latency, or data-volume performance.

Codex review closeout

  • Dirty review: codex review --uncommitted through the local helper after the accepted fixes and after the generated proof refresh; final result clean with no accepted/actionable findings.
  • Branch review: codex review --base origin/main through the local helper. It first identified the missing-githubEffect malformed-row guard and inconsistent proof fixture lane totals; both were fixed, focused proof rerun, and the final branch review was clean with no actionable correctness findings.

Risks and rollout

This is an intentionally fail-closed observer: an incomplete, stale, malformed, mixed, unavailable, or over-cap source shows Unknown rather than misleading partial facts. It introduces no migration, backfill, workflow/gate, inventory, reconciliation, live-activity, or deployment behavior. No live or production rollout was performed.

Relates to #898 and the merged lifecycle foundations #947, #952, #991, and #995.

@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. P2 Normal priority bug or improvement with limited blast radius. merge-risk: 🚨 compatibility 🚨 Merging this PR could break existing users, config, migrations, defaults, or upgrades. merge-risk: 🚨 availability 🚨 Merging this PR could cause crashes, hangs, restart loops, stalls, or process outages. labels Aug 1, 2026
@clawsweeper

clawsweeper Bot commented Aug 1, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 1, 2026, 8:32 AM ET / 12:32 UTC.

ClawSweeper review

What this changes

The PR adds a public OpenClaw Bay lifecycle Kanban that reads a capped, redacted Durable Object projection and presents durable lifecycle lanes separately from transient queue activity.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

This draft PR appears correct and includes sufficient controlled after-fix proof for the dashboard, Worker, and Durable Object path. It remains open for normal maintainer landing review because the intentionally uncached public 512+1-row Durable Object read carries an approved but real availability tradeoff.

Priority: P2
Reviewed head: adc2bc56090f9560b6c5c4c36421efb73fe1875a

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A well-scoped, proof-backed dashboard observer with no concrete patch defect found; the remaining concern is the consciously uncached public read budget.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Prepared screenshots directly show the populated Kanban and fail-closed Unknown state, while the current-head proof record documents a real local Worker/Durable Object route and browser run with redacted, non-mutating output.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): Prepared screenshots directly show the populated Kanban and fail-closed Unknown state, while the current-head proof record documents a real local Worker/Durable Object route and browser run with redacted, non-mutating output.
Evidence reviewed 7 items Repository policy applied: The full target AGENTS.md was read and applied: this is a proposal-only review, and current real-behavior proof plus fresh review are required before landing code-bearing work.
Pure bounded reader: The lifecycle reader executes one capped 512+1-row query and returns Unknown rather than paginating, pruning, or mutating state when storage is unavailable or the public bound is exceeded.
Initialization isolation: The Durable Object handles GET /lifecycle-bay before ordinary initialization and cleanup; all other paths await deferred initialization.
Findings None None.
Security None None.

How this fits together

OpenClaw Bay is the dashboard’s public status view. The Worker forwards a public lifecycle request to the exact-review Durable Object, validates the returned snapshot, and the Bay page renders bounded lifecycle cards or a fail-closed Unknown state.

flowchart LR
  A[Bay dashboard] --> B[Public lifecycle endpoint]
  B --> C[Exact-review Durable Object]
  C --> D[Lifecycle projection rows]
  D --> E[Bounded snapshot validation]
  E --> F[Lifecycle Kanban lanes]
  E --> G[Unknown fail-closed state]
Loading

Before merge

  • Resolve merge risk (P1) - The new unauthenticated endpoint deliberately performs an uncached Durable Object read of up to 512 lifecycle rows plus one cap-detection row; frequent Bay refreshes can increase Durable Object load, although the approved contract fails closed rather than returning partial data.
  • Complete next step (P2) - No discrete repair is supported by the current review; this draft needs normal maintainer consideration of its approved availability tradeoff.
Agent review details

Security

None.

Review metrics

Metric Value Why it matters
Changed surface 16 files; 1,702 additions, 12 deletions The PR combines public API, Durable Object read logic, Bay rendering, focused coverage, and checked-in runtime proof.
Public source cap 512 rows + 1 cap row; 24 cards This is the merge-relevant availability boundary for each uncached lifecycle read.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #898
Summary: This PR is the explicitly described Workstream 5 implementation candidate for the active lifecycle/Bay roadmap.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge-risk options

Maintainer options:

  1. Confirm the public read budget (recommended)
    Review expected Bay refresh volume against the intentionally uncached 512+1 Durable Object read before marking the draft ready and merging.
  2. Pause for a caching redesign
    Keep the PR draft if the approved load budget is no longer acceptable, then design a separately approved bounded cache without weakening fail-closed semantics.

Technical review

Best possible solution:

Keep the bounded fail-closed observer and land it only after a maintainer confirms the approved public read budget remains acceptable for expected Bay traffic.

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

Not applicable as a bug report. The contributor supplies high-confidence after-fix controlled Worker/DO and browser proof, including populated and fail-closed UI states.

Is this the best way to solve the issue?

Yes. The branch uses a narrow read-only projection path, validates it again at the Worker and browser boundaries, and shows Unknown instead of converting incomplete lifecycle data into plausible partial status.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 922ebc673e12.

Labels

Label justifications:

  • P2: This is a bounded public dashboard feature with meaningful but limited operator and availability impact.
  • merge-risk: 🚨 availability: Each Bay refresh reaches the Durable Object for an uncached capped lifecycle query, so traffic volume remains a pre-merge operational consideration.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): Prepared screenshots directly show the populated Kanban and fail-closed Unknown state, while the current-head proof record documents a real local Worker/Durable Object route and browser run with redacted, non-mutating output.
  • proof: sufficient: Contributor real behavior proof is sufficient. Prepared screenshots directly show the populated Kanban and fail-closed Unknown state, while the current-head proof record documents a real local Worker/Durable Object route and browser run with redacted, non-mutating output.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Prepared screenshots directly show the populated Kanban and fail-closed Unknown state, while the current-head proof record documents a real local Worker/Durable Object route and browser run with redacted, non-mutating output.

Evidence

What I checked:

  • Repository policy applied: The full target AGENTS.md was read and applied: this is a proposal-only review, and current real-behavior proof plus fresh review are required before landing code-bearing work. (AGENTS.md:1, 922ebc673e12)
  • Pure bounded reader: The lifecycle reader executes one capped 512+1-row query and returns Unknown rather than paginating, pruning, or mutating state when storage is unavailable or the public bound is exceeded. (dashboard/exact-review-lifecycle.ts:683, adc2bc56090f)
  • Initialization isolation: The Durable Object handles GET /lifecycle-bay before ordinary initialization and cleanup; all other paths await deferred initialization. (dashboard/exact-review-queue.ts:602, adc2bc56090f)
  • Worker fail-closed validation: The public Worker validates the Durable Object response and substitutes an Unknown snapshot for unavailable, malformed, or stale input. (dashboard/worker.ts:1785, adc2bc56090f)
  • Inspectable real behavior proof: Prepared local screenshots show the populated bounded Kanban and a mixed snapshot rendered as Unknown without counts or cards; the checked-in summary records a local Worker/DO route, nine assertions, and no external or mutation requests. (docs/proof/csw-093/artifacts/proof-summary.json:1, adc2bc56090f)
  • Feature-history provenance: Current-main history shows the exact-review lifecycle projection and adjacent telemetry/Bay foundations landed through merged work; the projection originated in the Workstream 2 merge. (dashboard/exact-review-lifecycle.ts:1, b07ab751813c)

Likely related people:

  • brokemac79: The supplied merged-PR context associates this handle with the contributor behind the lifecycle projection, telemetry, and bounded Bay foundations reflected in current history. (role: lifecycle projection and adjacent Bay contributor; confidence: high; commits: b07ab751813c, a80c24ebf2f1, b34789440641; files: dashboard/exact-review-lifecycle.ts, dashboard/exact-review-queue.ts, dashboard/worker.ts)
  • Peter Steinberger: Recent current-main history shows repeated exact-review queue and dashboard maintenance on the same operational surface. (role: recent queue and dashboard contributor; confidence: medium; commits: 60ad8788f545, 3d2a878f6e2a, 1ea41793a8d9; files: dashboard/exact-review-queue.ts, dashboard/worker.ts)

Rank-up moves

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

  • Confirm expected Bay refresh volume is acceptable for the approved uncached 512+1 Durable Object read before changing the PR from draft to ready.

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 (4 earlier review cycles)
  • reviewed 2026-08-01T10:18:40.358Z sha 75ce8b7 :: needs real behavior proof before merge. :: none
  • reviewed 2026-08-01T10:23:23.745Z sha 75ce8b7 :: needs real behavior proof before merge. :: none
  • reviewed 2026-08-01T11:53:38.911Z sha 75ce8b7 :: needs real behavior proof before merge. :: none
  • reviewed 2026-08-01T12:26:38.798Z sha adc2bc5 :: needs maintainer review before merge. :: none

@clawsweeper clawsweeper Bot added the proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. label Aug 1, 2026
@brokemac79

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 1, 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: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot removed the merge-risk: 🚨 compatibility 🚨 Merging this PR could break existing users, config, migrations, defaults, or upgrades. label Aug 1, 2026
@brokemac79
brokemac79 force-pushed the codex/csw-093-ws5-durable-kanban branch from 75ce8b7 to adc2bc5 Compare August 1, 2026 12:04
@brokemac79

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper clawsweeper Bot added proof: sufficient Contributor real behavior proof is sufficient. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Aug 1, 2026
@clawsweeper

clawsweeper Bot commented Aug 1, 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: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@brokemac79
brokemac79 marked this pull request as ready for review August 1, 2026 12:40
@brokemac79
brokemac79 merged commit 83fa433 into main Aug 1, 2026
21 of 23 checks passed
@brokemac79
brokemac79 deleted the codex/csw-093-ws5-durable-kanban branch August 1, 2026 12:40
azaj01 pushed a commit to azaj01/clawsweeper that referenced this pull request Sep 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-risk: 🚨 availability 🚨 Merging this PR could cause crashes, hangs, restart loops, stalls, or process outages. P2 Normal priority bug or improvement with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient Contributor real behavior proof is sufficient. rating: 🐚 platinum hermit Good normal PR readiness with ordinary 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