render

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 8, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package render turns prism-roadmap's report contracts (assessment.OpportunityReport, PortfolioReview) into markdown output — pure functions of their input data (a report/review plus any Evidence records they cite). No LLM narrative pass runs here: a NarrativeSlot's Text is rendered verbatim if already filled in, and omitted otherwise. Every fact rendered — rank, scores, rubric answers, evidence citations — comes directly from the input structs, never invented (prism-roadmap PRD: "the report is always a pure function of the IR").

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OpportunityMarkdown

func OpportunityMarkdown(report assessment.OpportunityReport, evidence map[string]assessment.Evidence) string

OpportunityMarkdown renders report as a markdown 6-pager plus appendices. evidence supplies the Evidence records report's assessment cites, keyed by ID — the caller fetches these (e.g. via the store) before calling, so this function stays pure. A citation whose evidence isn't in the map renders as "record not found" rather than being silently dropped.

func PortfolioMarkdown

func PortfolioMarkdown(review assessment.PortfolioReview) string

PortfolioMarkdown renders review as a markdown portfolio review document. Unlike OpportunityMarkdown, this needs no external evidence map: a ReportDataset's Ranking already carries denormalized opportunity Titles (via RankInput.Title), and every other fact (distributions, capability and objective investment, deltas, overrides) is already aggregated — nothing here dereferences a raw evidence citation. A pure function of review's data (prism-roadmap PRD: "the report is always a pure function of the IR").

func PresentationMarp

func PresentationMarp(review assessment.PortfolioReview) (string, error)

PresentationMarp renders review's presentation projection (assessment.PortfolioReview.PresentationProjection) as a Marp deck — one slide per present agenda section, using the shared github.com/grokify/structureddocs/marp front matter/theme conventions for consistency with the rest of the grokify ecosystem's Marp output (see prism-roadmap's goals/v2mom/render/marp). A pure function of review's data: the facts are already computed in review.Dataset; this only formats them as slides (ideation doc: "the presentation becomes a projection of the same document model").

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL