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 |
|---|---|---|---|
|
Boolean |
|
Disables the Pave data path for the |
|
Boolean |
|
Disables feeder-initiated Pave mining. When |
|
Boolean (per-user) |
|
Enables the FloatMe-generated forecasts path for a specific user alongside the Pave path. When |
|
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) |
|
Enables the V2 transaction-history-based payday prediction algorithm for a specific user. When |
|
Boolean (per-user) |
|
Controls whether the V2 prediction result is returned to the caller. When |
Flag Evaluation Patterns
Global (non-user-scoped) flags
Flags like insight.pave.decom.enabled, insight.pave.decom.feeder.enabled, and insight.income_detection.ml.enabled apply globally — they are evaluated with GetFeatureEnabledWithDefault(ctx, key, default) and affect all users.
Per-user flags
Flags like insights.fm_forcasts.api.send_fm_generated, insight.payday_prediction.v2.enabled, and insight.payday_prediction.v2.rollout are evaluated with the FloatMe user ID: GetFeatureEnabledForUser(ctx, key, userID, default). This allows staged rollouts targeting specific user cohorts.
Flag Interactions
| Scenario | Result |
|---|---|
|
Forecasts endpoint always returns FloatMe-generated results; Pave DynamoDB entities are not read. |
|
V2 algorithm does not run (V2 only runs during float creation). |
|
V2 runs and results are logged for comparison, but the Pave or FM Legacy result is returned to the caller. |
|
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 — Feeder decom flag gating Pave mining
-
Infrastructure — GrowthBook secret and Lambda environment configuration