fix(skills): preserve preparation traces on the package path

Keep repository projection timing and verify both discovery and installed-version preparation without adding inventory work to the fast path.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
DottaandPaperclip committed 2026-10-28 17:15:19 -05:00
1 parent 0bb36b2c6b
commit 7b90df0fad
2 files changed
+9 -4

No files matched your search

+1 -1
View File
@@ -87,7 +87,7 @@ export function skillPackageRuntime(db: Db) {
return [...files, ...generatedFiles];
}
async function materialize(version: StoredSkillVersion, directory: string) {
const files = await projection(version);
const files = await measureRunPhase("skills.repository.read", () => projection(version));
const parent = path.dirname(directory);
await ensureSkillCacheDirectory(parent, true);
if (await measureRunPhase("skills.version.verify", () => verifySkillPackageDirectory(directory, files), { fileCount: files.length })) return directory;