Feature Flags
The Insight Service uses GrowthBook for feature flags. Flags are fetched from the GrowthBook SDK at Lambda startup using credentials from {environment}/growthbook in Secrets Manager. Per-user flags are evaluated with the user’s FloatMe user ID as the context attribute.
Flag Reference
| Flag Key | Type | Default | Description |
|---|---|---|---|
|
String |
|
Comma-separated list of pay frequencies whose users are sent to Pave. Read by the feeder and replay feeder to gate uploads, deletions, and the |
|
Boolean |
|
Enables the SageMaker ML model as the primary income detection method. When |
|
Number |
|
Percentage of income detection requests to route through the ML model (0–100). Used for gradual ML rollout. A value of |
|
Boolean (per-user) |
|
Rollout control for the pay-frequency gate. When |
Flag Evaluation Patterns
Global (non-user-scoped) flags
Flags like insight.income_detection.ml.enabled apply globally — they are evaluated with GetFeatureEnabledWithDefault(ctx, key, default) and affect all users.
insight.pave.upload.pay_frequencies.config is also global, but holds a string rather than a boolean: it is read with GetFeatureStringWithDefault(ctx, key, "") and its value is matched against each user’s pay frequency.
Flag Interactions
| Scenario | Result |
|---|---|
|
Pave is used for them regardless of pay frequency, and no Postgres lookup is made to decide. The payday chain is still Pave → FM V2 → FM Legacy. |
|
No Pave upload, no Pave income call. The payday chain becomes FM V2 → FM Legacy for that user. |
|
Kill switch for everyone the gate is on for; users the gate is off for are unaffected. |
|
ML endpoint is never invoked (0% of requests routed through ML). |
Related Pages
-
Forecasts & Payday — GrowthBook flags controlling forecast and payday algorithm selection
-
Income Detection — ML flag usage in the 5-method income detection pipeline
-
Pave Mining — Pay-frequency gate on Pave uploads
-
Infrastructure — GrowthBook secret and Lambda environment configuration