Skip to content

: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.

chore(tasks): raise the signals implementation spend cap to $20 (#95939)

posthog[bot]72d3dd0ebce3
diff --git a/posthog/settings/temporal.py b/posthog/settings/temporal.py
index fa8b9eb40dd2..36e2cd0b9bf7 100644
--- a/posthog/settings/temporal.py
+++ b/posthog/settings/temporal.py
@@ -84,7 +84,7 @@ SANDBOX_AI_GATEWAY_TOKEN_CAP_USD_OVERRIDES: str = get_from_env("SANDBOX_AI_GATEW
# behind a cap that binds mid-run. Suggestion runs stay on the default.
SANDBOX_AI_GATEWAY_TOKEN_CAP_USD_PRODUCT_OVERRIDES: str = get_from_env(
"SANDBOX_AI_GATEWAY_TOKEN_CAP_USD_PRODUCT_OVERRIDES",
- '{"signals_implementation": "15", "signals_inbox": "75", "signals_chat": "30"}',
+ '{"signals_implementation": "20", "signals_inbox": "75", "signals_chat": "30"}',
)
SANDBOX_AI_GATEWAY_TOKEN_TTL_SECONDS: int = get_from_env("SANDBOX_AI_GATEWAY_TOKEN_TTL_SECONDS", 0, type_cast=int)
SANDBOX_MCP_URL: str | None = get_from_env("SANDBOX_MCP_URL", None, optional=True)
diff --git a/products/tasks/backend/temporal/process_task/tests/test_ai_gateway_token.py b/products/tasks/backend/temporal/process_task/tests/test_ai_gateway_token.py
index 6f725de91882..00da8a75351a 100644
--- a/products/tasks/backend/temporal/process_task/tests/test_ai_gateway_token.py
+++ b/products/tasks/backend/temporal/process_task/tests/test_ai_gateway_token.py
@@ -546,7 +546,12 @@ class TestUserPinAndCapOverride:
@pytest.mark.parametrize(
"ai_product,expected_cap",
- [("signals_inbox", "75"), ("signals_chat", "30"), ("signals_scout_suggestions", "10")],
+ [
+ ("signals_implementation", "20"),
+ ("signals_inbox", "75"),
+ ("signals_chat", "30"),
+ ("signals_scout_suggestions", "10"),
+ ],
)
# A cap key that stops matching the resolver's product fails here instead of quietly
# dropping to the default. Suggestions carry no entry and take that default on purpose.