Documentation
¶
Overview ¶
Package status generates project status reports.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RenderHTML ¶
RenderHTML renders the report as HTML.
func RenderMarkdown ¶
RenderMarkdown renders the report as Markdown.
Types ¶
type EvalStatus ¶
type EvalStatus struct {
Exists bool `json:"exists"`
Decision string `json:"decision"` // pass, conditional, fail
Findings struct {
Critical int `json:"critical"`
High int `json:"high"`
Medium int `json:"medium"`
Low int `json:"low"`
} `json:"findings"`
}
EvalStatus represents evaluation results.
type GraphMetrics ¶
type GraphMetrics struct {
TotalRequirements int `json:"total_requirements"`
TotalUserStories int `json:"total_user_stories"`
TotalConstraints int `json:"total_constraints"`
TotalDecisions int `json:"total_decisions"`
TraceCoverage float64 `json:"trace_coverage"` // Percentage of requirements traced to TRD
ConflictCount int `json:"conflict_count"`
GraphPath string `json:"graph_path,omitempty"`
}
GraphMetrics contains traceability and graph statistics.
type Report ¶
type Report struct {
Project string `json:"project"`
Path string `json:"path"`
GeneratedAt time.Time `json:"generated_at"`
Readiness types.ReadinessStatus `json:"readiness"`
Specs []SpecStatus `json:"specs"`
Summary Summary `json:"summary"`
GraphMetrics *GraphMetrics `json:"graph_metrics,omitempty"`
}
Report represents a project status report.
func GenerateWithConfig ¶
GenerateWithConfig generates a status report using a custom SpecConfig.
func (*Report) WithGraphMetrics ¶
func (r *Report) WithGraphMetrics(metrics *GraphMetrics) *Report
WithGraphMetrics adds graph metrics to a report. This is a separate call because graph extraction can be expensive.
type SpecStatus ¶
type SpecStatus struct {
Type types.SpecType `json:"type"`
Category types.SpecCategory `json:"category"`
Filename string `json:"filename"`
Exists bool `json:"exists"`
Required bool `json:"required"`
Status types.SpecStatus `json:"status"`
EvalStatus *EvalStatus `json:"eval_status,omitempty"`
Approval *types.Approval `json:"approval,omitempty"`
}
SpecStatus represents the status of a single spec.
Click to show internal directories.
Click to hide internal directories.