spec-lite 1.3.2 → 1.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -52,7 +52,7 @@ Skill detect từng frd hiện tại thuộc "era" nào và apply vectors tươn
|
|
|
52
52
|
| **V5 US/AC stability notes** | Section User Stories thiếu chuỗi "ID stable" | Insert 2 dòng note | None |
|
|
53
53
|
| **V6 VR section** | Không có heading `## Verification Rules` | Propose VR table từ User Stories → user approve → insert | Medium |
|
|
54
54
|
| **V7 Components Used location** | Section `## Components Consumed` đứng riêng (era pre-84d7303) | Move xuống `## Dependencies` thành subsection `### Components Used` | Low |
|
|
55
|
-
| **V8 User Flows missing** | Không có heading `## User Flows` (era pre-84d7303) | Derive Mermaid flows từ User Stories → propose → user approve → insert. 1 flow / nhóm US liên quan theo journey logic. | Medium |
|
|
55
|
+
| **V8 User Flows missing** | Không có heading `## User Flows` (era pre-84d7303) | Derive Mermaid flows từ User Stories → propose → user approve → insert. 1 flow / nhóm US liên quan theo journey logic. **Bắt buộc — không có option skip; FRD migration không hoàn tất nếu thiếu User Flows.** | Medium |
|
|
56
56
|
|
|
57
57
|
---
|
|
58
58
|
|
|
@@ -260,7 +260,7 @@ Apply? (yes / edit / skip-vr)
|
|
|
260
260
|
|
|
261
261
|
### Bước 6: V8 — Derive User Flows section
|
|
262
262
|
|
|
263
|
-
**Run nếu V8 detected.** Propose-then-approve giống V6
|
|
263
|
+
**Run nếu V8 detected. Bắt buộc — không có option skip.** Propose-then-approve giống V6 nhưng loop cho tới khi user approve: model derive draft, user duyệt (yes) hoặc trả phản hồi (edit) → model regenerate. FRD migration chỉ hoàn tất khi `## User Flows` đã insert.
|
|
264
264
|
|
|
265
265
|
#### 6.1 Load minimal context
|
|
266
266
|
- Section `## Overview` của FRD (framing scope + actors).
|
|
@@ -305,10 +305,11 @@ Flow 2: Login
|
|
|
305
305
|
...
|
|
306
306
|
```
|
|
307
307
|
|
|
308
|
-
Apply? (yes / edit
|
|
309
|
-
yes
|
|
310
|
-
edit
|
|
311
|
-
|
|
308
|
+
Apply? (yes / edit)
|
|
309
|
+
yes → insert vào frd.md
|
|
310
|
+
edit → user góp ý flow nào cần sửa (vd: "Flow 1 thiếu nhánh email đã tồn tại") → regenerate draft, loop lại
|
|
311
|
+
|
|
312
|
+
User Flows là **bắt buộc** — không có option skip. Nếu user muốn dừng toàn bộ migration cho feature này, dùng "skip-feature" ở Bước 4 hoặc abort skill (Ctrl-C) trước khi V8 chạy.
|
|
312
313
|
```
|
|
313
314
|
|
|
314
315
|
#### 6.4 Insert
|
|
@@ -326,6 +327,7 @@ Sau khi apply hết vectors cho một FRD, chạy check:
|
|
|
326
327
|
- [ ] Story AC vẫn dùng `AC-F{NNN}-` (không bị remap nhầm)
|
|
327
328
|
- [ ] Mermaid blocks không còn pattern `[{...}]`
|
|
328
329
|
- [ ] Có heading `## Verification Rules` (nếu V6 applied)
|
|
330
|
+
- [ ] Có heading `## User Flows` với ít nhất 1 Mermaid flowchart (bắt buộc — nếu V8 detected mà section vẫn vắng thì migration chưa hoàn tất)
|
|
329
331
|
- [ ] VR Rule column không chứa keyword UI copy: "error message", "vui lòng", "hint", "tooltip"
|
|
330
332
|
- [ ] Frontmatter `referenced_by` trỏ tới `3.3 Feature level` (không phải `3.2`)
|
|
331
333
|
|
|
@@ -371,6 +373,7 @@ Append vào [changelogs.md](../../changelogs.md) `## [Unreleased]`:
|
|
|
371
373
|
- VR Rule column chứa regex `^[a-z]+$` hoặc tech type `varchar(255)` — đó là HOW, sai vị trí.
|
|
372
374
|
- V8 flows auto-apply không qua propose-then-approve → model có thể bịa glue step / sai journey grouping mà BA không kịp catch.
|
|
373
375
|
- V8 flow chứa step không trace được lên US nào (model bịa) → BA reject draft và yêu cầu regenerate.
|
|
376
|
+
- Để FRD không có `## User Flows` sau migration vì "draft chưa ổn" → sai. V8 bắt buộc; nếu draft chưa ổn, dùng `edit` loop cho tới khi approve. FRD không có User Flows = migration chưa hoàn tất.
|
|
374
377
|
- V8 Mermaid block dùng syntax `[{...}]` thay vì `["..."]` — vi phạm V1 convention.
|
|
375
378
|
- Validate fail nhưng skip rollback → file ở trạng thái nửa migrate, khó debug sau.
|
|
376
379
|
- Load conventions.md hoặc source code "for safety" → contamination, tốn context, không cải thiện output.
|
|
@@ -378,7 +381,7 @@ Append vào [changelogs.md](../../changelogs.md) `## [Unreleased]`:
|
|
|
378
381
|
## Verification
|
|
379
382
|
|
|
380
383
|
Trước khi mark feature done:
|
|
381
|
-
- [ ] Tất cả vectors detected đã apply (hoặc skip có log lý do)
|
|
384
|
+
- [ ] Tất cả vectors detected đã apply (hoặc skip có log lý do — riêng V8 KHÔNG được skip)
|
|
382
385
|
- [ ] Validate Bước 6 pass
|
|
383
386
|
- [ ] Working tree clean trước khi skill chạy (git status verified) — rollback dùng git, không có file backup
|
|
384
387
|
- [ ] Cascade ID đã re-grep và confirm 0 false-positive
|