Expand description
Side-effect-free, defense-aware shadow planning.
This layer shows how the current plan would change under an observed defensive posture, without changing anything. It filters one already authorized plan into a dependency-safe subsequence and computes an explainable delta against the current plan. It never issues a request, mutates the planner, runtime, knowledge, or experience state, or reorders the real plan.
Defense evidence is not a second planner: it never adds an action and never
raises an action’s utility. For each existing candidate it only decides to
allow, deprioritize, or suppress. The per-observation recommendation is the
existing recommend policy — this module reuses it and adds only the
resource-scoped aggregation and the monotonic class mapping.
Structs§
- Defense
Aware Shadow Plan - The current plan, the defense-aware shadow plan, and the delta between them.
- Plan
Adjustment - One action kept but deprioritized in the shadow plan.
- Resource
Defense Observation - One observed response leg for a resource, with its supporting evidence.
- Resource
Defense Signal - A resource-scoped, corroborated defense signal.
- Shadow
Plan Delta - The explainable difference the defense signal makes to the current plan.
- Suppressed
Action - One action removed from the shadow plan.
Enums§
- Defense
Interaction Class - Closed classification of how an action interacts with a target.
- Interaction
Decision - What defense recommends doing with one existing candidate.
Functions§
- decide
- The monotonic, exhaustive mapping from a recommendation and an interaction class to a decision. This is the single place the mapping lives.
- defense_
aware_ shadow_ plan - Computes the current plan, a defense-aware shadow plan, and their delta.
- explanation_
code - A stable, replay-safe explanation code for one decision.
- render_
explanation - Renders a stable explanation code as human-readable prose.