Skip to content

docs: build the 7-minute first-contact funnel (#2379) - #2429

Merged
Sinity merged 2 commits into
masterfrom
feature/docs/first-contact-funnel
Jun 26, 2026
Merged

Sinity merged 2 commits into
masterfrom
feature/docs/first-contact-funnel

Conversation

@Sinity

@Sinity Sinity commented Jun 26, 2026 •

Copy link
Copy Markdown
Owner

Summary

A pure docs/presentation pass (plus one thin devtools command) that makes
Polylogue legible to a first-time reader in a 7-minute skim. Realizes Train 1,
item 1 of the #1807 epic.

Problem

The loudest verdict from the source review behind #2379: "Polylogue is not
weak because it lacks impact. It is weak only if it is illegible."
The docs
were extensive but developer-targeted — no skim funnel, no glossary, no
architecture diagram (docs/architecture.md was prose), and no single demo
command a stranger could run. First-contact legibility gates the perceived
value of every other artifact.

Solution

  • README — explicit 30s / 3min / 30min skim funnel placed before any
    project-specific noun, and a Try it in one command section that seeds the
    deterministic, private-data-free demo archive and shows three providers
    (ChatGPT + Claude Code + Codex) coexisting via analyze --facets. The shown
    output is real (run against a seeded archive, committed inline).
  • docs/glossary.md (new) — 20+ internal terms (archive tier,
    origin/source/provider, content hash, insight, projection, assertion,
    evidence ref, readiness, facet, retrieval lane, …) in plain language, with
    the same entry layers. Linked from the README; registered in the docs map.
  • docs/architecture.md — Mermaid four-ring diagram (was prose-only),
    linked from the README funnel.
  • devtools render visual-tapes — thin operator entrypoint over the
    existing, tested visual_vhs tape engine, so the demo screencast media is
    regenerable by a single documented command (--capture drives vhs when
    present) rather than a committed binary that bitrots. Registered in the
    command catalog; rendered into docs/devtools.md.

No runtime/archive behavior changes. Scope guard honored: no marketing-site
redesign (that warning lives in #2304/#2307).

Verification

  • devtools verify doc-commands → 79 doc files scanned, no stale commands
  • devtools render all --check → no drift across every generated surface
  • devtools verify --quick → exit_code 0 (ruff format, ruff lint,
    mypy --strict, render-all check, all verify lints)
  • devtools test on command_catalog, docs_surface, devtools_main,
    render_devtools_reference, visual_vhs → 32 passed
  • One-command demo executed live: demo seed --with-overlays then
    analyze --facets produced the committed three-origin facet output;
    devtools render visual-tapes wrote 5 .tape files to gitignored .local/.

Acceptance criteria (#2379)

  • README opens with a 30-second one-liner + 3-minute what/why before any
    project-specific noun.
  • A documented one command produces visible output on the demo archive;
    screencast media is regenerable by a single documented command.
  • An architecture diagram and docs/glossary.md exist and are linked from
    the README.
  • devtools verify doc-commands passes on every README/quickstart command.

Ref #2379. Ref #1807.

Summary by CodeRabbit

  • New Features

    • Added a quick-start overview in the README with a short “skim in 7 minutes” guide and a one-command demo flow.
    • Added support for generating visual tapes, including optional GIF capture for demo media.
    • Added a glossary and expanded architecture docs with a clearer system diagram.
  • Documentation

    • Updated developer docs to include the new visual-tapes command and refreshed architecture guidance.

Problem: The loudest verdict from the source review is "Polylogue is weak
only if it is illegible." Docs were extensive but developer-targeted — no
skim funnel, no glossary, no architecture diagram, and no single-command
demo a stranger could run. A reader had to do archaeology before any
distilled artifact could land.

What changed (docs/presentation only, plus one thin command):

- README: explicit 30s/3min/30min skim funnel before any project-specific
  noun, and a "Try it in one command" section that seeds the deterministic
  private-data-free demo archive and shows three providers coexisting via
  `analyze --facets` (verified output committed inline).
- docs/glossary.md: 20+ internal terms (archive tier, origin/source/provider,
  content hash, insight, projection, assertion, evidence ref, readiness,
  facet, retrieval lane, …) translated to plain language, with entry layers.
- docs/architecture.md: Mermaid four-ring diagram (was prose-only).
- devtools render visual-tapes: thin operator entrypoint over the existing
  tested visual_vhs tape engine, so the demo screencast media is regenerable
  by one documented command instead of a committed binary. Registered in the
  command catalog and rendered into docs/devtools.md.

Glossary and diagram are linked from the README skim funnel; the glossary is
registered in the docs surface map.

Ref #2379. Train 1 (Ship), item 1 under Ref #1807.

Verification:
- devtools verify doc-commands -> 79 files, no stale commands
- devtools render all --check -> no drift
- devtools verify --quick -> exit 0 (format, lint, mypy --strict, render)
- devtools test (command_catalog, docs_surface, devtools_main,
  render_devtools_reference, visual_vhs) -> 32 passed
- one-command demo + analyze --facets run against a seeded demo archive

Co-Authored-By: Claude <[email protected]>
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@coderabbitai

coderabbitai Bot commented Jun 26, 2026 •

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@Sinity, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 8 minutes and 3 seconds. Learn how PR review limits work.

Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file).

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits.

🚦 How do rate limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 6eb34b77-c670-40dd-b3e5-2110f619827b

📥 Commits

Reviewing files that changed from the base of the PR and between db87ca6 and b822235.

📒 Files selected for processing (1)
  • devtools/render_visual_tapes.py
📝 Walkthrough

Walkthrough

Adds a README skim block, architecture and glossary documentation, and a new devtools render visual-tapes CLI for generating .tape files and optional GIF captures. The README demo section now shows the seed/analyze/find/read/verify flow and references the new command.

Changes

First-contact docs and visual-tapes tooling

Layer / File(s) Summary
Orientation docs and glossary
README.md, docs/architecture.md, docs/glossary.md, devtools/docs_surface.py, AGENTS.md
Adds the README skim block, architecture notes, the glossary page, and the glossary surface entry.
render visual-tapes CLI
devtools/command_catalog.py, devtools/render_visual_tapes.py
Adds the command spec and CLI that write .tape files, support --check, and optionally capture .gif outputs through vhs.
Demo walkthrough and command listings
README.md, docs/devtools.md, AGENTS.md
Adds the demo seed/analyze/find/read/verify walkthrough, sample facets output, and the render visual-tapes command listings.

Sequence Diagram(s)

sequenceDiagram
  participant User
  participant Main as devtools.render_visual_tapes.main
  participant VisualVHS as devtools.visual_vhs
  participant VHS as vhs

  User->>Main: devtools render visual-tapes [--check|--capture]
  Main->>VisualVHS: default_tape_specs()
  Main->>VisualVHS: generate_all_tapes(...)
  alt --check
    VisualVHS-->>Main: clean tape count
  else --capture
    Main->>VisualVHS: check_vhs_available()
    loop each spec
      Main->>VisualVHS: run_vhs_capture(...)
      VisualVHS->>VHS: capture .gif from .tape
    end
  end
Loading

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Possibly related issues

  • Sinity/polylogue issue 2379 — Updates the README skim guidance, architecture diagram, glossary, and one-command demo/visuals path described by the issue.
  • Sinity/polylogue issue 1808 — Expands the README demo-focused flow with the seed/analyze/find/read/verify sequence and supporting command references.

Poem

A bunny hopped through docs so bright,
Then spun some tapes in morning light.
Seed, analyze — carrots cheer,
Visual GIFs now appear!
🐰📼✨

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.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 captures the main change: a docs-focused 7-minute first-contact funnel.
Description check ✅ Passed The description is detailed and covers Summary, Problem, Solution, and Verification, with only the optional Changelog/Risks sections 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 unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/docs/first-contact-funnel

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.

github-actions Bot pushed a commit that referenced this pull request Jun 26, 2026

@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 `@devtools/render_visual_tapes.py`:
- Around line 62-68: The `render_visual_tapes.py` capture path has inconsistent
exit-code semantics in the `args.capture` / `check_vhs_available()` branch.
Decide whether missing `vhs` is a hard failure for `--capture` or a soft
optional skip, then make the return value and stderr message match that choice
in `main` and the `check_vhs_available()` flow. If capture is optional, return
success from this branch; if it is required, keep the non-zero exit but reword
the message so it is not described as a skip.
- Around line 69-81: The capture loop in render_visual_tapes.py is
reconstructing tape filenames from spec.name instead of relying on the engine’s
authoritative VHSTape.filename. Update the flow around generate_all_tapes and
run_vhs_capture so the capture step receives the resolved tape path or tape
object directly, and use that path when invoking VHS. This keeps the naming
logic centralized and ensures strict alignment with the engine’s output.
🪄 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: 2b4ac196-f543-4201-a9e6-4d158bfd18d3

📥 Commits

Reviewing files that changed from the base of the PR and between 62f3e53 and db87ca6.

📒 Files selected for processing (8)
  • AGENTS.md
  • README.md
  • devtools/command_catalog.py
  • devtools/docs_surface.py
  • devtools/render_visual_tapes.py
  • docs/architecture.md
  • docs/devtools.md
  • docs/glossary.md

Comment thread devtools/render_visual_tapes.py Resolved
Comment thread devtools/render_visual_tapes.py Resolved
CodeRabbit (PR #2429): `render visual-tapes --capture` returned exit 1 when
the `vhs` binary was missing, contradicting the README framing of GIFs as an
optional, best-effort step. The tapes are the committed artifact and are
written regardless; a missing `vhs` is now a soft skip (exit 0, clear warning),
and exit 1 is reserved for genuine capture failures when `vhs` is present.
Also derive the tape path from the engine's authoritative VHSTape.filename
rather than re-implementing the name.

Co-Authored-By: Claude <[email protected]>
@Sinity

Sinity commented Jun 26, 2026

Copy link
Copy Markdown
Owner Author

Addressed both CodeRabbit findings in b822235:

  • Exit-code semantics (actionable): render visual-tapes --capture now soft-skips with exit 0 and a clear warning when vhs is absent (the tapes are the committed artifact and are written regardless); exit 1 is reserved for genuine capture failures when vhs is present. This matches the README's optional-capture framing.
  • Filename derivation (minor): the tape path now comes from the engine's authoritative VHSTape.filename instead of a re-implemented f"{spec.name}.tape".

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