Aller au contenu
login
arrow_backRetour aux issues
sipyourdrink-ltd/bernstein #4202

audit verify: last panel prints Passed while the overall exit is 1

ecoDébutant bug good first issue ai-welcome size/s cli

descriptionDescription

## What happens `bernstein audit verify` prints one verdict panel per pillar, in pillar order. When an early pillar fails and later pillars pass, the **last** panel on screen is a green "Pool Verification Passed" box — while the command exits 1. An operator reading the tail of the output concludes the verification succeeded. ## Repro ```bash BERNSTEIN_AUDIT=1 bernstein demo bernstein audit verify bernstein audit verify; echo "exit=$?" # tail of output: 'Pool Verification Passed'; exit=1 (seal pillar failed earlier in the scroll) ``` ## Expected An overall summary panel prints **last**: overall verdict plus the names of any failing pillars. The final thing on screen is red iff the exit code is nonzero. ## Acceptance criteria - Final panel = overall verdict; failing pillars listed by name. - A test asserts coherence between the last printed verdict and the exit code for both the all-pass and one-fail paths. ## Out of scope Changing pillar semantics or exit codes. Good first issue: the change is output ordering in `src/bernstein/cli/commands/audit_cmd.py`. Questions welcome in this thread.
codeOuvre sur GitHub