Repository navigation
refactor: import dashboard and planning presentation directly - #1907
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThis PR replaces injected dashboard and planning presentation helpers with direct imports while preserving retry-state loading. Example: Display cadence coverage for 8 current items out of 10.
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it is a useful, scoped refactor that current main does not implement, and source review found no actionable regression. Priority: P3 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe CLI combines saved review reports, repository snapshots and retry state into audit statistics and Markdown dashboards. flowchart LR
A[Saved review reports] --> C[Audit owner]
B[Retry state] --> D[Retry overlay owner]
D --> C
C --> E[Presentation imports]
E --> F[Markdown dashboard]
Technical reviewBest possible solution: Retain the focused direct-import cutover with unchanged dashboard output, retry-state loading and selection behavior. Do we have a high-confidence way to reproduce the issue? No runtime bug is claimed; source inspection confirms the presentation factory indirection remains on current main. Is this the best way to solve the issue? Direct imports fit these unchanged pure helpers, the located callers are migrated, and retry-state I/O retains its existing owner. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 0fc6d572bc2a. Provenance checked
TestingProof path: unit tests only. SecurityNone. EvidenceWhat I checked:
Likely related people:
Review metrics
LabelsLabel changes: No label changes. Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReviewed October 10, 2026, 12:03 PM ET / 16:03 UTC (Revision 3). |
4815a53 to
0ce6a13
Compare
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
0ce6a13 to
282480f
Compare
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
Current main-based head
Current head:
282480fb9b21d398a1d6d182ee21ba22d9bcdc9d. Rebased directly ontoorigin/mainat0fc6d572bc(the squash merge of #1905), usinggit rebase --onto origin/main 271e40eec00ed12dc45ee5e91a3ac3a45b84de74. The rebase applied cleanly, carries only this slice's one commit, and adds no adapters.Current-head validation and real behavior proof
Pueue 1723,
bash handoffs/clawsweeper-row3/rebase-main-1906-1907.sh, completed successfully; full output inspected withpueue log 1723 --full:pnpm run build:allfor the immutable baseline and this exact candidate head.pnpm run lintandpnpm run format:checkpassed. The unchanged scheduler duplicate-candidate proof also passed; the focused tests include the audit memory regression.slice6-proof/passed 16/16 identical before/after cases, unchanged fixtures and assertions, against immutable baseline75d3a7d2a2339171d31ec1f158e9399f673091b7.Current build manifests, raw outputs, request traces and comparison summary:
handoffs/clawsweeper-row3/rebase-main-1907-proof/. The claim, exercised CLI scenarios, normalization and limits are the same as the original proof below; this replay supersedes its candidate SHA. Native macOS arm64 / Node 24.21.0, controlled executable gh / filesystem fixtures (plus loopback HTTP for the comment proof), no live GitHub/Worker mutation. No merge or deployment.What Problem This Solves
Row 3, narrowed slice 6: dashboard rendering and planning activity presentation still receive copies of pure formatting, policy, and link functions through factories.
Based directly on
main; predecessor #1905 is already squash-merged. Independent of the comment-owner PR #1906.User Impact
No intended dashboard, planning, audit, schema, or stored-format change.
Why This Change Was Made
Remove
createDashboardPresentationand import pure dashboard/cadence/activity operations directly. Update every affected production and test caller. The existing planning-dashboard factory now owns only the retry-state overlay and its existing test wrapper.Explicit scope decision: the lead deferred the selection-policy cutover. Inventory, hot intake, selection, their dependency seams and current runnable selection proofs remain unchanged. The later cutover first needs real-behavior tests covering the existing proof assertions. No new fixture infrastructure was added to this PR. Audit/status run ownership and report loading/retention are unchanged.
Diff against the stack base: 561 added / 697 removed = 136 net lines removed.
git diff -w --stat: 182 added / 318 removed, 500 changed lines across 19 files.OpenClaw Bay Impact
None. Public observer data, Worker routes, schemas and UI remain unchanged. This is an internal Markdown presentation composition change.
Documentation Impact
The existing dashboard/status contract remains accurate; added a changelog fragment and updated the Row-3 plan with the deferred selection work. Only these frozen proof drivers receive mechanical import/call migration:
docs/proof/forged-evidence-fields/run-proof.mjsdocs/proof/forged-rating-lists/run-proof.mjsdocs/proof/review-next-step-intent/replay.mjsTheir fixtures, assertions and narratives are unchanged. Historical baseline arms retain their original factory calls.
scheduler-duplicate-candidate-stranding/run-proof.mjs, aggregate-review-recovery, hydration-watermarks and pr-read-model-kind drivers remain unchanged and runnable with current code.Original Behavior Proof (historical; current-head replay above)
Claim: the shipped CLI produces identical plan/audit/dashboard output, request ordering and report-read behavior after the pure-presentation import cutover.
Before:
75d3a7d2a2339171d31ec1f158e9399f673091b7(same runtime as the repaired stack base; its later change is test-only). After:4815a538f1c1275e4b52ea23e6d17fe0229e159e.Environment: native macOS arm64, Node 24.21.0; freshly built CLI in copied isolated roots, real report/retry-state files, executable gh fixtures and fixed wall clock. No live GitHub/Worker mutation.
Pueue 1702 passed 16/16 identical before/after comparisons: explicit, scanned and hot planning; complete, strict and truncated audit for both repositories; default multi-profile dashboard; and ClawHub → OpenClaw → ClawHub dashboard routing. Compared complete stdout/stderr, structured results, Markdown, ordered gh requests, and actual filesystem read/list order and bytes. Only temporary root paths are normalized; raw outputs remain.
Receipts, build/input manifests and traces:
handoffs/clawsweeper-row3/slice6-proof/comparison-3/.Limits: controlled process/filesystem proof, not live permissions or an asymptotic memory proof. No reader/loading/retention changes, so the full ~80k corpus gate is not triggered. The existing 2,048-report/64 MiB memory regression also passes.
Original Evidence (historical)
codex review --base origin/mainfound no actionable regressions. Model-catalog refresh warnings did not prevent completion.