Repository navigation
docs(readme): tighten README per maintainer review - #3184
Conversation
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
|
Warning Review limit reached
Next review available in: 37 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the 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 configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: ⛔ Files ignored due to path filters (2)
📒 Files selected for processing (9)
✨ Finishing Touches🧪 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.
💡 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".
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
|
Historical Codex triage: evidence checked at 5ebcfe5. This records that source revision; it does not claim a fresh review of current master.
Only the rows listed above are dispositioned. Held findings remain open. |
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
requires-python = ">=3.11"— no change needed there.devtools/visual_vhs.pygenerated tapes without pinningSet 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 pinningSet Shell "bash"+Set FontFamily "DejaVu Sans Mono"on every generated tape, forcing a deterministicPS1='> 'inside the evidence-receipt tape's hidden setup block, and switching to VHS's nativeScreenshotcommand 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, realpolylogue demo receipts --compact --no-seedoutput). Rewrote the caption, which previously claimed adevtools lab policy demo-tour-freshnesscheck applied to this image — that gate actually only verifies the unrelateddemo tourexample, and the recipe-sync check it did correctly cite (visual-tapes --check) proves recipe-sync, not visual quality.nix/homebrew-tap-template/Formula/polylogue.rb— it usesvirtualenv_install_with_resourcesover the samepyproject.toml[project.scripts]entry points as pipx/uv (polylogue,polylogued,polylogue-mcp,plg,plog,polylogue-hook), and the formula's owntest doblock assertspolylogued --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 expandeddocs/installation.md's Homebrew paragraph to say so explicitly.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).polylogue/context/compiler.pygenuinely records selected evidence, typed omissions (ContextOmissionReason), caveats, and lossiness;AssertionStatus(ACCEPTED/REJECTED/DEFERRED/SUPERSEDED) and thepolylogue judgeCLI command are real and wired end-to-end throughstorage/sqlite/archive_tiers/user_write.py. Reworded away from "human reviews every candidate" toward the actual mechanism: candidates land withcontext_policy_jsondefaulting to{"inject": false}(verified instorage/sqlite/archive_tiers/user.py), and injection is policy-controlled, not a universal review ceremony.build_server(role=...).list_tools()per role) shows the registry has consolidated to 10 top-level operation-dispatcher tools:readrole exposes 6 (status,read,get,query,explain,context),writeadds 2 (write,run),reviewaddsjudge,adminaddsmaintenance. Fixed the same stale figures indocs/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.mdstill cites the old "103 tools" MCP figure in two places (Surfaces section + MCP gotchas). Filedpolylogue-f8r2to fix it, andtests/infra/mcp.py's comment, separately from this docs-only PR.polylogue import --demo --wait). That path's construct parity withpolylogue demo seedis still being repaired underpolylogue-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 existingdemo receipts/demo tourquickstart, which uses the direct-seed path and is unaffected by that bug — re-verified this session that it still produces the claimed structural verdict..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 ongit pushvia the pre-push hook.docs/examples/visual-tapes/evidence-receipt.pngwith an image-reading tool before committing.Ref polylogue-93cp