Crate byteor_policy

Crate byteor_policy 

Source
Expand description

ByteOr policy layer.

This crate is intended to be the “guardrails” brain:

  • replay safety policies
  • action allow/deny rules per environment
  • stage capability declarations

Structs§

ActionDecl
An action declaration (what the stage could do).
ActionRequest
A policy evaluation input for a single action.
ApprovalGate
Approval gate for side effects.
Policy
Policy bundle for a runtime.
ReplayAccounting
Replay accounting snapshot used for quota decisions.
ReplayLimits
Limits applied to replay runs.

Enums§

ActionCapability
Declares the action’s capability class for policy decisions.
Decision
A deterministic, explainable decision from policy.
DenyReason
Machine-readable deny reason.
ReplayPolicy
Replay policy.
SideEffectsPolicy
Side effect policy.

Functions§

decide
Decide whether an action may execute under policy.