Description
The Typist Go type-consistency analysis (#38607) found AntigravityResponse (pkg/workflow/antigravity_logs.go:13) and GeminiResponse (pkg/workflow/gemini_logs.go:13) are byte-for-byte identical apart from the name:
type AntigravityResponse struct {
Response string `json:"response"`
Stats map[string]any `json:"stats"`
}
Scope
Introduce one shared type EngineJSONResponse struct { Response string json:"response"; Stats map[string]any json:"stats" } in the workflow package and have both ParseLogMetrics paths unmarshal into it. Verified: both definitions are in-package with few references.
Expected Impact
Removes a structural duplicate, documents intent for a shared engine-response shape, and consolidates the repeated Stats map[string]any field flagged in the same report.
Suggested Agent
copilot-swe-agent or Code Simplifier.
Estimated Effort
Fast (< 1 hour).
Data Source
DeepReport run 2026-06-11; Typist analysis #38607 (Cluster 1).
Generated by 🔬 DeepReport - Intelligence Gathering Agent · 221.4 AIC · ⌖ 11.9 AIC · ⊞ 10.6K · ◷
Description
The Typist Go type-consistency analysis (#38607) found
AntigravityResponse(pkg/workflow/antigravity_logs.go:13) andGeminiResponse(pkg/workflow/gemini_logs.go:13) are byte-for-byte identical apart from the name:Scope
Introduce one shared
type EngineJSONResponse struct { Response stringjson:"response"; Stats map[string]anyjson:"stats"}in theworkflowpackage and have bothParseLogMetricspaths unmarshal into it. Verified: both definitions are in-package with few references.Expected Impact
Removes a structural duplicate, documents intent for a shared engine-response shape, and consolidates the repeated
Stats map[string]anyfield flagged in the same report.Suggested Agent
copilot-swe-agent or Code Simplifier.
Estimated Effort
Fast (< 1 hour).
Data Source
DeepReport run 2026-06-11; Typist analysis #38607 (Cluster 1).