Repository navigation
chore(workboard): stop exporting MAX_COMPLETION_CLAIMS - #198672
Conversation
The constant is only used inside store-evidence.ts; the unused export fails the dead-export check on main (introduced by #197471).
|
🦞👀 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 Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex review: needs maintainer review before merge. What this changesThis PR makes Workboard’s four-claim limit private to its evidence module. Example: A worker completes a Workboard card with five claims.
Review scores
ProductKind: Maintenance · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open for landing: it removes an unused private export with no runtime change, and I found no actionable defects. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherWorkboard’s completion workflow passes worker claims into the evidence module, which validates and constructs evidence records for card storage. flowchart LR
A[Worker completion] --> B[Workboard workflow]
B --> C[Evidence validation]
D[Private four claim limit] --> C
C --> E[Card evidence records]
Technical reviewBest possible solution: Land the export-only removal while retaining the existing four-claim validation. Do we have a high-confidence way to reproduce the issue? Source confirms an exported constant with only internal consumers and an existing unused-export gate; the reported scanner failure was not rerun under the read-only review constraints. Is this the best way to solve the issue? Removing the export keyword is the smallest complete fix: it preserves the validation owner, value, consumers, and error behavior without adding suppressions or machinery. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 622d5728e925. Provenance checked
SecurityNone. EvidenceWhat I checked:
PR surfaceSource 0. Total 0 across 1 file. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel 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 Reviewed November 14, 2026, 12:30 AM ET / 05:30 UTC. |
The constant is only used inside store-evidence.ts; the unused export fails the dead-export check on main (introduced by openclaw#197471).
What Problem This Solves
check:changedon main reports an unused export:MAX_COMPLETION_CLAIMSinextensions/workboard/src/store-evidence.ts, introduced by #197471. Perf lanes 2458 and 2477 both hit it as an inherited failure.Why This Change Was Made
The constant is only used inside
store-evidence.ts, so the export is dropped. No behavior change.User Impact
None. Main's dead-export check goes green for this file.
Evidence
git grep MAX_COMPLETION_CLAIMSshows only in-file uses.