Skip to content

Developer hooks

Everything Raqvio Agent Guardrails declares uses the raqvio_ag prefix: hooks, tables ({prefix}raqvio_ag_*), options, transients, user meta, the raqvio_ag_manage/raqvio_ag_approve capabilities, the raqvio_ag_ai_agent role, script and style handles, constants (RAQVIO_AG_*) and the agent-facing error codes (raqvio_ag_denied, raqvio_ag_blocked, raqvio_ag_approval_required).

Hook Type Where
raqvio_ag_before_ability_execute action src/Policy/Governor.php:171 (fired via run_extension())
raqvio_ag_after_ability_execute action src/Policy/Governor.php:187 (fired via run_extension(), success and error)
raqvio_ag_ability_meta_saved action src/Risk/AbilityMetaRepository.php:88
raqvio_ag_admin_pages filter src/Admin/Menu.php:84
raqvio_ag_agent_deleted action src/Agents/AgentRepository.php:294
raqvio_ag_agent_matrix_saved action src/Agents/AgentRepository.php:417
raqvio_ag_agent_saved action src/Agents/AgentRepository.php:244, src/Agents/AgentRepository.php:270
raqvio_ag_approval_decided action src/Pro/Approvals/ApprovalService.php:180, src/Pro/Approvals/ApprovalService.php:209
raqvio_ag_approval_requested action src/Policy/Governor.php:404
raqvio_ag_approval_status filter src/Abilities/Registrar.php:219
raqvio_ag_approvals_available filter src/Agents/AgentRepository.php:384, src/Policy/Engine.php:97
raqvio_ag_audit_entries filter src/Audit/AuditRepository.php:114, src/Audit/AuditRepository.php:135
raqvio_ag_audit_logged action src/Policy/Governor.php:491
raqvio_ag_audit_query_args filter src/Rest/AuditController.php:57
raqvio_ag_audit_retention_days filter src/Audit/Pruner.php:27
raqvio_ag_brand_meta_keys filter src/Readiness/Checks/IdentifiersCheck.php:123
raqvio_ag_compile_policy filter src/Policy/PolicyCache.php:108
raqvio_ag_consume_bypass filter src/Policy/Governor.php:106
raqvio_ag_dashboard_data filter src/Rest/DashboardController.php:71
raqvio_ag_denied_error filter src/Policy/Governor.php:375
raqvio_ag_enqueue_admin_assets action src/Admin/Menu.php:184
raqvio_ag_fs_loaded action raqvio-agent-guardrails.php:118
raqvio_ag_gtin_meta_keys filter src/Readiness/Checks/IdentifiersCheck.php:70
raqvio_ag_hardening_checks filter src/Hardening/Checker.php:45
raqvio_ag_has_pro filter src/Core/Plugin.php:90, src/Policy/PolicyCache.php:138
raqvio_ag_internal_error action src/Policy/Governor.php:520
raqvio_ag_is_unknown_agent filter src/Agents/AgentResolver.php:119
raqvio_ag_kill_switch_toggled action src/Admin/AdminBar.php:100, src/Rest/SettingsController.php:118
raqvio_ag_known_abilities filter src/Risk/Classifier.php:145
raqvio_ag_loaded action src/Core/Plugin.php:69
raqvio_ag_mcp_routes filter src/Agents/Channel.php:115
raqvio_ag_metric_extractors filter src/Pro/Extractors/ExtractorRegistry.php:36
raqvio_ag_mpn_meta_keys filter src/Readiness/Checks/IdentifiersCheck.php:101
raqvio_ag_pending_approvals_count filter src/Admin/AdminBar.php:42, src/Rest/DashboardController.php:62
raqvio_ag_policy_cache_invalidated action src/Policy/PolicyCache.php:123
raqvio_ag_policy_evaluate filter src/Policy/Engine.php:46
raqvio_ag_prune action src/Audit/Pruner.php:83
raqvio_ag_readiness_checks filter src/Readiness/Scanner.php:54
raqvio_ag_readiness_key_attributes filter src/Readiness/Checks/AttributesCheck.php:43
raqvio_ag_readiness_loopback filter src/Readiness/Scanner.php:302
raqvio_ag_recurring_jobs filter src/Core/Jobs.php:36
raqvio_ag_register_abilities action src/Abilities/Registrar.php:143
raqvio_ag_register_condition_types filter src/Pro/Rules/ConditionRegistry.php:55
raqvio_ag_register_refund_ability filter src/Abilities/Registrar.php:162
raqvio_ag_approval_precheck filter src/Policy/Governor.php — return a WP_Error to deny a call instead of queuing it for approval
raqvio_ag_request_approval filter src/Policy/Governor.php:392
raqvio_ag_rest_controllers filter src/Rest/Routes.php:45
raqvio_ag_rule_deleted action src/Pro/Rules/RuleRepository.php:202
raqvio_ag_rule_saved action src/Pro/Rules/RuleRepository.php:164, src/Pro/Rules/RuleRepository.php:188
raqvio_ag_settings_updated action src/Core/Settings.php:88
raqvio_ag_settings_defaults filter src/Core/Settings.php — default values for extra settings keys (Pro registers its own)
raqvio_ag_sanitize_settings filter src/Core/Settings.php — sanitize extra settings keys; return only keys you own
raqvio_ag_alert_sent action src/Pro/Notifications/Alerts.php — after a denial or volume alert is sent ($type, $agent_id, $count)
raqvio_ag_seal_audit job src/Pro/Audit/Seals.php — Action Scheduler, every 5 minutes: seals new audit entries
raqvio_ag_send_alert job src/Pro/Notifications/Alerts.php — Action Scheduler async action that sends one alert
raqvio_ag_snapshot_resolvers filter src/Pro/Snapshots/SnapshotService.php:53
raqvio_ag_supports_enforcement filter src/Core/AbilitiesBridge.php:99

Background jobs (Action Scheduler, group raqvio-ag)

Section titled “Background jobs (Action Scheduler, group raqvio-ag)”
  • raqvio_ag_expire_approvals
  • raqvio_ag_fixer_generate
  • raqvio_ag_generate_feed
  • raqvio_ag_generate_feed_batch
  • raqvio_ag_generate_feed_single
  • raqvio_ag_prune_audit
  • raqvio_ag_readiness_scan_batch
  • admin_post_raqvio_ag_toggle_kill_switch: admin-bar kill switch (nonce raqvio_ag_toggle_kill_switch)
  • wp_ajax_raqvio_ag_dismiss_notice: persist dismissed admin notices
  • WordPress Abilities API (7.1): wp_pre_execute_ability, wp_ability_normalize_input, wp_ability_validate_input, wp_ability_permission_result, wp_before_execute_ability, wp_ability_execute_result, wp_ability_validate_output, wp_after_execute_ability, plus wp_abilities_api_init / wp_abilities_api_categories_init (all in src/Core/AbilitiesBridge.php)
  • WooCommerce: woocommerce_ability_definition_classes (registers raqvio-ag/order-create-refund); woocommerce_mcp_include_ability (offers get-my-permissions and get-approval-status on WooCommerce’s MCP endpoint); woocommerce_check_rest_ability_permissions_for_method (checked before queuing a WooCommerce MCP call for approval, and granted while Raqvio Agent Guardrails runs an approved one); add_option_/update_option_woocommerce_feature_mcp_integration_enabled (refreshes the ability inventory) — see src/Abilities/WooCommerce/McpAbilities.php
  • application_password_did_authenticate, rest_pre_dispatch, deleted_user, wp_delete_application_password