Skip to main content

Module lifecycle_record

Module lifecycle_record 

Source

Structs§

ApprovalEvidence
BodySections
CloseoutCheck
CloseoutData
CommentInput
DashboardInput
LifecycleEvidence
LinkedPrEvidence
PayloadError
PrRefPayload
RecordAudit
RecordPayload
Envelope for every lifecycle comment payload.
ReviewData
ReviewFinding
SessionData
SnapshotData
StateData
StrictCloseoutGateInput
StrictCloseoutGateResult
TaskRowPayload
UnsupportedMarker
ValidationCommand
ValidationData
ValidationWaiver

Enums§

CheckStatus
FindingDisposition
FindingSeverity
PayloadErrorKind
PayloadProfile
PayloadRole
PrLifecycleStatus
ReviewDecision
StateHeaderMode
Controls how the visible Execution State header is produced.
StateStatus
TaskRowStatus
ValidationCommandStatus
ValidationOverall

Constants§

PAYLOAD_FENCE_INFO
Older fenced-code-block info-string used to mark a lifecycle payload.
PAYLOAD_SCHEMA_V2
On-wire schema identity for v2 lifecycle payloads.

Functions§

audit_record
evaluate_strict_closeout_gate
extract_payload
Extract the structured lifecycle payload carried inside comment_body.
extract_snapshot_content
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.
latest_role_bodies
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_comment
render_dashboard
render_dashboard_from_audit
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_record_post_comment
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_record_post_comment_with_display
render_record_post_comment_with_display_mode
render_record_snapshot_comment
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.
validate_payload_data_for_kind