Extract the verbatim file content embedded in a source/plan snapshot
comment’s <details> block. This is the inverse of the content placement
in render_record_snapshot_comment: that renderer emits
<details>/<summary>…</summary> then a blank line, the file content
verbatim, a blank line, and </details> (see snapshot.md.tera). This
returns the lines between the blank line after <summary> and the
snapshot wrapper’s matching </details>, accounting for any <details>
blocks nested inside the content itself.
Return the latest visible comment body per lifecycle role, indexed by
PayloadRole. Mirrors the latest-per-role selection inside
audit_record and is the input the visible-completeness lint operates
on (see crate::lifecycle_vnext::visible_lint).
Render the canonical dashboard for an issue-backed plan record from
audit evidence alone — callers no longer need to pass every per-role
URL. Returns a ## Final Dashboard when the latest state payload
reports status=complete, otherwise ## Current Dashboard. Pending
roles render as pending so the dashboard remains idempotent across
repeated calls with the same evidence.
Render the canonical v2 lifecycle comment used by record post for
state, session, validation, review, and closeout kinds. Source/plan
kinds are rejected because record open owns them.
Render the canonical v2 source/plan snapshot comment used by
record open. The body carries the v2 marker, visible details, and a
hidden structured payload carrying SnapshotData.