Repository navigation
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. |
Security-sensitive guard clearedCurrent revision: This PR no longer changes files in the maintainer security-review tier. Separate CODEOWNERS requirements still apply to security policy and enforcement files. |
7560c4d to
84fda73
Compare
d67f543 to
375b9e3
Compare
375b9e3 to
12125c8
Compare
12125c8 to
f4e982c
Compare
|
Codex review: needs real behavior proof before merge. Reviewed September 28, 2026, 5:06 PM ET / 21:06 UTC. ClawSweeper reviewWhat this changesFor scheduled Agents API turns, the branch ignores the job’s saved tool list at harness dispatch, documents the exception, and rejects Gateway-pinned execution. Merge readiness⛔ Blocked before merge - 10 items remain Keep this PR open. Current main still rejects restricted Agents API cron attempts, but the proposed exception bypasses the documented creator-approved tool cap. That security boundary and the lack of final-effect proof block merge. Priority: P0 Review scores
Verification
How this fits togetherThe cron scheduler stores a job’s approved tool list and passes it to the selected agent harness. The harness prepares Gateway tools and, for Agents API, an OpenAI-hosted session that can perform native actions. flowchart LR
A[Job creator] --> B[Stored cron tool cap]
B --> C[Scheduler admission]
C --> D{Selected harness}
D --> E[Gateway tool policy]
D --> F[Agents API native tools]
E --> G[Tool actions]
F --> G
Decision needed
Why: The branch deliberately changes the meaning of persisted job authority, so source review cannot authorize that security and upgrade tradeoff. Before merge
Findings
Agent review detailsSecurityNeeds attention: Clearing a creator-approved cron cap before native tool preparation can grant a restricted job shell, file, and search actions. PR surfaceSource +12, Docs +19. Total +31 across 5 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep creator-approved cron caps authoritative through final Gateway and native effects; give unsupported Agents API jobs a clear reauthorization path and prove allowed, forbidden, and Gateway-pinned cases. Do we have a high-confidence way to reproduce the issue? Yes, source gives a clear path: an Agents API cron attempt with a saved read-only or empty cap is rejected on main, while this branch clears that cap before harness preflight. No live run was supplied or executed in this read-only review. Is this the best way to solve the issue? No. Ignoring every saved list changes creator-approved authority; a cap-preserving rejection with actionable reauthorization is safer unless maintainers approve and prove a narrower exception. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 5c3d2ee89723. LabelsLabel changes:
Label justifications:
EvidenceSecurity concerns:
What I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
This pull request has been automatically marked as stale due to inactivity. |
Why
Agents API cron turns can fail before inference because the saved Gateway tool list does not include the native shell, file, and search tools. Agents API cannot enforce that per-job list across its native tool surface. The fix belongs to its harness, without changing cron behavior for other backends.
What changed
Agents API declares that its cron attempts use current agent tool policy. Shared harness dispatch consumes that declaration after choosing the actual backend and removes only
toolsAllowfrom a copy of that attempt, before policy checks, host capabilities, and tool authority are prepared. Other backends and fallback attempts retain their original parameters.Current configured restrictions, disabled tools, execution restrictions, and scheduled ownership remain enforced. Agents API still rejects a Gateway-only execution pin that its native shell cannot honor.
There are no changes to the cron service, job creation, stored job data, automation tools, or message grants. Cron continues to capture/store lists normally; Agents API ignores them at harness dispatch. Earlier scheduler checks still apply, so this addresses the reported native preflight failure rather than removing every upstream use of a cron list.
Validation
pnpm tsgo:core,pnpm tsgo:extensions, andgit diff HEAD^ HEAD --check: passed.