Validation pattern
1
Create the policy
Open Secure -> Policies, choose New policy, then select Access
policy, Content policy, or Resource Policy. Scope it to one test user, group, device,
service account, agent, or AI product before using an organization-wide
scope.
2
Backtest when evidence exists
Save the policy disabled or pilot-scoped, then run a backtest. A backtest
proves the match logic against retained evidence. It does not prove that a
live source can enforce the outcome.
3
Generate fresh activity
Enable the policy and use the same application, gateway, browser, endpoint,
or agent workflow that employees use. Avoid proving an endpoint control
only through a backend API call.
4
Review evidence
Open Observe -> Sessions for the activity timeline, Secure ->
Violations for configured violation records, Secure -> Responses for
approvals, and Secure -> Audit log for the policy revision and action
history.
What to capture
For each test, capture the policy ID, policy revision, source surface, actor, device or service account, exact condition that matched, requested action, executed outcome, and any missing-capability diagnostic. For approval tests, also capture the request, decision, grant scope, expiration, and retry result.Access policies
Access policies answer whether an AI product, provider, destination, process, browser, account, or local model can be used. Use Access policies for network and software control.Block an unapproved AI API by destination
Security story: Prevent direct use of an unsanctioned AI vendor from managed endpoints, including SDK and command-line access that bypasses a corporate AI gateway. Create an Access policy:
Run from a routed endpoint:
Block a known vendor IP
Security story: Enforce a network containment decision when the security team has identified a vendor IP or test IP that should not be reachable from a managed device. Use exact IP selectors for endpoint or provider enforcement. Do not model a CIDR or IP range as a single IP policy. Create an Access policy:
Run:
443 to that exact IP is blocked. Other IPs and ports are
not blocked by this policy.
Policy definition:
<blocked-ip> with the reachable IP you intend to test.
Require approval for a sensitive AI service
Security story: Let employees request temporary access to a high-risk AI destination while preserving a decision record and a bounded grant. Create an Access policy:
Run:
Review personal AI account use
Security story: Find employees using personal AI accounts on their Macbooks without blocking the business workflow on day one. Create an Access policy:
Expected result: the activity continues, but Forge records the personal-account
policy hit for review. Open the session and violation views to confirm the
account evidence and actor attribution.
Policy definition:
Contain disallowed local model use
Security story: Stop locally running models that are outside the approved model governance process, then create response evidence for the operations team. Create an Access policy:
Expected result: compatible endpoint sources block the matching local-model
route. If the source cannot prove or enforce local-model state, Forge records a
missing capability or omitted-rule diagnostic instead of widening the policy.
Policy definition:
Content policies
Content policies answer what may enter, leave, or happen inside an AI workflow. Use them for prompts, tool inputs, tool results, model responses, classifications, and MCP activity.Session-based blocking examples
Use these examples to validate Content policy enforcement for a governed coding agent. Scope each policy to a pilot user, group, or agent before enabling it for a larger audience.
Prompt marker test:
/tmp/forge-restricted/session, then submit:
Redact credentials before model submission
Security story: Prevent users and agents from sending raw secrets to AI providers while retaining enough evidence to investigate repeated exposure. Create a Content policy:
Test prompt:
Require approval before production commands
Security story: Put a human decision between an AI agent and production changes. Create a Content policy:
Test by asking a governed coding agent to run a harmless command containing the
same production marker:
Block sensitive responses
Security story: Prevent a supported AI surface from returning regulated or confidential content to a user after the model response is available for inspection. Create a Content policy:
Expected result: when the response is classified with those labels, final
delivery is blocked and the session shows the response checkpoint hit. Confirm
that the surface being tested supports response inspection.
Policy definition:
Filter sensitive tool-result rows
Security story: Let an agent use a business tool, but remove sensitive rows from the tool result before the model sees them. Create a Content policy:
Expected result: matching rows are removed from the structured tool result. If
the expected array or field is unavailable and
onUnavailable is block, the
unfiltered result does not continue.
Policy definition:
Block a high-risk MCP tool
Security story: Govern agent extensions and MCP tools with the same policy evidence used for prompts and model activity. Create a Content policy:
Expected result: the selected MCP tool is blocked before execution. The session
shows the MCP server, MCP tool, policy hit, and block outcome.
Policy definition: