feat(07-unified-service-catalog): add net-new services informational check to validation script

- Check 6: Count of services with migrated_from IS NULL (net-new rows created via /admin/catalog after migration)
- Printed as informational line at the end of validation output
- Does not fail validation if count is zero (expected for fresh test runs)

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-06-11 06:26:24 +02:00
parent 4ed2f8b105
commit 23a9f8ad8c
+7
View File
@@ -99,6 +99,13 @@ async function validate() {
console.log("PASS: no duplicate names in services");
}
// Check 6: informational — count of net-new (non-migrated) services
const [netNew] = await db
.select({ n: sql<number>`count(*)::int` })
.from(services)
.where(sql`migrated_from IS NULL`);
console.log(`INFO: ${netNew.n} net-new services created post-migration (migrated_from IS NULL)`);
console.log(`\n${failures === 0 ? "ALL CHECKS PASSED" : `${failures} CHECK(S) FAILED`}`);
process.exit(failures === 0 ? 0 : 1);
}