Repository navigation
Description
Summary
Implement the shared, self-contained HTML output foundation and make it available through gaze analyze --format=html.
This delivers the first HTML report while establishing the rendering, styling, and test patterns needed by future HTML support for gaze quality, gaze crap, and gaze report.
Why
Gaze currently provides terminal text and JSON output. Text is concise but difficult to share and inspect interactively, while JSON is machine-oriented. A single-file HTML report provides a portable human-readable artifact for local review and CI uploads without requiring a web server, external assets, or additional dependencies.
The repository architecture already describes internal/report/ as including an HTML formatter stub, but no HTML formatter or --format=html value exists.
Scope
- Add a shared HTML rendering path in
internal/report/, implemented with Go'shtml/template. - Generate a complete single-file HTML document with inline CSS and no external network resources.
- Add
htmlto the supported output formats. - Wire
gaze analyze --format=htmlto render analysis results. - Present functions and their detected side effects in navigable, collapsible sections.
- Escape all report data through
html/template; do not interpolate source-derived data into raw HTML. - Add deterministic formatter and CLI integration tests.
Acceptance Criteria
gaze analyze --format=html <package>produces a complete HTML document.- The document contains every function and side effect represented by the analyze result.
- Function sections are collapsible without loading external JavaScript or stylesheets.
- The output contains no external
<link>,<script src>, or other remote asset references. - Source-derived content, including function names, file paths, and effect details, is HTML-escaped.
- Existing
textandjsonoutput behavior remains unchanged. - Tests cover successful rendering, escaping, self-containment, and CLI format selection.
Non-Goals
- HTML output for
gaze quality,gaze crap, orgaze report. - Introducing a web server, asset pipeline, CSS framework, or third-party dependency.
- Changing analysis, classification, scoring, or existing text/JSON report contracts.
Implementation Notes
- Use
html/template, nottext/template. - Prefer native HTML elements such as
<details>and<summary>over custom JavaScript for collapsible content. - Implementation requires the project’s spec-first workflow before code changes.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsNo status
Activity
fullsend-ai-triage commentedon Sep 15, 2026
🤖 Finished Triage · ✅ Success · Started 8:37 AM UTC · Completed 8:42 AM UTC
Commit:
ec204ea· View workflow run →Runtime: claude · Model: opus → claude-opus-4-6 · Effort: high · Cost: $1.03
fullsend-ai-triage commentedon Sep 15, 2026
Triage Summary
Severity: medium · Category: feature
This is a well-specified feature request. The
internal/report/package already hasjson.goandtext.go— addinghtml.gofollows the established pattern.Related Issues
quality,crap, andreportHTML output, which depends on the foundation delivered here.Implementation Notes
Per project conventions, a spec-first workflow (speckit pipeline) is required before code changes. Key implementation points:
html.goininternal/report/usinghtml/template(nottext/template)<details>/<summary>for collapsible sections — no JS neededhtmlas a valid format value ininternal/cliutil/html/templateauto-escapingProposed Test Cases
Next steps:
/fs-code— agent creates a PR to implement this issue/fs-code <your instruction>— agent implements with your specific guidance