Skip to content

docs(readme): tighten README per maintainer review - #3184

Merged
Sinity merged 3 commits into
masterfrom
feature/docs/readme-overhaul
Jul 20, 2026
Merged

Sinity merged 3 commits into
masterfrom
feature/docs/readme-overhaul

Conversation

@Sinity

@Sinity Sinity commented Jul 19, 2026

Copy link
Copy Markdown
Owner

Summary

Revises the README (and touches devtools' VHS tape generator, docs/installation.md, docs/mcp-reference.md) per the maintainer's 2026-07-19 critique captured in polylogue-93cp: badge ordering, a broken hero image, a wrong Homebrew claim, several over-specified defensive caveats, a philosophically-framed evidence-model section with unverified claims, and a stale/imprecise MCP roles sentence.

Problem

The maintainer found the README "unimpressive": badges in an arbitrary order, a low-quality hero terminal image (malformed shell prompt, GIF compression artifacts), a Homebrew install sentence that (if true) would make that install route useless since the daemon is essential, an over-specified per-origin fidelity matrix, an off-topic ambient-desktop-timeline disclaimer, internal registry-classification caveats that belong in tracked beads instead of public hedging, and an "evidence model" section written as philosophy rather than schema/data-modelling, with claims (context compiler, judgment flow) that needed verifying against source rather than assuming.

Solution

  • Badges: reordered to PyPI, Python, Homebrew, CI, CodeQL, docs. The Python badge (3.11+) already matched pyproject's requires-python = ">=3.11" — no change needed there.
  • Hero image: root-caused the bad render. devtools/visual_vhs.py generated tapes without pinning Set Shell/Set FontFamily, so the committed PNG depended on whichever shell/dotfiles were active when it was captured — it had literally leaked an unexpanded bash prompt-escape sequence (\[\]> \[\]) into the image. The PNG was also a manually ffmpeg-extracted frame from an already 256-color GIF (visible compression artifacts on glyph edges). Fixed by pinning Set Shell "bash" + Set FontFamily "DejaVu Sans Mono" on every generated tape, forcing a deterministic PS1='> ' inside the evidence-receipt tape's hidden setup block, and switching to VHS's native Screenshot command for a full-quality capture instead of a GIF-frame extraction. Regenerated all four tapes + the committed PNG, and visually reviewed the final committed image myself (clean > prompt, no artifacts, real polylogue demo receipts --compact --no-seed output). Rewrote the caption, which previously claimed a devtools lab policy demo-tour-freshness check applied to this image — that gate actually only verifies the unrelated demo tour example, and the recipe-sync check it did correctly cite (visual-tapes --check) proves recipe-sync, not visual quality.
  • Homebrew: inspected nix/homebrew-tap-template/Formula/polylogue.rb — it uses virtualenv_install_with_resources over the same pyproject.toml [project.scripts] entry points as pipx/uv (polylogue, polylogued, polylogue-mcp, plg, plog, polylogue-hook), and the formula's own test do block asserts polylogued --help / polylogue-mcp --help. Homebrew already ships all three console scripts — the README's claim that only Python/Nix do was simply wrong. Fixed the README sentence and expanded docs/installation.md's Homebrew paragraph to say so explicitly.
  • Cut over-specification: replaced the 8-row per-origin fidelity-boundary table and the "only 5 of 8 origins populate the demo" paragraph in "What it captures" with one confident sentence plus a link to docs/provider-origin-identity.md; removed the ambient-desktop-timeline disclaimer paragraph (and its grep command) and the grok-export/browser-capture registry-classification caveats from Limitations (tracked as feature beads instead of public hedging).
  • "Why the evidence model matters" → "Modelling decisions": rewrote all four subsections in a plain schema/data-modelling register. Verified each claim against source before keeping it: polylogue/context/compiler.py genuinely records selected evidence, typed omissions (ContextOmissionReason), caveats, and lossiness; AssertionStatus (ACCEPTED/REJECTED/DEFERRED/SUPERSEDED) and the polylogue judge CLI command are real and wired end-to-end through storage/sqlite/archive_tiers/user_write.py. Reworded away from "human reviews every candidate" toward the actual mechanism: candidates land with context_policy_json defaulting to {"inject": false} (verified in storage/sqlite/archive_tiers/user.py), and injection is policy-controlled, not a universal review ceremony.
  • MCP sentence: reworded to configuration terms (read-only by default; write access is an explicit config opt-in) and corrected the stale "104 tools / 66 exposed" figures. Live introspection (build_server(role=...).list_tools() per role) shows the registry has consolidated to 10 top-level operation-dispatcher tools: read role exposes 6 (status, read, get, query, explain, context), write adds 2 (write, run), review adds judge, admin adds maintenance. Fixed the same stale figures in docs/mcp-reference.md, whose generated tool-index block already showed 10 but whose hand-written prose header still said "~100 tools" (self-contradictory doc, now fixed).

Not in scope / follow-ups

  • CLAUDE.md still cites the old "103 tools" MCP figure in two places (Surfaces section + MCP gotchas). Filed polylogue-f8r2 to fix it, and tests/infra/mcp.py's comment, separately from this docs-only PR.
  • Did not adopt the external res-04 draft's two-terminal daemon-based quickstart (polylogue import --demo --wait). That path's construct parity with polylogue demo seed is still being repaired under polylogue-z1c6, which is still open as of opening this PR (PR fix(demo): converge daemon import --demo path with direct seeder #3179 is up but not merged). Kept the existing demo receipts/demo tour quickstart, which uses the direct-seed path and is unaffected by that bug — re-verified this session that it still produces the claimed structural verdict.
  • Read the res-04 positioning draft (.agent/handoffs/external-agent-campaigns/2026-07-17-gpt-pro-wave-2/results/res-04/r01/extracted/REPORT.md) as input; adopted its category framing intent and provider-table trimming direction, but kept the existing README structure and section order rather than the full rewrite, since the existing structure was already sound and a smaller, targeted diff is easier to verify against source.

Verification

  • devtools test tests/unit/devtools/test_visual_vhs.py tests/unit/devtools/test_render_visual_tapes.py — 23 passed.
  • devtools render visual-tapes --check — 4 tape specs generate cleanly, 4 committed tapes match their generated spec output.
  • devtools render all --check — exit 0, no "out of sync" lines (grepped explicitly; public-claims, docs-surface, mcp-equivalence, mcp-tool-index, pages all "sync OK").
  • devtools verify --quick — exit 0 (16/16 steps), also ran automatically and passed on git push via the pre-push hook.
  • Manually viewed the final committed docs/examples/visual-tapes/evidence-receipt.png with an image-reading tool before committing.

Ref polylogue-93cp

Sinity added 2 commits July 20, 2026 01:49
Problem

The committed docs/examples/visual-tapes/evidence-receipt.png (the
README's first-contact hero image) had a malformed shell prompt
("\[\]> \[\]" — an unexpanded bash prompt-escape sequence) and visible
GIF palette-quantization artifacts on the font glyphs, because the tape
recipe did not pin which shell rendered it and the PNG was produced by
manually ffmpeg-extracting a frame from an already 256-color GIF.

What changed

- devtools/visual_vhs.py: every generated tape now pins `Set Shell
  "bash"` and `Set FontFamily "DejaVu Sans Mono"` explicitly, so a
  captured frame no longer depends on whichever shell/dotfiles happen
  to be active on the machine running the capture.
- The evidence-receipt tape forces a deterministic `PS1='> '` inside
  its hidden setup block (before the visible command runs) and adds a
  native `Screenshot evidence-receipt.png` step, replacing the old
  ffmpeg-extracted GIF frame with a full-quality PNG straight from VHS.
- Regenerated all four committed `.tape` files and the committed
  evidence-receipt.png against the new recipe.
- Added regression tests asserting the Shell/FontFamily pins and the
  evidence-receipt tape's PS1 override + Screenshot step.

Verification

- `devtools test tests/unit/devtools/test_visual_vhs.py
  tests/unit/devtools/test_render_visual_tapes.py` — 23 passed.
- `devtools render visual-tapes --check` — 4 tape specs generate
  cleanly, 4 committed tapes match their generated spec output.
- Manually re-ran `vhs evidence-receipt.tape` and viewed the resulting
  PNG: clean `> ` prompt, no escape-sequence leakage, no visible
  compression artifacts.

Ref polylogue-93cp
Problem

Operator review of the README found: badges in an arbitrary order; a
Homebrew install sentence implying only the Python/Nix routes ship
polylogued/polylogue-mcp; an over-specified per-origin fidelity matrix
and demo-coverage caveat; an off-topic ambient-desktop-timeline
disclaimer; grok-export/browser-capture registry caveats better tracked
as feature beads; a "Why the evidence model matters" section written in
a philosophical rather than data-modelling register, with unverified
claims about the context compiler and judgment flow; and an MCP
sentence describing mutation gating as an "elevated role" rather than
plain configuration, citing a stale tool count.

Solution

- Reorder badges (PyPI, Python, Homebrew, CI, CodeQL, docs); the Python
  badge (3.11+) already matched pyproject's `requires-python = ">=3.11"`.
- Correct the install sentence: inspected nix/homebrew-tap-template/
  Formula/polylogue.rb — it uses `virtualenv_install_with_resources`
  over the same pyproject `[project.scripts]` entry points as pipx/uv,
  and its own `test do` block asserts `polylogued`/`polylogue-mcp`
  `--help`. Homebrew already ships all three console scripts; the old
  sentence was simply wrong. Also expanded docs/installation.md's
  Homebrew paragraph to say so explicitly.
- Replaced the 8-row per-origin fidelity-boundary table and the
  demo-coverage-gap paragraph in "What it captures" with one confident
  sentence plus a link to docs/provider-origin-identity.md.
- Removed the ambient-desktop-timeline disclaimer paragraph and its
  grep command, and the grok-export/browser-capture registry-
  classification caveats from Limitations (tracked as feature beads
  instead, not public README hedging).
- Renamed "Why the evidence model matters" to "Modelling decisions" and
  rewrote all four subsections in a plain schema/data-modelling
  register. Verified against source before keeping any claim:
  `polylogue/context/compiler.py` does record selected evidence,
  omissions (with a closed `ContextOmissionReason` enum), caveats, and
  lossiness; `AssertionStatus` (accept/reject/defer/supersede) and
  `polylogue judge` are real and wired end-to-end
  (storage/sqlite/archive_tiers/user_write.py,
  cli/commands/judge.py). Reworded the framing away from "human
  reviews every candidate" toward the actual mechanism: candidates land
  with `context_policy_json` defaulting to `{"inject": false}`
  (storage/sqlite/archive_tiers/user.py), and injection is
  policy-controlled.
- Reworded the MCP mutation sentence to configuration terms (read-only
  by default; write access is an explicit config opt-in) and corrected
  the stale "104 tools / 66 exposed" figures: live introspection
  (`build_server(role=...).list_tools()` per role) shows the registry
  has consolidated to 10 top-level operation-dispatcher tools —
  read role exposes 6 (status/read/get/query/explain/context), write
  adds 2 (write/run), review adds judge, admin adds maintenance. Fixed
  the same stale figures in docs/mcp-reference.md, whose own generated
  tool-index block already showed 10 but whose hand-written prose
  header still said "~100 tools" (self-contradictory).

Not in scope / follow-ups

- CLAUDE.md still cites the old "103 tools" figure in two places;
  filed polylogue-f8r2 to fix it (and tests/infra/mcp.py's
  EXPECTED_TOOL_NAMES comment) separately from this docs-only PR.
- Did not adopt the res-04 draft's two-terminal daemon-based quickstart
  (`polylogue import --demo --wait`); that path's parity with
  `polylogue demo seed` is still being repaired under polylogue-z1c6
  (open as of this PR). Kept the existing `demo receipts`/`demo tour`
  quickstart, which uses the direct-seed path and is unaffected by that
  bug — re-verified it still produces the claimed verdict this session.

Verification

- `devtools render all --check` — exit 0, no "out of sync" lines
  (public-claims, docs-surface, mcp-equivalence, mcp-tool-index, pages
  all "sync OK").
- `devtools verify --quick` — exit 0 (16/16 steps).

Ref polylogue-93cp
@coderabbitai

coderabbitai Bot commented Jul 19, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

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

Next review available in: 37 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

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

How do review 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 refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 413a807b-2968-41c7-9ae0-348186c5935a

📥 Commits

Reviewing files that changed from the base of the PR and between 099f86f and 8de1731.

⛔ Files ignored due to path filters (2)
  • docs/examples/visual-tapes/evidence-receipt.png is excluded by !**/*.png
  • docs/examples/visual-tapes/reader-evidence-tour.gif is excluded by !**/*.gif
📒 Files selected for processing (9)
  • README.md
  • devtools/visual_vhs.py
  • docs/examples/visual-tapes/browser-capture-tour.tape
  • docs/examples/visual-tapes/demo-tour.tape
  • docs/examples/visual-tapes/evidence-receipt.tape
  • docs/examples/visual-tapes/reader-evidence-tour.tape
  • docs/installation.md
  • docs/mcp-reference.md
  • tests/unit/devtools/test_visual_vhs.py
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/docs/readme-overhaul

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.

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: dee7ef8368

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread README.md Resolved
Comment thread README.md Resolved
Problem

Coordinator review of PR #3184 found the regenerated evidence-receipt.png
was legible but had ~40% dead black space below the last content line --
the tape's terminal Height was sized for its font/row math, not for the
actual line count the command prints.

While tightening it, auditing the other three committed tapes for the
same issue surfaced a real correctness bug, not just cosmetics: the
Hide/Wait+Screen completion-marker pattern (`&& printf 'READY\n'`, then
`Wait+Screen /READY/`) matches the terminal's own echo of the *typed,
not-yet-executed* command line, because the literal substring "READY"
is already visible on screen the moment the line is submitted -- before
the real command has run. This made the wait a no-op. It was invisible
for evidence-receipt (its underlying command finishes in a fraction of a
second, so the race never mattered), but reader-evidence-tour's
underlying `devtools lab smoke run` command takes ~20s+ wall-clock, so
the already-committed reader-evidence-tour.gif's last frame showed only
the two typed command lines and an empty terminal -- the pytest-based
report never actually rendered before capture stopped.

Solution

- Tightened evidence-receipt's Height from 34 to 29 rows (measured via
  ffmpeg cropdetect against the actual rendered content: 27 lines of
  real output), giving a comfortable, roughly symmetric margin instead
  of ~140px of dead space.
- Fixed the marker self-match bug everywhere it appears: split the
  marker text across adjacent bash single-quotes (`'REA''DY'`,
  `'CAP''TURED'`), which bash concatenates into the real word at
  execution time but which never appears as a contiguous substring in
  the *typed* command line, so Wait+Screen can no longer match the
  pre-execution echo.
- Restructured reader-evidence-tour to Hide the slow pytest-based smoke
  run, Wait for its (now-correct) completion marker, clear, then Show
  only the fast pretty-print of the already-written report -- this both
  fixes the correctness bug and fills the frame (verified: content now
  spans 612 of 680px, was 36px of 680px in the currently-committed gif
  before this fix).
- Applied the same marker fix to browser-capture-tour's Wait (replacing
  a "Sleep 24s" that the evidence showed was also insufficient under
  load), but left its frame Height unchanged: two live re-capture
  attempts (120s and 180s timeouts) of this tape's real headless-Chrome
  automation both genuinely timed out under this session's system load,
  so there was no way to visually verify a tightened frame doesn't clip
  content. Its existing committed gif is untouched.

Verification

- Regenerated evidence-receipt.png and reader-evidence-tour.gif and
  viewed both final committed images directly: clean prompt, full
  content, comfortable margins, no dead space, no clipping.
- `ffmpeg cropdetect` on both: evidence-receipt.png content 512/580px
  (88%), reader-evidence-tour.gif content 612/680px (90%).
- `devtools test tests/unit/devtools/test_visual_vhs.py
  tests/unit/devtools/test_render_visual_tapes.py` -- 23 passed.
- `devtools render visual-tapes --check` -- 4 tape specs generate
  cleanly, 4 committed tapes match their generated spec output.
- `devtools verify --quick` -- exit 0 (16/16 steps).

Ref polylogue-93cp
@Sinity
Sinity merged commit 5a2c55a into master Jul 20, 2026
3 checks passed
@Sinity
Sinity deleted the feature/docs/readme-overhaul branch July 20, 2026 00:47
@Sinity

Sinity commented Sep 30, 2026

Copy link
Copy Markdown
Owner Author

Historical Codex triage: evidence checked at 5ebcfe5. This records that source revision; it does not claim a fresh review of current master.

  • 51.F094 / P2: Fix and current-source recheck assigned to polylogue-dktc4; not claimed fixed. The Nix example is now correctly labeled without installing, but the immediately following verification still invokes bare polylogue commands (README.md:70-78). The same Nix onboarding failure therefore remains: that execution-only route has not placed polylogue on PATH for the next step.
  • 51.F095 / P2: fixed-already at the checked revision: The source-fidelity description now limits preservation to the structure available in each source and immediately links provider-specific limits (README.md:140-143). It no longer promises full fidelity for every origin regardless of its export boundaries.

Only the rows listed above are dispositioned. Held findings remain open.

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