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.
TypeScript ai-agentsbill-of-materialserpinventory-managementleanmanufacturingmanufacturing-execution-systemmcp-servermesmrpopen-source-erppostgresqlproduction-planningqmsquality-management-systemreact-routerself-hostedsupabasetraceabilitytypescript
loop(1078): [t2.s1] Verified packages/auth/src/services/auth-redis-resilience.test.ts covers all 6 Redis-down cases (getUserClaims DB fallback, sendVerificationCode false, verifyEmailCode false, both passkey getAndDelete* null, updateCompanySession cookie); auth test/typecheck/lint all pass
Carbon Agent653b9df07b7e
diff --git a/.ai/runs/1078/ledger.jsonl b/.ai/runs/1078/ledger.jsonlindex 12e6a4c0c5..b94fda4e4f 100644--- a/.ai/runs/1078/ledger.jsonl+++ b/.ai/runs/1078/ledger.jsonl@@ -6,3 +6,4 @@{"iteration":6,"change":"Verified Task-1 @carbon/auth Redis null-handling hardening + intent comments are in place (getUserClaims claims-cache redis.set try/catch, verifyEmailCode fail-closed doc, both passkey verify* callers null-guard getAndDelete*, session.del fire-and-forget); typecheck and lint both pass clean. No edits needed — already landed by prior committed slices.","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:43:48.031Z"}{"iteration":7,"change":"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 verify* callers null-guard getAndDelete*, session.del fire-and-forget); typecheck and lint pass clean","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:44:42.981Z"}{"iteration":8,"change":"Verified Task-1 @carbon/auth Redis null-handling hardening + intent comments are fully in place (getUserClaims claims-cache set try/catch, verifyEmailCode fail-closed doc, both passkey verify* callers null-guard getAndDelete*, session.del fire-and-forget); typecheck and lint pass clean. No edits needed.","gates":{"lint":true,"conformance":true,"clobbers":true,"typecheck:@carbon/auth":true,"correctness":true},"decision":"checkpoint","reason":"fixing forward: criteria still unmet: 2","task":"1/2: Harden auth service Redis null-handling + document intent","at":"2026-07-06T04:47:57.162Z"}+{"iteration":9,"change":"Added packages/auth/src/services/auth-redis-resilience.test.ts covering all 6 Redis-down auth cases (getUserClaims DB fallback, verifyEmailCode/sendVerificationCode false, passkey getAndDelete* null, updateCompanySession cookie); Task-1 hardening already landed in prior slices","gates":{"lint":true,"conformance":true,"clobbers":true,"typecheck:@carbon/auth":true,"correctness":true},"decision":"keep","reason":"gates green; judge approved","task":"1/2: Harden auth service Redis null-handling + document intent","assumptions":["Task 1 (code hardening + comments) was verifiably complete across 8 prior committed slices, so I completed Task 2 (the tests) this session — the actual blocker for the flagged criteria [2]/[5]/[8] — rather than re-verify Task 1 a 9th time with no progress.","Combined both required test files into one auth-redis-resilience.test.ts (grooming context explicitly permits combining), covering all 6 cases plus a null-resolve no-throw variant.","Mocked env-validation (../config/env), @carbon/kv, and heavy deps (resend/email/simplewebauthn/supabase) so tests run without a live environment; used clearAllMocks (keeps factory implementations) plus per-test mockRejectedValueOnce for the set-fails case."],"at":"2026-07-06T04:56:16.669Z"}