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.s4] Verified Task-1 @carbon/auth Redis null-handling hardening + intent comments are in place (getUserClaims claims-cache set try/catch, verifyEmailCode fail-closed doc, both passkey callers null-guard getAndDelete*, session.del fire-and-forget); typecheck and lint pass clean

Carbon Agent71f1797bd489
diff --git a/.ai/runs/1078/ledger.jsonl b/.ai/runs/1078/ledger.jsonl
index 9811bb5653..9ff157db67 100644
--- a/.ai/runs/1078/ledger.jsonl
+++ b/.ai/runs/1078/ledger.jsonl
@@ -1,2 +1,3 @@
{"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"}
{"iteration":2,"change":"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","gates":{"lint":true,"conformance":true,"clobbers":true,"typecheck:@carbon/auth":true,"correctness":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:39:31.903Z"}
+{"iteration":3,"change":"Verified Task-1 auth Redis null-handling hardening is in place and gates pass: getUserClaims claims-cache set wrapped in try/catch; fail-closed/fire-and-forget intent documented in verification, passkey, and session services; both passkey callers null-guard the getAndDelete* results","gates":{"lint":true,"conformance":true,"clobbers":true,"typecheck:@carbon/auth":true,"correctness":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:40:35.613Z"}