[deep-report] Introduce GuardPolicyMap / RawActionSteps named type aliases for repeated map[string]any / []any shapes
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 65/100
Research direction
Start with the five guard-policy field declarations in pkg/workflow/mcp_renderer_types.go, pkg/workflow/mcp_config_types.go and pkg/workflow/tools_types.go, and the step-slice fields in pkg/workflow/frontmatter_types.go. Confirm in compiler_main_job_helpers.go that the steps are still re-serialized as YAML. Done when the new GuardPolicyMap and RawActionSteps aliases replace the raw literals at every site, and go build ./... and go test ./pkg/workflow/... still pass.
Written by the indexing model from the issue text.
Description
Description
The same map[string]any shape for guard-policy config is independently re-declared as a field type in 5 locations: pkg/workflow/mcp_renderer_types.go:21,94,131, pkg/workflow/mcp_config_types.go:54, and pkg/workflow/tools_types.go:530 — confirmed via direct grep of all 5 sites. Separately, raw GitHub Actions step passthrough (PreSteps/Steps/PreAgentSteps/PostSteps in frontmatter_types.go:413-416, plus 3 more sites) is independently typed as []any in 8 places; this one is correctly dynamic (confirmed via compiler_main_job_helpers.go's re-serialization to YAML) but the "this is intentional passthrough" intent isn't visible at the type level.
Expected Impact
A single named type documents each concept once; if guard-policy config ever grows real structure there's one declaration to change instead of five, and the step-passthrough alias makes the "intentionally untyped YAML" decision visible without relying solely on a comment on one of the eight fields.
Suggested Fix
Introduce type GuardPolicyMap map[string]any and type RawActionSteps []any type aliases and use them consistently in place of the repeated raw map/slice literals.
Suggested Agent
General Go-focused coding agent (mechanical, low-risk retype).
Estimated Effort
Quick (< 1 hour)
Data Source
Typist — Go Type Consistency Analysis, discussion #67180 (2026-10-09), Category 2 / Priority 3 item #7. Live-verified via direct grep of all declaration sites before filing.
Generated by 🔬 Deep Report · claude · agent · 270.5 AIC · ⌖ 8.95 AIC · ⊞ 7.1K · ◷
- expires on Oct 11, 2026, 4:47 AM UTC-08:00
- Dominant language
- Go
- Stars
- 5.4k
- Forks
- 576
- Avg merge
- 8h 12m
- Merged PRs (30d)
- 800
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- Ships a Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from github/gh-aw
-
automated-analysis code-quality cookie
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
github/gh-aw#67517 · 3 comments ·
Maintainers usually reply within 1 day
-
automation code-quality cookie documentation improvement quick-win task-mining
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
github/gh-aw#67262 · 23 comments ·
Maintainers usually reply within 1 day
-
automation code-quality cookie documentation improvement quick-win task-mining
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
github/gh-aw#67261 · 4 comments ·
Maintainers usually reply within 1 day
-
agentic-workflows automation code-quality cookie improvement quick-win task-mining testing
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
github/gh-aw#67260 · 3 comments ·
Maintainers usually reply within 1 day
-
automation cli cookie documentation
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
github/gh-aw#67211 · 3 comments ·
Maintainers usually reply within 1 day
Similar issues
-
bug triage
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
FairwindsOps/nova#484 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
[otelcol] print-config help text still requires the removed otelcol.printInitialConfig feature gatePossibly taken @girishkvs claimed this today. Open
Difficulty 1/5 Under an hour Newbie friendliness 88/100
open-telemetry/opentelemetry-collector#16143 · 1 comment ·
Maintainers usually reply within 1 day
-
bug good first issue load-balancing
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
ktrubilo9/edge-proxy#53 ·
-
Symbolizing with GNU addr2line 2.40 records `??:?` as the filename of a location with no line infoOpen
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
google/pprof#1044 · 1 comment ·
Maintainers usually reply within 1 day