report

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2026 License: MIT Imports: 20 Imported by: 0

Documentation

Overview

Package report renders a human-readable projection of a committed query snapshot.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommittedReader

type CommittedReader interface {
	ReadCommitted(context.Context, ports.PublicationRun) (query.CommittedReview, error)
	RenderExcerptAt(context.Context, ports.PublicationRun, string, string, int) ([]byte, error)
}

CommittedReader is the report-owned boundary for verified committed review data and fresh current-evidence excerpts. *query.Service satisfies it.

type Report

type Report struct {
	// contains filtered or unexported fields
}

Report is an immutable derived report and the committed identities from which it was rendered.

func (Report) Bytes

func (report Report) Bytes() []byte

Bytes returns a caller-owned copy of the rendered Markdown.

func (Report) Epoch

func (report Report) Epoch() uint64

Epoch returns the committed source publication epoch.

func (Report) EpochPath

func (report Report) EpochPath() ports.SafeRelativePath

EpochPath returns the committed source publication epoch record path.

func (Report) FinalPath

func (report Report) FinalPath() ports.SafeRelativePath

FinalPath returns the committed source final artifact path.

func (Report) FinalSHA256

func (report Report) FinalSHA256() string

FinalSHA256 returns the committed source final artifact digest.

func (Report) LineageEdgePath

func (report Report) LineageEdgePath() ports.SafeRelativePath

LineageEdgePath returns the committed source lineage edge path.

func (Report) LineageEdgeSHA256

func (report Report) LineageEdgeSHA256() string

LineageEdgeSHA256 returns the committed source lineage edge digest.

func (Report) ManifestPath

func (report Report) ManifestPath() ports.SafeRelativePath

ManifestPath returns the committed source manifest path.

func (Report) ManifestSHA256

func (report Report) ManifestSHA256() string

ManifestSHA256 returns the committed source manifest digest.

func (Report) ReviewID

func (report Report) ReviewID() domain.ReviewID

ReviewID returns the committed source review identity.

func (Report) RunID

func (report Report) RunID() domain.RunID

RunID returns the committed source run identity.

func (Report) SessionID

func (report Report) SessionID() domain.SessionID

SessionID returns the committed source session identity.

func (Report) TargetSHA256

func (report Report) TargetSHA256() string

TargetSHA256 returns the committed source target digest.

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service renders a deterministic report from one P2-committed query snapshot.

func NewService

func NewService(reader CommittedReader) (*Service, error)

NewService creates a report renderer. The query boundary is required so the renderer cannot consult publication artifacts or targets on its own.

func (*Service) Render

func (service *Service) Render(ctx context.Context, run ports.PublicationRun) (Report, error)

Render reads exactly one committed review through the query boundary, checks the defensive final bytes against that view, and renders deterministic Markdown.

Jump to

Keyboard shortcuts

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