Responsibility and boundaries
AI guardrails: clear rules, systematic testing
Guardrails define which tasks AI may perform, which data it may use and how results are checked. They include technical controls, systematic testing and clear responsibilities.
What guardrails mean in everyday work
A team should know which tools are approved, which information it may enter and when expert approval is needed. Access rights and limits on autonomous actions are part of this. Without these rules, confidential data may reach unsuitable tools or incorrect results may be used in further work.
Checks must suit the task. An internal draft needs different controls from an application that processes customer data or initiates payments. Responsibility also means deciding when work must stop or be handed over to the person in charge.
In coding, AI also supports quality assurance
At Envision, we use systematic testing in software development and involve AI in this work. It can suggest test cases, write test code, run checks and help analyse failures. This requires suitable tools and the necessary, limited permissions.
Anthropic recommends giving coding agents verifiable criteria and checks they can run. This allows changes to be refined based on actual results. A statement such as “it works now” is not sufficient evidence. Source: Anthropic, Claude Code best practices.
What we can test systematically
Different applications need different checks. For a form handling protected customer data, a test plan could look like this:
- Individual rules: Are valid inputs accepted and invalid values rejected with a clear explanation?
- Integration: Is data stored correctly and transferred between the systems involved?
- Complete workflows: Does the journey from filling in the form to receiving confirmation work, including on a smartphone?
- Error cases and permissions: What happens if the connection fails? Does other customers’ data remain inaccessible?
- Existing features: Do established workflows still work after the change?
These repeatable checks can be automated and run again when changes are made. Security checks belong within the development process. This principle is also described in the NIST Secure Software Development Framework.
AI-generated tests also need review
A test is only useful if it checks the right behaviour. Expected results should therefore follow from the agreed requirements. If the program and its tests are built on the same incorrect assumption, they may agree with each other while still missing the actual need.
An additional AI review can provide further insights. It can also overlook errors or suggest incorrect fixes. GitHub therefore recommends complementing AI reviews with human review and testing proposed code. Source: GitHub, responsible use of Copilot.
Clear system boundaries in live operations
When AI works with real customer data and systems, it needs a technically restricted operating scope. A sandbox can also isolate code in production. Access to connected systems needs additional controls within those systems.
- Permissions: Grant access only to necessary data and functions. Authorise reading, editing, sending and deleting separately.
- Approvals: AI may prepare a payment, for example. Execution requires approval from an authorised person.
- Operational limits: Cap spending, transaction volumes and requests. Block actions outside the permitted scope.
- Monitoring and intervention: Record actions, flag unusual activity and make access easy to revoke. Plan recovery for changes; sent messages, for example, cannot reliably be recalled.
These boundaries must hold even when AI makes a wrong decision. Written instructions alone do not provide this protection. OWASP recommends enforcing permissions in connected systems and requiring approval for high-impact actions. Source: OWASP, Excessive Agency.
Approval needs a traceable basis
Before release, it should be clear which checks were actually run, what remains untested, which issues are still open and who decides on approval. Passing tests provides confidence in the cases tested. It does not guarantee that an application is free of errors.
This is how we understand guardrails at Envision: people set goals and boundaries, AI supports implementation and testing, and results are checked in a traceable way. When data, tasks or potential consequences change, the checks are adapted too.
Envision World