You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
【架构优化】从 KnowledgeArtifacts 中拆出 run ID 收集 distinctArtifactRunIDs、run 元数据查询 knowledgeRunMetas 与候选组装 latestKnowledgeCandidates #753
Activity
refactor(repo): split KnowledgeArtifacts into run ID, run meta and ca…
Robert0622 commentedon Nov 14, 2026
已对照当前 main 代码核实:
internal/repo/run_knowledge.go第 13 行起的RunsRepo.KnowledgeArtifacts确实在一个函数里串行完成查询、去重收集 run ID、查询 run 元数据、过滤组装四件事;distinctArtifactRunIDs、knowledgeRunMetas、latestKnowledgeCandidates当前均不存在(grep 无命中),与描述匹配,非重复。重构方案(拆出三个包内函数/类型,对外签名KnowledgeArtifacts(projectID string, limit int) []domain.KnowledgeCandidate不变)合理可行,已记入待排期清单;当前 backlog 容量已满(5/5),本条暂不能立即建单,待有空位后补建。