Skip to content

[deep-report] Unify AntigravityResponse and GeminiResponse into a shared EngineJSONResponse struct #38646

Description

@github-actions

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 ·

  • expires on Jun 13, 2026, 8:08 AM UTC-08:00

Metadata

Metadata

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions