{"id":"19611150-abd2-473e-95e4-ee641c320326","shortId":"vxHayz","kind":"x402","title":"Written technical article on refactoring AI-generated Rust/Cloudflare Workers routing code, sold via Ethereum wallet on Every Good Work.","tagline":"Written technical article on refactoring AI-generated Rust/Cloudflare Workers routing code, sold via Ethereum wallet on Every Good Work.","description":"This endpoint hosts a written technical article titled \"Refactoring AI-Generated Spaghetti Code: Rust Cloudflare Workers Routing Structure\" on the Every Good Work content platform (codex.everygoodwork.io). The article discusses a real-world scenario where AI-generated Rust code for Cloudflare Workers created tangled routing logic — Bearer token requests returned 302 redirects to login, headless clients couldn't authenticate properly, and the routing layer's structure determined auth requirements in unpredictable ways.\n\nEvery Good Work is a creator-direct content marketplace where 100% of each sale goes to the creator's Ethereum wallet. Creators prepay hosting credits, and infrastructure costs scale with sales volume. The platform uses wallet-based identity (MetaMask, Coinbase Passkey, etc.) for both creators and buyers.\n\nDespite being listed as an x402 endpoint, probing returned HTTP 403 (POST) and 401 (GET) rather than the expected 402 Payment Required challenge. This means the endpoint is not currently functioning as a standard x402 paywall — it may require platform-specific authentication or wallet connection rather than the x402 wire protocol. No OpenAPI schema, pricing information, or API documentation was found. The content and purchase flow likely require interacting through the platform's web interface with a connected Ethereum wallet.","tags":[],"capabilities":["written-content","technical-article","rust","cloudflare-workers","ethereum-wallet-payment","creator-marketplace"],"categories":["content","knowledge"],"synonyms":["technical writing","code refactoring article","Rust spaghetti code","Cloudflare Workers routing","AI-generated code review","Every Good Work","paid article","developer content"],"warnings":["Endpoint did not return HTTP 402 on POST or GET — not behaving as a standard x402 endpoint","No OpenAPI schema or API documentation found","No pricing information available — unclear what the article costs","Platform docs, API, pricing, and README pages all return 404","Purchase likely requires wallet-based web UI interaction, not programmatic x402 payment"],"endpointUrl":"https://codex.everygoodwork.io/0x1C1Ee78b938Af5333D3a99BF659e9aa771d8A8D5/refactoring-ai-generated-spaghetti-code-rust-cloudflare-workers-routing-structure","protocol":"x402","transport":"http","auth":{"type":"x402","details":[{"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","extra":{"name":"USD Coin","version":"2"},"payTo":"0x3Cb759D61A874e19b61962456e9F54439e39775D","scheme":"exact","network":"eip155:8453","mimeType":"text/markdown; charset=utf-8","description":"Every curl request with a Bearer token returned 302 to login. Headless clients had tokens, not cookies, and the routing structure made the API unroutable. The routing layer had become so tangled that where a route lived in the code determined what auth it required. This is what AI-generated code does when you don't interrogate every line.","outputSchema":{"input":{"type":"http","method":"GET","discoverable":true},"output":{"type":"text/markdown; charset=utf-8"}},"maxAmountRequired":"1000","maxTimeoutSeconds":300},{"asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","extra":{"name":"USD Coin","feePayer":"4mrVHqtDj5ctVbsFGPWSyXuykvw3K9U2rwsGfMKMvHeK","blockhashSlot":403202164,"recentBlockhash":"8U1gfNA6GSrrMC5P35DFczfVNv68faUVGtsswih6wavC","blockhashValidUntil":1772250297},"payTo":"4mrVHqtDj5ctVbsFGPWSyXuykvw3K9U2rwsGfMKMvHeK","scheme":"exact","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","mimeType":"text/markdown; charset=utf-8","description":"Every curl request with a Bearer token returned 302 to login. Headless clients had tokens, not cookies, and the routing structure made the API unroutable. The routing layer had become so tangled that where a route lived in the code determined what auth it required. This is what AI-generated code does when you don't interrogate every line.","outputSchema":{"input":{"type":"http","method":"GET","discoverable":true},"output":{"type":"text/markdown; charset=utf-8"}},"maxAmountRequired":"1000","maxTimeoutSeconds":300}]},"qualityScore":"0.150","qualityRationale":"The endpoint did not return a 402 x402 challenge on either POST or GET (returned 403/401 instead), so it is not functioning as a standard x402 paywall. No API schema, pricing, or documentation was found. The listing is effectively a stub with only the title/description and platform-level information available.","verified":false,"liveness":"unknown","lastLivenessCheck":null,"agentReviews":{"count":0,"score_avg":null,"cost_usd_avg":null,"success_rate":null,"latency_p50_ms":null,"narrative_summary":null,"summary_updated_at":null},"enrichmentModel":"anthropic/claude-opus-4.6","enrichmentVersion":2,"enrichedAt":"2026-04-22T01:21:13.009Z","embedding":[0.000029802322,-0.014167786,-0.0049095154,-0.006416321,0.06359863,-0.0657959,-0.014015198,0.04031372,0.0070152283,-0.013961792,0.055480957,-0.038238525,-0.0040740967,-0.013511658,0.019515991,0.037628174,0.004096985,-0.052947998,-0.026824951,0.04046631,0.050994873,-0.0077438354,-0.005142212,0.038879395,-0.037902832,-0.016494751,0.0031719208,-0.02255249,-0.009254456,-0.02230835,0.057739258,-0.03878784,0.023040771,-0.007484436,-0.005531311,-0.022033691,-0.0077819824,-0.012062073,0.05078125,0.010261536,-0.019226074,-0.02331543,0.022262573,0.022338867,-0.04510498,0.02909851,0.02027893,0.008911133,0.027297974,0.0020179749,-0.03857422,-0.013580322,-0.02420044,0.0038642883,-0.02720642,0.00068998337,-0.029556274,-0.0053596497,-0.027252197,0.01550293,0.04849243,-0.034179688,0.01247406,-0.0052223206,-0.03201294,-0.027999878,-0.036743164,-0.01259613,0.006629944,0.033081055,0.056793213,0.04348755,0.07141113,-0.032318115,-0.017349243,-0.030029297,-0.023956299,0.013725281,-0.0048675537,-0.02331543,-0.04800415,0.028335571,-0.0637207,-0.0435791,-0.00274086,-0.041168213,-0.04864502,-0.025756836,-0.022018433,-0.0055656433,-0.06713867,0.029403687,0.018112183,0.018707275,0.0345459,-0.024658203,-0.018417358,0.03829956,0.0069236755,0.03112793,0.007827759,-0.018066406,-0.01576233,-0.0036754608,0.06689453,0.01939392,0.023330688,-0.014198303,0.0040016174,-0.028778076,-0.11419678,0.010536194,-0.031219482,0.013549805,0.026245117,0.0045700073,0.0090408325,0.0025119781,-0.013336182,0.01247406,-0.035339355,0.036346436,0.033691406,-0.0132369995,-0.018951416,-0.033111572,-0.014823914,-0.022018433,-0.031951904,-0.028564453,0.068603516,0.0129470825,0.047668457,-0.04586792,-0.061950684,0.028625488,0.001750946,-0.037353516,-0.028305054,0.01725769,-0.004600525,0.0158844,0.0009264946,0.014915466,-0.062438965,-0.012413025,0.0023155212,-0.0025157928,-0.035247803,0.005859375,-0.0079574585,-0.0079193115,-0.00072431564,-0.007987976,0.012161255,-0.034606934,0.030075073,0.03643799,-0.04522705,0.014923096,-0.024841309,0.05050659,-0.045318604,0.015014648,-0.011016846,0.01197052,0.04083252,-0.049224854,-0.059509277,-0.017944336,-0.032348633,-0.0059013367,-0.046783447,0.016860962,-0.05734253,-0.054626465,0.028198242,-0.010314941,0.0015478134,-0.021728516,-0.010238647,-0.018112183,-0.03768921,0.013122559,-0.06518555,-0.04498291,0.0034389496,0.026992798,-0.016952515,0.05734253,0.00011497736,0.05227661,0.031433105,0.03967285,0.011421204,-0.024276733,0.015594482,-0.023971558,0.03942871,0.040771484,0.0064849854,-0.023529053,0.041870117,0.04840088,-0.0076789856,0.02798462,0.026641846,-0.029296875,-0.026779175,0.011154175,0.04751587,-0.00642395,-0.024246216,0.021560669,-0.006046295,-0.047454834,0.02305603,0.015151978,0.049041748,0.04309082,-0.050811768,0.07171631,-0.017868042,0.03164673,0.0046424866,0.041748047,0.004535675,-0.037597656,0.026351929,-0.012573242,0.017181396,0.046691895,-0.047790527,-0.026977539,0.013160706,0.03717041,0.0132369995,-0.019989014,0.023010254,0.0018720627,-0.038513184,-0.023117065,0.022598267,-0.040924072,-0.0024337769,-0.0027008057,-0.03604126,-0.034118652,0.012245178,0.020050049,0.050109863,0.041015625,0.019088745,0.012489319,-0.033966064,-0.028945923,0.041503906,0.06304932,0.028427124,-0.020996094,0.028366089,0.016036987,-0.034088135,0.015640259,-0.01777649,-0.016967773,-0.034973145,0.023025513,-0.02482605,-0.0047798157,0.037322998,0.062805176,0.047973633,-0.029159546,-0.05859375,-0.02470398,0.006504059,0.0075187683,-0.0104522705,0.02810669,-0.01197052,-0.027267456,-0.00082683563,-0.01739502,0.010253906,0.043914795,-0.015296936,-0.0032787323,0.0056114197,0.02748108,-0.006954193,-0.0077819824,0.03201294,-0.0033283234,0.033813477,0.014160156,0.07171631,-0.026901245,0.009475708,0.008529663,0.04159546,0.029464722,-0.020690918,0.0063934326,0.0055389404,0.001748085,0.012168884,0.005455017,0.028289795,0.013084412,-0.026351929,0.06347656,-0.05130005,0.004245758,-0.022781372,-0.0046195984,0.0715332,0.014411926,0.011123657,-0.07861328,0.0040779114,-0.022018433,0.012611389,-0.03515625,0.02305603,0.0030212402,0.029647827,-0.01461792,-0.00548172,-0.014022827,0.017669678,-0.022109985,0.002161026,-0.026168823,0.0013074875,-0.0075035095,0.0209198,0.034851074,0.05630493,-0.01586914,-0.031280518,-0.06903076,-0.013259888,0.014518738,-0.02609253,0.020507812,0.021118164,0.004535675,0.014801025,0.015487671,-0.037506104,0.030593872,-0.010475159,-0.03213501,-0.03704834,-0.011070251,0.014564514,-0.042633057,-0.039093018,-0.034576416,-0.07611084,0.014137268,0.034057617,0.034362793,0.03173828,0.0026359558,-0.015342712,-0.013427734,0.02961731,-0.066101074,0.006416321,0.03375244,-0.023208618,-0.03277588,-0.01914978,0.015106201,0.031707764,0.050720215,0.02192688,0.008979797,0.09527588,0.059417725,-0.033081055,-0.033691406,-0.0056877136,0.015182495,-0.024734497,0.007095337,-0.062194824,-0.04458618,0.03366089,-0.016143799,-0.025421143,-0.013069153,0.014968872,0.0017957687,0.04815674,0.013343811,0.055419922,0.03930664,0.036499023,0.052246094,0.0044784546,-0.0002861023,0.0446167,-0.00472641,0.06756592,0.0042877197,-0.04159546,0.011520386,0.0023918152,-0.0036411285,0.030807495,-0.013725281,-0.0057411194,-0.060516357,0.03970337,-0.006942749,0.007659912,0.050567627,0.02456665,-0.036315918,-0.02017212,0.003835678,0.020599365,-0.00472641,0.03515625,-0.0052604675,0.003162384,-0.080078125,-0.027648926,-0.016067505,-0.00504303,-0.04360962,0.018600464,0.00035476685,0.031585693,-0.01965332,0.005886078,-0.044708252,-0.004501343,0.0002682209,-0.052215576,-0.0025844574,-0.033843994,-0.009162903,0.0473938,-0.0028800964,-0.010017395,-0.041870117,-0.008018494,-0.011276245,0.0345459,0.014045715,-0.06933594,-0.019332886,0.029708862,0.0099105835,0.032043457,0.020248413,0.024429321,-0.0022220612,-0.015419006,0.017364502,0.013031006,-0.010261536,-0.020599365,0.004173279,0.015388489,-0.033294678,0.02003479,-0.032470703,0.011314392,-0.010437012,-0.03161621,-0.023010254,0.028884888,-0.03756714,-0.0007367134,-0.025161743,-0.03741455,0.004272461,-0.043884277,-0.027450562,0.024551392,0.07714844,-0.055511475,-0.012008667,-0.03933716,0.017028809,-0.002653122,0.028640747,0.024780273,-0.01965332,0.009353638,-0.07562256,-0.0019235611,-0.04135132,-0.0017576218,0.005191803,-0.014533997,-0.036956787,-0.02255249,0.009666443,-0.009338379,0.02217102,-0.02986145,0.011383057,-0.033325195,-0.03491211,-0.0035037994,0.0063209534,-0.0065574646,0.01763916,-0.064941406,-0.008964539,0.001121521,0.053588867,-0.016921997,-0.0010404587,-0.029968262,0.009185791,-0.0013437271,-0.028289795,-0.0184021,-0.003396988,-0.044433594,-0.030349731,0.0022525787,0.004043579,0.051940918,-0.0010280609,0.019760132,0.02947998,-0.060333252,0.00086402893,-0.014144897,-0.02281189,-0.011810303,-0.031585693,-0.013793945,-0.006378174,0.012458801,0.009239197,-0.0052757263,-0.0070991516,0.006252289,0.0003695488,-0.010353088,0.022018433,0.042266846,-0.041290283,0.01209259,0.017303467,-0.0016994476,0.013015747,0.046539307,-0.049560547,0.02116394,0.045166016,-0.024002075,-0.013145447,0.018692017,0.018966675,-0.020126343,0.045013428,-0.014320374,-0.010864258,-0.008049011,0.011482239,-0.018737793,-0.000248909,-0.025375366,-0.05734253,0.059326172,-0.0010185242,-0.007858276,0.017501831,0.033172607,0.0041122437,-0.045074463,-0.044281006,-0.014389038,0.03237915,-0.04824829,0.05368042,-0.0006427765,-0.011688232,0.012969971,0.018630981,0.0031547546,0.023773193,-0.015037537,-0.015853882,0.018615723,0.0053215027,0.008010864,0.033721924,0.027679443,0.050842285,0.049224854,-0.028121948,-0.01902771,-0.024612427,-0.024475098,0.004421234,0.010948181,0.028747559,0.048217773,-0.026901245,0.013427734,0.0049057007,-0.013206482,-0.014221191,0.009170532,0.017578125,-0.00090026855,-0.0075149536,-0.010246277,0.0093688965,0.016403198,-0.020767212,-0.011955261,-0.009223938,-0.03326416,0.0057411194,-0.033996582,-0.02142334,-0.03503418,0.036193848,0.024856567,0.030197144,0.0049057007,-0.013420105,-0.0065689087,-0.0057907104,0.022079468,0.009651184,-0.0065193176,-0.036865234,-0.0093688965,-0.029434204,0.02861023,0.0019111633,0.014373779,-0.018630981,-0.0143966675,0.034057617,-0.010406494,0.013900757,-0.016448975,-0.011810303,0.040771484,0.015220642,0.033233643,-0.022155762,-0.041412354,-0.0024280548,0.004589081,0.014724731,-0.009216309,0.018707275,-0.04727173,0.0076522827,-0.0047302246,0.018341064,0.009384155,0.030838013,0.009063721,-0.004146576,-0.043548584,0.027679443,-0.019165039,-0.03768921,0.022857666,-0.014350891,-0.019256592,-0.019699097,0.01146698,0.012817383,-0.015594482,0.0103302,-0.018218994,-0.025482178,-0.008613586,-0.058807373,0.022949219,-0.0032482147,0.040740967,-0.023864746,0.0008983612,0.017196655,0.01285553,-0.022476196,-0.038085938,0.02394104,0.0052986145,0.0064849854,0.0016393661,-0.028442383,-0.021499634,0.018936157,0.0090789795,-0.035736084,-0.015487671,-0.01965332,0.01499176,0.016952515,0.011512756,0.015235901,-0.052337646,-0.029754639,-0.00037002563,-0.008232117,-0.058410645,0.027420044,0.009796143,0.005794525,0.0138168335,-0.015808105,0.0035858154,0.011375427,-0.029220581,-0.013900757,-0.027511597,-0.011123657,-0.030548096,0.024414062,0.004711151,-0.000500679,-0.012664795,-0.004508972,-0.012428284,-0.014511108,-0.033599854,-0.0035114288,-0.026535034,0.00374794,-0.015090942,-0.0287323,0.004020691,-0.02331543,-0.040802002,-0.0072364807,-0.0010700226,-0.015296936,0.008010864,0.02949524,-0.015792847,-0.010772705,0.01625061,0.014579773,0.032806396,0.008590698,0.009994507,-0.0357666,-0.016311646,0.014923096,-0.014099121,0.037078857,-0.021728516,0.053100586,0.0027008057,0.012687683,0.0073013306,0.027450562,-0.020385742,-0.015419006,0.04208374,0.020263672,0.022216797,-0.010765076,0.0010280609,0.004009247,0.012145996,-0.039611816,-0.009887695,-0.0047912598,0.02671814,-0.022888184,0.033569336,-0.013084412,-0.028244019,-0.02053833,-0.02532959,0.00028967857,0.01158905,0.021636963,-0.027038574,-0.02053833,-0.042816162,-0.019012451,0.007904053,-0.037628174,0.0058517456,0.027282715,-0.023254395,-0.09729004,-0.0006070137,0.026901245,-0.024017334,0.00087308884,-0.0031967163,0.0345459,-0.008018494,-0.007911682,-0.03363037,0.053100586,-0.032287598,-0.019546509,-0.018920898,0.04498291,0.03186035,0.0146484375,-0.00856781,0.010818481,0.035491943,0.009422302,-0.010169983,-0.001578331,-0.002363205,-0.026351929,-0.03778076,-0.008277893,-0.021896362,0.0574646,-0.040985107,0.02406311,0.023223877,0.0031013489,-0.014076233,0.00573349,0.032470703,-0.011680603,0.012138367,0.050476074,0.008087158,0.009689331,-0.028137207,0.036346436,0.02355957,-0.018356323,-0.019348145,0.016677856,-0.0119018555,-0.0049972534,-0.025802612,-0.006324768,-0.017547607,-0.013374329,-0.03515625,-0.027389526,0.020477295,-0.0012016296,0.0073165894,-0.00015807152,-0.011116028,-0.015129089,-0.017990112,0.003944397,-0.014480591,0.027999878,0.026733398,0.000934124,0.00073480606,-0.025741577,-0.023025513,0.0124435425,-0.0024909973,0.050811768,0.022262573,0.015625,-0.014457703,0.01361084,0.010513306,0.026733398,-0.039733887,0.01777649,-0.013290405,0.012054443,0.006778717,-0.02911377,-0.048736572,0.01197052,0.010520935,-0.032684326,-0.013801575,0.0038089752,-0.021469116,0.011894226,-0.028839111,-0.016311646,0.023284912,-0.0033073425,0.0027866364,0.047607422,-0.014549255,0.02822876,-0.002878189,-0.027008057,0.028060913,0.0058059692,0.017623901,0.012199402,-0.018096924,-0.009178162,0.010803223,-0.00793457,0.007965088,0.0052261353,0.01776123,-0.020095825,0.021987915,0.019927979,-0.017547607,0.01928711,0.010871887,0.03793335,-0.0019741058,0.0037975311,0.031036377,-0.01675415,-0.0073776245,0.016113281,0.017349243,-0.011062622,-0.012840271,-0.026184082,0.04196167,0.018417358,-0.010917664,0.02229309,-0.0062675476,0.03643799,0.007843018,-0.028808594,-0.008972168,-0.017303467,-0.025146484,0.02482605,-0.004261017,0.04425049,-0.0030403137,-0.028930664,0.0151901245,-0.01197052,0.04208374,0.00086927414,0.011756897,-0.020599365,-0.06060791,-0.026535034,0.038146973,-0.03201294,0.015594482,-0.025421143,0.030639648,-0.007797241,0.04171753,0.007534027,0.025802612,-0.0059013367,-0.03930664,-0.02859497,0.0054512024,0.025253296,-0.035125732,-0.03857422,-0.033050537,0.028884888,-0.0087890625,0.02394104,0.030593872,0.01071167,0.0074157715,0.021118164,0.024139404,-0.013046265,0.008049011,-0.04083252,0.027450562,0.01058197,0.0056648254,0.026046753,-0.0234375,0.026535034,-0.005580902,0.029708862,0.041778564,0.019546509,0.011009216,-0.018966675,-0.009429932,0.010047913,0.00077724457,-0.051513672,0.023620605,0.00012278557,0.043548584,0.01687622,0.014770508,0.0005774498,0.020645142,-0.004508972,-0.007736206,0.0118255615,0.00074005127,0.0051078796,0.005680084,-0.043273926,0.0055656433,-0.010810852,0.026367188,-0.010848999,0.0033607483,-0.02003479,-0.04916382,0.0026168823,-0.030166626,0.0026226044,-0.009307861,-0.0181427,0.015808105,-0.016052246,0.0031394958,0.036346436,-0.009300232,0.0077590942,0.023040771,-0.023971558,-0.026397705,0.017822266,-0.0012702942,-0.012741089,-0.0088272095,-0.0037403107,0.012046814,0.0058517456,0.019546509,0.03186035,-0.024719238,-0.015838623,-0.0071372986,-0.006767273,0.022949219,-0.013366699,0.0031738281,-0.015182495,0.028762817,0.026916504,0.003446579,0.0014076233,-0.009407043,0.05697632,0.027664185,-0.01651001,0.009963989,0.0029201508,-0.0010795593,-0.0052719116,-0.010421753,0.003604889,0.019332886,-0.023956299,0.008728027,0.021728516,0.011619568,0.007144928,-0.017303467,-0.014633179,0.005874634,0.027664185,-0.0064735413,-0.00090789795,-0.035186768,0.033813477,-0.023376465,-0.006881714,-0.025802612,0.010528564,0.010665894,-0.013130188,0.0099105835,-0.016906738,-0.0096206665,0.008369446,0.006542206,0.020004272,0.013305664,0.0016784668,0.016418457,-0.021453857,0.024108887,0.00082206726,-0.012924194,0.002418518,-0.0032634735,0.032073975,0.061950684,0.0012998581,-0.023971558,0.005508423,-0.037628174,-0.00050354004,-0.0127334595,0.018112183,-0.0038757324,-0.014793396,-0.0042419434,-0.0061187744,0.016220093,0.031219482,0.041809082,-0.006538391,-0.020355225,-0.011993408,-0.004348755,0.0028038025,-0.0061683655,-0.017089844,0.027770996,0.002199173,0.013549805,0.02154541,0.01335907,0.012420654,-0.0061950684,0.0037937164,-0.030349731,-0.004878998,-0.007545471,-0.02545166,-0.0063476562,0.016799927,0.035949707,-0.021453857,-0.029403687,-0.00066185,-0.014312744,-0.017608643,0.023269653,0.021911621,0.0074424744,0.017868042,0.011169434,0.024505615,-0.022949219,0.09112549,-0.003435135,0.038513184,-0.015792847,0.00655365,0.01411438,-0.0025978088,0.027740479,0.0055160522,-0.022735596,-0.05935669,0.0066986084,0.0053596497,-0.009513855,0.0030879974,-0.016815186,-0.047698975,0.03048706,-0.016571045,0.017868042,-0.014533997,-0.010345459,0.0070114136,-0.02128601,-0.00037884712,0.0063934326,0.021118164,0.017791748,0.022201538,-0.006111145,-0.024871826,-0.0059547424,0.0023517609,0.036315918,-0.012016296,0.00006276369,0.00071811676,0.0042686462,-0.007911682,-0.01852417,-0.013420105,0.016189575,-0.014625549,-0.0027160645,-0.02192688,0.004234314,0.021987915,-0.03555298,-0.0043411255,-0.008232117,-0.013832092,-0.014762878,0.03451538,-0.0047187805,0.03842163,-0.021560669,-0.007926941,0.044006348,0.023727417,0.009239197,-0.008613586,-0.008377075,0.0035991669,0.004295349,-0.013092041,-0.0030174255,0.0049705505,0.028076172,0.016418457,-0.01878357,-0.009994507,0.037963867,0.04736328,0.009002686,0.014541626,-0.003944397,0.024017334,0.0022735596,-0.0259552,0.038208008,-0.013305664,0.006286621,0.01524353,0.031951904,-0.033416748,0.014625549,0.016677856,0.022857666,-0.024612427,0.019195557,0.02168274,-0.014228821,-0.00081682205,0.032806396,0.0017681122,-0.0051078796,-0.02897644,-0.0067443848,-0.0070610046,0.017028809,0.017974854,-0.006969452,-0.00034451485,0.019943237,0.0029411316,-0.00081920624,-0.0041503906,0.020629883,0.010093689,0.04046631,-0.028915405,-0.0074005127,0.005592346,0.011451721,-0.010238647,-0.0016622543,0.0124053955,-0.012466431,-0.017211914,-0.017410278,0.010482788,-0.014572144,-0.018798828,-0.0027923584,-0.0046081543,0.019805908,-0.0019760132,-0.032989502,0.007858276,-0.019104004,0.010810852,0.038269043,0.01625061,-0.018371582,0.02848816,-0.005584717,-0.0038833618,-0.005493164,-0.003047943,-0.0013380051,-0.02835083,0.035003662,-0.025344849,-0.02532959,0.01637268,-0.017288208,0.016662598,0.0014410019,-0.0154418945,0.030593872,-0.007671356,0.02520752,0.0033092499,0.021530151,-0.025436401,-0.0013685226,-0.0073928833,-0.060913086,-0.020690918,0.0036449432,-0.0143585205,-0.017318726,-0.038482666,-0.00009256601,0.021484375,0.011138916,-0.009422302,0.01411438,0.030975342,0.025802612,0.01574707,0.021820068,-0.0009407997,0.032073975,0.019592285,-0.002040863,0.008918762,0.02142334,-0.008682251,0.025909424,-0.04486084,-0.008255005,0.0055656433,-0.02861023,0.020874023,0.03173828,-0.009132385,0.008399963,0.0012645721,0.026824951,0.015487671,-0.0067329407,-0.02229309,0.026824951,-0.017578125,-0.0060806274,-0.026184082,0.0029697418,-0.03475952,0.023147583,0.0036754608,-0.0040245056,-0.0129852295,0.011039734,-0.024749756,0.008056641,-0.023223877,0.018539429,-0.025238037,0.03010559,-0.040252686,0.0036411285,0.02217102,0.042175293,0.035705566,-0.002910614,0.00089502335,0.0065078735,0.02154541,-0.017684937,0.02166748,0.0059814453,0.000038444996,-0.04156494,-0.0010128021,0.0637207,0.042907715,-0.015640259,-0.002374649,-0.0056037903,0.0107803345,-0.011978149,-0.00843811,-0.024276733,-0.013252258,-0.009048462,0.0065689087,-0.020935059,0.021209717,-0.031799316,0.0043563843,-0.011329651,-0.019363403,0.033691406,0.003282547,-0.004547119,0.034423828,-0.016952515,-0.009376526,-0.000116467476,0.014305115,0.031280518,-0.0107421875,-0.008155823,-0.048706055,-0.011672974,-0.006526947,-0.029876709,0.046661377,-0.009109497,0.015579224,-0.019042969,-0.009765625,-0.023452759,-0.0023612976,-0.010902405,0.0118637085,0.023284912,-0.022918701,-0.003955841,0.016860962,-0.014984131,0.0027580261,-0.02482605,-0.014816284,0.0017585754,-0.0126571655,-0.0016479492,0.01361084,0.0045661926,-0.03161621,0.007797241,0.0027770996,-0.008987427,0.0124435425,-0.0011091232,0.0067863464,-0.0037670135,0.0044136047,-0.00017535686,-0.016204834,0.0021152496,-0.011566162,-0.016326904,0.026016235,-0.00818634,0.015838623,-0.0026893616,0.011131287,-0.012763977,-0.013702393,-0.016937256,0.0015068054,-0.026809692,0.012145996,0.02420044,0.0011882782,0.012802124,0.0062408447,0.009750366,-0.03378296,0.019058228,0.01902771,-0.01776123,0.015823364,-0.00086545944,0.00983429,0.022537231,0.0060768127,-0.02758789,0.006313324,0.010955811,0.036621094,0.009010315,-0.0023765564,-0.010383606,-0.035339355,0.009864807,-0.0112838745,0.0071983337,-0.0078048706,-0.018722534,0.012809753,-0.03942871,0.0047950745,-0.015472412,-0.0053901672,0.017425537,-0.016357422,-0.020111084,0.01524353,0.016113281,0.032318115,-0.0018234253,0.03643799,0.045135498,0.021392822,-0.014984131,-0.014198303,-0.008529663,0.032165527,0.045043945,0.0035705566,-0.015838623,-0.026748657,0.015037537,-0.0066490173,0.0047836304,0.009002686,-0.054748535,-0.002626419,0.017913818,0.021591187,-0.0011920929,0.004875183,0.023010254,0.025894165,-0.0184021,-0.00274086,0.03994751,0.0031147003,-0.0047073364,0.0014562607,0.009346008,-0.03427124,-0.0061302185,-0.026123047,0.018844604,-0.00043606758,-0.011894226,0.026535034,-0.006511688,0.0034370422,-0.016174316,0.008010864,0.009513855,0.008880615,-0.006439209,-0.02558899],"createdAt":"2026-04-21T18:32:35.160Z","updatedAt":"2026-04-22T04:02:50.729Z","lastSeenAt":"2026-04-22T04:02:50.729Z","tsv":"'100':126 '302':93 '401':177 '402':183 '403':174 'AI-generated code review' 'Cloudflare Workers routing' 'Every Good Work' 'Rust spaghetti code' 'ai':7,27,51,78 'ai-gener':6,26,50,77 'api':222 'articl':3,23,47,69 'auth':110 'authent':101,206 'base':153 'bearer':89 'buyer':163 'challeng':186 'client':98 'cloudflar':56,83 'cloudflare-workers' 'code':12,32,54,81 'code refactoring article' 'codex.everygoodwork.io':67 'coinbas':156 'connect':209,242 'content':65,123,227 'cost':143 'couldn':99 'creat':85 'creator':121,133,137,161 'creator-direct':120 'creator-marketplace' 'credit':140 'current':193 'despit':164 'determin':109 'developer content' 'direct':122 'discuss':70 'document':223 'endpoint':42,170,190 'etc':158 'ethereum':15,35,135,243 'ethereum-wallet-payment' 'everi':18,38,62,115 'expect':182 'flow':230 'found':225 'function':194 'generat':8,28,52,79 'get':178 'goe':130 'good':19,39,63,116 'headless':97 'host':43,139 'http':173 'ident':154 'inform':220 'infrastructur':142 'interact':233 'interfac':239 'layer':106 'like':231 'list':166 'logic':88 'login':96 'marketplac':124 'may':201 'mean':188 'metamask':155 'openapi':217 'paid article' 'passkey':157 'payment':184 'paywal':199 'platform':66,149,204,236 'platform-specif':203 'post':175 'prepay':138 'price':219 'probe':171 'proper':102 'protocol':215 'purchas':229 'rather':179,210 'real':73 'real-world':72 'redirect':94 'refactor':5,25,49 'request':91 'requir':111,185,202,232 'return':92,172 'rout':11,31,58,87,105 'rust':55,80 'rust/cloudflare':9,29 'sale':129,146 'scale':144 'scenario':75 'schema':218 'sold':13,33 'spaghetti':53 'specif':205 'standard':197 'structur':59,108 'tangl':86 'technic':2,22,46 'technical writing' 'technical-article' 'titl':48 'token':90 'unpredict':113 'use':150 'via':14,34 'volum':147 'wallet':16,36,136,152,208,244 'wallet-bas':151 'way':114 'web':238 'wire':214 'work':20,40,64,117 'worker':10,30,57,84 'world':74 'written':1,21,45 'written-content' 'x402':169,198,213","prices":[{"id":"54a50933-2152-4047-a693-473cc74dcd2a","listingId":"19611150-abd2-473e-95e4-ee641c320326","amountUsd":null,"unit":"per_call","nativeCurrency":"USD COIN","nativeAmount":"1000","chain":"base","payTo":"0x3Cb759D61A874e19b61962456e9F54439e39775D","paymentMethod":"x402-usd coin","isPrimary":true,"details":{"scheme":"exact","mime_type":"text/markdown; charset=utf-8","accepts_all":[{"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","extra":{"name":"USD Coin","version":"2"},"payTo":"0x3Cb759D61A874e19b61962456e9F54439e39775D","scheme":"exact","network":"eip155:8453","mimeType":"text/markdown; charset=utf-8","description":"Every curl request with a Bearer token returned 302 to login. Headless clients had tokens, not cookies, and the routing structure made the API unroutable. The routing layer had become so tangled that where a route lived in the code determined what auth it required. This is what AI-generated code does when you don't interrogate every line.","outputSchema":{"input":{"type":"http","method":"GET","discoverable":true},"output":{"type":"text/markdown; charset=utf-8"}},"maxAmountRequired":"1000","maxTimeoutSeconds":300},{"asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","extra":{"name":"USD Coin","feePayer":"4mrVHqtDj5ctVbsFGPWSyXuykvw3K9U2rwsGfMKMvHeK","blockhashSlot":403202164,"recentBlockhash":"8U1gfNA6GSrrMC5P35DFczfVNv68faUVGtsswih6wavC","blockhashValidUntil":1772250297},"payTo":"4mrVHqtDj5ctVbsFGPWSyXuykvw3K9U2rwsGfMKMvHeK","scheme":"exact","network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","mimeType":"text/markdown; charset=utf-8","description":"Every curl request with a Bearer token returned 302 to login. Headless clients had tokens, not cookies, and the routing structure made the API unroutable. The routing layer had become so tangled that where a route lived in the code determined what auth it required. This is what AI-generated code does when you don't interrogate every line.","outputSchema":{"input":{"type":"http","method":"GET","discoverable":true},"output":{"type":"text/markdown; charset=utf-8"}},"maxAmountRequired":"1000","maxTimeoutSeconds":300}],"asset_contract":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","max_timeout_seconds":300},"createdAt":"2026-04-21T18:32:35.160Z"}],"sources":[{"listingId":"19611150-abd2-473e-95e4-ee641c320326","source":"x402_bazaar","sourceId":"https://codex.everygoodwork.io/0x1C1Ee78b938Af5333D3a99BF659e9aa771d8A8D5/refactoring-ai-generated-spaghetti-code-rust-cloudflare-workers-routing-structure","sourceUrl":"https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources","isPrimary":true,"firstSeenAt":"2026-04-21T18:32:35.160Z","lastSeenAt":"2026-04-22T04:02:50.729Z"}],"details":{"listingId":"19611150-abd2-473e-95e4-ee641c320326","quickStartSnippet":"# This endpoint did not return a 402 x402 challenge.\n# Access likely requires connecting an Ethereum wallet via the web UI:\n# https://codex.everygoodwork.io/0x1C1Ee78b938Af5333D3a99BF659e9aa771d8A8D5/refactoring-ai-generated-spaghetti-code-rust-cloudflare-workers-routing-structure","exampleRequest":null,"exampleResponse":null,"schema":{"input":{"type":"http","method":"GET","discoverable":true},"output":{"type":"text/markdown; charset=utf-8"}},"openapiUrl":null,"agentsTxtUrl":null,"citations":[{"claim":"100% of every sale goes directly to the creator's wallet; creators prepay credits for hosting infrastructure","source_url":"https://codex.everygoodwork.io"},{"claim":"Platform uses Ethereum wallet-based identity (MetaMask, Coinbase Passkey, etc.)","source_url":"https://codex.everygoodwork.io"},{"claim":"Endpoint returned 403 on POST and 401 on GET, not the expected 402 x402 challenge","source_url":"https://codex.everygoodwork.io/0x1C1Ee78b938Af5333D3a99BF659e9aa771d8A8D5/refactoring-ai-generated-spaghetti-code-rust-cloudflare-workers-routing-structure"}],"useCases":["Reading a technical case study on refactoring AI-generated Rust code for Cloudflare Workers","Learning about authentication routing pitfalls in Cloudflare Workers","Understanding how AI-generated code can create tangled routing structures"],"bestFor":["Rust developers working with Cloudflare Workers","Developers debugging authentication routing issues","Engineers reviewing or refactoring AI-generated backend code"],"notFor":["Programmatic API consumption — endpoint does not return a standard x402 challenge","Users without an Ethereum wallet for payment"],"kindDetails":{"x402_version":2,"resource_type":"http","bazaar_last_updated":"2026-02-28T03:43:48.006Z"},"updatedAt":"2026-04-22T04:02:50.729Z"}}