Repository navigation
fix(cron): repair channel-owner tool reauthorization - #198707
vincentkoc wants to merge 1 commit 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: blocked before merge. What this changesThis PR preserves authenticated external channel origin when an owner reauthorizes an automation through a management grant. Example: A Telegram owner resaves toolsAllow=["read"] on an account-bound automation using account work.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Blocked before merge - 1 item remains Keep this maintainer-authored draft open: it repairs a current cron failure, and no introduced code defect was found; the same production fix already appears in #186833. Priority: P1 Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherAuthenticated owner turns mint management grants; Gateway cron handlers consume those grants and persist provenance that scheduled execution uses to resolve the creator's channel account. flowchart LR
A[Authenticated owner turn] --> B[Management grant]
B --> C[Gateway cron update]
C --> D[Persisted job provenance]
D --> E[Scheduled account admission]
E --> F[Agent execution]
Technical reviewBest possible solution: Consolidate the shared origin-propagation fix and this recovery regression with #186833, preserving its contributor credit. Do we have a high-confidence way to reproduce the issue? Current-main source establishes the omitted-origin path, and #186833 independently records the corresponding Telegram failure; this review ran no target code. Is this the best way to solve the issue? Preserving normalized origin at the existing grant owner is the smallest complete repair: it enables the existing persistence path without inferring authority from delivery routes or widening creator-grant qualification. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 569bf22dba45. Provenance checked
TestingProof path: none. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource 0, Tests +106. Total +106 across 3 files. Added test files: 0. 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. Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. 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 Reviewed November 14, 2026, 1:41 AM ET / 06:41 UTC. |
|
|
Superseded by #186833 from @fransqaas. The production fix matched; the additional regression coverage is now preserved there in commit |
What Problem This Solves
Account-scoped automations can remain unavailable after their owner resaves an unchanged tool cap from a Telegram turn.
User Impact
Fresh owner edits preserve the channel provenance needed to resolve the scheduled account. Affected automations need a fresh owner edit after this fix is installed.
Why This Change Was Made
Retain the normalized external origin from an already validated management grant. Grant admission, run and lifecycle checks, job ownership, and tool caps are unchanged; unknown origins remain omitted.
Evidence
5a2fa540ff7986b67f225ab3504f24fd7580d0ce. Build artifacts, production/test type checks, and core lint passed.3256fe14aaee0e8865fb67f2bd1d236f40ea8139to the PR head (P0–P2 scope).