Repository navigation
fix(workflow): scope comment-only reconciliation - #1040
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 6, 2026, 7:42 AM ET / 11:42 UTC. ClawSweeper reviewWhat this changesThe PR skips broad reconciliation before comment-only apply selection and scopes the later reconciliation to the selected item numbers. Merge readinessKeep open for maintainer handling: the author is a repository member, so this PR is non-closeable under repository policy. The current head resolves the prior release-owned changelog finding and source review found no new actionable defect. Priority: P2 Review scores
Verification
How this fits togetherClawSweeper’s apply workflow reconciles durable review records before it syncs comments or closes eligible items. This patch changes the handoff from apply-trigger selection to reconciliation so comment-only batches do not touch unrelated records. flowchart LR
A[Apply trigger] --> B[Comment-only detection]
B --> C[Bounded item selection]
C --> D[Reconciliation arguments]
D --> E[Durable record reconciliation]
E --> F[Comment synchronization]
Before merge
Agent review detailsSecurityNone. Review metrics
Merge-risk optionsMaintainer options:
Copy recommended automerge instructionTechnical reviewBest possible solution: Retain the shared skip gate and selected-item reconciliation boundary, then land only after current-head workflow validation confirms the same behavior in Actions. Do we have a high-confidence way to reproduce the issue? Yes—source and focused tests provide a high-confidence path: execute the real helper for comment-only, explicit-close, and empty selections, then run scoped reconciliation against fixture records. Is this the best way to solve the issue? Yes—the patch reuses the existing proof skip gate and scopes only comment-only batches, preserving explicit-close and empty-selector behavior without adding configuration. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 0588bda94865. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
454e680 to
69edd98
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
What Problem This Solves
Fixes an issue where comment-only apply runs could perform redundant broad
reconciliation before selecting their bounded item batch, and explicit
comment-only selections were not guaranteed to constrain execution
reconciliation to those items.
Why This Change Was Made
Comment-only schedules, cursor runs, and manual comment-sync runs now share the
existing read-only preselection skip gate. Once the bounded selection exists,
execution reconciliation adds
--only-item-numbersfor every non-emptycomment-only selection.
Explicit close runs remain broadly reconcilable, and an empty selector remains
unscoped. This changes only the internal apply workflow reconciliation path; it
does not change public schemas, status payloads, observer surfaces, or release
publishing.
User Impact
Comment synchronization no longer scans or rewrites unrelated durable records
before or during a selected batch. Normal closure reconciliation behavior is
unchanged.
Evidence
0588bda948653c59a60b65c01d9ff3ce1f780df4found no regressions.git diff --checkpassed.net negative.
CHANGELOG.mdeditwas removed while rebasing onto the exact main SHA above.
Real Behavior Proof
Claim
Every comment-only apply run skips redundant broad preselection
reconciliation. After selection, a non-empty comment-only batch reconciles only
the selected items, while explicit close runs remain broad and an empty
selection remains unscoped.
Exercised surface
The proof executes the real Bash workflow helper, parses the checked-in GitHub
Actions workflow, and runs the compiled reconciliation CLI against filesystem
records and a controlled GitHub CLI fixture.
Scenario or fixture
119890,sync_comments_only=true,sync_open_pr_batch=false.119890,sync_comments_only=false.2closes while open item1and an unrelatedclosed-item plan remain unchanged.
Command and environment
Executed on macOS with Node 26.5.0 from head
69edd98eb250a406d223c211371dc2c822581281, based on0588bda948653c59a60b65c01d9ff3ce1f780df4.Observed result
--item-numbers 119890 --only-item-numbers.--item-numbers 119890without--only-item-numbers.pagesScanned=0, changed only item2, andpreserved unrelated records and sidecars.
read-only proof reconciliation step.
Artifact or trace
The executable assertions are in
test/sweep-workflow.test.tsandtest/reconcile.test.ts; reviewed head is69edd98eb250a406d223c211371dc2c822581281.Limits
heredoc deadlock in an unrelated publication-batching test. The exact changed
surface passed, and fresh Linux CI remains the full gate for this head.