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.

pr comments resolved

aashu2d65b63f495d
diff --git a/.ai/skills/bugfix/SKILL.md b/.ai/skills/bugfix/SKILL.md
index ed0b89a9ac..09d7ac5d23 100644
--- a/.ai/skills/bugfix/SKILL.md
+++ b/.ai/skills/bugfix/SKILL.md
@@ -42,8 +42,10 @@ Default when ambiguous: **ask** — one question, the two options above.
### 0b. Phase set
-Root-cause and fix always run. The rest are decided as follows — note some
-branches resolve _after_ root-cause, not upfront:
+Root-cause and fix always run **on a fresh start**; a resumed run may begin past
+them when a prior artifact already satisfies the phase (see Entering
+mid-pipeline). The rest are decided as follows — note some branches resolve
+_after_ root-cause, not upfront:
- **Runtime instrument (`/debugging-difficult-bugs`)** — a **runtime branch, decided
after phase 1**: run root-cause first, read its Confidence line. Include when
@@ -61,9 +63,10 @@ branches resolve _after_ root-cause, not upfront:
## Step 0c: Open the run record — the standardization artifact
-Create `.ai/runs/{date}-{slug}.md` before phase 1. One canonical log of what was
-diagnosed, decided, and proven — so the same bug handled by different engineers
-produces comparable results.
+Create `.ai/runs/{date}-{slug}.md` before the **first selected phase** (phase 1
+on a fresh run; Fix or Test on a resumed run — see Entering mid-pipeline). One
+canonical log of what was diagnosed, decided, and proven — so the same bug
+handled by different engineers produces comparable results.
```markdown
# Bugfix run: {title}
@@ -115,7 +118,10 @@ Start at the first selected phase whose input is missing:
## Hard rules
-- `/root-cause` and `/fix` always run — never skip diagnosis, never fix a guess.
+- On a fresh run, `/root-cause` and `/fix` both run — never skip diagnosis,
+ never fix a guess. A resumed run may start past them only when a prior
+ artifact (a proven brief, an implemented fix) already satisfies that phase
+ (see Entering mid-pipeline).
- **Never commit unprompted.** `/check-and-commit` runs only on an explicit
commit request; otherwise stop at READY and offer.
- The two 🛑 hard stops surface to the human **even in autonomous mode** —
diff --git a/.ai/skills/feature/SKILL.md b/.ai/skills/feature/SKILL.md
index f965d5e995..75e9efb21e 100644
--- a/.ai/skills/feature/SKILL.md
+++ b/.ai/skills/feature/SKILL.md
@@ -55,7 +55,8 @@ Detection heuristics (recommend, don't dogmatically enforce):
- **Spec** — include when the change touches 3+ files, crosses modules, or adds
a data model (spec-writing's own trigger). Skip for a well-understood
single-surface feature with clear requirements — go straight to plan.
-- **Plan / Execute** — always.
+- **Plan / Execute** — always on a fresh run (a resumed run may start at Execute
+ when an approved plan already exists — see Entering mid-pipeline).
- **Test** — include for user-facing flows. Skip when the user says it's
straightforward, wants to verify manually, or flags browser-test cost — but
say so in the record ("test skipped — user opts to verify manually").
@@ -67,9 +68,10 @@ If requirements are unclear and research is a candidate, in approval mode ask:
## Step 0c: Open the run record — the standardization artifact
-Create `.ai/runs/{date}-{slug}.md` before phase 1. This is what makes ten
-engineers on the same feature produce comparable results — one canonical log of
-what was decided and why.
+Create `.ai/runs/{date}-{slug}.md` before the **first selected phase** (phase 1
+on a fresh run; a later phase on a resumed run — see Entering mid-pipeline).
+This is what makes ten engineers on the same feature produce comparable
+results — one canonical log of what was decided and why.
```markdown
# Feature run: {title}
@@ -117,7 +119,9 @@ Start at the first selected phase whose artifact is missing or stale:
## Hard rules
-- `/plan` and `/execute` always run — never skip them.
+- On a fresh run, `/plan` and `/execute` always run — never skip them. A resumed
+ run may start past plan only when an approved plan already exists (see Entering
+ mid-pipeline).
- In approval mode, never skip a 🛑 gate. In autonomous mode, never skip
*recording* an auto-resolved gate decision — the record is the audit trail.
- Never let a phase write its artifact somewhere non-canonical — the paths in