@jakkrichm/create-nexus-devflow 2.16.4 → 2.17.0
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/bin/create-nexus-devflow.d.ts +1 -1
- package/dist/bin/create-nexus-devflow.js +41 -2
- package/dist/bin/create-nexus-devflow.js.map +1 -1
- package/dist/lib/project-status-engine.d.ts +11 -3
- package/dist/lib/project-status-engine.js +99 -17
- package/dist/lib/project-status-engine.js.map +1 -1
- package/dist/lib/review.d.ts +1 -0
- package/dist/lib/review.js +58 -3
- package/dist/lib/review.js.map +1 -1
- package/dist/lib/skill-registry-engine.js +1 -1
- package/dist/lib/skill-registry-engine.js.map +1 -1
- package/dist/lib/status.d.ts +3 -3
- package/dist/lib/status.js +2 -2
- package/dist/lib/status.js.map +1 -1
- package/dist/lib/tooling/commands/migrate-structure.d.ts +8 -0
- package/dist/lib/tooling/commands/migrate-structure.js +197 -0
- package/dist/lib/tooling/commands/migrate-structure.js.map +1 -0
- package/dist/lib/tooling/commands/summarize-run-status.js +3 -1
- package/dist/lib/tooling/commands/summarize-run-status.js.map +1 -1
- package/dist/lib/tooling/registry.js +2 -0
- package/dist/lib/tooling/registry.js.map +1 -1
- package/dist/lib/update.d.ts +29 -3
- package/dist/lib/update.js +76 -0
- package/dist/lib/update.js.map +1 -1
- package/dist/lib/workspace-paths.d.ts +15 -0
- package/dist/lib/workspace-paths.js +61 -0
- package/dist/lib/workspace-paths.js.map +1 -0
- package/dist/scripts/prepare-template.js +75 -15
- package/dist/scripts/prepare-template.js.map +1 -1
- package/package.json +1 -1
- package/template/.agents/skills/analyze/SKILL.md +21 -21
- package/template/.agents/skills/audit/SKILL.md +36 -18
- package/template/.agents/skills/audit/reference/independent-review.md +58 -2
- package/template/.agents/skills/brainstorm/SKILL.md +1 -1
- package/template/.agents/skills/complete/SKILL.md +23 -1
- package/template/.agents/skills/complete/reference/completion-recovery.md +248 -0
- package/template/.agents/skills/continuous/SKILL.md +156 -82
- package/template/.agents/skills/feature/SKILL.md +6 -0
- package/template/.agents/skills/feature/reference/build-history.md +79 -0
- package/template/.agents/skills/idea/SKILL.md +14 -14
- package/template/.agents/skills/rollback/SKILL.md +23 -10
- package/template/.claude/skills/analyze/SKILL.md +21 -21
- package/template/.claude/skills/audit/SKILL.md +33 -16
- package/template/.claude/skills/audit/reference/independent-review.md +58 -2
- package/template/.claude/skills/brainstorm/SKILL.md +1 -1
- package/template/.claude/skills/complete/SKILL.md +23 -1
- package/template/.claude/skills/complete/reference/completion-recovery.md +248 -0
- package/template/.claude/skills/continuous/SKILL.md +156 -82
- package/template/.claude/skills/feature/SKILL.md +6 -0
- package/template/.claude/skills/feature/reference/build-history.md +79 -0
- package/template/.claude/skills/idea/SKILL.md +14 -14
- package/template/.claude/skills/rollback/SKILL.md +23 -10
- package/template/AGENTS.md +11 -10
- package/template/devflow/{context → 00-context}/ai-interaction.md +1 -1
- package/template/devflow/{build-plan.md → 30-planning/build-plan.md} +24 -0
- package/template/devflow/40-tasks/.gitkeep +0 -0
- package/template/devflow/40-tasks/README.md +11 -0
- package/template/devflow/60-docs/migration-guide-decade-numbered.md +93 -0
- /package/template/devflow/{context → 00-context}/coding-standards.md +0 -0
- /package/template/devflow/{context → 00-context}/glossary.md +0 -0
- /package/template/devflow/{context → 00-context}/project-overview.md +0 -0
- /package/template/devflow/{ideas.md → 10-ideation/ideas.md} +0 -0
- /package/template/devflow/{reference → 10-ideation/reference}/build-plan-template.md +0 -0
- /package/template/devflow/{reference → 10-ideation/reference}/feature-spec-template.md +0 -0
- /package/template/devflow/{reference → 10-ideation/reference}/mockup.html +0 -0
- /package/template/devflow/{reference → 10-ideation/reference}/project-overview-template.md +0 -0
- /package/template/devflow/{reference → 10-ideation/reference}/project-plan-template.md +0 -0
- /package/template/devflow/{reference → 10-ideation/reference}/running-id-contract.md +0 -0
- /package/template/devflow/{decisions → 20-discovery/decisions}/.gitkeep +0 -0
- /package/template/devflow/{decisions → 20-discovery/decisions}/README.md +0 -0
- /package/template/devflow/{discoveries → 20-discovery/discoveries}/.gitkeep +0 -0
- /package/template/devflow/{project-plan.md → 30-planning/project-plan.md} +0 -0
- /package/template/devflow/{history → 50-history}/HISTORY.md +0 -0
- /package/template/devflow/{history → 50-history}/features/README.md +0 -0
- /package/template/devflow/{history → 50-history}/fixes/README.md +0 -0
- /package/template/devflow/{history → 50-history}/rollbacks/README.md +0 -0
- /package/template/devflow/{docs → 60-docs}/USAGE.md +0 -0
- /package/template/devflow/{docs → 60-docs}/diagrams/nexus-devflow-architecture.html +0 -0
- /package/template/devflow/{docs → 60-docs}/diagrams/nexus-devflow-architecture.json +0 -0
- /package/template/devflow/{docs → 60-docs}/diagrams/nexus-devflow-lifecycle.html +0 -0
- /package/template/devflow/{docs → 60-docs}/diagrams/nexus-devflow-lifecycle.json +0 -0
- /package/template/devflow/{docs → 60-docs}/examples/living-spec/adr.example.md +0 -0
- /package/template/devflow/{docs → 60-docs}/examples/living-spec/current-feature.example.md +0 -0
- /package/template/devflow/{docs → 60-docs}/examples/living-spec/discovery.example.md +0 -0
- /package/template/devflow/{docs → 60-docs}/examples/living-spec/ideas.example.md +0 -0
- /package/template/devflow/{docs → 60-docs}/governance-rules.md +0 -0
- /package/template/devflow/{docs → 60-docs}/manual-review-workflow-spec.md +0 -0
- /package/template/devflow/{docs → 60-docs}/markdown-metadata-contract.md +0 -0
- /package/template/devflow/{docs → 60-docs}/quickstart.md +0 -0
- /package/template/devflow/{docs → 60-docs}/release-process.md +0 -0
- /package/template/devflow/{docs → 60-docs}/skill-selection-policy.md +0 -0
- /package/template/devflow/{docs → 60-docs}/workflow-surface-map.md +0 -0
|
@@ -66,6 +66,41 @@ async function copyEntry(entry, inventory) {
|
|
|
66
66
|
!normalized.endsWith("README.md")) {
|
|
67
67
|
return false;
|
|
68
68
|
}
|
|
69
|
+
if (normalized.startsWith("devflow/00-context/") &&
|
|
70
|
+
normalized !== "devflow/00-context" &&
|
|
71
|
+
normalized !== "devflow/00-context/project-overview.md" &&
|
|
72
|
+
normalized !== "devflow/00-context/coding-standards.md" &&
|
|
73
|
+
normalized !== "devflow/00-context/ai-interaction.md" &&
|
|
74
|
+
normalized !== "devflow/00-context/glossary.md") {
|
|
75
|
+
return false;
|
|
76
|
+
}
|
|
77
|
+
if (normalized.startsWith("devflow/40-tasks/") &&
|
|
78
|
+
!normalized.endsWith(".gitkeep") &&
|
|
79
|
+
!normalized.endsWith("README.md")) {
|
|
80
|
+
return false;
|
|
81
|
+
}
|
|
82
|
+
if (normalized.startsWith("devflow/50-history/features/") &&
|
|
83
|
+
!normalized.endsWith("README.md")) {
|
|
84
|
+
return false;
|
|
85
|
+
}
|
|
86
|
+
if (normalized.startsWith("devflow/50-history/fixes/") &&
|
|
87
|
+
!normalized.endsWith("README.md")) {
|
|
88
|
+
return false;
|
|
89
|
+
}
|
|
90
|
+
if (normalized.startsWith("devflow/50-history/rollbacks/") &&
|
|
91
|
+
!normalized.endsWith("README.md")) {
|
|
92
|
+
return false;
|
|
93
|
+
}
|
|
94
|
+
if (normalized.startsWith("devflow/20-discovery/discoveries/") &&
|
|
95
|
+
!normalized.endsWith(".gitkeep") &&
|
|
96
|
+
!normalized.endsWith("README.md")) {
|
|
97
|
+
return false;
|
|
98
|
+
}
|
|
99
|
+
if (normalized.startsWith("devflow/20-discovery/decisions/") &&
|
|
100
|
+
!normalized.endsWith(".gitkeep") &&
|
|
101
|
+
!normalized.endsWith("README.md")) {
|
|
102
|
+
return false;
|
|
103
|
+
}
|
|
69
104
|
if (matchesPrefix(normalized, "devflow/inbox") ||
|
|
70
105
|
matchesPrefix(normalized, "devflow/analysis") ||
|
|
71
106
|
matchesPrefix(normalized, "devflow/scratch") ||
|
|
@@ -77,6 +112,17 @@ async function copyEntry(entry, inventory) {
|
|
|
77
112
|
matchesPrefix(normalized, "devflow/reports") ||
|
|
78
113
|
matchesPrefix(normalized, "devflow/docs/playbooks") ||
|
|
79
114
|
matchesPrefix(normalized, "devflow/research") ||
|
|
115
|
+
matchesPrefix(normalized, "devflow/10-ideation/inbox") ||
|
|
116
|
+
matchesPrefix(normalized, "devflow/10-ideation/scratch") ||
|
|
117
|
+
matchesPrefix(normalized, "devflow/10-ideation/brainstorm") ||
|
|
118
|
+
matchesPrefix(normalized, "devflow/10-ideation/brainstorms") ||
|
|
119
|
+
matchesPrefix(normalized, "devflow/20-discovery/analysis") ||
|
|
120
|
+
matchesPrefix(normalized, "devflow/20-discovery/reports") ||
|
|
121
|
+
matchesPrefix(normalized, "devflow/20-discovery/research") ||
|
|
122
|
+
matchesPrefix(normalized, "devflow/20-discovery/scratch") ||
|
|
123
|
+
matchesPrefix(normalized, "devflow/20-discovery/brainstorm") ||
|
|
124
|
+
matchesPrefix(normalized, "devflow/20-discovery/brainstorms") ||
|
|
125
|
+
matchesPrefix(normalized, "devflow/60-docs/playbooks") ||
|
|
80
126
|
matchesPrefix(normalized, "prototypes") ||
|
|
81
127
|
matchesPrefix(normalized, "evals") ||
|
|
82
128
|
matchesPrefix(normalized, ".nexus")) {
|
|
@@ -100,18 +146,26 @@ async function copyEntry(entry, inventory) {
|
|
|
100
146
|
}
|
|
101
147
|
}
|
|
102
148
|
async function ensureEmptyDirectories() {
|
|
103
|
-
const
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
149
|
+
const dirs = [
|
|
150
|
+
path.join(templateRoot, "devflow", "00-context"),
|
|
151
|
+
path.join(templateRoot, "devflow", "10-ideation"),
|
|
152
|
+
path.join(templateRoot, "devflow", "20-discovery"),
|
|
153
|
+
path.join(templateRoot, "devflow", "20-discovery", "discoveries"),
|
|
154
|
+
path.join(templateRoot, "devflow", "20-discovery", "decisions"),
|
|
155
|
+
path.join(templateRoot, "devflow", "30-planning"),
|
|
156
|
+
path.join(templateRoot, "devflow", "40-tasks"),
|
|
157
|
+
path.join(templateRoot, "devflow", "50-history"),
|
|
158
|
+
path.join(templateRoot, "devflow", "50-history", "features"),
|
|
159
|
+
path.join(templateRoot, "devflow", "50-history", "fixes"),
|
|
160
|
+
path.join(templateRoot, "devflow", "50-history", "rollbacks"),
|
|
161
|
+
path.join(templateRoot, "devflow", "60-docs")
|
|
162
|
+
];
|
|
163
|
+
for (const dir of dirs) {
|
|
164
|
+
await fs.mkdir(dir, { recursive: true });
|
|
165
|
+
}
|
|
166
|
+
await fs.writeFile(path.join(templateRoot, "devflow", "20-discovery", "discoveries", ".gitkeep"), "", "utf8");
|
|
167
|
+
await fs.writeFile(path.join(templateRoot, "devflow", "20-discovery", "decisions", ".gitkeep"), "", "utf8");
|
|
168
|
+
await fs.writeFile(path.join(templateRoot, "devflow", "40-tasks", ".gitkeep"), "", "utf8");
|
|
115
169
|
}
|
|
116
170
|
async function sanitizeStarterFiles() {
|
|
117
171
|
// 1. Sanitize AGENTS.md
|
|
@@ -154,7 +208,9 @@ This master ledger tracks all released delivery runs, milestones, and rollbacks
|
|
|
154
208
|
- **\`fixes/\`**: Bug fixes, hotfixes, regressions, security patches, and performance optimizations.
|
|
155
209
|
- **\`rollbacks/\`**: Safe feature reversal and rollback execution records.
|
|
156
210
|
`;
|
|
157
|
-
|
|
211
|
+
const historyPath = path.join(templateRoot, "devflow", "50-history", "HISTORY.md");
|
|
212
|
+
await fs.mkdir(path.dirname(historyPath), { recursive: true });
|
|
213
|
+
await fs.writeFile(historyPath, starterHistory, "utf8");
|
|
158
214
|
// 3. Clean Starter ideas.md
|
|
159
215
|
const starterIdeas = `# 🔮 Centralized Idea Inbox & Backlog
|
|
160
216
|
|
|
@@ -176,7 +232,9 @@ This master ledger tracks all released delivery runs, milestones, and rollbacks
|
|
|
176
232
|
| ID | Title | Shipped In | Completed Date |
|
|
177
233
|
| :--- | :--- | :--- | :--- |
|
|
178
234
|
`;
|
|
179
|
-
|
|
235
|
+
const ideasPath = path.join(templateRoot, "devflow", "10-ideation", "ideas.md");
|
|
236
|
+
await fs.mkdir(path.dirname(ideasPath), { recursive: true });
|
|
237
|
+
await fs.writeFile(ideasPath, starterIdeas, "utf8");
|
|
180
238
|
// 4. Clean Starter project-overview.md
|
|
181
239
|
const starterOverview = `# Project Overview & Source of Truth
|
|
182
240
|
|
|
@@ -206,7 +264,9 @@ This master ledger tracks all released delivery runs, milestones, and rollbacks
|
|
|
206
264
|
## 7. Known Architectural Focus Areas
|
|
207
265
|
- Upcoming priorities, refactoring targets, or known technical considerations.
|
|
208
266
|
`;
|
|
209
|
-
|
|
267
|
+
const overviewPath = path.join(templateRoot, "devflow", "00-context", "project-overview.md");
|
|
268
|
+
await fs.mkdir(path.dirname(overviewPath), { recursive: true });
|
|
269
|
+
await fs.writeFile(overviewPath, starterOverview, "utf8");
|
|
210
270
|
}
|
|
211
271
|
async function main() {
|
|
212
272
|
const inventory = await loadCoreSkillInventory(path.join(repoRoot, "agent-bundle.manifest.json"));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prepare-template.js","sourceRoot":"","sources":["../../scripts/prepare-template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAClC,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAEL,sBAAsB,EACtB,yBAAyB,EAC1B,MAAM,gCAAgC,CAAC;AAExC,MAAM,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;AAC/D,MAAM,WAAW,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;AAClD,MAAM,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;AACvD,MAAM,YAAY,GAAG,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,UAAU,CAA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AE,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IAChE,MAAM,EAAE,CAAC,SAAS,CAAC,YAAY,EAAE,eAAe,EAAE,MAAM,CAAC,CAAC;AAC5D,CAAC;AAED,KAAK,UAAU,IAAI;IACjB,MAAM,SAAS,GAAG,MAAM,sBAAsB,CAC5C,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,4BAA4B,CAAC,CAClD,CAAC;IACF,MAAM,EAAE,CAAC,EAAE,CAAC,YAAY,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC,EAAE,UAAU,EAAE,GAAG,EAAE,CAAC,CAAC;IAC5F,MAAM,EAAE,CAAC,KAAK,CAAC,YAAY,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IAElD,KAAK,MAAM,KAAK,IAAI,OAAO,EAAE,CAAC;QAC5B,MAAM,SAAS,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC;IACpC,CAAC;IAED,MAAM,sBAAsB,EAAE,CAAC;IAC/B,MAAM,oBAAoB,EAAE,CAAC;AAC/B,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,KAAc,EAAE,EAAE;IAC9B,OAAO,CAAC,KAAK,CAAC,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;IACtE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -21,10 +21,10 @@ contract in `AGENTS.md`.
|
|
|
21
21
|
```text
|
|
22
22
|
# 1. Ingest specific file from any path (PDF, DOCX, XLSX, Image, CSV, Text)
|
|
23
23
|
/analyze C:\Users\...\Downloads\customer-spec.pdf
|
|
24
|
-
/analyze ./mockup.png ./schema.xlsx "
|
|
24
|
+
/analyze ./mockup.png ./schema.xlsx "Loyalty point system"
|
|
25
25
|
|
|
26
26
|
# 2. Ingest raw text or requirement from chat
|
|
27
|
-
/analyze "
|
|
27
|
+
/analyze "Customer requested 0% installment plan connected to KBank Payment Gateway..."
|
|
28
28
|
|
|
29
29
|
# 3. Scan pending unassigned files in devflow/inbox/
|
|
30
30
|
/analyze
|
|
@@ -46,50 +46,50 @@ contract in `AGENTS.md`.
|
|
|
46
46
|
|
|
47
47
|
---
|
|
48
48
|
|
|
49
|
-
|
|
49
|
+
## Step 1: Auto-Allocate Workspace & Ingestion (Frictionless Ingest)
|
|
50
50
|
1. **Allocate REQ-ID**: Generate sequential ID format `REQ-YYYYMMDD-NNN` (e.g. `REQ-20260903-001-point-system`).
|
|
51
51
|
2. **Create Request Workspace**:
|
|
52
52
|
```text
|
|
53
53
|
devflow/inbox/{REQ-ID}/
|
|
54
|
-
├── raw/ #
|
|
55
|
-
├── parsed.md #
|
|
56
|
-
└── clarifications.md #
|
|
54
|
+
├── raw/ # Original source files (PDF, Word, Excel, Images, Email)
|
|
55
|
+
├── parsed.md # Extracted structured text/tables (Clean Markdown)
|
|
56
|
+
└── clarifications.md # Questions and clarifications checklist for stakeholders
|
|
57
57
|
```
|
|
58
58
|
3. Copy or save incoming files into `devflow/inbox/{REQ-ID}/raw/`.
|
|
59
59
|
|
|
60
60
|
---
|
|
61
61
|
|
|
62
|
-
|
|
62
|
+
## Step 2: Parse & Normalize Requirement (`parsed.md`)
|
|
63
63
|
1. Extract text and tables from all raw files:
|
|
64
64
|
- For Office/PDF docs: Invoke `convert-any-to-md` or document extractor.
|
|
65
65
|
- For Web URLs / Confluence / Notion: Invoke `defuddle`.
|
|
66
66
|
- For Images / Wireframes / Screenshots: Conduct Multimodal Vision OCR and describe layout and fields.
|
|
67
67
|
2. Structure into `devflow/inbox/{REQ-ID}/parsed.md`:
|
|
68
|
-
- **Executive Summary**:
|
|
69
|
-
- **Target Persona & User Stories**:
|
|
70
|
-
- **Functional Requirements (FR)**:
|
|
71
|
-
- **Non-Functional Requirements (NFR)**: Performance, Security, PDPA, Retention
|
|
72
|
-
- **Data Entities & Fields**:
|
|
68
|
+
- **Executive Summary**: Core purpose and business objective of the requirement
|
|
69
|
+
- **Target Persona & User Stories**: Who performs what action and why
|
|
70
|
+
- **Functional Requirements (FR)**: List of functions and business rules
|
|
71
|
+
- **Non-Functional Requirements (NFR)**: Performance, Security, PDPA/Privacy, Data Retention
|
|
72
|
+
- **Data Entities & Fields**: Data fields, schemas, and initial types
|
|
73
73
|
|
|
74
74
|
---
|
|
75
75
|
|
|
76
|
-
|
|
77
|
-
*(
|
|
76
|
+
## Step 3: Codebase Impact & Blast Radius Analysis (`codebase-impact.md`)
|
|
77
|
+
*(Execute when operating on an existing system / brownfield codebase)*
|
|
78
78
|
|
|
79
79
|
1. Search codebase patterns using `grep_search`, `rg`, and AST analysis for affected models, controllers, APIs, and routes.
|
|
80
80
|
2. Calculate **Blast Radius & Complexity Score**:
|
|
81
|
-
- **Affected Files & Modules**:
|
|
82
|
-
- **API & Contract Breaking Risk**:
|
|
83
|
-
- **Complexity Rating**: `Low` | `Medium` | `High` | `Extreme`
|
|
81
|
+
- **Affected Files & Modules**: List of files to be modified or newly created
|
|
82
|
+
- **API & Contract Breaking Risk**: Check if existing APIs or third-party contracts are impacted
|
|
83
|
+
- **Complexity Rating**: `Low` | `Medium` | `High` | `Extreme` with rationale
|
|
84
84
|
3. Save analysis report to `devflow/analysis/{REQ-ID}/codebase-impact.md`.
|
|
85
85
|
|
|
86
86
|
---
|
|
87
87
|
|
|
88
|
-
|
|
88
|
+
## Step 4: Socratic Gap Detection & Clarification Checklist (`clarifications.md`)
|
|
89
89
|
1. Apply `grilling` and `domain-modeling` lenses to detect gaps:
|
|
90
|
-
- **Missing Edge Cases**:
|
|
91
|
-
- **Ambiguous Business Rules**:
|
|
92
|
-
- **Security & Authorization**:
|
|
90
|
+
- **Missing Edge Cases**: Boundary conditions, error states, network drops, concurrent requests
|
|
91
|
+
- **Ambiguous Business Rules**: Unclear policies, unspecified SLAs, or undefined workflows
|
|
92
|
+
- **Security & Authorization**: Role definitions, access permissions, personal identifiable data (PII)
|
|
93
93
|
2. Generate an actionable checklist in `devflow/inbox/{REQ-ID}/clarifications.md` for the SA to take directly into stakeholder meetings.
|
|
94
94
|
|
|
95
95
|
---
|
|
@@ -110,14 +110,22 @@ the fresh-session handoff; Phase B must omit `Actual execution` so the legacy
|
|
|
110
110
|
request and receipt keep both execution fields absent.
|
|
111
111
|
|
|
112
112
|
1. Require an active spec with every build step checked and status `verified`, a
|
|
113
|
-
non-default work branch, a reliable merge base, and a
|
|
113
|
+
non-default work branch, a reliable merge base, and a working tree matching
|
|
114
|
+
the target except existing `devflow/context/{xxx-slug}/review.md` and
|
|
115
|
+
`devflow/context/{xxx-slug}/findings.md` evidence.
|
|
114
116
|
Independent mode accepts only a locally recorded remote default branch,
|
|
115
117
|
local `main`, or local `master` as its enforceable base ref. Stop when none
|
|
116
118
|
reliably covers the active work.
|
|
117
|
-
The current full `HEAD` must be the approved
|
|
118
|
-
verified spec
|
|
119
|
-
|
|
120
|
-
|
|
119
|
+
The current full `HEAD` must be the approved application-code checkpoint.
|
|
120
|
+
Include the verified spec when tracked; for a new ignored-spec request, prepare
|
|
121
|
+
the exact local `Spec snapshot` under the reference contract. Never force-add
|
|
122
|
+
it or change ignore visibility. Never create a commit inside Audit. If any
|
|
123
|
+
tracked, staged, unstaged, or untracked path other than those two evidence
|
|
124
|
+
paths differs from the target, stop and ask the user to approve a review
|
|
125
|
+
checkpoint through `/implement`, even when normal checkpoint commits are
|
|
126
|
+
disabled. Do not create a checkpoint solely for review/findings changes.
|
|
127
|
+
This normal Phase A exception never allows snapshot Git differences or
|
|
128
|
+
overwriting conflicting completion-recovery evidence.
|
|
121
129
|
2. Read installed adapters from `.nexus/nexus-devflow.json` or manifest when valid.
|
|
122
130
|
Detect `.agents/skills` as `antigravity`/`codex`/`copilot` and `.claude/skills`
|
|
123
131
|
as `claude`.
|
|
@@ -133,32 +141,37 @@ request and receipt keep both execution fields absent.
|
|
|
133
141
|
isolated child through the current runtime. Do not discover, select, or
|
|
134
142
|
depend on a globally installed role, skill, prompt, or another workflow
|
|
135
143
|
such as TraversyFlow. If the runtime cannot start that generic child from
|
|
136
|
-
project-local instructions, or capability, isolation, identity, model,
|
|
137
|
-
completion
|
|
144
|
+
project-local instructions, or capability, isolation, identity, model,
|
|
145
|
+
completion, or access to the same ignored spec/snapshot inputs cannot be
|
|
146
|
+
confirmed, use the manual path in the original checkout.
|
|
138
147
|
4. Record the full target SHA, full merge-base SHA, the exact local base ref
|
|
139
148
|
used to calculate it, exact spec SHA-256, current adapter and model,
|
|
140
149
|
requested reviewer adapter and model, requested execution from
|
|
141
150
|
`review.independentExecution`, workflow, and
|
|
142
|
-
whether the configured Check gate is required.
|
|
143
|
-
|
|
151
|
+
whether the configured Check gate is required. For a new ignored-spec request,
|
|
152
|
+
create or reuse the exact snapshot first and record `Spec snapshot` as defined
|
|
153
|
+
in the reference. Never add that field to an existing pending or completed
|
|
154
|
+
record. Write the pending template into `devflow/context/{xxx-slug}/review.md`.
|
|
144
155
|
5. Execute the configured path:
|
|
145
156
|
- For `manual`, set dashboard activity to `ready` and give the exact handoff
|
|
146
157
|
command for the selected adapter. Claude Code uses
|
|
147
158
|
`/audit independent current`; Google Antigravity uses
|
|
148
159
|
`/audit independent current`; Codex uses `$audit independent current`;
|
|
149
160
|
Copilot and OpenCode receive the equivalent plain-language instruction.
|
|
150
|
-
Tell the user to open a fresh session
|
|
151
|
-
chat.
|
|
161
|
+
Tell the user to open a fresh session in the original checkout with only the
|
|
162
|
+
handoff, not the builder chat. Include target/base SHAs and, when present,
|
|
163
|
+
the exact snapshot path and spec hash.
|
|
152
164
|
- For `automatic`, freeze all parent product, test, spec, and config changes.
|
|
153
165
|
Start one generic isolated child without the builder transcript. Instruct
|
|
154
166
|
it to read the project-local Audit skill and
|
|
155
167
|
`reference/independent-review.md` from the current adapter tree, then
|
|
156
|
-
execute Phase B
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
not repair code, change
|
|
160
|
-
|
|
161
|
-
continuing. Record `fresh subagent`
|
|
168
|
+
execute Phase B using the same local spec/snapshot inputs against the
|
|
169
|
+
prepared request. All review instructions come from that installed DevFlow
|
|
170
|
+
project. The reviewer may write only `devflow/context/{xxx-slug}/findings.md`
|
|
171
|
+
and `devflow/context/{xxx-slug}/review.md`; it must not repair code, change
|
|
172
|
+
the spec, commit, or perform external actions. Wait for completion, then
|
|
173
|
+
reread and validate the normal receipt before continuing. Record `fresh subagent`
|
|
174
|
+
as its reviewer context.
|
|
162
175
|
|
|
163
176
|
If automatic execution fails or any required property becomes uncertain, keep
|
|
164
177
|
the pending request intact, set activity to `ready`, and stop with the existing
|
|
@@ -177,7 +190,9 @@ Use this phase when a current pending request exists in `devflow/context/{xxx-sl
|
|
|
177
190
|
`HEAD` matches `Target commit`, the recorded base ref still produces the
|
|
178
191
|
recorded merge base, the exact spec hash matches, and no path differs from
|
|
179
192
|
the target except `devflow/context/{xxx-slug}/review.md` and
|
|
180
|
-
`devflow/context/{xxx-slug}/findings.md`.
|
|
193
|
+
`devflow/context/{xxx-slug}/findings.md`. When `Spec snapshot` is present, verify
|
|
194
|
+
both raw spec/snapshot hashes and every path, visibility, and Git condition in
|
|
195
|
+
the reference. Stop on any mismatch or stale state.
|
|
181
196
|
2. Proceed only from the fresh reviewer handoff. Record `fresh session` for a
|
|
182
197
|
manual reviewer or `fresh subagent` for an automatic isolated reviewer. This
|
|
183
198
|
is a declaration, never cryptographic proof. If the reviewer has the builder
|
|
@@ -206,6 +221,9 @@ Use this phase when a current pending request exists in `devflow/context/{xxx-sl
|
|
|
206
221
|
After changes are requested, the builder repairs through `/implement`, obtains
|
|
207
222
|
approval for a new checkpoint, and prepares a new request. The next reviewer
|
|
208
223
|
pass reviews the complete new delta, not only the old findings.
|
|
224
|
+
A local-spec-only revision may reuse the same approved product HEAD after normal
|
|
225
|
+
spec and verification gates, with a new snapshot/request and full fresh review;
|
|
226
|
+
it never requires an empty commit.
|
|
209
227
|
|
|
210
228
|
## Step 1 - gather context
|
|
211
229
|
|
|
@@ -68,6 +68,56 @@ work branch, and `Base commit` cannot equal `Target commit`. If none of those
|
|
|
68
68
|
base refs reliably covers the active work, stop instead of creating a receipt
|
|
69
69
|
whose review range cannot be re-derived.
|
|
70
70
|
|
|
71
|
+
## Local spec snapshot
|
|
72
|
+
|
|
73
|
+
For a new request whose verified spec is intentionally ignored, keep application
|
|
74
|
+
code in the approved checkpoint and freeze the spec outside Git. Add exactly one
|
|
75
|
+
field after `Spec hash`, using a plain path with no backticks:
|
|
76
|
+
|
|
77
|
+
```markdown
|
|
78
|
+
**Spec snapshot:** devflow/.state/review-specs/<Target commit>-<Spec hash>.md
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
Substitute the request's full lowercase target SHA and lowercase spec hash. This
|
|
82
|
+
is the only permitted snapshot path; duplicate fields or another path are
|
|
83
|
+
malformed. Tracked-spec requests do not need this field. Existing requests and
|
|
84
|
+
receipts without it retain their previous hash, freshness, and execution rules.
|
|
85
|
+
Never retroactively add `Spec snapshot` to a pending or completed record.
|
|
86
|
+
|
|
87
|
+
Phase A prepares the copy before publishing a new pending request:
|
|
88
|
+
|
|
89
|
+
1. Read the verified active spec as raw bytes and calculate its SHA-256 without
|
|
90
|
+
decoding, trimming, or normalizing line endings. Use that digest as `Spec hash`.
|
|
91
|
+
2. Use `lstat` on the selected project root and every directory below it leading
|
|
92
|
+
to the spec and snapshot. Require ordinary directories, a regular spec file,
|
|
93
|
+
and a regular file for any existing snapshot. Reject symbolic links, including
|
|
94
|
+
dangling links. Ancestor aliases above the selected root are not inspected.
|
|
95
|
+
Create missing snapshot directories only beneath verified ordinary parents;
|
|
96
|
+
a missing snapshot leaf is allowed only for exclusive creation below them.
|
|
97
|
+
3. Require both paths to be ignored and untracked, absent from the index and
|
|
98
|
+
`Target commit`. Check ignore status separately for each path, require no
|
|
99
|
+
entries from `git ls-files --stage -- <spec-path> <snapshot-path>` or
|
|
100
|
+
`git ls-tree -r --name-only <target> -- <spec-path> <snapshot-path>`, and
|
|
101
|
+
distinguish expected absence from Git failure. Never force-add files or
|
|
102
|
+
change ignore visibility to make these checks pass.
|
|
103
|
+
4. Create the snapshot exclusively, for example with Node's `fs.open` using
|
|
104
|
+
`wx`, then write the raw byte buffer and close the handle. If it already
|
|
105
|
+
exists, reuse only an ordinary file whose bytes exactly match the spec.
|
|
106
|
+
Conflicting bytes, unsafe paths, or a failed write stop preparation; never
|
|
107
|
+
overwrite or repair the existing snapshot in place.
|
|
108
|
+
5. Read both files back and require identical raw bytes and the recorded hash.
|
|
109
|
+
Recheck their path and Git conditions before writing the request. Keep the
|
|
110
|
+
snapshot unchanged through review and completion; do not automatically delete
|
|
111
|
+
or regenerate it to make an existing receipt pass.
|
|
112
|
+
|
|
113
|
+
The target/base fields bind application code; `Spec hash` binds both local files.
|
|
114
|
+
The snapshot is an input, never another allowed dirty Git path. Manual handoff
|
|
115
|
+
names the original checkout, target/base SHAs, snapshot path, and hash. An
|
|
116
|
+
automatic child must be able to read those same ignored inputs and installed
|
|
117
|
+
project-local skills. If that access cannot be confirmed, retain the request and
|
|
118
|
+
use the manual fresh-session handoff in the original checkout. Do not copy local
|
|
119
|
+
inputs externally or substitute a clone/worktree that lacks them.
|
|
120
|
+
|
|
71
121
|
## Completed receipt
|
|
72
122
|
|
|
73
123
|
Keep the request fields unchanged and replace `pending` with `passed` or
|
|
@@ -131,6 +181,9 @@ A receipt is current only when all of these hold:
|
|
|
131
181
|
equals `Base commit`, and it remains a locally recorded remote default branch,
|
|
132
182
|
local `main`, or local `master`.
|
|
133
183
|
- The exact task spec bytes still match `Spec hash`.
|
|
184
|
+
- When `Spec snapshot` is present, both raw files match that hash and every
|
|
185
|
+
snapshot path, visibility, and Git condition above still holds. Missing or
|
|
186
|
+
changed snapshot inputs make the record stale; Git failure never passes.
|
|
134
187
|
- No tracked, staged, unstaged, or untracked path differs from the target except
|
|
135
188
|
`devflow/context/{xxx-slug}/review.md` and `devflow/context/{xxx-slug}/findings.md`.
|
|
136
189
|
- The completed reviewer adapter matches `Requested reviewer`.
|
|
@@ -149,8 +202,11 @@ A receipt is current only when all of these hold:
|
|
|
149
202
|
record the actual value.
|
|
150
203
|
|
|
151
204
|
Any other code, test, configuration, spec, or acceptance-criteria change makes
|
|
152
|
-
the receipt stale. A stale receipt never proves the new state.
|
|
153
|
-
|
|
205
|
+
the receipt stale. A stale receipt never proves the new state. Product changes
|
|
206
|
+
need a new approved checkpoint. A local-spec-only revision may reuse the same
|
|
207
|
+
approved product HEAD after normal spec and verification gates, with a new
|
|
208
|
+
snapshot, a new request, and a full fresh review. Never create an empty commit
|
|
209
|
+
just to capture ignored spec changes or edit a passed receipt into a new review.
|
|
154
210
|
|
|
155
211
|
The adapter, model, and context fields are declared metadata. DevFlow proves
|
|
156
212
|
the target and staleness, but it cannot cryptographically prove that a separate
|
|
@@ -37,7 +37,7 @@ Provide at least 2-3 materially distinct approaches:
|
|
|
37
37
|
### 3. Trade-off Comparison Matrix
|
|
38
38
|
Construct a structured evaluation table:
|
|
39
39
|
|
|
40
|
-
| Option | Pros
|
|
40
|
+
| Option | Pros | Cons | Effort & Complexity | Verdict / Status |
|
|
41
41
|
| :--- | :--- | :--- | :--- | :--- |
|
|
42
42
|
| **Option A** | ... | ... | Low / Med / High | ... |
|
|
43
43
|
| **Option B** | ... | ... | Low / Med / High | **Recommended** |
|
|
@@ -33,6 +33,15 @@ passes.
|
|
|
33
33
|
Read `devflow/config.json`. A missing file means the built-in defaults apply.
|
|
34
34
|
If the file exists but is invalid, stop and point the user to `/doctor`.
|
|
35
35
|
|
|
36
|
+
Before requiring a real active spec, check for pending completion using
|
|
37
|
+
`reference/completion-recovery.md`. A matching archive may mean archival was
|
|
38
|
+
interrupted, the work commit awaits merge, or the merge already finished. Follow
|
|
39
|
+
that phase instead of restarting logging. Missing or ambiguous evidence stops
|
|
40
|
+
with concrete recovery steps; an archive or clean context never authorizes selecting new work.
|
|
41
|
+
Recovery uses archive and Git proof, never dashboard activity as authority.
|
|
42
|
+
|
|
43
|
+
For a normal completion with no recovery in progress, continue below.
|
|
44
|
+
|
|
36
45
|
Confirm the target work is actually finished: `devflow/context/{xxx-slug}/spec.md`
|
|
37
46
|
holds a real spec, its steps are built on a branch, and `Verify`, or the fallback
|
|
38
47
|
build and tests, passes. If any of the
|
|
@@ -45,6 +54,7 @@ Read `devflow/context/{xxx-slug}/review.md` (or `devflow/context/review.md`) whe
|
|
|
45
54
|
changes-requested, malformed, or stale record is always a blocker because the
|
|
46
55
|
user already initiated that gate, even when its configured policy is `manual`.
|
|
47
56
|
|
|
57
|
+
|
|
48
58
|
## Configured regular quality gates
|
|
49
59
|
|
|
50
60
|
Use `qualityGates.regular` for this work item:
|
|
@@ -103,6 +113,15 @@ evidence is missing.
|
|
|
103
113
|
|
|
104
114
|
## Step 1 - log the work
|
|
105
115
|
|
|
116
|
+
Follow `reference/completion-recovery.md` to capture the source tree and compact
|
|
117
|
+
archive annotation before any logging edits. Preserve the exact verified spec
|
|
118
|
+
prefix, its UTF-8 byte length and SHA-256, branch, original HEAD, and local base.
|
|
119
|
+
Record the reference's narrow `absentOptional` proof before creating any optional
|
|
120
|
+
findings/review stub on an older installation; tree absence alone is insufficient.
|
|
121
|
+
Prepare the entire archive, including the sections below and any generated try
|
|
122
|
+
guide, before placing it at its destination in `devflow/history/features/`, `fixes/`, or `rollbacks/`. An existing matching archive
|
|
123
|
+
enters recovery; never overwrite it or append duplicate sections.
|
|
124
|
+
|
|
106
125
|
Check whether the spec is a feature, fix, or rollback. A fix is marked
|
|
107
126
|
`Type: Fix` and has no build-plan number. A rollback is marked `Type: Rollback`
|
|
108
127
|
and records the exact target feature, archive, commit, and parent.
|
|
@@ -122,11 +141,14 @@ delete the `prototypes/` folder now.
|
|
|
122
141
|
|
|
123
142
|
## Step 2 - make the work commit on feature branch
|
|
124
143
|
|
|
125
|
-
|
|
144
|
+
Show the complete product and logging diff with the proposed commit message,
|
|
145
|
+
then obtain explicit commit approval. Only then stage the reviewed branch work
|
|
146
|
+
(any uncommitted step work plus the Step 1 logging
|
|
126
147
|
changes) and make one conventional work commit on the active branch (for example `feat: <feature>`,
|
|
127
148
|
`fix: <name>`, or `revert: roll back <feature>`). `Verify`, or the fallback build
|
|
128
149
|
and tests, must pass first.
|
|
129
150
|
|
|
151
|
+
|
|
130
152
|
## Step 3 - Mandatory Delivery Gate (Ask User First)
|
|
131
153
|
|
|
132
154
|
> [!IMPORTANT]
|