MentorActionOutcome enum
The decisions of the tool gate. A closed list: a new value comes only in a minor version, and the CHANGELOG says so.
On this page
A call goes through them in one of these orders, in Blocking and in Native mode alike: MentorActionOutcome.Allowed then MentorActionOutcome.Executed, MentorActionOutcome.Failed or MentorActionOutcome.Stopped; or MentorActionOutcome.Allowed, MentorActionOutcome.ConfirmationRequested, then MentorActionOutcome.Rejected, MentorActionOutcome.Stopped, or MentorActionOutcome.Confirmed followed by the outcome of the run (or MentorActionOutcome.Denied, for a role or a permission taken away while the confirmation waited); or MentorActionOutcome.Denied, MentorActionOutcome.Blocked or MentorActionOutcome.PolicyFailed alone. MentorActionOutcome.Allowed comes once the roles and every IMentorActionPolicy have let the call through.
Definition
Section titled “Definition”Namespace: Novior.MentorAgent.Abstractions.Models. Package: Novior.MentorAgent.Abstractions.
public enum MentorActionOutcome
dotnet add package Novior.MentorAgent.AbstractionsValues
Section titled “Values”| Value | Number | Description |
|---|---|---|
Allowed | 0 | The roles and every IMentorActionPolicy allow the call. The confirmation, when the action or a policy asks for one, comes next. |
Denied | 1 | Refused: a role is missing, nobody is signed in, a policy does not allow the user this action, nobody can confirm, or the MCP server does not serve it. |
ConfirmationRequested | 2 | The user is asked to confirm. |
Confirmed | 3 | The user confirmed. |
Rejected | 4 | The user said no, or nobody answered within ConfirmationTimeout. |
Stopped | 5 | Stopped before it finished: Stop, the end of the session, or the end of the turn. A Stop that comes after the confirmation and before the action starts stops it too. |
Blocked | 6 | Stopped by an IMentorActionPolicy before it ran: its reason is in MentorActionDecision.Detail. |
PolicyFailed | 7 | Not run: an IMentorActionPolicy threw, or did not answer within ActionPolicyTimeout. The exception's type is in MentorActionDecision.ExceptionType. |
Executed | 8 | The action ran. |
Failed | 9 | The action threw. |
