: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(experiments): serve health findings from their own endpoint (#115457)
Marcel Poelker44bce6e61736
diff --git a/frontend/snapshots.yml b/frontend/snapshots.ymlindex 8a662f3221da..8149cad0d02e 100644--- a/frontend/snapshots.yml+++ b/frontend/snapshots.yml@@ -10419,177 +10419,177 @@ snapshots:scenes-app-events-mcp-tool-calls--mcp-tool-calls--light:hash: v1.k794b7964.a70db27155e0ba6979890a1d3b328a91d7f2cae9e89d37cb7346fa2d79aaec6d.ybMAg6DfJ6iwBrtLWjqVo9qC-a412ihqd6H6KiAYkgcscenes-app-experiments--draft-experiment--dark:- hash: v1.k794b7964.8567c7de46a276827ae397d60c8f8212d1489413aa8cde4349373904b5f0a1f2.1Zas9UmpkjXnqKch9wSTqnVYPk96zd_AxDjW5ErgedA+ hash: v1.k794b7964.7c59ca54afcd73d10c29d9a0c48840fc25b7ce8ff3e98f364a0f5b41d6970540.5yFKLoLG68uVzxl6VegqEVbccgtpqiXLQrOVmcft2iUscenes-app-experiments--draft-experiment--light:- hash: v1.k794b7964.b50208dcd673a881bd8ea9be4aefbfb7312d548397f800b8450ad54be5efca4c.zEPA7Gg8lrCW6B9bBy_JJAJsQEhYavo84v0Xlt6mTNs+ hash: v1.k794b7964.a11383b23d57f11e3546c79f003e82aa4446b79066d8c64e53712246d53f1923.XFfY1pqa526biFd8qW3mJu92pY3fgadcZa5PgxMwTrMscenes-app-experiments--experiment-asymmetric-intervals--dark:- hash: v1.k794b7964.9503cb8e56ec366b3af2944fe7cf817676397a17eed8c02d4673da57369db86f.crkLxn1p_Mt5h9pk5DKd29I8rbKJ0q8PnDW8swxR5os+ hash: v1.k794b7964.566c8dd0f12df53f9e5518100e75202987c8a2e3f9307dfa539938fe9f4b326a.1Xow59fzZHtBbaSgjyC9vmBlgGFzwawTxXg8oWZ2zf8scenes-app-experiments--experiment-asymmetric-intervals--light:- hash: v1.k794b7964.46dff0e253905ccd87ea57330cd95e07e608780586ada07cdf68ea2f551ecb09.rdV9qyoU3V0ARSj4xvOT1oxxqpMwzbz4WT95BxOxxlg+ hash: v1.k794b7964.3a3c740eb8d61101cb85de455485416bad9d30da54f0fe0f812e6c07022c1a8a.9CyFixuU2RH7j9mbuQNW4z55iNEV6-I9loIylvCFiUcscenes-app-experiments--experiment-code-tab--dark:- hash: v1.k794b7964.0e2072f498c7478351096512b75aa069d4430f33272df347f48f9669b04e9f29.WQ5XMHuX8JRqT_Njy7AkPqLo1aqQyj8qkm2Ao7GV7MU+ hash: v1.k794b7964.978c1007dc3c6e994b34b5509f3f9897908aa70d0f5b02333d11358a9df855e6.NrOXbsz_2Be9oSfuEDI6WzIi15CRsLGs3P_T6SXFG78scenes-app-experiments--experiment-code-tab--light:- hash: v1.k794b7964.56dc513e8e16389385eee4851364c1665014fbc00a56dafd55a3fbb48f9b30ea.gu2gM8R5ufbtCONKIeQw-ep-T3BCjdew13Ft40J1lFY+ hash: v1.k794b7964.3b30a6598c30593243aa5e511ba85b4029103d9f5c328a3d3a47a4c1dd9169fc.Q1QaoiqrgkOe9ZnXKDug-Lx27gjOSD5eASLrSQQuOAgscenes-app-experiments--experiment-exposures-expanded--dark:- hash: v1.k794b7964.2476671a4fbbb6261c27f774dd8c4a8ccf80ebe4c4462fefc7f54234d8236b33.iOam7pLvhu7bWiF6w_54GtS9K_LEZ_RVCximpiMbcJo+ hash: v1.k794b7964.e4144a38afb473cd7bcf4cd3ea984b2bc9ccb770ba3590bfae2afeb76940c038.9kCqbw6dP47X34grLy-DzTuhbURRuPQurIAZlFrgm0kscenes-app-experiments--experiment-exposures-expanded--light:- hash: v1.k794b7964.fcaf67bc1777521eb74db5169bf6c11b2aad41650634ac76dc53f87b8859e795.0N7NO_E6XT8j0BBo3VpuhxGB_8dIx6EV40vP9LO27T4+ hash: v1.k794b7964.e65afece682260ed65807136b3dd4f843a9ca10acd819571270d0516dd783755.aA0_aQnHkBj-rIc8LxLyaL3FbTuqEnZtF8SgdvCbP9gscenes-app-experiments--experiment-frequentist-five-variants--dark:- hash: v1.k794b7964.e32d9f697604eea7a395a501d41188e830cfc88acb4c35f5095cf59bd9ffb9ce.kxaATmTJfthmg3nWXmONx8j15fVy5VOzHxWYJv8P_1A+ hash: v1.k794b7964.42e30222de652d8b3afa6b7ae2d9c82cb37b9770fabc063567aca06ff930fec7.9acpbCWKeYF8eVZELxNrLQrtNjNNa_ZCuhkXe21nvrEscenes-app-experiments--experiment-frequentist-five-variants--light:- hash: v1.k794b7964.b3d31fe5db1ec92976982048eba355a17f3515dc7b0bc88f03be82645fd8098f.eMQi51Xwi7Oyo7G3Vm0ACwx38TJw41AZrF4hmUUFKLU+ hash: v1.k794b7964.6decc5b26cd7cfc1f3de83ba1d8f0f3eb1a16900234378be469ff5aea3e7b24e.jABg_8UXkeSJNoVDNXEXEQYZWz23THUZ3oFVD27qtp8scenes-app-experiments--experiment-frequentist-two-variants--dark:- hash: v1.k794b7964.a25f6387d22c77967cb2b9acfe1648dd07722e2d0ed45644f3fe62faf54a2b29.-XavqItCBU9Ig1IyH-rs_pnCy0QSIQWOqL34B5Nv9O4+ hash: v1.k794b7964.86ea5d2850611ff8ba076a8225cf74607dba46aaf740660c84643b2ffcaea394.LBIbRolZAkRwd7YxDW9xoBo4QaQsugQBGP_mKt1_vHUscenes-app-experiments--experiment-frequentist-two-variants--light:- hash: v1.k794b7964.2e358d97599c5befaf03b527d6c987a029ff751224c6253104b58406d8cf18cc.sqZ2G8jf9EhH06ykGB3pF55Po8NN9c2h0Wnuh1Y6MFA+ hash: v1.k794b7964.8edcebd22b9d0a89ce580ed0f596e1fad4462b274de790bcaaa7db1e3e3cf64b.Ss8KnIq9A7CVaAwy3gyzIWSUw9aCESluG9UbNfoMjMgscenes-app-experiments--experiment-recordings-dropped-metric--dark:- hash: v1.k794b7964.d0a971d779cfbcdb7646843226b1bb67d53a3b780f976604c69c0d52b899d01f.h7g8p5li7J1eNxa54I9U0RF3d03oLiHNA6nrCJXmSS8+ hash: v1.k794b7964.617a5f454b31f699652a3b6e3c5c4d4a7c4230e08c1ef0ff0ee18013facdddff.F9zm8PAxqZDtKpzbJTTdJh-qrLg1mG_l1Ela0mSKDFYscenes-app-experiments--experiment-recordings-dropped-metric--light:- hash: v1.k794b7964.7b1f718f5485ea38d28ada5c2b1e1051b55318c8a0e94903e107416784a548b5.3my93FvNVpcUOp0kunTd0ww8_a7Jo2Zd7HMGPSA96jU+ hash: v1.k794b7964.3a088984125df28facdf968a30065b0ab7a06faed847f8fdb912aca56e235917.doCCp3WyegOSqju8okDH_yTk_F148wKth00g0nX074Ascenes-app-experiments--experiment-recordings-dropped-metric-narrow--dark:- hash: v1.k794b7964.a4e399e686051779074763ca122ce9334c980a7332611f7da4e901d5866e212c.aG8Ry6qKVOCfru0ksZ-2xCNF6B9UpNC8gSb95WOZOno+ hash: v1.k794b7964.b29131bd48a6bc8e500803017832bbff45689e6f3b7e863269884f573c7802c5.wk5cCa1e7y7WsHFqVDdRQjs6Sl1aaok_Z1c9Jk1A7JEscenes-app-experiments--experiment-recordings-dropped-metric-narrow--light:- hash: v1.k794b7964.ed292204eac7df4ef8c9ddb6d2dd7ec02ca31f7d90a5970fb2b648059e77f4a8.uGMs0Vv7nRZNoXbSr5kaU5x7B6pd4_yyEsaim3GAKfY+ hash: v1.k794b7964.7a910de6716871ee7985061b2afe03fb4f6600df090384e6f8f220f7cd399fd6.4pMdwobrYYyu3y250zyZIGKnpd1GgK3Fv5Ddu0GiExMscenes-app-experiments--experiment-recordings-empty-ended-past-retention--dark:- hash: v1.k794b7964.e51475c1a28c26673723feb65ae6b05e089c7478f5aac779e76447e763d2686a.-pqX0xizuBryjYfL7srNoyXd6p1CKoQVKay7ApMCUs4+ hash: v1.k794b7964.1f84aacdb41e3e5e6d6d6d25ec77cac5ba7be974a0ed0cf622f8121d31938a97.iHLoTIJg83fqZBUWjvnuUBTwDemy7XM8Ez20HoKBjs4scenes-app-experiments--experiment-recordings-empty-ended-past-retention--light:- hash: v1.k794b7964.4fa9a0404413bfabeddd9c7d4f34787e6b4b4e6e5629b4ad68b602ab2786a513.vacE62AQgr0seSYywiDcpbAvKtGvd64atdPW4ZytpUw+ hash: v1.k794b7964.9a4b8e24f2560526587232ce9d0d416dfaedfe7aeaa718ff7a8b1db69470529f.jXSzNFcra16ELZuQocoqgG1kxO5XDfmDqxvAMu5eMMIscenes-app-experiments--experiment-recordings-empty-from-results-row--dark:- hash: v1.k794b7964.086de962780fed366b6f46d18c9dccd5eacab1e9a0f5f530695477bf26ae077e.D11saNxohQMeOmiq1GXRf_Iut2iuwaY2rcmM-uoLMeM+ hash: v1.k794b7964.be3978711b0e54e3de7e2807357e2154d75ee905c9b00d5a37ffcc3de20978d7.2SBPCP5CaOfwJFcNQqdLaRTJZkjk66cTYRBiTYe8IIYscenes-app-experiments--experiment-recordings-empty-from-results-row--light:- hash: v1.k794b7964.760e9598f68549a5bac11426a83e23eaf7eff5d4fce3ce9bafd9147048ebd274.j7Wv58zD5pyVYs5oeGD9aL-9vz6euqV8YLuZv9lejqE+ hash: v1.k794b7964.8278aa81c15378b596a60aa1fe4a1e077b1f452deac48c8ac67c90958954a03b.3VCx2IPEJHGjinTtM5Tc6MXpEpeZQi67pDZrnzyd1DMscenes-app-experiments--experiment-recordings-empty-in-session-has-none--dark:- hash: v1.k794b7964.8703e31521714ea21b1973d068d21aabbcebf8d36008260a9f80925ba19d6df3.4jcXO4YaZnOomTFBS_8URU8UKO2pmrawR4NhZTe-OHo+ hash: v1.k794b7964.a5e30ea52fa44c32524b8076c3c16ad2e9a9356b7a7169613130ea5821a96ef6.Up7cYtO-riKv7tMOqO6uXREVLJKzwVN4jLj0I9S8egsscenes-app-experiments--experiment-recordings-empty-in-session-has-none--light:- hash: v1.k794b7964.4189db4710167637f617d366fc88d32fb88bd2a507464af23a3cad1513f2ea68.gzXxqG86w9revNZTkix-zdoESlopggpa6aMKAl6G_gE+ hash: v1.k794b7964.650b05363abd87ef808e02f0c71a520359db7797969bde8487186b25d8f71a5f.mevKycAjAOHdehNoqDxeT1C92fLtWVbPBQek1l4-D8sscenes-app-experiments--experiment-recordings-empty-metric-filter-failed--dark:- hash: v1.k794b7964.4310cf8c6c15629d670fb7d2af1aa0c35dc10f7856b25ce15723d08339303edf.vJ8H-vDbSTneWOauzIKEbiUVKgNq7hW48m5WQeJfTN4+ hash: v1.k794b7964.98d0a2ca027a58d46f33831a71e92ce59bde3c2fdba88c386c2917d25e9ecd5a.LRJj_KFRU6omMSnLC4-cI2YLpc9AcASNMYpbsmC_0OQscenes-app-experiments--experiment-recordings-empty-metric-filter-failed--light:- hash: v1.k794b7964.dc633ba968fb0f88f08fcc10cf701184eea471e285a1b3012aee2aa8354a3c7c.-9J6nCmRSyi-jWid95tlF45l6LDaUrM1BBt5xi05tfg+ hash: v1.k794b7964.c22b8c168b26137cc9a17ab7f11abb23ba06ba0da86bff614be511fddbd7e3cd.BPJRGwXpIy2Ob2BAaDM7Ei_L2V0Nt4ZJqxJgY0Qf3fQscenes-app-experiments--experiment-recordings-empty-metric-filter-matched-nothing--dark:- hash: v1.k794b7964.c64848162e49acb173ebf3cad8c14b7b84bcdec8110b2b3164495d279db5fa0b.AGJ1PyLnj-eC9Nfb43l5gWqVMEpd7KeopDfpypA-N8U+ hash: v1.k794b7964.4ab5d839a90861b9855633fd4e481317d72e31028fc480a0b3483cebd1150072.QogZ6ZSlxZVCYk5-b24_HT1FcbDJXUYxDIWkd73pG_Iscenes-app-experiments--experiment-recordings-empty-metric-filter-matched-nothing--light:- hash: v1.k794b7964.88b6f080474a60d89774a3760dffc132bb57e9ae3b554b96039683301999b591.nQdb5u0Ap9ikaTiS7Y9VcUHSgie_BVbMa9ImgJwNxY0+ hash: v1.k794b7964.309bba6e00d688fc3b459c019f6ca899f36777360b27ed257dc108a860c9003b.PpMEHEW-yOTg9x1aAR7TiarctV373MobgImjH-Q-Slcscenes-app-experiments--experiment-recordings-empty-too-early--dark:- hash: v1.k794b7964.f8181493ac97d2f5ffb83c9b07886cdad2d6c96643bf94961dcd7e1118a394c6.F12-nLksphUvkSB8kvrefnHTuPE5AZowuw89B6J2fo8+ hash: v1.k794b7964.cbf4759fe7a70451766440566c5507712b5f0ba32c07ff58a94b3537c78edf46.wrTSSYA2umdCYnxi7xJh8ecUh0ED-Ey7Xypmfpjti7Escenes-app-experiments--experiment-recordings-empty-too-early--light:- hash: v1.k794b7964.85762377115f748c945b24bae1a6fbb6bee46ba27e9c48ebdb62ba24b6876a7f.PXhWKtOJpe8O9nsy8ox4KLOUcP-XcZO6wsV9arjWiE4+ hash: v1.k794b7964.8d5278ab9a01893945f3030987017742727732a132ba68b5efc1ffb3116c3888.PUsaYUZvLcEEWZN7dwt1m0zPKf2o_C-P8znmFzz7xl4scenes-app-experiments--experiment-recordings-empty-too-early-with-variant-selected--dark:- hash: v1.k794b7964.bb763606f1f1fbefe737b9f603b628bb3dec4fefad6c5cbc8262dd60baf8ba33.whraLgNyB2viu3_pznctIEed3_I7SUTX50_9ZDP-wW0+ hash: v1.k794b7964.1ecdc680f314f17225387a9677af372bb03fca7d1cdab275d2e39c3803ce8858.-2otrcasCpnevtIK8F_Hn_dW1Yp9ubXzKwOcWdiXCdoscenes-app-experiments--experiment-recordings-empty-too-early-with-variant-selected--light:- hash: v1.k794b7964.d78ff849defd3dc2f8d2cd69e336464e39b51a33a33f73fb9e0caf1be8d04cc7.Z0UHVNrZZU6Ia1b356JLEO2NuFtPgkY5xQVg9GeX9K8+ hash: v1.k794b7964.07d22c00c4dce8c64e959669d2cd76482c3213363a8d363aef7b862267068f07.hhxrdw-3sGzW71Ga9pmqaC5X1It9OS-TFLlyQvFfwVgscenes-app-experiments--experiment-recordings-empty-unknown-in-window--dark:- hash: v1.k794b7964.dd964a00df4b5efb32c6a987633e16c58c1e9bf218eeb3220af92057990dd8af.GFnIzcRP73g9Wt2yWSLoR2dxKeG2NWtYKoPHllB3HDU+ hash: v1.k794b7964.99d46ed9128c61fb254a7c85b1150a575b6fa3b596c93005dc381169b5ad668f.mUQSETQlJtxRMu88auyO0f65DZuavuDJ1EE-Qc3sVb4scenes-app-experiments--experiment-recordings-empty-unknown-in-window--light:- hash: v1.k794b7964.4688d6d7cad117d1f5ab5a01a79ae42a05bb1a25878f7e3120b78b9953e96912._NT3K3-LQ7N5KLT7aDPsWwt7jQwsPq7RKBBjYkuJkE8+ hash: v1.k794b7964.fea5f80b5fdfc23190605dd63346c03e7568c88453fd725ac8f21234d600d5b3.pDohRGEnARqs1rTPiwpDXV81cDrvE3Yb6dXwwJwgvE8scenes-app-experiments--experiment-recordings-empty-variant-has-none--dark:- hash: v1.k794b7964.21de115d18bf6bb82cd835920ba9b254f78b3cbd369500483c0e24c5c33429de.w4O7TIghoodacd5KxKkYm0Q2mqYT8GYXjuxJ9sxoiVY+ hash: v1.k794b7964.b049c8c0ae70b7f59072cdc498b583fb6cda9ddc568e37cdc3425b341f4db2a6.1HJk0Z1TUzgv_hPyWSu6LaB2LaLsVeFMeHpdxEb8RXwscenes-app-experiments--experiment-recordings-empty-variant-has-none--light:- hash: v1.k794b7964.418fd99d93cdea964c04521f36b3b1a833f3c413b4e167b2e73705e6d394f2ab.zuCJN7_y6mumcky-DbPmfBiLa8Wd4RYZkn64q6K_ZjM+ hash: v1.k794b7964.ba59a658b4d0aaf46008db1853985b8af395a3b1ed8be8f39cd7fc2f4a6d12d3.zWyud1sa2OjogqU_9WN32hG1W5gBh2od925k3x-RU8Escenes-app-experiments--experiment-recordings-list-load-failed--dark:- hash: v1.k794b7964.7f95ec8625de23f5bcc82edb72a3f7ec32fd0bc126859af0ed70f37737758974.vbZodBjTD_lmeBgCtZAWEerpL4SWd4THgtbh2YQEvJA+ hash: v1.k794b7964.d7e866b9ce9fd582b8ed1c5af6453eae14c5ec87584ba43cc53af8577435faed.s6rvVnnLQL8B-35ms_3jAqtmcFsCHl6yVVXBA-HM9_Yscenes-app-experiments--experiment-recordings-list-load-failed--light:- hash: v1.k794b7964.d968af19f591dbd8d9dd56e277c90084e5743bd1bc4f890c3256e5a4148aa5e8.OrzP_Wz4QBG0qi5s4km2Ez9_3h5FpO8H_oQ64LMVcSE+ hash: v1.k794b7964.3401cf7a0ae8ae70c758fce2dfa6de2a945eb99090badcd77fbc0fc940c78ca4.DgutdexCLwjZVv4eZoVQ8Nm1NlNclkdXK_fMNvDjN1gscenes-app-experiments--experiment-recordings-unavailable-group-aggregated--dark:- hash: v1.k794b7964.69a70ca6c190ab75b3b93ddc39d5c0b0681953eb903e9d8e70bbb6ff68cb2aa9.Qne07YnX0iStsQwk5cDVWqcJRPBG2eo07WTgnb_Z-dY+ hash: v1.k794b7964.2576b51bdc51c6aca180ee4cb6732fb45d040d86c1e2daa6f13529c6a298eee6.wRWk7O3G5bHgYgkTv2GwwskwDAMgcBj3kR_FBYWvWoAscenes-app-experiments--experiment-recordings-unavailable-group-aggregated--light:- hash: v1.k794b7964.c6b197ae1b260f15f33fdc2251eff7246956772fccfceb286b6cda0c9ed5de81.y9y06Hk4JXU2-aap9VGPbLhBgdGo2bJm19XxKxFxVds+ hash: v1.k794b7964.a4fa2db984bdad36eea5bb99573cc45638b861c999f59e147079d8966dc1a39c.TPhMkpVBU2fu9KnE2isL_mj5S6yBBuqOeAYwg4sWWLoscenes-app-experiments--experiment-replay-scanner-backlink--dark:- hash: v1.k794b7964.603df175d65bbc316afb4c5aa282bc1e43b8039fd7986d74b675757d58432165.Q60imiL0l-iEweDOLGPiHVz0y5ijN5CCT7YTt6wB7RY+ hash: v1.k794b7964.0b184c03ca2754932473fb5575e439bd35f67f834fa06fead40b72c6b732a0b0.eMb0f_NE5TrbErphd4z0VLbLY0nWWKI24sDoxhdRuB8scenes-app-experiments--experiment-replay-scanner-backlink--light:- hash: v1.k794b7964.a03f6fa37e562b4f76aa217cde6d1a3beeb4f7901b7e43f2ec39b6b641f3e057.UkQwbkCiYNckbgIjCmflkV_e6LQSdxzt1kCRuNiBgS4+ hash: v1.k794b7964.9dae65bfeee7c06576f4f48dc599d921dcdaf376fafd1e3711dac2a77843bde4.A-e2XetMMY1qF_OscR9s__xCk82onfBTpHCTc91JNnYscenes-app-experiments--experiment-replay-scanner-cross-sell--dark:- hash: v1.k794b7964.a66ab60f8c727562db838357019f31be4f69555bbbb7ffe8177e7ed895e99de7.Pvf493SVaLyoichqyvrzbRjljXs-yDITdg5Y1k_bvGo+ hash: v1.k794b7964.1e46d99c2fd37d5d0122f6cc0e552a61660d86eaae5749561c0171a8a947d256.qluk6uL_5giQgj-9zHj1aWccoZpAeE7kzf9Fl1MshVAscenes-app-experiments--experiment-replay-scanner-cross-sell--light:- hash: v1.k794b7964.963fbd1cb61f4cd6add9b2629c55c6be72847f7b72e049fe52317929c8dc7448.OthNei7lbh162i0nXZEsHXppCKRouEoMjipxd7P-HdE+ hash: v1.k794b7964.6c7e72ccdbba1791497f203c33d59d57c83bcb99de854e73f23aff98a198f64e.QY3DJZHK_XvgoCt9jlIimiEJdjxgZeGM5voxTIKLSv4scenes-app-experiments--experiment-results-row-recording-links-funnel--dark:- hash: v1.k794b7964.f5d679ed87f8fe92f1982b94fc7bada993551c994d8f1b45c7df55499eb51040.JK2tItvyzYgTOayd3lwMqU5PHlaJ30gu8JKGL4D9mGw+ hash: v1.k794b7964.aa1c49d7732ce276bb53e84ab3b4d5a218756df75670a6a44a59887fefb12b42.GJ2BxW0q48obKgD5dKmuww9IY2Z69z9lWwJpvV2vdGQscenes-app-experiments--experiment-results-row-recording-links-funnel--light:- hash: v1.k794b7964.350df288da334510b8572e6a4877b47982229d87c61b1dba5281ffd15aa3f1ce.0P-BlEOEW_wGJTS5KYkJ1hGn-XTQ0CAj4pHM4bmE3Z4+ hash: v1.k794b7964.bb7e2defaafa4f1741e8da0eeba2700055a382088f7592d51bc7afe34a119aca.F7-AQzobenxn6QeFKjxQuKl5aZAs29oFY1WkjWmJZO8scenes-app-experiments--experiment-results-row-recording-links-funnel-menu--dark:- hash: v1.k794b7964.c8dc5d4da1495a05ab91aa2712e7afe2a361cc7fd1ec1faf492f61fd91401b5c.pZ4zDzkqs1X3shXxVZGVg_v_t66dkjIvppLqrX3Opu8+ hash: v1.k794b7964.857967e604acdaa7a9f5dcf723ac9e6899d37c568b07509495fda07cb10e0c4a.nHeRK-Bbk9ArtZRHWbIm8456KLR1iRy7dH3rRU8wMEEscenes-app-experiments--experiment-results-row-recording-links-funnel-menu--light:- hash: v1.k794b7964.13c56267c49a59c09baf63b7c3ecefd3f84e829039b3ded3f50192723641d338.ZtyCRPwCFD5MqZmJb-pRhH_qAzouaM8w3tiWRNiXkSw+ hash: v1.k794b7964.215af67d75decfb0b9d99c4533d77d6bb33a59aa7ac7a6854c688a5cf828f6fa.6uRImcTFSSVi_NGUsxhYhKqQWhLZMWZM_877Uo2ygeQscenes-app-experiments--experiment-results-row-recording-links-mean-menu--dark:- hash: v1.k794b7964.439dc24e773a3de3682b1eebe504128d5f2b7a8372a3935661d55b16d5c89818.hLERz83o2PbQOOrPYfZL266nnANHwF0pHM3Nr6Z9jyw+ hash: v1.k794b7964.f2e0baa4bde2ef641c7804f84f586799ee0f759b08cd755a1c67566afd6249ff.YlULbnxEW220cSHlmVm2oK8rTCd2MSGdg6fVXXwsnr0scenes-app-experiments--experiment-results-row-recording-links-mean-menu--light:- hash: v1.k794b7964.cf10a54b76dd971b94360966020c552dd581673dc9513c9443ef3950afcf365e.IL-fo6WG4PFYW1JRQLVAuKl_xWETR6WHxTvchhMQ9kc+ hash: v1.k794b7964.8127340e56745708831e42a7f391451f1452c99782be108e85eb507fe2c065ff.6_qckK2kaK6-Dbi4FsZcwTc5H2dThRcqQEjdp1DWru4scenes-app-experiments--experiment-results-row-recording-links-narrow--dark:- hash: v1.k794b7964.77971651a10c2bf00ff703be5e81b863a9d351c7fc36b5320375c440a7595ba5.bBt8hcCx5O_CZzg7h5HvjO_yv0PgvQDJDE-8r-aKAng+ hash: v1.k794b7964.c7d10d02d9f6e8d8e5a771c73adb85caf892665b6618bdf8ce2733c528735f74.E4ymXNXRbh_BHIozpYCJi9NShw953SrbH1QcFf_YegQscenes-app-experiments--experiment-results-row-recording-links-narrow--light:- hash: v1.k794b7964.675e0a133687c40d1500788c26993f39c674e32fc7c33c354168e9afab3aefb2.pfxK4sL2PAlUKYSLSFcdbG9x1Yw2kG8UltowPWRtess+ hash: v1.k794b7964.b8c4dac0ba6c48a8a6edab83abe8dda05a095d99a7088e6a45212b7181e16f35.iWOY8xjQeMb_uK075XLsT3zrE_i7JKKsXaf3qHk2Yn4scenes-app-experiments--experiment-results-row-recording-links-unselectable-metric--dark:- hash: v1.k794b7964.626965f68e9a8a3a2a64bbfec21e45e22acfbc339b6ccf29c041b63dbbb20312.RiQmxn6DhvdjbHJFenkt_EGPkljGqy68Mr3PF5oZbv4+ hash: v1.k794b7964.ea75121dd3b4ffaa7daddde2e40a80eeb7e16a628cc464f86c97f9e697032483.WZw3OdIRDdsJXhvPJS6HdXRJN6s7aixTVzjZlXcJlswscenes-app-experiments--experiment-results-row-recording-links-unselectable-metric--light:- hash: v1.k794b7964.2e4278221f08b3c464432e5ff569a8f6e727e98e442bb5c592f2db99cd30e9f1.MepjeEAlQ7w1L3_yGTxYQIHuJGbEaplsBNCiH_1WywM+ hash: v1.k794b7964.e6eb4cafd7b83687659e01acebfabda4dcd061fcdb038e40a65c45d9c1432b3f.a7F8j0qXbp_7NnTzN3QZY7ZjXDvmonuV63gFb5ejPt8scenes-app-experiments--experiment-stopped-with-conclusion--dark:- hash: v1.k794b7964.a738c35c2a29d993ad97ff5d8c5d7df8cd3070fd199a681c0b64293460b651df.r7Mc6OPtHOiWjoANnR9tB_3GTqBz49gJMLarfT7zQ8c+ hash: v1.k794b7964.578ffd24470c381648d034ab3f9454d9f448430ae15d09e34b4e61b6441c3258.aOoEZotWjnQ2NmVYfdoTIz3AF8y1Y8DTCrF9YeavSQkscenes-app-experiments--experiment-stopped-with-conclusion--light:- hash: v1.k794b7964.499a72ad9799ec282e0252a35d23accd08dcfc8c7e03531ff5f84b0d7e29d5d1.Akj7xLYPOSExZth6yL2yn3BrbhTDnliRDkrNGfj6KYc+ hash: v1.k794b7964.8f12ec9d219da268e569da2de50c4adc57b1524155fb55b4a2b4ed71b94b0d03.szbmT9Q77jfG0Je04Utc_q5rU9uxmfnqiCSgnvob-GYscenes-app-experiments--experiment-stopped-with-long-conclusion--dark:- hash: v1.k794b7964.a7a3c9589539aaa621af4e70c3313782287bf1020eba5999b76f01785047161f.SkSoczWCweoVxvUNQmtkx2S11ZqTM_ChiYhRApET9QI+ hash: v1.k794b7964.99c9c18f955e684b10b3a2913efca2bdd7a9e3c9a250ca330b39a9fa857d6000.2sVUDXHpcr-wuS0VuInY3bpCF9TQi8lQzTvlh9L9yh0scenes-app-experiments--experiment-stopped-with-long-conclusion--light:- hash: v1.k794b7964.b163b130667cdfe7b7177fbcf2bed8ab7d0f24e02c4ff1a0c355c0011ade05a5.Yy8IcjsHyUD-X729SZjXBN_iXq-dfmT7vPGO9t873co+ hash: v1.k794b7964.5a696eb4a3523ab07c488513a92b30c3a8520e12e7029777d07332752406fbe4.e08UDo_rpK19Ku7MmfYqx0_-aN9FJCn6R-N8HcLMIr4scenes-app-experiments--experiment-watch-shelf-no-recordings--dark:- hash: v1.k794b7964.55a6f0707672107a29638471812d8af31673ab1e9aca3155e739dcaec4e4c4ab.YXe1dzcS3NzGm4uojnVEH6FPu7iR94ngqLoGz-52aT4+ hash: v1.k794b7964.afbe5d3ad4b42436f0bc1dca07b0802702988e7bc6090557ff5bbc1941ae509a.gnwFZUl0nchI0lx8YFIAI9wclpQUyGTrKpy8y16xXYwscenes-app-experiments--experiment-watch-shelf-no-recordings--light:- hash: v1.k794b7964.bdd35332d5f7973b0ae2a28e817da302fee8c5bddd0e30ba0bbfec834c6415e0.KOE9tK0x16f0z1IrPtYecvYU4RrDZnr7MczMItR4QsQ+ hash: v1.k794b7964.680b977f38134b7aa615446a2abb85bf814974d72c7e209760ecc8c31f3ef598.HYBYKc2ch1B6jbiYtFgV9ONqmDdrcAsZjxxA_VJpEr8scenes-app-experiments--experiment-watch-shelf-no-separation--dark:- hash: v1.k794b7964.435b3615a8d9acedf3f742e9fb902941a38fc223964163619921e88f5b140b25.Xy8ouVk4KYkw8hQljZSGDi4VvYgFuq3nKx6sg5rVqgg+ hash: v1.k794b7964.a9a1424995b311cd3ca4cc15046328c7181a8ca0dea9ed92141cc88d0d06ffd0.RasR8pu7RLE5vUO1HfqMyBmwfzkG_mayMDbNmVGPO9Uscenes-app-experiments--experiment-watch-shelf-no-separation--light:- hash: v1.k794b7964.794915f612b62fda1e420b45bc6cd633d55e7936c6ee811481022e8f2bae89ea.XSXwPYSxJJmjkQAuvcXlMlUkLpLkcwV8afagSknpgvA+ hash: v1.k794b7964.3a702b09a074defff430d88f8ada281ce6cee4071b5263cd6bce590c1549afb6.1ff8fuVD3c-8f4Pt0AV5EI-Fk-kjzJdDPRWffagC0gIscenes-app-experiments--experiment-watch-shelf-no-session-linked-exposures--dark:- hash: v1.k794b7964.8c3e98427ae7ab97f315d6e09fcd5b7878dc55e4e1961e7ae47dc05c1579e574.ueEhmngLaPWG5KfYDBvWtZXkxVJsF3YMmAAlwoExHWA+ hash: v1.k794b7964.9a9ec8966a6c57547a057c694bf6206e3ed56d12b41fe5fc29d84e325b655292.KpvFicFVvVMRyrvGdBnGB8DMQWIdy6wepvNKl4ooynIscenes-app-experiments--experiment-watch-shelf-no-session-linked-exposures--light:- hash: v1.k794b7964.31db760212d92b52b790aac23d4d19cef1aaf5907279e1cc4001bad6e951a33f.s8HbaxbSTxJ9DtnvmhQge1u2zpQgTJaBd-wodykUX7E+ hash: v1.k794b7964.97187325b0aedf21cbc5f48d3c00cd59fe71ad52d95b68edb8b0430aee4060bb.UpFS2C97rmFKKsVneFPNkpUz7PD7KXM0ziLWQWnQAN4scenes-app-experiments--experiment-watch-shelf-refused--dark:- hash: v1.k794b7964.40da6b8fabf18357f808832f80c20407c782d514a055af882aa698518aa4f7b8.v_fBfohavWH50CmLsNbSyce7riCSBxKrsK64wL0fzlg+ hash: v1.k794b7964.be3b9f1a89e3c7802fe42184e40fe1740bf461c543072d3c8d371632238cd9c1.TXSLsBIebQdIoCRnVhn6tF0T7KiIkjXtRMqBVI8dYyoscenes-app-experiments--experiment-watch-shelf-refused--light:- hash: v1.k794b7964.8be4fdb3076caff99eaba9a73fc4b123986c36ee0b69dcba1bdcd50c65087742.N--catODrnhJ2YAjn_1yoPbjSSdB4Ut2oZdhcvLKzaY+ hash: v1.k794b7964.16eca645afdd0489842e756837c83c3b0786d6317cba6e1a33799b4fe05f7d5a.k3SPWcWh4WPsxeONmxWBrkDUfwaNfEdFVkZzbm29gK0scenes-app-experiments--experiment-watch-shelf-refused-narrow--dark:- hash: v1.k794b7964.9ee14bd6c84e859ba6846e92980a88094e63182e13ed0b25c332fd75afcfbd3d.Pu-wBokkxe3YDiGYg8C7Cxf-aNomUoQNqOlGK0xnGAA+ hash: v1.k794b7964.0c3f501ff2712e4e8d572a69e15a41ac8def59afa204ba6dff420d3e07ec6f68.AHwu7lXq-dbKSJZRvmEXQ4_q8vTA0rHPEKjyohJnLlEscenes-app-experiments--experiment-watch-shelf-refused-narrow--light:- hash: v1.k794b7964.112e930b5caaa975531c0b92283101ebc7d1b23fcea4054109a8a3e332fb2617.qZeOPIwoVkumEGWbVnFZWOi4OuHox2A71sSvCgMXC2M+ hash: v1.k794b7964.ac44369584d233e1d48f90e7fbed72a0b24235404c91f7531345f8fca7316872.TCdfML9zS5t6FL7osj5zC4gn2lLXo9Kw_g4C3gd7F-Uscenes-app-experiments--experiment-watch-shelf-too-early--dark:- hash: v1.k794b7964.248031b6d56bfe26e0c93df36b175a933229cd7d5e67233b05bd3a8d4f6cecd2.rHKHYKOtphfcEY6mH9PcFcnb7b90nBejKwYZztqPf48+ hash: v1.k794b7964.41df07b4e5cb103a648f7336151a213cc25c922639d4b0bfb8e8615e1388a65c.l3ELUTitaA91dmsvBC2iZGYP8lPiLtTUXzYx8qoXCPcscenes-app-experiments--experiment-watch-shelf-too-early--light:- hash: v1.k794b7964.17ab578289aa3fa7e8dcb2f626c2a861e44e00dc59f1755e13e9b09803c2cc50.6-7kpEcC1PLMWBFj4Hcg16B09Ao8OCEQAnqh2DPwUHs+ hash: v1.k794b7964.5806e08517d0605ca8d85193debd15620cd20f3773abe78913b9311fa7362b41.C7uzYD62xWjW8d_OUjZG0iW-RFPYUeYpGedK6_t4fmwscenes-app-experiments--experiment-watch-shelf-too-early-truncated--dark:- hash: v1.k794b7964.b2c891959df2a7969282bb86f13c1c81b928df5fd3cf3d15e238c954e2781238.3wvONcwylS5KRMQj5lrF6bPPgr5lWh7e-iF8OnQaGBQ+ hash: v1.k794b7964.e453dec10234f60c9ff67336eb07cbef768bd911002f3b9c51dd2305ee0cdd83.lfbVFx66yAOkdMU9nPghmPnuVyciKLwJS3cUp-Jb1H8scenes-app-experiments--experiment-watch-shelf-too-early-truncated--light:- hash: v1.k794b7964.04398c1155fdeaccf3e8ccef7fffeb5e74e42205cacd72e85bef540335c9ec5f.gWBqQ0ElX1wao-0VLXHxyQP8U8Wyjez_LlE7fMvN_-M+ hash: v1.k794b7964.c273afa456738733a88303cb83a09ae0d97a58a743c69c82caa93fbd2d5d44f4.SQIspi4nz4sECIWVVzBUMUPxcM3AaddV98oPXNmFvE0scenes-app-experiments--experiment-with-funnel-metric--dark:- hash: v1.k794b7964.f5d679ed87f8fe92f1982b94fc7bada993551c994d8f1b45c7df55499eb51040.VSZ4G1GCpz3rye10oUjjlhoUg2CP2-In-099pM0hO8c+ hash: v1.k794b7964.aa1c49d7732ce276bb53e84ab3b4d5a218756df75670a6a44a59887fefb12b42.k3WaOP5MINnDiRT3KyiNPxWob4l9n_kRCfzu_H60Dj0scenes-app-experiments--experiment-with-funnel-metric--light:- hash: v1.k794b7964.350df288da334510b8572e6a4877b47982229d87c61b1dba5281ffd15aa3f1ce.JknHvGrcyfERSvASSKopVCiDTu8Y_Jgq0fdELfDqmiI+ hash: v1.k794b7964.bb7e2defaafa4f1741e8da0eeba2700055a382088f7592d51bc7afe34a119aca.FI-i_7oS0vyvJQTgk_AmwDHgSn2Yq46yhWw-2X4uMMIscenes-app-experiments--experiment-with-health-findings--dark:hash: v1.k794b7964.bf3245d485cdf4423f638c7d0f4f6a6cbd7b9973a714b6d97754f9d759f9db52.u8I1lVXq8xvgY0M_lVcDOsb9SfALFXkvgsVLUAIE0wwscenes-app-experiments--experiment-with-health-findings--light:hash: v1.k794b7964.04d7f04f53aeb6ca300aacdf85f342f63ac09efafd0aff92b67d1c8e4d6bc6b5.4nAbtk7eJ-PGKzdL8yAHskpYkI_nBHEtYh0-ZFWKNI4scenes-app-experiments--experiment-with-long-flag-key--dark:- hash: v1.k794b7964.b7a46ab94f81bc60a01d50dde7143760c3465cb1bac08aced7c66abd4b9f9b35.v7VFeRPn1_vgpB2H4CPX0G6kMpEzCiFO-AC-B36CkjE+ hash: v1.k794b7964.3fbbef4f86a4d189e4bb3787512ec428e16efe1d529f7f19526a634a876abda3.cYQ-vlh6PsxZDQg2g5KTlLjzUJO0_rxE3oyGtXXJbpMscenes-app-experiments--experiment-with-long-flag-key--light:- hash: v1.k794b7964.c9332a55196312087c9594e12b5349271c935d92765ff1f66f04f3ac855a6b8c.lWPEabDfKU_u202Mi5UIyC4Ppqp2X8kvetes4H6V7T4+ hash: v1.k794b7964.0d7b8fad8eb92ac01d0467dd2554fb486f2e9b2796fd7479bf04d766201269eb.aF4829xGtS3X-FEf3NEHTTbaqAvqIZG7OwmcaiOkT6Iscenes-app-experiments--experiment-with-mean-metric--dark:- hash: v1.k794b7964.c3b45bc275fe00b7b435a4f5d23e0e2c76b16a78f4cbefbf626845b1382a5354.tUznNrRWbai5HKSP-h0jxYT0t_Tz8OwI0kffaRNwKCA+ hash: v1.k794b7964.2db2e8c1b413a7ea5c3e8586abebb71715fbb4e1f41da54f3c7f2309c87c0db5.3h5gCbBB5hnnU3fzyYmBVDSTs2AKKGBVZnqFYRfa9d0scenes-app-experiments--experiment-with-mean-metric--light:- hash: v1.k794b7964.63c69052fc983109da7b90fe90dcac3aa910bc158fec9c6c236b6234def6598f.rUMlUbL-m2zCyH3yv4_fqOUf24kW68nwvZFsK1UmA50+ hash: v1.k794b7964.6c450242d56de6beb11f774e63efc6beeac3944eeb0ccde74b719f7ae2f8fd6d.jArW7tdZYS57pJvZg_FZU1dYVQ3fFRQM7gncLwb5qdsscenes-app-experiments--experiment-with-multi-step-funnel-metric--dark:hash: v1.k794b7964.2cdd4577ab0cfb3da2a4a483812d1bca70f70e1025877a2f6db93d9eaee8a44c.woyEtTHpnyOcvxl3BeCCFqLZqJSdOgOVOyglKq7ZK-8scenes-app-experiments--experiment-with-multi-step-funnel-metric--light:hash: v1.k794b7964.e3b9ce0017db7795435b754eae7b7b36a500cde66227bbcb51853adb72b3daaa.wo_md3OxZ-dUGDb8tqccuQL_n8I3hKdONcogT5LuENcscenes-app-experiments--experiment-with-multiple-metrics--dark:- hash: v1.k794b7964.5222296169fb0b70de6f2d32900f81d6fcf92ee724f1303fe91011a74533bbf5.hF3hcILSJrP_jikb6c4Q3gkyqOypi_0c-NTmtwamlC0+ hash: v1.k794b7964.046f459e2e88af3b183b742d47c1ccd999de5bc01497eec0850fd970e19e58ef.ZB9vERv8LqU1l4YsdnplWdPPEucNijYDs2Gb84VdOJoscenes-app-experiments--experiment-with-multiple-metrics--light:- hash: v1.k794b7964.00b5374d799996c071097e006052ad12763ac23ab80b04477a78ae7a2b78d6d0.Yxi_4kC-CIoT-NJTDa_Mc53yFSpjANgsV5yaM60CK-A+ hash: v1.k794b7964.b2310e3e2956f97c20f31954829ea2c0cdc97f47fb129cd5bb1d8c7255b90053.fReF2to0h-j27N5ls8ml7O5i4D-Ws_9NgBfuutvT1SMscenes-app-experiments--experiment-with-multiple-metrics-reordered--dark:- hash: v1.k794b7964.19228386ea1278c469e7f3adc253b1a006b5e1c012814e169ab838c0655405c3.FurKlGRkZAkB07gAvMLgVfwgt1RndbBZg4_udoCEhZ8+ hash: v1.k794b7964.c7a5e62c9a1f8910846bccafe7e9e97833fbab933afc40d4be227213f8181fd2.Tyt9Evg-HUwCMFDr1oUTYsnXr-DFhB-9tbXkjptdr0gscenes-app-experiments--experiment-with-multiple-metrics-reordered--light:- hash: v1.k794b7964.a6cb90ffddbdb6141b78c4b63e240d5e1875e019f0aafb092942dc698314cc6b.ljsFByh4BS_GWhkYOqgZdiCze8yXulhtDFMbLPPLCTc+ hash: v1.k794b7964.b0f7196758fad6b8e3d6d9c1daf34747a6f015094a28eff251fc1b4e5417005a.oUAKL9gY4jorPGpFDv2Eg8Hyby8kqOxSQ0kPn9hlzIwscenes-app-experiments--experiment-with-ratio-metric--dark:- hash: v1.k794b7964.cf58283d0e87b88e7816aa6b90218fb05f2df6a8955e22015bd15a158ebcdb55.MQRVCZvp01YBXFe3Ew3_2hFrdNgTSL98lPGqDMFxcRg+ hash: v1.k794b7964.e2c8f49feb8a6f273d204e0a80ab12fcfd1086ed0b90aecc34d2762ff828f06a.ER1g05p79fFZIasSx-gp67t68wj6Gj2PW3EYfzGW46Yscenes-app-experiments--experiment-with-ratio-metric--light:- hash: v1.k794b7964.4ad94104a9124b06911f3e00c18da6a99985b11afbc24b495d9ad83c5d085d3e.VUyV_hvbgOOJU59bGcLZVA2gXYN5aZp9UZCVTNL2xl8+ hash: v1.k794b7964.5eaa3e9d6801b68b3fab8b306751b52374b9738e44bbd22dfc71cee176151e77.UongpUCC5FrpFZ_Ax_5eNPAAXF2opKNqaJsCH0U0XnMscenes-app-experiments--experiments--dark:hash: v1.k794b7964.02690ce57556848e6499d55ebdea346c56b0a7f0c291fc7e6ce0dbea43338c3e.CmF_cYWu6htlQfgz-p47OvL1KNUyS5xNcA_b2p10J8gscenes-app-experiments--experiments--light:diff --git a/frontend/src/lib/constants.tsx b/frontend/src/lib/constants.tsxindex 365a47bb3693..97279a1f2e46 100644--- a/frontend/src/lib/constants.tsx+++ b/frontend/src/lib/constants.tsx@@ -342,6 +342,7 @@ export const FEATURE_FLAGS = {ERROR_TRACKING_RELATED_ISSUES: 'error-tracking-related-issues', // owner: #team-error-trackingERROR_TRACKING_WEEKLY_DIGEST: 'error-tracking-weekly-digest', // owner: #team-error-trackingEXPERIMENT_BEHAVIOR_COMPARISON: 'experiment-behavior-comparison', // owner: @mp-hog #team-experiments+ EXPERIMENT_HEALTH_FINDINGS: 'experiment-health-findings', // owner: @mp-hog #team-experiments, shows the server's health findings as the health panel instead of the page's own warningsEXPERIMENT_METRIC_EVENT_BREAKDOWNS: 'experiment-metric-event-breakdowns', // owner: @rodrigoi #team-experimentsEXPERIMENT_MULTIPLE_RECALCULATION_TIMES: 'experiment-multiple-recalculation-times', // owner: @jurajmajerik #team-experiments, gates the second daily recalculation time picker in environment settingsEXPERIMENT_SETUP_CONTEXT: 'experiment-setup-context', // owner: @mp-hog #team-experiments, gates the experiment-setup-context MCP tool, its endpoint and the staff setup context drawer on the experiments listdiff --git a/frontend/src/lib/utils/eventUsageLogic.ts b/frontend/src/lib/utils/eventUsageLogic.tsindex f1151a69288b..4f338c528478 100644--- a/frontend/src/lib/utils/eventUsageLogic.ts+++ b/frontend/src/lib/utils/eventUsageLogic.ts@@ -76,7 +76,6 @@ import {import { captureBIWorksheetAction } from 'products/business_intelligence/frontend/biEditorAnalytics'import { getExperimentStatus } from 'products/experiments/frontend/experimentStatus'-import type { ExperimentViewedHealthProperties } from 'products/experiments/frontend/health/experimentHealthFindingEvents'import type { ExperimentMetricUnion } from '../../queries/schema/schema-general'import type { FunnelCorrelationResultsType, Realm, UserType } from '../../types'@@ -1253,12 +1252,10 @@ export interface eventUsageLogicActions {}reportExperimentViewed: (experiment: Experiment,- duration: number | null,- healthProperties: ExperimentViewedHealthProperties+ duration: number | null) => {duration: number | nullexperiment: Experiment- healthProperties: ExperimentViewedHealthProperties}reportExperimentWatchCardSelected: (experimentId: ExperimentIdType,@@ -1945,11 +1942,7 @@ export const eventUsageLogic = kea<eventUsageLogicType>([hasSearch: booleanarchived: boolean}) => listView,- reportExperimentViewed: (- experiment: Experiment,- duration: number | null,- healthProperties: ExperimentViewedHealthProperties- ) => ({ experiment, duration, healthProperties }),+ reportExperimentViewed: (experiment: Experiment, duration: number | null) => ({ experiment, duration }),reportExperimentMetricBreakdownAdded: (experiment: Experiment,metricUuid: string,@@ -2589,13 +2582,12 @@ export const eventUsageLogic = kea<eventUsageLogicType>([archived,})},- reportExperimentViewed: ({ experiment, duration, healthProperties }) => {+ reportExperimentViewed: ({ experiment, duration }) => {posthog.capture('experiment viewed', {...getEventPropertiesForExperiment(experiment),experiment_id: experiment.id,experiment_status: getExperimentStatus(experiment),duration,- ...healthProperties,})},reportExperimentMetricBreakdownAdded: ({ experiment, metricUuid, breakdown, isPrimary }) => {diff --git a/frontend/src/scenes/experiments/ExperimentView/ExperimentWarningBanners.test.tsx b/frontend/src/scenes/experiments/ExperimentView/ExperimentWarningBanners.test.tsxindex e3976e926d43..837bb8b34439 100644--- a/frontend/src/scenes/experiments/ExperimentView/ExperimentWarningBanners.test.tsx+++ b/frontend/src/scenes/experiments/ExperimentView/ExperimentWarningBanners.test.tsx@@ -3,7 +3,9 @@ import '@testing-library/jest-dom'import { cleanup, render } from '@testing-library/react'import { BindLogic, Provider } from 'kea'+import { FEATURE_FLAGS } from 'lib/constants'import { dayjs } from 'lib/dayjs'+import { featureFlagLogic } from 'lib/logic/featureFlagLogic'import { useMocks } from '~/mocks/jest'import { initKeaTests } from '~/test/init'@@ -29,6 +31,10 @@ describe('ExperimentWarningBanner', () => {},})initKeaTests()+ featureFlagLogic.mount()+ featureFlagLogic.actions.setFeatureFlags([FEATURE_FLAGS.EXPERIMENT_HEALTH_FINDINGS], {+ [FEATURE_FLAGS.EXPERIMENT_HEALTH_FINDINGS]: true,+ })logic = experimentLogic({ experimentId: EXPERIMENT_ID })logic.mount()})@@ -48,21 +54,21 @@ describe('ExperimentWarningBanner', () => {status: ExperimentStatus.Running,start_date: dayjs().subtract(3, 'day').toISOString(),feature_flag: { id: 1, key: 'checkout-flag', active: true, filters: { groups: [] } },- health: {- findings: [- {- code: 'variant_shipped_while_running',- subcode: 'running_but_single_variant_shipped',- severity: 'warning',- title: '',- detail: '',- evidence: { variant_key: variantKey },- actions: [],- diagnostic_ref: null,- },- ],- },} as unknown as Experiment)+ logic.actions.loadExperimentHealthSuccess({+ findings: [+ {+ code: 'variant_shipped_while_running',+ subcode: 'running_but_single_variant_shipped',+ severity: 'warning',+ title: '',+ detail: '',+ evidence: { variant_key: variantKey },+ actions: [],+ diagnostic_ref: null,+ },+ ],+ })const { container } = render(<Provider>diff --git a/frontend/src/scenes/experiments/ExperimentView/healthFindingReporting.test.tsx b/frontend/src/scenes/experiments/ExperimentView/healthFindingReporting.test.tsxindex dc422c4a703b..cde585fd10d7 100644--- a/frontend/src/scenes/experiments/ExperimentView/healthFindingReporting.test.tsx+++ b/frontend/src/scenes/experiments/ExperimentView/healthFindingReporting.test.tsx@@ -5,7 +5,9 @@ import userEvent from '@testing-library/user-event'import { BindLogic, Provider } from 'kea'import posthog from 'posthog-js'+import { FEATURE_FLAGS } from 'lib/constants'import { dayjs } from 'lib/dayjs'+import { featureFlagLogic } from 'lib/logic/featureFlagLogic'import { useMocks } from '~/mocks/jest'import { initKeaTests } from '~/test/init'@@ -100,21 +102,21 @@ describe('health finding reporting', () => {status: ExperimentStatus.Running,start_date: dayjs().subtract(3, 'day').toISOString(),feature_flag: { id: 1, key: 'checkout-flag', active: false, filters: { groups: [] } },- health: {- findings: [- {- code: 'flag_off_while_running',- subcode: 'running_but_flag_disabled',- severity: 'warning',- title: 'The experiment is paused',- detail: 'The linked feature flag is disabled while the experiment has not been ended.',- evidence: {},- actions: ['open_feature_flag'],- diagnostic_ref: 'A5',- },- ],- },} as unknown as Experiment)+ logic.actions.loadExperimentHealthSuccess({+ findings: [+ {+ code: 'flag_off_while_running',+ subcode: 'running_but_flag_disabled',+ severity: 'warning',+ title: 'The experiment is paused',+ detail: 'The linked feature flag is disabled while the experiment has not been ended.',+ evidence: {},+ actions: ['open_feature_flag'],+ diagnostic_ref: 'A5',+ },+ ],+ })logic.actions.loadExposuresSuccess(exposures)render(<Provider>@@ -135,6 +137,10 @@ describe('health finding reporting', () => {},})initKeaTests()+ featureFlagLogic.mount()+ featureFlagLogic.actions.setFeatureFlags([FEATURE_FLAGS.EXPERIMENT_HEALTH_FINDINGS], {+ [FEATURE_FLAGS.EXPERIMENT_HEALTH_FINDINGS]: true,+ })logic = experimentLogic({ experimentId: EXPERIMENT_ID })logic.mount()captureSpy = jest.spyOn(posthog, 'capture').mockReturnValue(undefined as any)diff --git a/frontend/src/scenes/experiments/experimentLogic.test.ts b/frontend/src/scenes/experiments/experimentLogic.test.tsindex c7d3ce051445..8d37697cac12 100644--- a/frontend/src/scenes/experiments/experimentLogic.test.ts+++ b/frontend/src/scenes/experiments/experimentLogic.test.ts@@ -3,8 +3,10 @@ import { api } from 'lib/api.mock'import { expectLogic } from 'kea-test-utils'import posthog from 'posthog-js'+import { FEATURE_FLAGS } from 'lib/constants'import { dayjs } from 'lib/dayjs'import { lemonToast } from 'lib/lemon-ui/LemonToast/LemonToast'+import { featureFlagLogic } from 'lib/logic/featureFlagLogic'import { userLogic } from 'scenes/userLogic'import experimentJson from '~/mocks/fixtures/api/experiments/_experiment_launched_with_funnel_and_trends.json'@@ -22,7 +24,10 @@ import {MultivariateFlagVariant,} from '~/types'-import type { ExperimentHealthFindingApi } from 'products/experiments/frontend/generated/api.schemas'+import type {+ ExperimentHealthApi,+ ExperimentHealthFindingApi,+} from 'products/experiments/frontend/generated/api.schemas'import type { ExperimentHealthFinding } from 'products/experiments/frontend/health/experimentHealthFindingEvents'import { ExperimentWarning, experimentLogic } from './experimentLogic'@@ -45,6 +50,13 @@ jest.mock('scenes/approvals/ApprovalRequiredBanner', () => ({const RUNNING_EXP_ID = 45const RUNNING_FUNNEL_EXP_ID = 46+const setHealthFindingsFlag = (enabled: boolean): void => {+ featureFlagLogic.actions.setFeatureFlags(+ enabled ? [FEATURE_FLAGS.EXPERIMENT_HEALTH_FINDINGS] : [],+ enabled ? { [FEATURE_FLAGS.EXPERIMENT_HEALTH_FINDINGS]: true } : {}+ )+}+describe('experimentLogic', () => {let logic: ReturnType<typeof experimentLogic.build>// Transform null to undefined where needed@@ -133,7 +145,6 @@ describe('experimentLogic', () => {desc: 'no exposure answer',exposures: null,handling: undefined,- health: undefined,expected: {health_ui: 'warnings',exposures_total: null,@@ -147,7 +158,6 @@ describe('experimentLogic', () => {desc: 'an answer without exposures, cached before the server ran its checks',exposures: { timeseries: [], total_exposures: {} },handling: undefined,- health: undefined,expected: {exposures_total: 0,exposures_multiple: 0,@@ -160,7 +170,6 @@ describe('experimentLogic', () => {desc: 'an uneven split with users in several variants',exposures: unevenExposures,handling: 'exclude' as const,- health: undefined,expected: {exposures_total: 1000,exposures_multiple: 50,@@ -179,7 +188,6 @@ describe('experimentLogic', () => {health_findings: [],},handling: 'first_seen' as const,- health: undefined,expected: {exposures_total: 1000,exposures_multiple: null,@@ -191,25 +199,23 @@ describe('experimentLogic', () => {},},{- desc: 'a reader with health findings on a legacy experiment, and an answer where the server finds no exposure',+ desc: 'an answer where the server finds no exposure',exposures: {timeseries: [{ variant: 'control' }, { variant: 'test' }],total_exposures: { control: 0, test: 0 },health_findings: [{ code: 'zero_exposures' }],},handling: undefined,- health: { findings: [] },expected: { health_ui: 'warnings', exposures_total: 0, zero_exposures_server: true },},])('reports the exposure state with the completed refresh: $desc',- async ({ exposures, handling, health, expected }) => {+ async ({ exposures, handling, expected }) => {const captureSpy = jest.spyOn(posthog, 'capture').mockReturnValue(undefined as any)// The fixture holds legacy metrics, so the refresh keeps the exposures that are set here.logic.actions.setExperiment({...experiment,exposure_criteria: { ...experiment.exposure_criteria, multiple_variant_handling: handling },- health,})if (exposures) {logic.actions.loadExposuresSuccess(exposures)@@ -2294,7 +2300,13 @@ describe('experimentLogic', () => {// The fixture holds legacy metrics, and a legacy experiment never shows the health panel.const newEngineMetrics = { metrics: [], metrics_secondary: [], saved_metrics: [] }- it.each<{ desc: string; overrides: Partial<Experiment>; expected: ExperimentWarning | null }>([+ it.each<{+ desc: string+ overrides: Partial<Experiment>+ health?: ExperimentHealthApi+ expected: ExperimentWarning | null+ healthFindingsFlag?: boolean+ }>([{desc: 'running experiment with active flag and normal rollout',overrides: {@@ -2433,61 +2445,62 @@ describe('experimentLogic', () => {},{desc: 'server finding wins over the local rules',- overrides: {- ...running,- feature_flag: flag(true, multivariantFilters),- health: { findings: [healthFinding('flag_off_while_running', 'running_but_flag_disabled')] },- },+ overrides: { ...running, feature_flag: flag(true, multivariantFilters) },+ health: { findings: [healthFinding('flag_off_while_running', 'running_but_flag_disabled')] },expected: { key: 'running_but_flag_disabled' },},{desc: 'server without a finding wins over the local rules',- overrides: {- ...running,- feature_flag: flag(false, multivariantFilters),- health: { findings: [] },- },+ overrides: { ...running, feature_flag: flag(false, multivariantFilters) },+ health: { findings: [] },expected: null,},{desc: 'server shipped-variant finding carries the variant key',- overrides: {- ...running,- feature_flag: flag(true, shippedVariantFilters),- health: {- findings: [- healthFinding('no_metric', null),- healthFinding('variant_shipped_while_running', 'running_but_single_variant_shipped', {- variant_key: 'test',- }),- ],- },+ overrides: { ...running, feature_flag: flag(true, shippedVariantFilters) },+ health: {+ findings: [+ healthFinding('no_metric', null),+ healthFinding('variant_shipped_while_running', 'running_but_single_variant_shipped', {+ variant_key: 'test',+ }),+ ],},expected: { key: 'running_but_single_variant_shipped', variantKey: 'test' },},{desc: 'server finding of another code is no flag-state warning',- overrides: {- ...running,- feature_flag: flag(false, multivariantFilters),- health: { findings: [healthFinding('no_metric', null)] },- },+ overrides: { ...running, feature_flag: flag(false, multivariantFilters) },+ health: { findings: [healthFinding('no_metric', null)] },expected: null,},- ])('$desc → $expected', ({ overrides, expected }) => {+ {+ desc: 'server findings for a reader without the health findings flag leave the local rules',+ overrides: { ...running, feature_flag: flag(false, multivariantFilters) },+ health: { findings: [] },+ healthFindingsFlag: false,+ expected: { key: 'running_but_flag_disabled' },+ },+ ])('$desc → $expected', ({ overrides, health, expected, healthFindingsFlag = true }) => {+ setHealthFindingsFlag(healthFindingsFlag)logic.actions.setExperiment(createExperiment(overrides))+ if (health) {+ logic.actions.loadExperimentHealthSuccess(health)+ }expect(logic.values.experimentWarning).toEqual(expected)})- it.each<{ desc: string; overrides: Partial<Experiment>; expected: Record<string, unknown> }>([+ it.each<{+ desc: string+ overrides: Partial<Experiment>+ health: ExperimentHealthApi+ expected: Record<string, unknown>+ healthFindingsFlag?: boolean+ }>([{desc: 'a server finding the local rules miss',- overrides: {- ...running,- ...newEngineMetrics,- feature_flag: flag(true, multivariantFilters),- health: { findings: [healthFinding('flag_off_while_running', 'running_but_flag_disabled')] },- },+ overrides: { ...running, ...newEngineMetrics, feature_flag: flag(true, multivariantFilters) },+ health: { findings: [healthFinding('flag_off_while_running', 'running_but_flag_disabled')] },expected: {health_ui: 'panel',health_finding_codes: ['flag_off_while_running'],@@ -2500,67 +2513,130 @@ describe('experimentLogic', () => {},{desc: 'a server subcode the page does not know',- overrides: {- ...running,- feature_flag: flag(true, multivariantFilters),- health: { findings: [healthFinding('flag_off_while_running', 'running_but_flag_archived')] },- },+ overrides: { ...running, feature_flag: flag(true, multivariantFilters) },+ health: { findings: [healthFinding('flag_off_while_running', 'running_but_flag_archived')] },expected: { flag_state_browser: null, flag_state_server: 'running_but_flag_archived' },},{- desc: 'a reader with health findings on a legacy experiment, which shows the separate warnings',- overrides: { ...running, feature_flag: flag(true, multivariantFilters), health: { findings: [] } },+ desc: 'a reader with the flag on a legacy experiment, which shows the separate warnings',+ overrides: { ...running, feature_flag: flag(true, multivariantFilters) },+ health: { findings: [] },expected: { health_ui: 'warnings', health_finding_count: 0 },},{- desc: 'a reader without health findings',- overrides: { ...running, feature_flag: flag(false, multivariantFilters), health: null },+ desc: 'a reader without the health findings flag, who sees the separate warnings',+ overrides: { ...running, ...newEngineMetrics, feature_flag: flag(false, multivariantFilters) },+ health: { findings: [healthFinding('flag_off_while_running', 'running_but_flag_disabled')] },+ healthFindingsFlag: false,expected: {health_ui: 'warnings',- health_finding_codes: null,- health_finding_subcodes: null,- health_finding_count: null,+ health_finding_count: 1,flag_state_browser: 'running_but_flag_disabled',- flag_state_server: null,- no_metric_server: null,+ flag_state_server: 'running_but_flag_disabled',},},])(- 'reports the local rules and the server checks with the experiment view: $desc',- ({ overrides, expected }) => {+ 'compares the local rules with the server checks when the health loads: $desc',+ ({ overrides, health, expected, healthFindingsFlag = true }) => {+ setHealthFindingsFlag(healthFindingsFlag)const captureSpy = jest.spyOn(posthog, 'capture').mockReturnValue(undefined as any)- logic.actions.loadExperimentSuccess(createExperiment(overrides))+ logic.actions.setExperiment(createExperiment(overrides))+ logic.actions.loadExperimentHealthSuccess(health, 'experiment_load')- const viewedEvents = captureSpy.mock.calls.filter(([event]) => event === 'experiment viewed')- expect(viewedEvents).toHaveLength(1)- expect(viewedEvents[0][1]).toMatchObject(expected)+ const checkedEvents = captureSpy.mock.calls.filter(([event]) => event === 'experiment health checked')+ expect(checkedEvents).toHaveLength(1)+ expect(checkedEvents[0][1]).toMatchObject(expected)})- it('applies the local rules after a local flag write makes the server findings stale', () => {- logic.actions.setExperiment(+ const healthUrl = '/api/projects/:team/experiments/7/health/'+ const mountKeyedLogic = (): ReturnType<typeof experimentLogic.build> => {+ const keyedLogic = experimentLogic({ experimentId: 7 })+ keyedLogic.mount()+ return keyedLogic+ }++ it('loads the health with each experiment load and after a changed input, comparing only once', async () => {+ const health: ExperimentHealthApi = { findings: [] }+ useMocks({ get: { [healthUrl]: () => [200, health] } })+ const keyedLogic = mountKeyedLogic()+ const captureSpy = jest.spyOn(posthog, 'capture').mockReturnValue(undefined as any)+ const draft = createExperiment({+ id: 7,+ start_date: undefined,+ feature_flag: flag(true, multivariantFilters),+ })++ await expectLogic(keyedLogic, () => {+ keyedLogic.actions.loadExperimentSuccess(draft)+ })+ .toDispatchActions(['loadExperimentHealth', 'loadExperimentHealthSuccess'])+ .toMatchValues({ experimentHealth: health })++ await expectLogic(keyedLogic, () => {+ keyedLogic.actions.setExperiment({ ...draft, name: 'Renamed' })+ }).toNotHaveDispatchedActions(['loadExperimentHealth'])++ await expectLogic(keyedLogic, () => {+ keyedLogic.actions.setExperiment({ feature_flag: flag(false, multivariantFilters) })+ }).toDispatchActions(['loadExperimentHealth', 'loadExperimentHealthSuccess'])++ const checkedEvents = captureSpy.mock.calls.filter(([event]) => event === 'experiment health checked')+ expect(checkedEvents).toHaveLength(1)+ })++ it('shows a reader with the flag neither warnings nor findings until the health answers', async () => {+ setHealthFindingsFlag(true)+ let release: () => void = () => {}+ const released = new Promise<void>((resolve) => {+ release = resolve+ })+ useMocks({+ get: {+ [healthUrl]: async () => {+ await released+ return [200, { findings: [healthFinding('flag_off_while_running', 'running_but_no_rollout')] }]+ },+ },+ })+ const keyedLogic = mountKeyedLogic()+ keyedLogic.actions.setExperiment(createExperiment({+ id: 7,...running,- feature_flag: flag(true, multivariantFilters),- health: { findings: [] },+ ...newEngineMetrics,+ feature_flag: flag(false, multivariantFilters),}))- expect(logic.values.experimentWarning).toBeNull()- logic.actions.setExperiment({ feature_flag: flag(false, multivariantFilters) })+ keyedLogic.actions.loadExperimentHealth('experiment_load')- expect(logic.values.experimentWarning).toEqual({ key: 'running_but_flag_disabled' })+ expect(keyedLogic.values).toMatchObject({ experimentWarning: null, healthFindings: [], healthUi: 'panel' })+ release()+ await expectLogic(keyedLogic).toDispatchActions(['loadExperimentHealthSuccess'])+ expect(keyedLogic.values.experimentWarning).toEqual({ key: 'running_but_no_rollout' })})- it('keeps null health after a local flag write, so a reader without the flag still has no findings', () => {- logic.actions.setExperiment(- createExperiment({ ...running, feature_flag: flag(true, multivariantFilters), health: null })+ it('applies the local rules without an error when the health request fails', async () => {+ setHealthFindingsFlag(true)+ useMocks({ get: { [healthUrl]: () => [500, { detail: 'Server error' }] } })+ const keyedLogic = mountKeyedLogic()+ keyedLogic.actions.setExperiment(+ createExperiment({+ id: 7,+ ...running,+ ...newEngineMetrics,+ feature_flag: flag(false, multivariantFilters),+ }))- logic.actions.setExperiment({ feature_flag: flag(false, multivariantFilters) })-- expect(logic.values.experiment.health).toBeNull()+ await expectLogic(keyedLogic, () => {+ keyedLogic.actions.loadExperimentHealth('experiment_load')+ })+ .toDispatchActions(['loadExperimentHealthSuccess'])+ .toNotHaveDispatchedActions(['loadExperimentHealthFailure'])+ .toMatchValues({ experimentHealth: null, experimentWarning: { key: 'running_but_flag_disabled' } })})})@@ -2605,6 +2681,7 @@ describe('experimentLogic', () => {})it('reports every use of a finding action', () => {+ setHealthFindingsFlag(true)const captureSpy = jest.spyOn(posthog, 'capture').mockReturnValue(undefined as any)logic.actions.setExperiment({...experiment,@@ -2614,8 +2691,8 @@ describe('experimentLogic', () => {metrics: [],metrics_secondary: [],saved_metrics: [],- health: { findings: [] },})+ logic.actions.loadExperimentHealthSuccess({ findings: [] })logic.actions.reportHealthFindingActedOn({ code: 'bias_risk_multiple_excluded' }, 'use_first_seen_variant')logic.actions.reportHealthFindingActedOn({ code: 'bias_risk_multiple_excluded' }, 'use_first_seen_variant')diff --git a/frontend/src/scenes/experiments/experimentLogic.tsx b/frontend/src/scenes/experiments/experimentLogic.tsxindex f1faaba4b708..a89f53002d65 100644--- a/frontend/src/scenes/experiments/experimentLogic.tsx+++ b/frontend/src/scenes/experiments/experimentLogic.tsx@@ -21,6 +21,7 @@ import api from 'lib/api'import { isApprovalRequiredError } from 'lib/api-error'import { tryShowMCPHint } from 'lib/components/MCPHint/mcpHintLogic'import { SetupTaskId, globalSetupLogic } from 'lib/components/ProductSetup'+import { FEATURE_FLAGS } from 'lib/constants'import { dayjs } from 'lib/dayjs'import { lemonToast } from 'lib/lemon-ui/LemonToast/LemonToast'import { featureFlagLogic, type FeatureFlagsSet } from 'lib/logic/featureFlagLogic'@@ -81,16 +82,18 @@ import {MetricInsightId,} from 'products/experiments/frontend/constants'import { hasEnded, isLaunched } from 'products/experiments/frontend/experimentStatus'+import { experimentsHealthRetrieve } from 'products/experiments/frontend/generated/api'+import type { ExperimentHealthApi } from 'products/experiments/frontend/generated/api.schemas'import {type ExperimentHealthFinding,type ExperimentHealthFindingActionKind,type ExperimentHealthFindingOpenKind,- type ExperimentViewedHealthProperties,+ type ExperimentHealthUi,+ captureExperimentHealthChecked,captureExperimentHealthFindingActedOn,captureExperimentHealthFindingOpened,captureExperimentHealthFindingShown,experimentHealthUi,- experimentHealthStateEventProperties,experimentWarningFromHealth,exposureHealthEventProperties,} from 'products/experiments/frontend/health/experimentHealthFindingEvents'@@ -231,11 +234,24 @@ export function previousRefreshAnalytics(snapshot: CurrentRefreshSnapshot | null}}-/** The release conditions modal saves the flag through the flag API, then patches only `feature_flag` in. */-function replacesFlagWithoutHealth(update: Partial<Experiment>): boolean {- return 'feature_flag' in update && !('health' in update)+// The fields the server's health checks read, so a change to one of them makes the loaded findings stale.+// Keep in step with `load_health_context` in products/experiments/backend/health/context.py.+const HEALTH_CHECK_INPUTS = [+ 'feature_flag',+ 'metrics',+ 'metrics_secondary',+ 'saved_metrics',+ 'start_date',+ 'end_date',+ 'archived',+] as const satisfies readonly (keyof Experiment)[]++function healthCheckInputs(experiment: Experiment): Partial<Experiment> {+ return Object.fromEntries(HEALTH_CHECK_INPUTS.map((field) => [field, experiment[field]]))}+type ExperimentHealthLoadTrigger = 'experiment_load' | 'experiment_update'+function generateRefreshId(): string {if (typeof crypto !== 'undefined' && typeof crypto.randomUUID === 'function') {return crypto.randomUUID()@@ -375,6 +391,8 @@ export interface experimentLogicValues {endExperimentLoading: booleanexcludedVariants: string[]experiment: Experiment+ experimentHealth: ExperimentHealthApi | null+ experimentHealthLoading: booleanexperimentId: Experiment['id']experimentLoadCount: numberexperimentLoading: boolean@@ -396,6 +414,8 @@ export interface experimentLogicValues {hasMetrics: booleanhasMinimumExposureForResults: booleanhealthFindings: HealthPanelFinding[] | null+ healthPending: boolean+ healthUi: ExperimentHealthUihogfettiTrigger: (() => void) | nullisCreatingExperimentDashboard: booleanisExperimentDraft: boolean@@ -414,6 +434,7 @@ export interface experimentLogicValues {resolvedExposureEvent: stringshippedVariantKey: string | nullshowDebugPanel: boolean+ shownHealth: ExperimentHealthApi | nullstatsMethod: ExperimentStatsMethodunfreezeExposureLoading: booleanunmodifiedExperiment: Experiment | null@@ -500,12 +521,10 @@ export interface experimentLogicActions {} // eventUsageLogicreportExperimentViewed: (experiment: Experiment,- duration: number | null,- healthProperties: ExperimentViewedHealthProperties+ duration: number | null) => {duration: number | nullexperiment: Experiment- healthProperties: ExperimentViewedHealthProperties} // eventUsageLogicupdateExperiments: (experiment: Experiment) => Experiment // experimentsLogicupdateFlagFromPartial: (@@ -666,6 +685,21 @@ export interface experimentLogicActions {error: stringerrorObject?: any}+ loadExperimentHealth: (trigger: ExperimentHealthLoadTrigger) => ExperimentHealthLoadTrigger+ loadExperimentHealthFailure: (+ error: string,+ errorObject?: any+ ) => {+ error: string+ errorObject?: any+ }+ loadExperimentHealthSuccess: (+ experimentHealth: ExperimentHealthApi | null,+ payload?: ExperimentHealthLoadTrigger+ ) => {+ experimentHealth: ExperimentHealthApi | null+ payload?: ExperimentHealthLoadTrigger+ }loadExperimentSuccess: (experiment: Experiment,payload?: {@@ -1079,12 +1113,28 @@ export interface experimentLogicMeta {isSingleVariantShipped: boolean,shippedVariantKey: string | null) => ExperimentWarning | null- experimentWarning: (+ shownHealth: (+ experimentHealth: ExperimentHealthApi | null,+ featureFlags: FeatureFlagsSet+ ) => ExperimentHealthApi | null+ healthPending: (+ featureFlags: FeatureFlagsSet,+ experimentHealth: ExperimentHealthApi | null,+ experimentHealthLoading: boolean+ ) => boolean+ healthUi: (experiment: Experiment,+ shownHealth: ExperimentHealthApi | null,+ healthPending: boolean+ ) => ExperimentHealthUi+ experimentWarning: (+ shownHealth: ExperimentHealthApi | null,+ healthPending: boolean,browserExperimentWarning: ExperimentWarning | null) => ExperimentWarning | nullhealthFindings: (- experiment: Experiment,+ shownHealth: ExperimentHealthApi | null,+ healthPending: boolean,exposures: any,isExperimentDraft: boolean) => HealthPanelFinding[] | null@@ -1462,14 +1512,7 @@ export const experimentLogic = kea<experimentLogicType>([experiment: [{ ...NEW_EXPERIMENT } as Experiment,{- setExperiment: (state, { experiment }) => {- const updated = { ...state, ...experiment }- // Findings about the previous flag would show a stale banner until the next load. A null- // `health` stays null, because null means the reader does not have the health findings flag.- return replacesFlagWithoutHealth(experiment) && updated.health- ? { ...updated, health: undefined }- : updated- },+ setExperiment: (state, { experiment }) => ({ ...state, ...experiment }),setExposureCriteria: (state,{ exposureCriteria }: { exposureCriteria: ExperimentExposureCriteria }@@ -1872,30 +1915,45 @@ export const experimentLogic = kea<experimentLogicType>([return}cache.shownHealthFindingKeys.add(key)- captureExperimentHealthFindingShown(values.experiment, finding)+ captureExperimentHealthFindingShown(values.experiment, finding, values.healthUi)},reportHealthFindingOpened: ({ finding, openKind }) => {// Zero exposures has no sign in the collapsed panel, so the reader opens it before the// page reports it. Report "shown" first to keep the order of the two events.actions.reportHealthFindingShown(finding)- captureExperimentHealthFindingOpened(values.experiment, finding, openKind)+ captureExperimentHealthFindingOpened(values.experiment, finding, values.healthUi, openKind)},reportHealthFindingActedOn: ({ finding, actionKind }) => {- captureExperimentHealthFindingActedOn(values.experiment, finding, actionKind)+ captureExperimentHealthFindingActedOn(values.experiment, finding, values.healthUi, actionKind)},- loadExperimentSuccess: async ({ experiment, payload }) => {- const duration = experiment?.start_date ? dayjs().diff(experiment.start_date, 'second') : null- // eslint-disable-next-line no-unused-expressions- experiment &&- actions.reportExperimentViewed(- experiment,- duration,- experimentHealthStateEventProperties(- experiment,- values.browserExperimentWarning,- values.browserNoMetricsWarning- )+ loadExperimentHealthSuccess: ({ experimentHealth, payload }) => {+ // One comparison per experiment load. A reload after a write would compare unsaved edits in the+ // page with the saved experiment on the server.+ if (experimentHealth && payload === 'experiment_load') {+ captureExperimentHealthChecked(+ values.experiment,+ experimentHealth,+ values.healthUi,+ values.browserExperimentWarning,+ values.browserNoMetricsWarning)+ }+ },+ setExperiment: () => {+ // A save returns the whole experiment, so compare values: only a changed input makes the findings stale.+ if (+ (values.experimentHealth || values.experimentHealthLoading) &&+ !objectsEqual(healthCheckInputs(values.experiment), cache.healthCheckInputs)+ ) {+ actions.loadExperimentHealth('experiment_update')+ }+ },+ loadExperimentSuccess: async ({ experiment, payload }) => {+ if (experiment) {+ const duration = experiment.start_date ? dayjs().diff(experiment.start_date, 'second') : null+ actions.reportExperimentViewed(experiment, duration)+ actions.loadExperimentHealth('experiment_load')+ }// Load results for launched experiments (will set up auto-refresh after load completes).if (experiment && isLaunched(experiment)) {@@ -2147,7 +2205,7 @@ export const experimentLogic = kea<experimentLogicType>([experiment_status: values.experiment?.status ?? null,total_metrics_count: primaryCount + secondaryCount,execution_mode: getExperimentExecutionMode(values.featureFlags),- health_ui: experimentHealthUi(values.experiment),+ health_ui: values.healthUi,...exposureHealthEventProperties(values.exposures,values.exposureCriteria?.multiple_variant_handling@@ -2754,6 +2812,38 @@ export const experimentLogic = kea<experimentLogicType>([},})),loaders(({ actions, values, cache }) => ({+ experimentHealth: [+ null as ExperimentHealthApi | null,+ {+ loadExperimentHealth: async (trigger: ExperimentHealthLoadTrigger, breakpoint) => {+ if (typeof values.experimentId !== 'number' || values.currentProjectId === null) {+ return null+ }+ if (trigger === 'experiment_update') {+ // A local edit and its save follow each other, so one request covers both when the save+ // returns within 300 ms. After a slower save this request may read the state before the+ // save, and only a save response whose inputs differ from the edit reloads the findings,+ // as metrics do because the server recomputes their fingerprints.+ await breakpoint(300)+ }+ cache.healthCheckInputs = healthCheckInputs(values.experiment)+ try {+ const health = await experimentsHealthRetrieve(+ String(values.currentProjectId),+ values.experimentId+ )+ breakpoint()+ return health+ } catch (error) {+ // The page applies its own rules without findings, so a failed request shows no error.+ if (isBreakpoint(error as Error)) {+ throw error+ }+ return null+ }+ },+ },+ ],experiment: {loadExperiment: async (payload?: { triggeredBy?: ExperimentTriggeredBy }) => {void payload?.triggeredBy@@ -3139,17 +3229,58 @@ export const experimentLogic = kea<experimentLogicType>([return null},],+ shownHealth: [+ (s) => [s.experimentHealth, s.featureFlags],+ (experimentHealth: ExperimentHealthApi | null, featureFlags: FeatureFlagsSet): ExperimentHealthApi | null =>+ // Every reader loads the findings, so every load can compare them with the browser's rules. The+ // page shows them only with the experiment-health-findings flag, and the browser's rules cover+ // everyone else.+ featureFlags[FEATURE_FLAGS.EXPERIMENT_HEALTH_FINDINGS] ? experimentHealth : null,+ ],+ healthPending: [+ (s) => [s.featureFlags, s.experimentHealth, s.experimentHealthLoading],+ (+ featureFlags: FeatureFlagsSet,+ experimentHealth: ExperimentHealthApi | null,+ experimentHealthLoading: boolean+ ): boolean =>+ // Until the first answer, a reader with the flag sees neither the browser's warnings nor the panel,+ // so the page never shows a warning that the server then contradicts. A failed request ends the+ // wait, and the browser's rules apply.+ !!featureFlags[FEATURE_FLAGS.EXPERIMENT_HEALTH_FINDINGS] &&+ experimentHealthLoading &&+ experimentHealth === null,+ ],+ healthUi: [+ (s) => [s.experiment, s.shownHealth, s.healthPending],+ (+ experiment: Experiment,+ shownHealth: ExperimentHealthApi | null,+ healthPending: boolean+ ): ExperimentHealthUi => experimentHealthUi(experiment, shownHealth !== null || healthPending),+ ],experimentWarning: [- (s) => [s.experiment, s.browserExperimentWarning],- (experiment: Experiment, browserExperimentWarning: ExperimentWarning | null): ExperimentWarning | null =>- // The server sends health findings to people with the experiment-health-findings flag. The- // browser's rules cover everyone else.- experiment.health ? experimentWarningFromHealth(experiment.health) : browserExperimentWarning,+ (s) => [s.shownHealth, s.healthPending, s.browserExperimentWarning],+ (+ shownHealth: ExperimentHealthApi | null,+ healthPending: boolean,+ browserExperimentWarning: ExperimentWarning | null+ ): ExperimentWarning | null => {+ if (healthPending) {+ return null+ }+ return shownHealth ? experimentWarningFromHealth(shownHealth) : browserExperimentWarning+ },],healthFindings: [- (s) => [s.experiment, s.exposures, s.isExperimentDraft],- (experiment: Experiment, exposures: any, isExperimentDraft: boolean): HealthPanelFinding[] | null =>- healthPanelFindings(experiment.health, exposures, isExperimentDraft),+ (s) => [s.shownHealth, s.healthPending, s.exposures, s.isExperimentDraft],+ (+ shownHealth: ExperimentHealthApi | null,+ healthPending: boolean,+ exposures: any,+ isExperimentDraft: boolean+ ): HealthPanelFinding[] | null =>+ healthPending ? [] : healthPanelFindings(shownHealth, exposures, isExperimentDraft),],firstPrimaryMetric: [(s) => [s.experiment],diff --git a/frontend/src/scenes/experiments/stories/ExperimentWithHealthFindings.stories.tsx b/frontend/src/scenes/experiments/stories/ExperimentWithHealthFindings.stories.tsxindex 8e077b68ecee..2303aa76a601 100644--- a/frontend/src/scenes/experiments/stories/ExperimentWithHealthFindings.stories.tsx+++ b/frontend/src/scenes/experiments/stories/ExperimentWithHealthFindings.stories.tsx@@ -2,6 +2,7 @@ import { Meta, StoryObj } from '@storybook/react'import { within } from '@testing-library/dom'import userEvent from '@testing-library/user-event'+import { FEATURE_FLAGS } from 'lib/constants'import { makeDelay } from 'lib/utils/async'import { App } from 'scenes/App'import { urls } from 'scenes/urls'@@ -14,22 +15,19 @@ import { NodeKind } from '~/queries/schema/schema-general'import { recalculationMocks, resultsByMetricType } from './recalculationMocks'-const EXPERIMENT_WITH_HEALTH_FINDINGS = {- ...EXPERIMENT_WITH_MEAN_METRIC,- health: {- findings: [- {- code: 'flag_off_while_running',- subcode: 'running_but_no_rollout',- severity: 'warning',- title: 'The experiment is running, but no new users are being exposed',- detail: 'The linked feature flag has a 0% rollout, so no new users are being exposed. Users exposed earlier are still included in the results. End the experiment with a conclusion, or increase the rollout percentage to expose users.',- evidence: {},- actions: ['open_feature_flag'],- diagnostic_ref: 'A5',- },- ],- },+const EXPERIMENT_HEALTH = {+ findings: [+ {+ code: 'flag_off_while_running',+ subcode: 'running_but_no_rollout',+ severity: 'warning',+ title: 'The experiment is running, but no new users are being exposed',+ detail: 'The linked feature flag has a 0% rollout, so no new users are being exposed. Users exposed earlier are still included in the results. End the experiment with a conclusion, or increase the rollout percentage to expose users.',+ evidence: {},+ actions: ['open_feature_flag'],+ diagnostic_ref: 'A5',+ },+ ],}const EXPOSURES_WITH_BIAS_RISK = {@@ -61,8 +59,8 @@ const EXPOSURES_WITH_BIAS_RISK = {}const RECALCULATION = recalculationMocks(- EXPERIMENT_WITH_HEALTH_FINDINGS,- resultsByMetricType(EXPERIMENT_WITH_HEALTH_FINDINGS, { mean: MEAN_METRIC_RESULT })+ EXPERIMENT_WITH_MEAN_METRIC,+ resultsByMetricType(EXPERIMENT_WITH_MEAN_METRIC, { mean: MEAN_METRIC_RESULT }))const meta: Meta = {@@ -73,13 +71,14 @@ const meta: Meta = {viewMode: 'story',mockDate: '2025-01-27',pageUrl: urls.experiment(EXPERIMENT_WITH_MEAN_METRIC.id),+ featureFlags: [FEATURE_FLAGS.EXPERIMENT_HEALTH_FINDINGS],},decorators: [mswDecorator({get: {...RECALCULATION.get,- [`/api/projects/:team_id/experiments/${EXPERIMENT_WITH_MEAN_METRIC.id}/`]:- EXPERIMENT_WITH_HEALTH_FINDINGS,+ [`/api/projects/:team_id/experiments/${EXPERIMENT_WITH_MEAN_METRIC.id}/`]: EXPERIMENT_WITH_MEAN_METRIC,+ [`/api/projects/:team_id/experiments/${EXPERIMENT_WITH_MEAN_METRIC.id}/health/`]: EXPERIMENT_HEALTH,[`/api/projects/:team_id/experiment_holdouts`]: [],[`/api/projects/:team_id/experiment_saved_metrics/`]: [],[`/api/projects/:team_id/feature_flags/${EXPERIMENT_WITH_MEAN_METRIC.feature_flag.id}/`]: {},diff --git a/frontend/src/types.ts b/frontend/src/types.tsindex e1e4dc1b3e4d..7f43ca4cd2b4 100644--- a/frontend/src/types.ts+++ b/frontend/src/types.ts@@ -101,10 +101,7 @@ import type {DataWarehouseSavedQueryApiSuspended,SyncFrequencyBoundsApi,} from 'products/data_warehouse/frontend/generated/api.schemas'-import type {- ExperimentFeatureFlagInputApi,- ExperimentHealthApi,-} from 'products/experiments/frontend/generated/api.schemas'+import type { ExperimentFeatureFlagInputApi } from 'products/experiments/frontend/generated/api.schemas'import type { IntegrationConfigApi } from 'products/integrations/frontend/generated/api.schemas'import type { CommentSlackThreadRefApi } from 'products/platform_features/frontend/generated/api.schemas'import type { InsightFilterOverrideContextApi } from 'products/product_analytics/frontend/generated/api.schemas'@@ -5206,8 +5203,6 @@ export interface Experiment {is_legacy?: boolean/** Server-computed: the event exposures are counted on when no custom exposure event is configured — `$feature_flag_called`, or `$experiment_exposure` once the team is in the rollout and the experiment started at or after the cutoff. Resolve display and filters through `experimentLogic`'s `resolvedExposureEvent` rather than reading this directly, so locally-constructed experiments still get a value. */resolved_exposure_event?: string- /** Server-computed health check findings. Null for people without the health findings flag, absent on locally-constructed experiments. */- health?: ExperimentHealthApi | nullarchived?: booleansecondary_metrics: SecondaryExperimentMetric[]created_at: string | nulldiff --git a/products/experiments/backend/health/registry.py b/products/experiments/backend/health/registry.pyindex 1c043f132538..5aea5ba3402b 100644--- a/products/experiments/backend/health/registry.py+++ b/products/experiments/backend/health/registry.py@@ -27,8 +27,8 @@ def evaluate(ctx: HealthContext, checks: Sequence[HealthCheck]) -> list[Experimetry:finding = check(ctx)except Exception as error:- # The findings ride on responses such as the experiment detail, so one failing check- # must not fail the response or hide the findings of the other checks.+ # The findings ride on the health action, the exposure answer and `experiment launched`, so one+ # failing check must not fail them or hide the findings of the other checks.capture_exception(error)continueif finding is not None:diff --git a/products/experiments/backend/presentation/serializers.py b/products/experiments/backend/presentation/serializers.pyindex 2c43d9c39f7c..96a77435c6e9 100644--- a/products/experiments/backend/presentation/serializers.py+++ b/products/experiments/backend/presentation/serializers.py@@ -6,9 +6,8 @@ All serializer classes and custom field classes live here.ViewSet remains in experiments.py."""-import loggingfrom copy import deepcopy-from typing import Annotated, Any, Final, TypeGuard+from typing import Annotated, Any, TypeGuardfrom django.utils import timezone@@ -40,12 +39,10 @@ from posthog.api.scoped_related_fields import TeamScopedPrimaryKeyRelatedFieldfrom posthog.api.shared import UserBasicSerializerfrom posthog.api.tagged_item import BULK_UPDATE_TAGS_MAX_TAGS, TAG_NAME_MAX_LENGTH, TaggedItemSerializerMixinfrom posthog.models.team.team import Team-from posthog.permissions import posthog_feature_flag_enabledfrom products.access_control.backend.presentation.access_control import UserAccessControlSerializerMixinfrom products.ai_observability.backend.models.llm_prompt import LLMPromptfrom products.experiments.backend.experiment_service import ExperimentService-from products.experiments.backend.facade.api import get_experiment_health_findingsfrom products.experiments.backend.facade.contracts import (CreateExperimentInput,ExperimentHealthFindingActionKind,@@ -94,9 +91,6 @@ from ee.clickhouse.views.experiment_holdouts import ExperimentHoldoutSerializerfrom ee.clickhouse.views.experiment_saved_metrics import ExperimentToSavedMetricSerializertracer = trace.get_tracer(__name__)-logger = logging.getLogger(__name__)--EXPERIMENT_HEALTH_FINDINGS_FLAG: Final = "experiment-health-findings"class _ExperimentApiMetricsList(PydanticRootModel):@@ -576,9 +570,9 @@ class ExperimentSerializer(ExperimentBaseSerializer):)health = serializers.SerializerMethodField(help_text=(- "Health check diagnostics for this experiment: problems in its configuration and its feature "- "flag that keep it from producing trustworthy results, each with a fix. Read `findings` first "- "when you diagnose an experiment. Null where health checks are not enabled yet."+ "Always null. Read the health findings from `GET /api/projects/{project_id}/experiments/{id}/health/`: "+ "problems in this experiment's configuration and its feature flag that keep it from producing "+ "trustworthy results, each with a fix."),)version = serializers.IntegerField(@@ -718,31 +712,8 @@ class ExperimentSerializer(ExperimentBaseSerializer):@extend_schema_field(ExperimentHealthSerializer(allow_null=True))def get_health(self, obj: Experiment) -> dict[str, Any] | None:- if not self._health_findings_enabled(obj.team):- return None- return ExperimentHealthSerializer(- {"findings": get_experiment_health_findings(team_id=obj.team_id, experiment_id=obj.id)}- ).data-- def _health_findings_enabled(self, team: Team) -> bool:- request = self.context.get("request")- user = getattr(request, "user", None)- distinct_id = getattr(user, "distinct_id", None)- email = getattr(user, "email", None)- try:- # Local evaluation keeps a network call off every experiment read. A flag that targets- # by email still matches, because the email goes in as a person property.- return posthog_feature_flag_enabled(- EXPERIMENT_HEALTH_FINDINGS_FLAG,- str(distinct_id or team.uuid),- organization_id=team.organization_id,- team_id=team.id,- person_properties={"email": email} if email else None,- only_evaluate_locally=True,- )- except Exception:- logger.warning("Failed to evaluate the experiment health findings flag", exc_info=True)- return False+ # The `health` action serves the findings, so the experiment read stays fast as checks are added.+ return None@tracer.start_as_current_span("ExperimentSerializer.to_representation")def to_representation(self, instance):diff --git a/products/experiments/backend/presentation/views.py b/products/experiments/backend/presentation/views.pyindex a6cad8b695b6..8db554f2a8da 100644--- a/products/experiments/backend/presentation/views.py+++ b/products/experiments/backend/presentation/views.py@@ -68,6 +68,7 @@ from products.access_control.backend.facade.user_access_control import (from products.access_control.backend.presentation.access_control import AccessControlViewSetMixinfrom products.approvals.backend.mixins import ApprovalHandlingMixinfrom products.experiments.backend.experiment_service import ExperimentService, ExperimentVersionConflict+from products.experiments.backend.facade.api import get_experiment_health_findingsfrom products.experiments.backend.facade.legacy_migration import (LegacyMigrationError,migrate_experiment as migrate_legacy_experiment,@@ -94,6 +95,7 @@ from products.experiments.backend.presentation.serializers import (ExperimentBasicSerializer,ExperimentFlagCleanupTargetSerializer,ExperimentFlagCleanupTaskSerializer,+ ExperimentHealthSerializer,ExperimentInSessionExposureSerializer,ExperimentMatchingIdsResponseSerializer,ExperimentMetricsRecalculationJobSerializer,@@ -518,6 +520,10 @@ class EnterpriseExperimentsViewSet(.select_related("created_by").defer(*LIST_DEFERRED_FIELDS))+ if self.action == "health":+ # The facade reads the experiment again with the joins its checks need, so the object lookup+ # here only checks access.+ queryset = queryset.select_related(None).prefetch_related(None).select_related("team")if self.action == "list":# ExperimentBasicSerializer omits metrics/saved_metrics, so drop the saved-metric# prefetch and defer the heavy JSON columns. The ?event= filter reads metrics via its@@ -885,6 +891,23 @@ class EnterpriseExperimentsViewSet(target = service.get_cleanup_repository_target(experiment)return Response(ExperimentFlagCleanupTargetSerializer(target).data)+ @extend_schema(+ request=None,+ responses=ExperimentHealthSerializer,+ )+ @action(methods=["GET"], detail=True, required_scopes=["experiment:read"])+ def health(self, request: Request, *args: Any, **kwargs: Any) -> Response:+ """+ Health check findings for this experiment: problems in its configuration and its feature flag+ that keep it from producing trustworthy results, each with a fix.++ The checks here read the experiment, its flag and its linked metrics. The checks that read+ exposures come with the exposure query.+ """+ experiment: Experiment = self.get_object()+ findings = get_experiment_health_findings(team_id=self.team_id, experiment_id=experiment.id)+ return Response(ExperimentHealthSerializer({"findings": findings}).data)+@validated_request(query_serializer=ExperimentActivityQuerySerializer,responses={diff --git a/products/experiments/backend/test/test_presentation_api.py b/products/experiments/backend/test/test_presentation_api.pyindex 7d9b600a7f9c..c83be8beb69a 100644--- a/products/experiments/backend/test/test_presentation_api.py+++ b/products/experiments/backend/test/test_presentation_api.py@@ -58,7 +58,7 @@ from products.experiments.backend.models.experiment import ()from products.experiments.backend.models.team_experiments_config import TeamExperimentsConfigfrom products.experiments.backend.models.web_experiment import WebExperiment-from products.experiments.backend.presentation.serializers import EXPERIMENT_HEALTH_FINDINGS_FLAG, ExperimentSerializer+from products.experiments.backend.presentation.serializers import ExperimentSerializerfrom products.experiments.backend.presentation.views import LIST_DEFERRED_FIELDS, EnterpriseExperimentsViewSetfrom products.experiments.backend.setup_context import EXPERIMENT_SETUP_CONTEXT_FLAGfrom products.feature_flags.backend.facade.enums import FlagEvaluationsMode@@ -709,22 +709,20 @@ class TestExperimentCRUD(_HoistFlagConfigClientMixin, APILicensedTest):@parameterized.expand([- ("flag_off", False, {}, None, None),- ("no_metric", True, {}, None, [_HEALTH_PAUSED, ("no_metric", None)]),- ("inline_primary_metric_counts", True, {"metrics": [_HEALTH_METRIC]}, None, [_HEALTH_PAUSED]),- ("inline_secondary_metric_counts", True, {"metrics_secondary": [_HEALTH_METRIC]}, None, [_HEALTH_PAUSED]),- ("shared_primary_metric_counts", True, {}, {"metadata": {"type": "primary"}}, [_HEALTH_PAUSED]),- ("shared_secondary_metric_counts", True, {}, {"metadata": {"type": "secondary"}}, [_HEALTH_PAUSED]),- ("shared_metric_without_type_counts", True, {}, {}, [_HEALTH_PAUSED]),+ ("no_metric", {}, None, [_HEALTH_PAUSED, ("no_metric", None)]),+ ("inline_primary_metric_counts", {"metrics": [_HEALTH_METRIC]}, None, [_HEALTH_PAUSED]),+ ("inline_secondary_metric_counts", {"metrics_secondary": [_HEALTH_METRIC]}, None, [_HEALTH_PAUSED]),+ ("shared_primary_metric_counts", {}, {"metadata": {"type": "primary"}}, [_HEALTH_PAUSED]),+ ("shared_secondary_metric_counts", {}, {"metadata": {"type": "secondary"}}, [_HEALTH_PAUSED]),+ ("shared_metric_without_type_counts", {}, {}, [_HEALTH_PAUSED]),])- def test_detail_reports_health_findings(+ def test_health_reports_findings(self,_name: str,- flag_enabled: bool,inline_metrics: dict[str, list[dict[str, Any]]],shared_metric_link: dict[str, Any] | None,- expected: list[tuple[str, str | None]] | None,+ expected: list[tuple[str, str | None]],) -> None:experiment = Experiment.objects.create(team=self.team,@@ -766,17 +764,10 @@ class TestExperimentCRUD(_HoistFlagConfigClientMixin, APILicensedTest):)self.assertEqual(link_response.status_code, status.HTTP_200_OK, link_response.json())- def fake_feature_enabled(flag_key: str, *args: Any, **kwargs: Any) -> bool:- return flag_enabled and flag_key == EXPERIMENT_HEALTH_FINDINGS_FLAG-- with patch("posthoganalytics.feature_enabled", side_effect=fake_feature_enabled):- response = self.client.get(f"/api/projects/{self.team.id}/experiments/{experiment.id}")+ response = self.client.get(f"/api/projects/{self.team.id}/experiments/{experiment.id}/health/")self.assertEqual(response.status_code, status.HTTP_200_OK)- health = response.json()["health"]- if expected is None:- self.assertIsNone(health)- return+ health = response.json()self.assertEqual([(finding["code"], finding["subcode"]) for finding in health["findings"]], expected)self.assertEqual(health["findings"][0]["actions"], ["open_feature_flag"])self.assertEqual(health["findings"][0]["diagnostic_ref"], "A5")diff --git a/products/experiments/frontend/generated/api.schemas.ts b/products/experiments/frontend/generated/api.schemas.tsindex da5dc73cb3d4..30844c3253fe 100644--- a/products/experiments/frontend/generated/api.schemas.ts+++ b/products/experiments/frontend/generated/api.schemas.ts@@ -2500,7 +2500,7 @@ export interface ExperimentWriteApi {readonly can_freeze_exposure: boolean/** The event exposures are actually counted on when the experiment doesn't configure a custom one — `$feature_flag_called`, or `$experiment_exposure` once the team is in the rollout and the experiment started at or after the cutoff. Resolved server-side so clients display the same event the results queries read. For a draft, this is what the experiment would resolve to if launched now. */readonly resolved_exposure_event: string- /** Health check diagnostics for this experiment: problems in its configuration and its feature flag that keep it from producing trustworthy results, each with a fix. Read `findings` first when you diagnose an experiment. Null where health checks are not enabled yet. */+ /** Always null. Read the health findings from `GET /api/projects/{project_id}/experiments/{id}/health/`: problems in this experiment's configuration and its feature flag that keep it from producing trustworthy results, each with a fix. */readonly health: ExperimentHealthApi | null/*** The effective access level the user has for this object@@ -2653,7 +2653,7 @@ export interface ExperimentApi {readonly can_freeze_exposure: boolean/** The event exposures are actually counted on when the experiment doesn't configure a custom one — `$feature_flag_called`, or `$experiment_exposure` once the team is in the rollout and the experiment started at or after the cutoff. Resolved server-side so clients display the same event the results queries read. For a draft, this is what the experiment would resolve to if launched now. */readonly resolved_exposure_event: string- /** Health check diagnostics for this experiment: problems in its configuration and its feature flag that keep it from producing trustworthy results, each with a fix. Read `findings` first when you diagnose an experiment. Null where health checks are not enabled yet. */+ /** Always null. Read the health findings from `GET /api/projects/{project_id}/experiments/{id}/health/`: problems in this experiment's configuration and its feature flag that keep it from producing trustworthy results, each with a fix. */readonly health: ExperimentHealthApi | null/*** The effective access level the user has for this object@@ -2802,7 +2802,7 @@ export interface PatchedExperimentWriteApi {readonly can_freeze_exposure?: boolean/** The event exposures are actually counted on when the experiment doesn't configure a custom one — `$feature_flag_called`, or `$experiment_exposure` once the team is in the rollout and the experiment started at or after the cutoff. Resolved server-side so clients display the same event the results queries read. For a draft, this is what the experiment would resolve to if launched now. */readonly resolved_exposure_event?: string- /** Health check diagnostics for this experiment: problems in its configuration and its feature flag that keep it from producing trustworthy results, each with a fix. Read `findings` first when you diagnose an experiment. Null where health checks are not enabled yet. */+ /** Always null. Read the health findings from `GET /api/projects/{project_id}/experiments/{id}/health/`: problems in this experiment's configuration and its feature flag that keep it from producing trustworthy results, each with a fix. */readonly health?: ExperimentHealthApi | null/*** The effective access level the user has for this objectdiff --git a/products/experiments/frontend/generated/api.ts b/products/experiments/frontend/generated/api.tsindex 13eeeeb9130f..d25b461b0a64 100644--- a/products/experiments/frontend/generated/api.ts+++ b/products/experiments/frontend/generated/api.ts@@ -19,6 +19,7 @@ import type {ExperimentApi,ExperimentFlagCleanupTargetApi,ExperimentFlagCleanupTaskApi,+ ExperimentHealthApi,ExperimentHoldoutApi,ExperimentHoldoutsListParams,ExperimentInSessionExposureApi,@@ -691,6 +692,28 @@ export const experimentsFreezeExposureCreate = async (})}+export const getExperimentsHealthRetrieveUrl = (projectId: string, id: number) => {+ return `/api/projects/${projectId}/experiments/${id}/health/`+}++/**+ * Health check findings for this experiment: problems in its configuration and its feature flag+ * that keep it from producing trustworthy results, each with a fix.+ *+ * The checks here read the experiment, its flag and its linked metrics. The checks that read+ * exposures come with the exposure query.+ */+export const experimentsHealthRetrieve = async (+ projectId: string,+ id: number,+ options?: RequestInit+): Promise<ExperimentHealthApi> => {+ return apiMutator<ExperimentHealthApi>(getExperimentsHealthRetrieveUrl(projectId, id), {+ ...options,+ method: 'GET',+ })+}+export const getExperimentsInSessionExposureRetrieveUrl = (projectId: string, id: number) => {return `/api/projects/${projectId}/experiments/${id}/in_session_exposure/`}diff --git a/products/experiments/frontend/health/ExperimentHealthDebug.tsx b/products/experiments/frontend/health/ExperimentHealthDebug.tsxindex fe12fb4df274..acff2d1c6fc9 100644--- a/products/experiments/frontend/health/ExperimentHealthDebug.tsx+++ b/products/experiments/frontend/health/ExperimentHealthDebug.tsx@@ -3,17 +3,16 @@ import { useValues } from 'kea'import { LemonCollapse, LemonTag } from '@posthog/lemon-ui'import { superpowersLogic } from 'lib/components/Superpowers/superpowersLogic'-import { experimentLogic } from 'scenes/experiments/experimentLogic'+import { FEATURE_FLAGS } from 'lib/constants'+import { featureFlagLogic } from 'lib/logic/featureFlagLogic'import { HealthDebugTables } from './HealthDebugTables'export function ExperimentHealthDebug(): JSX.Element | null {const { superpowersEnabled } = useValues(superpowersLogic)- const { experiment } = useValues(experimentLogic)+ const { featureFlags } = useValues(featureFlagLogic)- // Null health means the experiment-health-findings flag is off for this user, so only staff who- // work on the health layer see this section.- if (!superpowersEnabled || experiment.health === null) {+ if (!superpowersEnabled || !featureFlags[FEATURE_FLAGS.EXPERIMENT_HEALTH_FINDINGS]) {return null}diff --git a/products/experiments/frontend/health/HealthDebugTables.tsx b/products/experiments/frontend/health/HealthDebugTables.tsxindex eef064c7182d..4f6a322a1da8 100644--- a/products/experiments/frontend/health/HealthDebugTables.tsx+++ b/products/experiments/frontend/health/HealthDebugTables.tsx@@ -9,7 +9,7 @@ import { experimentHealthDebugLogic } from './experimentHealthDebugLogic'import type { HealthDebugCheck, HealthDebugFact } from './healthDebugReport'export function HealthDebugTables(): JSX.Element {- const { experiment, experimentId, healthFindings } = useValues(experimentLogic)+ const { experimentHealth, experimentId, healthFindings } = useValues(experimentLogic)const { healthDebugChecks: checks, healthDebugFacts: facts } = useValues(experimentHealthDebugLogic({ experimentId }))@@ -47,11 +47,7 @@ export function HealthDebugTables(): JSX.Element {]}/><CodeSnippet language={Language.JSON} thing="health debug data" maxLinesWithoutExpansion={12}>- {JSON.stringify(- { health: experiment.health ?? null, panelFindings: healthFindings, checks, facts },- null,- 2- )}+ {JSON.stringify({ health: experimentHealth, panelFindings: healthFindings, checks, facts }, null, 2)}</CodeSnippet></div>)diff --git a/products/experiments/frontend/health/experimentHealthDebugLogic.ts b/products/experiments/frontend/health/experimentHealthDebugLogic.tsindex 0e07ea36eb48..67487aa098f4 100644--- a/products/experiments/frontend/health/experimentHealthDebugLogic.ts+++ b/products/experiments/frontend/health/experimentHealthDebugLogic.ts@@ -11,6 +11,7 @@ import { resolveMultipleVariantHandling } from 'scenes/experiments/utils'import type { ExperimentExposureCriteria } from '~/queries/schema/schema-general'import type { Experiment, ExperimentIdType } from '~/types'+import type { ExperimentHealthApi } from '../generated/api.schemas'import {type HealthDebugCheck,type HealthDebugFact,@@ -27,6 +28,7 @@ export interface experimentHealthDebugLogicValues {browserExperimentWarning: ExperimentWarning | null // experimentLogicbrowserNoMetricsWarning: boolean // experimentLogicexperiment: Experiment // experimentLogic+ experimentHealth: ExperimentHealthApi | null // experimentLogicexperimentLoadCount: number // experimentLogicexposureCriteria: ExperimentExposureCriteria | undefined // experimentLogicexposures: any // experimentLogic@@ -45,6 +47,7 @@ export interface experimentHealthDebugLogicMeta {pageMetricCounts: (experiment: Experiment) => HealthDebugInput['pageMetricCounts']healthDebugChecks: (experiment: Experiment,+ experimentHealth: ExperimentHealthApi | null,healthFindings: HealthPanelFinding[] | null,browserExperimentWarning: ExperimentWarning | null,browserNoMetricsWarning: boolean,@@ -59,6 +62,7 @@ export interface experimentHealthDebugLogicMeta {) => HealthDebugCheck[]healthDebugFacts: (experiment: Experiment,+ experimentHealth: ExperimentHealthApi | null,healthFindings: HealthPanelFinding[] | null,pageMetricCounts: {primary: number@@ -86,6 +90,7 @@ export const experimentHealthDebugLogic = kea<experimentHealthDebugLogicType>([experimentLogic(props),['experiment',+ 'experimentHealth','healthFindings','browserExperimentWarning','browserNoMetricsWarning',@@ -108,6 +113,7 @@ export const experimentHealthDebugLogic = kea<experimentHealthDebugLogicType>([healthDebugChecks: [(s) => [s.experiment,+ s.experimentHealth,s.healthFindings,s.browserExperimentWarning,s.browserNoMetricsWarning,@@ -119,6 +125,7 @@ export const experimentHealthDebugLogic = kea<experimentHealthDebugLogicType>([],(experiment: Experiment,+ experimentHealth: ExperimentHealthApi | null,healthFindings: HealthPanelFinding[] | null,browserWarning: HealthDebugInput['browserWarning'],browserNoMetricsWarning: boolean,@@ -129,7 +136,7 @@ export const experimentHealthDebugLogic = kea<experimentHealthDebugLogicType>([exposureCriteria: ExperimentExposureCriteria | undefined): HealthDebugCheck[] =>buildHealthDebugChecks({- health: experiment.health,+ health: experimentHealth,panelFindings: healthFindings,browserWarning,browserNoMetricsWarning,@@ -144,14 +151,15 @@ export const experimentHealthDebugLogic = kea<experimentHealthDebugLogicType>([}),],healthDebugFacts: [- (s) => [s.experiment, s.healthFindings, s.pageMetricCounts, s.experimentLoadCount],+ (s) => [s.experiment, s.experimentHealth, s.healthFindings, s.pageMetricCounts, s.experimentLoadCount],(experiment: Experiment,+ experimentHealth: ExperimentHealthApi | null,healthFindings: HealthPanelFinding[] | null,pageMetricCounts: HealthDebugInput['pageMetricCounts'],experimentLoadCount: number): HealthDebugFact[] => [- { label: 'Server health', value: describeServerHealth(experiment.health) },+ { label: 'Server health', value: describeServerHealth(experimentHealth) },{ label: 'Health panel', value: describePanel(healthFindings) },{label: 'Page load',diff --git a/products/experiments/frontend/health/experimentHealthFindingEvents.ts b/products/experiments/frontend/health/experimentHealthFindingEvents.tsindex f12362b62928..badca619e723 100644--- a/products/experiments/frontend/health/experimentHealthFindingEvents.ts+++ b/products/experiments/frontend/health/experimentHealthFindingEvents.ts@@ -8,7 +8,7 @@ import type { Experiment } from '~/types'import { EXPERIMENT_VARIANT_MULTIPLE } from '../constants'import { getExperimentStatus } from '../experimentStatus'-import type { ExperimentHealthApi, ExperimentHealthFindingApi } from '../generated/api.schemas'+import type { ExperimentHealthApi } from '../generated/api.schemas'import { getTotalExposures, hasSampleRatioMismatch } from './exposureHealth'// pinned: `finding_code` property values. Insights group and filter on them, so a rename breaks those insights.@@ -57,11 +57,10 @@ export const FLAG_STATE_FINDING_CODES: ReadonlySet<ExperimentHealthFindingCode>// pinned: `health_ui` property values. Insights compare the health panel with the separate warnings on them.export type ExperimentHealthUi = 'panel' | 'warnings'-export function experimentHealthUi(experiment: Experiment): ExperimentHealthUi {- // The page shows the health panel only when the server sent health findings, which it does for readers- // with the experiment-health-findings flag. A legacy experiment opens the legacy view, which shows the- // separate warnings even then.- return experiment.health && !isLegacyExperiment(experiment) ? 'panel' : 'warnings'+export function experimentHealthUi(experiment: Experiment, showsServerHealth: boolean): ExperimentHealthUi {+ // A legacy experiment opens the legacy view, which shows the separate warnings also when the page shows+ // the server's findings.+ return showsServerHealth && !isLegacyExperiment(experiment) ? 'panel' : 'warnings'}export function healthFindingForExperimentWarning(warningKey: ExperimentWarningKey): ExperimentHealthFinding {@@ -92,7 +91,8 @@ export function experimentWarningFromHealth(health: ExperimentHealthApi): Experi// `getEventPropertiesForExperiment` in.function healthFindingEventProperties(experiment: Experiment,- finding: ExperimentHealthFinding+ finding: ExperimentHealthFinding,+ healthUi: ExperimentHealthUi): Record<string, string | number | null> {return {experiment_id: experiment.id,@@ -100,26 +100,31 @@ function healthFindingEventProperties(experiment_days_since_start: experiment.start_date ? dayjs().diff(experiment.start_date, 'day') : null,finding_code: finding.code,finding_variant: finding.variant ?? null,- health_ui: experimentHealthUi(experiment),+ health_ui: healthUi,surface: 'experiment_page',// The value the backend reports for a request from the web app, so one breakdown covers both.source: 'web',}}-export function captureExperimentHealthFindingShown(experiment: Experiment, finding: ExperimentHealthFinding): void {+export function captureExperimentHealthFindingShown(+ experiment: Experiment,+ finding: ExperimentHealthFinding,+ healthUi: ExperimentHealthUi+): void {// pinned: analytics event name, so renaming it breaks insights- posthog.capture('experiment health finding shown', healthFindingEventProperties(experiment, finding))+ posthog.capture('experiment health finding shown', healthFindingEventProperties(experiment, finding, healthUi))}export function captureExperimentHealthFindingOpened(experiment: Experiment,finding: ExperimentHealthFinding,+ healthUi: ExperimentHealthUi,openKind: ExperimentHealthFindingOpenKind): void {// pinned: analytics event name, so renaming it breaks insightsposthog.capture('experiment health finding opened', {- ...healthFindingEventProperties(experiment, finding),+ ...healthFindingEventProperties(experiment, finding, healthUi),open_kind: openKind,})}@@ -127,55 +132,48 @@ export function captureExperimentHealthFindingOpened(export function captureExperimentHealthFindingActedOn(experiment: Experiment,finding: ExperimentHealthFinding,+ healthUi: ExperimentHealthUi,actionKind: ExperimentHealthFindingActionKind): void {// pinned: analytics event name, so renaming it breaks insightsposthog.capture('experiment health finding acted on', {- ...healthFindingEventProperties(experiment, finding),+ ...healthFindingEventProperties(experiment, finding, healthUi),action_kind: actionKind,// A click starts the action. The save that completes it happens in a modal or on another page.action_step: 'started',})}-export interface ExperimentViewedHealthProperties {- health_ui: ExperimentHealthUi- health_finding_codes: ExperimentHealthFindingApi['code'][] | null- health_finding_subcodes: string[] | null- health_finding_count: number | null- flag_state_browser: string | null- flag_state_server: string | null- no_metric_browser: boolean- no_metric_server: boolean | null-}-/**- * The health state of one experiment load, for `experiment viewed`. A `_browser` value is the result of the- * page's own rule, and a `_server` value is the result of the server's check, so every load compares the two.- * The server values are null when the server sent no health findings.+ * Compares the page's own rules with the server's checks for one experiment load. A `_browser` value is the+ * result of the page's rule, and a `_server` value is the result of the server's check.*/-export function experimentHealthStateEventProperties(+export function captureExperimentHealthChecked(experiment: Experiment,+ health: ExperimentHealthApi,+ healthUi: ExperimentHealthUi,browserWarning: ExperimentWarning | null,browserNoMetricsWarning: boolean-): ExperimentViewedHealthProperties {- const { health } = experiment- const flagStateFinding = health?.findings.find((finding) => FLAG_STATE_FINDING_CODES.has(finding.code))- return {- health_ui: experimentHealthUi(experiment),- health_finding_codes: health ? health.findings.map((finding) => finding.code) : null,+): void {+ const flagStateFinding = health.findings.find((finding) => FLAG_STATE_FINDING_CODES.has(finding.code))+ // pinned: analytics event name, so renaming it breaks insights+ posthog.capture('experiment health checked', {+ experiment_id: experiment.id,+ experiment_status: getExperimentStatus(experiment),+ health_ui: healthUi,+ health_finding_codes: health.findings.map((finding) => finding.code),// pinned: `code:subcode`, as on the server's `experiment launched`. The code prefix keeps a subcode// unambiguous when two codes use the same subcode.- health_finding_subcodes: health- ? health.findings.flatMap(({ code, subcode }) => (subcode ? [`${code}:${subcode}`] : []))- : null,- health_finding_count: health ? health.findings.length : null,+ health_finding_subcodes: health.findings.flatMap(({ code, subcode }) =>+ subcode ? [`${code}:${subcode}`] : []+ ),+ health_finding_count: health.findings.length,flag_state_browser: browserWarning?.key ?? null,// The server sends the warning key as the subcode. A finding without one still differs from no finding.flag_state_server: flagStateFinding ? (flagStateFinding.subcode ?? flagStateFinding.code) : null,no_metric_browser: browserNoMetricsWarning,- no_metric_server: health ? health.findings.some((finding) => finding.code === 'no_metric') : null,- }+ no_metric_server: health.findings.some((finding) => finding.code === 'no_metric'),+ })}/**diff --git a/products/experiments/frontend/health/healthDebugReport.ts b/products/experiments/frontend/health/healthDebugReport.tsindex 102ed142bc97..e93b223880c8 100644--- a/products/experiments/frontend/health/healthDebugReport.ts+++ b/products/experiments/frontend/health/healthDebugReport.ts@@ -23,7 +23,7 @@ export interface HealthDebugCheck {}export interface HealthDebugInput {- health: ExperimentHealthApi | null | undefined+ health: ExperimentHealthApi | nullpanelFindings: HealthPanelFinding[] | nullbrowserWarning: ExperimentWarning | nullbrowserNoMetricsWarning: boolean@@ -36,16 +36,10 @@ export interface HealthDebugInput {}const NO_FINDING = 'no finding'-const NOT_SENT = 'not sent'+const NOT_LOADED = 'not loaded'-export function describeServerHealth(health: ExperimentHealthApi | null | undefined): string {- if (health === null) {- return 'null: the experiment-health-findings flag is off for this user'- }- if (health === undefined) {- return 'missing: a flag save outside the experiment API dropped the findings, so reload the page'- }- return `${health.findings.length} findings`+export function describeServerHealth(health: ExperimentHealthApi | null): string {+ return health ? `${health.findings.length} findings` : `${NOT_LOADED}: the health request is pending or failed`}export function describePanel(panelFindings: HealthPanelFinding[] | null): string {@@ -66,11 +60,11 @@ function warningLabel(warning: ExperimentWarning | null): string {}function serverResult(- health: ExperimentHealthApi | null | undefined,+ health: ExperimentHealthApi | null,matches: (code: ExperimentHealthFindingApi['code']) => boolean): string {if (!health) {- return NOT_SENT+ return NOT_LOADED}const finding = health.findings.find((candidate) => matches(candidate.code))if (!finding) {diff --git a/products/experiments/frontend/health/healthPanelFindings.ts b/products/experiments/frontend/health/healthPanelFindings.tsindex 44060196ccbd..8dc86a7dff8a 100644--- a/products/experiments/frontend/health/healthPanelFindings.ts+++ b/products/experiments/frontend/health/healthPanelFindings.ts@@ -18,12 +18,12 @@ export function hoursSinceStart(startDate: string | null | undefined): number |}/**- * The findings of the health panel, or null when the server sent no health findings. Null means that- * the reader does not have the health findings flag, or that a local flag write dropped stale findings.- * The page then shows its separate warnings instead of the panel.+ * The findings of the health panel, or null when the page shows no server findings: the reader does not+ * have the health findings flag, or the health request is pending or failed. The page then shows its+ * separate warnings instead of the panel.*/export function healthPanelFindings(- health: ExperimentHealthApi | null | undefined,+ health: ExperimentHealthApi | null,exposures: ExperimentExposureQueryResponse | null | undefined,isExperimentDraft: boolean): HealthPanelFinding[] | null {diff --git a/services/mcp/src/api/generated.ts b/services/mcp/src/api/generated.tsindex ce00a46e3665..255a00868acd 100644--- a/services/mcp/src/api/generated.ts+++ b/services/mcp/src/api/generated.ts@@ -44469,7 +44469,7 @@ export namespace Schemas {readonly can_freeze_exposure: boolean;/** The event exposures are actually counted on when the experiment doesn't configure a custom one — `$feature_flag_called`, or `$experiment_exposure` once the team is in the rollout and the experiment started at or after the cutoff. Resolved server-side so clients display the same event the results queries read. For a draft, this is what the experiment would resolve to if launched now. */readonly resolved_exposure_event: string;- /** Health check diagnostics for this experiment: problems in its configuration and its feature flag that keep it from producing trustworthy results, each with a fix. Read `findings` first when you diagnose an experiment. Null where health checks are not enabled yet. */+ /** Always null. Read the health findings from `GET /api/projects/{project_id}/experiments/{id}/health/`: problems in this experiment's configuration and its feature flag that keep it from producing trustworthy results, each with a fix. */readonly health: ExperimentHealth | null;/*** The effective access level the user has for this object@@ -46934,7 +46934,7 @@ export namespace Schemas {readonly can_freeze_exposure: boolean;/** The event exposures are actually counted on when the experiment doesn't configure a custom one — `$feature_flag_called`, or `$experiment_exposure` once the team is in the rollout and the experiment started at or after the cutoff. Resolved server-side so clients display the same event the results queries read. For a draft, this is what the experiment would resolve to if launched now. */readonly resolved_exposure_event: string;- /** Health check diagnostics for this experiment: problems in its configuration and its feature flag that keep it from producing trustworthy results, each with a fix. Read `findings` first when you diagnose an experiment. Null where health checks are not enabled yet. */+ /** Always null. Read the health findings from `GET /api/projects/{project_id}/experiments/{id}/health/`: problems in this experiment's configuration and its feature flag that keep it from producing trustworthy results, each with a fix. */readonly health: ExperimentHealth | null;/*** The effective access level the user has for this object@@ -80282,7 +80282,7 @@ export namespace Schemas {readonly can_freeze_exposure?: boolean;/** The event exposures are actually counted on when the experiment doesn't configure a custom one — `$feature_flag_called`, or `$experiment_exposure` once the team is in the rollout and the experiment started at or after the cutoff. Resolved server-side so clients display the same event the results queries read. For a draft, this is what the experiment would resolve to if launched now. */readonly resolved_exposure_event?: string;- /** Health check diagnostics for this experiment: problems in its configuration and its feature flag that keep it from producing trustworthy results, each with a fix. Read `findings` first when you diagnose an experiment. Null where health checks are not enabled yet. */+ /** Always null. Read the health findings from `GET /api/projects/{project_id}/experiments/{id}/health/`: problems in this experiment's configuration and its feature flag that keep it from producing trustworthy results, each with a fix. */readonly health?: ExperimentHealth | null;/*** The effective access level the user has for this object