Description
Headers any is used for MCP server header config in pkg/workflow/frontmatter_types.go:252,289 and pkg/parser/import_observability.go:18, even though every consumer treats it as a string map: pkg/workflow/tools_parser.go:717 builds the equivalent headers field as make(map[string]string), and tools_types.go/observability_otlp.go consume HTTP headers as map[string]string elsewhere in the same package. The any typing forces a type assertion at every call site for no actual dynamism.
Expected Impact
Removes a pointless any→concrete-type assertion at every consumer, and makes "HTTP headers" a single consistent shape across the whole config surface (frontmatter, observability imports, tools).
Suggested Agent
General Go-focused coding agent (mechanical retype + call-site fix).
Estimated Effort
Quick (< 1 hour)
Data Source
Typist — Go Type Consistency Analysis, discussion #67180 (2026-10-09), Priority 1 item #2. Live-verified via direct source read of all three declaration sites before filing.
Generated by 🔬 Deep Report · claude · agent · 270.5 AIC · ⌖ 8.95 AIC · ⊞ 7.1K · ◷
Description
Headers anyis used for MCP server header config inpkg/workflow/frontmatter_types.go:252,289andpkg/parser/import_observability.go:18, even though every consumer treats it as a string map:pkg/workflow/tools_parser.go:717builds the equivalent headers field asmake(map[string]string), andtools_types.go/observability_otlp.goconsume HTTP headers asmap[string]stringelsewhere in the same package. Theanytyping forces a type assertion at every call site for no actual dynamism.Expected Impact
Removes a pointless
any→concrete-type assertion at every consumer, and makes "HTTP headers" a single consistent shape across the whole config surface (frontmatter, observability imports, tools).Suggested Agent
General Go-focused coding agent (mechanical retype + call-site fix).
Estimated Effort
Quick (< 1 hour)
Data Source
Typist — Go Type Consistency Analysis, discussion #67180 (2026-10-09), Priority 1 item #2. Live-verified via direct source read of all three declaration sites before filing.