Skip to content

Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.

loop(1078): [t1.s2] Verified Task-1 auth Redis null-handling hardening + intent comments (getUserClaims claims-cache set try/catch, verifyEmailCode fail-closed doc, passkey caller null-guards, session.del fire-and-forget) are in place and gates pass

Carbon Agent0b9d44835768
diff --git a/.ai/runs/1078/ledger.jsonl b/.ai/runs/1078/ledger.jsonl
new file mode 100644
index 0000000000..5dc93218b8
--- /dev/null
+++ b/.ai/runs/1078/ledger.jsonl
@@ -0,0 +1 @@
+{"iteration":1,"change":"Hardened @carbon/auth Redis null-handling: wrapped claims-caching redis.set in try/catch in getUserClaims; documented fail-closed/fire-and-forget intent in verification, session, and passkey services (callers already null-guard)","gates":{"lint":true,"conformance":true,"clobbers":true,"typecheck:@carbon/auth":true},"decision":"checkpoint","reason":"slice complete; remaining: Task 2 of plan: add vitest tests covering all 6 Redis-down cases (users.test.ts + auth-redis-resilience.test.ts) mocking @carbon/kv to return null; then run pnpm --filter @carbon/auth test","task":"1/2: Harden auth service Redis null-handling + document intent","at":"2026-07-06T04:38:29.191Z"}