feat: add strict workflow taxonomy and claim badges

This commit is contained in:
732642856
2026-07-21 15:04:07 +08:00
parent 878ff96dc5
commit 3427b30fd4
7 changed files with 106 additions and 16 deletions
@@ -11,11 +11,13 @@ test("timing questions use a legal report theme and preserve a timing route hint
// When: its workflow request is projected for the Python service.
const request = projectConsultationWorkflowRequest(question, "timing");
// Then: the illegal public theme is converted to a legal report theme with a route hint.
assert.deepEqual(request, {
question: "应期与阶段问题:未来哪些阶段值得把握?",
themes: ["career"],
});
// Then: the illegal public theme is converted to a legal report theme with strict route metadata.
assert.equal(request.question, "应期与阶段问题:未来哪些阶段值得把握?");
assert.deepEqual(request.themes, ["career"]);
assert.equal(request.strictWorkflowRoute, "timing");
assert.ok(request.requiredLayers.includes("Narayana"));
assert.ok(request.requiredLayers.includes("negative holdout gate"));
assert.equal(request.claimBoundary, "candidate_day_month_window_only_until_holdout_passes");
});
test("timing input projects only legal private workflow fields", async () => {