@jakkrichm/create-nexus-devflow 2.6.2 → 2.8.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/README.md +5 -5
- package/dist/lib/antigravity-artifacts.d.ts +52 -0
- package/dist/lib/antigravity-artifacts.js +170 -0
- package/dist/lib/antigravity-artifacts.js.map +1 -0
- package/dist/lib/antigravity-hooks.d.ts +31 -0
- package/dist/lib/antigravity-hooks.js +85 -0
- package/dist/lib/antigravity-hooks.js.map +1 -0
- package/dist/lib/antigravity-plugin.d.ts +51 -0
- package/dist/lib/antigravity-plugin.js +179 -0
- package/dist/lib/antigravity-plugin.js.map +1 -0
- package/dist/lib/antigravity-scheduler.d.ts +39 -0
- package/dist/lib/antigravity-scheduler.js +95 -0
- package/dist/lib/antigravity-scheduler.js.map +1 -0
- package/dist/lib/branch-context.d.ts +1 -0
- package/dist/lib/branch-context.js +14 -9
- package/dist/lib/branch-context.js.map +1 -1
- package/dist/lib/current-work.js +10 -22
- package/dist/lib/current-work.js.map +1 -1
- package/dist/lib/doctor.js +34 -6
- package/dist/lib/doctor.js.map +1 -1
- package/dist/lib/findings.js +14 -10
- package/dist/lib/findings.js.map +1 -1
- package/dist/lib/mcp.js +3 -3
- package/dist/lib/mcp.js.map +1 -1
- package/dist/lib/openai-tools.d.ts +34 -0
- package/dist/lib/openai-tools.js +57 -0
- package/dist/lib/openai-tools.js.map +1 -0
- package/dist/lib/project-config.d.ts +55 -0
- package/dist/lib/project-config.js +228 -0
- package/dist/lib/project-config.js.map +1 -0
- package/dist/lib/status.d.ts +7 -0
- package/dist/lib/status.js +23 -1
- package/dist/lib/status.js.map +1 -1
- package/dist/lib/swarm-orchestrator.js +14 -8
- package/dist/lib/swarm-orchestrator.js.map +1 -1
- package/dist/lib/visual-subagent.d.ts +32 -0
- package/dist/lib/visual-subagent.js +98 -0
- package/dist/lib/visual-subagent.js.map +1 -0
- package/dist/lib/workflow-state.js +3 -1
- package/dist/lib/workflow-state.js.map +1 -1
- package/dist/scripts/prepare-template.js +0 -19
- package/dist/scripts/prepare-template.js.map +1 -1
- package/package.json +1 -1
- package/template/.agents/skills/audit/SKILL.md +7 -7
- package/template/.agents/skills/autopilot/SKILL.md +34 -58
- package/template/.agents/skills/brief/SKILL.md +1 -1
- package/template/.agents/skills/check/SKILL.md +4 -4
- package/template/.agents/skills/complete/SKILL.md +13 -46
- package/template/.agents/skills/continuous/SKILL.md +117 -0
- package/template/.agents/skills/convert-any-to-md/scripts/__pycache__/convert_any_to_md.cpython-314.pyc +0 -0
- package/template/.agents/skills/devflow/SKILL.md +12 -12
- package/template/.agents/skills/discovery/SKILL.md +2 -2
- package/template/.agents/skills/doctor/SKILL.md +15 -11
- package/template/.agents/skills/feature/SKILL.md +5 -6
- package/template/.agents/skills/fix/SKILL.md +2 -2
- package/template/.agents/skills/implement/SKILL.md +11 -12
- package/template/.agents/skills/release/SKILL.md +1 -1
- package/template/.agents/skills/report-html/SKILL.md +3 -3
- package/template/.agents/skills/rollback/SKILL.md +4 -6
- package/template/.agents/skills/status/SKILL.md +20 -27
- package/template/.agents/skills/try/SKILL.md +5 -6
- package/template/.claude/skills/audit/SKILL.md +7 -7
- package/template/.claude/skills/autopilot/SKILL.md +34 -58
- package/template/.claude/skills/brief/SKILL.md +1 -1
- package/template/.claude/skills/check/SKILL.md +4 -4
- package/template/.claude/skills/complete/SKILL.md +13 -46
- package/template/.claude/skills/continuous/SKILL.md +117 -0
- package/template/.claude/skills/convert-any-to-md/scripts/__pycache__/convert_any_to_md.cpython-314.pyc +0 -0
- package/template/.claude/skills/devflow/SKILL.md +12 -12
- package/template/.claude/skills/discovery/SKILL.md +2 -2
- package/template/.claude/skills/doctor/SKILL.md +15 -11
- package/template/.claude/skills/feature/SKILL.md +5 -6
- package/template/.claude/skills/fix/SKILL.md +2 -2
- package/template/.claude/skills/implement/SKILL.md +11 -12
- package/template/.claude/skills/release/SKILL.md +1 -1
- package/template/.claude/skills/report-html/SKILL.md +3 -3
- package/template/.claude/skills/rollback/SKILL.md +4 -6
- package/template/.claude/skills/status/SKILL.md +20 -27
- package/template/.claude/skills/try/SKILL.md +5 -6
- package/template/AGENTS.md +29 -23
- package/template/LICENSE +21 -21
- package/template/devflow/build-plan.md +18 -0
- package/template/devflow/config.json +33 -0
- package/template/devflow/context/ai-interaction.md +30 -16
- package/template/devflow/reference/feature-spec-template.md +2 -2
- package/template/devflow/reference/running-id-contract.md +0 -3
- package/template/devflow/context/current-feature.md +0 -3
- package/template/devflow/context/current-stage.md +0 -11
- package/template/devflow/context/findings.md +0 -10
|
@@ -34,14 +34,13 @@ state.
|
|
|
34
34
|
1. **Build plan** - `devflow/build-plan.md`. Count checked vs unchecked leaf
|
|
35
35
|
items. Name the next unchecked leaf, the same target `/feature` would pick,
|
|
36
36
|
and note if a parent item was split into sub-items (`4a`, `4b`, ...).
|
|
37
|
-
2. **Current work** - `devflow/context/
|
|
38
|
-
progress
|
|
39
|
-
present, report its type
|
|
40
|
-
first unchecked step where `/implement` resumes.
|
|
41
|
-
3. **Findings** - `devflow/context/findings.md`. Count findings by status and
|
|
37
|
+
2. **Current work & Spec Queue** - scan `devflow/context/{xxx-slug}/`. Is something in
|
|
38
|
+
progress? If a feature, fix, or rollback spec is
|
|
39
|
+
present, report its type, name, running ID, which build steps are checked, and the
|
|
40
|
+
first unchecked step where `/implement` resumes. If multiple tasks are queued, list the active spec queue.
|
|
41
|
+
3. **Findings** - `devflow/context/{xxx-slug}/findings.md`. Count findings by status and
|
|
42
42
|
report open and fixed counts next to build-plan progress. Call out any P0 or
|
|
43
|
-
P1 still `open` or `fixed` by ID, since those block `/complete`.
|
|
44
|
-
file means no findings.
|
|
43
|
+
P1 still `open` or `fixed` by ID, since those block `/complete`.
|
|
45
44
|
4. **Overview freshness** - if `devflow/context/project-overview.md` is missing,
|
|
46
45
|
or if `project-plan.md` or `build-plan.md` appears newer than it by filesystem
|
|
47
46
|
time, mention that `/overview` should run before new feature work.
|
|
@@ -49,38 +48,32 @@ state.
|
|
|
49
48
|
changes, roughly how many files changed, last commit subject, and whether the
|
|
50
49
|
branch is ahead of its remote. If the directory is not a git repo, say so and
|
|
51
50
|
skip this part rather than failing.
|
|
52
|
-
6. **Progress drift** - flag active
|
|
53
|
-
matching `feature
|
|
54
|
-
not completed, or disagreement between `build-plan.md` and
|
|
55
|
-
`current-feature.md`. A rollback legitimately targets a checked build-plan
|
|
56
|
-
item until `/complete` unchecks it, so do not compare it to the next unchecked
|
|
57
|
-
feature.
|
|
51
|
+
6. **Progress drift** - flag active task on `main`, a spec in progress but no
|
|
52
|
+
matching `feature/{xxx-slug}`, `fix/{xxx-slug}`, or `rollback/{xxx-slug}` branch, all spec steps checked but
|
|
53
|
+
not completed, or disagreement between `build-plan.md` and active specs.
|
|
58
54
|
|
|
59
55
|
## Output
|
|
60
56
|
|
|
61
57
|
A short, scannable summary, not a wall of text. Aim for something like:
|
|
62
58
|
|
|
63
|
-
Status: Building feature
|
|
64
|
-
Plans: Overview current. Build plan
|
|
65
|
-
Current work: Step 2 of
|
|
66
|
-
Findings:
|
|
67
|
-
Git: branch feature/
|
|
68
|
-
Watch: F-02 is fixed but not re-reviewed; it blocks /complete until /audit closes it.
|
|
59
|
+
Status: Building feature 061 - Pure Multi-Run Architecture
|
|
60
|
+
Plans: Overview current. Build plan 13 of 14 complete.
|
|
61
|
+
Current work: Step 2 of 4 done. Next step: Update Directives & Documentation.
|
|
62
|
+
Findings: 0 blockers in 061-pure-multi-run-task-isolated-architecture/findings.md.
|
|
63
|
+
Git: branch feature/061-pure-multi-run-task-isolated-architecture, 3 uncommitted files.
|
|
69
64
|
|
|
70
|
-
Next action: run /implement for
|
|
65
|
+
Next action: run /implement 061 for Task 2.
|
|
71
66
|
|
|
72
67
|
End with a single suggested next action, chosen in this order:
|
|
73
68
|
|
|
74
69
|
- The overview is missing or stale and no feature is in progress -> `/overview`.
|
|
75
|
-
- A spec is in progress with unchecked steps -> `/implement` and name the step.
|
|
76
|
-
- A spec is in progress and all implementation steps are checked -> `/check` if
|
|
70
|
+
- A spec is in progress with unchecked steps -> `/implement [id]` and name the step.
|
|
71
|
+
- A spec is in progress and all implementation steps are checked -> `/check [id]` if
|
|
77
72
|
proof is not recorded, `/try` if the user wants a manual review path,
|
|
78
|
-
`/implement` when a P0 or P1 finding is still `open` (the repair is an extra
|
|
73
|
+
`/implement [id]` when a P0 or P1 finding is still `open` (the repair is an extra
|
|
79
74
|
reviewed step), `/audit` when one is `fixed` and awaiting re-review (both
|
|
80
|
-
block `/complete`), otherwise `/complete`.
|
|
81
|
-
-
|
|
82
|
-
`/fix <finding id>`; when one is `fixed`, `/audit` to re-review and close it.
|
|
83
|
-
- `current-feature.md` is the reset stub and unchecked build-plan items remain ->
|
|
75
|
+
block `/complete`), otherwise `/complete [id]`.
|
|
76
|
+
- No active tasks in `devflow/context/` and unchecked build-plan items remain ->
|
|
84
77
|
`/feature` and name the next build-plan item.
|
|
85
78
|
- All build-plan items are checked -> say the current milestone is complete;
|
|
86
79
|
suggest hardening, release, or docs when appropriate, or
|
|
@@ -23,10 +23,10 @@ merge, push, or run destructive commands.
|
|
|
23
23
|
Optional scope:
|
|
24
24
|
|
|
25
25
|
- no argument: use the active feature, fix, or rollback in
|
|
26
|
-
`devflow/context/
|
|
26
|
+
`devflow/context/{xxx-slug}/spec.md`
|
|
27
27
|
- `latest`: use the most recent archive under `devflow/history/features/`,
|
|
28
28
|
`devflow/history/fixes/`, or `devflow/history/rollbacks/`
|
|
29
|
-
- a step name or number: focus the guide on that
|
|
29
|
+
- a step name or number: focus the guide on that active step
|
|
30
30
|
- a path, route, or command: include it as the main thing to try
|
|
31
31
|
|
|
32
32
|
If there is no active feature and no useful archive, ask what change the user
|
|
@@ -37,16 +37,15 @@ wants to try instead of guessing.
|
|
|
37
37
|
Read:
|
|
38
38
|
|
|
39
39
|
- `AGENTS.md`
|
|
40
|
-
- `devflow/context/
|
|
40
|
+
- `devflow/context/{xxx-slug}/spec.md` (or active task workspace)
|
|
41
41
|
- `devflow/context/project-overview.md`
|
|
42
42
|
- `devflow/context/coding-standards.md`
|
|
43
43
|
- `devflow/build-plan.md`
|
|
44
44
|
- latest files under `devflow/history/features/`,
|
|
45
|
-
`devflow/history/fixes/`, and `devflow/history/rollbacks/`, if
|
|
46
|
-
feature is reset
|
|
45
|
+
`devflow/history/fixes/`, and `devflow/history/rollbacks/`, if no task is active
|
|
47
46
|
- git branch and working tree status
|
|
48
47
|
|
|
49
|
-
Prefer the active spec. If
|
|
48
|
+
Prefer the active task spec. If no active task directory exists, use the most
|
|
50
49
|
recent archived feature, fix, or rollback by filename or modification time and
|
|
51
50
|
say that is what you used.
|
|
52
51
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: audit
|
|
3
|
-
description: "[devflow] Read-only code audit for a Blueprint project, except for the findings ledger it maintains at devflow/context/findings.md. Reviews the active feature, changed files, a selected path, or the full project through all concerns or a focused quality, security, performance, or tests lens. Use when the user runs /audit, invokes $audit, asks for a code or quality audit, security review, performance review, test quality review, dead-code or duplication check, vibe-coded project cleanup, or standards review."
|
|
3
|
+
description: "[devflow] Read-only code audit for a Blueprint project, except for the findings ledger it maintains at devflow/context/{xxx-slug}/findings.md. Reviews the active feature, changed files, a selected path, or the full project through all concerns or a focused quality, security, performance, or tests lens. Use when the user runs /audit, invokes $audit, asks for a code or quality audit, security review, performance review, test quality review, dead-code or duplication check, vibe-coded project cleanup, or standards review."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# audit - review code quality against the project standards
|
|
@@ -17,7 +17,7 @@ or one focused lens: quality, security, performance, or tests.
|
|
|
17
17
|
|
|
18
18
|
It reviews code without changing it: it never edits source files, installs
|
|
19
19
|
dependencies, commits, merges, pushes, or starts product work. Its one write is
|
|
20
|
-
the findings ledger at `devflow/context/findings.md` (Step 4), the durable
|
|
20
|
+
the findings ledger at `devflow/context/{xxx-slug}/findings.md` (Step 4), the durable
|
|
21
21
|
record of findings and their status.
|
|
22
22
|
|
|
23
23
|
## Input
|
|
@@ -29,7 +29,7 @@ Optional scope:
|
|
|
29
29
|
|
|
30
30
|
- no scope argument: use `current` when an active feature exists, otherwise use
|
|
31
31
|
`changed` when local changes exist, otherwise use `full`
|
|
32
|
-
- `current`: audit the active `
|
|
32
|
+
- `current`: audit the active `devflow/context/{xxx-slug}/spec.md`, every committed feature-branch
|
|
33
33
|
change from its merge base through `HEAD`, staged and unstaged changes,
|
|
34
34
|
untracked source files, and nearby code affected by the feature
|
|
35
35
|
- `changed`: audit staged, unstaged, and untracked source files plus nearby code
|
|
@@ -65,8 +65,8 @@ Read:
|
|
|
65
65
|
- `AGENTS.md`
|
|
66
66
|
- `devflow/context/project-overview.md`
|
|
67
67
|
- `devflow/context/coding-standards.md`
|
|
68
|
-
- `devflow/context/
|
|
69
|
-
- `devflow/context/findings.md
|
|
68
|
+
- `devflow/context/{xxx-slug}/spec.md` (when a task is active)
|
|
69
|
+
- `devflow/context/{xxx-slug}/findings.md` (or existing ledger), for existing IDs and statuses
|
|
70
70
|
- `devflow/context/ai-interaction.md`
|
|
71
71
|
- `devflow/build-plan.md`, when feature order matters
|
|
72
72
|
- git branch and working tree status
|
|
@@ -145,9 +145,9 @@ audit evidence before responding.
|
|
|
145
145
|
|
|
146
146
|
## Step 4 - update the findings ledger
|
|
147
147
|
|
|
148
|
-
`devflow/context/findings.md` is the durable record of findings. Chat reports
|
|
148
|
+
`devflow/context/{xxx-slug}/findings.md` is the durable record of findings for the active task. Chat reports
|
|
149
149
|
do not survive a context clear; the ledger does. It is the only file this skill
|
|
150
|
-
writes. If it is missing
|
|
150
|
+
writes. If it is missing, create it with a `# Findings`
|
|
151
151
|
heading first.
|
|
152
152
|
|
|
153
153
|
**The ledger never scopes the review.** Review the code fresh in Step 3, then
|
|
@@ -38,11 +38,11 @@ Common forms:
|
|
|
38
38
|
- `resume`: continue the current feature on its existing branch.
|
|
39
39
|
|
|
40
40
|
If the requested target conflicts with a feature already in progress, stop and
|
|
41
|
-
ask which one should win. Do not overwrite
|
|
41
|
+
ask which one should win. Do not overwrite task workspaces
|
|
42
42
|
silently.
|
|
43
43
|
|
|
44
44
|
Rollback is intentionally excluded from Autopilot. If the request is a rollback
|
|
45
|
-
or
|
|
45
|
+
or active spec is marked `Type: Rollback`, stop and direct the user to
|
|
46
46
|
the reviewed `/implement` path. Reversing completed work requires the explicit
|
|
47
47
|
dependency and conflict gates in `/rollback` and `/implement`.
|
|
48
48
|
|
|
@@ -54,8 +54,8 @@ Read the same state `/status` reads:
|
|
|
54
54
|
- `devflow/project-plan.md`
|
|
55
55
|
- `devflow/build-plan.md`
|
|
56
56
|
- `devflow/context/project-overview.md`
|
|
57
|
-
- `devflow/context/
|
|
58
|
-
- `devflow/context/findings.md`
|
|
57
|
+
- `devflow/context/{xxx-slug}/spec.md` (when present)
|
|
58
|
+
- `devflow/context/{xxx-slug}/findings.md` (when present)
|
|
59
59
|
- `devflow/context/coding-standards.md`
|
|
60
60
|
- `devflow/context/ai-interaction.md`
|
|
61
61
|
- git branch, status, and recent log
|
|
@@ -67,7 +67,7 @@ Stop before changing files when:
|
|
|
67
67
|
- The repo is not a git repo.
|
|
68
68
|
- The working tree is dirty and there is no current feature tying those changes
|
|
69
69
|
to this run.
|
|
70
|
-
-
|
|
70
|
+
- Active task spec has real work and the user requested a different target.
|
|
71
71
|
- `project-overview.md` is missing or stale and the planning docs are not clear
|
|
72
72
|
enough to regenerate it.
|
|
73
73
|
- The next feature is visual or replication-heavy and no design reference exists.
|
|
@@ -80,14 +80,14 @@ final packet.
|
|
|
80
80
|
|
|
81
81
|
## Step 2 - choose or write the spec
|
|
82
82
|
|
|
83
|
-
If `devflow/context/
|
|
83
|
+
If `devflow/context/{xxx-slug}/spec.md` already contains an active spec,
|
|
84
84
|
resume it. Read checked steps and continue from the first unchecked step.
|
|
85
85
|
|
|
86
86
|
If there is no active spec:
|
|
87
87
|
|
|
88
88
|
1. Use the `/feature` behavior for a planned feature, or `/fix` behavior for a
|
|
89
89
|
requested fix.
|
|
90
|
-
2.
|
|
90
|
+
2. Create workspace and write `devflow/context/{xxx-slug}/spec.md`.
|
|
91
91
|
3. Red-team the spec before building:
|
|
92
92
|
- missing unhappy paths
|
|
93
93
|
- oversized steps
|
|
@@ -101,32 +101,22 @@ If there is no active spec:
|
|
|
101
101
|
Autopilot may continue past this spec gate because the user explicitly invoked
|
|
102
102
|
Autopilot. Still report what the critique changed in the final packet.
|
|
103
103
|
|
|
104
|
-
## Step 3 -
|
|
104
|
+
## Step 3 - branch
|
|
105
105
|
|
|
106
|
-
|
|
106
|
+
Create or check out the branch for the work:
|
|
107
107
|
|
|
108
|
-
-
|
|
109
|
-
-
|
|
108
|
+
- `feature/{xxx-slug}` for a planned feature
|
|
109
|
+
- `fix/{xxx-slug}` for an ad-hoc fix
|
|
110
110
|
|
|
111
|
-
If the branch already exists,
|
|
112
|
-
If switching branches would strand unrelated dirty work, stop and report the
|
|
113
|
-
problem.
|
|
111
|
+
If the branch already exists, check it out and verify it matches the spec.
|
|
114
112
|
|
|
115
|
-
## Step 4 -
|
|
113
|
+
## Step 4 - build in small steps with review gates
|
|
116
114
|
|
|
117
|
-
Work through the spec's
|
|
118
|
-
Unlike `/implement`, do not pause for user approval after each passing step. The
|
|
119
|
-
review happens at the final packet unless a hard stop is hit.
|
|
115
|
+
Work through the spec's steps in order:
|
|
120
116
|
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
2. Run the relevant verification:
|
|
125
|
-
- the exact `Verify` command from `AGENTS.md`, when declared
|
|
126
|
-
- otherwise the build, relevant test, lint, and typecheck commands already
|
|
127
|
-
documented by the project
|
|
128
|
-
- browser, CLI, API, or app-level evidence for behavioral done-whens
|
|
129
|
-
3. If UI is involved, inspect the running app when possible. Prefer Playwright if
|
|
117
|
+
1. Keep each change small and focused on the current step.
|
|
118
|
+
2. Run the declared `test` command when logic changed.
|
|
119
|
+
3. If the step has visual or browser-visible behavior, drive the browser when
|
|
130
120
|
it is already installed or declared. Capture screenshots when they add useful
|
|
131
121
|
evidence. Check for console errors and failed requests.
|
|
132
122
|
4. Self-review the diff for the step:
|
|
@@ -136,15 +126,15 @@ For every step:
|
|
|
136
126
|
- did it follow `coding-standards.md`?
|
|
137
127
|
- are tests present for new in-scope logic when the test gate is on?
|
|
138
128
|
5. Fix obvious issues and rerun the failed checks.
|
|
139
|
-
6. Mark the step checked in `
|
|
129
|
+
6. Mark the step checked in `devflow/context/{xxx-slug}/spec.md` only after the step passes.
|
|
140
130
|
7. Create a checkpoint commit on the feature or fix branch for the passing step.
|
|
141
|
-
Include the code, tests, and the updated `
|
|
131
|
+
Include the code, tests, and the updated `spec.md` checkbox. Use a
|
|
142
132
|
conventional message such as `feat: checkpoint mock snapshot route` or
|
|
143
133
|
`fix: checkpoint stale service filter`. Keep the message about the step, not
|
|
144
134
|
about Autopilot.
|
|
145
135
|
|
|
146
136
|
Do not batch the whole feature into one large diff. If a step gets too large,
|
|
147
|
-
split the step in `
|
|
137
|
+
split the step in `devflow/context/{xxx-slug}/spec.md` and continue with the first smaller step.
|
|
148
138
|
|
|
149
139
|
## Step 5 - acceptance check
|
|
150
140
|
|
|
@@ -159,7 +149,7 @@ may be enough. Be explicit about the evidence used.
|
|
|
159
149
|
After the acceptance check, apply the `/audit current` behavior to the active
|
|
160
150
|
feature, its diff, and the nearby code affected by the change. This is a targeted
|
|
161
151
|
feature audit, not a repository-wide cleanup pass. Findings are recorded in
|
|
162
|
-
`devflow/context/findings.md` with durable IDs and statuses, as `/audit`
|
|
152
|
+
`devflow/context/{xxx-slug}/findings.md` with durable IDs and statuses, as `/audit`
|
|
163
153
|
defines; the ledger reports status and never scopes what the audit examines.
|
|
164
154
|
|
|
165
155
|
For every finding:
|
|
@@ -173,35 +163,21 @@ For every finding:
|
|
|
173
163
|
3. Report P2 and P3 findings in the final packet. Fix them only when the change
|
|
174
164
|
is small, directly caused by the current feature, and clearly required by the
|
|
175
165
|
project standards.
|
|
176
|
-
4. If a
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
1. Rerun the documented `Verify` command when present; otherwise rerun the
|
|
182
|
-
affected build, lint, typecheck, and test commands.
|
|
183
|
-
2. Rerun the acceptance evidence affected by the repair.
|
|
184
|
-
3. Recheck the repaired area using the same targeted audit criteria. When that
|
|
185
|
-
recheck confirms the original defect is gone and the repair introduced no
|
|
186
|
-
new one, move the `fixed` finding to `closed` under the `/audit` close
|
|
187
|
-
conditions and name it in the packet. An unrelated new finding gets its own
|
|
188
|
-
ledger entry and does not keep the repaired one open.
|
|
189
|
-
4. Create a checkpoint commit only after the repair and its checks pass.
|
|
166
|
+
4. If a finding cannot be resolved safely in-scope, leave it `open` and describe
|
|
167
|
+
it in the final packet. A finding that is wrong goes back to `/audit` to
|
|
168
|
+
invalidate with recorded evidence; Autopilot never marks findings `invalid`
|
|
169
|
+
or `accepted`.
|
|
190
170
|
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
step into a full-project hardening pass. A broader cleanup remains a separate
|
|
194
|
-
`/audit` followed by planned `/fix` work.
|
|
171
|
+
Re-run the build, tests, and any affected checks after repairs. If a repair fails
|
|
172
|
+
twice, stop and report the blocker.
|
|
195
173
|
|
|
196
|
-
## Step 7 -
|
|
174
|
+
## Step 7 - compile the review packet
|
|
197
175
|
|
|
198
|
-
Stop
|
|
199
|
-
a full audit report:
|
|
176
|
+
Stop and produce a concise review packet:
|
|
200
177
|
|
|
201
|
-
- branch name
|
|
202
178
|
- target feature or fix
|
|
203
|
-
-
|
|
204
|
-
- what
|
|
179
|
+
- branch name
|
|
180
|
+
- what was built
|
|
205
181
|
- changed files and why each changed
|
|
206
182
|
- build/test/check commands run, with pass or fail
|
|
207
183
|
- screenshots or output paths, when relevant
|
|
@@ -210,7 +186,7 @@ a full audit report:
|
|
|
210
186
|
- self-review findings
|
|
211
187
|
- targeted audit scope and findings
|
|
212
188
|
- audit repairs made and checks rerun
|
|
213
|
-
- P0/P1 findings still `open` or `fixed` in `devflow/context/findings.md`,
|
|
189
|
+
- P0/P1 findings still `open` or `fixed` in `devflow/context/{xxx-slug}/findings.md`,
|
|
214
190
|
which block `/complete`
|
|
215
191
|
- unresolved risks or skipped checks
|
|
216
192
|
- exact next action
|
|
@@ -240,11 +216,11 @@ Stop immediately and report instead of continuing when Autopilot would need to:
|
|
|
240
216
|
- Autopilot creates checkpoint commits on the feature or fix branch after passing
|
|
241
217
|
steps.
|
|
242
218
|
- Autopilot audits the active feature and affected code, not the entire project.
|
|
243
|
-
- A P0 or P1 finding left `open` or `fixed` in `devflow/context/findings.md`
|
|
219
|
+
- A P0 or P1 finding left `open` or `fixed` in `devflow/context/{xxx-slug}/findings.md`
|
|
244
220
|
blocks readiness for `/complete`. The ledger is what makes this enforceable.
|
|
245
221
|
- Autopilot stops before `/complete`. It never merges.
|
|
246
222
|
- The Blueprint files remain the state machine. Keep
|
|
247
|
-
`
|
|
223
|
+
`devflow/context/{xxx-slug}/spec.md` accurate as steps complete.
|
|
248
224
|
- Follow `coding-standards.md`, `ai-interaction.md`, and `AGENTS.md`.
|
|
249
225
|
- Prefer fewer, higher-quality changes over broad coverage.
|
|
250
226
|
- Report uncertainty plainly. A blocked run is useful if it tells the truth.
|
|
@@ -82,7 +82,7 @@ plans aren't ready, `/prototype` if it's UI-facing and the look isn't locked, or
|
|
|
82
82
|
## Rules
|
|
83
83
|
|
|
84
84
|
- **Read-only, always.** Never write a file, never edit `build-plan.md` or
|
|
85
|
-
`
|
|
85
|
+
specs in `devflow/context/`, never branch, commit, install, or build. To act on the
|
|
86
86
|
briefing, the user runs `/feature` next.
|
|
87
87
|
- **Explain, don't spec.** Size, dependencies, and a likely sub-split are the
|
|
88
88
|
value here; the actual build steps are `/feature`'s job. Don't write step lists.
|
|
@@ -28,7 +28,7 @@ It changes no source and commits nothing — it executes, inspects, and reports
|
|
|
28
28
|
|
|
29
29
|
## Step 1 - Build the Dual-Axis Review Matrix
|
|
30
30
|
|
|
31
|
-
Read the target spec from `devflow/context/{xxx-slug}/spec.md`
|
|
31
|
+
Read the target spec from `devflow/context/{xxx-slug}/spec.md` and `devflow/context/coding-standards.md`. Prepare the inspection criteria across two independent axes:
|
|
32
32
|
|
|
33
33
|
1. **Axis 1 (Standards & Architecture Criteria)**:
|
|
34
34
|
- Coding conventions in `coding-standards.md`
|
|
@@ -36,7 +36,7 @@ Read the target spec from `devflow/context/{xxx-slug}/spec.md` (or `devflow/cont
|
|
|
36
36
|
- Baseline 12 Fowler Code Smells (Primitive obsession, Feature envy, Shotgun surgery, Speculative generality, etc.)
|
|
37
37
|
- Multi-lane technical gates (Typecheck, test suites, zero secrets, zero P0/P1 findings)
|
|
38
38
|
2. **Axis 2 (Spec Fidelity & Behavioral Observables)**:
|
|
39
|
-
- Line-by-line Acceptance Criteria (ACs) and "Done When" observables from `
|
|
39
|
+
- Line-by-line Acceptance Criteria (ACs) and "Done When" observables from `devflow/context/{xxx-slug}/spec.md`
|
|
40
40
|
- Scope Creep detection (Unrequested behavior in the diff)
|
|
41
41
|
- Missing Requirements detection (Unimplemented edge cases)
|
|
42
42
|
|
|
@@ -69,7 +69,7 @@ Format the report into two distinct, un-merged review axes:
|
|
|
69
69
|
- [pass] Type Safety: `tsc --noEmit` (0 errors)
|
|
70
70
|
- [pass] Automated Tests: `npm test` (All tests green)
|
|
71
71
|
- [pass] Security & Hygiene: Zero secrets, sanitized inputs
|
|
72
|
-
- [pass] Findings Ledger: 0 blocking P0/P1 in `devflow/context/findings.md`
|
|
72
|
+
- [pass] Findings Ledger: 0 blocking P0/P1 in `devflow/context/{xxx-slug}/findings.md`
|
|
73
73
|
- **Deep Modules & Architecture**:
|
|
74
74
|
- [pass] Seam Integrity: Public interfaces remain small, implementation details hidden.
|
|
75
75
|
- [pass] The Deletion Test: Complexity is concentrated inside the module, not scattered across callers.
|
|
@@ -78,7 +78,7 @@ Format the report into two distinct, un-merged review axes:
|
|
|
78
78
|
|
|
79
79
|
## 🎯 Axis 2: Spec Fidelity & Behavioral Acceptance Gate
|
|
80
80
|
|
|
81
|
-
Line-by-line verification against `
|
|
81
|
+
Line-by-line verification against `devflow/context/{xxx-slug}/spec.md`:
|
|
82
82
|
- [pass] **AC-1 (<title>)**: <Observed empirical evidence / screenshot path>
|
|
83
83
|
- [pass] **AC-2 (<title>)**: <Observed empirical evidence / terminal output>
|
|
84
84
|
- [fail] **AC-3 (<title>)**: <Exact observed failure with reproduction command>
|
|
@@ -24,7 +24,7 @@ passes.
|
|
|
24
24
|
|
|
25
25
|
## Before you start
|
|
26
26
|
|
|
27
|
-
Confirm the target work is actually finished: `devflow/context/{xxx-slug}/spec.md`
|
|
27
|
+
Confirm the target work is actually finished: `devflow/context/{xxx-slug}/spec.md`
|
|
28
28
|
holds a real spec, its steps are built on a branch, and `Verify`, or the fallback
|
|
29
29
|
build and tests, passes. If any of the
|
|
30
30
|
spec's done-whens are behavioral, `/check` should have proven them against the
|
|
@@ -36,9 +36,8 @@ the steps to be pre-committed.
|
|
|
36
36
|
|
|
37
37
|
Before logging or committing, run a short safety pass and report blockers only:
|
|
38
38
|
|
|
39
|
-
- active spec exists and the work is not being completed directly from `main` or `master`
|
|
40
|
-
- changed files are tied to the active spec, with no unrelated dirty work mixed
|
|
41
|
-
in (a dirty `devflow/context/findings.md` is expected, since `/audit` writes it)
|
|
39
|
+
- active spec exists in `devflow/context/{xxx-slug}/spec.md` and the work is not being completed directly from `main` or `master`
|
|
40
|
+
- changed files are tied to the active spec, with no unrelated dirty work mixed in
|
|
42
41
|
- the exact `Verify` command from `AGENTS.md` passed in this session, when one is
|
|
43
42
|
declared; otherwise the build passed, and tests passed when the project has a
|
|
44
43
|
declared test command and the change touched logic
|
|
@@ -46,7 +45,7 @@ Before logging or committing, run a short safety pass and report blockers only:
|
|
|
46
45
|
a clear manual try path
|
|
47
46
|
- if workflow files changed, `.agents` and `.claude` stayed in sync where both
|
|
48
47
|
adapters exist
|
|
49
|
-
- no P0 or P1 finding in `devflow/context/findings.md` is `open` or `fixed`.
|
|
48
|
+
- no P0 or P1 finding in `devflow/context/{xxx-slug}/findings.md` is `open` or `fixed`.
|
|
50
49
|
`fixed` still blocks on purpose: the repair exists but no review has looked at
|
|
51
50
|
it - run `/audit` to close it. The only waivers are `accepted` (the user's
|
|
52
51
|
explicit decision in the current chat, reason recorded; never set it for
|
|
@@ -64,48 +63,16 @@ Check whether the spec is a feature, fix, or rollback. A fix is marked
|
|
|
64
63
|
`Type: Fix` and has no build-plan number. A rollback is marked `Type: Rollback`
|
|
65
64
|
and records the exact target feature, archive, commit, and parent.
|
|
66
65
|
|
|
67
|
-
- **Feature** - archive `devflow/context/
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
- **Rollback** - archive it to
|
|
73
|
-
`devflow/history/rollbacks/YYYY-MM-DD-NN-name.md`, preserving the original
|
|
74
|
-
completed feature archive. Create `devflow/history/rollbacks/` first if an
|
|
75
|
-
older Blueprint installation does not have it yet. Uncheck the exact target item in
|
|
76
|
-
`devflow/build-plan.md` and its parent when applicable, then append a concise
|
|
77
|
-
note to the target line with the rollback date and archive path. Keep the
|
|
78
|
-
feature number stable. If the user later decides the feature is permanently
|
|
79
|
-
abandoned rather than pending rebuild, that roadmap decision is a separate
|
|
80
|
-
plan edit.
|
|
81
|
-
|
|
82
|
-
**Archive resolved findings.** If `devflow/context/findings.md` holds any
|
|
66
|
+
- **Feature** - archive `devflow/context/{xxx-slug}/spec.md` to `devflow/history/features/{xxx-slug}.md`, check it off in `devflow/build-plan.md` (and its parent item once all sub-items are checked), and record an entry into `devflow/history/HISTORY.md`.
|
|
67
|
+
- **Fix** - archive `devflow/context/{xxx-slug}/spec.md` to `devflow/history/fixes/{xxx-slug}.md`, and record an entry into `devflow/history/HISTORY.md`.
|
|
68
|
+
- **Rollback** - archive `devflow/context/{xxx-slug}/spec.md` to `devflow/history/rollbacks/YYYY-MM-DD-{xxx-slug}.md`, preserving the original completed feature archive. Uncheck the target item in `devflow/build-plan.md` and record in `devflow/history/HISTORY.md`.
|
|
69
|
+
|
|
70
|
+
**Archive resolved findings.** If `devflow/context/{xxx-slug}/findings.md` holds any
|
|
83
71
|
findings, append a `## Findings` section to the archive file just written with
|
|
84
72
|
every `closed`, `accepted`, or `invalid` entry at its final status (`accepted`
|
|
85
|
-
entries keep their recorded reason).
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
work archives with the item that resolved it; its **Found** line preserves
|
|
89
|
-
where it came from. Then remove the archived entries from the ledger. Unresolved entries (`open` or `fixed` P2/P3, and `unverified`
|
|
90
|
-
leads) stay in the ledger with their IDs so they are never silently dropped.
|
|
91
|
-
When nothing remains, reset the ledger to exactly this stub, and create it the
|
|
92
|
-
same way if the file is missing (an older install):
|
|
93
|
-
|
|
94
|
-
# Findings
|
|
95
|
-
|
|
96
|
-
> **Generated file.** The findings ledger: review findings raised by `/audit`
|
|
97
|
-
> against the work in progress, each with a durable ID, severity (P0-P3), and
|
|
98
|
-
> status. `/implement` marks repaired findings `fixed`, a later `/audit` pass
|
|
99
|
-
> moves them to `closed`, and `/complete` refuses to merge while any P0 or P1
|
|
100
|
-
> finding is `open` or `fixed`, then archives resolved findings with the work
|
|
101
|
-
> and resets this file.
|
|
102
|
-
|
|
103
|
-
_No findings recorded. `/audit` appends findings here when it finds them._
|
|
104
|
-
|
|
105
|
-
Then reset `devflow/context/current-feature.md` to its current stub ("nothing
|
|
106
|
-
in progress"), including `/rollback` alongside `/feature` and `/fix`. Don't
|
|
107
|
-
commit yet; the next step makes one work commit covering the code and these doc
|
|
108
|
-
changes. The archive is the build history.
|
|
73
|
+
entries keep their recorded reason).
|
|
74
|
+
|
|
75
|
+
**Clean up run workspace.** Delete the task directory `devflow/context/{xxx-slug}/`. In Pure Multi-Run architecture, completed work leaves zero residual stubs in `devflow/context/`.
|
|
109
76
|
|
|
110
77
|
**Discard consumed prototypes.** If this feature built the look from `prototypes/`
|
|
111
78
|
- its Design reference pointed there and an early step ported `prototypes/theme.css`
|
|
@@ -159,7 +126,7 @@ Finish with a concise **How to try it** note for the completed work. For a
|
|
|
159
126
|
rollback, explain how to confirm the removed behavior is gone and name one
|
|
160
127
|
unaffected regression path. If the
|
|
161
128
|
manual path is more than a couple of steps, tell the user to run `/try latest`;
|
|
162
|
-
that command can read the archived feature
|
|
129
|
+
that command can read the archived feature from history.
|
|
163
130
|
|
|
164
131
|
## Rules
|
|
165
132
|
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: continuous
|
|
3
|
+
description: "[devflow] Autonomous multi-feature delivery loop in Nexus-DevFlow: completes planned features serially from devflow/build-plan.md without review pauses. Maintains safety boundaries, Task-Isolated Living Spec, branch isolation, TDD verification, quality gates, and local squash-merges into main. Use when running /continuous, $continuous, or executing Continuous Mode."
|
|
4
|
+
argument-hint: "[{resume, max-features, or start-feature}]"
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# continuous - Complete the Build Plan One Local Feature at a Time
|
|
8
|
+
|
|
9
|
+
Where this sits in the workflow:
|
|
10
|
+
|
|
11
|
+
```text
|
|
12
|
+
/status ──▶ [continuous] ──▶ Final Review Packet
|
|
13
|
+
(ready) (Serial Loop: (Local main only,
|
|
14
|
+
Spec ➔ TDD ➔ never pushed)
|
|
15
|
+
Gates ➔ Merge)
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
`/continuous` (หรือ `$continuous`) คือโหมดการทำงานแบบ Autonomous Multi-Feature Delivery Loop สำหรับจัดส่งฟีเจอร์ที่อยู่ใน `devflow/build-plan.md` ต่อเนื่องทีละฟีเจอร์ในเครื่อง Local โดยไม่ต้องหยุดรอ Manual Review Prompts ในแต่ละขั้นตอนย่อย แต่ยังคงรักษาความเข้มงวดของ **The 3-Pillars Model & Task-Isolated Living Spec (`devflow/context/{xxx-slug}/spec.md`)**, การทำ TDD, การตรวจ Quality Gates, การบันทึก Findings Ledger, และการ Squash-merge ลง Local Main Commit ทีละฟีเจอร์อย่างปลอดภัย 100%
|
|
19
|
+
|
|
20
|
+
### ขอบเขตสิทธิ์ที่ได้รับอนุญาตเฉพาะในเครื่อง Local:
|
|
21
|
+
- สร้างและสลับ Feature Branch ในเครื่อง Local
|
|
22
|
+
- บันทึก Checkpoint Commits ย่อยบน Branch
|
|
23
|
+
- บันทึก Feature Commit สุดท้าย
|
|
24
|
+
- Squash-merge ฟีเจอร์ที่เสร็จสมบูรณ์ลง Default Branch ของ Local
|
|
25
|
+
- ลบ Feature Branch เฉพาะใน Local หลังรวมโค้ดสำเร็จ
|
|
26
|
+
- วนลูปเริ่มทำฟีเจอร์ที่ยังไม่ได้เช็ค (`- [ ]`) รายการถัดไปใน `build-plan.md`
|
|
27
|
+
|
|
28
|
+
### ข้อจำกัดความปลอดภัยเด็ดขาด (Strict Safety Boundaries):
|
|
29
|
+
- **ห้าม** Push ขึ้น Remote Repository
|
|
30
|
+
- **ห้าม** Deploy หรือเผยแพร่ (Publish) สู่ภายนอก
|
|
31
|
+
- **ห้าม** ลบข้อมูลจริง, ทำลาย Database, หรือรัน Destructive Migration
|
|
32
|
+
- **ห้าม** กด Accept Finding หรือเพิกเฉยต่อ Failing Quality Gate แทนมนุษย์
|
|
33
|
+
|
|
34
|
+
---
|
|
35
|
+
|
|
36
|
+
## Input & Target Selection
|
|
37
|
+
|
|
38
|
+
- **ไม่ระบุ Argument (`/continuous`)**:
|
|
39
|
+
1. หากมีฟีเจอร์ค้างอยู่ใน `devflow/context/{xxx-slug}/` ให้ทำต่อจากขั้นตอนย่อยแรกที่ยังไม่ได้เช็ค (`- [ ]`)
|
|
40
|
+
2. หากไม่มี ให้เลือกฟีเจอร์แรกที่ยังไม่ได้เช็ค (`- [ ]`) ใน `devflow/build-plan.md`
|
|
41
|
+
3. วนลูปทำต่อเนื่องตามลำดับใน `build-plan.md` จนกว่าจะหมด หรือครบตามจำนวน `continuous.maxFeatures` ใน `devflow/config.json`
|
|
42
|
+
- **ระบุ `resume` (`/continuous resume`)**: ทำงานต่อจากฟีเจอร์และขั้นตอนย่อยที่ค้างอยู่ทันที
|
|
43
|
+
- **ระบุชื่อหรือหมายเลขฟีเจอร์ (`/continuous 13`)**: เริ่มต้นจากฟีเจอร์ที่ระบุ แล้ววนลูปต่อไปยังฟีเจอร์ถัดไป
|
|
44
|
+
|
|
45
|
+
---
|
|
46
|
+
|
|
47
|
+
## Step 1: Preflight Safety Check (ตรวจสอบความพร้อมก่อนเริ่ม)
|
|
48
|
+
|
|
49
|
+
อ่านบริบทตั้งต้น:
|
|
50
|
+
- `AGENTS.md`
|
|
51
|
+
- `devflow/config.json` (หากไม่มี ให้ใช้ค่า Defaults อย่างปลอดภัย; หาก Invalid ให้หยุดและชี้ไปที่ `/doctor`)
|
|
52
|
+
- `devflow/project-plan.md` และ `devflow/build-plan.md`
|
|
53
|
+
- `devflow/context/project-overview.md`
|
|
54
|
+
- `devflow/context/{xxx-slug}/` (ถ้ามีงานค้างอยู่)
|
|
55
|
+
- `devflow/context/coding-standards.md` และ `devflow/context/ai-interaction.md`
|
|
56
|
+
- สถานะ Git (`git status`, `git branch`, recent log)
|
|
57
|
+
|
|
58
|
+
### กฎการเริ่มงาน (Start Conditions):
|
|
59
|
+
1. สถานะ Git Working Tree สะอาด (Clean) บน Default Branch หรือมีเฉพาะ Diff ของฟีเจอร์ปัจจุบัน
|
|
60
|
+
2. `devflow/build-plan.md` มีฟีเจอร์ที่ยังไม่ได้ทำเหลืออยู่
|
|
61
|
+
3. ไม่มี Finding ระดับ P0 หรือ P1 ค้างในสถานะ `open` หรือ `fixed`
|
|
62
|
+
4. บันทึก Commit SHA ตั้งต้นของ Default Branch ไว้สำหรับสรุปผลในรายงานสุดท้าย
|
|
63
|
+
|
|
64
|
+
---
|
|
65
|
+
|
|
66
|
+
## Step 2: Serial Feature Lifecycle (วงจรการส่งมอบทีละฟีเจอร์)
|
|
67
|
+
|
|
68
|
+
ดำเนินงานวนลูปทีละ 1 ฟีเจอร์ตามลำดับ:
|
|
69
|
+
|
|
70
|
+
### 2.1 Select & Spec (เลือกและร่างสเปก)
|
|
71
|
+
- หาก Resuming: ใช้ Spec เดิมใน `devflow/context/{xxx-slug}/spec.md`
|
|
72
|
+
- หากเป็นฟีเจอร์ใหม่: ถอดความต้องการจาก `build-plan.md` และสร้าง Task Workspace ที่ `devflow/context/{xxx-slug}/` พร้อมเขียน `spec.md`, `stage.md`, `findings.md` และวิเคราะห์ Red-team ก่อนเริ่มโค้ด
|
|
73
|
+
|
|
74
|
+
### 2.2 Create / Resume Feature Branch
|
|
75
|
+
- สร้าง Branch ตาม Prefix ใน Config (เช่น `feature/061-slug`) จาก Default Branch
|
|
76
|
+
|
|
77
|
+
### 2.3 Implement Small Steps with Strict TDD
|
|
78
|
+
- ดำเนินการสร้างฟังก์ชันทีละ Task ตาม Checklist ใน Spec:
|
|
79
|
+
1. `[TDD-Red]`: เขียน Unit Test ก่อน
|
|
80
|
+
2. `[TDD-Green]`: เขียนโค้ดขั้นต่ำให้ Test ผ่าน
|
|
81
|
+
3. `[TDD-Refactor]`: ปรับแต่งโค้ดให้สะอาดและรัน Verification ผ่าน
|
|
82
|
+
4. ทำเครื่องหมาย `- [x]` ใน Spec และบันทึก Checkpoint Commit บน Branch (หาก `workflow.checkpointCommits: "enabled"`)
|
|
83
|
+
|
|
84
|
+
### 2.4 Apply Continuous Quality Gates
|
|
85
|
+
ตรวจสอบตามการตั้งค่า `qualityGates.continuous` ใน `devflow/config.json`:
|
|
86
|
+
- **Audit**: `manual` (ข้ามอัตโนมัติ), `when-sensitive` (รันเมื่อแตะ Auth/Security/Database/Secrets), `always` (รันทุกฟีเจอร์)
|
|
87
|
+
- **Check**: `manual` (ข้ามอัตโนมัติ), `when-behavioral` (รันเมื่อมี Runtime Behavior เช่น UI/CLI/API), `always` (รันทุกฟีเจอร์)
|
|
88
|
+
- **Try Guide**: `manual` (ข้ามอัตโนมัติ), `when-user-facing` (สร้าง Try Guide เมื่อเป็น UI/CLI), `always` (สร้างทุกฟีเจอร์)
|
|
89
|
+
|
|
90
|
+
### 2.5 Repair Findings
|
|
91
|
+
- ซ่อมแซม Finding ระดับ P0/P1 ที่เกิดขึ้นจากฟีเจอร์นี้โดยอัตโนมัติ (ไม่เกิน `continuous.maxRepairAttempts` ครั้ง)
|
|
92
|
+
- หากไม่สามารถซ่อมแซมได้ หรือมี P0/P1 ค้างอยู่ ให้หยุดการทำงานทันที
|
|
93
|
+
|
|
94
|
+
### 2.6 Complete Locally Like a Human
|
|
95
|
+
- รัน Verification ขั้นสุดท้าย
|
|
96
|
+
- ย้ายและ Archive เอกสารไปที่ `devflow/history/features/{xxx-slug}.md`
|
|
97
|
+
- อัปเดตเช็คบ็อกซ์ใน `devflow/build-plan.md`
|
|
98
|
+
- ลบโฟลเดอร์รัน `devflow/context/{xxx-slug}/`
|
|
99
|
+
- Squash-merge Feature Branch เข้าสู่ Local Main และลบ Feature Branch ใน Local
|
|
100
|
+
- นับจำนวนฟีเจอร์ที่สำเร็จเพิ่มขึ้น 1
|
|
101
|
+
|
|
102
|
+
---
|
|
103
|
+
|
|
104
|
+
## Step 3: Optional Final Integration Audit
|
|
105
|
+
|
|
106
|
+
เมื่อครบกำหนดจำนวนฟีเจอร์หรือหมด `build-plan.md` หาก `continuous.finalIntegrationAudit: true` ให้รันการตรวจสอบความเข้ากันได้แบบบูรณาการ (Cross-Feature Contracts & Seams) จากจุดเริ่มต้นถึง HEAD ปัจจุบัน
|
|
107
|
+
|
|
108
|
+
---
|
|
109
|
+
|
|
110
|
+
## Step 4: Stop & Report (สรุปรายงานผลลัพธ์)
|
|
111
|
+
|
|
112
|
+
เมื่อการทำงานสิ้นสุด (ไม่ว่าจะสำเร็จครบถ้วน หรือหยุดเนื่องจากติดเงื่อนไขความปลอดภัย) ให้รายงานสรุปเป็นภาษาไทย:
|
|
113
|
+
- Commit เริ่มต้น และ Commit สุดท้ายของ Default Branch
|
|
114
|
+
- รายชื่อฟีเจอร์ที่จัดส่งสำเร็จในรอบนี้ พร้อม Commit Hash
|
|
115
|
+
- ผลการรัน Quality Gates และการซ่อมแซม Findings (ถ้ามี)
|
|
116
|
+
- ความคืบหน้าภาพรวมของ `build-plan.md` และฟีเจอร์ถัดไป
|
|
117
|
+
- ย้ำเตือนชัดเจนว่า **ไม่มีการ Push ใดๆ ขึ้น Remote Repository**
|