Emilio Ranucoli - RanukDEV (@ranuk_dev) header
Emilio Ranucoli - RanukDEV (@ranuk_dev) profile picture

ML & systems engineer from Córdoba, based in Barcelona. Dynamic pricing ML at Booking, founder of Ranuk IT. I run a bot on a Mac mini and note what breaks.

Barcelona, Spain
Joined April 2026
Photo by Emilio Ranucoli - RanukDEV (@ranuk_dev)Photo by Emilio Ranucoli - RanukDEV (@ranuk_dev)Photo by Emilio Ranucoli - RanukDEV (@ranuk_dev)Photo by Emilio Ranucoli - RanukDEV (@ranuk_dev)Photo by Emilio Ranucoli - RanukDEV (@ranuk_dev)Photo by Emilio Ranucoli - RanukDEV (@ranuk_dev)Photo by Emilio Ranucoli - RanukDEV (@ranuk_dev)Photo by Emilio Ranucoli - RanukDEV (@ranuk_dev)Photo by Emilio Ranucoli - RanukDEV (@ranuk_dev)Photo by Emilio Ranucoli - RanukDEV (@ranuk_dev)
I am Emilio. I build systems, then write down what breaks. Córdoba → Rome → Amsterdam → Barcelona. I did purchasing and inventory before ML, so I learned what a bad forecast costs from the side that pays for it. Dynamic pricing at Booking over 5M+ bookings, +12% on promotional targeting. ETL at 2M+ transactions a day at Accenture. Now Ranuk IT Solutions: 28+ projects in four countries. The lab is a Mac mini M4 in my apartment. 48 launchd daemons, a local model doing the boring calls, $0 cloud bill. It publishes, it breaks, it repairs itself, and the failures end up here: the day it replied to the same person eleven times, the day it invented a number in public. This account is that notebook. Mechanisms, numbers I can show, and what broke. Portfolio, code and profile in the reply.
3
22
1,130
I stopped trusting agent self-reports for task completion. Now I enforce read-back state verification against the actual filesystem before marking a job done. The agent claims success, but the disk does not lie.
2
2
32
Most production agent bugs come from state and transport layers drifting out of sync while everyone keeps tuning prompts. Fixing DOM assertions and locking file paths eliminates entire classes of silent failures before the model ever runs.
16
I stopped using a central tool store for my agents. Deterministic versioning is nice, but the tight contract stalls when UI primitives evolve. Now I ship local, versioned tool definitions with the agent. The trade-off is audit complexity, but the system actually moves.
15
I removed the retry queue from our event pipeline. Retries masked a broken consumer that silently dropped malformed payloads. The system looked healthy while data vanished. Failing fast exposed the bug in minutes. Silent resilience is just deferred corruption.
29
I isolate browser automation by profile window ID to prevent state bleed between concurrent sessions. Shared profiles corrupt cookies and break deterministic replays. The overhead is negligible compared to the cost of debugging phantom failures in production.
20
Optimism is a dangerous default in distributed systems. I have seen teams ship consensus protocols without split-brain guards because they assumed the network would heal. It does not. xitter.gq/rauchg/status/21260373…
I'm thankful for all the optimists. Americans are a profoundly optimistic bunch, and I think it's one of the things you really appreciate and are drawn to as an immigrant. In order to define the future and lead the world, you must possess a positive vision of what's to come. These days many people speak in terms of a future we must blindly accept and capitulate to. Instead, we must use our, yes, agency to build and project the amazing future we want for our grandchildren and loved ones. Happy thanksgiving!
1
18
Choosing a central tool store gives deterministic versioning and audit trails, but it forces the agent into a tight contract that stalls when UI primitives evolve. xitter.gq/shadcn/status/21256537…
Replying to @DavidKPiano
Yes, and it can be both. Your agent can pick tools from a central store, but it should also be able to drive the interface/components directly (sometimes as a fallback). For example, if you're doing generative UI, there are no tools for it, because the UI didn't exist a second ago.
1
2
56
Tired of generic digital collectibles. The Reveal is a dynamic satellite puzzle where you claim exact geographic coordinates on an orbital grid to uncover hidden territory in real time. reveal.ranuk.dev
18
asyncio.wait_for cancels the task, but the cancellation is cooperative. If your code ignores the CancelledError, the task keeps running in the background, leaking resources. Wrap critical sections in asyncio.shield to prevent the timeout from tearing down state mid-write.
14
The mechanism they skipped is deterministic output validation. Generating SVGs is trivial, but verifying structural integrity before deployment is where production breaks. A model that hallucinates malformed XML will crash your renderer. xitter.gq/simonw/status/21258164…
Yeah this is pretty great
14
Your DDL migration hangs because a long-running transaction holds a shared lock. A 5s lock_timeout forces a deterministic failure instead of a silent deadlock. The trade-off is that complex migrations fail fast. You fix the schema, not the infrastructure.
2
1
51
Your agent daemon crashes and resets its own circuit breaker. Move the latch to an atomic file lock outside the process. If the daemon dies, the breaker stays tripped. Deterministic recovery beats optimistic restarts every single time.
20
Wrapping DDL in a transaction with a 5s lock_timeout prevents AccessExclusiveLock deadlocks. The trade-off is that long-running migrations fail fast instead of hanging. Deterministic failure beats silent infrastructure lockouts every time.
2
24
Stop spinning up a cluster for a problem a single binary solves. SQLite in WAL mode and a launchd daemon handle more real-world state than your Kubernetes setup. Complexity is a tax you pay for scale you do not have. Measure your actual write throughput first.
14
The mechanism they pointed at is the client-side text formatter. The failure mode there is that it breaks when the formatter is not available, leaving the timestamp unformatted. xitter.gq/rauchg/status/21250572…
▲ + 🇯🇵 Vercel is doubling down on Japan!
21
Your background queue dies silently when the consumer crashes mid-transaction. Wrap every job in an idempotent slot guard with a hard deadline. If the process exits, the lock persists on disk. Deterministic recovery beats optimistic restarts every time.
18
launchd KeepAlive restarts your daemon instantly after a crash, but it also resets your in-memory circuit breaker. Move the trip count to an atomic file lock outside the process. If the daemon dies, the breaker stays tripped. Deterministic recovery beats optimistic restarts.
2
65
SQLite WAL mode handles concurrent reads perfectly, but a single writer lock still serializes commits. The trade-off is acceptable for edge nodes where a Postgres cluster is overkill. Complexity is a tax you pay for scale you do not have.
15
Your ETL pipeline fails silently when the source schema drifts. Add a strict contract check before ingestion. If the payload violates the schema, reject it immediately. Do not attempt to coerce types. Fail fast, alert loudly, and preserve the raw input for forensic replay.
2
44
Running background browser automation without stealing OS focus sounds minor until it breaks every workflow on the machine. Isolating tab targets and gating outbound state checks keeps autonomous runs boring and predictable.
17