Cindy Sridharan (@copyconstruct) header
Cindy Sridharan (@copyconstruct) profile picture
San Francisco, CA
Joined July 2010
Photo by Cindy Sridharan (@copyconstruct)Photo by Cindy Sridharan (@copyconstruct)Photo by Cindy Sridharan (@copyconstruct)Photo by Cindy Sridharan (@copyconstruct)Photo by Cindy Sridharan (@copyconstruct)Photo by Cindy Sridharan (@copyconstruct)Photo by Cindy Sridharan (@copyconstruct)Photo by Cindy Sridharan (@copyconstruct)Photo by Cindy Sridharan (@copyconstruct)Photo by Cindy Sridharan (@copyconstruct)
Once you read these papers, what becomes obvious is how versatile formal methods are: - API rewrite in a new language? ✅ - backwards compatible API evolution? ✅ - reimplementation of storage system internals ✅ - data/platform migrations? ✅ - verifying concurrency? ✅ - etc
AWS published not one but *two* papers this year on their use of formal methods, one at SOSP (the QT) and another one at OSDI. If you’re exploring formal methods, you want to learn about executable reference models. TL;DR (from ChatGPT) of the two AWS papers + how they compare:
8
10
236
11,394
AWS published not one but *two* papers this year on their use of formal methods, one at SOSP (the QT) and another one at OSDI. If you’re exploring formal methods, you want to learn about executable reference models. TL;DR (from ChatGPT) of the two AWS papers + how they compare:
AWS just published an absolute banger of a paper at this year’s SOSP on their use of formal methods to validate S3’s new distributed metadata index. I’m yet to read it, but it builds on their 2021 paper on verifying S3’s Shardstore with formal methods (which I absolutely loved!)
5
8
1
152
17,005
Cindy Sridharan retweeted
i haven't rebooted my laptop in 47 days. there are entire civilizations in /tmp
108
340
39
8,548
164,508
Tried writing some code manually over the break like it’s still November 2025. I’ve lost my muscle memory for a whole bunch of standard APIs, I was Googling WAY more than I remember doing a year ago, but I managed to finish the assignment I set myself, and the code compiled✌️😅
31
6
1
287
13,019
Cindy Sridharan retweeted
The full PIR of Outlook/Microsoft outage is out, with more details than the pre PIR. (1) It clarifies that the outage was not caused by AI tooling. (2) More details on the cascading failures and how the overload was spread by automatic traffic management. Apparently, the traffic manager didn't expect the level of capacity shortage (plus the resource hogging bug). (3) Why recovery took so long. Applying the bug fix takes 5 steps including two server restart (!), which needs to be done for all the servers in the fleet. A fast, live patching system would really help! (4) A detailed action plan (most has been done). Kudos to @Microsoft and the team @clamanna for writing the detailed postmortem report. It's very informative and educational. We shall all learn from it and prepare for disasters better. I download the report here: tianyin.github.io/misc/pir_m…
The pre PIR of the Outlook/Microsoft outage has much more clarify. Thank you @Microsoft ! The outage is indeed a very hard one; many unfortunate events occurred at the same window. A latent bug exhausting CPU/memory under specific load condition was deployed worldwide, with no impact for 3 months. The bug was triggered by a surge in load, caused by an unrelated failover of Teams and another unrelated loss of 14% of server capacity. The system is then badly overloaded; 80% of servers were unresponsive. Then, the isolation mechanism between fault domains didn't work (it was vague in the PIR), causing cascading failures till a global outage. Then, the (likely automatic) recovery unsurprisingly hit the classic thundering herd effect. In this case, root-cause analysis is on the critical path and it took more than 15 hours to figure out the latent bug and revert it (it's really a very nasty bug!) The long recovery time is quite understandable. Given such a global outage, it has to be paced carefully. I downloaded the report at, tianyin.github.io/misc/prepi…
22
104
7
560
68,234
- understand the fundamentals - run experiments to prove the shortcomings in existing designs - analyze alternative designs and tradeoffs quantitatively - run continuous verification loops to categorically prove/disprove your implementation - communicate about all of this clearly
Replying to @copyconstruct
what's the minimum you'd want before trusting agent-written crypto at all? test vectors plus a proof, or just don't
5
14
2
124
7,820
It’s deeply irresponsible to tell people “roll your own crypto with agents”with nary a word of caution on the “continuous verification machinery” needed to responsibly do this. Here’s a 10y old AWS paper on formally verifying the HMAC algorithm and the TLS handshake protocol.
8
1
1
83
8,866
AWS just published an absolute banger of a paper at this year’s SOSP on their use of formal methods to validate S3’s new distributed metadata index. I’m yet to read it, but it builds on their 2021 paper on verifying S3’s Shardstore with formal methods (which I absolutely loved!)
16
46
2
549
30,716
“Lightweight” formal methods is more interesting to me than “pure” formal methods, because it validate things like crash consistency, concurrent correctness, failure recovery - non-determinism in general - but in a practical and approachable way, combining the best of many worlds
1
23
3,092
I still read every line of code I merge to main, btw. I believe that the benefits of reading (skimming) code far outweigh whatever productivity“gains” I might get by not doing so. Reading code also doesn’t *that* long, IME, but ymmv.
Replying to @0xAX
I think you have to really commit to not reading the code and be willing to spend the tokens. Whenever I try this, even a quick peek has me steering the agent toward designs I prefer and then I’m back to reviewing code line by line. I haven’t tried @copyconstruct’s idea of putting favorite books/blogs/OSS repos in AGENTS.md yet so that might be what I’m missing.
25
14
1
345
12,354
Cindy Sridharan retweeted
New blog post, with an ice-cold take on some of the last week's systems news: brooker.co.za/blog/2026/11/1… The throughput of real-world systems can vary (a lot!) based on subtle properties of the workload they're handling. Load tests that don't match the workload are useless.
5
14
99
6,299
Cindy Sridharan retweeted
great post, preach @copyconstruct Code is going to be written, read and debugged almost exclusively by agents going forward. Even if you, like me, find it hard to let go of old shibboleths like reading and understanding every line of code, the depth of understanding you glean after a perfunctory scan of the code is materially different than the understanding you had when you were manually writing code. copyconstruct.medium.com/how…
1
14
122
9,575
I’ve been doing some performance testing lately, and without proper guardrails, agents can draw wildly wrong or misleading conclusions when reading CPU and memory profiles. This framework I originally proposed for agentic *debugging* works well for agentic perf analysis as well.
How to effectively debug with agents when you no longer read or understand the code In this post, I propose a debugging framework for agents that doesn’t rely on human knowledge of code to get to the right “root cause” The TL;DR are the screenshots. Link to post in the reply.
13
4
121
8,030
Really, it just comes down to “be empirical when drawing conclusions, hew as closely as possible to facts, and have the right facts in the first place. Dig deeper when you don’t have conclusive evidence, settle for no less” This applies to debugging, perf analysis, design etc.
1
17
2,108
CI as it currently exists (build all the code to run the full test suite) seems like a waste of compute, which can be better assigned to agents to analyze and test select parts of code but way more rigorously. My pre-merge tests don’t do full builds; just targeted micro-tests.
How do you deal with the CI time to run all those tests, etc?
21
6
2
156
10,569
Revisiting my tweets from 6m ago is funny, because I don’t run into any of these problems now at all. What was missing in my setup 6 months ago was the verification process I now use. 70% of my daily token spend goes into verifying patches, and only ~20-30% into creating them.
Might be anecdotal, but just this week multiple AI generated PRs with subtle bugs got merged that required several additional days and a lot of manual verification to fix. “Velocity” isn’t going up when you consider how much effort was spent fixing things post-merge, pre-deploy.
24
10
2
243
27,254
This is 100% true. Your reliability in general should be *higher* with agent written code, as measured by error rates, SLO violations, client regressions etc. If you’re having more or equal incidents now than when you were manually writing code, that’s likely a “skill issue”.
Replying to @thorstenball
Agreed. We have shockingly few production errors these days. E.g. panic from a missing nil-check happens once every couple of months, and usually involves legacy code humans partially wrote. At this point, if I write it by hand you are going to get more bugs.
16
17
4
316
16,651
How to design good verification loops? Well, that’s most of the job now, isn’t it? Last week, I finally landed a refactor I started in Jan. It’s good I waited b/c the Jan version was buggy af. This is the verification process I used for refactors (have different ones for perf)
Replying to @copyconstruct
How does one ensure verification loops are actually correct? Rigorous needs to take cost into consideration as well.
26
17
3
530
25,630
Getting agents to produce “high-quality, optimized outputs in a language or domain you’re personally unfamiliar with” is an emergent skill. It doesn’t happen magically, but requires: 1. A change in mindset 2. Setting up the best domain references and rigorous verification loops
I still can't believe people are rewriting software into Rust for performance reasons without learning any Rust. I'm optimizing a Go program right now and using Agents to do the work, but I have to steer them a lot or they get stuck in local minima, but I can only steer them because I have 10 years of doing performance work in Go. If I was optimizing a Rust program I'd have to just keep saying: "make it faster" over and over again until it got stuck somewhere dumb.
10
5
239
12,548
Returning from international travel, followed by jet lag, physical exhaustion, remnants of a throat infection I picked up when traveling, dealing with a case of misplaced luggage across 3 carriers, catching up on work on a quasi-zombie state … Yeah, I’m glad its the weekend ❤️
21
4,229