Goal
Add a heuristic warning to the validator when epic.order values have gaps (e.g. [0, 1, 3] skipping 2) or duplicates beyond what's allowed.
Why
Currently nothing tells the user "you wrote order: 0, 1, 3 — is the missing 2 intentional?". Same-stage epics should share an order; non-sequential gaps are usually mistakes.
Scope (what is in)
Out of scope
- Auto-fix
- New error level (must be a warning, not error)
Files likely involved
scripts/validate-features.mjs (single file)
Acceptance criteria
Estimated effort
~1-2 hours / 1 file
Hints
The existing file-level warnings near line 600-700 (search for 严重不平衡 or 偏好) show the pattern. Reuse pushWarning(...).
Want to take this?
Comment "I'd like to take this" and I'll confirm within 24h.
Goal
Add a heuristic warning to the validator when
epic.ordervalues have gaps (e.g.[0, 1, 3]skipping 2) or duplicates beyond what's allowed.Why
Currently nothing tells the user "you wrote
order: 0, 1, 3— is the missing 2 intentional?". Same-stage epics should share an order; non-sequential gaps are usually mistakes.Scope (what is in)
ordervalues present, find min and max, list missing integersorder(likely under-stratified)⚠ epic.order skips value(s): [2]and⚠ 5 epics share order=0 — likely too coarseOut of scope
Files likely involved
scripts/validate-features.mjs(single file)Acceptance criteria
order: [0, 1, 3]prints the gap warningEstimated effort
~1-2 hours / 1 file
Hints
The existing file-level warnings near line 600-700 (search for
严重不平衡or偏好) show the pattern. ReusepushWarning(...).Want to take this?
Comment "I'd like to take this" and I'll confirm within 24h.