@jakkrichm/create-nexus-devflow 2.12.2 → 2.12.4
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/dist/lib/current-work.d.ts +6 -1
- package/dist/lib/current-work.js +41 -4
- package/dist/lib/current-work.js.map +1 -1
- package/dist/lib/history.js +28 -15
- package/dist/lib/history.js.map +1 -1
- package/dist/lib/project-config.d.ts +5 -1
- package/dist/lib/project-config.js +11 -2
- package/dist/lib/project-config.js.map +1 -1
- package/dist/lib/review.d.ts +4 -1
- package/dist/lib/review.js +35 -4
- package/dist/lib/review.js.map +1 -1
- package/dist/lib/run-state.d.ts +1 -1
- package/dist/lib/run-state.js +1 -9
- package/dist/lib/run-state.js.map +1 -1
- package/dist/lib/status.d.ts +3 -1
- package/dist/lib/status.js +25 -6
- package/dist/lib/status.js.map +1 -1
- package/dist/scripts/prepare-template.js +22 -7
- package/dist/scripts/prepare-template.js.map +1 -1
- package/package.json +1 -1
- package/template/.agents/skills/adopt/SKILL.md +40 -5
- package/template/.agents/skills/audit/SKILL.md +65 -18
- package/template/.agents/skills/audit/reference/independent-review.md +31 -4
- package/template/.agents/skills/autopilot/SKILL.md +62 -18
- package/template/.agents/skills/ci/SKILL.md +8 -1
- package/template/.agents/skills/complete/SKILL.md +27 -2
- package/template/.agents/skills/continuous/SKILL.md +9 -4
- package/template/.agents/skills/doctor/SKILL.md +8 -4
- package/template/.agents/skills/feature/SKILL.md +9 -1
- package/template/.agents/skills/fix/SKILL.md +2 -1
- package/template/.agents/skills/implement/SKILL.md +47 -3
- package/template/.agents/skills/onboard/SKILL.md +62 -11
- package/template/.agents/skills/overview/SKILL.md +14 -0
- package/template/.agents/skills/rollback/SKILL.md +3 -1
- package/template/.agents/skills/status/SKILL.md +14 -4
- package/template/.claude/skills/adopt/SKILL.md +40 -5
- package/template/.claude/skills/audit/SKILL.md +65 -18
- package/template/.claude/skills/audit/reference/independent-review.md +31 -4
- package/template/.claude/skills/autopilot/SKILL.md +62 -18
- package/template/.claude/skills/ci/SKILL.md +8 -1
- package/template/.claude/skills/complete/SKILL.md +27 -2
- package/template/.claude/skills/continuous/SKILL.md +9 -4
- package/template/.claude/skills/doctor/SKILL.md +8 -4
- package/template/.claude/skills/feature/SKILL.md +9 -1
- package/template/.claude/skills/fix/SKILL.md +2 -1
- package/template/.claude/skills/implement/SKILL.md +47 -3
- package/template/.claude/skills/onboard/SKILL.md +62 -11
- package/template/.claude/skills/overview/SKILL.md +14 -0
- package/template/.claude/skills/rollback/SKILL.md +3 -1
- package/template/.claude/skills/status/SKILL.md +14 -4
- package/template/AGENTS.md +4 -2
- package/template/devflow/build-plan.md +18 -0
- package/template/devflow/config.json +5 -2
- package/template/devflow/context/ai-interaction.md +2 -0
- package/template/devflow/analysis/REQ-20260903-001-sync-upstream-ai-blueprint/codebase-impact.md +0 -46
- package/template/devflow/analysis/REQ-20260904-001-sync-upstream-ai-blueprint/codebase-impact.md +0 -47
- package/template/devflow/inbox/REQ-20260903-001-sync-upstream-ai-blueprint/clarifications.md +0 -34
- package/template/devflow/inbox/REQ-20260903-001-sync-upstream-ai-blueprint/parsed.md +0 -66
- package/template/devflow/inbox/REQ-20260903-001-sync-upstream-ai-blueprint/raw/upstream-v152-diff.md +0 -16
- package/template/devflow/inbox/REQ-20260904-001-sync-upstream-ai-blueprint/clarifications.md +0 -28
- package/template/devflow/inbox/REQ-20260904-001-sync-upstream-ai-blueprint/parsed.md +0 -59
- package/template/devflow/inbox/REQ-20260904-001-sync-upstream-ai-blueprint/raw/upstream-diff.txt +0 -23
|
@@ -164,7 +164,14 @@ than pretending a pattern exists.
|
|
|
164
164
|
## Step 4 - check AI interaction rules and workflow configuration
|
|
165
165
|
|
|
166
166
|
`devflow/config.json` is the user-owned workflow policy for this project. Keep
|
|
167
|
-
it lean and machine-readable:
|
|
167
|
+
it lean and machine-readable: edit only supported keys, such as branch prefixes,
|
|
168
|
+
logic-test strictness, regular or Continuous quality gates, review execution, or
|
|
169
|
+
Continuous Mode limits. Independent review defaults to `when-sensitive` for
|
|
170
|
+
regular and Continuous work, and its execution defaults to `automatic`. Audit,
|
|
171
|
+
check, and try guide default to `manual`. Preserve these defaults unless the user
|
|
172
|
+
chooses different policies. A `manual` independent-review gate disables
|
|
173
|
+
automatic selection for that workflow without disabling explicit independent
|
|
174
|
+
audits. Never put stack choices, conventions, custom
|
|
168
175
|
commands, product requirements, communication prose, secrets, or permission for
|
|
169
176
|
commits, merges, pushes, deployments, publication, destructive actions, failed
|
|
170
177
|
checks, or finding waivers into config.
|
|
@@ -172,12 +179,12 @@ checks, or finding waivers into config.
|
|
|
172
179
|
Unless the user already chose these values, ask one short **Implementation
|
|
173
180
|
style** question using the current tool's selectable prompt when available:
|
|
174
181
|
|
|
175
|
-
1. **Efficient (Recommended)** - one feature-level review packet
|
|
176
|
-
checkpoint prompts. Write
|
|
177
|
-
`workflow.checkpointCommits: "disabled"`.
|
|
182
|
+
1. **Efficient (Recommended)** - one feature-level review packet, a final code
|
|
183
|
+
walkthrough option, and no step checkpoint prompts. Write
|
|
184
|
+
`workflow.stepReview: "feature"` and `workflow.checkpointCommits: "disabled"`.
|
|
178
185
|
2. **Guided** - pause for approval after every step and offer optional checkpoint
|
|
179
|
-
commits
|
|
180
|
-
`workflow.checkpointCommits: "enabled"`.
|
|
186
|
+
commits, followed by the same final code walkthrough option. Write
|
|
187
|
+
`workflow.stepReview: "every"` and `workflow.checkpointCommits: "enabled"`.
|
|
181
188
|
3. **Custom** - ask separately when review should happen and whether checkpoint
|
|
182
189
|
commits should be offered, then write the selected low-level values.
|
|
183
190
|
|
|
@@ -185,6 +192,8 @@ These are onboarding presets, not a third configuration field.
|
|
|
185
192
|
Never write an `implementationStyle` key. Show the current two values before asking, preserve
|
|
186
193
|
them if the user chooses not to change them, and explain that either value can be
|
|
187
194
|
edited later. A later `/implement` run reads the current configuration.
|
|
195
|
+
The final code walkthrough is not a configuration setting and remains available
|
|
196
|
+
with every implementation style.
|
|
188
197
|
|
|
189
198
|
Read `devflow/context/ai-interaction.md` and update only obvious mismatches.
|
|
190
199
|
Usually the default review loop should stay intact. Flag preferences for the user
|
|
@@ -197,6 +206,13 @@ instead of guessing, such as:
|
|
|
197
206
|
changing only `stepReview` restores the approval pauses, not checkpoint prompts
|
|
198
207
|
- whether branches should use a different naming pattern
|
|
199
208
|
- whether `/check` should require browser evidence for UI work
|
|
209
|
+
- whether audit, independent review, check, or try guides should stay manual, run only for their
|
|
210
|
+
documented conditional case, or run for every regular or Continuous work item
|
|
211
|
+
- whether a selected independent review should use the default automatic
|
|
212
|
+
isolated reviewer or `review.independentExecution: "manual"` for a
|
|
213
|
+
fresh-session handoff. Explain that automatic execution uses a fresh isolated
|
|
214
|
+
reviewer only when the active adapter can expose its exact identity and model,
|
|
215
|
+
and otherwise stops with the manual handoff
|
|
200
216
|
|
|
201
217
|
If no changes are needed, say so.
|
|
202
218
|
|
|
@@ -250,16 +266,51 @@ DevFlow visibility?
|
|
|
250
266
|
Keeps AGENTS.md public as the lightweight project agent guide.
|
|
251
267
|
```
|
|
252
268
|
|
|
253
|
-
Recommend option 1 by default.
|
|
269
|
+
Recommend option 1 by default.
|
|
270
|
+
- If option 1 (Commit) is chosen, ensure the project's `.gitignore` ignores transient run files and raw documents:
|
|
271
|
+
```gitignore
|
|
272
|
+
# DevFlow Transient Runtime Data, Research & Scratch Files
|
|
273
|
+
devflow/runs/*
|
|
274
|
+
!devflow/runs/.gitkeep
|
|
275
|
+
devflow/discoveries/*
|
|
276
|
+
!devflow/discoveries/.gitkeep
|
|
277
|
+
devflow/reports/*
|
|
278
|
+
!devflow/reports/.gitkeep
|
|
279
|
+
devflow/research/*
|
|
280
|
+
!devflow/research/.gitkeep
|
|
281
|
+
devflow/scratch/*
|
|
282
|
+
!devflow/scratch/.gitkeep
|
|
283
|
+
devflow/decisions/*
|
|
284
|
+
!devflow/decisions/.gitkeep
|
|
285
|
+
!devflow/decisions/README.md
|
|
286
|
+
devflow/inbox/*/raw/*
|
|
287
|
+
devflow/inbox/raw/*
|
|
288
|
+
devflow/analysis/*
|
|
289
|
+
!devflow/analysis/.gitkeep
|
|
290
|
+
devflow/tmp/*
|
|
291
|
+
devflow/temp/*
|
|
292
|
+
devflow/brainstorm/*
|
|
293
|
+
devflow/brainstorms/*
|
|
294
|
+
devflow/backups/*
|
|
295
|
+
devflow/.state/
|
|
296
|
+
devflow/.vendor/
|
|
297
|
+
.nexus/
|
|
298
|
+
prototypes/*
|
|
299
|
+
!prototypes/.gitkeep
|
|
300
|
+
```
|
|
301
|
+
|
|
302
|
+
If the user chooses option 2 (Local-only / Zero-Visibility):
|
|
254
303
|
|
|
255
304
|
- Add this block to `.gitignore`, preserving existing entries:
|
|
256
305
|
|
|
257
306
|
```gitignore
|
|
258
|
-
# DevFlow local workflow files
|
|
307
|
+
# DevFlow local workflow files (Zero-Visibility)
|
|
259
308
|
.agents/
|
|
260
309
|
.claude/
|
|
261
310
|
devflow/
|
|
262
311
|
CLAUDE.md
|
|
312
|
+
.nexus/
|
|
313
|
+
prototypes/
|
|
263
314
|
```
|
|
264
315
|
|
|
265
316
|
- Keep `AGENTS.md` tracked. It remains the lightweight public project guide for
|
|
@@ -273,10 +324,10 @@ Recommend option 1 by default. If the user chooses option 2:
|
|
|
273
324
|
- Explain that DevFlow state, specs, findings, and history will not travel
|
|
274
325
|
with the repo; another machine needs DevFlow reinstalled or restored
|
|
275
326
|
locally.
|
|
276
|
-
- If any of `.agents/`, `.claude/`, `devflow/`, or
|
|
277
|
-
`
|
|
327
|
+
- If any of `.agents/`, `.claude/`, `devflow/`, `CLAUDE.md`, `.nexus/`, or
|
|
328
|
+
`prototypes/` are already tracked, say `.gitignore` will not hide tracked files.
|
|
278
329
|
Ask before running
|
|
279
|
-
`git rm --cached -r .agents .claude devflow CLAUDE.md`, and
|
|
330
|
+
`git rm --cached -r .agents .claude devflow CLAUDE.md .nexus prototypes`, and
|
|
280
331
|
only run it if the user explicitly approves. Never delete the local files.
|
|
281
332
|
|
|
282
333
|
Then report which selected tools and adapter folders are needed:
|
|
@@ -63,6 +63,20 @@ The compiler writes:
|
|
|
63
63
|
|
|
64
64
|
The generated output follows `devflow/reference/project-overview-template.md`.
|
|
65
65
|
|
|
66
|
+
After the title, write a plan fingerprint in this exact form:
|
|
67
|
+
|
|
68
|
+
```markdown
|
|
69
|
+
<!-- devflow:source-hash <sha256> -->
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
Before hashing, normalize only build-plan completion markers by replacing each
|
|
73
|
+
`- [x]` or `- [X]` marker with `- [ ]`, while preserving indentation and every
|
|
74
|
+
other byte. Compute `<sha256>` from the exact UTF-8 bytes of `project-plan.md`,
|
|
75
|
+
one zero byte, then the normalized UTF-8 bytes of `build-plan.md`. This lets
|
|
76
|
+
`/status` detect real plan changes after cloning, copying, or updating without
|
|
77
|
+
treating completed features as overview drift. Replace the previous marker every
|
|
78
|
+
time this skill regenerates the overview.
|
|
79
|
+
|
|
66
80
|
## Step 3 - output and report
|
|
67
81
|
|
|
68
82
|
After compilation:
|
|
@@ -116,7 +116,9 @@ remediation or explicitly plan the dependent rollbacks.
|
|
|
116
116
|
## Step 4 - write the rollback spec
|
|
117
117
|
|
|
118
118
|
Allocate sequential ID (`xxx-slug`) and create `devflow/context/{xxx-slug}/`. Write `devflow/context/{xxx-slug}/spec.md` using
|
|
119
|
-
`reference/rollback-spec-template.md`. Also initialize `stage.md` and `findings.md` in that folder.
|
|
119
|
+
`reference/rollback-spec-template.md`. Also initialize `stage.md` and `findings.md` in that folder. Its first heading must be exactly
|
|
120
|
+
`# Rollback: Feature <id> - <title>`, and it must retain the existing
|
|
121
|
+
`**Type:** Rollback` contract. Fill in:
|
|
120
122
|
|
|
121
123
|
- target feature and archive
|
|
122
124
|
- target commit and parent commit as full 40-character SHA values
|
|
@@ -35,9 +35,14 @@ Read these, distill them into a few lines, then stop. Do not dump file contents.
|
|
|
35
35
|
3. **Findings** - `devflow/context/{xxx-slug}/findings.md`. Count findings by status and
|
|
36
36
|
report open and fixed counts next to build-plan progress. Call out any P0 or
|
|
37
37
|
P1 still `open` or `fixed` by ID, since those block `/complete`.
|
|
38
|
-
4. **Overview freshness** - if `devflow/context/project-overview.md` is missing
|
|
39
|
-
or
|
|
40
|
-
|
|
38
|
+
4. **Overview freshness** - if `devflow/context/project-overview.md` is missing
|
|
39
|
+
or has no `devflow:source-hash`, mention that `/overview` should run before
|
|
40
|
+
new feature work. Otherwise use `/overview`'s hash contract: exact project-plan
|
|
41
|
+
bytes, one zero byte, then build-plan bytes with line-start `- [x]` and
|
|
42
|
+
`- [X]` markers normalized to `- [ ]`. Treat a matching legacy exact-byte hash
|
|
43
|
+
as current for backward compatibility. Recommend `/overview` only when the
|
|
44
|
+
recorded hash matches neither value. Do not use filesystem timestamps;
|
|
45
|
+
`/complete` legitimately makes `build-plan.md` newer when it checks off work.
|
|
41
46
|
5. **Git** - current branch, whether the working tree is clean or has uncommitted
|
|
42
47
|
changes, roughly how many files changed, last commit subject, and whether the
|
|
43
48
|
branch is ahead of its remote. If the directory is not a git repo, say so and
|
|
@@ -50,7 +55,12 @@ Read these, distill them into a few lines, then stop. Do not dump file contents.
|
|
|
50
55
|
A missing file simply means no activity has been recorded. Invalid activity
|
|
51
56
|
state is a warning, not a blocker for the underlying workflow; point to
|
|
52
57
|
`/doctor` to inspect and offer the approved generated-state reset.
|
|
53
|
-
8. **Onboarding check** -
|
|
58
|
+
8. **Onboarding & Configuration check** - Read `devflow/config.json` when present.
|
|
59
|
+
Report effective regular and Continuous quality gates, plus `review.independentExecution`.
|
|
60
|
+
Explain that independent review defaults to `when-sensitive` for both workflows and
|
|
61
|
+
execution defaults to `automatic`, which uses an isolated reviewer only when
|
|
62
|
+
the current adapter supports it. Audit, check, and try guide default to `manual`.
|
|
63
|
+
Before recommending `/overview`, check whether `AGENTS.md`
|
|
54
64
|
still contains the `<!-- devflow:onboarding-required -->` marker or standard template commands.
|
|
55
65
|
When it does, onboarding is incomplete and `/onboard` is the next action.
|
|
56
66
|
9. **Independent review and browser evidence** - read
|
package/template/AGENTS.md
CHANGED
|
@@ -24,9 +24,11 @@ To start a new project, scaffold the application first in an empty folder, then
|
|
|
24
24
|
|
|
25
25
|
`devflow/config.json` is the user-owned, machine-readable workflow policy for this project. Workflow skills read the relevant settings before acting. A missing file means built-in defaults. An invalid file falls back to defaults for read-only status reporting, but mutating workflow commands stop and point to `/doctor` instead of guessing.
|
|
26
26
|
|
|
27
|
-
`qualityGates.regular` controls automatic audit, independent-review, check, and try-guide behavior for the normal workflow and Autopilot. `qualityGates.continuous` controls the same per-feature gates for Continuous Mode.
|
|
27
|
+
`qualityGates.regular` controls automatic audit, independent-review, check, and try-guide behavior for the normal workflow and Autopilot. `qualityGates.continuous` controls the same per-feature gates for Continuous Mode. Independent review defaults to `when-sensitive` in both workflows, while audit, check, and try guide default to `manual`. Sensitive or unusually broad work therefore selects independent review automatically; ordinary small work does not. Setting a workflow's independent review to `manual` disables that automatic selection, while an explicit `/audit independent current` remains available. The other conditional modes are `when-sensitive` for audit, `when-behavioral` for check, and `when-user-facing` for try guides. `always` runs the gate for every work item in that workflow.
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
`review.independentExecution` controls how a selected independent-review gate runs. Its default, `automatic`, uses a fresh isolated reviewer child when the active adapter can prove isolation, exact reviewer identity and model, and completion. Otherwise it preserves the request and falls back to the manual handoff. This setting changes execution only; the quality-gate policy still decides whether review is selected. The automatic path spawns a generic child through the current runtime and gives it the installed project-local Audit skill and review contract. It never requires global agent roles or skills. New review requests record requested execution and completed receipts record actual execution. Manual uses `fresh session`; automatic uses `fresh subagent`; an explicit automatic fallback records actual manual with `fresh session`.
|
|
30
|
+
|
|
31
|
+
New projects default to one review packet after all small implementation steps (`workflow.stepReview: "feature"`) with step checkpoint commits disabled (`workflow.checkpointCommits: "disabled"`). This keeps the normal loop reviewable without repeating the full session context after every step. Set `stepReview` to `every` when teaching, pairing closely, or working on a high-risk change. That restores the per-step approval pauses. To fully restore the previous workflow, including optional checkpoint prompts after an approved step, also set `checkpointCommits` to `enabled`. Onboarding presents these pairs as Efficient and Guided choices, but stores only the two low-level settings. They can be changed at any time. Both styles end with an optional read-only code walkthrough. Review cadence controls approval pauses, not whether the user can ask for an explanation of the finished implementation.
|
|
30
32
|
|
|
31
33
|
## Tool-Specific Adapters & Execution Rules
|
|
32
34
|
|
|
@@ -220,4 +220,22 @@
|
|
|
220
220
|
- *Dependencies*: Feature 26, REQ-20260904-001
|
|
221
221
|
- *Scope*: ปรับปรุง `/onboard` (ทั้ง `.agents/` และ `.claude/`) ให้อ่านและยึดถือรายการ `adapters` จาก Manifest (`.nexus/nexus-devflow.json` / `devflow/.state/manifest.json`) เป็นความจริงหลัก (Authoritative Selection) โดยไม่ถามซ้ำและไม่อนุมานผิดพลาด, เพิ่มชุดทดสอบ E2E Scenario ตัวที่ 10 `scripts/e2e/scenarios/adapter-selection.ts`, อัปเดต `agent-bundle.manifest.json` และ `scripts/validate-framework.ts` ให้ครอบคลุม Verification Contracts ใหม่ 100%
|
|
222
222
|
|
|
223
|
+
---
|
|
224
|
+
|
|
225
|
+
## 🔄 Phase 28: Upstream AI Blueprint v1.5.4 – v1.6.0 Synchronization
|
|
226
|
+
|
|
227
|
+
- [x] **28. Sync Upstream v1.5.4 & v1.6.0 (Automatic Independent Review, Post-Implementation Walkthroughs & Hardened Dashboard Engine) (`DISC-20260907-001`, `073-sync-upstream-ai-blueprint-v154-v160`)** `[Size: M]`
|
|
228
|
+
- *Dependencies*: Feature 27, DISC-20260907-001
|
|
229
|
+
- *Scope*: นำเข้าระบบตรวจทานอิสระแบบอัตโนมัติ (`review.independentExecution: "automatic"` พร้อม Isolated Subagent Spawning, Receipts Metadata Schema), ปรับค่าเริ่มต้น Quality Gates เป็น `when-sensitive`, เพิ่ม Post-Implementation Code Walkthrough ใน `implement` / `autopilot`, ปรับปรุงความทนทานของสถานะโครงการและ Dashboard (Sortable Findings, Roadmap Focus, Strict Heading Contracts), อัปเดต Framework Validation และ Unit Tests ผ่าน 100%
|
|
230
|
+
|
|
231
|
+
---
|
|
232
|
+
|
|
233
|
+
## 🛡️ Phase 29: DevFlow Development Files Hygiene & Client Repo Isolation
|
|
234
|
+
|
|
235
|
+
- [x] **29. DevFlow Internal Development Files Hygiene, Git Ignore Hardening, and Client Repo Isolation (`DISC-20260907-002`, `074-devflow-development-files-hygiene-and-client-isolation`)** `[Size: S]`
|
|
236
|
+
- *Dependencies*: DISC-20260907-002
|
|
237
|
+
- *Scope*: ปรับปรุง `.gitignore` ให้ครอบคลุม `devflow/inbox/*/raw/*`, `devflow/analysis/*`, และไฟล์ทดสอบ/แคชชั่วคราว, เสริมระบบคัดกรองใน `packages/create-nexus-devflow/scripts/prepare-template.ts` เพื่อป้องกันไม่ให้ไฟล์วิเคราะห์และข้อมูลดิบหลุดเข้า Starter Template, เพิ่มคู่มือและคำแนะนำใน `onboard/SKILL.md` และ `adopt/SKILL.md` สำหรับโหมด Local-Only (Zero-Visibility) พร้อม automated tests ตรวจสอบความสะอาดของ template ก่อน publish
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
|
|
223
241
|
|
|
@@ -13,16 +13,19 @@
|
|
|
13
13
|
"logicTests": "when-configured",
|
|
14
14
|
"uiEvidence": "when-available"
|
|
15
15
|
},
|
|
16
|
+
"review": {
|
|
17
|
+
"independentExecution": "automatic"
|
|
18
|
+
},
|
|
16
19
|
"qualityGates": {
|
|
17
20
|
"regular": {
|
|
18
21
|
"audit": "manual",
|
|
19
|
-
"independentReview": "
|
|
22
|
+
"independentReview": "when-sensitive",
|
|
20
23
|
"check": "manual",
|
|
21
24
|
"tryGuide": "manual"
|
|
22
25
|
},
|
|
23
26
|
"continuous": {
|
|
24
27
|
"audit": "manual",
|
|
25
|
-
"independentReview": "
|
|
28
|
+
"independentReview": "when-sensitive",
|
|
26
29
|
"check": "manual",
|
|
27
30
|
"tryGuide": "manual"
|
|
28
31
|
}
|
|
@@ -111,6 +111,8 @@ During `/check`:
|
|
|
111
111
|
### ⚡ Review Cadence & Implementation Loop
|
|
112
112
|
- **Efficient Default (`stepReview: "feature"`)**: Presents one comprehensive review packet after all implementation steps of the feature complete, with step checkpoint commits disabled (`checkpointCommits: "disabled"`). This minimizes review fatigue and saves context window tokens.
|
|
113
113
|
- **Guided Review (`stepReview: "every"`)**: Available for high-risk changes, pair programming, or instructional sessions. Pauses for user approval after each small step and offers checkpoint commits (`checkpointCommits: "enabled"`).
|
|
114
|
+
- **Post-Implementation Walkthrough**: After the final review packet, `/implement` always offers an optional read-only walkthrough of the finished code, regardless of review cadence or checkpoint settings.
|
|
115
|
+
- **Independent Review Execution**: Regular and Continuous independent review default to `when-sensitive`, while `review.independentExecution` defaults to `automatic` (spawning an isolated reviewer child when the active adapter supports it). Setting `review.independentExecution: "manual"` produces the fresh-session handoff.
|
|
114
116
|
- **Configuration**: Managed directly in `devflow/config.json`.
|
|
115
117
|
|
|
116
118
|
---
|
package/template/devflow/analysis/REQ-20260903-001-sync-upstream-ai-blueprint/codebase-impact.md
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
# Codebase Impact & Blast Radius Analysis
|
|
2
|
-
|
|
3
|
-
> **Requirement ID**: `REQ-20260903-001-sync-upstream-ai-blueprint`
|
|
4
|
-
> **Date**: 2026-09-03
|
|
5
|
-
> **Complexity Score**: `Low-to-Medium (Controlled Enhancement)`
|
|
6
|
-
> **Risk Level**: `Low (No Breaking Changes, Backward-Compatible)`
|
|
7
|
-
|
|
8
|
-
---
|
|
9
|
-
|
|
10
|
-
## 1. Blast Radius Map (ขอบเขตผลกระทบ)
|
|
11
|
-
|
|
12
|
-
```mermaid
|
|
13
|
-
graph TD
|
|
14
|
-
Upstream["Upstream AI Blueprint v1.5.2"] --> Onboard[".agents & .claude /skills/onboard/SKILL.md"]
|
|
15
|
-
Upstream --> Overview[".agents & .claude /skills/overview/SKILL.md"]
|
|
16
|
-
Upstream --> Context["devflow/context/ai-interaction.md"]
|
|
17
|
-
Upstream --> E2E["scripts/e2e/scenarios/unborn-onboarding.ts"]
|
|
18
|
-
Upstream --> Validator["scripts/validate-framework.ts"]
|
|
19
|
-
|
|
20
|
-
Onboard --> TemplateOnboard["packages/create-nexus-devflow template"]
|
|
21
|
-
Overview --> TemplateOverview["packages/create-nexus-devflow template"]
|
|
22
|
-
Context --> TemplateContext["packages/create-nexus-devflow template"]
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
---
|
|
26
|
-
|
|
27
|
-
## 2. Affected Files & Modules (รายการไฟล์ที่ได้รับผลกระทบ)
|
|
28
|
-
|
|
29
|
-
| File Path | Action | Description |
|
|
30
|
-
| :--- | :--- | :--- |
|
|
31
|
-
| `.agents/skills/onboard/SKILL.md` | `MODIFY` | เพิ่ม Step 0 ตรวจจับ Unborn repository และเสนอกระบวนการ Root scaffold commit |
|
|
32
|
-
| `.claude/skills/onboard/SKILL.md` | `MODIFY` | ปรับปรุงพฤติกรรมให้ตรงกับ `.agents/` |
|
|
33
|
-
| `.agents/skills/overview/SKILL.md` | `MODIFY` | เพิ่มความสามารถ Setup branch baseline finalization (`git merge --ff-only`) |
|
|
34
|
-
| `.claude/skills/overview/SKILL.md` | `MODIFY` | ปรับปรุงพฤติกรรมให้ตรงกับ `.agents/` |
|
|
35
|
-
| `devflow/context/ai-interaction.md` | `MODIFY` | อัปเดตระเบียบการ baseline commit บน setup branch |
|
|
36
|
-
| `scripts/e2e/scenarios/unborn-onboarding.ts` | `NEW` | เพิ่มชุดทดสอบ E2E scenario ตัวที่ 9 สำหรับ unborn repo & fast-forward baseline |
|
|
37
|
-
| `scripts/validate-framework.ts` | `MODIFY` | เพิ่ม verification contracts สำหรับ onboard unborn check และ overview finalization prompt |
|
|
38
|
-
| `packages/create-nexus-devflow/template/` | `SYNC` | ซิงก์ template ผ่าน `npm run check` |
|
|
39
|
-
|
|
40
|
-
---
|
|
41
|
-
|
|
42
|
-
## 3. Risk & Breaking Change Assessment
|
|
43
|
-
|
|
44
|
-
- **Contract Breaking Risk**: `None` — ไม่มีการเปลี่ยนแปลงโครงสร้างคำสั่งหรือโฟลเดอร์หลัก ทุกการเปลี่ยนแปลงเป็นส่วนขยายเพื่อรองรับ Edge Case ที่ยังไม่มี commit
|
|
45
|
-
- **Git Safety Risk**: `Zero Remote Exposure` — มีการล็อกกฎความปลอดภัยไม่ให้มีการ push ไปยัง remote ในระหว่าง Onboard และ Overview อย่างเข้มงวด
|
|
46
|
-
- **Test Coverage Impact**: เพิ่ม Coverage โดยมี scenario ใหม่ `unborn-onboarding.ts` ในชุด E2E Agent Runner
|
package/template/devflow/analysis/REQ-20260904-001-sync-upstream-ai-blueprint/codebase-impact.md
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
# Codebase Impact & Blast Radius Analysis
|
|
2
|
-
|
|
3
|
-
> **Request ID**: `REQ-20260904-001-sync-upstream-ai-blueprint`
|
|
4
|
-
> **Target Run ID**: `072-sync-upstream-ai-blueprint-v153`
|
|
5
|
-
> **Analysis Date**: 2026-09-04
|
|
6
|
-
> **Status**: Completed
|
|
7
|
-
|
|
8
|
-
---
|
|
9
|
-
|
|
10
|
-
## 💥 Blast Radius Overview
|
|
11
|
-
|
|
12
|
-
| Category | Assessment | Details |
|
|
13
|
-
| :--- | :--- | :--- |
|
|
14
|
-
| **Overall Complexity** | `Low-Medium` 🟢 | แก้ไข Skill Markdown contracts, เพิ่ม 1 E2E Scenario, ปรับปรุง Static Validator |
|
|
15
|
-
| **API / Contract Breaking Risk** | `None` 🟢 | รักษา Backward Compatibility 100% (ทั้งแบบมีและไม่มี manifest) |
|
|
16
|
-
| **Affected Areas** | Core Skills, E2E Test Suite, Static Framework Validator | `.agents/`, `.claude/`, `scripts/` |
|
|
17
|
-
| **Regression Risk** | `Low` 🟢 | มี Static Check และ E2E Scenario ครอบคลุม |
|
|
18
|
-
|
|
19
|
-
---
|
|
20
|
-
|
|
21
|
-
## 📂 Affected Files & Modules
|
|
22
|
-
|
|
23
|
-
### 1. Core Skills (`.agents/` & `.claude/`)
|
|
24
|
-
- `.agents/skills/onboard/SKILL.md` (Update Step 1 & Step 6 for manifest-aware adapter reporting)
|
|
25
|
-
- `.claude/skills/onboard/SKILL.md` (Synchronize Step 1 & Step 6 identical contract)
|
|
26
|
-
|
|
27
|
-
### 2. Validation & Verification Guardrails
|
|
28
|
-
- `agent-bundle.manifest.json` (Add contract phrases for onboard: authoritative installer selection, etc.)
|
|
29
|
-
- `scripts/validate-framework.ts` (Ensure verification covers updated onboard contracts)
|
|
30
|
-
|
|
31
|
-
### 3. Test Suites & E2E Scenarios
|
|
32
|
-
- `scripts/e2e/scenarios/adapter-selection.ts` (New E2E Scenario 10 ported from upstream)
|
|
33
|
-
- `packages/create-nexus-devflow/test/update.test.ts` (Verify adapter detection & selection tests)
|
|
34
|
-
|
|
35
|
-
### 4. Documentation & Release Tracking
|
|
36
|
-
- `devflow/build-plan.md` (Record Run 072)
|
|
37
|
-
- `CHANGELOG.md` (Document v1.5.3 sync updates)
|
|
38
|
-
|
|
39
|
-
---
|
|
40
|
-
|
|
41
|
-
## 🧪 Verification Strategy
|
|
42
|
-
|
|
43
|
-
1. **Static Validation**: `npm run check:static` (ต้องผ่าน 100% ไม่เกิน context budget)
|
|
44
|
-
2. **Type Checking**: `npm run typecheck`
|
|
45
|
-
3. **Unit / Package Tests**: `npm test`
|
|
46
|
-
4. **End-to-End Test Suite**: `npm run check`
|
|
47
|
-
5. **Upstream Drift Radar**: `npx tsx scripts/check-upstream-drift.ts` (ยืนยัน 100% Skills & Contract Parity)
|
package/template/devflow/inbox/REQ-20260903-001-sync-upstream-ai-blueprint/clarifications.md
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
# Socratic Clarification Checklist (REQ-20260903-001)
|
|
2
|
-
|
|
3
|
-
> **Requirement ID**: `REQ-20260903-001-sync-upstream-ai-blueprint`
|
|
4
|
-
> **Audience**: System Analyst, Tech Lead, Framework Maintainer
|
|
5
|
-
> **Status**: `Ready for Review`
|
|
6
|
-
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
## 🔍 Socratic Review & Alignment Questions
|
|
10
|
-
|
|
11
|
-
### 1. Root Scaffold Commit Convention
|
|
12
|
-
- [x] **Question**: รูปแบบ Commit Message สำหรับ Scaffold แรกใน Unborn Repo ควรใช้รูปแบบใด?
|
|
13
|
-
- **Proposed Decision**: `chore: scaffold application` (มาตรฐานเดียวกับ Upstream AI Blueprint และ Conventional Commits)
|
|
14
|
-
- **Safety Check**: ต้องไม่รวมโฟลเดอร์ `devflow/`, `AGENTS.md`, `CLAUDE.md`, `.agents/`, `.claude/` เข้าไปใน Root Commit นี้เด็ดขาด
|
|
15
|
-
|
|
16
|
-
### 2. Setup-Branch Fast-Forward Merge Rule
|
|
17
|
-
- [x] **Question**: ใน `/overview` หากผู้ใช้วางแผนบน dedicated branch (เช่น `feature/devflow-plans`) การรวมกลับเข้า `main` ต้องทำอย่างไร?
|
|
18
|
-
- **Proposed Decision**: บังคับใช้ `git merge --ff-only` เท่านั้นเพื่อรักษา Linear Git History หากมีการแตก branch ออกไปแบบ non-fast-forward จะต้องหยุดและรายงาน mismatch ทันที
|
|
19
|
-
- **Safety Check**: ยืนยันการลบ local setup branch หลัง merge สำเร็จ เพื่อไม่ให้มี branch ขยะค้าง
|
|
20
|
-
|
|
21
|
-
### 3. Local-Only & Remote Push Guard
|
|
22
|
-
- [x] **Question**: การทำ Finalize Baseline มีโอกาสหลุดรัน `git push` หรือไม่?
|
|
23
|
-
- **Proposed Decision**: ล็อกกฎชัดเจนใน `SKILL.md` ว่าทุกคำสั่งใน Onboard และ Overview ทำงานในระดับ Local Git เท่านั้น (No Push)
|
|
24
|
-
|
|
25
|
-
---
|
|
26
|
-
|
|
27
|
-
## 📋 Actionable Checklist for Implementation
|
|
28
|
-
|
|
29
|
-
- [ ] ปรับปรุง `.agents/skills/onboard/SKILL.md` และ `.claude/skills/onboard/SKILL.md` เพื่อตรวจจับ Unborn `HEAD` และเสนอ Scaffold Root Commit
|
|
30
|
-
- [ ] ปรับปรุง `.agents/skills/overview/SKILL.md` และ `.claude/skills/overview/SKILL.md` สำหรับ Setup-Branch Baseline Finalization (`git merge --ff-only`)
|
|
31
|
-
- [ ] อัปเดต `devflow/context/ai-interaction.md` ให้ระบุสิทธิการทำ Baseline Finalization บน Setup Branch
|
|
32
|
-
- [ ] พอร์ต E2E Scenario `scripts/e2e/scenarios/unborn-onboarding.ts` ให้เข้ากับโครงสร้างและชื่อคำสั่งของ Nexus-DevFlow
|
|
33
|
-
- [ ] เพิ่ม static verification contract ใน `scripts/validate-framework.ts`
|
|
34
|
-
- [ ] รันการตรวจสอบความถูกต้องของระบบครบทุก Lane (`npm run check:static`, `npm test`, `npm run check`)
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
# Business & Technical Requirement Specification (REQ-20260903-001)
|
|
2
|
-
|
|
3
|
-
> **Requirement ID**: `REQ-20260903-001-sync-upstream-ai-blueprint`
|
|
4
|
-
> **Source**: Upstream AI Blueprint v1.5.2 (`5b46859`)
|
|
5
|
-
> **Status**: `Parsed & Normalized`
|
|
6
|
-
> **Target Release**: Nexus-DevFlow v2.12.1 / Feature `071`
|
|
7
|
-
|
|
8
|
-
---
|
|
9
|
-
|
|
10
|
-
## 1. Executive Summary (ภาพรวมผู้บริหาร)
|
|
11
|
-
|
|
12
|
-
การอัปเดตเพื่อซิงก์ความสามารถและมาตรฐานความปลอดภัย Git จาก Upstream AI Blueprint v1.5.2 เข้าสู่ Nexus-DevFlow:
|
|
13
|
-
1. **การจัดการ Unborn Repository ใน `/onboard`**: รองรับกรณีที่โปรเจกต์เพิ่งรัน `git init` แต่ยังไม่มี First Commit (Unborn `HEAD`) โดย `/onboard` จะตรวจจับอัตโนมัติ เสนอสร้าง Reviewed Scaffold Initial Commit และตั้ง Default Branch (`main`) ให้พร้อมใช้งานทันทีโดยไม่ให้ผู้ใช้ต้องออกจาก IDE ไปพิมพ์คำสั่ง Git เอง
|
|
14
|
-
2. **Setup-Branch Baseline Finalization ใน `/overview`**: รองรับกรณีการ Onboard และวางแผนบน Dedicated Setup Branch (เช่น `feature/devflow-plans`) โดยเมื่ออนุมัติ Baseline Commit จะทำการ commit, fast-forward merge กลับเข้าสู่ `main`, สลับ branch และลบ setup branch ให้เรียบร้อยแบบ Local-Only
|
|
15
|
-
3. **Dedicated E2E Automated Scenario (`unborn-onboarding.ts`)**: ชุดทดสอบ Agentic E2E ตรวจสอบพฤติกรรมของ AI Agent ตั้งแต่ Unborn Repo -> Onboarding -> Baseline Fast-Forward
|
|
16
|
-
|
|
17
|
-
---
|
|
18
|
-
|
|
19
|
-
## 2. Target Persona & User Stories
|
|
20
|
-
|
|
21
|
-
| Persona | Problem Statement | Desired Outcome |
|
|
22
|
-
| :--- | :--- | :--- |
|
|
23
|
-
| **New Project Developer** | Scaffold โปรเจกต์ใหม่และรัน `git init` แต่ยังไม่ได้ commit พอรัน `/onboard` AI มัก error หรือสับสนเรื่อง branch | `/onboard` ตรวจจับสถานะ unborn repository และช่วยสร้าง scaffold commit แรกให้อัตโนมัติหลังกดอนุมัติ |
|
|
24
|
-
| **Branch-Isolated Developer** | ต้องการวางแผน DevFlow บน setup branch ชั่วคราวก่อนเริ่มฟีเจอร์แรก | `/overview` อนุมัติ Baseline แล้วรวมกลับเข้า `main` แบบ Fast-Forward และลบ branch ชั่วคราวให้อัตโนมัติ |
|
|
25
|
-
| **DevFlow Maintainer** | ต้องการให้ Nexus-DevFlow มี Feature & Safety Parity 100% กับ Upstream AI Blueprint | มีชุดทดสอบ E2E scenario และ static contracts รองรับ |
|
|
26
|
-
|
|
27
|
-
---
|
|
28
|
-
|
|
29
|
-
## 3. Functional Requirements (FR)
|
|
30
|
-
|
|
31
|
-
### FR-1: Unborn Git Pre-flight & Scaffold Initial Commit (`/onboard`)
|
|
32
|
-
- **FR-1.1**: เมื่อเริ่มทำงาน `/onboard` (Step 0) ต้องตรวจสอบ `git rev-parse --is-inside-work-tree` และ `git rev-parse --verify HEAD`
|
|
33
|
-
- **FR-1.2**: หากไม่มี `HEAD` (Unborn repository):
|
|
34
|
-
- กรอง Candidate Files เฉพาะไฟล์โครงสร้างของ Application (ยกเว้น workflow files เช่น `AGENTS.md`, `CLAUDE.md`, `.agents/`, `.claude/`, `devflow/`)
|
|
35
|
-
- ค้นหา default branch (จาก `main`, `master`, หรือ Git default)
|
|
36
|
-
- ถามยืนยัน 1 ครั้ง: `Create the initial scaffold commit and continue Onboard? (Recommended)`
|
|
37
|
-
- เมื่อได้รับอนุมัติ สร้าง commit `chore: scaffold application` บน default branch และสลับกลับมา setup branch (ถ้ามี) เพื่อ onboard ต่อทันที
|
|
38
|
-
|
|
39
|
-
### FR-2: Branch-Aware Baseline Finalization (`/overview`)
|
|
40
|
-
- **FR-2.1**: ใน `/overview` อนุญาตให้ทำงานบน Default Branch หรือ Dedicated Setup Branch ที่แตกมาจาก Tip ของ Default Branch
|
|
41
|
-
- **FR-2.2**: หากรันบน Unborn Repo ให้แจ้งให้ไปรัน `/onboard` ก่อน (ไม่สร้าง root commit ใน overview)
|
|
42
|
-
- **FR-2.3**: ปรับ Prompt ข้อความยืนยันเป็น: `Finalize the DevFlow baseline locally? (Recommended)`
|
|
43
|
-
- **FR-2.4**: รวม metadata installer `devflow/.state/manifest.json` เข้า Baseline Commit โดยยกเว้น transient state `run.json`
|
|
44
|
-
- **FR-2.5**: หากรันบน Setup Branch เมื่ออนุมัติแล้ว จะทำการ:
|
|
45
|
-
1. Commit `chore: establish DevFlow project baseline` บน setup branch
|
|
46
|
-
2. สลับกลับไป default branch (`git checkout main`)
|
|
47
|
-
3. รัน `git merge --ff-only <setup-branch>`
|
|
48
|
-
4. ลบ setup branch ในเครื่อง (`git branch -d <setup-branch>`)
|
|
49
|
-
5. อยู่บนสถานะ clean working tree พร้อมเริ่ม `/feature`
|
|
50
|
-
|
|
51
|
-
### FR-3: E2E Test Suite Extension (`unborn-onboarding.ts`)
|
|
52
|
-
- **FR-3.1**: เพิ่มไฟล์ Scenario `scripts/e2e/scenarios/unborn-onboarding.ts`
|
|
53
|
-
- **FR-3.2**: ทดสอบ Full Flow ใน Sandbox: `git init` -> setup branch -> overlay DevFlow -> `/onboard` -> `/overview` -> fast-forward `main`
|
|
54
|
-
|
|
55
|
-
---
|
|
56
|
-
|
|
57
|
-
## 4. Non-Functional Requirements (NFR)
|
|
58
|
-
|
|
59
|
-
1. **Security & Local-Only Guarantee**:
|
|
60
|
-
- ห้ามรัน `git push` ในทุกกรณีของการทำ Baseline Finalization
|
|
61
|
-
- ห้ามรวม Application Source Code ปะปนเข้ากับ Baseline Commit
|
|
62
|
-
- ป้องกัน Secret / Token หลุดเข้า Root Commit โดยตรวจสอบ `.gitignore`
|
|
63
|
-
2. **Token & Prompt Efficiency**:
|
|
64
|
-
- การปรับแต่งคำอธิบายและข้อความใน `SKILL.md` ทั้ง `.agents/` และ `.claude/` ต้องคงความกระชับ ไม่เกินงบประมาณตัวอักษร
|
|
65
|
-
3. **Adapter Parity**:
|
|
66
|
-
- ทั้ง 5 Adapters (Google Antigravity, Claude Code, OpenAI Codex, GitHub Copilot, OpenCode) ต้องได้รับพฤติกรรมที่เท่าเทียมกัน
|
package/template/devflow/inbox/REQ-20260903-001-sync-upstream-ai-blueprint/raw/upstream-v152-diff.md
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
# Upstream AI Blueprint v1.5.2 Changes Summary
|
|
2
|
-
|
|
3
|
-
Commit: 5b468599890a6d59a1570e343e6241db5ffd0ae9
|
|
4
|
-
Author: Brad Traversy <traversymedia@gmail.com>
|
|
5
|
-
Date: Thu Sep 3 08:30:38 2026 -0400
|
|
6
|
-
Message: fix: handle repositories without an initial commit
|
|
7
|
-
|
|
8
|
-
## Modified Files:
|
|
9
|
-
- `.agents/skills/onboard/SKILL.md` (+43, -1)
|
|
10
|
-
- `.agents/skills/overview/SKILL.md` (+41, -21)
|
|
11
|
-
- `.claude/skills/onboard/SKILL.md` (+43, -1)
|
|
12
|
-
- `.claude/skills/overview/SKILL.md` (+41, -21)
|
|
13
|
-
- `blueprint/context/ai-interaction.md` (+4, -2)
|
|
14
|
-
- `packages/create-ai-blueprint/package.json` (+1, -1)
|
|
15
|
-
- `scripts/e2e/scenarios/unborn-onboarding.ts` (+85)
|
|
16
|
-
- `scripts/validate-blueprint.ts` (+23, -5)
|
package/template/devflow/inbox/REQ-20260904-001-sync-upstream-ai-blueprint/clarifications.md
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
# Socratic Gap Detection & Clarification Checklist
|
|
2
|
-
|
|
3
|
-
> **Request ID**: `REQ-20260904-001-sync-upstream-ai-blueprint`
|
|
4
|
-
> **Source**: Upstream AI Blueprint Synchronization Analysis
|
|
5
|
-
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
## 🔍 Socratic Review & Technical Clarifications
|
|
9
|
-
|
|
10
|
-
### 1. ตำแหน่งไฟล์ Manifest ใน Nexus-DevFlow
|
|
11
|
-
- **ประเด็น**: ใน Upstream `ai-blueprint` ใช้ไฟล์ `blueprint/.state/manifest.json` เป็นหลัก ขณะที่ Nexus-DevFlow มีทั้ง `.nexus/nexus-devflow.json` (จากตัวติดตั้ง package) และ `devflow/.state/manifest.json`
|
|
12
|
-
- **แนวทาง**: ในคำสั่ง `/onboard` ควรอ้างอิงทั้ง `devflow/.state/manifest.json` และ `.nexus/nexus-devflow.json` โดยให้ความสำคัญกับไฟล์ที่มีอยู่จริง เพื่อความยืดหยุ่นสูงสุด
|
|
13
|
-
|
|
14
|
-
### 2. รายชื่อเครื่องมือที่รองรับใน DevFlow vs Upstream
|
|
15
|
-
- **ประเด็น**: Upstream รองรับ 4 ตัวหลัก (`codex`, `claude`, `copilot`, `opencode`) ขณะที่ Nexus-DevFlow มี First-Class Support เพิ่มเติมสำหรับ **Google Antigravity** (`antigravity` ซึ่งแชร์โครงสร้าง `.agents/`)
|
|
16
|
-
- **แนวทาง**: ข้อความใน Step 6 ของ Onboard ต้องระบุชื่อเครื่องมือให้ครอบคลุม: "Codex, Antigravity, GitHub Copilot, และ OpenCode"
|
|
17
|
-
|
|
18
|
-
### 3. สถานะ Version Tagging & Roadmap
|
|
19
|
-
- **ประเด็น**: Upstream ออก release 1.5.3 สำหรับการแก้นี้ สำหรับ Nexus-DevFlow จะจัดเป็น Run `072` มุ่งสู่ Minor/Patch release ถัดไป (v2.12.2)
|
|
20
|
-
- **แนวทาง**: กำหนดหมายเลข Run `072-sync-upstream-ai-blueprint-v153` และบันทึกลงใน Build Plan
|
|
21
|
-
|
|
22
|
-
---
|
|
23
|
-
|
|
24
|
-
## ✅ Readiness Checklist for Implementation
|
|
25
|
-
- [x] ตรวจสอบ Diff ละเอียดจาก Upstream ครบถ้วน 100%
|
|
26
|
-
- [x] วิเคราะห์จุดแตกต่างระหว่างสถาปัตยกรรม DevFlow และ AI Blueprint
|
|
27
|
-
- [x] กำหนดขอบเขต E2E Scenario และ Static Contract เรียบร้อย
|
|
28
|
-
- [ ] รอเจ้านายอนุมัติเพื่อเริ่มกระบวนการ `/feature` หรือ `/implement`
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
# Requirement Specification: ซิงก์ส่วนขยาย Upstream AI Blueprint (v1.5.3 / Latest Commits)
|
|
2
|
-
|
|
3
|
-
> **Request ID**: `REQ-20260904-001-sync-upstream-ai-blueprint`
|
|
4
|
-
> **Source**: Upstream Repository `aiblueprinthq/ai-blueprint` (Commits `b4eb32e` .. `2b5f334`)
|
|
5
|
-
> **Ingested Date**: 2026-09-04
|
|
6
|
-
> **Target Run ID**: `072` (Feature)
|
|
7
|
-
> **Language**: Thai (`th`) Default
|
|
8
|
-
|
|
9
|
-
---
|
|
10
|
-
|
|
11
|
-
## 📌 Executive Summary
|
|
12
|
-
|
|
13
|
-
สกัดและวิเคราะห์การเปลี่ยนแปลงล่าสุดจากต้นน้ำ (Upstream `ai-blueprint`) หลังการซิงก์รอบ v1.5.2 (Run `071`) โดยพบการอัปเดตสำคัญระดับสถาปัตยกรรมและกระบวนการ Onboarding ใน commit `b4eb32e` (fix: honor selected adapters) พร้อมทั้งการปรับปรุงเอกสารและ Diagram ใน commit `ed9c19c`, `a231195`, `2b5f334`
|
|
14
|
-
|
|
15
|
-
หัวใจหลักของการอัปเดตครั้งนี้คือการทำให้ขั้นตอน `/onboard` มีความฉลาดในการอ่านและยึดถือรายการ Adapter จากไฟล์ Manifest (`.nexus/nexus-devflow.json` หรือ `devflow/.state/manifest.json`) เป็นความจริงหลัก (Authoritative Source of Truth) เพื่อแก้ปัญหาที่ Onboard เคยเดาเอาเองว่าการมีโฟลเดอร์ `.agents/` แปลว่าผู้ใช้เลือกเครื่องมือทุกตัว (Codex, Antigravity, GitHub Copilot, OpenCode) และถามผู้ใช้ซ้ำซ้อน
|
|
16
|
-
|
|
17
|
-
---
|
|
18
|
-
|
|
19
|
-
## 👥 Target Personas & User Stories
|
|
20
|
-
|
|
21
|
-
1. **ผู้ใช้ใหม่ที่ติดตั้ง DevFlow ด้วย Interactive Installer**:
|
|
22
|
-
- *As a developer* ติดตั้ง DevFlow ด้วยคำสั่ง `npx @jakkrichm/create-nexus-devflow` และเลือกเฉพาะ Claude Code และ Antigravity/Codex
|
|
23
|
-
- *I want* เมื่อรันคำสั่ง `/onboard` ให้ระบบจำการเลือกของฉันจาก Manifest โดยตรง
|
|
24
|
-
- *So that* AI จะไม่ถามซ้ำ และไม่ทึกทักไปเองว่าเราเลือก GitHub Copilot หรือ OpenCode เพิ่มขึ้นมา
|
|
25
|
-
|
|
26
|
-
2. **ผู้ใช้เดิมที่รัน Onboard โดยไม่มี Manifest (Legacy / Manual Copy)**:
|
|
27
|
-
- *As a developer* ที่คัดลอกไฟล์มาเองหรือไม่มี Manifest
|
|
28
|
-
- *I want* AI อธิบายชัดเจนว่าโครงสร้าง `.agents/` ใช้ร่วมกันได้หลายเครื่องมือ แล้วถามยืนยันว่าใช้เครื่องมือใดบ้าง
|
|
29
|
-
- *So that* รายงาน Onboarding ถูกต้องตรงกับสิ่งที่ใช้งานจริง
|
|
30
|
-
|
|
31
|
-
3. **Core Framework Maintainer**:
|
|
32
|
-
- *As a maintainer* ของ Nexus-DevFlow
|
|
33
|
-
- *I want* ระบบ E2E Test มี Scenario ตัวที่ 10 (`adapter-selection.ts`) และ Static Contract Validator ป้องกัน Regression
|
|
34
|
-
- *So that* ฟีเจอร์ Onboard Manifest Preservation ทำงานถูกต้อง 100% ตามมาตรฐาน Upstream
|
|
35
|
-
|
|
36
|
-
---
|
|
37
|
-
|
|
38
|
-
## ⚙️ Functional Requirements (FR)
|
|
39
|
-
|
|
40
|
-
- **FR-1: Manifest-Aware Adapter Inspection ใน `/onboard` (Step 1)**
|
|
41
|
-
- เพิ่มการอ่านไฟล์ `devflow/.state/manifest.json` หรือ `.nexus/nexus-devflow.json` ในขั้นตอน Preflight/Inspection เพื่อดึง `adapters` list
|
|
42
|
-
- **FR-2: Authoritative Selection & No Repeated Prompts ใน `/onboard` (Step 6)**
|
|
43
|
-
- เมื่อพบ Manifest ที่ถูกต้อง ให้ยึด `adapters` ใน Manifest เป็นหลัก ห้ามถามผู้ใช้ซ้ำ
|
|
44
|
-
- อธิบายว่าการมีอยู่ของ `.agents/` ไม่ได้หมายความว่าเลือกเครื่องมือทุกตัว
|
|
45
|
-
- หากไม่มี Manifest ให้ถามอย่างชัดเจนโดยไม่เดา
|
|
46
|
-
- **FR-3: Dual-Adapter Contract Synchronicity**
|
|
47
|
-
- ปรับปรุงเนื้อหาใน `.agents/skills/onboard/SKILL.md` และ `.claude/skills/onboard/SKILL.md` ให้ตรงกัน 100%
|
|
48
|
-
- **FR-4: Automated E2E Scenario Integration**
|
|
49
|
-
- เพิ่มชุดทดสอบ E2E Scenario `scripts/e2e/scenarios/adapter-selection.ts` ตรวจสอบพฤติกรรม Onboard กับ Manifest
|
|
50
|
-
- **FR-5: Static Verification Guardrails**
|
|
51
|
-
- อัปเดต `agent-bundle.manifest.json` และ `scripts/validate-framework.ts` ให้ตรวจจับ Contract ใหม่ของ Onboard
|
|
52
|
-
|
|
53
|
-
---
|
|
54
|
-
|
|
55
|
-
## 🛡️ Non-Functional Requirements (NFR)
|
|
56
|
-
|
|
57
|
-
- **Context Budget**: Skill Description และ Instruction ต้องไม่เกินขีดจำกัด Context Budget (< 400 ตัวอักษรต่อคำอธิบาย, ไม่ทำให้ไฟล์เกิน 20KB)
|
|
58
|
-
- **Zero Breaking Change**: รักษาความเข้ากันได้กับโปรเจกต์เดิมที่มีหรือไม่มี Manifest
|
|
59
|
-
- **Cross-Tool Parity**: รองรับ Codex, Antigravity, Claude Code, GitHub Copilot และ OpenCode
|
package/template/devflow/inbox/REQ-20260904-001-sync-upstream-ai-blueprint/raw/upstream-diff.txt
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
# Upstream AI Blueprint Synchronization Request (v1.5.2 -> v1.5.3 / HEAD)
|
|
2
|
-
|
|
3
|
-
## Raw Upstream Commits
|
|
4
|
-
- 2b5f334 docs: refresh workflow diagram asset
|
|
5
|
-
- a231195 docs: simplify workflow diagram
|
|
6
|
-
- ed9c19c docs: position AI Blueprint as a workflow framework
|
|
7
|
-
- b4eb32e fix: honor selected adapters
|
|
8
|
-
- 5b46859 fix: handle repositories without an initial commit (synced in 071)
|
|
9
|
-
|
|
10
|
-
## Core Upstream Changes Diff Stat
|
|
11
|
-
.agents/skills/onboard/SKILL.md | 23 ++++----
|
|
12
|
-
.claude/skills/onboard/SKILL.md | 23 ++++----
|
|
13
|
-
CHANGELOG.md | 12 +++++
|
|
14
|
-
README.md | 20 +++----
|
|
15
|
-
assets/ai-blueprint-workflow-v2.png | Bin 0 -> 107098 bytes
|
|
16
|
-
assets/ai-blueprint-workflow.png | Bin 216758 -> 0 bytes
|
|
17
|
-
packages/create-ai-blueprint/README.md | 5 +-
|
|
18
|
-
packages/create-ai-blueprint/bin/create-ai-blueprint.ts | 4 +-
|
|
19
|
-
packages/create-ai-blueprint/package.json | 2 +-
|
|
20
|
-
packages/create-ai-blueprint/test/update.test.ts | 6 +--
|
|
21
|
-
scripts/e2e/scenarios/adapter-selection.ts | 59 +++++++++++++++++++++
|
|
22
|
-
scripts/validate-blueprint.ts | 9 +++-
|
|
23
|
-
12 files changed, 126 insertions(+), 37 deletions(-)
|