Fas 2 steg 2: Inventory Trust Engine - decay-profiler och cache-jobb

This commit is contained in:
Sven (AAMOS AI)
2026-08-06 23:25:32 +07:00
parent 8ae4bf6ec3
commit bcf932d2ff
17 changed files with 18296 additions and 61 deletions
+13
View File
@@ -590,6 +590,19 @@ async function main() {
}
console.log(`[seed] ${flags.length} feature flags`);
// 7. Default trust decay profile (Fas 2 §5.2)
await db
.insert(schema.inventoryDecayProfiles)
.values({
name: "default",
description: "Standardprofil: confidence halveras efter 7 dagar, stale efter 30 dagar.",
halfLifeDays: 7,
staleAfterDays: 30,
active: true,
})
.onConflictDoNothing();
console.log("[seed] 1 default decay profile");
console.log("[seed] Klart.");
await pool.end();
}