Skip to content

chore(workboard): await recreation harness cleanup - #147227

Closed
steipete wants to merge 1 commit into
mainfrom
codex/sqlite-round9-workboard-integration
Closed

steipete wants to merge 1 commit into
mainfrom
codex/sqlite-round9-workboard-integration

Conversation

@steipete

@steipete steipete commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor

Related: #147191, #146976, #146197

What Problem This Solves

The Workboard recreation test does not await its harness cleanup after the upstream worker migration made that cleanup asynchronous.

User Impact

Internal test cleanup now finishes within the test's lifetime. Production behavior is unchanged.

Why This Change Was Made

Await the existing close operation in finally, matching the harness's asynchronous ownership contract and its other callers.

Evidence

  • All three focused deletion tests pass before and after the change; no functional assertion failure is claimed.
  • 173 Workboard store, lifecycle and Doctor tests passed on the worker-integrated tree.
  • Selected local checks and fresh independent P0–P2 review passed. Required exact-head CI passed.

The identical Workboard cleanup landed independently in #147203 at fc1975991f22403d4a8a723c2a27071bbc16d55f; this PR was closed as a duplicate by a maintainer. Its exact reviewed source matches main, and required CI passed on 46d1dadc2fc08da5dd43dd31de6278f543324340. No merge was attempted from this PR.

@clawsweeper

clawsweeper Bot commented Sep 13, 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.

@steipete
steipete marked this pull request as ready for review September 13, 2026 17:30
@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 Sep 13, 2026
@clawsweeper

clawsweeper Bot commented Sep 13, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 13, 2026, 1:38 PM ET / 17:38 UTC.

ClawSweeper review

What this changes

The PR makes the Workboard card-recreation test wait for its SQLite harness cleanup before finishing.

Merge readiness

✅ Ready for maintainer review

This remains a useful, narrowly scoped cleanup on current main. No actionable patch defect was found; the related merged work does not include this follow-up.

Priority: P3
Reviewed head: 46d1dadc2fc08da5dd43dd31de6278f543324340

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, correct lifecycle cleanup with proportional reported validation and no actionable findings.
Proof confidence 🌊 off-meta tidepool Not applicable: The provided MEMBER association exempts this maintainer-authored cleanup from external-contributor runtime proof; no production owner or authority boundary changes. Reported focused tests are supplemental validation.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The provided MEMBER association exempts this maintainer-authored cleanup from external-contributor runtime proof; no production owner or authority boundary changes. Reported focused tests are supplemental validation.
Evidence reviewed 6 items Verified introduced change: The merge-base-to-head diff only adds await to the existing finally-block cleanup; deletion settlement and all assertions remain unchanged.
Cleanup owner contract: The harness asynchronously closes host and operation stores before deleting its directory. The SQLite facade returns a close promise that drains admitted operations and releases its connection and broker.
Current main still needs the change: The recreation test on fetched main still calls harness.close() without awaiting it; the other four concurrent-harness cleanup callers already await it.
Findings None None.
Security None None.

How this fits together

Workboard stores task cards and attachments in worker-backed SQLite connections. Its concurrency test uses two connections to check attachment preservation, then closes both connections and removes the temporary database.

flowchart TD
 A[Card recreation test] --> B[Two SQLite connections]
 B --> C[Pause deletion and recreate card]
 C --> D[Verify new attachments survive]
 D --> E[Await connection cleanup]
 E --> F[Remove temporary database]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests 0. Total 0 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 1 1 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

Review metrics

None.

Technical review

Best possible solution:

Keep asynchronous harness teardown within the test lifetime using the existing close operation.

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

Not applicable to a user-facing bug: source establishes the unawaited cleanup promise, while the PR explicitly reports that functional assertions already pass.

Is this the best way to solve the issue?

Yes. Awaiting the existing cleanup promise is the smallest correction and matches the other harness callers without changing assertions or production code.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against f96fed1a7cc0.

Labels

Label changes:

  • add P3: This is internal test-lifecycle cleanup with no production behavior change.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The provided MEMBER association exempts this maintainer-authored cleanup from external-contributor runtime proof; no production owner or authority boundary changes. Reported focused tests are supplemental validation.

Label justifications:

  • P3: This is internal test-lifecycle cleanup with no production behavior change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The provided MEMBER association exempts this maintainer-authored cleanup from external-contributor runtime proof; no production owner or authority boundary changes. Reported focused tests are supplemental validation.

Evidence

What I checked:

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

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.

@vincentkoc vincentkoc self-assigned this Sep 13, 2026
@vincentkoc

Copy link
Copy Markdown
Member

Appreciate the clean pass on the asynchronous Workboard teardown.

The exact same one-line fix is now on main via #147203 at fc19759. Closing this duplicate and retaining the contribution record here.

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

Labels

maintainer Maintainer-authored PR 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.

2 participants