Repository navigation
feat(ledger): safe ledger signing and verification provider diagnostics (XWING-2440) - #148
Conversation
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: smith-xyz The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
PR Summary by QodoAdd safe terminal diagnostics to ledger signing providers
AI Description
Diagram
High-Level Assessment
Files changed (2)
|
Code Review by QodoResolved findings 1.
|
Plan:
plans/traust-standardization/7-ledger/07-shaun-ledger-provider-diagnostics.mdWhat
SignResult/VerifyResultvalues and error details for callersNullHandlerinvalid, while opaque CLI exits and provider/setup exceptions arefailedfailed/unexpected_errorbefore re-raising unexpected boundary exceptions so every provider path remains observable without changing exception behaviorReview resolutions
Three independent read-only reviews covered terminal-path completeness, sensitive-data flow, logger behavior and test coverage.
invalidtofailedledger.sign/ledger.verify)Verification
make lint-fixTMPDIR=/tmp make test: 306 passedReviewer checks (from the plan)
Quality checklist
Legacy files
Changed tests
No existing test expectation changed.
tests/test_provider_logging.pyis new coverage for the added diagnostic contract.Dependencies
This PR is independently reviewable. Core consumer registration and end-to-end correlated integration are delivered separately.