Repository navigation
EVAL-AUTH-03/04: exact noisy and cost-weighted authorization audit value - #50
Merged
Merged
Conversation
…al and ECA-02 gate
patrickdugan
marked this pull request as ready for review
November 17, 2026 17:33
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
EVAL-AUTH-03/04: exact noisy authorization value
A binary audit with public authorization prior p, sensitivity t and false-positive rate f gives the exact optimal post-audit 0/1 loss
min(pt,(1-p)f)+min(p(1-t),(1-p)(1-f)).The source contains exact
Fractionrisk and posterior-action routines, an independent exhaustive subset oracle certifying the nonadaptive fixed-budget sorting law, and a counterexample where a miscalibrated controller increases true error by inspecting an uninformative audit.Cost-sensitive extension (EVAL-AUTH-04): an unauthorized approval has frozen cost c_FP and a missed permitted action has cost c_FN. The Bayes policy grants when
c_FN*p > c_FP*(1-p). Replacing each joint mass with its weighted loss gives the exact nonnegative value of an audit under the true channel. The fixed fitted decoder can still have negative expected gain. A 500-case rational grid and exact 76/59 crossover of the observed ECA-02 action counts are independently checked.Applied result and scope
Control-Harness ECA-02 PR #50 is merged into main. Its source-frozen 128-block / 4,096-world first readout is in hosted CI and the full artifact. A separate independent replay reconstructed all 20,480 policy trajectories, every training posterior and the audit budgets.
Fitted-value audit: 3,143 correct, 461 false approvals, 492 missed permitted actions. Uncertainty audit: 3,109 correct, 343 false approvals, 644 missed permitted actions. For the frozen ECA-02 decisions the weighted cost ranking switches at c_FP/c_FN = 76/59. The new weighted policy has not yet been tested on a fresh cohort.
Focused exact rational CI passed. The general repository Python/Lean verification is also running. All claims are finite/synthetic math; no live model evaluation, no authenticated external issuer quality, no population-level confirmation.