
Two AI Jobs, One Messy Log: Keep Every Run in Its Own Lane
Reproduce a concurrent run-ID mix-up, then keep task-local event labels with Python ContextVar. Includes ten tests, cancellation cleanup and a child-task inheritance check.
BY JASON EAD
Original guides and analysis about coding tools, models, GitHub projects, agents, and creative AI workflows.

Reproduce a concurrent run-ID mix-up, then keep task-local event labels with Python ContextVar. Includes ten tests, cancellation cleanup and a child-task inheritance check.

Make decimal input and rounding stages explicit in an AI quote handoff. Reproduce the one-cent policy difference and 13 runtime tests before adapting the calculation.

Reject duplicate JSON keys before a default parser silently keeps the last value. Test nested and escaped duplicates, non-finite values and the raw-text boundary.

Catch repeated and nonexistent local times before an AI-assisted request reaches a calendar. Build a tested New York conversion boundary with explicit human choices.

Inspect parsed CSV cells for suspicious prefixes before spreadsheet delivery. Includes a tested text-only review gate, false-positive examples and clear limits.

Package a draft-only business reply skill with clear stopping points, source-backed review packets and five boundary tests before enabling delivery.

A valid JSON file can still contain the wrong price. Build a read-only Python review that exposes every service-catalog change before an AI-assisted edit reaches your business.

Use tiktoken to preserve required instructions, include whole business records and report omitted context before an AI request.

Give business agents approved service details through two read-only MCP tools. Build the Python server and test real stdio calls with a fictional catalog.

Use a transactional outbox and stable action IDs to recover CRM handoffs, with a tested local example that exposes duplicate-task and lost-reply failures.

Package a recurring business-brief workflow as an agent skill, with a reusable template, a worked handoff and checks that keep missing decisions visible.