Feature-gated (tiered) SaaS
Tiered SaaS where paywalls drive upgrades. Feature-gate hits followed by upgrade clicks are positive; downgrades and gate-only hits are negative.
Value metric
Plan tier / feature access level
Success event
upgrade_clicked
entity_type: account
Scale
- 260 accounts
- 4 users/account (mean)
- 8 sessions/user (mean)
- 30 days of history
Research metrics proxied
- — Gate-hit frequency
- — Advanced-feature attempt rate
- — Time between gate hits
Signal paths
Positive paths end in upgrade_clicked. Negative paths do not. Every generated event_id belonging to a path is recorded in ground_truth.json.
Positive signals (2)
gate_to_upgrade ×75 feature_gate_shown → upgrade_clicked advanced_feature_gate_upgrade ×40 advanced_feature_attempted → feature_gate_shown → upgrade_clicked Negative signals (2)
advanced_feature_denied ×65 advanced_feature_attempted → feature_gate_shown upgrade_then_downgrade ×25 upgrade_clicked → downgrade Generate this dataset
Config file: configs/posthog_feature_gated_mvp.yaml
# Dockerized Postgres (recommended for inspection)
docker compose up -d
uv run dryfit \
-c configs/posthog_feature_gated_mvp.yaml \
--dsn postgresql://dryfit_writer:dryfit_writer@127.0.0.1:54329/dryfit \
--print-summary
# Or local Postgres
./scripts/generate-local -c configs/posthog_feature_gated_mvp.yaml --print-summary Full setup instructions are in the repo's README — including local Postgres, Grafana inspection, and dataset restore.
Noise parameters
DryFit injects realistic noise on top of the generated signal paths. These probabilities are per-event. Noise never touches rows referenced by ground_truth.json — your scoring logic can trust the truth file is exact.
Other scenarios
Combined coverage (all models)
→ upgrade_clicked
Union of event types across all business models
Contact / record-based SaaS
→ contact_created
Contacts, leads, subscribers, accounts managed
Credits / token-based
→ credits_purchased
Credits consumed, tokens used, compute units
Event-volume SaaS
→ custom_event_tracked
Events tracked, data points ingested, log lines
Benchmark your detector against Feature-gated (tiered) SaaS
Clone the repo, run the config, check your agent's output against ground_truth.json.
View on GitHub