Skip to content

Proto Interface Design #2

@KariHall619

Description

@KariHall619

Task 001: Proto Interface Design

Overview

Implement dual proto extensions in both server.proto and loader.proto to establish the foundation for AI-powered SQL generation. This critical path task must be completed before any other AI extension work can begin.

Objectives

  • Add AI-specific message types to both proto files
  • Implement proper field numbering for backward compatibility
  • Design service interfaces for AI query handling
  • Ensure consistent message structure across both proto files

Technical Requirements

Server.proto Extensions

  • Extend existing HTTP API messages for AI query support
  • Add AI-specific request/response types
  • Implement proper gRPC service definitions
  • Use field numbers 10+ for new AI fields

Loader.proto Extensions

  • Extend plugin communication messages for AI support
  • Add AI-specific plugin lifecycle messages
  • Implement AI query routing messages
  • Maintain backward compatibility with existing plugins

Acceptance Criteria

  • Both proto files compile without errors
  • AI message types are properly defined
  • Field numbering follows backward compatibility rules
  • Service interfaces are complete and consistent
  • No breaking changes to existing message types

Implementation Notes

This is a critical path task that blocks all subsequent AI extension development. The proto interfaces designed here will be the foundation for:

  • Code generation in task 002
  • Interface validation in task 003
  • All future AI plugin development

Files to Modify

  • pkg/server/server.proto
  • pkg/testing/remote/loader.proto

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions