Class SkillPromoter
java.lang.Object
io.agentscope.harness.agent.skill.curator.SkillPromoter
Orchestrates the promotion pipeline: locate draft → run security scan → call gate →
physically move
_drafts/<name>/ to skills/<name>/ → update sidecar.
Surfaced via HarnessAgent.promoteSkill(name, reviewerId, ctx); standalone here so it can
be unit tested without spinning up a full agent.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionSkillPromoter(WorkspaceSkillRepository draftsRepo, WorkspaceSkillRepository mainRepo, WorkspaceManager workspaceManager, SkillUsageStore usageStore, SkillPromotionGate gate, String draftsDir, String mainDir) SkillPromoter(WorkspaceSkillRepository draftsRepo, WorkspaceSkillRepository mainRepo, WorkspaceManager workspaceManager, SkillUsageStore usageStore, SkillPromotionGate gate, String draftsDir, String mainDir, SkillAuditLog auditLog) -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<SkillPromoter.PromotionResult>Promote a draft.
-
Constructor Details
-
SkillPromoter
public SkillPromoter(WorkspaceSkillRepository draftsRepo, WorkspaceSkillRepository mainRepo, WorkspaceManager workspaceManager, SkillUsageStore usageStore, SkillPromotionGate gate, String draftsDir, String mainDir) -
SkillPromoter
public SkillPromoter(WorkspaceSkillRepository draftsRepo, WorkspaceSkillRepository mainRepo, WorkspaceManager workspaceManager, SkillUsageStore usageStore, SkillPromotionGate gate, String draftsDir, String mainDir, SkillAuditLog auditLog)
-
-
Method Details
-
promote
public reactor.core.publisher.Mono<SkillPromoter.PromotionResult> promote(String name, String reviewerId, io.agentscope.core.agent.RuntimeContext ctx) Promote a draft. Returns a result describing what happened.- Parameters:
name- skill name (must exist under the drafts repo)reviewerId- tag stamped onto the sidecar'spromoted_byctx- runtime context (forwarded to gate / filesystem)
-