Repository navigation
fix: restore scheduled reads for creator accounts - #150278
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. Reviewed September 17, 2026, 1:09 AM ET / 05:09 UTC (Revision 10). ClawSweeper reviewWhat this changesRestores scheduled channel reads using the creator’s recorded account and origin across tool discovery, credential selection, and Gateway dispatch. Merge readiness⛔ Blocked before merge - 1 item remains This remains useful work missing from current main. No actionable patch defect was found; the earlier legacy-job concern is addressed by explicit maintainer-authored documentation and retained recovery evidence. Priority: P2 Review scores
Verification
How this fits togetherScheduled agent turns invoke the shared message tool without an inbound conversation. The scheduler’s live permission grant supplies creator identity, while channel plugins enforce access and return provider data. flowchart LR
A[Authenticated creator] --> B[Stored automation and tool cap]
B --> C[Live scheduled occurrence]
C --> D[Creator account selection]
D --> E[Account and origin checks]
E --> F[Channel access and provider request]
F --> G[Recheck authority and return data]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +119, Tests +550, Docs +8. Total +677 across 19 files. View PR surface stats
Review metricsNone. Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Use the existing live occurrence grant for creator-scoped reads, retaining delegated provider restrictions and the documented, demonstrated reauthorization path for legacy jobs. Do we have a high-confidence way to reproduce the issue? Yes, from source: current main excludes account policies from scheduled message-grant issuance, leaving official-plugin reads without the required context. This review did not execute a reproduction. Is this the best way to solve the issue? Yes. The patch extends the existing scheduler authority and account-selection owners, preserves provider restrictions, and supplies a demonstrated recovery path without adding a public configuration or SDK contract. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 92fdb4bfe91e. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (9 earlier review cycles; latest 8 shown)
|
e11ccea to
6ff0de6
Compare
6ff0de6 to
2c85b0f
Compare
2c85b0f to
4ce184f
Compare
4ce184f to
3dcd846
Compare
3dcd846 to
0b628f7
Compare
|
Fixed: account-created automations read supported channel data using their recorded creator account. |
Account-created automations can read supported channel data using their recorded creator account. Discovery and execution preserve account selection, recorded origin, provider restrictions, and live job authority.
What Problem This Solves
An automation created by an authenticated agent turn can retain permission to use
messagebut fail to read channel messages when it runs later without an inbound conversation. This builds on the scheduled lifetime boundary in #150166 and enables account-created reads using the creator identity already recorded on the job.An omitted account also needs a stable meaning. Following the provider's current default can select a different account after configuration changes, even though the job still belongs to its original creator.
User Impact
Account-created scheduled turns can perform supported reads allowed by their recorded creator account and provider policy. Discovery uses that account's available actions and schema. When a read omits
accountId, the message tool and Gateway select the saved creator account before resolving credentials or making provider requests.A different account remains denied. Jobs created in an external channel stay restricted to that provider. Missing or unknown creator origin cannot authorize these reads; older jobs require recreation or explicit reauthorization from an authenticated creator turn. Current tool policy, provider action and destination restrictions, job withdrawal, and caller/plugin revocation continue to apply. Delivery settings do not grant access.
Why This Change Was Made
The scheduler already records account ownership and creator origin. This consumer uses those facts through the existing private grant and live occurrence owner. Canonical permission comparisons include creator origin so changing it revokes the active occurrence, while explicitly bounded tool lists retain the authenticated provenance needed by later runs.
Account selection reaches discovery, credential preparation, and provider dispatch together. The change preserves configuration, storage schemas, plugin capability declarations, and delegated read restrictions.
Evidence
The real CLI and embedded scheduler paths pass with authenticated
automations.addand actualcron.run. They omitaccountId, use distinct creator/default credentials and opposite action flags, and verify both the advertised schema and provider requests select the creator account. Focused discovery, Gateway, dispatch, receipt/policy, revocation and registry checks pass; independent review found no actionable code defects.A retained remote recovery control on
6ff0de6c4cf0exercises the unchanged authenticated MCP creator path with synthetic Discord transport. It loads an older stored account job without proven origin, observes denial, explicitly reauthorizes that same job, and verifies the next scheduled read:CI passes on
0b628f7ae48. The exact-head review rates overall readiness, proof, and patch quality Platinum with no actionable findings. The integration preserves this account change and the SDK implementation landed in #150182. Account production matches the reviewed combined version used by the retained eight-case integration run; focused review also verifies the later test-import merge preserves both sets of assertions.A fresh CLI and embedded runtime bridge passes all four operator/account journeys on this PR composed with main
9a4468148bc. The tested tree6011f69f78bpreserves the selected model, advertised action schema, creator credentials, provider results, and run completion. The tested source was unchanged, and the Testbox lease was released. Stopping that lease cancelled its carrier workflow after the test commands had exited successfully.