Skip to content

docs(media): document on-demand rendering policy and close aspirational rows (#1082) - #1096

Merged
Sinity merged 2 commits into
masterfrom
feature/docs/media-rendering-policy
May 16, 2026
Merged

Sinity merged 2 commits into
masterfrom
feature/docs/media-rendering-policy

Conversation

@Sinity

@Sinity Sinity commented May 16, 2026 •

Copy link
Copy Markdown
Owner

Summary

Records the policy decision for docs/media/ (no committed screenshots
or VHS tapes; render on demand from polylogue/showcase/ exercises)
and brings the docs-media coverage manifest in line with what is
actually committed. Resolves the question #1082 left open.

Problem

PR #1088 stripped the aspirational screenshots and vhs_tapes rows
from docs/plans/docs-media-coverage.yaml because they had no
executable verification path — no asset to check, no freshness gate,
no render target. #1082 asked whether to commit those assets and
reintroduce real rows, or close the question.

The manifest carried a placeholder coverage_gap
(docs-media.screenshot-integrity) and an inline comment pointing at
#1082, but neither described an actual gap in committed content — they
described an undecided product question.

Solution

Decision: do not commit screenshots or VHS tapes. Cost/benefit analysis:

  • README does not currently reference any screenshots or VHS tapes
    (verified with grep).
  • Committed terminal/UI captures bind the repo to specific terminal
    sizes, themes, fonts, sample data, and timestamps, all of which
    drift faster than the underlying code — large diffs with no semantic
    signal that date the documentation badly.
  • The showcase + qa workflows already provide reproducible captures
    when needed (release notes, blog posts, the website).
  • A committed asset without a --check-style freshness gate would be
    dead weight the manifest cannot honestly claim coverage over.

Changes:

  • docs/media/README.md (new): policy doc explaining why the directory
    holds only renderable diagrams, and the three requirements any future
    committed asset must satisfy (render script, --check freshness
    gate, manifest row).
  • docs/plans/docs-media-coverage.yaml: replace the
    screenshots/VHS-tape inline comment with a real media_policy row
    pointing at the README and a readme_diagrams row covering the
    Mermaid/SVG diagrams that devtools render-readme-media already
    verifies. Drop the docs-media.screenshot-integrity coverage_gap —
    the gap was the open question itself.
  • docs/verification-catalog.md: regenerated (subjects +1,
    coverage_item +2, coverage_gap -1).
  • devtools/evidence_dashboard.py: drop a redundant
    isinstance(entry, dict) ternary that mypy --strict rejects with
    redundant-expr. Landed unguarded by feat(devtools): evidence dashboard and changed-path traceability (#998) #1091 and has been red on
    master since; unblocks the pre-push hook for this PR. Pulled into
    this branch only because the gate would otherwise prevent the
    policy change from landing.

Verification

nix develop -c devtools verify-manifests
  ✓ manifest consistency checks passed

nix develop -c devtools render-readme-media --check
  (no drift)

nix develop -c devtools render-all --check
  OK: .cache/site matches sources.

nix develop -c devtools verify --quick
  exit_code: 0 (after the evidence_dashboard.py fix)

Closes #1082

Summary by CodeRabbit

Release Notes

  • Documentation
    • Added media handling policy documentation covering asset freshness requirements, verification procedures, and regeneration guidelines for rendered documentation media.
    • Updated documentation coverage tracking to reflect new media guidance structure.

Review Change Stack

Sinity added 2 commits May 16, 2026 17:56
…al rows

Adds docs/media/README.md recording the policy for documentation media
(no committed screenshots or VHS tapes; render on demand from
polylogue/showcase/ exercises) and brings the docs-media coverage
manifest in line with what is actually committed.

PR #1088 stripped the aspirational `screenshots` / `vhs_tapes` rows
from docs/plans/docs-media-coverage.yaml because they had no
executable verification path. #1082 asked whether to commit those
assets or close the question. Decision: do not commit. Terminal
sizes, themes, fonts, prompt strings, sample data, and timestamps
all drift faster than the code, producing large diffs that carry no
semantic signal and date the documentation badly. The showcase +
qa workflows already provide reproducible captures when needed.

What changed:

- `docs/media/README.md`: new file recording the policy and the
  three requirements any future committed media asset must satisfy
  (render script, --check freshness gate, manifest row).
- `docs/plans/docs-media-coverage.yaml`: replace the
  screenshots/VHS-tape inline comment with a real `media_policy`
  row pointing at the README and a `readme_diagrams` row covering
  the Mermaid/SVG diagrams that `devtools render-readme-media`
  already verifies. Drop the `docs-media.screenshot-integrity`
  coverage_gap entry — the gap was the open question itself.
- `docs/verification-catalog.md`: regenerated.

Closes #1082
`history_entries` is typed `list[dict[str, Any]]`, so the
`isinstance(entry, dict)` ternary in `evidence_dashboard.py` is a
no-op that mypy --strict rejects with `redundant-expr`. Landed
unguarded by #1091 and has been red on master since.

Unblocks `devtools verify --quick` (pre-push hook) for this PR.
@Sinity
Sinity merged commit f60adbe into master May 16, 2026
1 of 2 checks passed
@Sinity
Sinity deleted the feature/docs/media-rendering-policy branch May 16, 2026 16:01
@coderabbitai

coderabbitai Bot commented May 16, 2026 •

Copy link
Copy Markdown

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 7925c99e-eff1-40e3-b863-e51cff53695a

📥 Commits

Reviewing files that changed from the base of the PR and between c5e18f9 and e2efed4.

📒 Files selected for processing (4)
  • devtools/evidence_dashboard.py
  • docs/media/README.md
  • docs/plans/docs-media-coverage.yaml
  • docs/verification-catalog.md

📝 Walkthrough

Walkthrough

This PR establishes a media policy for the docs/media directory, defines what Mermaid-rendered assets should be committed and how to verify freshness, restructures the coverage manifest to reflect this policy, and adjusts evidence dashboard history parsing to remove a type guard.

Changes

Media Policy and Coverage Structure

Layer / File(s) Summary
Media policy documentation
docs/media/README.md
New README defines the docs/media directory purpose (render-freshness-gated assets from Mermaid sources), lists verification and regeneration commands, and documents explicit requirements for excluding/including screenshots and VHS tapes (requiring deterministic render script, --check failure mode, and coverage plan entry).
Coverage manifest surface and gap restructuring
docs/plans/docs-media-coverage.yaml
Coverage manifest adds structured surfaces entries for media_policy (docs/media/README.md) and readme_diagrams (docs/media/ directory) with generation/verification guidance, and replaces the incomplete screenshot-integrity gap with an executable docs-media.executable-examples gap entry.
Verification catalog aggregate updates
docs/verification-catalog.md
Verification catalog auto-generates updated counts reflecting the manifest restructuring: subjects increment by 1, coverage gaps decrease by 1, coverage items increase by 2; snapshot proof obligations increment by 1.

Evidence Dashboard Verification History Parsing

Layer / File(s) Summary
History entry steps parsing
devtools/evidence_dashboard.py
History parsing logic removes the isinstance(entry, dict) type guard and now unconditionally calls entry.get("steps", []) when reading verify-history.jsonl entries, changing non-dict entry handling from no-op fallback to potential runtime failure.

Possibly related PRs

  • Sinity/polylogue#1091: Parallel changes to devtools/evidence_dashboard.py for parsing static-gates verification history entries in the evidence dashboard.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

🐰 A meadow of media, freshly declared,
Diagrams rendered, their freshness prepared,
The policy penned, the manifest blessed,
Coverage counts dance—our docs now the best! ✨📊

✨ 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/media-rendering-policy

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 and usage tips.

@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: e2efed49b4

ℹ️ 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 docs/media/README.md Resolved
Comment thread devtools/evidence_dashboard.py Resolved
Sinity added a commit that referenced this pull request May 17, 2026
…1126)

## Summary

Rewrites the project README around a new visitor's path of attention:
a single-sentence pitch, a 30-second install-to-first-search tour using
the current `polylogue init` + `polylogued run` flow, and a value-prop
section explaining the corpus framing. Surfaces the architecture
diagram that `devtools render-readme-media` already produces.

## Problem

The previous README opened with operator-shaped quickstart instructions
(`direnv allow`, `nix run`, `devtools lab-corpus seed`) and led with the
source checkout flow. A new visitor arriving from a link had no
one-line "what is this," no end-user install path, no `polylogue init`
reference (PR #1116), and no visual anchor for the architecture
despite `docs/media/` already carrying rendered Mermaid diagrams.

Issue #952 asked for a README revamp plus an assurance-visual pipeline
(screencasts + extension screenshots). Issue #1082 / PR #1096 then
established the policy that committed screenshots and VHS tapes are
not desirable — they drift faster than the code. The README revamp can
still happen; visuals stay on the on-demand rendering path through
`devtools render-readme-media`.

## Solution

`README.md` rewritten:

- New opener: bold one-sentence pitch, paragraph explaining the system,
  three-bullet value prop (local-first, source-agnostic, idempotent).
- New "30-second tour" using the production path: `pip install` →
  `polylogue init` → `polylogued run --enable-api` → `polylogue
  "query"` → `polylogue --latest open`. Links to
  `docs/onboarding.md`.
- New "Why this exists" section frames Polylogue as a corpus layer,
  not an operator tool.
- New "Architecture at a glance" section embeds
  `docs/media/architecture-overview.svg` (already rendered by
  `devtools render-readme-media`), keeps the ASCII data-flow as a
  text-renderable fallback, and links the on-demand media policy
  (`docs/media/README.md`).
- "Installing from source" demoted into its own section so the first
  install instruction a new visitor sees is `pip install polylogue`,
  not `direnv allow`.
- "Synthetic demo" demoted to a subsection under source install.
- Surfaces section reordered around current CLI: web reader → MCP →
  browser capture → Python API.
- Generated `docs-surface` block preserved unchanged
  (`devtools render-docs-surface --check` confirms).

No committed binary screenshots or VHS tapes were added — the existing
SVG architecture diagram is the only embedded visual and is regenerated
deterministically from `devtools/generate_readme_media.py`.

Inherited stale generated surface (`docs/topology-status.md`) was
regenerated in a separate commit so the pre-push gate passes; that
drift came from a previously landed PR adding a module without
refreshing the rendered surface, not from this README work.

`Ref #952` rather than `Closes` — the issue's screencast/extension
screenshot acceptance criteria were superseded by the #1082/#1096
policy decision and the README is now the readable-by-new-visitor
artifact the issue asked for, but a future visual-rendering pass
(if any beyond the existing Mermaid diagrams) would still belong to
#952.

## Verification

```
nix develop -c devtools render-readme-media --check
  Wrote 4 .mmd source(s) in docs/media

nix develop -c devtools render-docs-surface --check
  render-docs-surface: sync OK

nix develop -c devtools verify --quick
  exit_code: 0   (after regenerating docs/topology-status.md, which
                  was inherited stale on master)
```

`docs/media/architecture-overview.svg` is unchanged on disk — the
README now references the existing rendered diagram. No new binary
assets were committed.

Ref #952
Ref #1082
Ref #1116

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
@Sinity

Sinity commented Oct 1, 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.

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

@Sinity

Sinity commented Oct 1, 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.

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.

docs-media: commit screenshots and VHS tapes (was aspirational manifest row)

1 participant