class RailsAiAdmin::Integrations::ProposeOperation

A RubyLLM tool that lets an assistant propose an opted-in member operation.

The model chooses a resource, record, operation and input; all of it is untrusted. The server re-runs the normal preflight under the current admin Context (policy scope, action and input grants, typed coercion) and then presents the review Surface. The tool cannot confirm or execute anything: only the human’s own Surface submission does, through the shared Runner.

Each provider tool call maps to one deterministic intent and one Surface, so a replayed call (for example after a crash before its result was saved) never creates a second approval request.