devflow-kit 3.9.0 → 3.10.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/CHANGELOG.md +111 -0
- package/README.md +1 -1
- package/dist/agents/code.md +6 -6
- package/dist/agents/fix.md +6 -6
- package/dist/agents/harden.md +7 -6
- package/dist/agents/refactor.md +6 -6
- package/dist/cli/commands/ambient.js +10 -2
- package/dist/cli/commands/compliance-prompts.js +9 -4
- package/dist/cli/commands/compliance.js +171 -24
- package/dist/cli/commands/curation.js +12 -7
- package/dist/cli/commands/gate-level-prompts.js +39 -25
- package/dist/cli/commands/gates.js +5 -7
- package/dist/cli/commands/init.js +142 -138
- package/dist/cli/commands/install-report.js +34 -0
- package/dist/cli/commands/legacy-sweep.js +64 -0
- package/dist/cli/commands/proxy.js +6 -1
- package/dist/cli/commands/rules.js +29 -12
- package/dist/cli/commands/skills.js +42 -9
- package/dist/cli/commands/tracker.js +9 -3
- package/dist/cli/commands/uninstall.js +277 -51
- package/dist/commands/bug-analysis.md +69 -120
- package/dist/commands/dynamic-build.md +23 -23
- package/dist/commands/implement.md +46 -32
- package/dist/commands/release.md +1 -1
- package/dist/commands/resolve.md +35 -31
- package/dist/commands/self-review.md +8 -7
- package/dist/compliance-off/agents/git.md +120 -0
- package/dist/compliance-off/agents/triage.md +180 -0
- package/dist/compliance-off/commands/bug-analysis.md +398 -0
- package/dist/compliance-off/commands/code-review.md +520 -0
- package/dist/compliance-off/commands/dynamic-build.md +1251 -0
- package/dist/compliance-off/commands/dynamic-tickets.md +676 -0
- package/dist/compliance-off/commands/implement.md +736 -0
- package/dist/compliance-off/commands/plan.md +671 -0
- package/dist/compliance-off/commands/release.md +309 -0
- package/dist/compliance-off/commands/resolve.md +742 -0
- package/dist/compliance-off/skills/git/references/decision-markers.md +17 -0
- package/dist/compliance-off/skills/git/references/learn-conventions.md +80 -0
- package/dist/compliance-off/skills/git/references/pr/check-ci-status.md +33 -0
- package/dist/compliance-off/skills/git/references/pr/check-merge-readiness.md +49 -0
- package/dist/compliance-off/skills/git/references/pr/fetch-review-threads.md +52 -0
- package/dist/compliance-off/skills/git/references/pr/validate-branch.md +47 -0
- package/dist/compliance-off/skills/git/references/tracker/_contract.md +33 -0
- package/dist/compliance-off/skills/git/references/tracker/_mcp.md +153 -0
- package/dist/compliance-off/skills/git/references/tracker/github/create-release.md +35 -0
- package/dist/compliance-off/skills/git/references/tracker/github/ensure-pr-ready.md +100 -0
- package/dist/compliance-off/skills/git/references/tracker/github/ensure-traceable-issue.md +74 -0
- package/dist/compliance-off/skills/git/references/tracker/github/fetch-issue.md +69 -0
- package/dist/compliance-off/skills/git/references/tracker/github/fetch-issues-batch.md +65 -0
- package/dist/compliance-off/skills/git/references/tracker/github/gather-release-evidence.md +48 -0
- package/dist/compliance-off/skills/git/references/tracker/github/setup-task.md +77 -0
- package/dist/compliance-off/skills/git/references/tracker/jira/create-release.md +35 -0
- package/dist/compliance-off/skills/git/references/tracker/jira/ensure-pr-ready.md +100 -0
- package/dist/compliance-off/skills/git/references/tracker/jira/ensure-traceable-issue.md +61 -0
- package/dist/compliance-off/skills/git/references/tracker/jira/fetch-issue.md +51 -0
- package/dist/compliance-off/skills/git/references/tracker/jira/fetch-issues-batch.md +63 -0
- package/dist/compliance-off/skills/git/references/tracker/jira/gather-release-evidence.md +47 -0
- package/dist/compliance-off/skills/git/references/tracker/jira/setup-task.md +82 -0
- package/dist/compliance-off/skills/git/references/tracker/linear/create-release.md +35 -0
- package/dist/compliance-off/skills/git/references/tracker/linear/ensure-pr-ready.md +100 -0
- package/dist/compliance-off/skills/git/references/tracker/linear/ensure-traceable-issue.md +61 -0
- package/dist/compliance-off/skills/git/references/tracker/linear/fetch-issue.md +51 -0
- package/dist/compliance-off/skills/git/references/tracker/linear/fetch-issues-batch.md +63 -0
- package/dist/compliance-off/skills/git/references/tracker/linear/gather-release-evidence.md +47 -0
- package/dist/compliance-off/skills/git/references/tracker/linear/setup-task.md +83 -0
- package/dist/compliance-off/skills/git/references/trust-rule.md +7 -0
- package/dist/core/agent-models.js +19 -4
- package/dist/core/assets.js +126 -17
- package/dist/core/compliance-off-files.js +27 -0
- package/dist/core/curation-variants.js +460 -112
- package/dist/core/flags.js +2 -2
- package/dist/core/installed-variants.js +63 -0
- package/dist/core/manifest.js +48 -5
- package/dist/core/mds-variants.js +700 -3
- package/dist/core/orphan-sweep.js +11 -2
- package/dist/core/plugins.js +65 -8
- package/dist/curation-compliance-off/agents/triage.md +176 -0
- package/dist/curation-compliance-off/commands/bug-analysis.md +349 -0
- package/dist/curation-compliance-off/commands/code-review.md +481 -0
- package/dist/curation-compliance-off/commands/dynamic-build.md +1211 -0
- package/dist/curation-compliance-off/commands/dynamic-tickets.md +634 -0
- package/dist/curation-compliance-off/commands/implement.md +689 -0
- package/dist/curation-compliance-off/commands/plan.md +631 -0
- package/dist/curation-compliance-off/commands/release.md +279 -0
- package/dist/curation-compliance-off/commands/resolve.md +692 -0
- package/dist/curation-off/agents/code.md +6 -6
- package/dist/curation-off/agents/fix.md +6 -6
- package/dist/curation-off/agents/harden.md +7 -6
- package/dist/curation-off/agents/refactor.md +6 -6
- package/dist/curation-off/commands/bug-analysis.md +69 -119
- package/dist/curation-off/commands/dynamic-build.md +23 -23
- package/dist/curation-off/commands/implement.md +46 -32
- package/dist/curation-off/commands/release.md +1 -1
- package/dist/curation-off/commands/resolve.md +35 -31
- package/dist/curation-off/commands/self-review.md +8 -7
- package/dist/skills/git/references/pr/resolve-review-threads.md +1 -1
- package/dist/targets/claude-code/behavior-install.js +23 -9
- package/dist/targets/claude-code/charter-render.js +374 -0
- package/dist/targets/claude-code/compliance-install.js +32 -12
- package/dist/targets/claude-code/compliance-off-files.js +245 -0
- package/dist/targets/claude-code/curation-install.js +570 -100
- package/dist/targets/claude-code/installer.js +467 -62
- package/dist/targets/claude-code/language-stamp.js +6 -0
- package/dist/targets/claude-code/linked-folder.js +182 -0
- package/dist/targets/claude-code/reference-converge.js +118 -0
- package/dist/targets/claude-code/tracker-install.js +21 -8
- package/dist/targets/claude-code/tracker-servers.js +20 -6
- package/dist/targets/claude-code/workflow-folder-install.js +231 -0
- package/dist/variant-axes.json +109 -0
- package/package.json +1 -1
- package/src/assets/agents/_partials/_code.mds +6 -6
- package/src/assets/agents/evaluate.md +1 -1
- package/src/assets/agents/git.mds +32 -0
- package/src/assets/agents/harden.mds +7 -6
- package/src/assets/agents/test.md +21 -12
- package/src/assets/agents/triage.mds +2 -0
- package/src/assets/agents/validate.md +10 -10
- package/src/assets/commands/_partials/_compliance.mds +5 -3
- package/src/assets/commands/_partials/_engine.mds +9 -8
- package/src/assets/commands/_partials/_publication.mds +10 -1
- package/src/assets/commands/bug-analysis.mds +80 -126
- package/src/assets/commands/code-review.mds +43 -0
- package/src/assets/commands/dynamic-build.mds +109 -15
- package/src/assets/commands/dynamic-tickets.mds +13 -0
- package/src/assets/commands/implement.mds +145 -33
- package/src/assets/commands/plan.mds +19 -0
- package/src/assets/commands/release.mds +50 -1
- package/src/assets/commands/resolve.mds +217 -32
- package/src/assets/commands/self-review.mds +8 -7
- package/src/assets/mds/git/_ops.mds +23 -0
- package/src/assets/mds/git/_ops_steps.mds +17 -0
- package/src/assets/mds/git/_pr.mds +1 -1
- package/src/assets/mds/git/_references.mds +6 -0
- package/src/assets/mds/tracker/_common.mds +4 -0
- package/src/assets/mds/tracker/_github.mds +42 -0
- package/src/assets/mds/tracker/_jira.mds +43 -0
- package/src/assets/mds/tracker/_linear.mds +43 -0
- package/src/assets/rules/quality.md +2 -0
- package/src/assets/scripts/ci-wait.cjs +204 -126
- package/src/assets/scripts/hooks/assets/implement-installed +1 -0
- package/src/assets/scripts/hooks/assets/orchestrator-charter.md +13 -11
- package/src/assets/scripts/hooks/preamble +18 -8
- package/src/assets/scripts/hooks/session-start-orchestrator +4 -2
- package/src/assets/scripts/pr-evidence.cjs +41 -2
- package/src/assets/scripts/verify-evidence.cjs +408 -56
- package/src/assets/skills/agent-references/references/commands/implement-revalidate.md +3 -3
- package/src/assets/skills/agent-references/references/commands/plan-levels.md +1 -1
- package/src/assets/skills/agent-references/references/synthesize/bug-analysis.md +6 -2
- package/src/assets/skills/agent-references/references/validate/passed-alone.md +7 -7
- package/src/assets/skills/docs-framework/SKILL.md +5 -2
- package/src/assets/skills/git/SKILL.md +3 -3
- package/src/assets/skills/git/references/github-api.md +2 -139
- package/src/assets/skills/git/references/github-posting.md +158 -0
- package/src/assets/skills/review-methodology/SKILL.md +1 -1
- package/src/assets/skills/review-methodology/references/patterns.md +1 -1
- package/src/assets/skills/review-methodology/references/report-template.md +1 -2
- package/src/assets/skills/testing/SKILL.md +2 -4
|
@@ -87,7 +87,12 @@ Pass `FEATURE_KNOWLEDGE` only to agents whose contract declares it; the Validate
|
|
|
87
87
|
|
|
88
88
|
{{evidence_policy()}}
|
|
89
89
|
|
|
90
|
+
<!-- compliance:on -->
|
|
90
91
|
Reuse this result for all subsequent phases: it decides whether a real release gathers and traces its evidence (Phases 4–5), passes it to the release notes (step 4), and back-links shipped issues and associates them with the release (steps 4b–4c).
|
|
92
|
+
<!-- compliance:off -->
|
|
93
|
+
Reuse this result for all subsequent phases: it decides whether a real release gathers its commit list (Phase 4) and passes it to the release notes (step 4).
|
|
94
|
+
When `EVIDENCE_POLICY` is `required`, record `TRACEABILITY: DEGRADED (compliance off on this machine; the repository requires evidence)` once, for the completion report.
|
|
95
|
+
<!-- compliance:end -->
|
|
91
96
|
|
|
92
97
|
### Phase 2: Detect Release Process (First Run Only)
|
|
93
98
|
|
|
@@ -135,17 +140,30 @@ Pre-release checks:
|
|
|
135
140
|
|
|
136
141
|
Spawn `Agent(subagent_type="Validate")` for build + test.
|
|
137
142
|
|
|
143
|
+
<!-- compliance:on -->
|
|
138
144
|
**Gather release evidence** — under either policy when `DRY_RUN` is true, otherwise only when `EVIDENCE_POLICY` is `required`: spawn `Agent(subagent_type="Git")` with `gather-release-evidence` operation; pass `WORKTREE_PATH` if provided. Keep `COMMIT_LIST`, `SHIPPED_ISSUES`, `### TRACE_MAP` and `### Status:` as RELEASE_EVIDENCE. The Git agent applies its own bounds (≤100 commits, ≤50 issues, 500 traced commits) and degrades gracefully per D4.
|
|
145
|
+
<!-- compliance:off -->
|
|
146
|
+
**Gather the commit list** — under either policy when `DRY_RUN` is true, otherwise only when `EVIDENCE_POLICY` is `required`: spawn `Agent(subagent_type="Git")` with `gather-release-evidence` operation; pass `WORKTREE_PATH` if provided. Keep `COMMIT_LIST` alone as RELEASE_EVIDENCE. The Git agent applies its own bounds and degrades gracefully per D4.
|
|
147
|
+
<!-- compliance:end -->
|
|
139
148
|
|
|
140
149
|
Unless `DRY_RUN` is true, write `.release/.progress.json` checkpoint, with RELEASE_EVIDENCE when it was gathered — a dry run leaves nothing to resume.
|
|
141
150
|
|
|
151
|
+
<!-- compliance:on -->
|
|
142
152
|
`--dry-run`: report what would happen and, when evidence was gathered, the Phase 5 traceability arms, the untraced list and the exempt counts — never asking — then **halt after this phase**.
|
|
153
|
+
<!-- compliance:off -->
|
|
154
|
+
`--dry-run`: report what would happen and, when the commit list was gathered, that list — never asking — then **halt after this phase**.
|
|
155
|
+
<!-- compliance:end -->
|
|
143
156
|
|
|
144
157
|
### Phase 5: Build Release Plan
|
|
145
158
|
|
|
159
|
+
<!-- compliance:on -->
|
|
146
160
|
**Produces:** RELEASE_PLAN, TRACEABILITY_EXCEPTIONS
|
|
161
|
+
<!-- compliance:off -->
|
|
162
|
+
**Produces:** RELEASE_PLAN
|
|
163
|
+
<!-- compliance:end -->
|
|
147
164
|
**Requires:** PRE_RELEASE_RESULT, RELEASE_CONFIG, VERSION, RELEASE_EVIDENCE
|
|
148
165
|
|
|
166
|
+
<!-- compliance:on -->
|
|
149
167
|
**Traceability** (only when `EVIDENCE_POLICY` is `required`), before the confirm below. Classify RELEASE_EVIDENCE by its `### Status:` value — `READY`, `PARTIAL`, `TRUNCATED`, `DEGRADED` or `INDETERMINATE` — and by the first `### TRACE_MAP` line, `TRACE from:<ref> scanned:<n> traced:<n> untraced:<n> exempt:<n> unmatched:<n> bound:<ok|hit>`. Let *u* be its `untraced` count, and re-check traced + untraced + exempt = scanned yourself. Every arm that matches applies:
|
|
150
168
|
|
|
151
169
|
1. **Coverage unknown** — no gather ran, its output is missing or unparseable, there is no `TRACE` line, the sum does not hold, `bound:hit`, status `INDETERMINATE`, or a status that is none of the five.
|
|
@@ -177,6 +195,7 @@ Exempt (not attested): release <n> · revert <n> · bot <n> — <sha12>, …
|
|
|
177
195
|
|
|
178
196
|
No ask, but the trace lists an exempt commit ⇒ `TRACEABILITY_EXCEPTIONS` is the heading and the `Exempt` line alone, added to `.release/.progress.json` the same way: an exemption is self-asserted, so it is printed, never hidden.
|
|
179
197
|
|
|
198
|
+
<!-- compliance:end -->
|
|
180
199
|
Build ordered execution plan from RELEASE_CONFIG. For monorepo: respect dependency ordering, present package selection to user.
|
|
181
200
|
|
|
182
201
|
Confirm with user via AskUserQuestion before executing:
|
|
@@ -187,7 +206,11 @@ Confirm with user via AskUserQuestion before executing:
|
|
|
187
206
|
### Phase 6: Execute Release
|
|
188
207
|
|
|
189
208
|
**Produces:** RELEASE_RESULT
|
|
209
|
+
<!-- compliance:on -->
|
|
190
210
|
**Requires:** RELEASE_PLAN, VERSION, EVIDENCE_POLICY, RELEASE_EVIDENCE, TRACEABILITY_EXCEPTIONS
|
|
211
|
+
<!-- compliance:off -->
|
|
212
|
+
**Requires:** RELEASE_PLAN, VERSION, EVIDENCE_POLICY, RELEASE_EVIDENCE
|
|
213
|
+
<!-- compliance:end -->
|
|
191
214
|
|
|
192
215
|
Sequential execution with progress checkpoints:
|
|
193
216
|
1. **Version bumps** — write new version to configured files
|
|
@@ -196,13 +219,21 @@ Sequential execution with progress checkpoints:
|
|
|
196
219
|
**Load Companion Skills** (D-RELEASE-GIT-LOAD-LATE) — Load via Skill tool: `devflow:git`, here and not earlier: steps 1–2 only write files and `--dry-run` halts after Phase 4, so neither carries the skill. A resume that skips step 3 loads it before its next main-thread git write. If a skill fails to load, continue without it.
|
|
197
220
|
|
|
198
221
|
3. **Release commit** — `chore(release): v{VERSION}` (conventional commit)
|
|
222
|
+
<!-- compliance:on -->
|
|
199
223
|
4. **Tag and GitHub Release** — spawn `Agent(subagent_type="Git")` with `create-release` operation (the agent reads `.devflow/conventions.md` for tag format and release title conventions; compliance defaults when absent); only when `EVIDENCE_POLICY` is `required`, also pass `COMMIT_LIST` and `SHIPPED_ISSUES` from RELEASE_EVIDENCE, and `TRACEABILITY_EXCEPTIONS` when composed (Record, or the no-ask exempt rule), as inputs so the agent includes them in the release notes body.
|
|
200
224
|
4b. **Back-link shipped issues** (only when `EVIDENCE_POLICY` is `required`) — spawn `Agent(subagent_type="Git")` with `backlink-shipped-issues` operation, passing `VERSION` and `SHIPPED_ISSUES`; posts a marker-deduped comment on each issue (bounds and throttle enforced by the operation); degrade gracefully (D4) on any API failure — never block the release
|
|
201
225
|
4c. **Associate shipped issues with the release** (only when `EVIDENCE_POLICY` is `required` and `SHIPPED_ISSUES` is non-empty) — spawn `Agent(subagent_type="Git")` with `associate-release` operation, passing `VERSION` and `SHIPPED_ISSUES`; it adds each issue to the release's tracker marker and never replaces another; degrade gracefully (D4) — never block the release
|
|
226
|
+
<!-- compliance:off -->
|
|
227
|
+
4. **Tag and GitHub Release** — spawn `Agent(subagent_type="Git")` with `create-release` operation (the agent reads `.devflow/conventions.md` for tag format and release title conventions; compliance defaults when absent); only when `EVIDENCE_POLICY` is `required`, also pass `COMMIT_LIST` from RELEASE_EVIDENCE as an input so the agent includes it in the release notes body.
|
|
228
|
+
<!-- compliance:end -->
|
|
202
229
|
5. **Publish** — CI-driven (report) or manual (provide instructions)
|
|
203
230
|
6. **Post-release steps** — version bump to next dev
|
|
204
231
|
|
|
232
|
+
<!-- compliance:on -->
|
|
205
233
|
**Resume:** a checkpoint missing the RELEASE_EVIDENCE its Phase 4 gate called for is gathered again, with Phase 5's traceability step re-run, only before step 4; after step 4, report `evidence lost on resume` and continue — never block.
|
|
234
|
+
<!-- compliance:off -->
|
|
235
|
+
**Resume:** a checkpoint missing the RELEASE_EVIDENCE its Phase 4 gate called for is gathered again only before step 4; after step 4, report `evidence lost on resume` and continue — never block.
|
|
236
|
+
<!-- compliance:end -->
|
|
206
237
|
|
|
207
238
|
Delete `.release/.progress.json` on success.
|
|
208
239
|
|
|
@@ -220,7 +251,11 @@ If the orchestrator receives a `WORKTREE_PATH` context, pass it through to all s
|
|
|
220
251
|
|
|
221
252
|
On completion:
|
|
222
253
|
- Git tag created: `v{VERSION}` (or configured tag format)
|
|
254
|
+
<!-- compliance:on -->
|
|
223
255
|
- GitHub Release created with release notes — `## Traceability exceptions` last, when composed (Record, or the no-ask exempt rule)
|
|
256
|
+
<!-- compliance:off -->
|
|
257
|
+
- GitHub Release created with release notes
|
|
258
|
+
<!-- compliance:end -->
|
|
224
259
|
- Changelog updated (if configured)
|
|
225
260
|
- Version files bumped
|
|
226
261
|
- `.release/RELEASE-FLOW.md` created (first run only)
|
|
@@ -248,15 +283,25 @@ On completion:
|
|
|
248
283
|
│
|
|
249
284
|
├─ Phase 4: Pre-release Checks
|
|
250
285
|
│ ├─ Validate agent (build + test)
|
|
286
|
+
<!-- compliance:on -->
|
|
251
287
|
│ ├─ Git agent: gather release evidence + trace map (dry run, or evidence policy required)
|
|
288
|
+
<!-- compliance:off -->
|
|
289
|
+
│ ├─ Git agent: gather the commit list (dry run, or evidence policy required)
|
|
290
|
+
<!-- compliance:end -->
|
|
252
291
|
│ └─ Write progress checkpoint
|
|
253
292
|
│
|
|
254
293
|
├─ Phase 5: Build Release Plan
|
|
294
|
+
<!-- compliance:on -->
|
|
255
295
|
│ ├─ Traceability: classify the trace map; record exceptions or halt (evidence policy required)
|
|
296
|
+
<!-- compliance:end -->
|
|
256
297
|
│ └─ Confirm with user before executing
|
|
257
298
|
│
|
|
258
299
|
├─ Phase 6: Execute Release
|
|
300
|
+
<!-- compliance:on -->
|
|
259
301
|
│ ├─ Version bumps → Changelog → Commit → Git agent (tag + release) → Back-link → Associate → Publish → Post-release
|
|
302
|
+
<!-- compliance:off -->
|
|
303
|
+
│ ├─ Version bumps → Changelog → Commit → Git agent (tag + release) → Publish → Post-release
|
|
304
|
+
<!-- compliance:end -->
|
|
260
305
|
│ └─ Progress checkpoints between each step
|
|
261
306
|
│
|
|
262
307
|
└─ Phase 7: Suggest Improvements
|
|
@@ -272,10 +317,14 @@ On completion:
|
|
|
272
317
|
|
|
273
318
|
## Error Handling
|
|
274
319
|
|
|
275
|
-
- Validate agent
|
|
320
|
+
- Validate agent reports no PASS: halt, report failures, do not proceed
|
|
276
321
|
- User declines release plan: halt gracefully
|
|
322
|
+
<!-- compliance:on -->
|
|
277
323
|
- User halts at the traceability question: stop — nothing has been committed, tagged or published
|
|
278
324
|
- Git agent reports DEGRADED while gathering, back-linking or associating: warn and continue — never halt the release
|
|
325
|
+
<!-- compliance:off -->
|
|
326
|
+
- Git agent reports DEGRADED while gathering: warn and continue — never halt the release
|
|
327
|
+
<!-- compliance:end -->
|
|
279
328
|
- Git agent fails (tag/release): halt, report error, suggest manual steps
|
|
280
329
|
- Mid-release failure: progress checkpoint enables resume on next run
|
|
281
330
|
- Version file not found: halt, report which file is missing, ask user to update RELEASE-FLOW.md
|