:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
feat(workflows): attach skills to the create AI task node (#92281)
Harley Alexander5858fa061184
diff --git a/frontend/src/lib/components/CyclotronJob/customInputRenderers.ts b/frontend/src/lib/components/CyclotronJob/customInputRenderers.tsindex cf1a72dcc4c9..51d9f9edea0e 100644--- a/frontend/src/lib/components/CyclotronJob/customInputRenderers.ts+++ b/frontend/src/lib/components/CyclotronJob/customInputRenderers.ts@@ -47,4 +47,7 @@ export const CUSTOM_INPUT_RENDERERS: Record<signals_scout: lazyWithRetry(() => import('products/signals/frontend/components/ScoutPicker/CyclotronJobInputScoutPicker')),+ task_skills: lazyWithRetry(+ () => import('products/tasks/frontend/components/TaskSkillsPicker/CyclotronJobInputTaskSkills')+ ),}diff --git a/frontend/src/types.ts b/frontend/src/types.tsindex 19534775ba6c..5a82e6c03532 100644--- a/frontend/src/types.ts+++ b/frontend/src/types.ts@@ -7325,6 +7325,7 @@ export type CyclotronJobInputSchemaType = {| 'task_repository'| 'task_mcp_installations'| 'signals_scout'+ | 'task_skills'key: stringlabel: stringchoices?: { value: string; label: string }[]diff --git a/nodejs/src/cdp/schema/cyclotron.ts b/nodejs/src/cdp/schema/cyclotron.tsindex 14e928bfc06d..a2687757538c 100644--- a/nodejs/src/cdp/schema/cyclotron.ts+++ b/nodejs/src/cdp/schema/cyclotron.ts@@ -33,6 +33,7 @@ export const CyclotronJobInputSchemaTypeSchema = z.object({'task_repository','task_mcp_installations','signals_scout',+ 'task_skills',]),key: z.string(),label: z.string(),diff --git a/nodejs/src/cdp/templates/_destinations/posthog_tasks/posthog-create-task.template.test.ts b/nodejs/src/cdp/templates/_destinations/posthog_tasks/posthog-create-task.template.test.tsindex 2a4e215b9296..7b161591a257 100644--- a/nodejs/src/cdp/templates/_destinations/posthog_tasks/posthog-create-task.template.test.ts+++ b/nodejs/src/cdp/templates/_destinations/posthog_tasks/posthog-create-task.template.test.ts@@ -16,6 +16,7 @@ describe('posthog create task template', () => {model: { model: 'claude-sonnet-5', reasoning_effort: 'high' },repository: 'example-org/example-repo',connectors: ['0198c9f1-aaaa-0000-0000-000000000001'],+ skills: ['error-triage', 'db-runbook'],posthog_mcp_scopes: 'full',max_parallel_tasks: 3,}@@ -77,6 +78,7 @@ describe('posthog create task template', () => {reasoning_effort: 'high',repository: 'example-org/example-repo',connectors: ['0198c9f1-aaaa-0000-0000-000000000001'],+ skills: ['error-triage', 'db-runbook'],posthog_mcp_scopes: 'full',max_parallel_tasks: 3,event: defaultEventBody,diff --git a/nodejs/src/cdp/templates/_destinations/posthog_tasks/posthog-create-task.template.ts b/nodejs/src/cdp/templates/_destinations/posthog_tasks/posthog-create-task.template.tsindex 8e16de20a1a6..aa4648dcc13b 100644--- a/nodejs/src/cdp/templates/_destinations/posthog_tasks/posthog-create-task.template.ts+++ b/nodejs/src/cdp/templates/_destinations/posthog_tasks/posthog-create-task.template.ts@@ -41,6 +41,10 @@ if (not empty(inputs.connectors)) {payload.connectors := inputs.connectors}+if (not empty(inputs.skills)) {+ payload.skills := inputs.skills+}+if (not empty(inputs.posthog_mcp_scopes)) {payload.posthog_mcp_scopes := inputs.posthog_mcp_scopes}@@ -117,6 +121,15 @@ return response.bodydescription:'MCP servers the agent can use. Only servers shared with everyone in this project can be selected.',},+ {+ key: 'skills',+ type: 'task_skills',+ label: 'Skills',+ secret: false,+ required: false,+ description:+ 'Skills from your project’s skills store. The agent gets a short summary of each one and reads the full skill when it needs it. Always the latest saved version.',+ },{key: 'posthog_mcp_scopes',type: 'choice',diff --git a/nodejs/src/cdp/types.ts b/nodejs/src/cdp/types.tsindex 090c6dd97315..7b8ac35b0cfe 100644--- a/nodejs/src/cdp/types.ts+++ b/nodejs/src/cdp/types.ts@@ -520,6 +520,7 @@ export type HogFunctionInputSchemaType = {| 'task_repository'| 'task_mcp_installations'| 'signals_scout'+ | 'task_skills'key: stringlabel?: stringchoices?: { value: string; label: string }[]diff --git a/nodejs/tests/fixtures/hog-bytecode/0cfa933318ae65758131e97a6b735d2b8ba1f68ba8911c88f0884fed8c653cb0.json b/nodejs/tests/fixtures/hog-bytecode/0cfa933318ae65758131e97a6b735d2b8ba1f68ba8911c88f0884fed8c653cb0.jsonnew file mode 100644index 000000000000..36c814757482--- /dev/null+++ b/nodejs/tests/fixtures/hog-bytecode/0cfa933318ae65758131e97a6b735d2b8ba1f68ba8911c88f0884fed8c653cb0.json@@ -0,0 +1 @@+["_H",1,32,"error-triage",38]diff --git a/nodejs/tests/fixtures/hog-bytecode/927a43a32605fa6558a5caedfcc70e06447fe7d81d1cf2f281a07d0abb80ffc4.json b/nodejs/tests/fixtures/hog-bytecode/927a43a32605fa6558a5caedfcc70e06447fe7d81d1cf2f281a07d0abb80ffc4.jsonnew file mode 100644index 000000000000..94559d62ffda--- /dev/null+++ b/nodejs/tests/fixtures/hog-bytecode/927a43a32605fa6558a5caedfcc70e06447fe7d81d1cf2f281a07d0abb80ffc4.json@@ -0,0 +1 @@+["_H",1,32,"db-runbook",38]diff --git a/nodejs/tests/fixtures/hog-bytecode/ae72d70b35439948ab1e0f70dbf045f89a1ee8a15b059613302cf4d8956d9586.json b/nodejs/tests/fixtures/hog-bytecode/ae72d70b35439948ab1e0f70dbf045f89a1ee8a15b059613302cf4d8956d9586.jsonnew file mode 100644index 000000000000..1dfcbb4b87d7--- /dev/null+++ b/nodejs/tests/fixtures/hog-bytecode/ae72d70b35439948ab1e0f70dbf045f89a1ee8a15b059613302cf4d8956d9586.json@@ -0,0 +1 @@+["_H",1,52,"apiErrorMessage",1,0,28,36,0,32,"body",45,32,"error",45,47,9,35,36,0,32,"body",45,32,"detail",45,47,6,35,36,0,32,"body",45,38,53,0,32,"prompt",32,"inputs",1,2,2,"empty",1,40,6,32,"Instructions are required",2,"Error",1,49,32,"prompt",32,"prompt",32,"inputs",1,2,32,"event",32,"event",1,1,42,2,32,"title",32,"inputs",1,2,2,"empty",1,5,40,11,36,1,32,"title",32,"title",32,"inputs",1,2,46,32,"model",32,"inputs",1,2,2,"empty",1,5,32,"model",32,"model",32,"inputs",1,3,2,"empty",1,5,3,2,40,40,36,1,32,"model",32,"model",32,"model",32,"inputs",1,3,46,32,"reasoning_effort",32,"model",32,"inputs",1,3,2,"empty",1,5,40,13,36,1,32,"reasoning_effort",32,"reasoning_effort",32,"model",32,"inputs",1,3,46,32,"repository",32,"inputs",1,2,2,"empty",1,5,40,11,36,1,32,"repository",32,"repository",32,"inputs",1,2,46,32,"connectors",32,"inputs",1,2,2,"empty",1,5,40,11,36,1,32,"connectors",32,"connectors",32,"inputs",1,2,46,32,"skills",32,"inputs",1,2,2,"empty",1,5,40,11,36,1,32,"skills",32,"skills",32,"inputs",1,2,46,32,"posthog_mcp_scopes",32,"inputs",1,2,2,"empty",1,5,40,11,36,1,32,"posthog_mcp_scopes",32,"posthog_mcp_scopes",32,"inputs",1,2,46,32,"max_parallel_tasks",32,"inputs",1,2,2,"empty",1,5,40,11,36,1,32,"max_parallel_tasks",32,"max_parallel_tasks",32,"inputs",1,2,46,30,32,"reply_in_slack_thread",32,"inputs",1,2,12,32,"$slack_message_received",32,"event",32,"event",1,2,11,32,"channel",32,"properties",32,"event",1,3,2,"empty",1,5,32,"ts",32,"properties",32,"event",1,3,2,"empty",1,5,3,4,40,102,36,1,32,"slack_context",32,"integration_id",32,"integration_id",32,"properties",32,"event",1,3,32,"channel",32,"channel",32,"properties",32,"event",1,3,32,"thread_ts",32,"thread_ts",32,"properties",32,"event",1,3,47,9,35,32,"ts",32,"properties",32,"event",1,3,32,"message_ts",32,"ts",32,"properties",32,"event",1,3,32,"slack_user_id",32,"user",32,"properties",32,"event",1,3,47,3,35,32,"",32,"slack_team_id",32,"slack_team_id",32,"properties",32,"event",1,3,47,3,35,32,"",32,"is_ext_shared_channel",32,"is_ext_shared_channel",32,"properties",32,"event",1,3,47,2,35,30,42,7,46,36,1,2,"postHogCreateTask",1,33,409,36,2,32,"status",45,11,40,29,32,"Task not created: ",36,2,36,0,54,1,2,"concat",2,2,"print",1,35,32,"skipped",29,32,"reason",36,2,36,0,54,1,42,2,38,33,400,36,2,32,"status",45,14,40,22,32,"Failed to create task (",36,2,32,"status",45,32,"): ",36,2,36,0,54,1,2,"concat",4,2,"Error",1,49,36,2,32,"body",45,38,35,35,35]diff --git a/posthog/cdp/test/test_validation.py b/posthog/cdp/test/test_validation.pyindex aba0a47dd150..1f5a05f17814 100644--- a/posthog/cdp/test/test_validation.py+++ b/posthog/cdp/test/test_validation.py@@ -1249,6 +1249,9 @@ class TestTaskInputTypeValidation(SimpleTestCase):("installations_not_strings", "task_mcp_installations", [1, 2], False),("signals_scout_string", "signals_scout", "signals-scout-error-tracking", True),("signals_scout_not_string", "signals_scout", 123, False),+ ("skills_string_list", "task_skills", ["error-triage", "db-runbook"], True),+ ("skills_not_list", "task_skills", "error-triage", False),+ ("skills_not_strings", "task_skills", [{"name": "error-triage"}], False),])def test_task_input_value_shapes(self, _name, schema_type, value, expect_valid):diff --git a/posthog/cdp/validation.py b/posthog/cdp/validation.pyindex 145045f56ad3..b7e735597624 100644--- a/posthog/cdp/validation.py+++ b/posthog/cdp/validation.py@@ -543,6 +543,7 @@ class InputsSchemaItemSerializer(serializers.Serializer):"task_repository","task_mcp_installations","signals_scout",+ "task_skills",])key = serializers.CharField()@@ -665,6 +666,9 @@ class InputsItemSerializer(serializers.Serializer):elif item_type == "signals_scout":if not isinstance(value, str):raise serializers.ValidationError({"input": "Value must be a scout skill name."})+ elif item_type == "task_skills":+ if not isinstance(value, list) or not all(isinstance(v, str) for v in value):+ raise serializers.ValidationError({"input": "Value must be a list of skill names."})elif item_type == "email" or item_type == "native_email":if not isinstance(value, dict):raise serializers.ValidationError({"input": f"Value must be an email object."})diff --git a/products/cdp/frontend/generated/api.schemas.ts b/products/cdp/frontend/generated/api.schemas.tsindex 542fd810bc20..6d23103258b4 100644--- a/products/cdp/frontend/generated/api.schemas.ts+++ b/products/cdp/frontend/generated/api.schemas.ts@@ -285,6 +285,7 @@ export const HogFunctionTypeEnumApi = {* * `task_repository` - task_repository* * `task_mcp_installations` - task_mcp_installations* * `signals_scout` - signals_scout+ * * `task_skills` - task_skills*/export type InputsSchemaItemTypeEnumApi = (typeof InputsSchemaItemTypeEnumApi)[keyof typeof InputsSchemaItemTypeEnumApi]@@ -310,6 +311,7 @@ export const InputsSchemaItemTypeEnumApi = {TaskRepository: 'task_repository',TaskMcpInstallations: 'task_mcp_installations',SignalsScout: 'signals_scout',+ TaskSkills: 'task_skills',} as constexport type InputsSchemaItemApiChoicesItem = { [key: string]: unknown }diff --git a/products/cdp/frontend/generated/api.zod.ts b/products/cdp/frontend/generated/api.zod.tsindex 1c45679f2481..d39b9f9a0500 100644--- a/products/cdp/frontend/generated/api.zod.ts+++ b/products/cdp/frontend/generated/api.zod.ts@@ -84,9 +84,10 @@ export const HogFunctionsCreateBody = /* @__PURE__ */ zod.object({'task_repository','task_mcp_installations','signals_scout',+ 'task_skills',]).describe(- '\* `string` - string\n\* `number` - number\n\* `boolean` - boolean\n\* `dictionary` - dictionary\n\* `choice` - choice\n\* `json` - json\n\* `integration` - integration\n\* `integration_multi` - integration_multi\n\* `integration_field` - integration_field\n\* `email` - email\n\* `native_email` - native_email\n\* `posthog_assignee` - posthog_assignee\n\* `posthog_ticket_tags` - posthog_ticket_tags\n\* `posthog_business_hours` - posthog_business_hours\n\* `non_failure_status_codes` - non_failure_status_codes\n\* `customer_analytics_account_properties` - customer_analytics_account_properties\n\* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n\* `task_model` - task_model\n\* `task_repository` - task_repository\n\* `task_mcp_installations` - task_mcp_installations\n\* `signals_scout` - signals_scout'+ '\* `string` - string\n\* `number` - number\n\* `boolean` - boolean\n\* `dictionary` - dictionary\n\* `choice` - choice\n\* `json` - json\n\* `integration` - integration\n\* `integration_multi` - integration_multi\n\* `integration_field` - integration_field\n\* `email` - email\n\* `native_email` - native_email\n\* `posthog_assignee` - posthog_assignee\n\* `posthog_ticket_tags` - posthog_ticket_tags\n\* `posthog_business_hours` - posthog_business_hours\n\* `non_failure_status_codes` - non_failure_status_codes\n\* `customer_analytics_account_properties` - customer_analytics_account_properties\n\* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n\* `task_model` - task_model\n\* `task_repository` - task_repository\n\* `task_mcp_installations` - task_mcp_installations\n\* `signals_scout` - signals_scout\n\* `task_skills` - task_skills'),key: zod.string(),label: zod.string().optional(),@@ -188,9 +189,10 @@ export const HogFunctionsCreateBody = /* @__PURE__ */ zod.object({'task_repository','task_mcp_installations','signals_scout',+ 'task_skills',]).describe(- '\* `string` - string\n\* `number` - number\n\* `boolean` - boolean\n\* `dictionary` - dictionary\n\* `choice` - choice\n\* `json` - json\n\* `integration` - integration\n\* `integration_multi` - integration_multi\n\* `integration_field` - integration_field\n\* `email` - email\n\* `native_email` - native_email\n\* `posthog_assignee` - posthog_assignee\n\* `posthog_ticket_tags` - posthog_ticket_tags\n\* `posthog_business_hours` - posthog_business_hours\n\* `non_failure_status_codes` - non_failure_status_codes\n\* `customer_analytics_account_properties` - customer_analytics_account_properties\n\* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n\* `task_model` - task_model\n\* `task_repository` - task_repository\n\* `task_mcp_installations` - task_mcp_installations\n\* `signals_scout` - signals_scout'+ '\* `string` - string\n\* `number` - number\n\* `boolean` - boolean\n\* `dictionary` - dictionary\n\* `choice` - choice\n\* `json` - json\n\* `integration` - integration\n\* `integration_multi` - integration_multi\n\* `integration_field` - integration_field\n\* `email` - email\n\* `native_email` - native_email\n\* `posthog_assignee` - posthog_assignee\n\* `posthog_ticket_tags` - posthog_ticket_tags\n\* `posthog_business_hours` - posthog_business_hours\n\* `non_failure_status_codes` - non_failure_status_codes\n\* `customer_analytics_account_properties` - customer_analytics_account_properties\n\* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n\* `task_model` - task_model\n\* `task_repository` - task_repository\n\* `task_mcp_installations` - task_mcp_installations\n\* `signals_scout` - signals_scout\n\* `task_skills` - task_skills'),key: zod.string(),label: zod.string().optional(),@@ -355,9 +357,10 @@ export const HogFunctionsUpdateBody = /* @__PURE__ */ zod.object({'task_repository','task_mcp_installations','signals_scout',+ 'task_skills',]).describe(- '\* `string` - string\n\* `number` - number\n\* `boolean` - boolean\n\* `dictionary` - dictionary\n\* `choice` - choice\n\* `json` - json\n\* `integration` - integration\n\* `integration_multi` - integration_multi\n\* `integration_field` - integration_field\n\* `email` - email\n\* `native_email` - native_email\n\* `posthog_assignee` - posthog_assignee\n\* `posthog_ticket_tags` - posthog_ticket_tags\n\* `posthog_business_hours` - posthog_business_hours\n\* `non_failure_status_codes` - non_failure_status_codes\n\* `customer_analytics_account_properties` - customer_analytics_account_properties\n\* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n\* `task_model` - task_model\n\* `task_repository` - task_repository\n\* `task_mcp_installations` - task_mcp_installations\n\* `signals_scout` - signals_scout'+ '\* `string` - string\n\* `number` - number\n\* `boolean` - boolean\n\* `dictionary` - dictionary\n\* `choice` - choice\n\* `json` - json\n\* `integration` - integration\n\* `integration_multi` - integration_multi\n\* `integration_field` - integration_field\n\* `email` - email\n\* `native_email` - native_email\n\* `posthog_assignee` - posthog_assignee\n\* `posthog_ticket_tags` - posthog_ticket_tags\n\* `posthog_business_hours` - posthog_business_hours\n\* `non_failure_status_codes` - non_failure_status_codes\n\* `customer_analytics_account_properties` - customer_analytics_account_properties\n\* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n\* `task_model` - task_model\n\* `task_repository` - task_repository\n\* `task_mcp_installations` - task_mcp_installations\n\* `signals_scout` - signals_scout\n\* `task_skills` - task_skills'),key: zod.string(),label: zod.string().optional(),@@ -459,9 +462,10 @@ export const HogFunctionsUpdateBody = /* @__PURE__ */ zod.object({'task_repository','task_mcp_installations','signals_scout',+ 'task_skills',]).describe(- '\* `string` - string\n\* `number` - number\n\* `boolean` - boolean\n\* `dictionary` - dictionary\n\* `choice` - choice\n\* `json` - json\n\* `integration` - integration\n\* `integration_multi` - integration_multi\n\* `integration_field` - integration_field\n\* `email` - email\n\* `native_email` - native_email\n\* `posthog_assignee` - posthog_assignee\n\* `posthog_ticket_tags` - posthog_ticket_tags\n\* `posthog_business_hours` - posthog_business_hours\n\* `non_failure_status_codes` - non_failure_status_codes\n\* `customer_analytics_account_properties` - customer_analytics_account_properties\n\* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n\* `task_model` - task_model\n\* `task_repository` - task_repository\n\* `task_mcp_installations` - task_mcp_installations\n\* `signals_scout` - signals_scout'+ '\* `string` - string\n\* `number` - number\n\* `boolean` - boolean\n\* `dictionary` - dictionary\n\* `choice` - choice\n\* `json` - json\n\* `integration` - integration\n\* `integration_multi` - integration_multi\n\* `integration_field` - integration_field\n\* `email` - email\n\* `native_email` - native_email\n\* `posthog_assignee` - posthog_assignee\n\* `posthog_ticket_tags` - posthog_ticket_tags\n\* `posthog_business_hours` - posthog_business_hours\n\* `non_failure_status_codes` - non_failure_status_codes\n\* `customer_analytics_account_properties` - customer_analytics_account_properties\n\* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n\* `task_model` - task_model\n\* `task_repository` - task_repository\n\* `task_mcp_installations` - task_mcp_installations\n\* `signals_scout` - signals_scout\n\* `task_skills` - task_skills'),key: zod.string(),label: zod.string().optional(),@@ -626,9 +630,10 @@ export const HogFunctionsPartialUpdateBody = /* @__PURE__ */ zod.object({'task_repository','task_mcp_installations','signals_scout',+ 'task_skills',]).describe(- '\* `string` - string\n\* `number` - number\n\* `boolean` - boolean\n\* `dictionary` - dictionary\n\* `choice` - choice\n\* `json` - json\n\* `integration` - integration\n\* `integration_multi` - integration_multi\n\* `integration_field` - integration_field\n\* `email` - email\n\* `native_email` - native_email\n\* `posthog_assignee` - posthog_assignee\n\* `posthog_ticket_tags` - posthog_ticket_tags\n\* `posthog_business_hours` - posthog_business_hours\n\* `non_failure_status_codes` - non_failure_status_codes\n\* `customer_analytics_account_properties` - customer_analytics_account_properties\n\* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n\* `task_model` - task_model\n\* `task_repository` - task_repository\n\* `task_mcp_installations` - task_mcp_installations\n\* `signals_scout` - signals_scout'+ '\* `string` - string\n\* `number` - number\n\* `boolean` - boolean\n\* `dictionary` - dictionary\n\* `choice` - choice\n\* `json` - json\n\* `integration` - integration\n\* `integration_multi` - integration_multi\n\* `integration_field` - integration_field\n\* `email` - email\n\* `native_email` - native_email\n\* `posthog_assignee` - posthog_assignee\n\* `posthog_ticket_tags` - posthog_ticket_tags\n\* `posthog_business_hours` - posthog_business_hours\n\* `non_failure_status_codes` - non_failure_status_codes\n\* `customer_analytics_account_properties` - customer_analytics_account_properties\n\* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n\* `task_model` - task_model\n\* `task_repository` - task_repository\n\* `task_mcp_installations` - task_mcp_installations\n\* `signals_scout` - signals_scout\n\* `task_skills` - task_skills'),key: zod.string(),label: zod.string().optional(),@@ -730,9 +735,10 @@ export const HogFunctionsPartialUpdateBody = /* @__PURE__ */ zod.object({'task_repository','task_mcp_installations','signals_scout',+ 'task_skills',]).describe(- '\* `string` - string\n\* `number` - number\n\* `boolean` - boolean\n\* `dictionary` - dictionary\n\* `choice` - choice\n\* `json` - json\n\* `integration` - integration\n\* `integration_multi` - integration_multi\n\* `integration_field` - integration_field\n\* `email` - email\n\* `native_email` - native_email\n\* `posthog_assignee` - posthog_assignee\n\* `posthog_ticket_tags` - posthog_ticket_tags\n\* `posthog_business_hours` - posthog_business_hours\n\* `non_failure_status_codes` - non_failure_status_codes\n\* `customer_analytics_account_properties` - customer_analytics_account_properties\n\* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n\* `task_model` - task_model\n\* `task_repository` - task_repository\n\* `task_mcp_installations` - task_mcp_installations\n\* `signals_scout` - signals_scout'+ '\* `string` - string\n\* `number` - number\n\* `boolean` - boolean\n\* `dictionary` - dictionary\n\* `choice` - choice\n\* `json` - json\n\* `integration` - integration\n\* `integration_multi` - integration_multi\n\* `integration_field` - integration_field\n\* `email` - email\n\* `native_email` - native_email\n\* `posthog_assignee` - posthog_assignee\n\* `posthog_ticket_tags` - posthog_ticket_tags\n\* `posthog_business_hours` - posthog_business_hours\n\* `non_failure_status_codes` - non_failure_status_codes\n\* `customer_analytics_account_properties` - customer_analytics_account_properties\n\* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n\* `task_model` - task_model\n\* `task_repository` - task_repository\n\* `task_mcp_installations` - task_mcp_installations\n\* `signals_scout` - signals_scout\n\* `task_skills` - task_skills'),key: zod.string(),label: zod.string().optional(),@@ -901,9 +907,10 @@ export const HogFunctionsEnableBackfillsCreateBody = /* @__PURE__ */ zod.object('task_repository','task_mcp_installations','signals_scout',+ 'task_skills',]).describe(- '\* `string` - string\n\* `number` - number\n\* `boolean` - boolean\n\* `dictionary` - dictionary\n\* `choice` - choice\n\* `json` - json\n\* `integration` - integration\n\* `integration_multi` - integration_multi\n\* `integration_field` - integration_field\n\* `email` - email\n\* `native_email` - native_email\n\* `posthog_assignee` - posthog_assignee\n\* `posthog_ticket_tags` - posthog_ticket_tags\n\* `posthog_business_hours` - posthog_business_hours\n\* `non_failure_status_codes` - non_failure_status_codes\n\* `customer_analytics_account_properties` - customer_analytics_account_properties\n\* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n\* `task_model` - task_model\n\* `task_repository` - task_repository\n\* `task_mcp_installations` - task_mcp_installations\n\* `signals_scout` - signals_scout'+ '\* `string` - string\n\* `number` - number\n\* `boolean` - boolean\n\* `dictionary` - dictionary\n\* `choice` - choice\n\* `json` - json\n\* `integration` - integration\n\* `integration_multi` - integration_multi\n\* `integration_field` - integration_field\n\* `email` - email\n\* `native_email` - native_email\n\* `posthog_assignee` - posthog_assignee\n\* `posthog_ticket_tags` - posthog_ticket_tags\n\* `posthog_business_hours` - posthog_business_hours\n\* `non_failure_status_codes` - non_failure_status_codes\n\* `customer_analytics_account_properties` - customer_analytics_account_properties\n\* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n\* `task_model` - task_model\n\* `task_repository` - task_repository\n\* `task_mcp_installations` - task_mcp_installations\n\* `signals_scout` - signals_scout\n\* `task_skills` - task_skills'),key: zod.string(),label: zod.string().optional(),@@ -1005,9 +1012,10 @@ export const HogFunctionsEnableBackfillsCreateBody = /* @__PURE__ */ zod.object('task_repository','task_mcp_installations','signals_scout',+ 'task_skills',]).describe(- '\* `string` - string\n\* `number` - number\n\* `boolean` - boolean\n\* `dictionary` - dictionary\n\* `choice` - choice\n\* `json` - json\n\* `integration` - integration\n\* `integration_multi` - integration_multi\n\* `integration_field` - integration_field\n\* `email` - email\n\* `native_email` - native_email\n\* `posthog_assignee` - posthog_assignee\n\* `posthog_ticket_tags` - posthog_ticket_tags\n\* `posthog_business_hours` - posthog_business_hours\n\* `non_failure_status_codes` - non_failure_status_codes\n\* `customer_analytics_account_properties` - customer_analytics_account_properties\n\* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n\* `task_model` - task_model\n\* `task_repository` - task_repository\n\* `task_mcp_installations` - task_mcp_installations\n\* `signals_scout` - signals_scout'+ '\* `string` - string\n\* `number` - number\n\* `boolean` - boolean\n\* `dictionary` - dictionary\n\* `choice` - choice\n\* `json` - json\n\* `integration` - integration\n\* `integration_multi` - integration_multi\n\* `integration_field` - integration_field\n\* `email` - email\n\* `native_email` - native_email\n\* `posthog_assignee` - posthog_assignee\n\* `posthog_ticket_tags` - posthog_ticket_tags\n\* `posthog_business_hours` - posthog_business_hours\n\* `non_failure_status_codes` - non_failure_status_codes\n\* `customer_analytics_account_properties` - customer_analytics_account_properties\n\* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n\* `task_model` - task_model\n\* `task_repository` - task_repository\n\* `task_mcp_installations` - task_mcp_installations\n\* `signals_scout` - signals_scout\n\* `task_skills` - task_skills'),key: zod.string(),label: zod.string().optional(),@@ -1248,9 +1256,10 @@ export const HogFunctionsInvocationsCreateBody = /* @__PURE__ */ zod.object({'task_repository','task_mcp_installations','signals_scout',+ 'task_skills',]).describe(- '\* `string` - string\n\* `number` - number\n\* `boolean` - boolean\n\* `dictionary` - dictionary\n\* `choice` - choice\n\* `json` - json\n\* `integration` - integration\n\* `integration_multi` - integration_multi\n\* `integration_field` - integration_field\n\* `email` - email\n\* `native_email` - native_email\n\* `posthog_assignee` - posthog_assignee\n\* `posthog_ticket_tags` - posthog_ticket_tags\n\* `posthog_business_hours` - posthog_business_hours\n\* `non_failure_status_codes` - non_failure_status_codes\n\* `customer_analytics_account_properties` - customer_analytics_account_properties\n\* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n\* `task_model` - task_model\n\* `task_repository` - task_repository\n\* `task_mcp_installations` - task_mcp_installations\n\* `signals_scout` - signals_scout'+ '\* `string` - string\n\* `number` - number\n\* `boolean` - boolean\n\* `dictionary` - dictionary\n\* `choice` - choice\n\* `json` - json\n\* `integration` - integration\n\* `integration_multi` - integration_multi\n\* `integration_field` - integration_field\n\* `email` - email\n\* `native_email` - native_email\n\* `posthog_assignee` - posthog_assignee\n\* `posthog_ticket_tags` - posthog_ticket_tags\n\* `posthog_business_hours` - posthog_business_hours\n\* `non_failure_status_codes` - non_failure_status_codes\n\* `customer_analytics_account_properties` - customer_analytics_account_properties\n\* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n\* `task_model` - task_model\n\* `task_repository` - task_repository\n\* `task_mcp_installations` - task_mcp_installations\n\* `signals_scout` - signals_scout\n\* `task_skills` - task_skills'),key: zod.string(),label: zod.string().optional(),@@ -1367,9 +1376,10 @@ export const HogFunctionsInvocationsCreateBody = /* @__PURE__ */ zod.object({'task_repository','task_mcp_installations','signals_scout',+ 'task_skills',]).describe(- '\* `string` - string\n\* `number` - number\n\* `boolean` - boolean\n\* `dictionary` - dictionary\n\* `choice` - choice\n\* `json` - json\n\* `integration` - integration\n\* `integration_multi` - integration_multi\n\* `integration_field` - integration_field\n\* `email` - email\n\* `native_email` - native_email\n\* `posthog_assignee` - posthog_assignee\n\* `posthog_ticket_tags` - posthog_ticket_tags\n\* `posthog_business_hours` - posthog_business_hours\n\* `non_failure_status_codes` - non_failure_status_codes\n\* `customer_analytics_account_properties` - customer_analytics_account_properties\n\* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n\* `task_model` - task_model\n\* `task_repository` - task_repository\n\* `task_mcp_installations` - task_mcp_installations\n\* `signals_scout` - signals_scout'+ '\* `string` - string\n\* `number` - number\n\* `boolean` - boolean\n\* `dictionary` - dictionary\n\* `choice` - choice\n\* `json` - json\n\* `integration` - integration\n\* `integration_multi` - integration_multi\n\* `integration_field` - integration_field\n\* `email` - email\n\* `native_email` - native_email\n\* `posthog_assignee` - posthog_assignee\n\* `posthog_ticket_tags` - posthog_ticket_tags\n\* `posthog_business_hours` - posthog_business_hours\n\* `non_failure_status_codes` - non_failure_status_codes\n\* `customer_analytics_account_properties` - customer_analytics_account_properties\n\* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n\* `task_model` - task_model\n\* `task_repository` - task_repository\n\* `task_mcp_installations` - task_mcp_installations\n\* `signals_scout` - signals_scout\n\* `task_skills` - task_skills'),key: zod.string(),label: zod.string().optional(),diff --git a/products/tasks/backend/facade/workflow_tasks.py b/products/tasks/backend/facade/workflow_tasks.pyindex a31943db9771..acd6575613df 100644--- a/products/tasks/backend/facade/workflow_tasks.py+++ b/products/tasks/backend/facade/workflow_tasks.py@@ -5,6 +5,11 @@ and starts the task through this boundary."""from products.tasks.backend.facade.contracts import WorkflowTaskRateLimits, WorkflowTaskSlackContext+from products.tasks.backend.logic.services.workflow_task_skills import (+ MAX_ATTACHED_SKILLS,+ WorkflowTaskSkillsInvalid,+ validate_skill_names,+)from products.tasks.backend.logic.services.workflow_tasks import (WorkflowTaskConnectorsInvalid,WorkflowTaskLimitExceeded,@@ -18,15 +23,18 @@ from products.tasks.backend.logic.services.workflow_tasks import ()__all__ = [+ "MAX_ATTACHED_SKILLS","WorkflowTaskConnectorsInvalid","WorkflowTaskLimitExceeded","WorkflowTaskOriginKeyConflict","WorkflowTaskOwnerIneligible","WorkflowTaskRateCapped","WorkflowTaskRateLimits",+ "WorkflowTaskSkillsInvalid","WorkflowTaskSlackContext","WorkflowTaskTeamRateCapped","WorkflowTaskUsageLimited","create_workflow_task","resolve_connectors",+ "validate_skill_names",]diff --git a/products/tasks/backend/logic/services/workflow_task_skills.py b/products/tasks/backend/logic/services/workflow_task_skills.pynew file mode 100644index 000000000000..d470049d4899--- /dev/null+++ b/products/tasks/backend/logic/services/workflow_task_skills.py@@ -0,0 +1,181 @@+"""Skills store skills attached to a workflow's "Create AI task" node.++The node stores skill names. Every fire resolves them to the latest published version and+lists them in the run's prompt, so the agent knows what is available and fetches a body over+MCP when it reaches work the skill covers. Nothing is written to disk, which is why this is a+renderer and a lookup rather than a packaging step.++Kept out of `workflow_tasks.py` so the skills store is reachable from one file in this product,+and so the renderer stays testable without a database.+"""++import structlog++from posthog.dataclasses import frozen+from posthog.models.team.team import Team+from posthog.models.user import User++from products.access_control.backend.facade.user_access_control import UserAccessControl+from products.skills.backend.api.skill_services import skill_name_is_well_formed+from products.skills.backend.models.skills import LLMSkill++logger = structlog.get_logger(__name__)++MAX_ATTACHED_SKILLS = 10++# Long enough to say when a skill applies, short enough that ten of them stay a small part of+# the prompt. The store allows 4096, and legacy rows use it.+MANIFEST_DESCRIPTION_MAX_CHARS = 300+++class WorkflowTaskSkillsInvalid(Exception):+ def __init__(self, message: str, *, invalid_names: list[str] | None = None) -> None:+ self.invalid_names = invalid_names or []+ super().__init__(message)+++@frozen+class AttachedSkill:+ """One skill resolved against the store at fire time, ready to name in the prompt."""++ name: str+ version: int+ description: str+++def select_skill_names(names: list[str] | None) -> list[str]:+ """The names to resolve, deduplicated in the order the workflow author chose them.++ A repeated name would render twice and read as two skills. The picker cannot produce one,+ but an API or MCP caller can.+ """+ if not names:+ return []+ return list(dict.fromkeys(names))[:MAX_ATTACHED_SKILLS]+++def validate_skill_names(team: Team, owner_id: int, names: list[str] | None) -> None:+ """Raise `WorkflowTaskSkillsInvalid` for a name the workflow owner cannot use.++ Called from the workflows product when a "Create AI task" action is saved, so a typo from a+ programmatic author fails at save time instead of quietly shrinking the manifest on every fire.++ An archived skill remains valid when the owner could read one of its versions. The fire path+ drops it and runs anyway, so archiving must not make its workflow unsaveable.+ """+ if not names:+ return+ if len(names) > MAX_ATTACHED_SKILLS:+ raise WorkflowTaskSkillsInvalid(f"Attach at most {MAX_ATTACHED_SKILLS} skills to one task step.")+ requested = set(names)+ valid_names = {name for name in requested if skill_name_is_well_formed(name)}+ owner = User.objects.filter(id=owner_id).first()++ readable_names: set[str] = set()+ if owner is not None and valid_names:+ access_control = UserAccessControl(user=owner, team=team)+ active_candidates = LLMSkill.objects.filter(team=team, name__in=valid_names, deleted=False, is_latest=True)+ active_names = set(active_candidates.values_list("name", flat=True))+ readable_names.update(+ access_control.filter_queryset_by_access_level(active_candidates, resource="llm_skill").values_list(+ "name", flat=True+ )+ )++ archived_only_names = valid_names - active_names+ archived_candidates = LLMSkill.objects.filter(team=team, name__in=archived_only_names, deleted=True)+ readable_names.update(+ access_control.filter_queryset_by_access_level(archived_candidates, resource="llm_skill").values_list(+ "name", flat=True+ )+ )++ unavailable = sorted(requested - readable_names)+ if unavailable:+ raise WorkflowTaskSkillsInvalid(f"Skill(s) not found or unavailable: {unavailable}", invalid_names=unavailable)+++def resolve_attached_skills(team: Team, owner: User, names: list[str] | None) -> list[AttachedSkill]:+ """The attached skills that exist and the workflow owner can read, latest version each.++ A name that resolves to nothing is dropped with a warning, never raised. The node fires on+ trigger events with nobody watching the run, so raising would turn one archived skill into a+ failure on every event until someone noticed. A skill is supplementary to a prompt that+ already stands on its own, so a run missing one is still worth doing. This matches+ `load_perspectives_for_run`, which skips a dead perspective for the same reason.++ Access control here keeps the prompt honest rather than enforcing anything: `skill-get`+ checks access itself when the agent calls. Filtering now stops the manifest promising a+ skill the agent will then be refused.+ """+ requested = select_skill_names(names)+ if not requested:+ return []+ wanted = [name for name in requested if skill_name_is_well_formed(name)]++ # Not `get_active_skill_queryset`: it annotates version-history metadata with three+ # correlated subqueries per row, none of which the manifest reads.+ readable = UserAccessControl(user=owner, team=team).filter_queryset_by_access_level(+ LLMSkill.objects.filter(team=team, name__in=wanted, deleted=False, is_latest=True),+ resource="llm_skill",+ )+ live = {+ name: (version, description)+ for name, version, description in readable.values_list("name", "version", "description")+ }++ unresolved = [name for name in requested if name not in live]+ if unresolved:+ logger.warning(+ "workflow_task_skills_unresolved",+ team_id=team.id,+ skills=unresolved,+ )++ # Author order, not database order: the workflow author chose the sequence.+ return [+ AttachedSkill(name=name, version=live[name][0], description=live[name][1] or "")+ for name in wanted+ if name in live+ ]+++def _manifest_line(skill: AttachedSkill) -> str:+ # The list gives the model one line per skill, so a description holding a newline would make+ # its tail read as the next skill's name. Collapsing every run of whitespace also folds the+ # tabs and carriage returns that survive a copy and paste into the store.+ description = " ".join(skill.description.split())[:MANIFEST_DESCRIPTION_MAX_CHARS]+ name = " ".join(skill.name.split()).replace("`", "\\`")+ if not description:+ return f"- `{name}` (v{skill.version})"+ return f"- `{name}` (v{skill.version}): {description}"+++def render_skills_manifest(skills: list[AttachedSkill]) -> str:+ """The prompt block naming the attached skills and how to read one.++ Versions are pinned to what was latest when the run was created, not to what is latest when+ the agent calls. The prompt is rendered once at fire time and the call happens minutes later,+ so an unpinned fetch could mix two versions of one procedure into a single run.++ The `call <tool> {json}` form is required because the task sandbox mounts the PostHog MCP in+ single-exec mode. It matches the skill stubs the store already ships into task sandboxes.+ """+ if not skills:+ return ""+ listing = "\n".join(_manifest_line(skill) for skill in skills)+ return (+ "This workflow attached the following skills from this project's skills store. Each one is a set\n"+ "of instructions for a specific job, and the text after its name says when it applies.\n\n"+ f"{listing}\n\n"+ "When you reach work one of these covers, read it before you act on it, and not before. Run\n"+ '`call skill-get {"skill_name": "<name>", "version": <version>}` with the PostHog MCP `exec` tool.\n'+ "Pass the version listed above, so a version published while this run is in flight cannot mix two\n"+ "versions into one procedure. If the response has a non-null `body_next_offset`, call `skill-get`\n"+ "again with the same version and `body_offset` set to that value, and append the returned `body`\n"+ "until it comes back null. If the body references bundled files, fetch each one with\n"+ '`call skill-file-get {"skill_name": "<name>", "file_path": "<path>", "version": <version>}`.\n\n'+ "A skill's instructions apply only inside the job it covers. Where a skill and the prompt for this\n"+ "run disagree, follow the prompt. If `skill-get` reports the skill was not found, or the tool is\n"+ "not available in this run, note that in your final output and continue without it."+ )diff --git a/products/tasks/backend/logic/services/workflow_tasks.py b/products/tasks/backend/logic/services/workflow_tasks.pyindex 3bc1b6c049ad..19a84da83e99 100644--- a/products/tasks/backend/logic/services/workflow_tasks.py+++ b/products/tasks/backend/logic/services/workflow_tasks.py@@ -31,6 +31,11 @@ from products.tasks.backend.logic.services.run_actor import (loop_owner_eligible_for_credentials,user_has_current_team_access,)+from products.tasks.backend.logic.services.workflow_task_skills import (+ AttachedSkill,+ render_skills_manifest,+ resolve_attached_skills,+)from products.tasks.backend.metrics import observe_workflow_task_createfrom products.tasks.backend.models import Task, TaskRunfrom products.tasks.backend.temporal.constants import WORKFLOW_RUN_IDLE_TIMEOUT_SECONDS@@ -117,6 +122,7 @@ def create_workflow_task(model: str | None = None,reasoning_effort: str | None = None,connector_ids: list[str] | None = None,+ skill_names: list[str] | None = None,posthog_mcp_scopes: PosthogMcpScopes = "read_only",max_parallel_tasks: int = 5,origin_key: str | None = None,@@ -138,6 +144,10 @@ def create_workflow_task(`origin_key` bypasses the gate and every cap. `rate_limits` can override eitherproduct default for this project; a missing value keeps the default.+ `skill_names` are skills store skills the run's prompt should name. Each resolves to its+ latest published version at create time; a name that no longer resolves is dropped rather+ than failing the create, for the same reason a Slack context is.+`event` is rendered into the agent's prompt as data. The Slack thread binding decidesthe run's lifetime: a thread-bound run stays live until its inactivity timeout, so itsreply posts and thread replies reach the agent, while a run with no binding ends@@ -197,24 +207,34 @@ def create_workflow_task(observe_workflow_task_create(reason="gate_blocked")raise WorkflowTaskUsageLimited()+ # Resolved after the gate so a capped or blocked fire never pays for the query, and outside+ # the transaction below so the skills store read never happens while holding the team lock.+ skills = resolve_attached_skills(team, gate_owner, skill_names)+# Snapshot the connector selection onto the run, next to the PostHog MCP scopes the token# minter reads back. The mounts themselves follow the same list stamped on the task as its# gateway server allowlist below, so a later edit of the workflow can't change what an# already-queued run may reach. No installation ids on purpose: see# loop_mcp_installation_allowlist for why that keeps the member path closed.- extra_run_state = {- "config_snapshot": {- "connectors": {- "mcp_gateway_server_ids": gateway_server_ids,- "posthog_mcp_scopes": posthog_mcp_scopes,- }- },+ config_snapshot: dict[str, Any] = {+ "connectors": {+ "mcp_gateway_server_ids": gateway_server_ids,+ "posthog_mcp_scopes": posthog_mcp_scopes,+ }+ }+ if skills:+ # Which version each skill was at when this run was planned. A later run of the same task+ # inherits config_snapshot without re-rendering the prompt, so this is the only record.+ config_snapshot["skills"] = [{"name": skill.name, "version": skill.version} for skill in skills]++ extra_run_state: dict[str, Any] = {+ "config_snapshot": config_snapshot,"inactivity_timeout_seconds": WORKFLOW_RUN_IDLE_TIMEOUT_SECONDS,# The boot-path override, not pending_user_message: the agent server self-delivers a# pending message at boot AND forward_pending_user_message forwards it, and the two# deliveries carry no shared idempotency id, so a cold-start background run gets the# prompt twice. The override is only read by the boot path, so it delivers once.- "initial_prompt_override": _render_run_message(prompt, event),+ "initial_prompt_override": _render_run_message(prompt, event, skills),}try:@@ -399,13 +419,20 @@ def resolve_connectors(team_id: int, connector_ids: list[str] | None) -> list[streturn gateway_server_ids-def _render_run_message(prompt: str, event: dict[str, Any] | None) -> str:+def _render_run_message(prompt: str, event: dict[str, Any] | None, skills: list[AttachedSkill] | None = None) -> str:# PostHog Code strips this established wrapper from user-message bubbles while still# sending its contents to the agent (same contract as render_loop_run_message).+ # The skills manifest belongs inside it for the same reason the framing block does: it is+ # system-generated, and it must sit above <triggering_event>, which the framing text tells+ # the agent to read as data rather than instructions.+ instructions = [WORKFLOW_FRAMING_BLOCK]+ skills_manifest = render_skills_manifest(skills or [])+ if skills_manifest:+ instructions.append(skills_manifest)message = ("<user_custom_instructions>\n""The following system-generated instructions apply to this unattended workflow run. Follow them.\n\n"- f"{WORKFLOW_FRAMING_BLOCK}\n"+ f"{'\n\n'.join(instructions)}\n""</user_custom_instructions>\n\n"f"{prompt}")diff --git a/products/tasks/backend/tests/test_workflow_task_skills.py b/products/tasks/backend/tests/test_workflow_task_skills.pynew file mode 100644index 000000000000..d841191b3d36--- /dev/null+++ b/products/tasks/backend/tests/test_workflow_task_skills.py@@ -0,0 +1,103 @@+from django.test import SimpleTestCase++from parameterized import parameterized++from products.tasks.backend.logic.services.workflow_task_skills import (+ MANIFEST_DESCRIPTION_MAX_CHARS,+ MAX_ATTACHED_SKILLS,+ AttachedSkill,+ render_skills_manifest,+ select_skill_names,+)+++def _skill(name: str, version: int = 1, description: str = "Does a thing.") -> AttachedSkill:+ return AttachedSkill(name=name, version=version, description=description)+++class TestSelectSkillNames(SimpleTestCase):+ @parameterized.expand(+ [+ ("none", None, []),+ ("empty", [], []),+ ("order_preserved", ["beta", "alpha"], ["beta", "alpha"]),+ ("duplicates_collapse_to_first_position", ["beta", "alpha", "beta"], ["beta", "alpha"]),+ ]+ )+ def test_selection_shapes(self, _name: str, names: list[str] | None, expected: list[str]) -> None:+ self.assertEqual(select_skill_names(names), expected)++ def test_selection_is_capped(self) -> None:+ names = [f"skill-{index}" for index in range(MAX_ATTACHED_SKILLS + 5)]++ selected = select_skill_names(names)++ self.assertEqual(len(selected), MAX_ATTACHED_SKILLS)+ self.assertEqual(selected, names[:MAX_ATTACHED_SKILLS])+++class TestRenderSkillsManifest(SimpleTestCase):+ def test_no_skills_renders_nothing(self) -> None:+ self.assertEqual(render_skills_manifest([]), "")++ def test_each_skill_gets_one_line_with_its_pinned_version(self) -> None:+ manifest = render_skills_manifest(+ [_skill("error-triage", version=4, description="Triage a production error spike.")]+ )++ self.assertIn("- `error-triage` (v4): Triage a production error spike.", manifest)++ def test_skills_keep_the_order_they_were_attached_in(self) -> None:+ manifest = render_skills_manifest([_skill("beta"), _skill("alpha")])++ self.assertLess(manifest.index("`beta`"), manifest.index("`alpha`"))++ def test_the_agent_is_told_to_fetch_a_body_over_mcp(self) -> None:+ manifest = render_skills_manifest([_skill("error-triage", version=4)])++ # Single-exec mode is the only shape the task sandbox's PostHog MCP accepts.+ self.assertIn("call skill-get", manifest)+ self.assertIn("body_next_offset", manifest)++ @parameterized.expand(+ [+ ("newline", "First line.\nSecond line."),+ ("carriage_return", "First line.\r\nSecond line."),+ ("tab", "First line.\tSecond line."),+ ]+ )+ def test_a_description_cannot_break_out_of_its_line(self, _name: str, description: str) -> None:+ # One line per skill is what tells the model where a name ends. A description+ # carrying a newline would make the tail read as another skill's name.+ manifest = render_skills_manifest([_skill("error-triage", description=description), _skill("db-runbook")])++ lines = [line for line in manifest.splitlines() if line.startswith("- ")]+ self.assertEqual(len(lines), 2)+ self.assertIn("First line. Second line.", lines[0])++ @parameterized.expand(+ [+ ("newline", "error\ntriage", "`error triage`"),+ ("backtick", "error`triage", "`error\\`triage`"),+ ]+ )+ def test_a_name_cannot_break_out_of_its_line(self, _name: str, skill_name: str, expected: str) -> None:+ manifest = render_skills_manifest([_skill(skill_name), _skill("db-runbook")])++ lines = [line for line in manifest.splitlines() if line.startswith("- ")]+ self.assertEqual(len(lines), 2)+ self.assertIn(expected, lines[0])++ def test_a_long_description_is_clamped(self) -> None:+ manifest = render_skills_manifest([_skill("error-triage", description="x" * 900)])++ (line,) = [line for line in manifest.splitlines() if line.startswith("- ")]+ self.assertIn("x" * MANIFEST_DESCRIPTION_MAX_CHARS, line)+ self.assertNotIn("x" * (MANIFEST_DESCRIPTION_MAX_CHARS + 1), line)++ @parameterized.expand([("empty", ""), ("whitespace_only", " \n ")])+ def test_a_skill_without_a_description_has_no_dangling_colon(self, _name: str, description: str) -> None:+ manifest = render_skills_manifest([_skill("error-triage", version=2, description=description)])++ (line,) = [line for line in manifest.splitlines() if line.startswith("- ")]+ self.assertEqual(line, "- `error-triage` (v2)")diff --git a/products/tasks/backend/tests/test_workflow_tasks_api.py b/products/tasks/backend/tests/test_workflow_tasks_api.pyindex 965ec72d21fc..54de0843d03f 100644--- a/products/tasks/backend/tests/test_workflow_tasks_api.py+++ b/products/tasks/backend/tests/test_workflow_tasks_api.py@@ -22,7 +22,9 @@ from posthog.models.organization import OrganizationMembershipfrom posthog.models.team.team import Teamfrom posthog.temporal.oauth import ARRAY_APP_CLIENT_ID_DEV+from products.skills.backend.models.skills import LLMSkillfrom products.slack_app.backend.models import SlackChannel, SlackThreadTaskMapping+from products.tasks.backend.logic.services.workflow_task_skills import MAX_ATTACHED_SKILLSfrom products.tasks.backend.logic.services.workflow_tasks import (WORKFLOW_TASK_RATE_CAP_PER_DAY,WORKFLOW_TASK_TEAM_RATE_CAP_PER_DAY,@@ -497,6 +499,88 @@ class TestWorkflowTasksAPI(APIBaseTest):assert response.status_code == status.HTTP_409_CONFLICT, response.json()assert not Task.objects.filter(hog_flow_id=self.hog_flow.id).exists()+ def _seed_skill(self, name: str, *, version: int = 1, description: str = "What it covers.", **kwargs) -> LLMSkill:+ return LLMSkill.objects.create(+ team=self.team,+ name=name,+ description=description,+ body=f"# {name}",+ version=version,+ created_by=self.user,+ **kwargs,+ )++ def test_attaches_the_latest_version_of_each_selected_skill(self) -> None:+ self._seed_skill("error-triage", version=1, description="Old wording.", is_latest=False)+ self._seed_skill("error-triage", version=2, description="Triage an error spike.")++ response = self._post({"skills": ["error-triage"]})++ assert response.status_code == status.HTTP_201_CREATED, response.json()+ run = TaskRun.objects.get(id=response.json()["run_id"])+ message = run.state["initial_prompt_override"]+ assert "- `error-triage` (v2): Triage an error spike." in message+ assert "Old wording." not in message+ assert run.state["config_snapshot"]["skills"] == [{"name": "error-triage", "version": 2}]++ def test_skips_a_skill_archived_since_the_workflow_was_saved(self) -> None:+ self._seed_skill("error-triage")+ self._seed_skill("db-runbook", deleted=True)++ response = self._post({"skills": ["error-triage", "db-runbook"]})++ # An event-triggered workflow fires unattended, so failing here would be a silent+ # outage from the moment anyone archives a skill.+ assert response.status_code == status.HTTP_201_CREATED, response.json()+ run = TaskRun.objects.get(id=response.json()["run_id"])+ assert "`error-triage`" in run.state["initial_prompt_override"]+ assert "`db-runbook`" not in run.state["initial_prompt_override"]+ assert run.state["config_snapshot"]["skills"] == [{"name": "error-triage", "version": 1}]++ @parameterized.expand([("slash", "Bad/Name"), ("newline", "bad\nname"), ("backtick", "bad`name")])+ def test_skips_a_malformed_legacy_skill(self, _name: str, skill_name: str) -> None:+ self._seed_skill("error-triage")+ self._seed_skill(skill_name)++ response = self._post({"skills": ["error-triage", skill_name]})++ assert response.status_code == status.HTTP_201_CREATED, response.json()+ run = TaskRun.objects.get(id=response.json()["run_id"])+ assert "`error-triage`" in run.state["initial_prompt_override"]+ assert skill_name not in run.state["initial_prompt_override"]+ assert run.state["config_snapshot"]["skills"] == [{"name": "error-triage", "version": 1}]++ def test_a_run_with_no_skills_carries_the_prompt_unchanged(self) -> None:+ response = self._post()++ assert response.status_code == status.HTTP_201_CREATED, response.json()+ run = TaskRun.objects.get(id=response.json()["run_id"])+ assert "skill-get" not in run.state["initial_prompt_override"]+ assert "skills store" not in run.state["initial_prompt_override"]+ assert "skills" not in run.state["config_snapshot"]++ def test_the_skills_manifest_is_an_instruction_not_event_data(self) -> None:+ self._seed_skill("error-triage")++ response = self._post({"skills": ["error-triage"], "event": {"event": "$pageview"}})++ assert response.status_code == status.HTTP_201_CREATED, response.json()+ message = TaskRun.objects.get(id=response.json()["run_id"]).state["initial_prompt_override"]+ # Inside the instruction wrapper and above the prompt. Below <triggering_event> would put+ # it in the block the framing text tells the agent to read as data.+ assert message.index("`error-triage`") < message.index("</user_custom_instructions>")+ assert message.index("`error-triage`") < message.index("look into the alert")++ def test_a_later_run_inherits_the_skill_snapshot(self) -> None:+ self._seed_skill("error-triage")+ response = self._post({"skills": ["error-triage"]})+ assert response.status_code == status.HTTP_201_CREATED, response.json()+ task = Task.objects.get(id=response.json()["id"])++ later_run = task.create_run(mode="background")++ assert later_run.state["config_snapshot"]["skills"] == [{"name": "error-triage", "version": 1}]+@patch("products.tasks.backend.logic.services.workflow_tasks.resolve_agent_gateway_server_ids")def test_a_later_run_inherits_the_connector_snapshot(self, resolve_ids) -> None:resolve_ids.return_value = {"server-1": "server-1"}@@ -844,6 +928,13 @@ class TestWorkflowTaskCreateSerializer(SimpleTestCase):("too_many_parallel_tasks", {"prompt": "p", "max_parallel_tasks": 101}, "max_parallel_tasks"),("unknown_mcp_scopes", {"prompt": "p", "posthog_mcp_scopes": "admin"}, "posthog_mcp_scopes"),("connectors_not_a_list", {"prompt": "p", "connectors": "inst-1"}, "connectors"),+ ("skills_not_a_list", {"prompt": "p", "skills": "error-triage"}, "skills"),+ ("skills_not_strings", {"prompt": "p", "skills": [{"name": "error-triage"}]}, "skills"),+ (+ "too_many_skills",+ {"prompt": "p", "skills": [f"s-{i}" for i in range(MAX_ATTACHED_SKILLS + 1)]},+ "skills",+ ),("event_not_a_dict", {"prompt": "p", "event": "boom"}, "event"),("slack_context_missing_channel",diff --git a/products/tasks/frontend/components/TaskSkillsPicker/CyclotronJobInputTaskSkills.tsx b/products/tasks/frontend/components/TaskSkillsPicker/CyclotronJobInputTaskSkills.tsxnew file mode 100644index 000000000000..a432d36deeca--- /dev/null+++ b/products/tasks/frontend/components/TaskSkillsPicker/CyclotronJobInputTaskSkills.tsx@@ -0,0 +1,64 @@+import { useActions, useValues } from 'kea'++import { LemonInputSelect } from '@posthog/lemon-ui'++import type { CustomInputRendererProps } from 'lib/components/CyclotronJob/customInputRenderers'++import { MAX_ATTACHED_SKILLS, taskSkillsPickerLogic } from './taskSkillsPickerLogic'++export default function CyclotronJobInputTaskSkills({ value, onChange }: CustomInputRendererProps): JSX.Element {+ const { skillOptions, skillOptionsLoading, skillCount, hasMoreSkills, search } = useValues(taskSkillsPickerLogic)+ const { ensureOptionsLoaded, setSearch, loadNextPage } = useActions(taskSkillsPickerLogic)++ const selectedNames: string[] = Array.isArray(value) ? value : []++ // The description goes in the tooltip rather than the row, because LemonInputSelect renders+ // the same node for a dropdown row and for the snack of a selected value. Inlining it made+ // each selected skill a two-line snack, and only after the dropdown had loaded its options,+ // so the field grew and changed shape mid-edit. Search still matches descriptions server-side.+ const options = skillOptions.map((skill) => ({+ key: skill.name,+ label: skill.name,+ tooltip: skill.description || undefined,+ }))+ // Every selected name needs an option, including one the current page or search does not+ // cover. Without it LemonInputSelect reads the value as a custom entry and offers it back as+ // `Add "error-triage"`, which reads as though the skill were not already attached. The cost is+ // that a search cannot hide a selected skill, which is the better half of the trade: the rows+ // stay available to deselect while the query narrows everything else.+ for (const name of selectedNames) {+ if (!options.some((option) => option.key === name)) {+ options.push({ key: name, label: name, tooltip: undefined })+ }+ }++ return (+ <LemonInputSelect+ mode="multiple"+ value={selectedNames}+ onChange={(names) => onChange(names)}+ options={options}+ loading={skillOptionsLoading}+ limit={MAX_ATTACHED_SKILLS}+ // The server already applied `search`; re-filtering here would hide matches whose+ // description matched but whose name did not.+ disableFiltering+ virtualized+ onFocus={ensureOptionsLoaded}+ onInputChange={setSearch}+ title={hasMoreSkills ? `Showing ${skillOptions.length} of ${skillCount} skills` : undefined}+ action={+ hasMoreSkills && !skillOptionsLoading+ ? { children: <>Load more skills</>, onClick: loadNextPage }+ : undefined+ }+ emptyStateComponent={+ <p className="text-secondary italic p-1">+ {search ? `No skills matching "${search}"` : 'No skills yet. Create one under Skills.'}+ </p>+ }+ placeholder="No skills"+ data-attr="task-skills-picker"+ />+ )+}diff --git a/products/tasks/frontend/components/TaskSkillsPicker/taskSkillsPickerLogic.test.ts b/products/tasks/frontend/components/TaskSkillsPicker/taskSkillsPickerLogic.test.tsnew file mode 100644index 000000000000..5dad5f5090fc--- /dev/null+++ b/products/tasks/frontend/components/TaskSkillsPicker/taskSkillsPickerLogic.test.ts@@ -0,0 +1,153 @@+import { expectLogic } from 'kea-test-utils'++import { initKeaTests } from '~/test/init'++import { llmSkillsList } from 'products/skills/frontend/generated/api'+import type { LLMSkillListApi } from 'products/skills/frontend/generated/api.schemas'++import { SKILL_OPTIONS_PAGE_SIZE, taskSkillsPickerLogic } from './taskSkillsPickerLogic'++jest.mock('posthog-js')+jest.mock('products/skills/frontend/generated/api')++const mockSkillsList = llmSkillsList as jest.MockedFunction<typeof llmSkillsList>++function makeSkill(name: string): LLMSkillListApi {+ return { name, description: `What ${name} covers.` } as LLMSkillListApi+}++function respondWith(names: string[], count = names.length): void {+ mockSkillsList.mockResolvedValue({ count, results: names.map(makeSkill) } as any)+}++describe('taskSkillsPickerLogic', () => {+ let logic: ReturnType<typeof taskSkillsPickerLogic.build>++ beforeEach(() => {+ initKeaTests()+ mockSkillsList.mockReset()+ respondWith(['error-triage'])+ logic = taskSkillsPickerLogic()+ logic.mount()+ })++ afterEach(() => {+ logic.unmount()+ })++ it('loads the first page once however many times focus asks for it', async () => {+ await expectLogic(logic, () => {+ logic.actions.ensureOptionsLoaded()+ }).toFinishAllListeners()+ await expectLogic(logic, () => {+ logic.actions.ensureOptionsLoaded()+ }).toFinishAllListeners()++ expect(mockSkillsList).toHaveBeenCalledTimes(1)+ })++ it('excludes categorized skills so scouts do not fill the dropdown', async () => {+ await expectLogic(logic, () => {+ logic.actions.ensureOptionsLoaded()+ }).toFinishAllListeners()++ expect(mockSkillsList).toHaveBeenCalledWith(expect.any(String), expect.objectContaining({ category: '' }))+ })++ it('collapses a burst of keystrokes into one search request', async () => {+ await expectLogic(logic, () => {+ logic.actions.setSearch('err')+ logic.actions.setSearch('erro')+ logic.actions.setSearch('error')+ }).toFinishAllListeners()++ expect(mockSkillsList).toHaveBeenCalledTimes(1)+ expect(mockSkillsList).toHaveBeenCalledWith(expect.any(String), expect.objectContaining({ search: 'error' }))+ })++ it('does not reload when the input resets to the current search', async () => {+ await expectLogic(logic, () => {+ logic.actions.ensureOptionsLoaded()+ }).toFinishAllListeners()+ await expectLogic(logic, () => {+ logic.actions.setSearch('')+ }).toFinishAllListeners()++ expect(mockSkillsList).toHaveBeenCalledTimes(1)+ })++ it('appends the next page from the end of what is already loaded', async () => {+ respondWith(['a', 'b'], 4)+ await expectLogic(logic, () => {+ logic.actions.ensureOptionsLoaded()+ }).toFinishAllListeners()++ respondWith(['c', 'd'], 4)+ await expectLogic(logic, () => {+ logic.actions.loadNextPage()+ }).toFinishAllListeners()++ expect(mockSkillsList).toHaveBeenLastCalledWith(expect.any(String), expect.objectContaining({ offset: 2 }))+ expect(logic.values.skillOptions.map((skill) => skill.name)).toEqual(['a', 'b', 'c', 'd'])+ })++ it('restarts paging at the top when the search changes', async () => {+ // Carrying the previous offset into a new search is the bug this pattern invites: it+ // both duplicates rows in the dropdown and hides matches behind an offset that no+ // longer means anything.+ respondWith(['a', 'b'], 4)+ await expectLogic(logic, () => {+ logic.actions.ensureOptionsLoaded()+ }).toFinishAllListeners()+ await expectLogic(logic, () => {+ logic.actions.loadNextPage()+ }).toFinishAllListeners()++ respondWith(['error-triage'], 1)+ await expectLogic(logic, () => {+ logic.actions.setSearch('error')+ }).toFinishAllListeners()++ expect(mockSkillsList).toHaveBeenLastCalledWith(+ expect.any(String),+ expect.objectContaining({ offset: 0, search: 'error', limit: SKILL_OPTIONS_PAGE_SIZE })+ )+ expect(logic.values.skillOptions.map((skill) => skill.name)).toEqual(['error-triage'])+ })++ it('ignores load more while a replacement search is pending', async () => {+ respondWith(['a', 'b'], 4)+ await expectLogic(logic, () => {+ logic.actions.ensureOptionsLoaded()+ }).toFinishAllListeners()++ respondWith(['error-triage'], 1)+ await expectLogic(logic, () => {+ logic.actions.setSearch('error')+ logic.actions.loadNextPage()+ }).toFinishAllListeners()++ expect(mockSkillsList).toHaveBeenCalledTimes(2)+ expect(mockSkillsList).toHaveBeenLastCalledWith(+ expect.any(String),+ expect.objectContaining({ offset: 0, search: 'error' })+ )+ expect(logic.values.skillOptions.map((skill) => skill.name)).toEqual(['error-triage'])+ })++ it('knows when more skills are waiting behind the loaded page', async () => {+ respondWith(['a', 'b'], 4)+ await expectLogic(logic, () => {+ logic.actions.ensureOptionsLoaded()+ }).toFinishAllListeners()++ expect(logic.values.hasMoreSkills).toBe(true)++ respondWith(['c', 'd'], 4)+ await expectLogic(logic, () => {+ logic.actions.loadNextPage()+ }).toFinishAllListeners()++ expect(logic.values.hasMoreSkills).toBe(false)+ })+})diff --git a/products/tasks/frontend/components/TaskSkillsPicker/taskSkillsPickerLogic.ts b/products/tasks/frontend/components/TaskSkillsPicker/taskSkillsPickerLogic.tsnew file mode 100644index 000000000000..e38f3bf953f5--- /dev/null+++ b/products/tasks/frontend/components/TaskSkillsPicker/taskSkillsPickerLogic.ts@@ -0,0 +1,169 @@+import { MakeLogicType, actions, connect, kea, listeners, path, reducers, selectors } from 'kea'+import { loaders } from 'kea-loaders'++import { projectLogic } from 'scenes/projectLogic'++import { llmSkillsList } from 'products/skills/frontend/generated/api'+import type { LLMSkillListApi } from 'products/skills/frontend/generated/api.schemas'++export const SKILL_OPTIONS_PAGE_SIZE = 50+const SEARCH_DEBOUNCE_MS = 300++/**+ * Kept in sync by hand with MAX_ATTACHED_SKILLS in+ * products/tasks/backend/logic/services/workflow_task_skills.py, which is the enforcing copy.+ * A drift here only makes the picker stop short or let a save fail validation, never lets an+ * over-cap list reach a run.+ */+export const MAX_ATTACHED_SKILLS = 10++// Generated by kea-typegen. Update if you're an agent, ignore if you're human.+export interface taskSkillsPickerLogicValues {+ currentProjectId: number | null // projectLogic+ hasLoadedOptions: boolean+ hasMoreSkills: boolean+ search: string+ skillCount: number+ skillOptions: LLMSkillListApi[]+ skillOptionsLoading: boolean+}++// Generated by kea-typegen. Update if you're an agent, ignore if you're human.+export interface taskSkillsPickerLogicActions {+ ensureOptionsLoaded: () => {+ value: true+ }+ loadNextPage: () => {+ value: true+ }+ loadOptions: ({ append, debounce, search }: { append?: boolean; debounce?: boolean; search: string }) => {+ append?: boolean+ debounce?: boolean+ search: string+ }+ loadOptionsFailure: (+ error: string,+ errorObject?: any+ ) => {+ error: string+ errorObject?: any+ }+ loadOptionsSuccess: (+ skillOptions: LLMSkillListApi[],+ payload?: {+ append?: boolean+ debounce?: boolean+ search: string+ }+ ) => {+ skillOptions: LLMSkillListApi[]+ payload?: {+ append?: boolean+ debounce?: boolean+ search: string+ }+ }+ setSearch: (search: string) => {+ search: string+ }+ setSkillCount: (count: number) => {+ count: number+ }+}++// Generated by kea-typegen. Update if you're an agent, ignore if you're human.+export interface taskSkillsPickerLogicMeta {+ __keaTypeGenInternalSelectorTypes: {+ hasMoreSkills: (skillOptions: LLMSkillListApi[], skillCount: number) => boolean+ }+}++export type taskSkillsPickerLogicType = MakeLogicType<+ taskSkillsPickerLogicValues,+ taskSkillsPickerLogicActions,+ Record<string, any>,+ taskSkillsPickerLogicMeta+>++export const taskSkillsPickerLogic = kea<taskSkillsPickerLogicType>([+ path(['products', 'tasks', 'frontend', 'components', 'TaskSkillsPicker', 'taskSkillsPickerLogic']),++ connect(() => ({+ values: [projectLogic, ['currentProjectId']],+ })),++ actions({+ setSearch: (search: string) => ({ search }),+ setSkillCount: (count: number) => ({ count }),+ ensureOptionsLoaded: true,+ loadNextPage: true,+ }),++ reducers({+ search: ['', { setSearch: (_: string, { search }: { search: string }) => search }],+ hasLoadedOptions: [false, { loadOptionsSuccess: () => true }],+ skillCount: [0, { setSkillCount: (_: number, { count }: { count: number }) => count }],+ }),++ loaders(({ values, actions }) => ({+ skillOptions: [+ [] as LLMSkillListApi[],+ {+ loadOptions: async (+ { append, debounce, search }: { append?: boolean; debounce?: boolean; search: string },+ breakpoint+ ): Promise<LLMSkillListApi[]> => {+ // Debounce keystrokes only. Opening the dropdown should not wait.+ if (debounce) {+ await breakpoint(SEARCH_DEBOUNCE_MS)+ }+ // A new search starts from the top. Reusing the previous offset would skip+ // the matches at the front of the new result set.+ const offset = append ? values.skillOptions.length : 0+ const response = await llmSkillsList(String(values.currentProjectId), {+ limit: SKILL_OPTIONS_PAGE_SIZE,+ offset,+ search: search || undefined,+ // Only uncategorized skills. The endpoint reads the parameter's presence,+ // even when empty, as "uncategorized only", which drops Signals scouts and+ // ReviewHog perspectives. Those are loaded by their own harnesses and would+ // otherwise fill the first page on a Signals team. Filtering after the fetch+ // instead would break paging, because `count` still counts what we dropped.+ // This relies on the generated `getLlmSkillsListUrl` skipping only+ // `undefined`, so an empty string still reaches the query string.+ category: '',+ })+ breakpoint()+ actions.setSkillCount(response.count ?? 0)+ const results = response.results ?? []+ return append ? [...values.skillOptions, ...results] : results+ },+ },+ ],+ })),++ selectors({+ hasMoreSkills: [+ (s) => [s.skillOptions, s.skillCount],+ (skillOptions: LLMSkillListApi[], skillCount: number): boolean => skillOptions.length < skillCount,+ ],+ }),++ listeners(({ actions, selectors, values }) => ({+ setSearch: ({ search }, _breakpoint, _action, previousState) => {+ if (search !== selectors.search(previousState)) {+ actions.loadOptions({ debounce: true, search })+ }+ },+ loadNextPage: () => {+ if (!values.skillOptionsLoading && values.hasMoreSkills) {+ actions.loadOptions({ append: true, search: values.search })+ }+ },+ ensureOptionsLoaded: () => {+ if (!values.hasLoadedOptions && !values.skillOptionsLoading) {+ actions.loadOptions({ search: values.search })+ }+ },+ })),+])diff --git a/products/workflows/backend/api/hog_flow.py b/products/workflows/backend/api/hog_flow.pyindex eb7b53d76456..2681c1eab6a0 100644--- a/products/workflows/backend/api/hog_flow.py+++ b/products/workflows/backend/api/hog_flow.py@@ -112,7 +112,12 @@ from products.messaging.backend.models import MessageTemplatefrom products.messaging.backend.unlayer import UnlayerNotConfiguredError, UnlayerRenderError, render_design_htmlfrom products.notifications.backend.facade.api import publish_resource_editedfrom products.tasks.backend.facade.model_catalogue import TASK_RUN_GATEWAY_PRODUCT, available_model_choices-from products.tasks.backend.facade.workflow_tasks import WorkflowTaskConnectorsInvalid, resolve_connectors+from products.tasks.backend.facade.workflow_tasks import (+ WorkflowTaskConnectorsInvalid,+ WorkflowTaskSkillsInvalid,+ resolve_connectors,+ validate_skill_names,+)from products.workflows.backend.api.action_redirects import compute_action_redirectsfrom products.workflows.backend.api.graph_operations import _deep_merge, apply_graph_operationsfrom products.workflows.backend.api.graph_validation import validate_graph@@ -1326,6 +1331,16 @@ class HogFlowActionSerializer(serializers.Serializer):})+ skills = (inputs.get("skills") or {}).get("value")+ if skills:+ get_team = self.context.get("get_team")+ owner_id = self.context.get("workflow_owner_id")+ if get_team is not None and owner_id is not None:+ try:+ validate_skill_names(get_team(), owner_id, skills)+ except WorkflowTaskSkillsInvalid as e:+ raise serializers.ValidationError({"inputs": {"skills": str(e)}})+repository = (inputs.get("repository") or {}).get("value")if repository and not _REPOSITORY_SHAPE.fullmatch(repository):raise serializers.ValidationError(@@ -2579,6 +2594,17 @@ class HogFlowSerializer(HogFlowMinimalSerializer):# binds `self.instance`, so fall back to the flow passed in via context so recovery still works.instance = cast(Optional[HogFlow], self.instance) or self.context.get("instance")+ # Who a "Create AI task" step runs as: the existing creator for an update, or the+ # requesting user for a brand-new flow (matches the `created_by` a create() actually+ # writes). None outside a request (internal re-saves), where the skills check is skipped.+ owner = instance.created_by if instance else None+ if owner is None:+ request = self.context.get("request")+ user = getattr(request, "user", None)+ if user is not None and getattr(user, "is_authenticated", False):+ owner = user+ self.context["workflow_owner_id"] = owner.id if owner else None+# Wait conditions the live flow already carries, so per-action validation can tell a newly# introduced clock condition from one we have been storing all along. Seeded here because# nested action validation runs during field processing, before validate() is reached.diff --git a/products/workflows/backend/api/test/test_hog_flow.py b/products/workflows/backend/api/test/test_hog_flow.pyindex 1b32e38fd4aa..b7b4bbd88d24 100644--- a/products/workflows/backend/api/test/test_hog_flow.py+++ b/products/workflows/backend/api/test/test_hog_flow.py@@ -31,6 +31,7 @@ from products.access_control.backend.models.access_control import AccessControlfrom products.actions.backend.models.action import Actionfrom products.cdp.backend.api.test.test_hog_function_templates import MOCK_NODE_TEMPLATESfrom products.cohorts.backend.models.cohort import Cohort+from products.skills.backend.models.skills import LLMSkillfrom products.workflows.backend.api.hog_flow import (HogFlowActionSerializer,_should_validate_strictly,@@ -5381,6 +5382,7 @@ def _create_task_template() -> dict:"secret": False,"required": False,},+ {"key": "skills", "type": "task_skills", "label": "Skills", "secret": False, "required": False},{"key": "max_parallel_tasks","type": "number",@@ -5598,6 +5600,80 @@ class TestCreateTaskActionValidation(APIBaseTest):assert response.status_code == status.HTTP_201_CREATED, response.json()+ def test_rejects_a_skill_name_that_does_not_exist(self):+ response = self._post_flow({"skills": {"value": ["never-was-a-skill"]}})++ assert response.status_code == status.HTTP_400_BAD_REQUEST, response.json()+ assert response.json()["attr"] == "actions__1__inputs__skills"+ assert "not found or unavailable" in response.json()["detail"]+ assert not HogFlow.objects.filter(team=self.team).exists()++ def test_rejects_a_skill_the_workflow_owner_cannot_read(self):+ self.organization.available_product_features = [+ {"key": AvailableFeature.ACCESS_CONTROL, "name": AvailableFeature.ACCESS_CONTROL},+ {"key": AvailableFeature.ROLE_BASED_ACCESS, "name": AvailableFeature.ROLE_BASED_ACCESS},+ ]+ self.organization.save()+ owner = User.objects.create_and_join(self.organization, "[email protected]", "pw")+ AccessControl.objects.create(+ team=self.team, resource="project", resource_id=str(self.team.id), access_level="member"+ )+ AccessControl.objects.create(team=self.team, resource="llm_skill", resource_id=None, access_level="none")+ LLMSkill.objects.create(+ team=self.team,+ name="restricted-skill",+ description="Private procedure.",+ body="# restricted-skill",+ created_by=self.user,+ )+ self.client.force_login(owner)++ response = self._post_flow({"skills": {"value": ["restricted-skill"]}})++ assert response.status_code == status.HTTP_400_BAD_REQUEST, response.json()+ assert response.json()["attr"] == "actions__1__inputs__skills"+ assert "not found or unavailable" in response.json()["detail"]++ @parameterized.expand([("slash", "Bad/Name"), ("newline", "bad\nname"), ("backtick", "bad`name")])+ def test_rejects_a_malformed_legacy_skill_name(self, _name, skill_name):+ LLMSkill.objects.create(+ team=self.team,+ name=skill_name,+ description="Legacy procedure.",+ body="# legacy",+ created_by=self.user,+ )++ response = self._post_flow({"skills": {"value": [skill_name]}})++ assert response.status_code == status.HTTP_400_BAD_REQUEST, response.json()+ assert response.json()["attr"] == "actions__1__inputs__skills"+ assert "not found or unavailable" in response.json()["detail"]++ def test_accepts_a_skill_name_that_exists(self):+ # products.workflows may not depend on products.skills' models directly (tach+ # boundary) - mocking at the same seam the connector test above uses.+ with patch("products.workflows.backend.api.hog_flow.validate_skill_names", return_value=None):+ response = self._post_flow({"skills": {"value": ["error-triage"]}})++ assert response.status_code == status.HTTP_201_CREATED, response.json()++ def test_still_saves_when_an_attached_skill_was_archived(self):+ # Archiving soft-deletes every version. The fire path drops an unresolvable skill and+ # runs anyway, so blocking the save here would strand a workflow nobody can edit.+ LLMSkill.objects.create(+ team=self.team,+ name="error-triage",+ description="Triage an error spike.",+ body="# error-triage",+ deleted=True,+ is_latest=False,+ )++ response = self._post_flow({"skills": {"value": ["error-triage"]}})++ assert response.status_code == status.HTTP_201_CREATED, response.json()+@parameterized.expand([("no_slash", "just-a-name"),diff --git a/products/workflows/backend/api/workflow_tasks.py b/products/workflows/backend/api/workflow_tasks.pyindex 66d2e83b3448..e94b97917159 100644--- a/products/workflows/backend/api/workflow_tasks.py+++ b/products/workflows/backend/api/workflow_tasks.py@@ -13,6 +13,7 @@ from posthog.auth import InternalAPIUser, ScopedServiceJWTAuthenticationfrom posthog.models.team.team import Teamfrom products.tasks.backend.facade.workflow_tasks import (+ MAX_ATTACHED_SKILLS,WorkflowTaskConnectorsInvalid,WorkflowTaskLimitExceeded,WorkflowTaskOriginKeyConflict,@@ -105,6 +106,16 @@ class WorkflowTaskCreateSerializer(serializers.Serializer):required=False,help_text="MCP gateway server IDs the run may mount. Each must be a server shared with everyone in the project.",)+ skills = serializers.ListField(+ child=serializers.CharField(max_length=64),+ required=False,+ max_length=MAX_ATTACHED_SKILLS,+ help_text=(+ "Skills store skill names to name in the agent's prompt. Each resolves to its latest version when the "+ "task is created, and the agent reads a body with skill-get over MCP. A name that no longer resolves "+ "is skipped rather than failing the create."+ ),+ )posthog_mcp_scopes = serializers.ChoiceField(choices=["read_only", "full"],default="read_only",@@ -198,6 +209,7 @@ class WorkflowTaskViewSet(viewsets.GenericViewSet):model=data.get("model") or None,reasoning_effort=data.get("reasoning_effort") or None,connector_ids=data.get("connectors"),+ skill_names=data.get("skills"),posthog_mcp_scopes=data["posthog_mcp_scopes"],max_parallel_tasks=data["max_parallel_tasks"],origin_key=data.get("idempotency_key"),diff --git a/products/workflows/frontend/Workflows/hogflows/hogFlowEditorLogic.tsx b/products/workflows/frontend/Workflows/hogflows/hogFlowEditorLogic.tsxindex 5583cdba9bba..7438487d6e97 100644--- a/products/workflows/frontend/Workflows/hogflows/hogFlowEditorLogic.tsx+++ b/products/workflows/frontend/Workflows/hogflows/hogFlowEditorLogic.tsx@@ -491,6 +491,7 @@ export interface hogFlowEditorLogicActions {| 'task_mcp_installations'| 'task_model'| 'task_repository'+ | 'task_skills'}[]| undefinedname: string@@ -1038,6 +1039,7 @@ export interface hogFlowEditorLogicActions {| 'task_mcp_installations'| 'task_model'| 'task_repository'+ | 'task_skills'}[]| null| undefined@@ -1344,6 +1346,7 @@ export interface hogFlowEditorLogicActions {| 'task_mcp_installations'| 'task_model'| 'task_repository'+ | 'task_skills'}[]| undefinedname: string@@ -1891,6 +1894,7 @@ export interface hogFlowEditorLogicActions {| 'task_mcp_installations'| 'task_model'| 'task_repository'+ | 'task_skills'}[]| null| undefineddiff --git a/products/workflows/frontend/Workflows/hogflows/steps/stepDelayLogic.ts b/products/workflows/frontend/Workflows/hogflows/steps/stepDelayLogic.tsindex ce711571bb47..ece17568704e 100644--- a/products/workflows/frontend/Workflows/hogflows/steps/stepDelayLogic.ts+++ b/products/workflows/frontend/Workflows/hogflows/steps/stepDelayLogic.ts@@ -337,6 +337,7 @@ export interface stepDelayLogicActions {| 'task_mcp_installations'| 'task_model'| 'task_repository'+ | 'task_skills'}[]| undefinedname: string@@ -648,6 +649,7 @@ export interface stepDelayLogicActions {| 'task_mcp_installations'| 'task_model'| 'task_repository'+ | 'task_skills'}[]| undefinedname: stringdiff --git a/products/workflows/frontend/Workflows/hogflows/steps/stepWaitUntilTimeWindowLogic.ts b/products/workflows/frontend/Workflows/hogflows/steps/stepWaitUntilTimeWindowLogic.tsindex 9a89c232e9d3..49b2dd7d274b 100644--- a/products/workflows/frontend/Workflows/hogflows/steps/stepWaitUntilTimeWindowLogic.ts+++ b/products/workflows/frontend/Workflows/hogflows/steps/stepWaitUntilTimeWindowLogic.ts@@ -262,6 +262,7 @@ export interface stepWaitUntilTimeWindowLogicActions {| 'task_mcp_installations'| 'task_model'| 'task_repository'+ | 'task_skills'}[]| undefinedname: string@@ -574,6 +575,7 @@ export interface stepWaitUntilTimeWindowLogicActions {| 'task_mcp_installations'| 'task_model'| 'task_repository'+ | 'task_skills'}[]| undefinedname: stringdiff --git a/products/workflows/frontend/Workflows/hogflows/steps/types.ts b/products/workflows/frontend/Workflows/hogflows/steps/types.tsindex 8b8f97ec32e7..c215df66e3e7 100644--- a/products/workflows/frontend/Workflows/hogflows/steps/types.ts+++ b/products/workflows/frontend/Workflows/hogflows/steps/types.ts@@ -104,6 +104,7 @@ export const CyclotronJobInputSchemaTypeSchema = z.object({'task_repository','task_mcp_installations','signals_scout',+ 'task_skills',]),key: z.string(),label: z.string(),diff --git a/products/workflows/frontend/Workflows/workflowLogic.ts b/products/workflows/frontend/Workflows/workflowLogic.tsindex 652da3757a41..a90aba4be914 100644--- a/products/workflows/frontend/Workflows/workflowLogic.ts+++ b/products/workflows/frontend/Workflows/workflowLogic.ts@@ -526,6 +526,7 @@ export interface workflowLogicActions {| 'task_mcp_installations'| 'task_model'| 'task_repository'+ | 'task_skills'}[]| undefinedname: string@@ -1170,6 +1171,7 @@ export interface workflowLogicActions {| 'task_mcp_installations'| 'task_model'| 'task_repository'+ | 'task_skills'}[]| null| undefined@@ -1379,6 +1381,7 @@ export interface workflowLogicActions {| 'task_mcp_installations'| 'task_model'| 'task_repository'+ | 'task_skills'}[]| undefinedname: string@@ -2023,6 +2026,7 @@ export interface workflowLogicActions {| 'task_mcp_installations'| 'task_model'| 'task_repository'+ | 'task_skills'}[]| null| undefined@@ -2205,6 +2209,7 @@ export interface workflowLogicActions {| 'task_mcp_installations'| 'task_model'| 'task_repository'+ | 'task_skills'}[]| undefinedname: string@@ -2583,6 +2588,7 @@ export interface workflowLogicActions {| 'task_mcp_installations'| 'task_model'| 'task_repository'+ | 'task_skills'}[]| undefinedname: stringdiff --git a/services/mcp/src/api/generated.ts b/services/mcp/src/api/generated.tsindex 9e0355119530..17b490b7242d 100644--- a/services/mcp/src/api/generated.ts+++ b/services/mcp/src/api/generated.ts@@ -42755,6 +42755,7 @@ export namespace Schemas {* * `task_repository` - task_repository* * `task_mcp_installations` - task_mcp_installations* * `signals_scout` - signals_scout+ * * `task_skills` - task_skills*/export type InputsSchemaItemTypeEnum = typeof InputsSchemaItemTypeEnum[keyof typeof InputsSchemaItemTypeEnum];@@ -42781,6 +42782,7 @@ export namespace Schemas {TaskRepository: 'task_repository',TaskMcpInstallations: 'task_mcp_installations',SignalsScout: 'signals_scout',+ TaskSkills: 'task_skills',} as const;export type InputsSchemaItemChoicesItem = { [key: string]: unknown };diff --git a/services/mcp/src/generated/cdp_functions/api.ts b/services/mcp/src/generated/cdp_functions/api.tsindex 2659a4b308f9..54c63c8a0d34 100644--- a/services/mcp/src/generated/cdp_functions/api.ts+++ b/services/mcp/src/generated/cdp_functions/api.ts@@ -109,9 +109,10 @@ export const HogFunctionsCreateBody = () => zod.object({'task_repository','task_mcp_installations','signals_scout',+ 'task_skills',]).describe(- '\* `string` - string\n\* `number` - number\n\* `boolean` - boolean\n\* `dictionary` - dictionary\n\* `choice` - choice\n\* `json` - json\n\* `integration` - integration\n\* `integration_multi` - integration_multi\n\* `integration_field` - integration_field\n\* `email` - email\n\* `native_email` - native_email\n\* `posthog_assignee` - posthog_assignee\n\* `posthog_ticket_tags` - posthog_ticket_tags\n\* `posthog_business_hours` - posthog_business_hours\n\* `non_failure_status_codes` - non_failure_status_codes\n\* `customer_analytics_account_properties` - customer_analytics_account_properties\n\* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n\* `task_model` - task_model\n\* `task_repository` - task_repository\n\* `task_mcp_installations` - task_mcp_installations\n\* `signals_scout` - signals_scout'+ '\* `string` - string\n\* `number` - number\n\* `boolean` - boolean\n\* `dictionary` - dictionary\n\* `choice` - choice\n\* `json` - json\n\* `integration` - integration\n\* `integration_multi` - integration_multi\n\* `integration_field` - integration_field\n\* `email` - email\n\* `native_email` - native_email\n\* `posthog_assignee` - posthog_assignee\n\* `posthog_ticket_tags` - posthog_ticket_tags\n\* `posthog_business_hours` - posthog_business_hours\n\* `non_failure_status_codes` - non_failure_status_codes\n\* `customer_analytics_account_properties` - customer_analytics_account_properties\n\* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n\* `task_model` - task_model\n\* `task_repository` - task_repository\n\* `task_mcp_installations` - task_mcp_installations\n\* `signals_scout` - signals_scout\n\* `task_skills` - task_skills'),key: zod.string(),label: zod.string().optional(),@@ -201,9 +202,10 @@ export const HogFunctionsCreateBody = () => zod.object({'task_repository','task_mcp_installations','signals_scout',+ 'task_skills',]).describe(- '\* `string` - string\n\* `number` - number\n\* `boolean` - boolean\n\* `dictionary` - dictionary\n\* `choice` - choice\n\* `json` - json\n\* `integration` - integration\n\* `integration_multi` - integration_multi\n\* `integration_field` - integration_field\n\* `email` - email\n\* `native_email` - native_email\n\* `posthog_assignee` - posthog_assignee\n\* `posthog_ticket_tags` - posthog_ticket_tags\n\* `posthog_business_hours` - posthog_business_hours\n\* `non_failure_status_codes` - non_failure_status_codes\n\* `customer_analytics_account_properties` - customer_analytics_account_properties\n\* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n\* `task_model` - task_model\n\* `task_repository` - task_repository\n\* `task_mcp_installations` - task_mcp_installations\n\* `signals_scout` - signals_scout'+ '\* `string` - string\n\* `number` - number\n\* `boolean` - boolean\n\* `dictionary` - dictionary\n\* `choice` - choice\n\* `json` - json\n\* `integration` - integration\n\* `integration_multi` - integration_multi\n\* `integration_field` - integration_field\n\* `email` - email\n\* `native_email` - native_email\n\* `posthog_assignee` - posthog_assignee\n\* `posthog_ticket_tags` - posthog_ticket_tags\n\* `posthog_business_hours` - posthog_business_hours\n\* `non_failure_status_codes` - non_failure_status_codes\n\* `customer_analytics_account_properties` - customer_analytics_account_properties\n\* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n\* `task_model` - task_model\n\* `task_repository` - task_repository\n\* `task_mcp_installations` - task_mcp_installations\n\* `signals_scout` - signals_scout\n\* `task_skills` - task_skills'),key: zod.string(),label: zod.string().optional(),@@ -370,9 +372,10 @@ export const HogFunctionsPartialUpdateBody = () => zod.object({'task_repository','task_mcp_installations','signals_scout',+ 'task_skills',]).describe(- '\* `string` - string\n\* `number` - number\n\* `boolean` - boolean\n\* `dictionary` - dictionary\n\* `choice` - choice\n\* `json` - json\n\* `integration` - integration\n\* `integration_multi` - integration_multi\n\* `integration_field` - integration_field\n\* `email` - email\n\* `native_email` - native_email\n\* `posthog_assignee` - posthog_assignee\n\* `posthog_ticket_tags` - posthog_ticket_tags\n\* `posthog_business_hours` - posthog_business_hours\n\* `non_failure_status_codes` - non_failure_status_codes\n\* `customer_analytics_account_properties` - customer_analytics_account_properties\n\* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n\* `task_model` - task_model\n\* `task_repository` - task_repository\n\* `task_mcp_installations` - task_mcp_installations\n\* `signals_scout` - signals_scout'+ '\* `string` - string\n\* `number` - number\n\* `boolean` - boolean\n\* `dictionary` - dictionary\n\* `choice` - choice\n\* `json` - json\n\* `integration` - integration\n\* `integration_multi` - integration_multi\n\* `integration_field` - integration_field\n\* `email` - email\n\* `native_email` - native_email\n\* `posthog_assignee` - posthog_assignee\n\* `posthog_ticket_tags` - posthog_ticket_tags\n\* `posthog_business_hours` - posthog_business_hours\n\* `non_failure_status_codes` - non_failure_status_codes\n\* `customer_analytics_account_properties` - customer_analytics_account_properties\n\* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n\* `task_model` - task_model\n\* `task_repository` - task_repository\n\* `task_mcp_installations` - task_mcp_installations\n\* `signals_scout` - signals_scout\n\* `task_skills` - task_skills'),key: zod.string(),label: zod.string().optional(),@@ -462,9 +465,10 @@ export const HogFunctionsPartialUpdateBody = () => zod.object({'task_repository','task_mcp_installations','signals_scout',+ 'task_skills',]).describe(- '\* `string` - string\n\* `number` - number\n\* `boolean` - boolean\n\* `dictionary` - dictionary\n\* `choice` - choice\n\* `json` - json\n\* `integration` - integration\n\* `integration_multi` - integration_multi\n\* `integration_field` - integration_field\n\* `email` - email\n\* `native_email` - native_email\n\* `posthog_assignee` - posthog_assignee\n\* `posthog_ticket_tags` - posthog_ticket_tags\n\* `posthog_business_hours` - posthog_business_hours\n\* `non_failure_status_codes` - non_failure_status_codes\n\* `customer_analytics_account_properties` - customer_analytics_account_properties\n\* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n\* `task_model` - task_model\n\* `task_repository` - task_repository\n\* `task_mcp_installations` - task_mcp_installations\n\* `signals_scout` - signals_scout'+ '\* `string` - string\n\* `number` - number\n\* `boolean` - boolean\n\* `dictionary` - dictionary\n\* `choice` - choice\n\* `json` - json\n\* `integration` - integration\n\* `integration_multi` - integration_multi\n\* `integration_field` - integration_field\n\* `email` - email\n\* `native_email` - native_email\n\* `posthog_assignee` - posthog_assignee\n\* `posthog_ticket_tags` - posthog_ticket_tags\n\* `posthog_business_hours` - posthog_business_hours\n\* `non_failure_status_codes` - non_failure_status_codes\n\* `customer_analytics_account_properties` - customer_analytics_account_properties\n\* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n\* `task_model` - task_model\n\* `task_repository` - task_repository\n\* `task_mcp_installations` - task_mcp_installations\n\* `signals_scout` - signals_scout\n\* `task_skills` - task_skills'),key: zod.string(),label: zod.string().optional(),@@ -722,9 +726,10 @@ export const HogFunctionsInvocationsCreateBody = () => zod.object({'task_repository','task_mcp_installations','signals_scout',+ 'task_skills',]).describe(- '\* `string` - string\n\* `number` - number\n\* `boolean` - boolean\n\* `dictionary` - dictionary\n\* `choice` - choice\n\* `json` - json\n\* `integration` - integration\n\* `integration_multi` - integration_multi\n\* `integration_field` - integration_field\n\* `email` - email\n\* `native_email` - native_email\n\* `posthog_assignee` - posthog_assignee\n\* `posthog_ticket_tags` - posthog_ticket_tags\n\* `posthog_business_hours` - posthog_business_hours\n\* `non_failure_status_codes` - non_failure_status_codes\n\* `customer_analytics_account_properties` - customer_analytics_account_properties\n\* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n\* `task_model` - task_model\n\* `task_repository` - task_repository\n\* `task_mcp_installations` - task_mcp_installations\n\* `signals_scout` - signals_scout'+ '\* `string` - string\n\* `number` - number\n\* `boolean` - boolean\n\* `dictionary` - dictionary\n\* `choice` - choice\n\* `json` - json\n\* `integration` - integration\n\* `integration_multi` - integration_multi\n\* `integration_field` - integration_field\n\* `email` - email\n\* `native_email` - native_email\n\* `posthog_assignee` - posthog_assignee\n\* `posthog_ticket_tags` - posthog_ticket_tags\n\* `posthog_business_hours` - posthog_business_hours\n\* `non_failure_status_codes` - non_failure_status_codes\n\* `customer_analytics_account_properties` - customer_analytics_account_properties\n\* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n\* `task_model` - task_model\n\* `task_repository` - task_repository\n\* `task_mcp_installations` - task_mcp_installations\n\* `signals_scout` - signals_scout\n\* `task_skills` - task_skills'),key: zod.string(),label: zod.string().optional(),@@ -841,9 +846,10 @@ export const HogFunctionsInvocationsCreateBody = () => zod.object({'task_repository','task_mcp_installations','signals_scout',+ 'task_skills',]).describe(- '\* `string` - string\n\* `number` - number\n\* `boolean` - boolean\n\* `dictionary` - dictionary\n\* `choice` - choice\n\* `json` - json\n\* `integration` - integration\n\* `integration_multi` - integration_multi\n\* `integration_field` - integration_field\n\* `email` - email\n\* `native_email` - native_email\n\* `posthog_assignee` - posthog_assignee\n\* `posthog_ticket_tags` - posthog_ticket_tags\n\* `posthog_business_hours` - posthog_business_hours\n\* `non_failure_status_codes` - non_failure_status_codes\n\* `customer_analytics_account_properties` - customer_analytics_account_properties\n\* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n\* `task_model` - task_model\n\* `task_repository` - task_repository\n\* `task_mcp_installations` - task_mcp_installations\n\* `signals_scout` - signals_scout'+ '\* `string` - string\n\* `number` - number\n\* `boolean` - boolean\n\* `dictionary` - dictionary\n\* `choice` - choice\n\* `json` - json\n\* `integration` - integration\n\* `integration_multi` - integration_multi\n\* `integration_field` - integration_field\n\* `email` - email\n\* `native_email` - native_email\n\* `posthog_assignee` - posthog_assignee\n\* `posthog_ticket_tags` - posthog_ticket_tags\n\* `posthog_business_hours` - posthog_business_hours\n\* `non_failure_status_codes` - non_failure_status_codes\n\* `customer_analytics_account_properties` - customer_analytics_account_properties\n\* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n\* `task_model` - task_model\n\* `task_repository` - task_repository\n\* `task_mcp_installations` - task_mcp_installations\n\* `signals_scout` - signals_scout\n\* `task_skills` - task_skills'),key: zod.string(),label: zod.string().optional(),diff --git a/services/mcp/src/generated/error_tracking_alerts/api.ts b/services/mcp/src/generated/error_tracking_alerts/api.tsindex 518f5175b2a3..cca42c3d830c 100644--- a/services/mcp/src/generated/error_tracking_alerts/api.ts+++ b/services/mcp/src/generated/error_tracking_alerts/api.ts@@ -109,9 +109,10 @@ export const HogFunctionsCreateBody = () => zod.object({'task_repository','task_mcp_installations','signals_scout',+ 'task_skills',]).describe(- '\* `string` - string\n\* `number` - number\n\* `boolean` - boolean\n\* `dictionary` - dictionary\n\* `choice` - choice\n\* `json` - json\n\* `integration` - integration\n\* `integration_multi` - integration_multi\n\* `integration_field` - integration_field\n\* `email` - email\n\* `native_email` - native_email\n\* `posthog_assignee` - posthog_assignee\n\* `posthog_ticket_tags` - posthog_ticket_tags\n\* `posthog_business_hours` - posthog_business_hours\n\* `non_failure_status_codes` - non_failure_status_codes\n\* `customer_analytics_account_properties` - customer_analytics_account_properties\n\* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n\* `task_model` - task_model\n\* `task_repository` - task_repository\n\* `task_mcp_installations` - task_mcp_installations\n\* `signals_scout` - signals_scout'+ '\* `string` - string\n\* `number` - number\n\* `boolean` - boolean\n\* `dictionary` - dictionary\n\* `choice` - choice\n\* `json` - json\n\* `integration` - integration\n\* `integration_multi` - integration_multi\n\* `integration_field` - integration_field\n\* `email` - email\n\* `native_email` - native_email\n\* `posthog_assignee` - posthog_assignee\n\* `posthog_ticket_tags` - posthog_ticket_tags\n\* `posthog_business_hours` - posthog_business_hours\n\* `non_failure_status_codes` - non_failure_status_codes\n\* `customer_analytics_account_properties` - customer_analytics_account_properties\n\* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n\* `task_model` - task_model\n\* `task_repository` - task_repository\n\* `task_mcp_installations` - task_mcp_installations\n\* `signals_scout` - signals_scout\n\* `task_skills` - task_skills'),key: zod.string(),label: zod.string().optional(),@@ -201,9 +202,10 @@ export const HogFunctionsCreateBody = () => zod.object({'task_repository','task_mcp_installations','signals_scout',+ 'task_skills',]).describe(- '\* `string` - string\n\* `number` - number\n\* `boolean` - boolean\n\* `dictionary` - dictionary\n\* `choice` - choice\n\* `json` - json\n\* `integration` - integration\n\* `integration_multi` - integration_multi\n\* `integration_field` - integration_field\n\* `email` - email\n\* `native_email` - native_email\n\* `posthog_assignee` - posthog_assignee\n\* `posthog_ticket_tags` - posthog_ticket_tags\n\* `posthog_business_hours` - posthog_business_hours\n\* `non_failure_status_codes` - non_failure_status_codes\n\* `customer_analytics_account_properties` - customer_analytics_account_properties\n\* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n\* `task_model` - task_model\n\* `task_repository` - task_repository\n\* `task_mcp_installations` - task_mcp_installations\n\* `signals_scout` - signals_scout'+ '\* `string` - string\n\* `number` - number\n\* `boolean` - boolean\n\* `dictionary` - dictionary\n\* `choice` - choice\n\* `json` - json\n\* `integration` - integration\n\* `integration_multi` - integration_multi\n\* `integration_field` - integration_field\n\* `email` - email\n\* `native_email` - native_email\n\* `posthog_assignee` - posthog_assignee\n\* `posthog_ticket_tags` - posthog_ticket_tags\n\* `posthog_business_hours` - posthog_business_hours\n\* `non_failure_status_codes` - non_failure_status_codes\n\* `customer_analytics_account_properties` - customer_analytics_account_properties\n\* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n\* `task_model` - task_model\n\* `task_repository` - task_repository\n\* `task_mcp_installations` - task_mcp_installations\n\* `signals_scout` - signals_scout\n\* `task_skills` - task_skills'),key: zod.string(),label: zod.string().optional(),@@ -361,9 +363,10 @@ export const HogFunctionsPartialUpdateBody = () => zod.object({'task_repository','task_mcp_installations','signals_scout',+ 'task_skills',]).describe(- '\* `string` - string\n\* `number` - number\n\* `boolean` - boolean\n\* `dictionary` - dictionary\n\* `choice` - choice\n\* `json` - json\n\* `integration` - integration\n\* `integration_multi` - integration_multi\n\* `integration_field` - integration_field\n\* `email` - email\n\* `native_email` - native_email\n\* `posthog_assignee` - posthog_assignee\n\* `posthog_ticket_tags` - posthog_ticket_tags\n\* `posthog_business_hours` - posthog_business_hours\n\* `non_failure_status_codes` - non_failure_status_codes\n\* `customer_analytics_account_properties` - customer_analytics_account_properties\n\* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n\* `task_model` - task_model\n\* `task_repository` - task_repository\n\* `task_mcp_installations` - task_mcp_installations\n\* `signals_scout` - signals_scout'+ '\* `string` - string\n\* `number` - number\n\* `boolean` - boolean\n\* `dictionary` - dictionary\n\* `choice` - choice\n\* `json` - json\n\* `integration` - integration\n\* `integration_multi` - integration_multi\n\* `integration_field` - integration_field\n\* `email` - email\n\* `native_email` - native_email\n\* `posthog_assignee` - posthog_assignee\n\* `posthog_ticket_tags` - posthog_ticket_tags\n\* `posthog_business_hours` - posthog_business_hours\n\* `non_failure_status_codes` - non_failure_status_codes\n\* `customer_analytics_account_properties` - customer_analytics_account_properties\n\* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n\* `task_model` - task_model\n\* `task_repository` - task_repository\n\* `task_mcp_installations` - task_mcp_installations\n\* `signals_scout` - signals_scout\n\* `task_skills` - task_skills'),key: zod.string(),label: zod.string().optional(),@@ -453,9 +456,10 @@ export const HogFunctionsPartialUpdateBody = () => zod.object({'task_repository','task_mcp_installations','signals_scout',+ 'task_skills',]).describe(- '\* `string` - string\n\* `number` - number\n\* `boolean` - boolean\n\* `dictionary` - dictionary\n\* `choice` - choice\n\* `json` - json\n\* `integration` - integration\n\* `integration_multi` - integration_multi\n\* `integration_field` - integration_field\n\* `email` - email\n\* `native_email` - native_email\n\* `posthog_assignee` - posthog_assignee\n\* `posthog_ticket_tags` - posthog_ticket_tags\n\* `posthog_business_hours` - posthog_business_hours\n\* `non_failure_status_codes` - non_failure_status_codes\n\* `customer_analytics_account_properties` - customer_analytics_account_properties\n\* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n\* `task_model` - task_model\n\* `task_repository` - task_repository\n\* `task_mcp_installations` - task_mcp_installations\n\* `signals_scout` - signals_scout'+ '\* `string` - string\n\* `number` - number\n\* `boolean` - boolean\n\* `dictionary` - dictionary\n\* `choice` - choice\n\* `json` - json\n\* `integration` - integration\n\* `integration_multi` - integration_multi\n\* `integration_field` - integration_field\n\* `email` - email\n\* `native_email` - native_email\n\* `posthog_assignee` - posthog_assignee\n\* `posthog_ticket_tags` - posthog_ticket_tags\n\* `posthog_business_hours` - posthog_business_hours\n\* `non_failure_status_codes` - non_failure_status_codes\n\* `customer_analytics_account_properties` - customer_analytics_account_properties\n\* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n\* `task_model` - task_model\n\* `task_repository` - task_repository\n\* `task_mcp_installations` - task_mcp_installations\n\* `signals_scout` - signals_scout\n\* `task_skills` - task_skills'),key: zod.string(),label: zod.string().optional(),diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/cdp-functions-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/cdp-functions-create.jsonindex 2a37e079c7ff..76cf4e6da735 100644--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/cdp-functions-create.json+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/cdp-functions-create.json@@ -175,7 +175,7 @@]},"type": {- "description": "* `string` - string\n* `number` - number\n* `boolean` - boolean\n* `dictionary` - dictionary\n* `choice` - choice\n* `json` - json\n* `integration` - integration\n* `integration_multi` - integration_multi\n* `integration_field` - integration_field\n* `email` - email\n* `native_email` - native_email\n* `posthog_assignee` - posthog_assignee\n* `posthog_ticket_tags` - posthog_ticket_tags\n* `posthog_business_hours` - posthog_business_hours\n* `non_failure_status_codes` - non_failure_status_codes\n* `customer_analytics_account_properties` - customer_analytics_account_properties\n* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n* `task_model` - task_model\n* `task_repository` - task_repository\n* `task_mcp_installations` - task_mcp_installations\n* `signals_scout` - signals_scout",+ "description": "* `string` - string\n* `number` - number\n* `boolean` - boolean\n* `dictionary` - dictionary\n* `choice` - choice\n* `json` - json\n* `integration` - integration\n* `integration_multi` - integration_multi\n* `integration_field` - integration_field\n* `email` - email\n* `native_email` - native_email\n* `posthog_assignee` - posthog_assignee\n* `posthog_ticket_tags` - posthog_ticket_tags\n* `posthog_business_hours` - posthog_business_hours\n* `non_failure_status_codes` - non_failure_status_codes\n* `customer_analytics_account_properties` - customer_analytics_account_properties\n* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n* `task_model` - task_model\n* `task_repository` - task_repository\n* `task_mcp_installations` - task_mcp_installations\n* `signals_scout` - signals_scout\n* `task_skills` - task_skills","enum": ["string","number",@@ -197,7 +197,8 @@"task_model","task_repository","task_mcp_installations",- "signals_scout"+ "signals_scout",+ "task_skills"],"type": "string"}@@ -347,7 +348,7 @@]},"type": {- "description": "* `string` - string\n* `number` - number\n* `boolean` - boolean\n* `dictionary` - dictionary\n* `choice` - choice\n* `json` - json\n* `integration` - integration\n* `integration_multi` - integration_multi\n* `integration_field` - integration_field\n* `email` - email\n* `native_email` - native_email\n* `posthog_assignee` - posthog_assignee\n* `posthog_ticket_tags` - posthog_ticket_tags\n* `posthog_business_hours` - posthog_business_hours\n* `non_failure_status_codes` - non_failure_status_codes\n* `customer_analytics_account_properties` - customer_analytics_account_properties\n* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n* `task_model` - task_model\n* `task_repository` - task_repository\n* `task_mcp_installations` - task_mcp_installations\n* `signals_scout` - signals_scout",+ "description": "* `string` - string\n* `number` - number\n* `boolean` - boolean\n* `dictionary` - dictionary\n* `choice` - choice\n* `json` - json\n* `integration` - integration\n* `integration_multi` - integration_multi\n* `integration_field` - integration_field\n* `email` - email\n* `native_email` - native_email\n* `posthog_assignee` - posthog_assignee\n* `posthog_ticket_tags` - posthog_ticket_tags\n* `posthog_business_hours` - posthog_business_hours\n* `non_failure_status_codes` - non_failure_status_codes\n* `customer_analytics_account_properties` - customer_analytics_account_properties\n* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n* `task_model` - task_model\n* `task_repository` - task_repository\n* `task_mcp_installations` - task_mcp_installations\n* `signals_scout` - signals_scout\n* `task_skills` - task_skills","enum": ["string","number",@@ -369,7 +370,8 @@"task_model","task_repository","task_mcp_installations",- "signals_scout"+ "signals_scout",+ "task_skills"],"type": "string"}diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/cdp-functions-invocations-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/cdp-functions-invocations-create.jsonindex 60b48f72695b..aa258f41fd2e 100644--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/cdp-functions-invocations-create.json+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/cdp-functions-invocations-create.json@@ -341,7 +341,7 @@]},"type": {- "description": "* `string` - string\n* `number` - number\n* `boolean` - boolean\n* `dictionary` - dictionary\n* `choice` - choice\n* `json` - json\n* `integration` - integration\n* `integration_multi` - integration_multi\n* `integration_field` - integration_field\n* `email` - email\n* `native_email` - native_email\n* `posthog_assignee` - posthog_assignee\n* `posthog_ticket_tags` - posthog_ticket_tags\n* `posthog_business_hours` - posthog_business_hours\n* `non_failure_status_codes` - non_failure_status_codes\n* `customer_analytics_account_properties` - customer_analytics_account_properties\n* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n* `task_model` - task_model\n* `task_repository` - task_repository\n* `task_mcp_installations` - task_mcp_installations\n* `signals_scout` - signals_scout",+ "description": "* `string` - string\n* `number` - number\n* `boolean` - boolean\n* `dictionary` - dictionary\n* `choice` - choice\n* `json` - json\n* `integration` - integration\n* `integration_multi` - integration_multi\n* `integration_field` - integration_field\n* `email` - email\n* `native_email` - native_email\n* `posthog_assignee` - posthog_assignee\n* `posthog_ticket_tags` - posthog_ticket_tags\n* `posthog_business_hours` - posthog_business_hours\n* `non_failure_status_codes` - non_failure_status_codes\n* `customer_analytics_account_properties` - customer_analytics_account_properties\n* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n* `task_model` - task_model\n* `task_repository` - task_repository\n* `task_mcp_installations` - task_mcp_installations\n* `signals_scout` - signals_scout\n* `task_skills` - task_skills","enum": ["string","number",@@ -363,7 +363,8 @@"task_model","task_repository","task_mcp_installations",- "signals_scout"+ "signals_scout",+ "task_skills"],"type": "string"}@@ -533,7 +534,7 @@]},"type": {- "description": "* `string` - string\n* `number` - number\n* `boolean` - boolean\n* `dictionary` - dictionary\n* `choice` - choice\n* `json` - json\n* `integration` - integration\n* `integration_multi` - integration_multi\n* `integration_field` - integration_field\n* `email` - email\n* `native_email` - native_email\n* `posthog_assignee` - posthog_assignee\n* `posthog_ticket_tags` - posthog_ticket_tags\n* `posthog_business_hours` - posthog_business_hours\n* `non_failure_status_codes` - non_failure_status_codes\n* `customer_analytics_account_properties` - customer_analytics_account_properties\n* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n* `task_model` - task_model\n* `task_repository` - task_repository\n* `task_mcp_installations` - task_mcp_installations\n* `signals_scout` - signals_scout",+ "description": "* `string` - string\n* `number` - number\n* `boolean` - boolean\n* `dictionary` - dictionary\n* `choice` - choice\n* `json` - json\n* `integration` - integration\n* `integration_multi` - integration_multi\n* `integration_field` - integration_field\n* `email` - email\n* `native_email` - native_email\n* `posthog_assignee` - posthog_assignee\n* `posthog_ticket_tags` - posthog_ticket_tags\n* `posthog_business_hours` - posthog_business_hours\n* `non_failure_status_codes` - non_failure_status_codes\n* `customer_analytics_account_properties` - customer_analytics_account_properties\n* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n* `task_model` - task_model\n* `task_repository` - task_repository\n* `task_mcp_installations` - task_mcp_installations\n* `signals_scout` - signals_scout\n* `task_skills` - task_skills","enum": ["string","number",@@ -555,7 +556,8 @@"task_model","task_repository","task_mcp_installations",- "signals_scout"+ "signals_scout",+ "task_skills"],"type": "string"}diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/cdp-functions-partial-update.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/cdp-functions-partial-update.jsonindex 94bed77b8d38..6844283583e8 100644--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/cdp-functions-partial-update.json+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/cdp-functions-partial-update.json@@ -185,7 +185,7 @@]},"type": {- "description": "* `string` - string\n* `number` - number\n* `boolean` - boolean\n* `dictionary` - dictionary\n* `choice` - choice\n* `json` - json\n* `integration` - integration\n* `integration_multi` - integration_multi\n* `integration_field` - integration_field\n* `email` - email\n* `native_email` - native_email\n* `posthog_assignee` - posthog_assignee\n* `posthog_ticket_tags` - posthog_ticket_tags\n* `posthog_business_hours` - posthog_business_hours\n* `non_failure_status_codes` - non_failure_status_codes\n* `customer_analytics_account_properties` - customer_analytics_account_properties\n* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n* `task_model` - task_model\n* `task_repository` - task_repository\n* `task_mcp_installations` - task_mcp_installations\n* `signals_scout` - signals_scout",+ "description": "* `string` - string\n* `number` - number\n* `boolean` - boolean\n* `dictionary` - dictionary\n* `choice` - choice\n* `json` - json\n* `integration` - integration\n* `integration_multi` - integration_multi\n* `integration_field` - integration_field\n* `email` - email\n* `native_email` - native_email\n* `posthog_assignee` - posthog_assignee\n* `posthog_ticket_tags` - posthog_ticket_tags\n* `posthog_business_hours` - posthog_business_hours\n* `non_failure_status_codes` - non_failure_status_codes\n* `customer_analytics_account_properties` - customer_analytics_account_properties\n* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n* `task_model` - task_model\n* `task_repository` - task_repository\n* `task_mcp_installations` - task_mcp_installations\n* `signals_scout` - signals_scout\n* `task_skills` - task_skills","enum": ["string","number",@@ -207,7 +207,8 @@"task_model","task_repository","task_mcp_installations",- "signals_scout"+ "signals_scout",+ "task_skills"],"type": "string"}@@ -357,7 +358,7 @@]},"type": {- "description": "* `string` - string\n* `number` - number\n* `boolean` - boolean\n* `dictionary` - dictionary\n* `choice` - choice\n* `json` - json\n* `integration` - integration\n* `integration_multi` - integration_multi\n* `integration_field` - integration_field\n* `email` - email\n* `native_email` - native_email\n* `posthog_assignee` - posthog_assignee\n* `posthog_ticket_tags` - posthog_ticket_tags\n* `posthog_business_hours` - posthog_business_hours\n* `non_failure_status_codes` - non_failure_status_codes\n* `customer_analytics_account_properties` - customer_analytics_account_properties\n* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n* `task_model` - task_model\n* `task_repository` - task_repository\n* `task_mcp_installations` - task_mcp_installations\n* `signals_scout` - signals_scout",+ "description": "* `string` - string\n* `number` - number\n* `boolean` - boolean\n* `dictionary` - dictionary\n* `choice` - choice\n* `json` - json\n* `integration` - integration\n* `integration_multi` - integration_multi\n* `integration_field` - integration_field\n* `email` - email\n* `native_email` - native_email\n* `posthog_assignee` - posthog_assignee\n* `posthog_ticket_tags` - posthog_ticket_tags\n* `posthog_business_hours` - posthog_business_hours\n* `non_failure_status_codes` - non_failure_status_codes\n* `customer_analytics_account_properties` - customer_analytics_account_properties\n* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n* `task_model` - task_model\n* `task_repository` - task_repository\n* `task_mcp_installations` - task_mcp_installations\n* `signals_scout` - signals_scout\n* `task_skills` - task_skills","enum": ["string","number",@@ -379,7 +380,8 @@"task_model","task_repository","task_mcp_installations",- "signals_scout"+ "signals_scout",+ "task_skills"],"type": "string"}diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/error-tracking-alerts-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/error-tracking-alerts-create.jsonindex 935a292c0437..290ee3e7e6ce 100644--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/error-tracking-alerts-create.json+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/error-tracking-alerts-create.json@@ -175,7 +175,7 @@]},"type": {- "description": "* `string` - string\n* `number` - number\n* `boolean` - boolean\n* `dictionary` - dictionary\n* `choice` - choice\n* `json` - json\n* `integration` - integration\n* `integration_multi` - integration_multi\n* `integration_field` - integration_field\n* `email` - email\n* `native_email` - native_email\n* `posthog_assignee` - posthog_assignee\n* `posthog_ticket_tags` - posthog_ticket_tags\n* `posthog_business_hours` - posthog_business_hours\n* `non_failure_status_codes` - non_failure_status_codes\n* `customer_analytics_account_properties` - customer_analytics_account_properties\n* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n* `task_model` - task_model\n* `task_repository` - task_repository\n* `task_mcp_installations` - task_mcp_installations\n* `signals_scout` - signals_scout",+ "description": "* `string` - string\n* `number` - number\n* `boolean` - boolean\n* `dictionary` - dictionary\n* `choice` - choice\n* `json` - json\n* `integration` - integration\n* `integration_multi` - integration_multi\n* `integration_field` - integration_field\n* `email` - email\n* `native_email` - native_email\n* `posthog_assignee` - posthog_assignee\n* `posthog_ticket_tags` - posthog_ticket_tags\n* `posthog_business_hours` - posthog_business_hours\n* `non_failure_status_codes` - non_failure_status_codes\n* `customer_analytics_account_properties` - customer_analytics_account_properties\n* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n* `task_model` - task_model\n* `task_repository` - task_repository\n* `task_mcp_installations` - task_mcp_installations\n* `signals_scout` - signals_scout\n* `task_skills` - task_skills","enum": ["string","number",@@ -197,7 +197,8 @@"task_model","task_repository","task_mcp_installations",- "signals_scout"+ "signals_scout",+ "task_skills"],"type": "string"}@@ -347,7 +348,7 @@]},"type": {- "description": "* `string` - string\n* `number` - number\n* `boolean` - boolean\n* `dictionary` - dictionary\n* `choice` - choice\n* `json` - json\n* `integration` - integration\n* `integration_multi` - integration_multi\n* `integration_field` - integration_field\n* `email` - email\n* `native_email` - native_email\n* `posthog_assignee` - posthog_assignee\n* `posthog_ticket_tags` - posthog_ticket_tags\n* `posthog_business_hours` - posthog_business_hours\n* `non_failure_status_codes` - non_failure_status_codes\n* `customer_analytics_account_properties` - customer_analytics_account_properties\n* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n* `task_model` - task_model\n* `task_repository` - task_repository\n* `task_mcp_installations` - task_mcp_installations\n* `signals_scout` - signals_scout",+ "description": "* `string` - string\n* `number` - number\n* `boolean` - boolean\n* `dictionary` - dictionary\n* `choice` - choice\n* `json` - json\n* `integration` - integration\n* `integration_multi` - integration_multi\n* `integration_field` - integration_field\n* `email` - email\n* `native_email` - native_email\n* `posthog_assignee` - posthog_assignee\n* `posthog_ticket_tags` - posthog_ticket_tags\n* `posthog_business_hours` - posthog_business_hours\n* `non_failure_status_codes` - non_failure_status_codes\n* `customer_analytics_account_properties` - customer_analytics_account_properties\n* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n* `task_model` - task_model\n* `task_repository` - task_repository\n* `task_mcp_installations` - task_mcp_installations\n* `signals_scout` - signals_scout\n* `task_skills` - task_skills","enum": ["string","number",@@ -369,7 +370,8 @@"task_model","task_repository","task_mcp_installations",- "signals_scout"+ "signals_scout",+ "task_skills"],"type": "string"}diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/error-tracking-alerts-partial-update.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/error-tracking-alerts-partial-update.jsonindex 6571e41a5296..c80cb7797aaf 100644--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/error-tracking-alerts-partial-update.json+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/error-tracking-alerts-partial-update.json@@ -185,7 +185,7 @@]},"type": {- "description": "* `string` - string\n* `number` - number\n* `boolean` - boolean\n* `dictionary` - dictionary\n* `choice` - choice\n* `json` - json\n* `integration` - integration\n* `integration_multi` - integration_multi\n* `integration_field` - integration_field\n* `email` - email\n* `native_email` - native_email\n* `posthog_assignee` - posthog_assignee\n* `posthog_ticket_tags` - posthog_ticket_tags\n* `posthog_business_hours` - posthog_business_hours\n* `non_failure_status_codes` - non_failure_status_codes\n* `customer_analytics_account_properties` - customer_analytics_account_properties\n* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n* `task_model` - task_model\n* `task_repository` - task_repository\n* `task_mcp_installations` - task_mcp_installations\n* `signals_scout` - signals_scout",+ "description": "* `string` - string\n* `number` - number\n* `boolean` - boolean\n* `dictionary` - dictionary\n* `choice` - choice\n* `json` - json\n* `integration` - integration\n* `integration_multi` - integration_multi\n* `integration_field` - integration_field\n* `email` - email\n* `native_email` - native_email\n* `posthog_assignee` - posthog_assignee\n* `posthog_ticket_tags` - posthog_ticket_tags\n* `posthog_business_hours` - posthog_business_hours\n* `non_failure_status_codes` - non_failure_status_codes\n* `customer_analytics_account_properties` - customer_analytics_account_properties\n* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n* `task_model` - task_model\n* `task_repository` - task_repository\n* `task_mcp_installations` - task_mcp_installations\n* `signals_scout` - signals_scout\n* `task_skills` - task_skills","enum": ["string","number",@@ -207,7 +207,8 @@"task_model","task_repository","task_mcp_installations",- "signals_scout"+ "signals_scout",+ "task_skills"],"type": "string"}@@ -357,7 +358,7 @@]},"type": {- "description": "* `string` - string\n* `number` - number\n* `boolean` - boolean\n* `dictionary` - dictionary\n* `choice` - choice\n* `json` - json\n* `integration` - integration\n* `integration_multi` - integration_multi\n* `integration_field` - integration_field\n* `email` - email\n* `native_email` - native_email\n* `posthog_assignee` - posthog_assignee\n* `posthog_ticket_tags` - posthog_ticket_tags\n* `posthog_business_hours` - posthog_business_hours\n* `non_failure_status_codes` - non_failure_status_codes\n* `customer_analytics_account_properties` - customer_analytics_account_properties\n* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n* `task_model` - task_model\n* `task_repository` - task_repository\n* `task_mcp_installations` - task_mcp_installations\n* `signals_scout` - signals_scout",+ "description": "* `string` - string\n* `number` - number\n* `boolean` - boolean\n* `dictionary` - dictionary\n* `choice` - choice\n* `json` - json\n* `integration` - integration\n* `integration_multi` - integration_multi\n* `integration_field` - integration_field\n* `email` - email\n* `native_email` - native_email\n* `posthog_assignee` - posthog_assignee\n* `posthog_ticket_tags` - posthog_ticket_tags\n* `posthog_business_hours` - posthog_business_hours\n* `non_failure_status_codes` - non_failure_status_codes\n* `customer_analytics_account_properties` - customer_analytics_account_properties\n* `customer_analytics_account_relationships` - customer_analytics_account_relationships\n* `task_model` - task_model\n* `task_repository` - task_repository\n* `task_mcp_installations` - task_mcp_installations\n* `signals_scout` - signals_scout\n* `task_skills` - task_skills","enum": ["string","number",@@ -379,7 +380,8 @@"task_model","task_repository","task_mcp_installations",- "signals_scout"+ "signals_scout",+ "task_skills"],"type": "string"}diff --git a/tach.toml b/tach.tomlindex dc2c3a3753de..06b0bbb3ca6f 100644--- a/tach.toml+++ b/tach.toml@@ -869,6 +869,9 @@ depends_on = ["products.notifications","products.posthog_ai","products.signals",+ # Skills attached to workflow task nodes are read at fire time. The skills+ # product has no facade, so this matches how review_hog and signals reach LLMSkill.+ "products.skills","products.slack_app", "products.access_control",]layer = "modules"