{"version":"1795125391702","document":{"id":"f93886b9-50cc-4815-9577-271501f816d6","title":"shop-api: Rate limiting for the public API","owner":"4gVuO8jOTVRrvthbv3i2wTjKxrW2","rootNodeId":"8795424e-c9a7-4586-a4d5-09217e3b19d8","schemaVersion":4,"createdAt":1788813748962,"updatedAt":1795125391702},"node":{"canvasWidth":1920,"id":"8795424e-c9a7-4586-a4d5-09217e3b19d8","canvasHeight":1080,"elementWriters":{},"backgroundColor":"#f6efe3","title":"Overview","content":"Per-key token buckets in front of /v1/*, shared across replicas, with a clear client contract and a staged rollout.","elements":{"ee8de5ff-44b0-4d3d-be69-bc9b32ed2e13":{"id":"ee8de5ff-44b0-4d3d-be69-bc9b32ed2e13","elementType":"text","x":72,"y":40,"width":800,"height":30,"rotation":0,"schemaVersion":1,"properties":{"fillColor":"#786554","fontFamily":"Inter, sans-serif","fontSize":13,"fontWeight":700,"text":"SHOP-API  ·  IMPLEMENTATION PLAN","__usesTopLeft":true,"frameWidth":800},"zOrder":0},"2ac90fae-b4f5-47a2-ad29-77d7176af0e4":{"id":"2ac90fae-b4f5-47a2-ad29-77d7176af0e4","elementType":"text","x":72,"y":62,"width":1360,"height":30,"rotation":0,"schemaVersion":1,"properties":{"fillColor":"#3b2a1e","fontFamily":"Outfit, sans-serif","fontSize":38,"fontWeight":700,"text":"Rate limiting for the public API","__usesTopLeft":true,"frameWidth":1360},"zOrder":1},"549be92d-d65a-456a-bf6a-43ccab953100":{"id":"549be92d-d65a-456a-bf6a-43ccab953100","elementType":"rectangle","x":1500,"y":56,"width":244,"height":44,"rotation":0,"schemaVersion":2,"properties":{"cornerRadius":22,"fillColor":"#efe6d6","strokeColor":"#cbb99f","strokeWidth":1.5,"text":"","fontSize":14,"textColor":"#000000","textAlign":"center","verticalAlign":"middle"},"zOrder":2},"12c72392-7b9c-4991-afc1-07ddc802906d":{"id":"12c72392-7b9c-4991-afc1-07ddc802906d","elementType":"text","x":1522,"y":68,"width":210,"height":30,"rotation":0,"schemaVersion":1,"properties":{"fillColor":"#3b2a1e","fontFamily":"Inter, sans-serif","fontSize":14.5,"fontWeight":600,"text":"**Status:** 📋 PROPOSED","__usesTopLeft":true,"frameWidth":210},"zOrder":3},"e2346254-72cb-4d1a-9861-4885667b85fd":{"id":"e2346254-72cb-4d1a-9861-4885667b85fd","elementType":"line","x":72,"y":126,"width":1776,"height":0,"rotation":0,"schemaVersion":2,"properties":{"strokeColor":"#ded0ba","strokeWidth":1,"lineStyle":"solid","startMarker":"none","endMarker":"none"},"zOrder":4},"95dcc278-b1c8-45ef-bd0c-a505436cdc96":{"id":"95dcc278-b1c8-45ef-bd0c-a505436cdc96","elementType":"rectangle","x":74,"y":154,"width":872,"height":244,"rotation":0,"schemaVersion":2,"properties":{"blur":6,"cornerRadius":16,"fillColor":"#ddd0ba","opacity":0.65,"strokeColor":"#ddd0ba","strokeWidth":0,"text":"","fontSize":14,"textColor":"#000000","textAlign":"center","verticalAlign":"middle"},"zOrder":5},"ae47684c-2954-49ac-a791-dc9054f39440":{"id":"ae47684c-2954-49ac-a791-dc9054f39440","elementType":"rectangle","x":72,"y":148,"width":872,"height":244,"rotation":0,"schemaVersion":2,"properties":{"cornerRadius":16,"fillColor":"#fffaf1","strokeColor":"#ded0ba","strokeWidth":1,"text":"","fontSize":14,"textColor":"#000000","textAlign":"center","verticalAlign":"middle"},"zOrder":6},"926d75ca-2ab0-4f6a-81d8-3fa984ba2902":{"id":"926d75ca-2ab0-4f6a-81d8-3fa984ba2902","elementType":"rectangle","x":88,"y":168,"width":5,"height":204,"rotation":0,"schemaVersion":2,"properties":{"cornerRadius":3,"fillColor":"#786554","strokeColor":"#786554","strokeWidth":0,"text":"","fontSize":14,"textColor":"#000000","textAlign":"center","verticalAlign":"middle"},"zOrder":7},"cce57c5f-1875-44ce-82f7-250169f8ae5a":{"id":"cce57c5f-1875-44ce-82f7-250169f8ae5a","elementType":"text","x":112,"y":170,"width":500,"height":30,"rotation":0,"schemaVersion":1,"properties":{"fillColor":"#786554","fontFamily":"Inter, sans-serif","fontSize":12,"fontWeight":700,"text":"WHAT THIS IS ABOUT","__usesTopLeft":true,"frameWidth":500},"zOrder":8},"985c0463-7ad7-4da3-88a4-ab00b7445403":{"id":"985c0463-7ad7-4da3-88a4-ab00b7445403","elementType":"text","x":112,"y":196,"width":808,"height":30,"rotation":0,"schemaVersion":1,"properties":{"fillColor":"#3b2a1e","fontFamily":"Outfit, sans-serif","fontSize":21,"fontWeight":700,"text":"Per-key token buckets in front of /v1/*","__usesTopLeft":true,"frameWidth":808},"zOrder":9},"debf7157-46e3-4729-b0ac-b15ee921741a":{"id":"debf7157-46e3-4729-b0ac-b15ee921741a","elementType":"text","x":112,"y":236,"width":804,"height":30,"rotation":0,"schemaVersion":1,"properties":{"fillColor":"#4a3a2d","fontFamily":"Inter, sans-serif","fontSize":15,"fontWeight":400,"lineHeight":1.45,"text":"Protect the public API from runaway clients without touching well-behaved ones: **600 requests/min** per key with a burst of **100**, shared across every replica.\n\nAdds a clear client contract (`RateLimit-*` headers, `429` with `Retry-After`, SDK backoff) behind a staged rollout flag.","__usesTopLeft":true,"frameWidth":804},"zOrder":10},"9b102bda-051a-435a-8fdf-d34d82324c4e":{"id":"9b102bda-051a-435a-8fdf-d34d82324c4e","elementType":"rectangle","x":978,"y":154,"width":872,"height":244,"rotation":0,"schemaVersion":2,"properties":{"blur":6,"cornerRadius":16,"fillColor":"#ddd0ba","opacity":0.65,"strokeColor":"#ddd0ba","strokeWidth":0,"text":"","fontSize":14,"textColor":"#000000","textAlign":"center","verticalAlign":"middle"},"zOrder":11},"804eb287-28a6-40d0-bf73-f55ec911136e":{"id":"804eb287-28a6-40d0-bf73-f55ec911136e","elementType":"rectangle","x":976,"y":148,"width":872,"height":244,"rotation":0,"schemaVersion":2,"properties":{"cornerRadius":16,"fillColor":"#fffaf1","strokeColor":"#ded0ba","strokeWidth":1,"text":"","fontSize":14,"textColor":"#000000","textAlign":"center","verticalAlign":"middle"},"zOrder":12},"e0fface2-9d3d-4b98-bea5-b160a74a6e26":{"id":"e0fface2-9d3d-4b98-bea5-b160a74a6e26","elementType":"rectangle","x":992,"y":168,"width":5,"height":204,"rotation":0,"schemaVersion":2,"properties":{"cornerRadius":3,"fillColor":"#2f7d57","strokeColor":"#2f7d57","strokeWidth":0,"text":"","fontSize":14,"textColor":"#000000","textAlign":"center","verticalAlign":"middle"},"zOrder":13},"bf97c902-f7b6-49d8-ad8e-e23523665e85":{"id":"bf97c902-f7b6-49d8-ad8e-e23523665e85","elementType":"text","x":1016,"y":170,"width":500,"height":30,"rotation":0,"schemaVersion":1,"properties":{"fillColor":"#226142","fontFamily":"Inter, sans-serif","fontSize":12,"fontWeight":700,"text":"WHAT IT WANTS TO ACHIEVE","__usesTopLeft":true,"frameWidth":500},"zOrder":14},"132b19ee-ea3d-403f-85b1-b1763d01dca1":{"id":"132b19ee-ea3d-403f-85b1-b1763d01dca1","elementType":"text","x":1016,"y":196,"width":808,"height":30,"rotation":0,"schemaVersion":1,"properties":{"fillColor":"#3b2a1e","fontFamily":"Outfit, sans-serif","fontSize":21,"fontWeight":700,"text":"Same limits on every replica, clean retries for clients","__usesTopLeft":true,"frameWidth":808},"zOrder":15},"ad8dad4e-2fa3-40c4-93f7-6a1e7ee5b9ff":{"id":"ad8dad4e-2fa3-40c4-93f7-6a1e7ee5b9ff","elementType":"rectangle","x":1016,"y":238,"width":180,"height":58,"rotation":0,"schemaVersion":2,"properties":{"cornerRadius":10,"fillColor":"#f6efe3","strokeColor":"#ded0ba","strokeWidth":1,"text":"","fontSize":14,"textColor":"#000000","textAlign":"center","verticalAlign":"middle"},"zOrder":16},"7931a618-51e9-4a45-9c0a-be9db0b9331c":{"id":"7931a618-51e9-4a45-9c0a-be9db0b9331c","elementType":"text","x":1030,"y":248,"width":156,"height":30,"rotation":0,"schemaVersion":1,"properties":{"fillColor":"#786554","fontFamily":"Inter, sans-serif","fontSize":11,"fontWeight":700,"text":"1 · REQUEST","__usesTopLeft":true,"frameWidth":156},"zOrder":17},"d05162a2-31cc-4d43-857b-2c589aa19e6d":{"id":"d05162a2-31cc-4d43-857b-2c589aa19e6d","elementType":"text","x":1030,"y":266,"width":156,"height":30,"rotation":0,"schemaVersion":1,"properties":{"fillColor":"#3b2a1e","fontFamily":"Inter, sans-serif","fontSize":13,"fontWeight":600,"text":"Key or IP lookup","__usesTopLeft":true,"frameWidth":156},"zOrder":18},"615f7c37-0604-4495-ac14-5b9e02405ea8":{"id":"615f7c37-0604-4495-ac14-5b9e02405ea8","elementType":"block-arrow","x":1203,"y":261,"width":14,"height":12,"rotation":0,"schemaVersion":2,"properties":{"direction":"right","fillColor":"#9a8774","strokeColor":"#9a8774","strokeWidth":0,"text":"","fontSize":14,"textColor":"#000000","textAlign":"center","verticalAlign":"middle"},"zOrder":19},"85587493-9ee1-4e03-abcb-aeb2e71b58e8":{"id":"85587493-9ee1-4e03-abcb-aeb2e71b58e8","elementType":"rectangle","x":1224,"y":238,"width":180,"height":58,"rotation":0,"schemaVersion":2,"properties":{"cornerRadius":10,"fillColor":"#e6effc","strokeColor":"#93b4f5","strokeWidth":1,"text":"","fontSize":14,"textColor":"#000000","textAlign":"center","verticalAlign":"middle"},"zOrder":20},"f1f2cae2-6076-4e02-955b-d0d379e7c132":{"id":"f1f2cae2-6076-4e02-955b-d0d379e7c132","elementType":"text","x":1238,"y":248,"width":156,"height":30,"rotation":0,"schemaVersion":1,"properties":{"fillColor":"#1d4ed8","fontFamily":"Inter, sans-serif","fontSize":11,"fontWeight":700,"text":"2 · REDIS LUA","__usesTopLeft":true,"frameWidth":156},"zOrder":21},"07e71211-aada-481e-9c37-7f62f42d2f64":{"id":"07e71211-aada-481e-9c37-7f62f42d2f64","elementType":"text","x":1238,"y":266,"width":156,"height":30,"rotation":0,"schemaVersion":1,"properties":{"fillColor":"#1e3a8a","fontFamily":"Inter, sans-serif","fontSize":13,"fontWeight":600,"text":"Atomic token take","__usesTopLeft":true,"frameWidth":156},"zOrder":22},"1a704de9-f627-40ef-9dc6-f96e91e1fc46":{"id":"1a704de9-f627-40ef-9dc6-f96e91e1fc46","elementType":"block-arrow","x":1411,"y":261,"width":14,"height":12,"rotation":0,"schemaVersion":2,"properties":{"direction":"right","fillColor":"#9a8774","strokeColor":"#9a8774","strokeWidth":0,"text":"","fontSize":14,"textColor":"#000000","textAlign":"center","verticalAlign":"middle"},"zOrder":23},"2f7482c8-ff93-460e-b090-0959a23d7310":{"id":"2f7482c8-ff93-460e-b090-0959a23d7310","elementType":"rectangle","x":1432,"y":238,"width":180,"height":58,"rotation":0,"schemaVersion":2,"properties":{"cornerRadius":10,"fillColor":"#f6efe3","strokeColor":"#ded0ba","strokeWidth":1,"text":"","fontSize":14,"textColor":"#000000","textAlign":"center","verticalAlign":"middle"},"zOrder":24},"d0f85263-2cf9-48c8-9ae3-d7dfd0eb34d0":{"id":"d0f85263-2cf9-48c8-9ae3-d7dfd0eb34d0","elementType":"text","x":1446,"y":248,"width":156,"height":30,"rotation":0,"schemaVersion":1,"properties":{"fillColor":"#786554","fontFamily":"Inter, sans-serif","fontSize":11,"fontWeight":700,"text":"3 · RESPONSE","__usesTopLeft":true,"frameWidth":156},"zOrder":25},"96ffa082-a64c-4f2a-a63b-5c580f6eea0f":{"id":"96ffa082-a64c-4f2a-a63b-5c580f6eea0f","elementType":"text","x":1446,"y":266,"width":156,"height":30,"rotation":0,"schemaVersion":1,"properties":{"fillColor":"#3b2a1e","fontFamily":"Inter, sans-serif","fontSize":13,"fontWeight":600,"text":"RateLimit-* headers","__usesTopLeft":true,"frameWidth":156},"zOrder":26},"931bb1a9-b134-4d0e-bdbb-b2ce9624d741":{"id":"931bb1a9-b134-4d0e-bdbb-b2ce9624d741","elementType":"block-arrow","x":1619,"y":261,"width":14,"height":12,"rotation":0,"schemaVersion":2,"properties":{"direction":"right","fillColor":"#9a8774","strokeColor":"#9a8774","strokeWidth":0,"text":"","fontSize":14,"textColor":"#000000","textAlign":"center","verticalAlign":"middle"},"zOrder":27},"664a57e3-ac4a-4243-a21c-bed6a522de46":{"id":"664a57e3-ac4a-4243-a21c-bed6a522de46","elementType":"rectangle","x":1640,"y":238,"width":180,"height":58,"rotation":0,"schemaVersion":2,"properties":{"cornerRadius":10,"fillColor":"#e3f1e8","strokeColor":"#94c9a9","strokeWidth":1,"text":"","fontSize":14,"textColor":"#000000","textAlign":"center","verticalAlign":"middle"},"zOrder":28},"377cf1c0-9151-438d-94fc-507dc35a0965":{"id":"377cf1c0-9151-438d-94fc-507dc35a0965","elementType":"text","x":1654,"y":248,"width":156,"height":30,"rotation":0,"schemaVersion":1,"properties":{"fillColor":"#226142","fontFamily":"Inter, sans-serif","fontSize":11,"fontWeight":700,"text":"4 · OVER LIMIT","__usesTopLeft":true,"frameWidth":156},"zOrder":29},"5d6c1eab-130b-4fcd-9780-c114f01cf465":{"id":"5d6c1eab-130b-4fcd-9780-c114f01cf465","elementType":"text","x":1654,"y":266,"width":156,"height":30,"rotation":0,"schemaVersion":1,"properties":{"fillColor":"#1b4d34","fontFamily":"Inter, sans-serif","fontSize":13,"fontWeight":600,"text":"429 + Retry-After","__usesTopLeft":true,"frameWidth":156},"zOrder":30},"400d1458-7268-415e-ada7-80b608e8190c":{"id":"400d1458-7268-415e-ada7-80b608e8190c","elementType":"text","x":1016,"y":316,"width":804,"height":30,"rotation":0,"schemaVersion":1,"properties":{"fillColor":"#4a3a2d","fontFamily":"Inter, sans-serif","fontSize":14.5,"fontWeight":400,"lineHeight":1.4,"text":"**Done when:** shadow week is reviewed with support, no paging alerts fire during rollout, and the feature flag is removed.","__usesTopLeft":true,"frameWidth":804},"zOrder":31},"c7bbb5cc-0999-4af3-af00-0abbc99c542d":{"id":"c7bbb5cc-0999-4af3-af00-0abbc99c542d","elementType":"text","x":72,"y":418,"width":900,"height":30,"rotation":0,"schemaVersion":1,"properties":{"fillColor":"#786554","fontFamily":"Inter, sans-serif","fontSize":12.5,"fontWeight":700,"text":"EXECUTION PLAN  ·  4 PHASES  (CLICK A PHASE TO OPEN ITS TASKS)","__usesTopLeft":true,"frameWidth":900},"zOrder":32},"e3487491-b25d-474c-99fd-acfea57fb637":{"id":"e3487491-b25d-474c-99fd-acfea57fb637","elementType":"rectangle","x":74,"y":454,"width":414,"height":202,"rotation":0,"schemaVersion":2,"properties":{"blur":6,"cornerRadius":16,"fillColor":"#ddd0ba","opacity":0.75,"strokeColor":"#ddd0ba","strokeWidth":0,"text":"","fontSize":14,"textColor":"#000000","textAlign":"center","verticalAlign":"middle"},"zOrder":33},"c900dc80-7199-4c07-b022-f49419c6073e":{"id":"c900dc80-7199-4c07-b022-f49419c6073e","elementType":"rectangle","x":72,"y":448,"width":414,"height":202,"rotation":0,"schemaVersion":2,"properties":{"cornerRadius":16,"fillColor":"#fffaf1","strokeColor":"#1d4ed8","strokeWidth":2,"text":"","fontSize":14,"textColor":"#000000","textAlign":"center","verticalAlign":"middle"},"isLink":true,"linkTarget":"f3626488-d812-4bc1-bb79-367444f3c991","groupId":"7574354b-e7bd-417b-a1f5-abffcfe8e713","linkOrder":1,"zOrder":34},"0045e65b-6897-493b-acfd-484a1d3129f1":{"id":"0045e65b-6897-493b-acfd-484a1d3129f1","elementType":"rectangle","x":96,"y":470,"width":84,"height":26,"rotation":0,"schemaVersion":2,"properties":{"cornerRadius":12,"fillColor":"#e6effc","strokeColor":"#e6effc","strokeWidth":0,"text":"","fontSize":14,"textColor":"#000000","textAlign":"center","verticalAlign":"middle"},"groupId":"7574354b-e7bd-417b-a1f5-abffcfe8e713","zOrder":35},"95ae09c9-c389-4ede-a016-ae2827485f6c":{"id":"95ae09c9-c389-4ede-a016-ae2827485f6c","elementType":"text","x":106,"y":476,"width":80,"height":30,"rotation":0,"schemaVersion":1,"properties":{"fillColor":"#1d4ed8","fontFamily":"Inter, sans-serif","fontSize":11.5,"fontWeight":700,"text":"PHASE 01","__usesTopLeft":true,"frameWidth":80},"groupId":"7574354b-e7bd-417b-a1f5-abffcfe8e713","zOrder":36},"c53e4325-918e-4c2f-9dbb-1e8e3765cde3":{"id":"c53e4325-918e-4c2f-9dbb-1e8e3765cde3","elementType":"text","x":96,"y":510,"width":364,"height":30,"rotation":0,"schemaVersion":1,"properties":{"fillColor":"#3b2a1e","fontFamily":"Outfit, sans-serif","fontSize":19,"fontWeight":700,"text":"Token-bucket middleware","__usesTopLeft":true,"frameWidth":364},"groupId":"7574354b-e7bd-417b-a1f5-abffcfe8e713","zOrder":37},"f3d86d8a-98a1-4d92-918a-19148a234bb3":{"id":"f3d86d8a-98a1-4d92-918a-19148a234bb3","elementType":"text","x":96,"y":544,"width":364,"height":30,"rotation":0,"schemaVersion":1,"properties":{"fillColor":"#5c4a3a","fontFamily":"Inter, sans-serif","fontSize":14,"fontWeight":400,"lineHeight":1.4,"text":"In-process bucket, key/IP lookup, per-route config, flag, tests, and hot-path bench.","__usesTopLeft":true,"frameWidth":364},"groupId":"7574354b-e7bd-417b-a1f5-abffcfe8e713","zOrder":38},"535e1496-8a5d-491a-912c-c4d2fb764102":{"id":"535e1496-8a5d-491a-912c-c4d2fb764102","elementType":"text","x":96,"y":614,"width":200,"height":30,"rotation":0,"schemaVersion":1,"properties":{"fillColor":"#786554","fontFamily":"Inter, sans-serif","fontSize":13,"fontWeight":500,"text":"6 tasks · behind a flag","__usesTopLeft":true,"frameWidth":200},"groupId":"7574354b-e7bd-417b-a1f5-abffcfe8e713","zOrder":39},"9c2f4f33-455e-4fb5-8347-a8671c772927":{"id":"9c2f4f33-455e-4fb5-8347-a8671c772927","elementType":"text","x":408,"y":614,"width":100,"height":30,"rotation":0,"schemaVersion":1,"properties":{"fillColor":"#1d4ed8","fontFamily":"Inter, sans-serif","fontSize":13,"fontWeight":700,"text":"Open →","__usesTopLeft":true,"frameWidth":100},"groupId":"7574354b-e7bd-417b-a1f5-abffcfe8e713","zOrder":40},"b36d0898-d3ab-4a0d-b708-02c6e2f24a78":{"id":"b36d0898-d3ab-4a0d-b708-02c6e2f24a78","elementType":"rectangle","x":528,"y":454,"width":414,"height":202,"rotation":0,"schemaVersion":2,"properties":{"blur":6,"cornerRadius":16,"fillColor":"#ddd0ba","opacity":0.75,"strokeColor":"#ddd0ba","strokeWidth":0,"text":"","fontSize":14,"textColor":"#000000","textAlign":"center","verticalAlign":"middle"},"zOrder":41},"198a75be-7364-41a7-b84e-bb4e5932ea06":{"id":"198a75be-7364-41a7-b84e-bb4e5932ea06","elementType":"rectangle","x":526,"y":448,"width":414,"height":202,"rotation":0,"schemaVersion":2,"properties":{"cornerRadius":16,"fillColor":"#fffaf1","strokeColor":"#1d4ed8","strokeWidth":2,"text":"","fontSize":14,"textColor":"#000000","textAlign":"center","verticalAlign":"middle"},"isLink":true,"linkTarget":"62053593-b48e-4bd5-b0b6-facdb93e49f9","groupId":"1c341250-8833-44c2-a396-d619bae386b6","linkOrder":2,"zOrder":42},"0bb3fe51-518a-49e4-aaf2-1a7c967ad55c":{"id":"0bb3fe51-518a-49e4-aaf2-1a7c967ad55c","elementType":"rectangle","x":550,"y":470,"width":84,"height":26,"rotation":0,"schemaVersion":2,"properties":{"cornerRadius":12,"fillColor":"#e6effc","strokeColor":"#e6effc","strokeWidth":0,"text":"","fontSize":14,"textColor":"#000000","textAlign":"center","verticalAlign":"middle"},"groupId":"1c341250-8833-44c2-a396-d619bae386b6","zOrder":43},"993d21bf-08a1-40f8-9820-5e8be5ea6ec5":{"id":"993d21bf-08a1-40f8-9820-5e8be5ea6ec5","elementType":"text","x":560,"y":476,"width":80,"height":30,"rotation":0,"schemaVersion":1,"properties":{"fillColor":"#1d4ed8","fontFamily":"Inter, sans-serif","fontSize":11.5,"fontWeight":700,"text":"PHASE 02","__usesTopLeft":true,"frameWidth":80},"groupId":"1c341250-8833-44c2-a396-d619bae386b6","zOrder":44},"0511dcf3-4590-4d2d-92a9-52471047e1e7":{"id":"0511dcf3-4590-4d2d-92a9-52471047e1e7","elementType":"text","x":550,"y":510,"width":364,"height":30,"rotation":0,"schemaVersion":1,"properties":{"fillColor":"#3b2a1e","fontFamily":"Outfit, sans-serif","fontSize":19,"fontWeight":700,"text":"Redis-backed counters","__usesTopLeft":true,"frameWidth":364},"groupId":"1c341250-8833-44c2-a396-d619bae386b6","zOrder":45},"a34708bd-f741-45de-80ec-995ec400ab1b":{"id":"a34708bd-f741-45de-80ec-995ec400ab1b","elementType":"text","x":550,"y":544,"width":364,"height":30,"rotation":0,"schemaVersion":1,"properties":{"fillColor":"#5c4a3a","fontFamily":"Inter, sans-serif","fontSize":14,"fontWeight":400,"lineHeight":1.4,"text":"Shared BucketStore with atomic Lua take, automatic key TTL, and fail-open fallback.","__usesTopLeft":true,"frameWidth":364},"groupId":"1c341250-8833-44c2-a396-d619bae386b6","zOrder":46},"7a26a741-d736-414b-9175-912f797767fd":{"id":"7a26a741-d736-414b-9175-912f797767fd","elementType":"text","x":550,"y":614,"width":200,"height":30,"rotation":0,"schemaVersion":1,"properties":{"fillColor":"#786554","fontFamily":"Inter, sans-serif","fontSize":13,"fontWeight":500,"text":"5 tasks · shared replicas","__usesTopLeft":true,"frameWidth":200},"groupId":"1c341250-8833-44c2-a396-d619bae386b6","zOrder":47},"ce5b94de-48c4-4269-bf09-cfeae4847234":{"id":"ce5b94de-48c4-4269-bf09-cfeae4847234","elementType":"text","x":862,"y":614,"width":100,"height":30,"rotation":0,"schemaVersion":1,"properties":{"fillColor":"#1d4ed8","fontFamily":"Inter, sans-serif","fontSize":13,"fontWeight":700,"text":"Open →","__usesTopLeft":true,"frameWidth":100},"groupId":"1c341250-8833-44c2-a396-d619bae386b6","zOrder":48},"748d2507-c40f-469a-8e1b-1c8d7e895318":{"id":"748d2507-c40f-469a-8e1b-1c8d7e895318","elementType":"rectangle","x":982,"y":454,"width":414,"height":202,"rotation":0,"schemaVersion":2,"properties":{"blur":6,"cornerRadius":16,"fillColor":"#ddd0ba","opacity":0.75,"strokeColor":"#ddd0ba","strokeWidth":0,"text":"","fontSize":14,"textColor":"#000000","textAlign":"center","verticalAlign":"middle"},"zOrder":49},"29b35b4e-30d2-4832-8105-1bc115d584f0":{"id":"29b35b4e-30d2-4832-8105-1bc115d584f0","elementType":"rectangle","x":980,"y":448,"width":414,"height":202,"rotation":0,"schemaVersion":2,"properties":{"cornerRadius":16,"fillColor":"#fffaf1","strokeColor":"#1d4ed8","strokeWidth":2,"text":"","fontSize":14,"textColor":"#000000","textAlign":"center","verticalAlign":"middle"},"isLink":true,"linkTarget":"ead01411-0e6f-49cb-8b68-5ceda586a7d6","groupId":"e701f31f-fe51-44a7-8e2a-b001762f56c1","linkOrder":3,"zOrder":50},"3a0d1c2b-4b0a-4fe6-8890-9ddc685936f2":{"id":"3a0d1c2b-4b0a-4fe6-8890-9ddc685936f2","elementType":"rectangle","x":1004,"y":470,"width":84,"height":26,"rotation":0,"schemaVersion":2,"properties":{"cornerRadius":12,"fillColor":"#e6effc","strokeColor":"#e6effc","strokeWidth":0,"text":"","fontSize":14,"textColor":"#000000","textAlign":"center","verticalAlign":"middle"},"groupId":"e701f31f-fe51-44a7-8e2a-b001762f56c1","zOrder":51},"c1c0a09b-11b7-4924-82db-004938c5a048":{"id":"c1c0a09b-11b7-4924-82db-004938c5a048","elementType":"text","x":1014,"y":476,"width":80,"height":30,"rotation":0,"schemaVersion":1,"properties":{"fillColor":"#1d4ed8","fontFamily":"Inter, sans-serif","fontSize":11.5,"fontWeight":700,"text":"PHASE 03","__usesTopLeft":true,"frameWidth":80},"groupId":"e701f31f-fe51-44a7-8e2a-b001762f56c1","zOrder":52},"886ccc28-0018-4385-8e7d-2b42a9fdede1":{"id":"886ccc28-0018-4385-8e7d-2b42a9fdede1","elementType":"text","x":1004,"y":510,"width":364,"height":30,"rotation":0,"schemaVersion":1,"properties":{"fillColor":"#3b2a1e","fontFamily":"Outfit, sans-serif","fontSize":19,"fontWeight":700,"text":"Client contract","__usesTopLeft":true,"frameWidth":364},"groupId":"e701f31f-fe51-44a7-8e2a-b001762f56c1","zOrder":53},"ce3c841f-9587-47d0-b67e-a45d6bd627a7":{"id":"ce3c841f-9587-47d0-b67e-a45d6bd627a7","elementType":"text","x":1004,"y":544,"width":364,"height":30,"rotation":0,"schemaVersion":1,"properties":{"fillColor":"#5c4a3a","fontFamily":"Inter, sans-serif","fontSize":14,"fontWeight":400,"lineHeight":1.4,"text":"RateLimit-* headers, 429 body with Retry-After, jittered SDK backoff, and OpenAPI docs.","__usesTopLeft":true,"frameWidth":364},"groupId":"e701f31f-fe51-44a7-8e2a-b001762f56c1","zOrder":54},"6a85ea57-4cad-48e5-8328-2903e5d9f632":{"id":"6a85ea57-4cad-48e5-8328-2903e5d9f632","elementType":"text","x":1004,"y":614,"width":200,"height":30,"rotation":0,"schemaVersion":1,"properties":{"fillColor":"#786554","fontFamily":"Inter, sans-serif","fontSize":13,"fontWeight":500,"text":"5 tasks · headers & SDKs","__usesTopLeft":true,"frameWidth":200},"groupId":"e701f31f-fe51-44a7-8e2a-b001762f56c1","zOrder":55},"436c4e87-6015-47c9-8fe8-08559e35bb66":{"id":"436c4e87-6015-47c9-8fe8-08559e35bb66","elementType":"text","x":1316,"y":614,"width":100,"height":30,"rotation":0,"schemaVersion":1,"properties":{"fillColor":"#1d4ed8","fontFamily":"Inter, sans-serif","fontSize":13,"fontWeight":700,"text":"Open →","__usesTopLeft":true,"frameWidth":100},"groupId":"e701f31f-fe51-44a7-8e2a-b001762f56c1","zOrder":56},"28e9932b-3dca-4b1c-acee-b54a232bac8b":{"id":"28e9932b-3dca-4b1c-acee-b54a232bac8b","elementType":"rectangle","x":1436,"y":454,"width":414,"height":202,"rotation":0,"schemaVersion":2,"properties":{"blur":6,"cornerRadius":16,"fillColor":"#ddd0ba","opacity":0.75,"strokeColor":"#ddd0ba","strokeWidth":0,"text":"","fontSize":14,"textColor":"#000000","textAlign":"center","verticalAlign":"middle"},"zOrder":57},"35807187-cfa3-46d3-b183-beb24b167ca4":{"id":"35807187-cfa3-46d3-b183-beb24b167ca4","elementType":"rectangle","x":1434,"y":448,"width":414,"height":202,"rotation":0,"schemaVersion":2,"properties":{"cornerRadius":16,"fillColor":"#fffaf1","strokeColor":"#1d4ed8","strokeWidth":2,"text":"","fontSize":14,"textColor":"#000000","textAlign":"center","verticalAlign":"middle"},"isLink":true,"linkTarget":"60ffafa0-ac06-4ee4-ac25-b83ef46ccc6d","groupId":"5278660b-d9ba-4c95-8db9-61840f4ee87e","linkOrder":4,"zOrder":58},"05143167-38ca-46de-8030-895c30e96bfa":{"id":"05143167-38ca-46de-8030-895c30e96bfa","elementType":"rectangle","x":1458,"y":470,"width":84,"height":26,"rotation":0,"schemaVersion":2,"properties":{"cornerRadius":12,"fillColor":"#e6effc","strokeColor":"#e6effc","strokeWidth":0,"text":"","fontSize":14,"textColor":"#000000","textAlign":"center","verticalAlign":"middle"},"groupId":"5278660b-d9ba-4c95-8db9-61840f4ee87e","zOrder":59},"0dd7f361-1143-4566-bc94-b32c5b4cb413":{"id":"0dd7f361-1143-4566-bc94-b32c5b4cb413","elementType":"text","x":1468,"y":476,"width":80,"height":30,"rotation":0,"schemaVersion":1,"properties":{"fillColor":"#1d4ed8","fontFamily":"Inter, sans-serif","fontSize":11.5,"fontWeight":700,"text":"PHASE 04","__usesTopLeft":true,"frameWidth":80},"groupId":"5278660b-d9ba-4c95-8db9-61840f4ee87e","zOrder":60},"45a3bc37-7fb2-4e68-b7f6-60b104f9c259":{"id":"45a3bc37-7fb2-4e68-b7f6-60b104f9c259","elementType":"text","x":1458,"y":510,"width":364,"height":30,"rotation":0,"schemaVersion":1,"properties":{"fillColor":"#3b2a1e","fontFamily":"Outfit, sans-serif","fontSize":19,"fontWeight":700,"text":"Staged rollout","__usesTopLeft":true,"frameWidth":364},"groupId":"5278660b-d9ba-4c95-8db9-61840f4ee87e","zOrder":61},"f1b2bf4d-079e-4dd7-bfa3-c500501dd0fd":{"id":"f1b2bf4d-079e-4dd7-bfa3-c500501dd0fd","elementType":"text","x":1458,"y":544,"width":364,"height":30,"rotation":0,"schemaVersion":1,"properties":{"fillColor":"#5c4a3a","fontFamily":"Inter, sans-serif","fontSize":14,"fontWeight":400,"lineHeight":1.4,"text":"Grafana board, alerts, 1-week shadow mode, tier-by-tier launch, and flag removal.","__usesTopLeft":true,"frameWidth":364},"groupId":"5278660b-d9ba-4c95-8db9-61840f4ee87e","zOrder":62},"d90af430-7753-4da8-9baa-e0a6a138d372":{"id":"d90af430-7753-4da8-9baa-e0a6a138d372","elementType":"text","x":1458,"y":614,"width":200,"height":30,"rotation":0,"schemaVersion":1,"properties":{"fillColor":"#786554","fontFamily":"Inter, sans-serif","fontSize":13,"fontWeight":500,"text":"6 tasks · shadow → live","__usesTopLeft":true,"frameWidth":200},"groupId":"5278660b-d9ba-4c95-8db9-61840f4ee87e","zOrder":63},"929b2885-1a32-4a64-8512-711bbfd4e911":{"id":"929b2885-1a32-4a64-8512-711bbfd4e911","elementType":"text","x":1770,"y":614,"width":100,"height":30,"rotation":0,"schemaVersion":1,"properties":{"fillColor":"#1d4ed8","fontFamily":"Inter, sans-serif","fontSize":13,"fontWeight":700,"text":"Open →","__usesTopLeft":true,"frameWidth":100},"groupId":"5278660b-d9ba-4c95-8db9-61840f4ee87e","zOrder":64},"14ecaf7b-e203-4694-ae50-2f9c06b0457c":{"id":"14ecaf7b-e203-4694-ae50-2f9c06b0457c","elementType":"rectangle","x":74,"y":684,"width":1180,"height":242,"rotation":0,"schemaVersion":2,"properties":{"blur":6,"cornerRadius":16,"fillColor":"#ddd0ba","opacity":0.6,"strokeColor":"#ddd0ba","strokeWidth":0,"text":"","fontSize":14,"textColor":"#000000","textAlign":"center","verticalAlign":"middle"},"zOrder":65},"640f7c29-c9ed-4628-853b-7ffc15755828":{"id":"640f7c29-c9ed-4628-853b-7ffc15755828","elementType":"rectangle","x":72,"y":678,"width":1180,"height":242,"rotation":0,"schemaVersion":2,"properties":{"cornerRadius":16,"fillColor":"#fdf6ea","strokeColor":"#e6cfa8","strokeWidth":1,"text":"","fontSize":14,"textColor":"#000000","textAlign":"center","verticalAlign":"middle"},"zOrder":66},"581c66e4-f241-4f51-9b7c-c5b76e3fad71":{"id":"581c66e4-f241-4f51-9b7c-c5b76e3fad71","elementType":"rectangle","x":88,"y":698,"width":5,"height":202,"rotation":0,"schemaVersion":2,"properties":{"cornerRadius":3,"fillColor":"#c26a1b","strokeColor":"#c26a1b","strokeWidth":0,"text":"","fontSize":14,"textColor":"#000000","textAlign":"center","verticalAlign":"middle"},"zOrder":67},"777bb4c4-07b7-4d3b-85e4-89a462fe7161":{"id":"777bb4c4-07b7-4d3b-85e4-89a462fe7161","elementType":"text","x":112,"y":700,"width":500,"height":30,"rotation":0,"schemaVersion":1,"properties":{"fillColor":"#9a4e10","fontFamily":"Inter, sans-serif","fontSize":12,"fontWeight":700,"text":"RISKS & OPEN QUESTIONS","__usesTopLeft":true,"frameWidth":500},"zOrder":68},"0f316d89-6b26-4ff0-9a91-b48f2e28c208":{"id":"0f316d89-6b26-4ff0-9a91-b48f2e28c208","elementType":"text","x":112,"y":732,"width":1116,"height":30,"rotation":0,"schemaVersion":1,"properties":{"fillColor":"#4a3a2d","fontFamily":"Inter, sans-serif","fontSize":14.5,"fontWeight":400,"lineHeight":1.5,"text":"- **Fail-open or fail-closed** when Redis is unreachable? Plan says open; security may want closed for auth routes.\n- **Clock drift** between replicas skews refill; the Lua script uses Redis time, not host time.\n- **Shared IPs** (corporate NAT) can starve anonymous callers; keyed limits first, IP limits generous.\n- **SDK release cadence:** Phase 3 needs both SDKs cut before Phase 4 enforces.","__usesTopLeft":true,"frameWidth":1116},"zOrder":69},"543797a0-b48f-46b2-bc0c-41696a82e63f":{"id":"543797a0-b48f-46b2-bc0c-41696a82e63f","elementType":"rectangle","x":1286,"y":684,"width":564,"height":242,"rotation":0,"schemaVersion":2,"properties":{"blur":6,"cornerRadius":16,"fillColor":"#ddd0ba","opacity":0.6,"strokeColor":"#ddd0ba","strokeWidth":0,"text":"","fontSize":14,"textColor":"#000000","textAlign":"center","verticalAlign":"middle"},"zOrder":70},"77035506-eafc-4755-9881-3873086c9e88":{"id":"77035506-eafc-4755-9881-3873086c9e88","elementType":"rectangle","x":1284,"y":678,"width":564,"height":242,"rotation":0,"schemaVersion":2,"properties":{"cornerRadius":16,"fillColor":"#fffaf1","strokeColor":"#ded0ba","strokeWidth":1,"text":"","fontSize":14,"textColor":"#000000","textAlign":"center","verticalAlign":"middle"},"zOrder":71},"3181855b-ca35-4d9d-ae7f-381c7a80f2d9":{"id":"3181855b-ca35-4d9d-ae7f-381c7a80f2d9","elementType":"rectangle","x":1300,"y":698,"width":5,"height":202,"rotation":0,"schemaVersion":2,"properties":{"cornerRadius":3,"fillColor":"#a89785","strokeColor":"#a89785","strokeWidth":0,"text":"","fontSize":14,"textColor":"#000000","textAlign":"center","verticalAlign":"middle"},"zOrder":72},"3c878367-003d-4f35-987a-3426229859c0":{"id":"3c878367-003d-4f35-987a-3426229859c0","elementType":"text","x":1324,"y":700,"width":420,"height":30,"rotation":0,"schemaVersion":1,"properties":{"fillColor":"#786554","fontFamily":"Inter, sans-serif","fontSize":12,"fontWeight":700,"text":"OUT OF SCOPE","__usesTopLeft":true,"frameWidth":420},"zOrder":73},"1d0f8a49-3f2b-47f1-9bf7-39ebc48e88ee":{"id":"1d0f8a49-3f2b-47f1-9bf7-39ebc48e88ee","elementType":"text","x":1324,"y":736,"width":500,"height":30,"rotation":0,"schemaVersion":1,"properties":{"fillColor":"#4a3a2d","fontFamily":"Inter, sans-serif","fontSize":14.5,"fontWeight":400,"lineHeight":1.6,"text":"- Per-tenant quotas (billing owns those)\n- Internal service-to-service traffic","__usesTopLeft":true,"frameWidth":500},"zOrder":74},"09e9ac95-c9ef-4ed5-933a-6200c7f63234":{"id":"09e9ac95-c9ef-4ed5-933a-6200c7f63234","elementType":"line","x":72,"y":948,"width":1776,"height":0,"rotation":0,"schemaVersion":2,"properties":{"strokeColor":"#ded0ba","strokeWidth":1,"lineStyle":"solid","startMarker":"none","endMarker":"none"},"zOrder":75},"43be03ab-e5ac-4b96-9bc7-b85ea993869b":{"id":"43be03ab-e5ac-4b96-9bc7-b85ea993869b","elementType":"rectangle","x":72,"y":968,"width":480,"height":56,"rotation":0,"schemaVersion":2,"properties":{"cornerRadius":12,"fillColor":"#efe6d6","strokeColor":"#cbb99f","strokeWidth":1.5,"text":"","fontSize":14,"textColor":"#000000","textAlign":"center","verticalAlign":"middle"},"isLink":true,"linkTarget":"5e6e8cae-907e-4cc6-a51d-60ae50938c61","groupId":"64dbb752-68f3-43b6-bac2-7d1c8122d074","linkOrder":5,"zOrder":76},"c231bf57-cec1-47ef-8c40-f9350041833b":{"id":"c231bf57-cec1-47ef-8c40-f9350041833b","elementType":"text","x":96,"y":986,"width":170,"height":30,"rotation":0,"schemaVersion":1,"properties":{"fillColor":"#3b2a1e","fontFamily":"Outfit, sans-serif","fontSize":16,"fontWeight":700,"text":"📝 Decision log","__usesTopLeft":true,"frameWidth":170},"groupId":"64dbb752-68f3-43b6-bac2-7d1c8122d074","zOrder":77},"9d5b32e0-57d4-4d65-be8a-e00bdeacc5a4":{"id":"9d5b32e0-57d4-4d65-be8a-e00bdeacc5a4","elementType":"text","x":248,"y":988,"width":190,"height":30,"rotation":0,"schemaVersion":1,"properties":{"fillColor":"#786554","fontFamily":"Inter, sans-serif","fontSize":13,"fontWeight":400,"text":"Fills while building","__usesTopLeft":true,"frameWidth":190},"groupId":"64dbb752-68f3-43b6-bac2-7d1c8122d074","zOrder":78},"1b1a36c6-6eee-41e9-9625-4d9662d67bb7":{"id":"1b1a36c6-6eee-41e9-9625-4d9662d67bb7","elementType":"text","x":432,"y":988,"width":80,"height":30,"rotation":0,"schemaVersion":1,"properties":{"fillColor":"#1d4ed8","fontFamily":"Inter, sans-serif","fontSize":13,"fontWeight":700,"text":"Open →","__usesTopLeft":true,"frameWidth":80},"groupId":"64dbb752-68f3-43b6-bac2-7d1c8122d074","zOrder":79},"fe70a0f1-d486-4aa9-8967-c1e89827c98a":{"id":"fe70a0f1-d486-4aa9-8967-c1e89827c98a","elementType":"text","x":1008,"y":988,"width":840,"height":30,"rotation":0,"schemaVersion":1,"properties":{"fillColor":"#8c7a69","fontFamily":"Inter, sans-serif","fontSize":13,"fontWeight":400,"text":"Press 1–5 to jump to any canvas  ·  Cmd/Ctrl+O for full map  ·  Cmd/Ctrl+Enter to present  ·  As-built records attach left","textAlign":"right","__usesTopLeft":true,"frameWidth":840},"zOrder":80},"2a2e3704-9afc-4786-aafb-03192831d046":{"id":"2a2e3704-9afc-4786-aafb-03192831d046","elementType":"connector","schemaVersion":1,"properties":{"endAnchor":"edge-left","endElementId":"198a75be-7364-41a7-b84e-bb4e5932ea06","endMarker":"arrow","startAnchor":"edge-right","startElementId":"c900dc80-7199-4c07-b022-f49419c6073e","startMarker":"none","strokeColor":"#8c7a69","strokeWidth":2,"lineStyle":"solid","label":""},"zOrder":81},"f33c3134-0555-4c94-aa5c-dde479b2b1d6":{"id":"f33c3134-0555-4c94-aa5c-dde479b2b1d6","elementType":"connector","schemaVersion":1,"properties":{"endAnchor":"edge-left","endElementId":"29b35b4e-30d2-4832-8105-1bc115d584f0","endMarker":"arrow","startAnchor":"edge-right","startElementId":"198a75be-7364-41a7-b84e-bb4e5932ea06","startMarker":"none","strokeColor":"#8c7a69","strokeWidth":2,"lineStyle":"solid","label":""},"zOrder":82},"5393bcc2-689a-49c6-8a9d-e0c8ecefe1d1":{"id":"5393bcc2-689a-49c6-8a9d-e0c8ecefe1d1","elementType":"connector","schemaVersion":1,"properties":{"endAnchor":"edge-left","endElementId":"35807187-cfa3-46d3-b183-beb24b167ca4","endMarker":"arrow","startAnchor":"edge-right","startElementId":"29b35b4e-30d2-4832-8105-1bc115d584f0","startMarker":"none","strokeColor":"#8c7a69","strokeWidth":2,"lineStyle":"solid","label":""},"zOrder":83}}}}