Skip to content

fix(audit): keep promptise audit verify lines whole when piped - #75

Draft
cryxnet wants to merge 1 commit into
mainfrom
fix/audit-verify-no-wrap
Draft

cryxnet wants to merge 1 commit into
mainfrom
fix/audit-verify-no-wrap

Conversation

@cryxnet

@cryxnet cryxnet commented Oct 24, 2026

Copy link
Copy Markdown
Collaborator

promptise audit verify prints through a Rich console, which wraps at 80 columns when stdout is not a terminal. Piped output split last_hash <hash> (seq N) over two lines, so a script extracting the hash for --anchor broke (... | cat shows it; COLUMNS=100 hides it). Found while re-running a guide on 1.10.1.

  • audit_cli.py: both consoles use soft_wrap=True, so lines are never broken to fit the width.
  • Test: TestCli.test_piped_output_keeps_each_line_whole runs at 80 columns (the other CLI tests pin 200, which hid this); fails before, passes after. tests/test_audit_log_verify.py: 42 passed.
  • Changelog: Unreleased entry. Held for the next release, with fix(guardrails): warn about input BLOCK when input has the finding #74.

🤖 Generated with Claude Code

Rich wrapped the output at 80 columns when stdout was not a terminal, so
'last_hash <hash> (seq N)' split across two lines and broke scripts that
extract the hash for --anchor.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cryxnet cryxnet mentioned this pull request Oct 27, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant