Repository navigation
test(scheduler): preserve ambiguous post-sync activity - #903
Conversation
|
@clawsweeper review |
|
🦞👀 Command router queued. I will update this comment with the next step. |
|
Codex review: needs maintainer review before merge. Reviewed July 29, 2026, 12:23 PM ET / 16:23 UTC. ClawSweeper reviewWhat this changesThe PR replaces narrow scheduler-policy assertions with coverage that keeps updates one through five seconds after either recorded synchronization timestamp due for review. Merge readinessKeep this PR open for normal maintainer merge review. The visible branch is a focused scheduler-policy regression guard, the supplied built-artifact terminal transcript directly exercises all ten post-sync cases, and no discrete correctness or security defect is evident in the provided patch context. Priority: P3 Review scores
Verification
How this fits togetherClawSweeper’s scheduler compares GitHub item activity with durable review metadata to decide whether an item should be reviewed again. Its decision feeds the sweep workflow, so conservative handling prevents a potentially human-authored update from being hidden as synchronization churn. flowchart LR
A[GitHub item update] --> C[Scheduler policy]
B[Review record sync times] --> C
C --> D[Due for review decision]
D --> E[Sweep workflow]
E --> F[Updated review result]
Before merge
Agent review detailsSecurityNone. Review metrics
Technical reviewBest possible solution: Keep the existing no-grace scheduler behavior and land this narrow regression coverage, while reserving any future delayed-self-update suppression for a durable exact-operation receipt through #898. Do we have a high-confidence way to reproduce the issue? Not applicable as a standalone issue reproduction: this PR adds regression coverage for an existing scheduler policy. Its supplied terminal proof directly invokes the built policy for the ten intended timestamp cases. Is this the best way to solve the issue? Yes. Preserving the current conservative behavior and testing both synchronization timestamps is the narrow maintainable solution; attempting to suppress ambiguous delayed updates would require the durable provenance work tracked in #898. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 1889fd334cb8. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles)
|
f667ed8 to
1889fd3
Compare
|
@clawsweeper re-review |
|
🦞🧹 Reason: re-review requires an open issue or PR. |
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review |
1 similar comment
|
@clawsweeper re-review |
Summary
Rebase CSW-071 scheduler reconciliation onto current
mainand lock in the safe ambiguity-preserving rule: activity one through five seconds after a comment or label synchronization remains due for review.Problem
The original proposal suppressed every
updated_atvalue in a five-second window after ClawSweeper synchronization. That is unsafe when human users and agents share the same GitHub identity: GitHub actor data cannot distinguish the automation write from a genuine nearby update.Implementation
mainruntime behavior; this PR deliberately adds no timestamp grace.reviewCommentSyncedAtandlabelsSyncedAt.Validation
Executed from head
e570452dbfa5392d38c94234c4519eb7fc5de59b:Build passed. The focused scheduler suite passed 14/14. Formatting and diff checks passed. The Docker-backed Crabbox proof passed with exit 0.
Real Behavior Proof
dist/scheduler-policy.jsartifact inside a Docker-backed Crabbox Linux container.mcr.microsoft.com/playwright:v1.60.0-noble, leasecbx_ccbe68bdce7a; the ephemeral proof script installed dependencies with Corepack, ranpnpm run build:all, then invoked the built module directly. No GitHub credential, queue, state, workflow, or live-fixture mutation.CSW071_SAFE_AMBIGUOUS_DUE;CSW071_CRABBOX_PROOF_PASS cases=10; exit 0.local-container, leasecbx_ccbe68bdce7a, synced worktreee570452dbfa5392d38c94234c4519eb7fc5de59b, build 3.516s, policy proof 26ms, total 20.549s.Redacted terminal transcript from the successful built-artifact run:
The one-shot Docker lease stopped automatically after this read-only proof; no public log URL exists.
Codex review closeout
codex review --uncommitted— clean; no accepted/actionable findings.git fetch origin main --prune && codex review --base origin/main— clean; no accepted/actionable findings.Scope and future work
This PR is a focused scheduler regression guard. It does not add durable operation provenance, alter canonical record schema/transport, or modify publication/lifecycle behavior. A future attempt to suppress delayed self-updates must be based on a durable exact-operation receipt and coordinated through the maintainer-owned lifecycle work in #898.