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)
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
562
67,645
- 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
121
7,203
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
82
8,453
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!)
15
45
526
23,629
“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
21
2,605
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,113
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,124
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,521
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
7,823
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
16
1,946
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
155
10,435
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
240
27,046
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,437
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
529
25,364
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,458
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,160
Didn’t Google just blog about how they solve this today? cloud.google.com/blog/topics… Secrets are kept entirely out of the agent sandbox. A security proxy injects credentials when needed. The “secure proxy” route to secure agent infra and secrets seems to be a popular pattern.
Is anyone solving how we give secrets/passwords to agents in a way that doesn't expose them to the upstream provider? It seems like codemode could be used to pass the tokens around and you'd only need to approve it for where the token is actually consumed
23
25
1
469
29,553
The reason I still review every line of code despite encoding all the software engineering best practices in my agentic workflow, is because sometimes it’s the *exceptions* to these generalized rules that work best. The agent isn’t discerning enough to make these calls (as yet)
I've been reviewing a lot of code written by Opus 5.5, and it still seems to make a lot of bad software engineering decisions. The kind that will accumulate/calcify into unmaintainable software over time. IMO even the agents will struggle to maintain vibecoded software.
19
3
282
13,699
At Paris CDG, Terminal 2E, security check: Gate K: no need to take your electronics out Gate M: take all your electronics out and put it in a tray Me: I wasn’t asked to do it in Gate K Security: Gate K is Gate K, Gate M is Gate M Never seen this in any other airport. 😕
20
68
8,919
Cindy Sridharan retweeted
I came back to Google to work on AI infra. Instead we got pulled in to solving the problem of exploding use of agents across the company. Announcing Agent Compute Engine: bringing planet scale agentic infra to Google services and now to Google Cloud. cloud.google.com/blog/topics…
31
57
11
699
49,167