Code Reviews (formerly Clayton) helps you stay up to date with the latest guidance from Salesforce through our seasonal rule releases. This time, we've added 3 new rules to help you with Winter '26 changes, and a further 10 to ensure that you're able to deliver secure, high quality agents with Agentforce.
Winter '26 rules
Update roleAndSubordinates to roleAndSubordinatesInternal
Checks for the roleAndSubordinates group that will be removed.
Dynamic imports for platformResourceLoader (LWCs)
Dynamic import of lightning/platformResourceLoader will fail at runtime. Instead, import the module using an import declaration.
Use template strings rather than string concatenation for dynamic formulas
FormulaBuilder has a template system that should be preferred over the use of concatenation.
Agentforce rules
Excessive number of Agentforce topics
Checks that there aren’t too many topics on a single agent.
Incorrect Agentforce settings
Ensures Agentforce is configured for strong security, actionable feedback, and effective monitoring.
Insufficient length of instructions in Agentforce topic
Checks that there is enough information for Agentforce agents to be effective.
Missing customer verification in Agentforce agent
Detect if an agent has been configured without verifying the user’s identity.
Missing invocation target for Agentforce action
Checks that every invocation target for an Agentforce action exists.
Missing output assignment for Agentforce customer verification
Checks that even once you’re verifying a customer, that you are also using the verification result.
Untested Agentforce action
Checks that all Agentforce actions have tests.
Untested Agentforce agent
Checks that all Agentforce agents have tests.
Untested Agentforce topic
Checks that all your Agentforce topics are tested.
Use of deprecated Agentforce secure actions
Detect if an agentforce agent uses deprecated actions
How to start using these rules
If you're a Code Reviews customer, you can find them in the 'Updates' section of your the app (https://app.clayton.io/store). If you're not yet a customer, reach out to our team via the in-app chat to get started!
Please don't hesitate to reach out our support team if you have any questions about this article.
