Back to Beads

Release gate: be-ow4w54 — Extract markdown rendering out of internal/ui

release-gates/be-ow4w54-gate.md

1.0.52.8 KB
Original Source

Release gate: be-ow4w54 — Extract markdown rendering out of internal/ui

Verdict: PASS for the internal/ui decoupling scope.

Scope note: this gate verifies that internal/ui no longer imports the glamour/chroma markdown renderer stack and that direct markdown-rendering callers use internal/uimd. It does not prove that every bd subprocess avoids glamour/chroma startup work; cmd/bd is a single Go binary, so that broader runtime claim needs a separate startup/dependency boundary and measurement.

Branch: feat/be-ow4w54-uimd-markdown Base on origin: origin/main (merge-base 74c66722b14cc32e70ecc4182788d4de40b6d906) Reviewed contributor head: 228ead67e34d2ce77254d65a5c3bdb98b7854bbf Source bead: be-ow4w54; review bead: be-2y5h4f (PASS).

Commits

#SHASubject
1228ead67erefactor(ui): extract markdown rendering to internal/uimd package
2local maintainer fixupdocs: narrow uimd release gate scope

Original contributor change: cmd/bd/comments.go, cmd/bd/show.go, cmd/bd/show_children.go, cmd/bd/show_display.go, internal/{ui→uimd}/markdown.go.

Maintainer fixup: narrows this gate to the delivered internal/ui decoupling scope and restores rationale comments in internal/uimd/markdown.go.

Criteria

#CriterionVerdictEvidence
1Review PASS presentPASSbe-2y5h4f notes: "VERDICT: pass. Findings: none."
2Acceptance criteria metPASSinternal/ui contains no glamour/chroma imports (grep -rn 'glamour|chroma' internal/ui/ -> empty). internal/uimd/markdown.go created and all 4 direct markdown callers (show.go, show_display.go, show_children.go, comments.go) updated to import internal/uimd. Build clean.
3internal/ui dependency graph stays renderer-freePASSgo list -deps ./internal/ui | grep -Ec 'charm\.land/glamour|alecthomas/chroma' -> 0.
4Tests passPASSgo test -tags gms_pure_go -count=1 -short ./internal/ui/... ./internal/uimd/...: ok (0.005s). go test -tags gms_pure_go -count=1 -short -run TestShow ./cmd/bd/: ok (0.335s). go build -tags gms_pure_go ./...: clean. Note: TestCheckBeadsRole_* failures in cmd/bd/doctor are pre-existing rig-env failures unrelated to this change.
5No high-severity review findings openPASSReviewer be-2y5h4f: "Findings: none."
6Final branch is cleanPASSgit status clean (untracked .gc/, .gitkeep are rig scaffolding).
7Branch diverges cleanly from mainPASSContributor head rebased cleanly onto origin/main; maintainer fixup remains local for the next review pass.

Test environment

  • Host: Linux 6.19.14-300.fc44.x86_64

Push target

PUSH_REMOTE=fork. Cross-repo PR head: quad341:feat/be-ow4w54-uimd-markdown.