Commit a9aed42
feat(frost): no-coarse-fallback mode for coarse-path retirement (default off)
The reversible, un-gated half of coarse-path retirement (RFC-21 Phase 7.3). Adds a
default-OFF KEEP_CORE_FROST_INTERACTIVE_SIGNING_ONLY gate; when set, the executor
REFUSES to fall through to the coarse signing primitive: if interactive signing did
not run (its audit gate off, or no engine), the attempt fails CLOSED rather than
silently signing over the retired coarse path. The hard-fail on a committed
interactive failure is unchanged; this only converts the (nil signature, nil error)
"interactive not enabled -> coarse" fall-through into a refusal.
Default off, so production is unchanged: coarse stays the path until an operator
flips this on. Flipping it on IS the tECDSA->FROST cutover for that node (the coarse
fallback is gone), so it stays off until the frost-secp256k1-tr external audit clears
and the recovery-leaf decision lands - the actual code deletion of the transitional
coarse primitive is the irreversible follow-up, deliberately deferred.
Tests: TestEntry_InteractiveOnly_RefusesCoarseFallback (orchestration active +
interactive audit gate off + this flag on -> the executor returns a refusal naming
the env var, no signature) and TestEntry_InteractiveSigningOnlyEnabled_ParsesFlag.
Existing static-fallback executor tests unchanged (the flag defaults off). Builds
clean across the tag combos; cgo vet + gofmt clean.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent f4953b8 commit a9aed42
3 files changed
Lines changed: 81 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
134 | 145 | | |
135 | 146 | | |
Lines changed: 50 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
39 | 89 | | |
40 | 90 | | |
41 | 91 | | |
| |||
0 commit comments