Repository navigation
fix(templates): capture cron inference authority during Add - #196383
Patrick-Erichsen merged 3 commits into
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 changesTemplate Add captures the scheduler’s existing inference and creator authority before creating jobs and preserves expected ownership during reconciliation. Example: Paired operator A adds a Template containing a disabled daily automation, and operator B later runs it.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this PR repairs a current Template scheduling gap, and review found no actionable introduced defect. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherGateway Template Add converts reviewed Template declarations into ordinary scheduler jobs; existing account and operator authority owners supply private metadata that the scheduler persists and restores before execution. flowchart TD
A[Authenticated Template Add] --> B[Template cron adapter]
B --> C[Native creator and inference capture]
C --> D[Guarded scheduler commit]
D --> E[Existing SQLite job store]
E --> F[Creator authority restoration]
F --> G[Provider and tool execution]
Technical reviewBest possible solution: Use the native scheduler’s existing capture, persistence and revocation owners, retaining operation-local expected ownership for safe reconciliation. Do we have a high-confidence way to reproduce the issue? Current-main source exposes the missing capture path, and supplied before/after Gateway evidence identifies absent paired-source persistence; no target code was executed during this review. Is this the best way to solve the issue? The patch is a focused repair: it connects Template Add to existing authority owners, preserves authored job inputs, and handles captured ownership without introducing a competing scheduler or persistent store. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 869bbccf8fb8. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +64, Tests +540, Other +5. Total +609 across 11 files. Added test files: 1. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. 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 (6 earlier review cycles)
Reviewed November 10, 2026, 11:00 PM ET / November 11, 2026, 04:00 UTC (Revision 7). |
f70d8c2 to
579a90d
Compare
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
579a90d to
f04dfe7
Compare
cce9bc2 to
165d101
Compare
165d101 to
beea32d
Compare
beea32d to
30ffd2b
Compare
f2b93ba to
87e975b
Compare
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
Capture the native profile owner before scheduler creation in the internal Add receipt, compare that expected ownership during matching, and require captured evidence for lost-reply reconciliation. Keep authored automation inputs unchanged. Cover authenticated enabled and paused heartbeat scratch, lost replies, owned and unowned transfers, unchanged and transferred rollback, foreign personal account denial, and retained source revocation.
Request independent source capture only from authenticated Gateway Template Add. Reuse native cron capture, currentness and disposal; keep ordinary cron and no-client embedded behavior unchanged. Extend the existing native source regression to paired devices and supply real admitted-client facts in direct fixtures. Allocate exactly 63 net test lines without changing the shared ceiling scalar.
What Problem This Solves
Create Template schedules through the shared cron adapter with native creator authority and live commit guards. Capture expected ownership before creation, retain paired-source revocation, and dispose captured authority on every outcome.
Evidence
Current layer:
4bc02b2b6cda4502756a3e4c46d42f0e42bbd75d. Full atomic candidate:db3969bece945c1bd54489c8c142071b6046d8f8. One fixture-only stability repair is carried at bottom; all seven upper patches and41commit subjects/order are unchanged. No full-main refresh.Landing and rollout
Land all eight layers atomically through the tip after exact-head gates permit. Preserve historical template-contract-194b7bea exactly. Seven unchanged upper patches retain their qualified reviews; bottom receives fresh review after final publication.
ClawHub #4502, Competitor Watch #22 and Activity #197058 are merged. Consumer release, manual backend cutover, new registry publication and live Gateway changes remain separate.