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
refactor: remove memory files
Brad Barbin458c5e710534
diff --git a/.ai/daily-notes/2026-07-06.md b/.ai/daily-notes/2026-07-06.mddeleted file mode 100644index b0ff19682f..0000000000--- a/.ai/daily-notes/2026-07-06.md+++ /dev/null@@ -1,110 +0,0 @@-# Daily Notes — 2026-07-06--## Heartbeat Pass @ 03:49 UTC--### PR Status-- **PR #986** (`fix(mes): COOP/COEP headers`) — ✅ **APPROVED + CI GREEN**, open for merge. Brad to merge.-- **PR #1068** (`loop(1031): Accounting period close lifecycle`) — All CI green, all review threads resolved, `REVIEW_REQUIRED`. Brad to review + approve.-- **PR #1082** (`loop(1077): make @carbon/kv redis client transparently resilient`) — Re-opened after Brad closed it. Proxy-based redesign is in place (commit `c7f43ec`). All CI green. Left rework summary comment.--### Actions Taken-1. **Re-opened PR #1082** with Proxy-based implementation. Previous carbon-agent turn promised to dispatch the Proxy rework, and it was committed to `loop/1077` before the PR was closed. Re-opened with updated title + rework summary comment.-2. **GC**: no finished runs to prune. Docker: 2GB reclaimable images, not blocking.-3. **Disk**: 76% used (27G/38G) — healthy.--### Issue Queue-- **#1077** (Redis wrapper — foundation): PR #1082 re-opened, waiting for Brad review.-- **#1078** (auth path migration): Blocked on #1077 merge (depends on Proxy wrapper in main).-- **#1079** (rate-limiter fail-safe): Blocked on #1077.-- **#1080** (printing/ERP consumers): Blocked on #1077.-- **#1081** (health endpoint): Blocked on #1077.-- **#1031** (period close): `agent:needs-verification` — waiting for human verification of draft PR.-- **#942** (Inventory Counts): `agent:blocked` — needs decomposition.--### Next Steps (blocked on Brad)-1. Merge PR #986 (approved, CI green)-2. Review + approve PR #1082 (Proxy wrapper — unblocks entire Redis resilience series #1078-#1081)-3. Review + approve PR #1068 (period close lifecycle — all threads resolved, CI green)--## Heartbeat Pass @ 05:54 UTC--### Progress Since 03:49-- **PR #1083** merged! (`fix/1076-redis-resilience` — Proxy-based Redis resilience)-- **PR #1082** → closed (superseded by #1083)-- **Issue #1077** → closed (delivered via #1083)-- **Issue #1079** (rate-limiter fail-safe) → closed (merged with #1083)-- **PR #1084** (`loop(1078): Redis auth path migration`) — ✅ CI GREEN (all 8 checks pass), REVIEW_REQUIRED-- **PR #1085** (`loop(1080): Redis remaining cache consumers`) — ✅ CI GREEN (all checks pass), REVIEW_REQUIRED-- **Issue #1081** (`agent:working`) — worktree at `carbon-loop-1081` exists; inner loop stalled after 7 slices verifying `AC[4][5]` (resilient.ts structured logging — already correct) but never built health endpoint (`AC[1][2][3]`) or tests (`AC[6]`). **Re-launched build via crbn up.**--### Issue Queue-- **#1081** (health endpoint + observability): 🔄 Re-launched — building health route + unit tests-- **#1078** (auth path migration): PR #1084 open, CI green, awaiting review-- **#1080** (remaining consumers): PR #1085 open, CI green, awaiting review-- **#1031** (period close): PR #1068 open, CI green, `agent:needs-verification`, awaiting Brad review-- **#942** (Inventory Counts): `agent:blocked`--### Next Steps (blocked on Brad)-1. Review + approve PR #1084 (Redis auth path migration, CI green)-2. Review + approve PR #1085 (Redis remaining consumers, CI green)-3. Review + approve PR #1068 (period close lifecycle, CI green)--## Heartbeat Pass @ 06:02 UTC--### Issue #1081 — Health Endpoint Recovery--Inner loop from the 05:54 pass plateaued: stuck on task 1/3 (structured logging) for 16 iterations, never advancing to tasks 2 and 3, despite the code already being correct. Loop opened PR #1086 as partial.--**Recovery (this pass):** Discovered all 3 files were already committed in the worktree (health.ts, health.test.ts, resilient.ts). Ran gates manually:-- ✅ Vitest: 2/2 tests pass (`app/routes/health.test.ts`)-- ✅ Biome: clean on both new files-- ✅ TypeScript: erp tsc was SIGKILLed (timeout), kv errors are pre-existing in unrelated `utils/field-registry.ts` (not our files)-- Branch `loop/1081` already pushed; PR #1086 title updated (removed `[partial]`).--### PR Status-- **PR #1084** (`loop(1078): Redis auth path migration`) — CI green, REVIEW_REQUIRED-- **PR #1085** (`loop(1080): Redis remaining consumers`) — CI green, REVIEW_REQUIRED-- **PR #1086** (`loop(1081): Redis health endpoint + observability`) — All gates pass, REVIEW_REQUIRED-- **PR #1068** (`loop(1031): period close lifecycle`) — CI green, REVIEW_REQUIRED--### Issue Queue-- **#1081**: PR #1086 open, gates pass, awaiting review-- **#1078**: PR #1084 open, awaiting review-- **#1080**: PR #1085 open, awaiting review-- **#1031**: PR #1068 open, awaiting review-- **#942**: `agent:blocked`--### Known Issue-The `pnpm --filter erp tsc --noEmit` command timed out (SIGKILL). The pre-existing `utils/field-registry.ts` typecheck errors are not related to our changes, and were present before this work. If Brad wants a full erp tsc confirmation, it should be run with a longer timeout.--### Next Steps (blocked on Brad)-1. Review + approve PR #1086 (health endpoint, gates pass)-2. Review + approve PR #1084 (Redis auth path migration, CI green)-3. Review + approve PR #1085 (Redis remaining consumers, CI green)-4. Review + approve PR #1068 (period close lifecycle, CI green)--## Heartbeat Pass @ 20:00 UTC--### Merges Since Last Pass-- **PR #1093** merged: `fix(production): stamp updatedBy on auto-completed job operations`-- **PR #1094** merged: `fix(db): guard NOT NULL audit columns against null user ids`--### PR Status-- **PR #1090** (`loop(1061): Avalara integration foundation`) — 0 unresolved threads, CI green, REVIEW_REQUIRED. Not a draft. Awaiting Brad review.-- **PR #1068** (`loop(1031): period close lifecycle`) — 0 unresolved threads, CI green, REVIEW_REQUIRED. Awaiting Brad review.-- **PR #1088** (`chore(runs): persist loop artifacts #1077/#1078`) — 0 unresolved threads, REVIEW_REQUIRED. Awaiting Brad review.--### Issue Queue-- **#1061** (Avalara foundation): `agent:needs-verification` — PR #1090 open, no unresolved threads-- **#1031** (period close): `agent:needs-verification` — PR #1068 open, no unresolved threads-- **#942** (Inventory Counts): `agent:blocked`--### System Health-- Disk: 77% (28G/38G) — acceptable-- Docker: 15 images, 88MB reclaimable (negligible)-- Worktrees: main + loop/1061 (active PR)--### Next Steps (blocked on Brad)-1. Review + approve PR #1090 (Avalara foundation, all threads resolved)-2. Review + approve PR #1068 (period close lifecycle, all threads resolved)-3. Review + merge PR #1088 (run artifacts chore)diff --git a/.vscode/settings.json b/.vscode/settings.jsondeleted file mode 100644index 3c358eff83..0000000000--- a/.vscode/settings.json+++ /dev/null@@ -1,3 +0,0 @@-{- "js/ts.tsdk.path": "node_modules/typescript/lib"-}\ No newline at end of filediff --git a/memory/daily-notes/2026-06-30.md b/memory/daily-notes/2026-06-30.mddeleted file mode 100644index f00efb27cb..0000000000--- a/memory/daily-notes/2026-06-30.md+++ /dev/null@@ -1,55 +0,0 @@-# Daily Notes — 2026-06-30--## Summary--Active day: PR feedback passes, ECO review thread replies, LLM-first architecture PR (#992) feedback addressed.--## PR Status--| PR | Title | Status |-|----|-------|--------|-| #992 | feat: LLM-first architecture overhaul — .ai/ knowledge system | Open, MERGEABLE, all CI pass. Brad's 3 review threads addressed in commit 9f09d51f (22:29 UTC). Waiting for Brad's re-review. |-| #986 | fix(mes): COOP/COEP headers for cross-origin isolation | Open, all CI pass. One outdated thread (meta/kong dependency) fully explained. Waiting for Brad's review. |-| #983 | fix(inventory): surface negative adjustment errors in modal | Open, all CI pass. No outstanding feedback. Waiting for Brad's review. |-| #978 | ECOs (by Gaurav Bhatt) | Open, MERGEABLE, all CI pass. All 8 review threads resolved. CHANGES_REQUESTED from Brad (Jun 29) still blocking merge — pinged at 05:47 UTC + thread reply summaries at 22:35 UTC. Waiting for Brad's re-approval. |--## Issue State--| # | Title | Labels |-|---|-------|--------|-| 974 | Negative inventory adjustment fails silently | bug (has PR #983) |-| 968 | Period Closing | agent:groomed + agent:blocked (questions pending Brad) |-| 959 | Files missing on mobile in MES | agent:blocked |-| 941 | Bank Reconciliations | agent:groomed + agent:blocked (questions pending Brad) |-| 940 | RMAs | agent:needs-decomposition |-| 755 | NDA Badge | agent:groomed + agent:blocked |-| 450 | STEP file import freezes at 90% | no label (has PR #986) |-| 403 | Supabase deprecating legacy API key names | agent:groomed + agent:blocked |-| 391 | Browse Items by Shelf | agent:groomed + agent:blocked |--**Closed today:** #975 (inventory adjustment qty typing — usability fix)--## Key Events (chronological)--- **~14:xx UTC** — PR #986 meta/kong dependency back-and-forth; final state = meta removed from kong depends_on (correct for minimal mode). Reverted accidental restore at 14:41.-- **~17:xx UTC** — PR #992 additional commits: add 5 workflow skills (17:43), rewrite 9 module AGENTS.md files (17:51)-- **~21:59-22:01 UTC** — Brad reviewed PR #992 with 3 comments: (1) "We call it a Job" on erp-concepts.md, (2) "should follow rls-refactor conventions" on module-conventions.md, (3) "This file needs cleaned up" on outer-loop.md-- **~22:29 UTC** — Committed fix addressing all 3 review threads (9f09d51f). Replied to each thread.-- **~22:33 UTC** — eco-978-feedback binding created-- **~22:35 UTC** — Posted thread reply summaries on PR #978 (all 5 threads, confirming what was done)-- **~22:49 UTC** — PR #992 final commit: consolidate 7 skills into rules (fcf944d1)-- **~22:55 UTC** — PR #992 consolidation commit--## Infrastructure--- Disk: 69% (25G/38G) — OK-- Lock: clean (no active builds)-- Worktrees: 974, eco-978, eco-978-feedback (no prunable)-- Redis: healthy (Up 31h)-- CI: all checks passing on PRs #983, #986, #992--## Next Actions--All work is waiting for human review/merge. No unblocked assigned issues remain:-- Brad needs to re-approve PR #978 (ECOs) and re-review PRs #992, #986, #983-- Brad needs to answer questions on #968 (Period Closing) and #941 (Bank Reconciliations) before those can proceeddiff --git a/memory/daily-notes/2026-07-01.md b/memory/daily-notes/2026-07-01.mddeleted file mode 100644index 816f63cb46..0000000000--- a/memory/daily-notes/2026-07-01.md+++ /dev/null@@ -1,71 +0,0 @@-# Daily Notes — 2026-07-01--## Summary--Clean startup for July: PR #983 merged at 00:18 UTC, issue #974 auto-closed. All other PRs waiting for Brad's review. Groomed issue #436 (Dimensions for Materials x/y/z).--## PR Status--| PR | Title | Status |-|----|-------|--------|-| #992 | feat: LLM-first architecture overhaul — .ai/ knowledge system | Open, REVIEW_REQUIRED. Brad's 3 threads addressed (22:29 UTC Jun 30 — commit 9f09d51f). Waiting for Brad's re-review. |-| #986 | fix(mes): COOP/COEP headers for cross-origin isolation | Open, REVIEW_REQUIRED. All threads addressed. Waiting for Brad's review. |-| #978 | ECOs (by Gaurav Bhatt, jeebeez) | Open, CHANGES_REQUESTED. All 5 threads resolved/replied. Waiting for Brad's re-approval. |-| ~~#983~~ | ~~fix(inventory): surface negative adjustment errors~~ | **MERGED** 2026-07-01T00:18 UTC |--## Issue State--| # | Title | Labels |-|---|-------|--------|-| 968 | Period Closing | agent:groomed + agent:blocked (questions pending Brad) |-| 959 | Files missing on mobile in MES | agent:blocked |-| 941 | Bank Reconciliations | agent:groomed + agent:blocked (questions pending Brad) |-| 940 | RMAs | agent:needs-decomposition |-| 755 | NDA Badge | agent:groomed + agent:blocked |-| 450 | STEP file import freezes at 90% | no label (has PR #986) |-| 436 | Dimensions for Materials (x,y,z) | **agent:groomed** (spec posted this wake) |-| 403 | Supabase deprecating legacy API key names | agent:groomed + agent:blocked |-| 391 | Browse Items by Shelf | agent:groomed + agent:blocked |--**Closed:** #974 (negative inventory adjustment fails silently — auto-closed by PR #983 merge)-**Closed:** #975 (inventory adjustment qty typing — closed Jun 29)--## Key Events (this wake — 00:18 UTC)--- **00:18 UTC** — PR #983 merged; issue #974 auto-closed-- **00:18 UTC** — Groomed issue #436: spec proposes adding `x`, `y`, `z` nullable numeric columns to `materialDimension` table with shape-aware UI auto-populating the `name` field. Posted as comment + labelled `agent:groomed`.-- GC: no prunable worktrees; docker volume prune = 0B reclaimed.--## Infrastructure--- Disk: 69% (25G/38G) — OK (unchanged)-- Lock: clean (no active builds)-- Worktrees: eco-978, eco-978-feedback (no prunable; active PRs)-- Redis: healthy--## Next Actions--All work waiting for human review/merge:-- Brad needs to re-approve PR #978 (ECOs) and re-review PRs #992, #986-- Brad needs to answer questions on #968 (Period Closing) and #941 (Bank Reconciliations) before those can proceed-- Issue #436 groomed and ready to assign to carbon-agent whenever Brad approves-------## 02:01 UTC — Wake: HEARTBEAT_OK--**Resilience:** Clean — no lockfile, no build processes, no agent:working. Main worktree was on stale `chore/playbooks-and-lessons` branch (PR #999 already merged); switched to `main`, git pull (fast-forward picked up #998 + #999). Now on main, fully up to date. Disk 69%.--**Recent merges since midnight:**-- PR #992 (LLM-first .ai/ overhaul) — MERGED ✅-- PR #998 (fix: guard prepare + CLAUDE.md) — MERGED ✅-- PR #999 (chore: consolidate playbooks into .ai/playbooks/) — MERGED ✅-- PR #997 (biome auto-format) — CLOSED (not merged; fix incorporated into #992 directly)--**PR state:**-- PR #986 (COOP/COEP STEP import, loop/450): REVIEW_REQUIRED, all CI ✅, 0 unresolved threads. Rebased at 01:46 UTC. Awaiting Brad review.-- PR #978 (ECOs, jeebeez): CHANGES_REQUESTED (stale), 0 unresolved threads, CI ✅. Awaiting Gaurav/Brad re-review.--**Assigned issues:** All blocked/groomed+blocked/needs-decomp. No buildable work.--**Smee relay:** Active (user processes PIDs 261637 + 1010092; no systemd unit, normal).