Commit 2a68d08
verify_signature: propagate verify_commitment's precise reason field
Knock-on of the malformed-input label cleanup: ``verify_signature`` was
hardcoding ``reason="unsupported_spec_version"`` whenever ``spec_status``
came back as ``"unsupported"``, which now overwrites the more specific
``"envelope_not_a_json_object"`` diagnostic that ``verify_commitment``
emits for non-dict input. The fix is a one-line change — fall back to
the generic reason only when ``verify_commitment`` didn't supply one.
Regression test pins ``verify_signature(None, engine)["reason"]``.
Suite: 230 passed, 21 skipped.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent e3f1727 commit 2a68d08
2 files changed
Lines changed: 22 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
479 | 479 | | |
480 | 480 | | |
481 | 481 | | |
482 | | - | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
483 | 487 | | |
484 | 488 | | |
485 | 489 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
442 | 442 | | |
443 | 443 | | |
444 | 444 | | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
445 | 462 | | |
446 | 463 | | |
447 | 464 | | |
| |||
0 commit comments