STATIC VERIFICATION OF GOVERNOR LIMIT COMPLIANCE IN SALESFORCE APEX CODE BEFORE DEPLOYMENT
This article proposes a method for the static verification of governor limit compliance in Salesforce Apex code, performed before deployment rather than during execution. The method constructs the call graph and the control flow graph of the analysed code, annotates every platform operation with a resource cost vector, derives the iteration multiplicity of each statement from the bounds of the enclosing loops, and computes a sound upper bound on the consumption of every governed resource for each entry point. A verification condition comparing the computed bound with the platform ceiling yields one of three verdicts: a compliance certificate, a violation report with the critical path, or an explicit statement that the fragment cannot be verified. In contrast to the lint rules and path-based rules available in existing tooling, which report the presence of a risky construction without quantifying its cost, the proposed method produces a numeric bound that accumulates across method boundaries and across the whole handler pipeline. The method additionally verifies the architectural precondition of the authors’ previously published data access centralization methodology, namely the absence of data operations inside business handlers, which converts that precondition from a convention into a checkable property. Analysis of characteristic Apex code patterns demonstrates that the computed bounds coincide with the exact consumption for straight-line and bulk-iterating code and remain conservative for conditional branching.
Authors
- Ігор Андрущак (ORCID: https://orcid.org/0000-0002-8751-4420)
- Heorhii Bandach (ORCID: https://orcid.org/0009-0005-7274-0440)
Institutions
- Lutsk National Technical University (UA)
Publication Details
- Journal
- International Science Journal of Engineering & Agriculture
- Published
- 2026-12-01
- DOI
- https://doi.org/10.46299/j.isjea.20260506.05
- Primary Topic
- Logic, programming, and type systems
- Type
- article
- Field-Weighted Citation Impact
- 0.00