Documentation
¶
Overview ¶
Package report formats a run's or a job's record as Markdown for the people and agents who read it: the run's sources and notes, a table of its jobs with the environment values that tell them apart and their last log lines, then each job's notes, command, rule diagnoses, and bounded log excerpt. Paths and hostnames are redacted by default; callers may opt out of redaction.
`show --report` and the Web UI's report endpoints share it, so both produce the same text. It reads results through internal/web's job projection, which follows the internal/jobstatus fallback chain, and must not resolve job status on its own.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Build ¶
func Build(store state.Store, paths state.ProjectPaths, runID, jobID string, failedOnly bool, attemptID string, redact bool) (string, error)
Build formats the evidence of runID, or of its job jobID, for AI-assisted diagnosis. failedOnly limits a run report to failed and blocked jobs. A non-empty attemptID shows that attempt instead of its job's latest. redact replaces paths and hostnames with placeholders; disable it only for sharing within a trusted team.
func BuildForJobs ¶
func BuildForJobs(store state.Store, paths state.ProjectPaths, runID string, jobIDs []string, redact bool) (string, error)
BuildForJobs formats the evidence of the selected jobs of runID as a run report. See Build for redact.
func RedactPatterns ¶
RedactPatterns replaces text that looks like an absolute path or a hostname, the generic part of a report's redaction. It does not know the run's own paths and hostname, so it can miss some; see Build.
Types ¶
This section is empty.