Repository navigation
refactor(cron): extract prompt executor before context accounting changes - #168718
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. What this changesThis PR moves isolated cron prompt execution into an internal module and removes the obsolete line-count exception. Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored extraction preserves execution behavior, remains distinct from current main, and has no actionable findings; reviewed-head CI is still pending. Priority: P3 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe isolated cron dispatcher receives prepared job and session inputs, executes prompt candidates through CLI or embedded runtimes, and returns results for accounting and delivery. flowchart TD
A[Scheduled job] --> B[Run dispatcher]
B --> C[Prompt executor]
C --> D[Shared execution entry]
D --> E[CLI runtime]
D --> F[Embedded runtime]
E --> G[Accounting and delivery]
F --> G
Technical reviewBest possible solution: Retain the behavior-preserving extraction and complete ordinary reviewed-head validation before human landing. Do we have a high-confidence way to reproduce the issue? This is a mechanical refactor rather than a bug report; source comparison verifies preserved function bodies, and no target code was executed. Is this the best way to solve the issue? The extraction separates orchestration from prompt execution without duplicating policy, changing persistence, or weakening existing lazy runtime boundaries. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 7547acc4896b. Provenance checked
TestingProof path: none. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +9, Other -1. Total +8 across 3 files. Added test files: 0. View PR surface stats
LabelsLabel changes: No label changes. Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (8 earlier review cycles)
Reviewed October 12, 2026, 6:29 PM ET / 22:29 UTC (Revision 9). |
448bd0f to
e345610
Compare
…nges (openclaw#168718) * refactor(cron): extract prompt executor * test(sessions): remove obsolete rewind SQL-count assertions
Problem and solution
Extracts the isolated cron prompt executor from its dispatcher so future context-accounting changes can be reviewed separately from the mechanical move. Cron execution behavior remains unchanged.
The PR targets
maindirectly. It adds no configuration or durable state. The obsolete max-lines baseline entry is removed without adding an exception.Validation
Current head:
b178d180d8897539c870ab2314d9c11f3784cc5c.c3d6aa1aa41a2ae480ce4c05aef4016b92340ad9and refreshes the extraction from that exact source. Both function bodies are byte-identical to main, except the factory's new export keyword. All original import bindings are preserved across the two modules.9d1d84f10f536ebc5710e96a5ef5ca59b8335fa9passed CI run 38220120224: 48 successful jobs, 25 skipped. That is prior-head evidence; the conflict repair's new CI must be assessed separately.Ready for review, not draft. Do not merge automatically.