Sentinel policy as code means writing rules that Terraform checks before applying changes. The flow starts with writing a policy that inspects the Terraform plan. When you run terraform plan or apply, Terraform sends the plan data to Sentinel. Sentinel evaluates the policy condition, for example checking if there are any resource changes. If the condition is true, the policy passes and Terraform proceeds with apply. If false, the policy fails and Terraform blocks the apply to prevent unwanted changes. Variables like tfplan.resource_changes hold the planned resources. The execution table shows step-by-step how Terraform generates the plan, Sentinel evaluates the condition, and the result allows or blocks the apply. This helps enforce rules automatically in infrastructure deployment.