Tighten managed skill reconcile behavior

This commit is contained in:
Dotta committed 2026-05-09 23:40:41 -05:00
1 parent ce42fb3c97
commit 4de53ef96f
4 files changed
+65

No files matched your search

+1
View File
@@ -1275,6 +1275,7 @@ export function createTestHarness(options: TestHarnessOptions): TestHarness {
} satisfies PluginManagedSkillResolution;
},
async reset(skillKey, companyId) {
requireCapability(manifest, capabilitySet, "skills.managed");
const existing = await this.get(skillKey, companyId);
const declaration = manifest.skills?.find((skill) => skill.skillKey === skillKey);
if (!declaration) return existing;