feat(skill-learning): merge plugin skill updates
This commit is contained in:
@ -33,7 +33,17 @@ class SkillLearningStore:
|
||||
self.eval_reports_dir = self.root / "eval-reports"
|
||||
|
||||
def record_learning_candidate(self, candidate: SkillLearningCandidate) -> None:
|
||||
self.record_learning_candidate_if_absent(candidate)
|
||||
normalized = SkillLearningCandidate.from_dict(candidate.to_dict())
|
||||
self._append_jsonl(self.candidates_path, normalized.to_dict())
|
||||
self.append_audit_event(
|
||||
normalized.candidate_id,
|
||||
"candidate_created",
|
||||
{
|
||||
"kind": normalized.kind,
|
||||
"status": normalized.status,
|
||||
"reason": normalized.reason,
|
||||
},
|
||||
)
|
||||
|
||||
def record_learning_candidate_if_absent(
|
||||
self,
|
||||
|
||||
Reference in New Issue
Block a user