Description
Two package-level maps are built from the same knownRuntimes slice in separate init() functions: actionRepoToRuntime map[string]*Runtime (pkg/workflow/runtime_definitions.go:177, populated L192-194) and runtimeActionRepos map[string]bool (pkg/workflow/safe_update_enforcement.go:136, populated L139-142). runtimeActionRepos is just the key-set of actionRepoToRuntime, so it duplicates a subset of the same data and walks knownRuntimes a second time at startup. Verified on main this run.
Fix
Derive membership from actionRepoToRuntime (e.g. _, ok := actionRepoToRuntime[repo]) and delete the redundant runtimeActionRepos map + its init loop, or expose a single accessor. Keep the existing isRuntimeActionRepo-style behavior.
Expected Impact
Removes a duplicate map and a redundant startup iteration; single source of truth for runtime action repos, less drift risk. No behavior change.
Suggested Agent
Code Simplifier or a Go-capable maintenance agent.
Estimated Effort
Fast (< 30 min).
Data Source
DeepReport 2026-06-26; Repository Quality Improvement Report #41712 (LOW). Reference verified against main.
Generated by 🔬 DeepReport - Intelligence Gathering Agent · 255.2 AIC · ⌖ 18.5 AIC · ⊞ 9.8K · ◷
Description
Two package-level maps are built from the same
knownRuntimesslice in separateinit()functions:actionRepoToRuntime map[string]*Runtime(pkg/workflow/runtime_definitions.go:177, populated L192-194) andruntimeActionRepos map[string]bool(pkg/workflow/safe_update_enforcement.go:136, populated L139-142).runtimeActionReposis just the key-set ofactionRepoToRuntime, so it duplicates a subset of the same data and walksknownRuntimesa second time at startup. Verified onmainthis run.Fix
Derive membership from
actionRepoToRuntime(e.g._, ok := actionRepoToRuntime[repo]) and delete the redundantruntimeActionReposmap + its init loop, or expose a single accessor. Keep the existingisRuntimeActionRepo-style behavior.Expected Impact
Removes a duplicate map and a redundant startup iteration; single source of truth for runtime action repos, less drift risk. No behavior change.
Suggested Agent
Code Simplifier or a Go-capable maintenance agent.
Estimated Effort
Fast (< 30 min).
Data Source
DeepReport 2026-06-26; Repository Quality Improvement Report #41712 (LOW). Reference verified against
main.