Option C Tools
Loading...
Searching...
No Matches
oct.mcp.safety.SafetyDecision Class Reference

Detailed Description

Result of a :meth:`SafetyGate.check` call.

Attributes
----------
proceed
    ``True`` → execution may continue; ``False`` → return the
    confirmation request to the AI host.
requires_confirmation
    ``True`` when the AI host must re-submit the call with
    ``confirm=True`` before execution proceeds.
dry_run
    ``True`` → executor should pass ``--dry-run`` (or equivalent)
    to the CLI subprocess.  Applies only to ``oct_format`` (where
    ``apply=False`` triggers dry-run even with ``confirm=True``).
    Other tools that have their own ``dry_run`` field manage it
    independently.
reason
    Human-readable explanation forwarded to audit logs.

Definition at line 109 of file safety.py.


The documentation for this class was generated from the following file:
  • G:/PythonApps/Option_C/oct/oct/mcp/safety.py