Skip to content

[Migration] Phase 6: Validation & Cleanup #25

@aWN4Y25pa2EK

Description

@aWN4Y25pa2EK

Overview

Final validation of the hybrid architecture and cleanup of deprecated code.

Parent Epic: #19
Depends on: #20, #21, #22, #23, #24

Acceptance Criteria

  • All tests pass with new AI SDK integration
  • openai package removed from dependencies
  • @opencode-ai/sdk package removed from dependencies
  • No dead code remaining from old implementations
  • Documentation updated for new architecture
  • Performance baseline established

Cleanup Tasks

  • Remove openai from package.json
  • Remove @opencode-ai/sdk from package.json
  • Remove unused imports and type definitions
  • Clean up config sections for removed integrations
  • Update CLAUDE.md with new architecture notes

Validation Checklist

  • E2E test: Full issue analysis pipeline
  • E2E test: PR review workflow
  • E2E test: Deep reasoning with extended thinking
  • Token tracking accuracy across all LLM calls
  • Error handling and retry logic
  • Rate limiting behavior
  • Cost estimation accuracy

Documentation Updates

  • Update README with new dependencies
  • Document provider registry usage
  • Document extended thinking configuration
  • Add troubleshooting guide for common issues

Performance Metrics

Capture baseline metrics before closing:

  • Average latency per analysis stage
  • Token usage per task type
  • Error rate comparison
  • Cost per task comparison

Final State

After this phase:

  • KEEP: @google/adk for agent orchestration
  • ADD: ai, @openrouter/ai-sdk-provider
  • REMOVE: openai, @opencode-ai/sdk

Part of Hybrid ADK + AI SDK Migration

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    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