report

package
v0.1.26 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2026 License: MIT Imports: 16 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

func RedactPatterns(text string) string

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.

Jump to

Keyboard shortcuts

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