Skip to content

feat(demo): make first-contact evidence legible (#2842) - #2842

Merged
Sinity merged 1 commit into
masterfrom
feature/docs/evidence-first-readme
Jul 13, 2026
Merged

Sinity merged 1 commit into
masterfrom
feature/docs/evidence-first-readme

Conversation

@Sinity

@Sinity Sinity commented Jul 13, 2026 •

Copy link
Copy Markdown
Owner

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

  • add a demo receipts --compact view and redact the self-contained demo archive path from public plain output;
  • lead the README with a static, reproducible evidence receipt and remove the obsolete query-tour media;
  • document current PyPI, Homebrew, and Nix installation commands and link package metadata to the docs site and changelog;
  • add docs deployment, CodeQL, and Homebrew channel badges without adding a license badge or stale static counters;
  • declare generated docs, fixtures, and internal agent workspaces outside the product LOC boundary.

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.gif plus 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

    • Added a compact output mode for the demo receipts command.
    • Compact receipts provide concise verdict information while hiding verbose sections.
    • Added a new visual evidence demo showing claim outcomes and repair results.
  • Documentation

    • Updated installation guidance for PyPI, Homebrew, Nix, and uv.
    • Refreshed README branding, setup examples, and visual evidence references.
    • Updated demo documentation to feature the new evidence receipt workflow.
  • Bug Fixes

    • Improved redaction of self-contained archive paths in compact output.

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]>
@Sinity Sinity changed the title feat(demo): make first-contact evidence legible feat(demo): make first-contact evidence legible (#2842) Jul 13, 2026
@coderabbitai

coderabbitai Bot commented Jul 13, 2026 •

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

The 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.

Changes

Evidence receipt demo

Layer / File(s) Summary
Compact receipt rendering
polylogue/cli/commands/demo.py, polylogue/demo/receipts.py, tests/unit/cli/test_demo_command.py
The receipts command accepts --compact, passes archive-label options to the renderer, omits verbose sections, and tests redacted output.
Evidence-receipt visual tape
devtools/visual_vhs.py, docs/examples/visual-tapes/*, docs/visual-evidence.md, tests/unit/devtools/test_visual_vhs.py
The default tape inventory, capture script, documentation, and expectations now use the evidence-receipt verdict flow.
Distribution and generated-surface documentation
.gitattributes, .tokeignore, README.md, docs/installation.md, pyproject.toml
Generated documentation exclusions, installation channels, README examples and badges, and project URLs are updated.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Possibly related PRs

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 30.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title is concise and accurately highlights the main change: making the first-contact evidence presentation more legible.
Description check ✅ Passed The description covers summary, problem, solution, and verification well; only the changelog and risks/follow-ups sections are omitted.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/docs/evidence-first-readme

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@Sinity
Sinity merged commit ffbd5e7 into master Jul 13, 2026
1 of 2 checks passed
@Sinity
Sinity deleted the feature/docs/evidence-first-readme branch July 13, 2026 12:51

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

📥 Commits

Reviewing files that changed from the base of the PR and between d66f97f and 9d0037e.

⛔ Files ignored due to path filters (2)
  • docs/examples/visual-tapes/evidence-receipt.png is excluded by !**/*.png
  • docs/examples/visual-tapes/query-tour.gif is excluded by !**/*.gif
📒 Files selected for processing (14)
  • .gitattributes
  • .tokeignore
  • README.md
  • devtools/visual_vhs.py
  • docs/examples/visual-tapes/README.md
  • docs/examples/visual-tapes/evidence-receipt.tape
  • docs/examples/visual-tapes/query-tour.tape
  • docs/installation.md
  • docs/visual-evidence.md
  • polylogue/cli/commands/demo.py
  • polylogue/demo/receipts.py
  • pyproject.toml
  • tests/unit/cli/test_demo_command.py
  • tests/unit/devtools/test_visual_vhs.py
💤 Files with no reviewable changes (1)
  • docs/examples/visual-tapes/query-tour.tape

Comment on lines +19 to +21
- `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.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📐 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.

Suggested change
- `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.

Comment on lines +628 to +636
]
)
if compact:
if result.problems:
lines.extend(["", "problems:", *(f" - {problem}" for problem in result.problems)])
return "\n".join(lines) + "\n"

lines.extend(
[

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📐 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.

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