ACAlex Chen
Create
All projects

AGENT INFRASTRUCTURE

Pulse Agent Runtime & Lock Engine

A resumable multi-step Agent execution engine with tool sandboxing, optimistic state locks, and live SSE trace streaming.

Lead Architect · Python / FastAPI / Redis / React ~1 min read
-64%tool-run failure rate (sample)
24typed agent tools (sample)
180msmedian TTFT (sample)
01

THE PROBLEM

Long-running agents silently corrupted shared workspaces

When users edited documents while an agent executed multi-step tool calls, race conditions caused lost updates and broken references.

  • Introduced scoped execution locks with automatic lease expiry and clean rollback.
  • Streamed every tool input, output, and latency span to the UI via Redis Streams + SSE.
02

VERIFICATION

Deterministic replay and automated load testing

Every tool schema is validated at boundaries and replayed against a 90-case regression suite before release.

WORKFLOW

How the system works end to end

01

Plan & Lock

Acquire workspace lease and validate tool arguments against strict JSON schemas.

02

Execute & Stream

Run sandboxed tools with retry policies and push live trace events over SSE.

03

Commit & Release

Persist incremental state diffs atomically and release the execution lock.

NEXT CASES

More case studies

← → to browse cases

CONTACT

Let's build something that ships.