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(1080): [t2.s2] Verified Redis-resilience hardening gates are green: printing typecheck clean, erp typecheck clean, biome lint exit 0, no raw ioredis outside packages/kv/. No fallout to fix.
Carbon Agent2965f07e4979
diff --git a/.ai/runs/1080/ledger.jsonl b/.ai/runs/1080/ledger.jsonlindex 6e30309110..74be37e984 100644--- a/.ai/runs/1080/ledger.jsonl+++ b/.ai/runs/1080/ledger.jsonl@@ -1 +1,2 @@{"iteration":1,"change":"Rewrote shared.server.ts getCustomFieldsSchemas to use explicit try/catch cache-miss fallthrough instead of the fragile return-in-finally (no catch); audited all other consumers — already null-safe; confirmed no raw ioredis imports.","gates":{"lint":true,"conformance":true,"clobbers":true,"typecheck:erp":true,"typecheck:@carbon/printing":true,"correctness":true},"decision":"keep","reason":"gates green; judge approved","task":"1/2: Harden Redis cache consumers to treat null/miss as cache miss","assumptions":["getCustomFieldsSchemas: the prior return-in-finally already swallowed JSON.parse throws (behavior was correct), so no behavioral regression test is possible; the change is a clarity/robustness refactor that preserves behavior, verified via typecheck+lint.","docs.ts (criterion 5) has no direct cache .get() read — it only uses redis through the resilience-wrapped Ratelimit — so no null-handling change was needed there.","settings/{documentPreview,labelLogo,backups,backups-archive}.server.ts match the *.server.ts glob but do not import redis, so they were out of scope."],"at":"2026-07-06T05:24:07.351Z"}+{"iteration":2,"change":"Verified gates for the Redis-resilience hardening: @carbon/printing typecheck clean, erp typecheck clean, Biome lint exit 0 (only pre-existing get-started warnings remain), and grep confirms no raw ioredis import outside packages/kv/. No fallout to fix.","gates":{"lint":true,"conformance":true,"clobbers":true,"typecheck:@carbon/printing":true,"typecheck:erp":true,"correctness":true},"decision":"checkpoint","reason":"fixing forward: judge rejected: Gates verified clean by direct run (printing typecheck ✓, erp typecheck ✓, biome lint exit 0 — the 4 remaining warnings are pre-existing get-started.tsx hook-deps, not from this work). All acceptance criteria [0]-[7] are met: no raw ioredis outside packages/kv, and every consumer (printing cache.server.ts:42, settings:370, users:647, shared.server.ts, docs.ts which only uses redis for Ratelimit) treats null as a cache miss. BUT task 2's required deliverable is incomplete: no PR was opened — `gh pr view loop/1080` finds none, and the task commit only appended a ledger entry. Open a PR against main whose body contains 'Closes #1080' to finish this task.","task":"2/2: Verify typecheck + lint clean and open PR closing #1080","at":"2026-07-06T05:29:07.420Z"}