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
Specs — Agent Rules
Check .ai/specs/ before modifying any module. Create or update specs when the change is non-trivial.
Always
- Check specs directory before modifying a module or adding a feature.
- Create a new spec for new modules, significant features, or architecture changes touching multiple files.
- Update an existing spec when changing APIs, data models, workflows, or cross-module behavior.
- Keep specs implementation-accurate and update the changelog after implementation.
Ask First
- Ask before moving a spec to
implemented/if deployment/completion evidence is incomplete. - Ask before archiving a spec that still owns live scope — add a scope note instead.
- Ask before changing the spec directory structure or naming convention.
Never
- Never leave stale endpoints, entities, or assumptions in an updated spec.
- Never skip the spec for changes that affect multiple modules or change data models.
Spec Lifecycle
1. Idea → research + design decisions; open questions collected
2. Open questions resolved with the user (hard stop — BEFORE the spec is written)
3. Spec written in .ai/specs/{YYYY-MM-DD}-{title}.md with resolutions baked in
(questions surfaced while writing go back to step 2 before the spec is final)
4. Implementation proceeds phase-by-phase
5. Completed spec moves to .ai/specs/implemented/ (with its /explain .html, if any)
6. PR links back to spec via "Tracking spec:" line
7. A spec superseded before implementation moves to .ai/specs/archived/ with a
"> Superseded by:" line (partially superseded specs stay live with a scope note)
Directories
| Directory | Holds |
|---|---|
.ai/specs/ |
Live designs (draft / in-progress) |
.ai/specs/implemented/ |
Shipped designs, kept implementation-accurate |
.ai/specs/archived/ |
Superseded-before-implementation designs; history only, never precedent (see its README) |
File Naming Convention
{YYYY-MM-DD}-{kebab-case-title}.md
Examples:
2026-07-01-eco-workflow-overhaul.md2026-07-05-lot-traceability-receipts.md
Create/Update Triggers
| Trigger | Action |
|---|---|
| New module | Create spec |
| Feature touching 3+ files | Create spec |
| Data model change | Create or update spec |
| API contract change | Update spec |
| Cross-module behavior change | Create spec |
| Small bug fix or typo | Skip spec |
| One-file refactor, no behavior change | Skip spec |
HTML explainers
A spec may have a sibling {same-name}.html made by /explain. The .md is
the source of truth. After you edit a spec, find the stale pages with the
loop in /explain → "Keeping pages fresh", and regenerate each one.
Spec Template
Use .ai/specs/template.md as a starting point for new specs.