executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
salesforce-rate-limitsAnalyze and govern Salesforce API, asynchronous, bulk, and event capacity from current org allocations and usage evidence. Use when preventing or resolving exhaustion. Trigger with "govern Salesforce limits".
Independent GitHub snapshot · Automated classification · Original documentation governs
Treat limits as shared, time-varying org contracts and allocate headroom across integrations without publishing fixed universal thresholds.
Use Read, Glob, and Grep to inspect approved repository and evidence files, WebFetch to re-check current first-party Salesforce documentation, and Write or Edit only for secretless plans, fixtures, configuration, and redacted receipts.
The versioned Limits REST resource returns maximum and remaining allocations and can lag consumption by up to five minutes. Sforce-Limit-Info reports REST API usage; names, allocations, windows, grace behavior, and entitlements vary by org, edition, license, API version, and workload.
Use an approved read-only principal with the permission required to view limits. Do not expose tokens, org identifiers, or unrelated allocation details in public metrics or receipts.
Do not consume production capacity for testing, raise concurrency, defer critical work, purchase capacity, or disable peer integrations without accountable owners.
Return the dated allocation snapshot, workload budget, scenarios, safety margin, controls, alerts, deferred-work ledger, and review owner.
| Condition | Response |
|---|---|
| Limits values change between reads | Use timestamps and the documented measurement lag; avoid rapid concurrent reads as a consistency oracle. |
| Hard allocation is exhausted | Stop admission and reconcile pending work; exponential backoff alone cannot create capacity. |
| Workload ownership is unknown | Do not assign it shared capacity until an owner and priority are established. |
A redacted completion receipt might look like this:
org=production; resources=rest+bulk+events; snapshot=dated; margin=owner-approved; admission=active; deferred=42; blind-retry=off
Run the workflow first in the lowest-risk authorized org and preserve its redacted receipt. Schedule a review against the next Salesforce seasonal release and the customer change calendar.