[{"data":1,"prerenderedAt":272},["ShallowReactive",2],{"sanity-LevEgKvCUg3Ul3GKyhTsfZIfaGswLQ-qsmdjo9-lWe4":3,"sanity-5J4_le5slYSbYoIJONu15DpEKCnkGat2ZAPHx65CZnA":49,"shiki-block-v-0-0-0-0-0-1-0-1":271},{"data":4},{"_createdAt":5,"_id":6,"_rev":7,"_type":6,"_updatedAt":8,"acceptAllLink":9,"acceptNecessaryLink":18,"bannerColorSource":23,"bannerDescription":24,"bannerTitle":25,"categories":26,"declineAllLink":27,"managePreferencesLink":31,"modalColorSource":23,"modalTitle":42,"preferencesIconColorSource":23,"provider":43,"savePreferencesLink":44,"thirdPartyEmbedCode":26,"title":48},"2026-11-04T19:10:06Z","cookieSettings","0HimK5Zy5fEFWyyiuf4lm8","2026-11-10T22:53:51Z",{"_type":10,"style":11,"title":16,"type":17},"link",{"_type":12,"stylePreset":13},"link.style",{"_ref":14,"_type":15},"driftwire-link-style-primary","reference","Accept all","button",{"_type":10,"style":19,"title":22,"type":17},{"_type":12,"stylePreset":20},{"_ref":21,"_type":15},"driftwire-link-style-secondary","Necessary only","inherit","We use strictly necessary cookies to keep you signed in, and — only with your consent — analytics to see which docs pages help. No advertising cookies, ever.","Cookies, briefly",null,{"_type":10,"style":28,"title":30,"type":17},{"_type":12,"stylePreset":29},{"_ref":21,"_type":15},"Decline all",{"_type":10,"style":32,"title":41,"type":17},{"_type":12,"icon":33,"iconPosition":39,"stylePreset":40},{"_type":34,"hugeicon":35,"type":38},"icon.config",{"data":36,"name":37},"[[\"path\",{\"d\":\"M15.5 12C15.5 13.933 13.933 15.5 12 15.5C10.067 15.5 8.5 13.933 8.5 12C8.5 10.067 10.067 8.5 12 8.5C13.933 8.5 15.5 10.067 15.5 12Z\",\"stroke\":\"currentColor\",\"strokeWidth\":\"1.5\",\"key\":\"0\"}],[\"path\",{\"d\":\"M21.011 14.0965C21.5329 13.9558 21.7939 13.8854 21.8969 13.7508C22 13.6163 22 13.3998 22 12.9669V11.0332C22 10.6003 22 10.3838 21.8969 10.2493C21.7938 10.1147 21.5329 10.0443 21.011 9.90358C19.0606 9.37759 17.8399 7.33851 18.3433 5.40087C18.4817 4.86799 18.5509 4.60156 18.4848 4.44529C18.4187 4.28902 18.2291 4.18134 17.8497 3.96596L16.125 2.98673C15.7528 2.77539 15.5667 2.66972 15.3997 2.69222C15.2326 2.71472 15.0442 2.90273 14.6672 3.27873C13.208 4.73448 10.7936 4.73442 9.33434 3.27864C8.95743 2.90263 8.76898 2.71463 8.60193 2.69212C8.43489 2.66962 8.24877 2.77529 7.87653 2.98663L6.15184 3.96587C5.77253 4.18123 5.58287 4.28891 5.51678 4.44515C5.45068 4.6014 5.51987 4.86787 5.65825 5.4008C6.16137 7.3385 4.93972 9.37763 2.98902 9.9036C2.46712 10.0443 2.20617 10.1147 2.10308 10.2492C2 10.3838 2 10.6003 2 11.0332V12.9669C2 13.3998 2 13.6163 2.10308 13.7508C2.20615 13.8854 2.46711 13.9558 2.98902 14.0965C4.9394 14.6225 6.16008 16.6616 5.65672 18.5992C5.51829 19.1321 5.44907 19.3985 5.51516 19.5548C5.58126 19.7111 5.77092 19.8188 6.15025 20.0341L7.87495 21.0134C8.24721 21.2247 8.43334 21.3304 8.6004 21.3079C8.76746 21.2854 8.95588 21.0973 9.33271 20.7213C10.7927 19.2644 13.2088 19.2643 14.6689 20.7212C15.0457 21.0973 15.2341 21.2853 15.4012 21.3078C15.5682 21.3303 15.7544 21.2246 16.1266 21.0133L17.8513 20.034C18.2307 19.8187 18.4204 19.711 18.4864 19.5547C18.5525 19.3984 18.4833 19.132 18.3448 18.5991C17.8412 16.6616 19.0609 14.6226 21.011 14.0965Z\",\"stroke\":\"currentColor\",\"strokeLinecap\":\"round\",\"strokeWidth\":\"1.5\",\"key\":\"1\"}]]","Settings02Icon","hugeicon","start",{"_ref":21,"_type":15},"Preferences","Cookie preferences","custom",{"_type":10,"style":45,"title":47,"type":17},{"_type":12,"stylePreset":46},{"_ref":14,"_type":15},"Save preferences","Cookie Settings",{"data":50,"sourceMap":-1},[51],{"_createdAt":52,"_id":53,"_rev":54,"_type":55,"_updatedAt":8,"authorProfile":56,"authorRef":68,"body":70,"categories":191,"excerpt":199,"footer":26,"layout":200,"mainImage":204,"navigation":26,"publishedAt":208,"readTime":112,"relatedPosts":209,"routeOptions":261,"seo":26,"showOnWebsite":263,"slug":266,"tags":267,"title":270},"2026-11-06T17:00:52Z","driftwire-post-testing-combinations","0HimK5Zy5fEFWyyiuf4lpW","post",{"avatar":57,"bio":62,"name":63,"role":64,"sameAs":65,"slug":67},{"_type":58,"alt":59,"asset":60},"image","Initials avatar for Jordan Hale",{"_ref":61,"_type":15},"image-097a0f6135da5d3dedfc9d8fe79bba96e1550621-256x256-png","Jordan co-founded Driftwire after one too many Friday rollbacks. Writes about release engineering, trunk-based development and paying down flag debt.","Jordan Hale","Co-founder & CTO",[66],"https:\u002F\u002Fexample.com\u002Fteam\u002Fjordan-hale","jordan-hale",{"_ref":69,"_type":15},"driftwire-author-jordan-hale",[71,91,100,115,127,139,151,159,166,175],{"_key":72,"_type":73,"children":74,"markDefs":89,"style":90},"bfbf6707a6ac","block",[75,80,85],{"_key":76,"_type":77,"marks":78,"text":79},"e18abdaacd3f","span",[],"Combinatorics is undefeated: ",{"_key":81,"_type":77,"marks":82,"text":84},"5c457e9d943f",[83],"code","2^n",{"_key":86,"_type":77,"marks":87,"text":88},"359f8078f368",[]," grows faster than any CI budget. The way out is not more tests, it is choosing which combinations can actually happen and actually interact.",[],"normal",{"_key":92,"_type":73,"children":93,"markDefs":98,"style":99},"59babb2b07cb",[94],{"_key":95,"_type":77,"marks":96,"text":97},"9c2b619c35b9",[],"What to test",[],"h2",{"_key":101,"_type":73,"children":102,"level":112,"listItem":113,"markDefs":114,"style":90},"5bc2c51a3a80",[103,108],{"_key":104,"_type":77,"marks":105,"text":107},"19abd44de910",[106],"strong","Everything off.",{"_key":109,"_type":77,"marks":110,"text":111},"df7d90b1511c",[]," This is what every new user, every outage of the flag service and every forgotten default looks like.",1,"number",[],{"_key":116,"_type":73,"children":117,"level":112,"listItem":113,"markDefs":126,"style":90},"25128dab55bf",[118,122],{"_key":119,"_type":77,"marks":120,"text":121},"0c2cb9004e4a",[106],"Everything at its production value.",{"_key":123,"_type":77,"marks":124,"text":125},"b4af8a0f73d7",[]," Snapshot today’s flags into the test run, so CI tests what users get.",[],{"_key":128,"_type":73,"children":129,"level":112,"listItem":113,"markDefs":138,"style":90},"dce3bf5a626c",[130,134],{"_key":131,"_type":77,"marks":132,"text":133},"a78e8b8a337b",[106],"Each flag flipped alone",{"_key":135,"_type":77,"marks":136,"text":137},"42072f79b3b2",[]," against the production snapshot. Linear, not exponential.",[],{"_key":140,"_type":73,"children":141,"level":112,"listItem":113,"markDefs":150,"style":90},"2d4114748c8b",[142,146],{"_key":143,"_type":77,"marks":144,"text":145},"7632013360b2",[106],"Pairs that share code.",{"_key":147,"_type":77,"marks":148,"text":149},"6eb63b795eec",[]," If two flags are read in the same module, test their four combinations together.",[],{"_key":152,"_type":73,"children":153,"markDefs":158,"style":99},"26b5363eeb98",[154],{"_key":155,"_type":77,"marks":156,"text":157},"d42dc22257ce",[],"Pin flags in tests",[],{"_key":160,"_type":161,"colorSource":83,"markDefs":26,"snippet":162},"8904bfeeb5a4","code.block",{"_type":83,"code":163,"filename":164,"language":165},"import { describe, it, expect } from 'vitest'\nimport { withFlags } from '@driftwire-demo\u002Fsdk\u002Ftesting'\n\ndescribe('checkout', () => {\n    it('renders v2 when new-checkout-flow is on', async () => {\n        await withFlags({ 'new-checkout-flow': true }, async () => {\n            expect(await checkoutFor(user)).toMatchSnapshot()\n        })\n    })\n})","checkout.test.ts","typescript",{"_key":167,"_type":73,"children":168,"markDefs":173,"style":174},"e24ec1db0430",[169],{"_key":170,"_type":77,"marks":171,"text":172},"dd223740de6b",[],"Find the pairs automatically",[],"h3",{"_key":176,"_type":73,"children":177,"markDefs":190,"style":90},"76f883c91664",[178,182,186],{"_key":179,"_type":77,"marks":180,"text":181},"969268fb74fd",[],"Driftwire’s code references know which flags each file reads. ",{"_key":183,"_type":77,"marks":184,"text":185},"9937492d87a7",[83],"driftwire flags pairs --changed",{"_key":187,"_type":77,"marks":188,"text":189},"a3ac820bf135",[]," lists the pairs that share a file touched by your branch, which is the list CI should care about today.",[],[192],{"_createdAt":52,"_id":193,"_rev":194,"_type":195,"_updatedAt":196,"slug":197,"title":198},"driftwire-category-engineering","W5BzlLjnYUuDrmlopXouBu","category","2026-11-10T22:53:47Z","engineering","Engineering","Ten boolean flags make 1,024 combinations, and you will not test them all. You do not need to. Test the defaults, the targets, and the pairs that touch the same code.",{"_type":201,"layout":202,"pageDesign":203},"post.layout.options","default","design1",{"_type":58,"alt":205,"asset":206},"Engineering cover: You cannot test every flag combination. Test these instead",{"_ref":207,"_type":15},"image-a6198bda12704ab24d51cd2c562ac7f6ab1ae15c-1600x900-jpg","2026-07-14T09:00:00.000Z",[210,231,246],{"_id":211,"authorProfile":212,"categories":220,"excerpt":222,"mainImage":223,"publishedAt":227,"readTime":228,"slug":229,"title":230},"driftwire-post-edge-propagation",{"avatar":213,"name":217,"role":218,"slug":219},{"_type":58,"alt":214,"asset":215},"Initials avatar for Avery Lin",{"_ref":216,"_type":15},"image-25375e75ea85051781794390a13c63f315cc700f-256x256-png","Avery Lin","Staff Engineer, Edge","avery-lin",[221],{"slug":197,"title":198},"A kill switch that takes a minute to arrive is a status page with extra steps. How our control plane fans a single write out to 312 edge nodes, and where the 38 ms actually goes.",{"_type":58,"alt":224,"asset":225},"Engineering cover: How we push a kill switch to 312 edge nodes in 38 ms",{"_ref":226,"_type":15},"image-75833b45f7bd6ef1e0d8f5900a4006e107fdb8bd-1600x900-jpg","2026-10-06T09:00:00.000Z",2,"edge-propagation","How we push a kill switch to 312 edge nodes in 38 ms",{"_id":232,"authorProfile":233,"categories":236,"excerpt":238,"mainImage":239,"publishedAt":243,"readTime":112,"slug":244,"title":245},"driftwire-post-percentage-rollouts",{"avatar":234,"name":217,"role":218,"slug":219},{"_type":58,"alt":214,"asset":235},{"_ref":216,"_type":15},[237],{"slug":197,"title":198},"A 25% rollout is not \"one request in four\". It is a stable answer to \"is this user in?\", identical on every server, that never flips a user back out. That is a hashing problem.",{"_type":58,"alt":240,"asset":241},"Engineering cover: Percentage rollouts are a hashing problem",{"_ref":242,"_type":15},"image-4b4179c3d9320c0f9bf734ebd4c1860ecdabdd2a-1600x900-jpg","2026-09-08T09:00:00.000Z","percentage-rollouts","Percentage rollouts are a hashing problem",{"_id":247,"authorProfile":248,"categories":251,"excerpt":253,"mainImage":254,"publishedAt":258,"readTime":112,"slug":259,"title":260},"driftwire-post-edge-vs-server",{"avatar":249,"name":217,"role":218,"slug":219},{"_type":58,"alt":214,"asset":250},{"_ref":216,"_type":15},[252],{"slug":197,"title":198},"Evaluating flags at the edge is fast. Evaluating them on your server is simple. Which one you want depends on numbers you can measure in an afternoon.",{"_type":58,"alt":255,"asset":256},"Engineering cover: Edge or server evaluation? Measure before you choose",{"_ref":257,"_type":15},"image-335586df211ad6b1e711562eccf1cf16e8090a11-1600x900-jpg","2026-06-02T09:00:00.000Z","edge-vs-server","Edge or server evaluation? Measure before you choose",{"_type":262,"includeInSitemap":263,"slug":264},"page.routing.options",true,{"_type":265,"current":266},"slug","testing-combinations",[268,269,198],"Testing","CI","You cannot test every flag combination. Test these instead","\u003Cpre class=\"shiki shiki-themes github-light github-dark nuxion-code__pre\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6A737D;--shiki-dark:#6A737D\">\u002F\u002F What an edge node receives: a diff against the version it holds.\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">interface\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\"> RulesetDiff\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> {\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#E36209;--shiki-dark:#FFAB70\">    version\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">:\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\"> number\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#E36209;--shiki-dark:#FFAB70\">    previous\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">:\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\"> number\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#E36209;--shiki-dark:#FFAB70\">    changed\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">:\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\"> Record\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">&#x3C;\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">string\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">, \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">FlagRules\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">>\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#E36209;--shiki-dark:#FFAB70\">    removed\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">:\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\"> string\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">[]\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">}\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">function\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\"> apply\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">(\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#E36209;--shiki-dark:#FFAB70\">diff\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">:\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\"> RulesetDiff\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">) {\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line nuxion-code__line--marked\">\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">    if\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> (diff.previous \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">!==\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> store.version) \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">return\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\"> resync\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">() \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#6A737D;--shiki-dark:#6A737D\">\u002F\u002F missed one: fetch a snapshot\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">    store.\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">merge\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">(diff.changed, diff.removed)\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">    store.version \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">=\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> diff.version\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">}\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>",1794954844875]