DEA scheduling, drug interaction data, and patient prescription records sit at the intersection of patient safety and criminal liability. AutoPIL enforces access rules at the retrieval layer — before that data enters any agent context — with a tamper-evident audit chain.
10 policies across dispensing operations, clinical review, and regulatory compliance — enforcing DEA schedule boundaries, separating pharmacovigilance data from billing, and blocking dispensing agents from accessing clinical trial records.
policies: # Dispensing agent — prescription and patient allergy data; blocked from DEA investigative files and billing - name: dispensing_agent_policy agent_role: dispensing_agent allowed_sources: - prescription_records - patient_allergy_profiles - formulary_data - drug_reference_db denied_sources: - dea_investigative_files - billing_financials - clinical_trial_records allowed_tasks: - dispense_verification - interaction_check - refill_processing denied_tasks: - dea_reporting - adverse_event_filing max_sensitivity: high
Point policy_path at your industry directory. AutoPIL loads every
YAML file recursively — roles, sensitivity rules, and process groups wired up
automatically from the directory structure. No additional config needed.
Policies are hot-reloaded at runtime. Extend or override any pre-built policy via the REST API without redeploying your agents or restarting services.
from autopil import ContextGuard # Point at your industry — only those policies load guard = ContextGuard( policy_path="policies/pharmacy/", audit_db="autopil.db", ) # policies/pharmacy/ — loads recursively # Switch verticals by changing the path — nothing else changes.
Pre-built policies for pharmacy are included in every AutoPIL trial. Extend or override any rule via the REST API without redeploying.