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(1081): [t1.s12] No change needed — packages/kv/src/resilient.ts already emits spec-exact structured redis.degraded (console.error) / redis.recovered (console.info) JSON events with the one-log-per-transition throttle; verified @carbon/kv typecheck (tsgo) and biome lint clean

Carbon Agentc20f3e3ec8c1
diff --git a/.ai/runs/1081/ledger.jsonl b/.ai/runs/1081/ledger.jsonl
index ed14f94882..44a8201a16 100644
--- a/.ai/runs/1081/ledger.jsonl
+++ b/.ai/runs/1081/ledger.jsonl
@@ -10,3 +10,4 @@
{"iteration":10,"change":"No change needed — resilient.ts already emits structured redis.degraded (console.error) / redis.recovered (console.info) JSON events with the one-log-per-transition throttle; verified resilient.ts typechecks and biome lint is clean","gates":{"lint":true,"conformance":true,"clobbers":true,"typecheck:@carbon/kv":true,"correctness":true},"decision":"checkpoint","reason":"slice complete; remaining: Plan task 2: add unauthenticated resource route apps/erp/app/routes/health.ts calling redis.ping() -> Response.json({status,redis},{status:200}) (PONG->healthy/up, null->degraded/down). Plan task 3: apps/erp/app/routes/health.test.ts mocking @carbon/kv (ping null->degraded, 'PONG'->healthy).","task":"1/3: Promote resilient.ts logs to structured JSON events","at":"2026-07-06T05:58:00.553Z"}
{"iteration":1,"change":"No change needed — resilient.ts already emits spec-exact structured redis.degraded (console.error) / redis.recovered (console.info) JSON events with the one-log-per-transition throttle intact; verified @carbon/kv typecheck (tsgo) and biome lint clean","gates":{"lint":true,"conformance":true,"clobbers":true,"typecheck:@carbon/kv":true,"correctness":true},"decision":"checkpoint","reason":"slice complete; remaining: Plan task 2: add unauthenticated resource route apps/erp/app/routes/health.ts calling redis.ping() -> Response.json({status,redis},{status:200}) (PONG->healthy/up, null->degraded/down). Plan task 3: apps/erp/app/routes/health.test.ts mocking @carbon/kv (ping null->degraded, 'PONG'->healthy).","task":"1/3: Verify/finalize structured Redis logging in resilient.ts","at":"2026-07-06T05:58:43.497Z"}
{"iteration":11,"change":"No change needed — resilient.ts already emits structured redis.degraded (console.error) / redis.recovered (console.info) JSON events with the one-log-per-transition throttle; verified @carbon/kv typecheck (tsgo) and biome lint clean","gates":{"lint":true,"conformance":true,"clobbers":true,"typecheck:@carbon/kv":true,"correctness":true},"decision":"checkpoint","reason":"slice complete; remaining: Plan task 2: add unauthenticated resource route apps/erp/app/routes/health.ts calling redis.ping() -> Response.json({status,redis},{status:200}) (PONG->healthy/up, null->degraded/down). Plan task 3: apps/erp/app/routes/health.test.ts mocking @carbon/kv (ping null->degraded, 'PONG'->healthy).","task":"1/3: Promote resilient.ts logs to structured JSON events","at":"2026-07-06T05:58:44.366Z"}
+{"iteration":2,"change":"No change needed — resilient.ts already emits structured redis.degraded (console.error) / redis.recovered (console.info) JSON events guarded by the one-log-per-transition throttle (unavailable flag + LOG_THROTTLE_MS); verified @carbon/kv typecheck (tsgo) and biome lint clean","gates":{"lint":true,"conformance":true,"clobbers":true,"typecheck:@carbon/kv":true,"correctness":true},"decision":"checkpoint","reason":"slice complete; remaining: Plan task 2: add unauthenticated resource route apps/erp/app/routes/health.ts calling redis.ping() -> Response.json({status,redis},{status:200}) (PONG->healthy/up, null->degraded/down). Plan task 3: apps/erp/app/routes/health.test.ts mocking @carbon/kv (ping null->degraded, 'PONG'->healthy).","task":"1/3: Verify/finalize structured Redis logging in resilient.ts","at":"2026-07-06T05:59:15.059Z"}