Repository navigation
feat(demo): make first-contact evidence legible (#2842) - #2842
Conversation
The README's long query animation spent more time typing than showing why Polylogue is useful. Distribution guidance also lagged the now-live PyPI and Homebrew channels, while language statistics counted generated and internal operational surfaces as product code. Lead with a static, reproducible claim-versus-receipt proof and add compact demo output that preserves the verdict, failed test, recovery, and anti-grep control without machine-local paths. Replace the obsolete query tour, document PyPI/Homebrew/Nix installation, and add real docs, CodeQL, and Homebrew status signals. Keep generated documentation, fixtures, and agent workspaces out of product LOC composition without removing them from their owning audits. Co-Authored-By: Claude <[email protected]>
📝 WalkthroughWalkthroughThe receipts CLI now supports compact output with redacted self-contained archive paths. Visual tape defaults and documentation use a new evidence-receipt flow, while installation guidance, project URLs, and generated-surface exclusions are updated. ChangesEvidence receipt demo
Estimated code review effort: 3 (Moderate) | ~20 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@docs/examples/visual-tapes/README.md`:
- Around line 19-21: Clarify the evidence-receipt entry in the visual-tapes
README to state that evidence-receipt.png is the static README frame, not output
captured by the --capture flow. Keep the existing reproducible command-flow
description and align the wording with the static-frame terminology used by the
surrounding documentation.
In `@polylogue/demo/receipts.py`:
- Around line 628-636: Clarify the docstring for the receipt-rendering function
containing the compact parameter so its description of the proof as concise does
not use the ambiguous term “compact.” Reword that description while preserving
the existing meaning and behavior of the compact rendering option.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro
Run ID: 8cfe9650-e4d1-42fb-ae32-0df1d394dccd
⛔ Files ignored due to path filters (2)
docs/examples/visual-tapes/evidence-receipt.pngis excluded by!**/*.pngdocs/examples/visual-tapes/query-tour.gifis excluded by!**/*.gif
📒 Files selected for processing (14)
.gitattributes.tokeignoreREADME.mddevtools/visual_vhs.pydocs/examples/visual-tapes/README.mddocs/examples/visual-tapes/evidence-receipt.tapedocs/examples/visual-tapes/query-tour.tapedocs/installation.mddocs/visual-evidence.mdpolylogue/cli/commands/demo.pypolylogue/demo/receipts.pypyproject.tomltests/unit/cli/test_demo_command.pytests/unit/devtools/test_visual_vhs.py
💤 Files with no reviewable changes (1)
- docs/examples/visual-tapes/query-tour.tape
| - `evidence-receipt.tape` / `evidence-receipt.png` — reproducible command flow | ||
| and static first-contact receipt for an assistant claim checked against | ||
| failed and successful test outcomes. |
There was a problem hiding this comment.
📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win
Clarify that evidence-receipt.png is a static frame, not a --capture GIF.
Line 3 states all files are "current example renders from devtools render visual-tapes --capture", which produces GIFs. But evidence-receipt.png is a static frame (per docs/visual-evidence.md line 60: "the static README frame"), not a GIF from --capture. The other entries correctly use .gif. Consider adding a brief note distinguishing this entry.
📝 Suggested clarification
- `evidence-receipt.tape` / `evidence-receipt.png` — reproducible command flow
- and static first-contact receipt for an assistant claim checked against
- failed and successful test outcomes.
+ `evidence-receipt.tape` / `evidence-receipt.png` — reproducible command flow
+ and static first-contact receipt for an assistant claim checked against
+ failed and successful test outcomes. The `.png` is a static README frame
+ captured from the tape output, not a `--capture` GIF.📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| - `evidence-receipt.tape` / `evidence-receipt.png` — reproducible command flow | |
| and static first-contact receipt for an assistant claim checked against | |
| failed and successful test outcomes. | |
| - `evidence-receipt.tape` / `evidence-receipt.png` — reproducible command flow | |
| and static first-contact receipt for an assistant claim checked against | |
| failed and successful test outcomes. The `.png` is a static README frame | |
| captured from the tape output, not a `--capture` GIF. |
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@docs/examples/visual-tapes/README.md` around lines 19 - 21, Clarify the
evidence-receipt entry in the visual-tapes README to state that
evidence-receipt.png is the static README frame, not output captured by the
--capture flow. Keep the existing reproducible command-flow description and
align the wording with the static-frame terminology used by the surrounding
documentation.
| ] | ||
| ) | ||
| if compact: | ||
| if result.problems: | ||
| lines.extend(["", "problems:", *(f" - {problem}" for problem in result.problems)]) | ||
| return "\n".join(lines) + "\n" | ||
|
|
||
| lines.extend( | ||
| [ |
There was a problem hiding this comment.
📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low value
Clarify the docstring to disambiguate "compact".
The docstring "Render the proof as a compact human-readable receipt" uses "compact" in the general sense of "concise", but now that a compact parameter exists, this is ambiguous. Consider rewording to avoid confusion with the parameter name.
📝 Suggested docstring rewording
- """Render the proof as a compact human-readable receipt."""
+ """Render the proof as a human-readable receipt."""🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@polylogue/demo/receipts.py` around lines 628 - 636, Clarify the docstring for
the receipt-rendering function containing the compact parameter so its
description of the proof as concise does not use the ambiguous term “compact.”
Reword that description while preserving the existing meaning and behavior of
the compact rendering option.
Summary
Replace Polylogue's slow, low-information README animation with a static structural receipt that immediately shows a claimed success, the failed test outcome, the later repair, and the anti-grep control. Align the first-contact documentation with the live PyPI, Homebrew, Nix, docs, and security surfaces, and keep generated/internal payloads out of product LOC composition.
Problem
The old query-tour GIF spent most of its runtime typing commands and left the useful output hard to read. The README still framed PyPI and Homebrew as future release routes after both channels became live, and whole-tree LOC scans could count generated documentation, fixture payloads, and ignored agent evidence as maintained product code.
Solution
demo receipts --compactview and redact the self-contained demo archive path from public plain output;The hero is intentionally static: the VHS tape remains reproducible evidence, while the README no longer makes a reader wait through hidden setup or typing.
Verification
nix develop --command devtools test tests/unit/cli/test_demo_command.py tests/unit/devtools/test_visual_vhs.py— 26/26 passed.nix develop --command devtools verify --quick— 15/15 steps passed; 28.74 s in the pre-push run.ffprobe ... docs/examples/visual-tapes/evidence-receipt.gifplus final-frame inspection — 1320×680 receipt shows the verdict, failed test, successful rerun, and anti-grep control with<demo-archive>and no machine-local path; the inspected frame is committed as PNG.Ref
polylogue-9p4e.Summary by CodeRabbit
New Features
demo receiptscommand.Documentation
uv.Bug Fixes