gap

package
v0.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 29, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

CANARY: REQ=ENG-4317; FEATURE="GapService"; ASPECT=Engine; STATUS=IMPL; UPDATED=2025-10-17

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service provides gap analysis business logic

func NewService

func NewService(repo *storage.GapRepository) *Service

NewService creates a new gap analysis service

func (*Service) FormatGapsForInjection

func (s *Service) FormatGapsForInjection(reqID string) (string, error)

FormatGapsForInjection formats gaps for injection into plan command prompt

func (*Service) GenerateReport

func (s *Service) GenerateReport(reqID string) (string, error)

GenerateReport generates a gap analysis report for a requirement

func (*Service) GetCategories

func (s *Service) GetCategories() ([]*storage.GapCategory, error)

GetCategories retrieves all available gap categories

func (*Service) GetConfig

func (s *Service) GetConfig() (*storage.GapConfig, error)

GetConfig retrieves current gap analysis configuration

func (*Service) GetTopGapsForPlan

func (s *Service) GetTopGapsForPlan(reqID string) ([]*storage.GapEntry, error)

GetTopGapsForPlan retrieves top gaps for a requirement to inject into planning

func (*Service) MarkGap

func (s *Service) MarkGap(reqID, feature, aspect, category, description, correctiveAction, createdBy string) (string, error)

MarkGap records a new gap analysis entry

func (*Service) MarkHelpful

func (s *Service) MarkHelpful(gapID string) error

MarkHelpful marks a gap entry as helpful

func (*Service) MarkUnhelpful

func (s *Service) MarkUnhelpful(gapID string) error

MarkUnhelpful marks a gap entry as unhelpful

func (*Service) QueryGaps

func (s *Service) QueryGaps(reqID, feature, aspect, category string, limit int) ([]*storage.GapEntry, error)

QueryGaps queries gap entries with filters

func (*Service) UpdateConfig

func (s *Service) UpdateConfig(maxGapInjection, minHelpfulThreshold int, rankingStrategy string) error

UpdateConfig updates gap analysis configuration

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL