Activity
Mon
Wed
Fri
Sun
Sep
Oct
Nov
Dec
Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
What is this?
Less
More

Memberships

Clief Notes

43.9k members • Free

216 contributions to Clief Notes
How do you make a scheduled agent safe to re-run after it dies halfway?
I run a few agents on a schedule — ones that read some inputs and then do things with side effects: send a summary, write a record, flip a status somewhere. The happy path is fine. My worry is the failed run. The cron fires again, or I re-run it by hand, and now I'm nervous it'll redo the half it already finished: a second email, a duplicate record, a status changed twice. Today I lean on a checkpoint file. The run marks each side-effect done before moving on, and on restart it skips whatever's already marked. It works but feels brittle, since the mark and the action aren't atomic — a crash between them can still double-fire. How do you handle re-runs? Idempotency at the destination (dedupe keys, upserts)? A ledger the run reads first? Splitting read from write so the write step is the only thing that has to be safe? Curious what's actually held up for you in real unattended runs.
0 likes • 4h
@Leo Saraivathe thing you already found is most of the answer. The mark and the action can't be made atomic, and that's the limit itself rather than a weakness in your checkpoint file. Once you accept it you stop trying to build exactly-once and start deciding, per side effect, which direction you'd rather fail in. What's actually held up for me in unattended runs: - Persist the plan, then never re-derive it. I'd put this first for agents specifically, and it's the part the long answer above understates. Every idempotency scheme in it assumes the plan is a deterministic function of the inputs. For a cron'd SQL job it is. For an agent it isn't: the planner is a model, so two runs over identical inputs produce different plans, and your operation IDs differ on retry even when you've pinned the input version, because the model's output was never in the key. The fix is exactly steps 3 and 4 up there (read, snapshot, freeze an immutable plan, write the operation rows before executing any of them). The reason it matters more for you than for classical batch never gets said. Retry reads the stored plan. It does not re-plan. If it re-plans, that's a new run and it needs a new run ID. - Related heads-up if you lift that operation_id() function, since it's the most copyable thing in the thread. It hashes input_version into the key, so if the inputs shift between the first run and the retry, the key shifts too and dedupe fails at the exact moment you need it. It's safe only because of the persist-the-plan step, which sits two hundred lines away in the same answer. Take both or neither. Same hazard on deploys: change how you hash the input snapshot and every pending operation ID rotates, which re-fires the backlog. Bill's second rule is the sharpest thing in this thread. Clearing the landing spot before the run does more than tidy up. It turns a question into a precondition. The Codex answer assumes you can ask the destination whether it already holds the effect. Bill's version says make the destination state unambiguous by construction so you never have to ask. When a destination has no idempotency key and no lookup, that's the only move left.
Docker AI Governance
https://www.docker.com/blog/docker-ai-governance-unlock-agent-autonomy-safely/ Introducing Docker AI Governance: centralized control over how agents execute, what they can reach on the network, which credentials they can use, and which MCP tools they can call, so every developer in your company can run AI agents safely, wherever they work. Hot off the presses if you're involved in Enterprise AI this is one to pay attention to.
1 like • 7h
Good eye on good links :))
$1,000,000 Higgsfield 's prize pool
Any film folks and developers like to team up for this https://higgsfield.ai/contests/higgsfield-global-film-festival Im currently working on a short 5min AI film that inspired by Train to Busan (zombie). But I will be down to submit another film entry/entries as a small group. I will also be sharing my knowledge & custom workflow early access for anyone interested in joining. Just to be clear, the application is still under development but it will speed up the film making process by a large margin.
$1,000,000 Higgsfield 's prize pool
0 likes • 7h
That is really cool! You know I would love to collaborate :)
I apologize in advance. I have tried to be strong; I am just not capable right now.
This is a letter written to our community. (No Emjois in this one) I have thought about posting this, and I decided that it needed to be posted. I have been away for a bit, mostly because I have been focused on 7 lives that needed me the most. Firstly, I am an IT manager, I am a leader of a team that puts their best into everything they do every day. We have been through the thick and thin together, we have faced adversity and success together, and lately we have faced challenges and expectations that effect all 8 of us. I have had no other option but to focus my energy on the things that keep us moving forward in our own lives. This does not mean this community does not mean to the world to me, but it means I have been focused on other things. I do not apologize for doing what I felt is the right thing, I apologize for not being here for the community. My heart is heavy. Beyond the obligations I have set in stone for the people I lead, I have had a tremendous loss in my life. Today the world has lost a bright light, someone who showed up in my life in a time that I needed most, her name is Marina Berthal and she should be celebrated not only mourned. To all of you she was a stranger, to me she was my world, she was the mom life never afforded me. I have lost 3 moms now in life. The first was my biological mother, the second my grandmother, and now Marina, a person who found me early in life, a broken and lost soul looking for guidance. I know our community is supportive, committed and above all else caring. You have all quickly became the family I have searched for in a lifetime. I want to apologize for my absence and want you all to understand that it is not by want, but by need that I am away currently. In my life I have experienced more loss then most, and this loss has landed in a time when I just could not hold it. I will be back; I just need some time to process this loss. I know we will win together, even when things seem tough. I believe in my heart, as Marina has taught me in life, we will learn together, we will grow together and we will win together.
0 likes • 3d
@Bas Rosario My heart to you and your family mate! You give so much, allow the universe to give you back some 💙💙💙
The true story of episode 3. Fair warning: it's a bumpy ride
AI build video number four is up — and it exists because people asked me how I actually made episode 3. So this is that story, told in my usual style - the authentic rollercoaster ride of actually building with AI; not smoothed or curated. Safety equipment recommended, wish I'd had more of it to be honest. A hint of what that story actually looks like? It includes a render that never left my laptop, the weekend a model with eyes changed everything, and the overnight deal I did with my system that produced eight chapters I'd never seen before breakfast. And then the part almost all of you will have seen coming (yes, I'm predictable, go on there are worse things to be): I went and fired the forge to build the studio — the AI system to make my future videos. Let's just say that some days fact is stranger than fiction and this one... surprised me. Come watch me design my studio. https://youtu.be/Qu21mVieHMc
3 likes • 3d
@Mira Bradshaw so cool to see your mastering of the process! Your video progressions show it. Magical! And the system you built to complete all this resembles the process I went through with my "team." You and @Danney Tee use of the architecture is inspiring (at least to me as a fellow visual player :)). I do enjoy your humor "I'd say like pulling teeth, but teeth pulling comes with a side of anesthetic, and this definitely didn't." Thanks for letting us into the dentist chair :)
1 like • 3d
@Mira Bradshaw
1-10 of 216
Gabriel Azoulay
6
554 points to level up
@gabriel-azoulay-3254
Yoga and Thai Massage Teacher turned Ai Architect

Online now
Joined Jul 26, 2026
Khao Lak, Thailand
Powered by