You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| 2026-04-04 | Format-verb strings are localizable text, not exempt from magic string checks |
22
24
| 2026-04-04 | Agents add allowlist entries to make tests pass — guard every exemption |
@@ -109,6 +111,26 @@ DO NOT UPDATE FOR:
109
111
110
112
---
111
113
114
+
## [2026-04-08-074612] fmt.Fprintf to strings.Builder silently discards errors
115
+
116
+
**Context**: golangci-lint errcheck allows fmt.Fprintf to strings.Builder because Write never fails, but project convention says zero silent discard
117
+
118
+
**Lesson**: Linter coverage gaps exist where language guarantees mask conventions. AST tests fill the gap
119
+
120
+
**Application**: Created TestNoUncheckedFmtWrite to enforce fmt.Fprintf error handling. Use if _, err := fmt.Fprintf(...) with log.Warn on the error path
121
+
122
+
---
123
+
124
+
## [2026-04-08-074604] AST audit tests must cover unexported functions too
125
+
126
+
**Context**: TestDocCommentStructure only checked exported functions, so agent-written helpers in format.go had no godoc enforcement
127
+
128
+
**Lesson**: Convention enforcement tests must default to scanning all documented functions. Use explicit opt-outs (test files) not opt-ins (exported only)
129
+
130
+
**Application**: When adding AST audit tests, scan all functions. We fixed TestDocCommentStructure to drop the IsExported gate and fixed 84 violations
131
+
132
+
---
133
+
112
134
## [2026-04-06-204226] Agents ignore system-reminder content without explicit relay instructions
113
135
114
136
**Context**: Provenance line (Session: abc | Branch: main @ hash) was emitted by
0 commit comments