Hacker News
Ask HN: How do you handle duplicate side effects when jobs, workflows retry?
Quick context: I'm building background job automation and keep hitting this pattern:
1. Job calls external API (Stripe, SendGrid, AWS) 2. API call succeeds 3. Job crashes before recording success 4. Job retries → calls API again → duplicate
Example: process refund, send email notification, crash. Retry does both again. Customer gets duplicate refund email (or worse, duplicate refund).
I see a few approaches:
Option A: Store processed IDs in database Problem: Race between "check DB" and "call API" can still duplicate
Option B: Use API idempotency keys (Stripe supports this) Problem: Not all APIs support it (legacy systems, third-party)
Option C: Build deduplication layer that checks external system first Problem: Extra latency, extra complexity
What do you do in production? Accept some duplicates? Only use APIs with idempotency? Something else?
(I built something for Option C, but trying to understand if this is actually a common-enough problem or if I'm over-engineering.)
Comments URL: https://news.ycombinator.com/item?id=47175746
Points: 1
# Comments: 0
Permissioned Data Diary 2: Buckets
Article URL: https://dholms.leaflet.pub/3mfrsbcn2gk2a
Comments URL: https://news.ycombinator.com/item?id=47175730
Points: 1
# Comments: 1
Ordain: Commission board for AI short films, paid over Bitcoin Lightning
Article URL: https://ordain.art
Comments URL: https://news.ycombinator.com/item?id=47175726
Points: 1
# Comments: 1
Denver mayor announces executive order banning ICE from city property
Article URL: https://www.msn.com/en-us/news/us/denver-mayor-announces-executive-order-banning-ice-from-city-property/ar-AA1X9wiZ
Comments URL: https://news.ycombinator.com/item?id=47175714
Points: 2
# Comments: 1
Mathematics in the Library of Babel
Article URL: https://www.daniellitt.com/blog/2026/2/20/mathematics-in-the-library-of-babel
Comments URL: https://news.ycombinator.com/item?id=47175698
Points: 1
# Comments: 0
Permissioned Data Diary 1: To Encrypt or Not to Encrypt
Article URL: https://dholms.leaflet.pub/3meluqcwky22a
Comments URL: https://news.ycombinator.com/item?id=47175691
Points: 2
# Comments: 0
Show HN: Lar-JEPA – A Testbed for Orchestrating Predictive World Models
Hey HN,
The current paradigm of agentic frameworks (LangChain, AutoGPT) relies on prompting LLMs and parsing conversational text strings to decide the next action. This works for simple tasks but breaks down for complex reasoning because it treats the agent's mind like a scrolling text document.
As research shifts toward Joint Embedding Predictive Architectures (JEPAs) and World Models, we hit an orchestration bottleneck. JEPAs don't output text; they output abstract mathematical tensors representing a predicted environmental state. Traditional text-based frameworks crash if you try to route a NumPy array.
We built Lar-JEPA as a conceptual testbed to solve this. It uses the Lár Engine,a deterministic, topological DAG ("PyTorch for Agents") to act as the execution spine. Key Features for Researchers: Mathematical Routing (No Prompting): You write deterministic Python RouterNodes that evaluate the latent tensors directly (e.g., if collision_probability > 0.85: return "REPLAN"). Native Tensor Logging: We custom-patched our AuditLogger with a TensorSafeEncoder. You can pass massive PyTorch/NumPy tensors natively through the execution graph, and it gracefully serializes them into metadata ({ "__type__": "Tensor", "shape": [1, 768] }) without crashing JSON stringifiers. System 1 / System 2 Testing: Formally measure fast-reflex execution vs. deep-simulation planning. Continuous Learning: Includes a Default Mode Network (DMN) architecture for "Sleep Cycle" memory consolidation.
We've included a standalone simulation where a Lár System 2 Router analyzes a mock JEPA's numerical state prediction, mathematically detects an impending collision, vetoes the action, and replans—all without generating a single word of English text. Repo: https://github.com/snath-ai/Lar-JEPA Would love to hear your thoughts on orchestration for non-autoregressive models.
Comments URL: https://news.ycombinator.com/item?id=47175679
Points: 1
# Comments: 0
The authoritarian AI crisis has arrived
Article URL: https://www.platformer.news/anthropic-pentagon-authoritarian-ai/
Comments URL: https://news.ycombinator.com/item?id=47175666
Points: 2
# Comments: 0
Git in Postgres
Article URL: https://nesbitt.io/2026/02/26/git-in-postgres.html
Comments URL: https://news.ycombinator.com/item?id=47175639
Points: 1
# Comments: 0
Free Internetworking Peering System and mesh routing protocol
Article URL: https://github.com/jmcorgan/fips
Comments URL: https://news.ycombinator.com/item?id=47175637
Points: 1
# Comments: 0
Pentagon Laser Shoots Down Customs Border Patrol Drone in Texas
Article URL: https://www.bloomberg.com/news/articles/2026-02-27/pentagon-laser-shoots-down-customs-border-patrol-drone-in-texas
Comments URL: https://news.ycombinator.com/item?id=47175612
Points: 5
# Comments: 3
Show HN: RentDaNang – 6,500 Da Nang rentals in 6 languages, built solo with AI
Article URL: https://rentdanang.app
Comments URL: https://news.ycombinator.com/item?id=47175611
Points: 1
# Comments: 0
The Phantom Horizon
Article URL: https://www.aerosociety.com/news/the-phantom-horizon/
Comments URL: https://news.ycombinator.com/item?id=47175598
Points: 1
# Comments: 0
Robot wars are a reality (2007)
Article URL: https://www.theguardian.com/commentisfree/2007/aug/18/comment.military
Comments URL: https://news.ycombinator.com/item?id=47175592
Points: 1
# Comments: 0
Show HN: Gas Town Control Plane – hosted monitoring for multi‑agent workspaces
Article URL: https://github.com/SmolNero/gastown-control-plane
Comments URL: https://news.ycombinator.com/item?id=47175589
Points: 1
# Comments: 0
Will AI Replace White Collar Jobs in 12 Months? [video]
Article URL: https://www.youtube.com/watch?v=0lwftepuvYA
Comments URL: https://news.ycombinator.com/item?id=47175569
Points: 1
# Comments: 0
Show HN: Zenboard – A native macOS reference board for creatives
PureRef is pretty much the standard in this space, but Zenboard offers a more intuitive interface with a broader set of features — built exclusively for Apple Silicon, so it feels right at home on Mac with smooth, responsive performance.
It is still in beta, and there is much room for improvement. It is provided for free, so if you were looking for something like this, please feel free to use it.
Comments URL: https://news.ycombinator.com/item?id=47175555
Points: 1
# Comments: 0
Show HN: StillPoint – local-first Markdown workspace with distributed sync
Article URL: https://github.com/grnwood/stillpoint
Comments URL: https://news.ycombinator.com/item?id=47175551
Points: 1
# Comments: 1
Show HN: Video player that plays only when all hands up
load local video file grant camera acess all hands up video will start to play otherwise video will be paused
Comments URL: https://news.ycombinator.com/item?id=47175087
Points: 1
# Comments: 0
The war against PDFs is heating up
Article URL: https://www.economist.com/business/2026/02/24/the-war-against-pdfs-is-heating-up
Comments URL: https://news.ycombinator.com/item?id=47175085
Points: 1
# Comments: 0
