Mathematical Framework · Source: research/formal-model.md
Formal Model & Remediation Invariants
This page preserves the original recovered mathematical notation alongside explicitly labeled proposed operational refinements. Equations are rendered at build time with KaTeX (HTML + MathML).
1. Original Recovered Permission Framework
Let be the configuration, the requested action, the agent version, and the execution environment. The normalized effective permission function maps each tuple into a four-valued domain:
A configuration repair or transformation yields a modified configuration :
For an independently justified property intended to remain unchanged, the preservation invariant requires matching known outcomes:
In the recovered security remediation correctness formulation, let denote the intended security objective and the set of declared invariants to preserve:
2. Proposed Operational Refinement (Known vs. Unknown)
To explicitly distinguish equality of known permission outcomes from equality of unknown observations, write and , and define the known-outcome indicator:
3. Evidence-Aware Verdict Precedence
Let be the finite set of required observation/assertion obligations for a case, with :
Central Measurement Principle
Absence of an attempted prohibited action is not proof of denial. A run where an action was denied and unattempted produces the same empty trace as a run where the action was allowed and simply never attempted. Controlled native probes and positive controls are required to resolve this ambiguity.
4. Original Synthetic Worked Example
Synthetic illustration · Not an executed experimentIn the recovered synthetic example, a proposed repair restores the intended approval requirement, but inadvertently weakens an unrelated private directory denial:
| Property | Before (C) | After (C′) | Evaluation |
|---|---|---|---|
| Approval required (intended objective) | No | Yes | Objective met |
| Private directory access (preserved invariant) | Denied | Allowed | Restriction lost |
| Network access (preserved invariant) | Denied | Denied | Preserved |
Result: Although the intended repair succeeds, an unrelated restriction is lost, so overall remediation fails. Try modifying outcomes interactively in the Mathematical Invariant Explorer.
5. Historical Finding Classes
Finding classification is distinct from the three-valued test verdict (pass / fail / inconclusive). Documented precedence is not inherently a vulnerability.
| Finding Class | Interpretation |
|---|---|
| Conformant behavior | Documented security property preserved |
| Expected change | Transformation intentionally changes the property |
| Documented incompatibility | Established compatibility rule explains difference |
| Undocumented divergence | Behavior differs without sufficiently clear documentation |
| Confirmed regression | Previously supported security property unintentionally lost |
| Remediation defect | Advice introduces unintended policy change |
| Inconclusive | Insufficient evidence to establish verdict |