Repository navigation
refactor(cron): share paired payload field normalization - #146971
Conversation
|
🦞👀 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: needs maintainer review before merge. Reviewed September 13, 2026, 10:57 AM ET / 14:57 UTC (Revision 3). ClawSweeper reviewWhat this changesConsolidates four pairs of scheduled-job payload normalization rules into shared loops and adds tests for partial updates without changing accepted values or clear signals. Merge readiness✅ Ready for maintainer review No actionable defects found. This remains a focused, behavior-preserving cleanup absent from current main; the member-authored, protected PR is not eligible for automatic closure. Priority: P3 Review scores
Verification
How this fits togetherCron payload normalization prepares scheduled-job create and update requests before validation and storage. It trims text, normalizes overrides and limits, and removes fields inappropriate for the selected payload kind. flowchart LR
A[Create or update request] --> B[Copy own payload fields]
B --> C[Normalize paired fields]
C --> D[Infer kind and prune fields]
D --> E[Validate request]
E --> F[Store scheduled job]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource -33, Tests +86. Total +53 across 2 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep the shared field policies in the existing payload normalizer while preserving its own-field boundary and create-versus-patch semantics. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR claims a behavior-preserving refactor, not a bug fix; source comparison supports equivalence, and no local execution was performed. Is this the best way to solve the issue? Yes. Fixed-key loops remove repeated policies at their existing owner without introducing another abstraction or changing the normalization contract. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against fe3b2891fdea. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
|
@clawsweeper re-review Please review exact head |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
Merged via squash.
|
…6971) * refactor(cron): share paired payload field normalization * test(cron): use the canonical NaN property
What Problem This Solves
Cron payload normalization repeats four pairs of identical field policies.
User Impact
No changes to accepted values, clear signals, payload-kind inference or stored payload shape.
Why This Change Was Made
Use four fixed-key loops while retaining field order, the own-property snapshot, separate timeout policies and kind-specific pruning. Production changes: −33 lines; tests: +86 lines.
Evidence
100e0b0cd5e89c6bf0d56f9ce1a8cf10e9d5db77, normal hosted CI attempt 1 and aggregate gate passed. The actual cron test job executed all 79 normalization cases; its complete descriptor passed 835 tests across 57 files. Selected lint, formatting and type checks passed.