-
Notifications
You must be signed in to change notification settings - Fork 69
Open
Labels
area:control-planeControl plane server functionalityControl plane server functionalitydocumentationImprovements or additions to documentationImprovements or additions to documentationgood first issueGood for newcomersGood for newcomers
Description
Summary
The storage interface in the control plane defines 50+ methods but lacks godoc documentation. Adding documentation will help contributors understand the storage abstraction layer.
Current State
- File:
control-plane/internal/storage/storage.go - Methods: 50+ interface methods
- Documentation: Minimal to none
Tasks
Add godoc comments to all interface methods explaining:
- What the method does
- Parameters and their expected values
- Return values and possible errors
- Any important behavior notes (e.g., transaction semantics)
Example Format
// GetExecution retrieves an execution record by its unique identifier.
// Returns the execution if found, or an error if not found or on database failure.
//
// Parameters:
// - ctx: Context for cancellation and timeout
// - id: Unique execution identifier (UUID format)
//
// Returns ErrNotFound if the execution does not exist.
GetExecution(ctx context.Context, id string) (*Execution, error)Priority Methods to Document
Start with these commonly-used methods:
GetExecution/CreateExecution/UpdateExecutionGetAgent/RegisterAgent/UpdateAgentStatusGetMemory/SetMemory/DeleteMemoryGetWorkflow/CreateWorkflow
Acceptance Criteria
- All public interface methods have godoc comments
- Documentation follows Go conventions
-
go docoutput is clear and helpful - Code compiles without errors
Files
control-plane/internal/storage/storage.go
Using AI to solve this issue? Read our AI-Assisted Contributions guide for testing requirements, prompt strategies, and common pitfalls to avoid.
Metadata
Metadata
Assignees
Labels
area:control-planeControl plane server functionalityControl plane server functionalitydocumentationImprovements or additions to documentationImprovements or additions to documentationgood first issueGood for newcomersGood for newcomers