Skip to content

chore(workboard): stop exporting MAX_COMPLETION_CLAIMS - #198672

Merged
steipete merged 1 commit into
mainfrom
steipete/drop-unused-max-completion-claims
Nov 14, 2026
Merged

steipete merged 1 commit into
mainfrom
steipete/drop-unused-max-completion-claims

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

check:changed on main reports an unused export: MAX_COMPLETION_CLAIMS in extensions/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_CLAIMS shows only in-file uses.
  • oxlint is clean on the file.

The constant is only used inside store-evidence.ts; the unused export
fails the dead-export check on main (introduced by #197471).
@clawsweeper

clawsweeper Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-14T05:18:35.808397Z a3a51a2 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@steipete
steipete enabled auto-merge (squash) November 14, 2026 05:16
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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. labels Nov 14, 2026
@clawsweeper

clawsweeper Bot commented Nov 14, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR makes Workboard’s four-claim limit private to its evidence module.

Example: A worker completes a Workboard card with five claims.

  • Before: Completion rejects the claims because the limit is four.
  • After: Completion rejects the claims identically; only the unused module export disappears.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A minimal, source-verified cleanup supported by passing relevant exact-head checks; broader CI remains pending.
Proof confidence 🐚 platinum hermit (4/6) This internal export cleanup changes no shipped user behavior and requires no shipped-entry-point demonstration.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Maintenance · Worth it: Yes · Fix scope: Complete
User problem: The unused export causes avoidable failures in developer validation.
Reason: The change removes unnecessary private surface without altering the product contract.

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
Reviewed head: a3a51a26fff7f5fe897de65d2c468ff29f333100

Before merge

None.

Findings

None.

Agent review details

How this fits together

Workboard’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]
Loading

Technical review

Best 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

  • Workboard completion-claim limit keeps the original intent (c1ca2d7: Optional completion evidence was bounded to preserve existing completion behavior and card budgets.)

Security

None.

Evidence

What I checked:

PR surface

Source 0. Total 0 across 1 file. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 1 1 1 0
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 1 1 0

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add P3: A focused dead-export cleanup with no user-visible behavior change.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: A focused dead-export cleanup with no user-visible behavior change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 14, 2026, 12:30 AM ET / 05:30 UTC.

@steipete
steipete merged commit 9bbc89c into main Nov 14, 2026
104 of 105 checks passed
@steipete
steipete deleted the steipete/drop-unused-max-completion-claims branch November 14, 2026 05:43
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 15, 2026
The constant is only used inside store-evidence.ts; the unused export
fails the dead-export check on main (introduced by openclaw#197471).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. plugin: workboard rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS 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