fix(curation): explicit STARTABLE_FLOW_KEYS allowlist
Previous attempt blacklisted unstartable backfill source_contexts but swept all real published flows out too. Inverted to a positive allowlist: only flows whose _key is in STARTABLE_FLOW_KEYS reach the Hubs / Assistant. Today the canonical pr_to_po_def is the only runtime-startable flow in the tenant. New entries are added by hand once we've verified a flow actually starts via /api/runtime/transactions. Cleaner than chasing source_context strings.
This commit is contained in:
+2
-3
@@ -191,9 +191,8 @@ for (const name of flowNames) {
|
||||
}
|
||||
record("assistant_list_processes_all_startable", unstartable.length === 0, unstartable.length ? `unstartable: ${unstartable.join(", ")}` : `${flowNames.length} flows all startable`);
|
||||
|
||||
// 14. NEGATIVE: agent welcome must not claim to be an "AI agent".
|
||||
await p.locator(".hub-chip", { hasText: /Command Assistant/i }).click();
|
||||
await p.waitForTimeout(800);
|
||||
// 14. NEGATIVE: agent welcome must not claim to be an "AI agent". The Assistant
|
||||
// scene is already open from step 13, so read the first turn body directly.
|
||||
const welcome = (await p.locator(".agent-turn-agent .agent-turn-body").first().textContent()) || "";
|
||||
const honestyOk = !/\bai agent\b/i.test(welcome) || /command assistant/i.test(welcome);
|
||||
record("agent_welcome_does_not_overclaim_ai", honestyOk, welcome.slice(0, 80));
|
||||
|
||||
Reference in New Issue
Block a user