Hacker News

Ask HN: How do you handle duplicate side effects when jobs, workflows retry?

Hacker News - Thu, 02/26/2026 - 9:45pm

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

Categories: Hacker News

Permissioned Data Diary 2: Buckets

Hacker News - Thu, 02/26/2026 - 9:42pm
Categories: Hacker News

Show HN: Lar-JEPA – A Testbed for Orchestrating Predictive World Models

Hacker News - Thu, 02/26/2026 - 9:38pm

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

Categories: Hacker News

Git in Postgres

Hacker News - Thu, 02/26/2026 - 9:33pm
Categories: Hacker News

The Phantom Horizon

Hacker News - Thu, 02/26/2026 - 9:27pm
Categories: Hacker News

Show HN: Zenboard – A native macOS reference board for creatives

Hacker News - Thu, 02/26/2026 - 9:21pm

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

Categories: Hacker News

Show HN: Video player that plays only when all hands up

Hacker News - Thu, 02/26/2026 - 8:28pm

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

Categories: Hacker News

Pages