@softure-ai/skills 0.1.2 → 0.2.1
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 +7 -1
- package/WORKFLOW.md +42 -5
- package/package.json +1 -1
- package/rules/AGENTS.md +1 -1
- package/scripts/install.mjs +60 -6
- package/skills/softure-archive/SKILL.md +15 -2
- package/skills/softure-code-review/SKILL.md +5 -2
- package/skills/softure-implement/SKILL.md +6 -4
- package/skills/softure-new/SKILL.md +24 -5
- package/skills/softure-roadmap/SKILL.md +10 -1
- package/skills/softure-worktree/SKILL.md +37 -10
- package/skills/softure-worktree/scripts/wt-roadmap.py +37 -2
- package/skills/softure-worktree-manager/SKILL.md +35 -8
package/README.md
CHANGED
|
@@ -26,7 +26,13 @@ What the installer does (idempotent; re-run on every `npm install`):
|
|
|
26
26
|
| manifest | `.claude/softure-skills.json` |
|
|
27
27
|
|
|
28
28
|
It never overwrites a skill folder it did not install. Flags: `--dry-run`, `--target <dir>`,
|
|
29
|
-
`--no-gitignore` (commit the skills instead).
|
|
29
|
+
`--no-gitignore` (commit the skills instead).
|
|
30
|
+
|
|
31
|
+
Per-project choices go into `context/workflow.json` → `install` and are applied on every install,
|
|
32
|
+
postinstall included: `"gitignore": false` commits the skills, and `"rules": ["workflow", "conventions"]`
|
|
33
|
+
injects only those sections of the rules block (sections: `language`, `workflow`, `conventions`; default:
|
|
34
|
+
all). Put project-specific skills in folders without the `softure-` prefix: installed folders are
|
|
35
|
+
overwritten on every install. Uninstall:
|
|
30
36
|
`node node_modules/@softure-ai/skills/scripts/uninstall.mjs`.
|
|
31
37
|
|
|
32
38
|
## The chain
|
package/WORKFLOW.md
CHANGED
|
@@ -37,6 +37,7 @@ or languages.
|
|
|
37
37
|
```jsonc
|
|
38
38
|
{
|
|
39
39
|
"language": "en", // ISO code (e.g. "pl"): language of artifacts and reports (skills themselves are English)
|
|
40
|
+
"timezone": "Europe/Warsaw", // optional IANA zone for every time shown in reports; default: the machine's zone
|
|
40
41
|
"mainBranch": "master",
|
|
41
42
|
"gates": { // run before every implementation commit; all must pass
|
|
42
43
|
"typecheck": "npx tsc --noEmit",
|
|
@@ -45,7 +46,9 @@ or languages.
|
|
|
45
46
|
},
|
|
46
47
|
"integration": { // optional: the slow, full suite
|
|
47
48
|
"local": "npm run test:integration:full",
|
|
48
|
-
"remote": null
|
|
49
|
+
"remote": null, // e.g. a script that runs the suite on CI and waits: "bash scripts/ci-integration.sh"
|
|
50
|
+
"cadence": "change" // "change": every change runs it before archive (default);
|
|
51
|
+
// "roadmap": once on the main branch when the roadmap is realised (softure-worktree-manager M7)
|
|
49
52
|
},
|
|
50
53
|
"migrations": { // optional: lets orchestrators detect collisions between parallel changes
|
|
51
54
|
"dir": "drizzle",
|
|
@@ -54,15 +57,25 @@ or languages.
|
|
|
54
57
|
},
|
|
55
58
|
"worktree": {
|
|
56
59
|
"setup": ["npm ci", "cp ../{repo}/.env .env"], // run inside a fresh worktree
|
|
57
|
-
"maxParallel": 4
|
|
60
|
+
"maxParallel": 4,
|
|
61
|
+
"cloudState": "main" // cloud sessions: "main" pushes the claim and every stage to origin/<main> at once (default);
|
|
62
|
+
// "branch" commits them on the session branch only, <main> changes only by the merge
|
|
58
63
|
},
|
|
59
64
|
"release": { "owner": true }, // releases and deploys are never done by skills when true
|
|
60
65
|
"research": { // optional: extra knowledge sources softure-research should consult
|
|
61
66
|
"sources": ["docs/", "context/foundation/prd.md"]
|
|
67
|
+
},
|
|
68
|
+
"install": { // optional: read by the installer on every `npm install`
|
|
69
|
+
"gitignore": true, // false: commit the installed skills (e.g. cloud sessions that never run npm install)
|
|
70
|
+
"rules": ["language", "workflow", "conventions"] // sections of rules/AGENTS.md to inject; default: all
|
|
62
71
|
}
|
|
63
72
|
}
|
|
64
73
|
```
|
|
65
74
|
|
|
75
|
+
Every key beyond `language`, `mainBranch` and `gates` is optional, and a missing key means the default
|
|
76
|
+
behaviour described where the key is used. A project adopts a convention by setting its key; nothing here
|
|
77
|
+
forces one on a project that already has its own.
|
|
78
|
+
|
|
66
79
|
## 3. Artifacts
|
|
67
80
|
|
|
68
81
|
```
|
|
@@ -161,6 +174,7 @@ updated: 2026-10-01
|
|
|
161
174
|
|
|
162
175
|
> Run-wide orders, read by orchestrators (not parsed):
|
|
163
176
|
> - Push main branch: no | at the end
|
|
177
|
+
> - Archive roadmap: no | at the end
|
|
164
178
|
> - Parallelism: up to 4 at once
|
|
165
179
|
|
|
166
180
|
## At a glance
|
|
@@ -241,6 +255,28 @@ context/backlog/roadmap-<slug>/<change-id>/change.md §4 format with `status:
|
|
|
241
255
|
`status: ready`, then take its ready entries as above. The backlog folder stays until it is empty, then is removed.
|
|
242
256
|
- An entry that got done or rejected elsewhere moves into that change's archive folder as `backlog-input.md`.
|
|
243
257
|
|
|
258
|
+
### 5.2 Closing a roadmap
|
|
259
|
+
|
|
260
|
+
`softure-roadmap --close` (run by `softure-worktree-manager` M7 when the header orders "Archive roadmap: at
|
|
261
|
+
the end", otherwise by the owner). Gates, all checked on `<main>` and reported together:
|
|
262
|
+
|
|
263
|
+
1. every row is `done` or `done_code`, or is explicitly carried over (`blocked` on something outside the repo,
|
|
264
|
+
`Mode: owner`), and the carried rows are named in the report;
|
|
265
|
+
2. `context/changes/` holds only its README, plus the folders of carried rows. Any other folder is archived first
|
|
266
|
+
(`softure-archive`, including work done without a plan), never deleted and never left behind;
|
|
267
|
+
3. when `integration` is configured: one green full run on the final `<main>` (its result line goes into the archive).
|
|
268
|
+
|
|
269
|
+
Then, in one commit (`docs(roadmap): close <slug>`):
|
|
270
|
+
|
|
271
|
+
- move `roadmap.md` to `foundation/archive/<YYYY-MM-DD>-roadmap.md` (same-day collision: `-2`, `-3`, never other
|
|
272
|
+
suffixes) and append `## Summary`: one table `| ID | Item | What changed | Merge |` (merge SHA per row) and the
|
|
273
|
+
integration result line. It is the version history; release notes can be built from it;
|
|
274
|
+
- carried rows move to the next roadmap or to a queued one, never silently dropped;
|
|
275
|
+
- if this roadmap was promoted from `roadmaps/roadmap-<slug>.md`, remove its backlog folder
|
|
276
|
+
`backlog/roadmap-<slug>/` (move entries that are still alive to another queued roadmap first) and its row in an
|
|
277
|
+
index file such as `foundation/roadmaps/README.md`, if the project keeps one;
|
|
278
|
+
- afterwards: every file in `roadmaps/` is a waiting roadmap, and every folder in `backlog/` has its roadmap file.
|
|
279
|
+
|
|
244
280
|
## 6. `plan.md`
|
|
245
281
|
|
|
246
282
|
```markdown
|
|
@@ -281,8 +317,9 @@ Rules:
|
|
|
281
317
|
- done: `- [x] N.M text — <sha>`;
|
|
282
318
|
- a Manual item the agent verified itself: `- [x] N.M text — <sha> (verified by agent: <how>)`;
|
|
283
319
|
- dropped mid-flight: `- [x] ~~N.M text~~ — dropped: <reason>`.
|
|
284
|
-
- SHA: the phase commit is created first, then
|
|
285
|
-
|
|
320
|
+
- SHA: the phase commit is created first, then its SHA is written into Progress. Never amend that edit into the
|
|
321
|
+
phase commit (the amend changes the SHA it records). It rides with the next commit of the change, or goes into a
|
|
322
|
+
separate `docs(<change-id>): progress p<N>` commit when nothing follows (last phase, branch about to be pushed).
|
|
286
323
|
- A plan has **no open questions**. Unresolved ones go back to research or to the owner.
|
|
287
324
|
|
|
288
325
|
## 7. `lessons.md`
|
|
@@ -317,7 +354,7 @@ Every interactive skill accepts `--auto` (orchestrators always pass it). In `--a
|
|
|
317
354
|
- Implementation: `<type>(<change-id>): <phase title> (p<N>)`. Type is `feat`, `fix`, `refactor`,
|
|
318
355
|
`test`, `docs` or `chore`.
|
|
319
356
|
- Review fixes: `fix(<change-id>): address impl review`.
|
|
320
|
-
- Progress bookkeeping (
|
|
357
|
+
- Progress bookkeeping (when no later commit of the change carries it): `docs(<change-id>): progress p<N>`.
|
|
321
358
|
- Archive: `chore(archive): close <change-id>`.
|
|
322
359
|
- Roadmap stage updates: `docs(roadmap): <ID> <stage>`.
|
|
323
360
|
- Lessons: `docs(lessons): L-<NNN> <title>`. Rule-file edits: `docs(rules): <what>`.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@softure-ai/skills",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "SOFTURE agent skills: a spec-driven delivery workflow (shape → prd → roadmap → plan → implement → review) plus parallel worktree orchestration",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
package/rules/AGENTS.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# SOFTURE workflow and conventions
|
|
2
2
|
|
|
3
3
|
Installed by `@softure-ai/skills`. Project-specific rules outside this block take precedence,
|
|
4
|
-
except the language rule below, which always applies.
|
|
4
|
+
except the language rule below (when this block carries it), which always applies.
|
|
5
5
|
|
|
6
6
|
## Language: English in everything you write to the repository (mandatory)
|
|
7
7
|
|
package/scripts/install.mjs
CHANGED
|
@@ -6,6 +6,10 @@
|
|
|
6
6
|
// manifest -> <project>/.claude/softure-skills.json (drives updates and uninstall)
|
|
7
7
|
//
|
|
8
8
|
// Flags: --postinstall (never fails the host install), --dry-run, --target <dir>, --no-gitignore
|
|
9
|
+
//
|
|
10
|
+
// Per-project choices live in context/workflow.json -> "install" (all optional):
|
|
11
|
+
// "gitignore": false commit the installed skills instead of ignoring them
|
|
12
|
+
// "rules": ["workflow", ...] rule sections to inject; default: every section in RULE_SECTIONS
|
|
9
13
|
|
|
10
14
|
import fs from "node:fs";
|
|
11
15
|
import path from "node:path";
|
|
@@ -18,6 +22,9 @@ const BLOCK_BEGIN = "<!-- softure-skills:begin (managed by @softure-ai/skills, d
|
|
|
18
22
|
const BLOCK_END = "<!-- softure-skills:end -->";
|
|
19
23
|
const GITIGNORE_BEGIN = "# softure-skills:begin (managed by @softure-ai/skills)";
|
|
20
24
|
const GITIGNORE_END = "# softure-skills:end";
|
|
25
|
+
const WORKFLOW_CONFIG_PATH = path.join("context", "workflow.json");
|
|
26
|
+
// Section key -> heading prefix in rules/AGENTS.md. The text before the first section always ships.
|
|
27
|
+
const RULE_SECTIONS = { language: "## Language", workflow: "## How work flows", conventions: "## Conventions" };
|
|
21
28
|
|
|
22
29
|
function parseArgs(argv) {
|
|
23
30
|
const options = { isPostinstall: false, isDryRun: false, target: null, shouldIgnore: true };
|
|
@@ -44,6 +51,38 @@ function readManifest(projectRoot) {
|
|
|
44
51
|
return JSON.parse(fs.readFileSync(file, "utf8"));
|
|
45
52
|
}
|
|
46
53
|
|
|
54
|
+
function readInstallConfig(projectRoot) {
|
|
55
|
+
const file = path.join(projectRoot, WORKFLOW_CONFIG_PATH);
|
|
56
|
+
if (!fs.existsSync(file)) return {};
|
|
57
|
+
try {
|
|
58
|
+
const config = JSON.parse(fs.readFileSync(file, "utf8"));
|
|
59
|
+
return config && typeof config.install === "object" && config.install !== null ? config.install : {};
|
|
60
|
+
} catch (error) {
|
|
61
|
+
throw new Error(`cannot parse ${WORKFLOW_CONFIG_PATH}: ${error instanceof Error ? error.message : String(error)}`);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
function resolveRuleSections(installConfig) {
|
|
66
|
+
if (installConfig.rules === undefined) return Object.keys(RULE_SECTIONS);
|
|
67
|
+
if (!Array.isArray(installConfig.rules)) throw new Error(`${WORKFLOW_CONFIG_PATH}: install.rules must be an array`);
|
|
68
|
+
const unknown = installConfig.rules.filter((key) => !(key in RULE_SECTIONS));
|
|
69
|
+
if (unknown.length > 0) {
|
|
70
|
+
throw new Error(`${WORKFLOW_CONFIG_PATH}: unknown install.rules ${unknown.join(", ")} (known: ${Object.keys(RULE_SECTIONS).join(", ")})`);
|
|
71
|
+
}
|
|
72
|
+
return installConfig.rules;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
// Keeps the preamble and the "## " sections whose key is selected; drops the rest.
|
|
76
|
+
function selectRuleSections(rules, selectedKeys) {
|
|
77
|
+
const parts = rules.split(/\n(?=## )/);
|
|
78
|
+
const kept = parts.filter((part, index) => {
|
|
79
|
+
if (index === 0 && !part.startsWith("## ")) return true;
|
|
80
|
+
const key = Object.keys(RULE_SECTIONS).find((candidate) => part.startsWith(RULE_SECTIONS[candidate]));
|
|
81
|
+
return key === undefined || selectedKeys.includes(key);
|
|
82
|
+
});
|
|
83
|
+
return kept.join("\n");
|
|
84
|
+
}
|
|
85
|
+
|
|
47
86
|
function listPackageSkills() {
|
|
48
87
|
const skillsDir = path.join(PACKAGE_ROOT, "skills");
|
|
49
88
|
return fs
|
|
@@ -74,6 +113,9 @@ function install(options) {
|
|
|
74
113
|
}
|
|
75
114
|
|
|
76
115
|
const previous = readManifest(projectRoot);
|
|
116
|
+
const installConfig = readInstallConfig(projectRoot);
|
|
117
|
+
const ruleSections = resolveRuleSections(installConfig);
|
|
118
|
+
const shouldIgnore = options.shouldIgnore && installConfig.gitignore !== false;
|
|
77
119
|
const skills = listPackageSkills();
|
|
78
120
|
const skillsRoot = path.join(projectRoot, ".claude", "skills");
|
|
79
121
|
const actions = [];
|
|
@@ -102,23 +144,29 @@ function install(options) {
|
|
|
102
144
|
const claudeFile = path.join(projectRoot, "CLAUDE.md");
|
|
103
145
|
const rulesTarget = fs.existsSync(agentsFile) || !fs.existsSync(claudeFile) ? agentsFile : claudeFile;
|
|
104
146
|
if (fs.existsSync(rulesSource)) {
|
|
105
|
-
actions.push(`rules block -> ${path.relative(projectRoot, rulesTarget)}`);
|
|
147
|
+
actions.push(`rules block (${ruleSections.join(", ")}) -> ${path.relative(projectRoot, rulesTarget)}`);
|
|
106
148
|
if (!options.isDryRun) {
|
|
107
149
|
const existing = fs.existsSync(rulesTarget) ? fs.readFileSync(rulesTarget, "utf8") : "";
|
|
108
|
-
const rules = fs.readFileSync(rulesSource, "utf8");
|
|
150
|
+
const rules = selectRuleSections(fs.readFileSync(rulesSource, "utf8"), ruleSections);
|
|
109
151
|
fs.writeFileSync(rulesTarget, replaceManagedBlock(existing, BLOCK_BEGIN, BLOCK_END, rules));
|
|
110
152
|
}
|
|
111
153
|
}
|
|
112
154
|
|
|
113
155
|
const installed = skills.filter((name) => !actions.includes(`skip ${name} (folder exists and is not managed by this package)`));
|
|
114
|
-
|
|
115
|
-
|
|
156
|
+
const gitignore = path.join(projectRoot, ".gitignore");
|
|
157
|
+
if (shouldIgnore) {
|
|
116
158
|
const lines = [...installed.map((name) => `/.claude/skills/${name}/`), `/${MANIFEST_PATH}`].join("\n");
|
|
117
159
|
actions.push("gitignore block (installed skills are restored by npm install)");
|
|
118
160
|
if (!options.isDryRun) {
|
|
119
161
|
const existing = fs.existsSync(gitignore) ? fs.readFileSync(gitignore, "utf8") : "";
|
|
120
162
|
fs.writeFileSync(gitignore, replaceManagedBlock(existing, GITIGNORE_BEGIN, GITIGNORE_END, lines));
|
|
121
163
|
}
|
|
164
|
+
} else if (fs.existsSync(gitignore) && fs.readFileSync(gitignore, "utf8").includes(GITIGNORE_BEGIN)) {
|
|
165
|
+
// The project switched to committing the skills: drop the block an earlier install wrote.
|
|
166
|
+
actions.push("gitignore block removed (skills are committed)");
|
|
167
|
+
if (!options.isDryRun) {
|
|
168
|
+
fs.writeFileSync(gitignore, replaceManagedBlock(fs.readFileSync(gitignore, "utf8"), GITIGNORE_BEGIN, GITIGNORE_END, null));
|
|
169
|
+
}
|
|
122
170
|
}
|
|
123
171
|
|
|
124
172
|
if (!options.isDryRun) {
|
|
@@ -129,8 +177,14 @@ function install(options) {
|
|
|
129
177
|
installedAt: new Date().toISOString(),
|
|
130
178
|
skills: installed,
|
|
131
179
|
rulesTarget: path.relative(projectRoot, rulesTarget),
|
|
132
|
-
|
|
180
|
+
rules: ruleSections,
|
|
181
|
+
gitignore: shouldIgnore,
|
|
133
182
|
};
|
|
183
|
+
// A re-install that changes nothing keeps the old timestamp, so a committed manifest
|
|
184
|
+
// does not dirty every fresh clone or worktree after `npm ci`.
|
|
185
|
+
const { installedAt: previousAt, ...previousRest } = previous;
|
|
186
|
+
const { installedAt: _ignored, ...currentRest } = manifest;
|
|
187
|
+
if (previousAt && JSON.stringify(previousRest) === JSON.stringify(currentRest)) manifest.installedAt = previousAt;
|
|
134
188
|
fs.writeFileSync(path.join(projectRoot, MANIFEST_PATH), JSON.stringify(manifest, null, 2) + "\n");
|
|
135
189
|
}
|
|
136
190
|
|
|
@@ -148,4 +202,4 @@ try {
|
|
|
148
202
|
process.exit(isPostinstall ? 0 : 1);
|
|
149
203
|
}
|
|
150
204
|
|
|
151
|
-
export { replaceManagedBlock };
|
|
205
|
+
export { replaceManagedBlock, selectRuleSections };
|
|
@@ -26,8 +26,9 @@ Contract: `WORKFLOW.md` §3 (paths), §4 (status), §5 (roadmap rows and statuse
|
|
|
26
26
|
|
|
27
27
|
| Check | Hard stop | Soft warning |
|
|
28
28
|
|---|---|---|
|
|
29
|
-
| `git status --porcelain
|
|
29
|
+
| no uncommitted changes in the change folder, `roadmap.md` or the files the change touched (`git status --porcelain -- <paths>`) | yes: commit them first; never archive over uncommitted work of the change | other uncommitted paths (someone else's WIP): leave them, never stage them |
|
|
30
30
|
| change.md `status` is `impl_reviewed` | | `implemented` (no review) or earlier |
|
|
31
|
+
| plan.md exists | | no: work done without the chain (interactively, or a change that turned out to need no code). Archive it anyway, see "Without a plan" |
|
|
31
32
|
| plan.md Progress: no open `#### Automated` items | yes: name them | |
|
|
32
33
|
| plan.md Progress: open `#### Manual` items | | yes: they become owner checks (step 4) |
|
|
33
34
|
| `reviews/impl-review.md` has no CRITICAL without a decision | yes | |
|
|
@@ -65,6 +66,18 @@ on warnings, stop on hard stops.
|
|
|
65
66
|
match, and no dangling `changes/<id>` links remain.
|
|
66
67
|
7. **Commit** with `chore(archive): close <change-id>`, staging only the touched paths.
|
|
67
68
|
|
|
69
|
+
## Without a plan
|
|
70
|
+
|
|
71
|
+
A change folder must not outlive its work: a delivered change left in `changes/` looks in flight
|
|
72
|
+
to every orchestrator and blocks closing the roadmap. When there is no `plan.md`:
|
|
73
|
+
|
|
74
|
+
- under `## Notes`, record what delivered the outcome (commit SHAs or the merge) and how it was
|
|
75
|
+
verified, or that it was dropped and why;
|
|
76
|
+
- open items that need no code (an owner's visual check, a decision) go to the roadmap's
|
|
77
|
+
`## Owner decisions and checks` (or stay under `## Notes` for an unlinked change); they never
|
|
78
|
+
keep the folder in `changes/`;
|
|
79
|
+
- the row becomes `done`, `done_code (…)` or, for a dropped change, `done` with the reason in `## Done`.
|
|
80
|
+
|
|
68
81
|
## --auto
|
|
69
82
|
|
|
70
83
|
Proceed on soft warnings. Record each one in the archive commit body and in the roadmap owner
|
|
@@ -79,7 +92,7 @@ row during the merge. Do not touch rows of other items.
|
|
|
79
92
|
|
|
80
93
|
## Checklist
|
|
81
94
|
|
|
82
|
-
- [ ] No uncommitted files before and after.
|
|
95
|
+
- [ ] No uncommitted files of the change before and after; nobody else's WIP staged.
|
|
83
96
|
- [ ] `status: archived`, `archived_at` set.
|
|
84
97
|
- [ ] Folder name uses the `created` date.
|
|
85
98
|
- [ ] Roadmap row last cell, item block status, `## Done` and `updated` all changed.
|
|
@@ -53,8 +53,11 @@ Read all of them before reading the code. Note which rules are relevant to the t
|
|
|
53
53
|
2. For each file, read enough surrounding code to judge the change in place. "Too long" and
|
|
54
54
|
"impure" are only meaningful relative to what the function does and who calls it.
|
|
55
55
|
3. Walk the categories. A category with nothing to report is stated as clean.
|
|
56
|
-
- **Language
|
|
57
|
-
|
|
56
|
+
- **Language** (only when the managed block carries the `## Language` section; a project
|
|
57
|
+
can leave it out through `workflow.json` → `install.rules`): any non-English code,
|
|
58
|
+
identifier, comment, commit message or log text outside message dictionaries is a
|
|
59
|
+
violation. Without that section, follow whatever language rule the project wrote, or skip
|
|
60
|
+
the category.
|
|
58
61
|
- **Correctness:** logic errors, unhandled states, off-by-one, time zones, async without
|
|
59
62
|
error handling.
|
|
60
63
|
- **Boundaries:** input validation, authorization, SQL parameterization, secrets, leaked
|
|
@@ -80,9 +80,11 @@ the only state, so anyone can stop and anyone can resume.
|
|
|
80
80
|
- Stage only this change's files and check `git status` before committing.
|
|
81
81
|
- One commit per phase, with message `<type>(<change-id>): <phase title> (p<N>)`, where type
|
|
82
82
|
is `feat`, `fix`, `refactor`, `test`, `docs` or `chore`.
|
|
83
|
-
- Then tick the verified boxes and append ` — <short sha
|
|
84
|
-
|
|
85
|
-
|
|
83
|
+
- Then tick the verified boxes and append ` — <short sha>` of that commit. Do **not** amend the
|
|
84
|
+
Progress edit into it: amending changes the SHA you just recorded. The edit rides with the
|
|
85
|
+
next commit of the change (next phase, review fix, archive); after the last phase, or when the
|
|
86
|
+
branch is about to be pushed, commit it as `docs(<change-id>): progress p<N>`. Never push, tag,
|
|
87
|
+
release or deploy.
|
|
86
88
|
|
|
87
89
|
8. **Continue or pause.** In interactive mode, report the phase result and ask whether to continue
|
|
88
90
|
to the next phase. In `--auto`, continue until all phases are done or an escalation is hit.
|
|
@@ -120,7 +122,7 @@ Use the format in `softure-plan/references/progress-format.md`:
|
|
|
120
122
|
|
|
121
123
|
- [ ] Every ticked box was actually checked in this session, by command, query or screenshot.
|
|
122
124
|
- [ ] Gates are green at every phase commit.
|
|
123
|
-
- [ ] The diff
|
|
125
|
+
- [ ] The diff follows the language rule in AGENTS.md (when the project carries one).
|
|
124
126
|
- [ ] There is one commit per phase with the WORKFLOW §9 message, and nothing unrelated is staged.
|
|
125
127
|
- [ ] TDD phases show a red test before the implementation.
|
|
126
128
|
- [ ] Drift is recorded. No silent design changes.
|
|
@@ -6,7 +6,7 @@ description: >
|
|
|
6
6
|
every unit of delivery work, before research. Triggers: "new change", "open a change",
|
|
7
7
|
"start change <id>", "/softure-new",
|
|
8
8
|
"start the next roadmap item".
|
|
9
|
-
argument-hint: "<change-id> [roadmap-item-id] [--title \"...\"] [--auto]"
|
|
9
|
+
argument-hint: "<change-id> [roadmap-item-id] [--title \"...\"] [--backlog <slug>] [--auto]"
|
|
10
10
|
allowed-tools:
|
|
11
11
|
- Read
|
|
12
12
|
- Glob
|
|
@@ -39,9 +39,26 @@ and moves its `status`. The contract lives in `WORKFLOW.md` §3–§4 of the SOF
|
|
|
39
39
|
(`pending-states`, not `fix-button`).
|
|
40
40
|
- If the user gave a roadmap item, read its block in `roadmap.md`. Use its `Change ID` when one
|
|
41
41
|
is set. Otherwise propose one and write it back into the item block and the table row.
|
|
42
|
-
- **Uniqueness:** the id must not exist as `context/changes/<id
|
|
43
|
-
`context/archive/*-<id>/`. Check
|
|
44
|
-
(`-
|
|
42
|
+
- **Uniqueness:** the id must not exist as `context/changes/<id>/`, as
|
|
43
|
+
`context/archive/*-<id>/`, nor as `context/backlog/roadmap-*/<id>/`. Check all three with Glob.
|
|
44
|
+
On a clash, propose the first free numeric suffix (`-2`, `-3`, …) or a more precise noun. Never
|
|
45
|
+
reuse an archived id. If the id exists in the backlog, this is *taking* that entry
|
|
46
|
+
(WORKFLOW §5.1): move it in as `backlog-input.md` instead of starting from scratch.
|
|
47
|
+
|
|
48
|
+
2a. **Place the change** when no roadmap item was given. A change outside every roadmap is
|
|
49
|
+
invisible to the orchestrators and to whoever reads the roadmap as the board. Offer, with the
|
|
50
|
+
recommended option first:
|
|
51
|
+
- **work now** → a new row and item block in the main `roadmap.md` (next free ID of the
|
|
52
|
+
closest prefix, status `ready`);
|
|
53
|
+
- **later** → an entry in a queued thematic roadmap whose theme fits (`--backlog <slug>`):
|
|
54
|
+
`context/backlog/roadmap-<slug>/<id>/change.md` with `status: backlog`, plus its row in the
|
|
55
|
+
thematic roadmap and in the backlog README (WORKFLOW §5.1), and nothing in `changes/`;
|
|
56
|
+
- **new theme** → only when no queued roadmap fits: `softure-roadmap --queue <slug>` first;
|
|
57
|
+
- **unlinked** → a one-off with `roadmap_item: null`.
|
|
58
|
+
|
|
59
|
+
The project's rules may make one of these mandatory (for example "every change belongs to a
|
|
60
|
+
roadmap"); follow them. In `--auto`, take the project's rule, else "work now" when the request
|
|
61
|
+
is for work now, else "later", and record the choice under `## Notes`.
|
|
45
62
|
|
|
46
63
|
3. **Gather the content.** Fill these four sections. Ask only for what you cannot infer.
|
|
47
64
|
- **Intent:** what must be true when this change is done, and for whom. One short paragraph.
|
|
@@ -76,6 +93,7 @@ change_id: <id>
|
|
|
76
93
|
title: "<one sentence: the outcome, not the activity>"
|
|
77
94
|
status: new
|
|
78
95
|
roadmap_item: <ID or null>
|
|
96
|
+
branch: null
|
|
79
97
|
created: <YYYY-MM-DD>
|
|
80
98
|
updated: <YYYY-MM-DD>
|
|
81
99
|
archived_at: null
|
|
@@ -107,7 +125,8 @@ archived_at: null
|
|
|
107
125
|
|
|
108
126
|
## Quality checklist
|
|
109
127
|
|
|
110
|
-
- [ ] The id is unique across `changes/` and `
|
|
128
|
+
- [ ] The id is unique across `changes/`, `archive/` and `backlog/`, kebab-case and ≤ 40 characters.
|
|
129
|
+
- [ ] The change is placed: a roadmap row (main or thematic) or a recorded decision to leave it unlinked.
|
|
111
130
|
- [ ] The title states an outcome a reviewer can verify.
|
|
112
131
|
- [ ] Feedback is quoted verbatim and attributed.
|
|
113
132
|
- [ ] Constraints name concrete paths when ownership matters for parallel work.
|
|
@@ -8,7 +8,7 @@ description: >
|
|
|
8
8
|
turned into work, or to revise the order. Triggers: "make a roadmap", "slice the PRD",
|
|
9
9
|
"what do we build first", "order the work",
|
|
10
10
|
"turn feedback into roadmap items".
|
|
11
|
-
argument-hint: "[--revise] [--open-changes] [--queue <slug> | --promote <slug>] [--from-feedback <path>] [--auto]"
|
|
11
|
+
argument-hint: "[--revise] [--open-changes] [--queue <slug> | --promote <slug> | --close] [--from-feedback <path>] [--auto]"
|
|
12
12
|
allowed-tools:
|
|
13
13
|
- Read
|
|
14
14
|
- Glob
|
|
@@ -51,6 +51,15 @@ The format is a contract: `softure-worktree` and `softure-worktree-manager` pars
|
|
|
51
51
|
roadmap, `git mv` the queued file to `roadmap.md`, set `status: ready`, and take its ready entries
|
|
52
52
|
(`git mv …/change.md context/changes/<id>/backlog-input.md`, then the `softure-new` format).
|
|
53
53
|
Never promote on your own initiative, not even in `--auto`.
|
|
54
|
+
- **`--close`**: the main roadmap is realised; archive it per WORKFLOW §5.2. Check the three gates
|
|
55
|
+
first and report every failing one at once: rows not `done` / `done_code` and not carried over,
|
|
56
|
+
leftover folders in `context/changes/` (archive each through `softure-archive`, a change without a
|
|
57
|
+
plan included, before continuing), and the full integration result on `<main>` when configured.
|
|
58
|
+
Then write `## Summary` (`| ID | Item | What changed | Merge |`, the merge SHA from
|
|
59
|
+
`git log --merges --grep "<change-id>"` on `<main>`, plus the integration line), move the file to
|
|
60
|
+
`foundation/archive/<YYYY-MM-DD>-roadmap.md`, clean up the promoted roadmap's backlog folder and
|
|
61
|
+
index row, and commit. Do not promote the next roadmap in the same step: that is `--promote`, the
|
|
62
|
+
owner's call. In `--auto`, a failing gate stops the close and is reported; it is never forced.
|
|
54
63
|
|
|
55
64
|
## Procedure
|
|
56
65
|
|
|
@@ -115,6 +115,16 @@ branch, and the *other* sessions are other containers that see **only
|
|
|
115
115
|
`origin`** — a stage written to a local `<main>` is invisible to them, so two
|
|
116
116
|
cloud sessions could take the same item.
|
|
117
117
|
|
|
118
|
+
**`worktree.cloudState: "branch"`** changes points 1 and 6: the claim and every
|
|
119
|
+
stage are committed **on the session branch only** (`wt-roadmap.py` does it by
|
|
120
|
+
itself in that mode) and nothing goes to `origin/<main>` before the merge. Use
|
|
121
|
+
it when a coordinator assigns the items — then the assignment, not a claim on
|
|
122
|
+
`<main>`, keeps two sessions off one item, so A1 takes the item it was given
|
|
123
|
+
and does not need `origin/<main>` to show it free. The branch carries the
|
|
124
|
+
state: push it at READY (point 5), and earlier only if the project wants the
|
|
125
|
+
board live (each first push of a ref may run the pre-push hook). Default
|
|
126
|
+
`"main"` is the flow below.
|
|
127
|
+
|
|
118
128
|
**1. Claim first, on origin, before anything else.** Right after A1 picks the
|
|
119
129
|
item — before installing dependencies, before research — mark it taken **on
|
|
120
130
|
`origin/<main>`**:
|
|
@@ -169,6 +179,13 @@ often no outbound access to production hosts or ssh. So:
|
|
|
169
179
|
- Anything that needs production (a request to the live site, ssh) goes to
|
|
170
180
|
**Pending owner checks**, with the exact command.
|
|
171
181
|
- Browsers: use the preinstalled ones; never download browser binaries.
|
|
182
|
+
- Long commands (the full test gate, a push whose hook runs it): start them in
|
|
183
|
+
the background with the longest timeout the tool allows — the default limit
|
|
184
|
+
kills a long suite midway and looks like a failure. Never stop a process by
|
|
185
|
+
a pattern (`pkill -f vitest`, `pkill -f "next dev"`): the pattern matches the
|
|
186
|
+
tool's own shell and kills it; find the PID (`pgrep -f …`) and kill that.
|
|
187
|
+
- When the push hook already runs the full test gate, the push *is* that gate:
|
|
188
|
+
don't run the suite by hand right before it.
|
|
172
189
|
|
|
173
190
|
**5. The session branch may go to origin; `<main>` may not.** Push the session
|
|
174
191
|
branch at least at READY (`git push -u origin HEAD`) — the container is
|
|
@@ -177,10 +194,10 @@ reclaimed after inactivity, and a pushed branch is the copy that survives it.
|
|
|
177
194
|
first push of a ref without an upstream may run the pre-push hook's full suite
|
|
178
195
|
— minutes of silence, expected; never bypass it.
|
|
179
196
|
|
|
180
|
-
**6. READY.** A3.8 runs before A4, as locally
|
|
181
|
-
`git fetch origin <main>`), not the local one.
|
|
182
|
-
`wt-roadmap.py ready <change-id>` (pushed to origin
|
|
183
|
-
report, stop.
|
|
197
|
+
**6. READY.** A3.8 runs before A4, as locally (unless the cadence defers it).
|
|
198
|
+
A5 merges `origin/<main>` (after `git fetch origin <main>`), not the local one.
|
|
199
|
+
Then `wt-roadmap.py ready <change-id>` (pushed to origin; with `cloudState:
|
|
200
|
+
"branch"` committed on the branch), push the session branch, report, stop.
|
|
184
201
|
|
|
185
202
|
**No deploy from a cloud session, ever** — and, while `release.owner` is true,
|
|
186
203
|
from any session: no ssh to servers, no tags, no `gh release`, no edit of
|
|
@@ -449,9 +466,12 @@ work, and a tree-wide pre-commit hook sees only your tree. Disabling hooks
|
|
|
449
466
|
should never be needed here; if it seems to be, something foreign got in —
|
|
450
467
|
find it.
|
|
451
468
|
|
|
452
|
-
**Integration: the full suite, once per item — A3.8
|
|
453
|
-
integration
|
|
454
|
-
suite on the final tree is
|
|
469
|
+
**Integration: the full suite, once per item — A3.8** (with the default
|
|
470
|
+
`integration.cadence: "change"`). Running only "your" integration tests lets
|
|
471
|
+
regressions through that no session sees; the full suite on the final tree is
|
|
472
|
+
what READY reports. With `"roadmap"` the project trades that per-item signal
|
|
473
|
+
for one run on `<main>` at the end (the coordinator's M7): skip A3.8 and say
|
|
474
|
+
so in READY.
|
|
455
475
|
|
|
456
476
|
**Baseline for "see it red first".** Put a baseline worktree **in the
|
|
457
477
|
scratchpad**, detached, never as a sibling `../<repo>-baseline` — a sibling
|
|
@@ -594,7 +614,8 @@ no code rode along. Any touch of code, migrations, scripts or config puts you
|
|
|
594
614
|
back on full gates.
|
|
595
615
|
|
|
596
616
|
Keep the commit subject form `<type>(<change-id>): <phase title> (p<N>)`
|
|
597
|
-
(`WORKFLOW.md` §9). Never `--no-verify`, never `--amend
|
|
617
|
+
(`WORKFLOW.md` §9). Never `--no-verify`, never `--amend` (the Progress SHA goes in
|
|
618
|
+
with the next commit, `WORKFLOW.md` §6).
|
|
598
619
|
|
|
599
620
|
##### Verify the manual checks yourself
|
|
600
621
|
|
|
@@ -652,7 +673,12 @@ the review file with every finding decided.
|
|
|
652
673
|
|
|
653
674
|
#### A3.8 — Full integration suite
|
|
654
675
|
|
|
655
|
-
|
|
676
|
+
**`integration.cadence: "roadmap"`** → skip this step: no stage `integration`,
|
|
677
|
+
no run. READY says `integration: deferred to the roadmap run (cadence:
|
|
678
|
+
roadmap)`. The touched files' own integration tests still run if the project
|
|
679
|
+
can run them cheaply; their result goes into READY as `own tests:`.
|
|
680
|
+
|
|
681
|
+
Otherwise: after the impl-review fixes are committed and before archiving — the tree the
|
|
656
682
|
item delivers is final except for paperwork. Stage `integration` on `<main>`,
|
|
657
683
|
then:
|
|
658
684
|
|
|
@@ -876,7 +902,8 @@ merge at the end.
|
|
|
876
902
|
from A2 with the current stage, `ready_to_merge` at READY,
|
|
877
903
|
`done` / `done_code` after the merge.
|
|
878
904
|
- **Every file edit from A2 to B1 lands under `<WT>`**, never in the main tree.
|
|
879
|
-
- **Integration: the full suite, once per item**
|
|
905
|
+
- **Integration: the full suite, once per item** (cadence `change`; once per
|
|
906
|
+
roadmap at the coordinator's M7 with cadence `roadmap`) — A3.8, after impl-review and
|
|
880
907
|
its fixes, before archive. New reds are fixed before READY; reds already on
|
|
881
908
|
`<main>` are reported.
|
|
882
909
|
- **Lesson numbers come from `wt-status.sh`**, never from `<main>` alone.
|
|
@@ -27,6 +27,12 @@ see only `origin`. The commit is then built directly on `origin/<main>` (fetch -
|
|
|
27
27
|
`commit-tree` on a temporary index) and **pushed at once**; the working tree and the current
|
|
28
28
|
branch stay untouched. A rejected push (someone pushed meanwhile) -> fetch and retry from the
|
|
29
29
|
fresh state. `--branch <name>` overrides the branch written into the row (default: current).
|
|
30
|
+
|
|
31
|
+
With `worktree.cloudState: "branch"` in context/workflow.json, a cloud session instead commits
|
|
32
|
+
the edit **on its own branch** (the checkout) and pushes nothing: the branch carries the state
|
|
33
|
+
and `<main>` changes only through the merge. Use it when a coordinator assigns the items (so
|
|
34
|
+
nobody needs to see a claim on `<main>`) and a push to `<main>` is expensive (a pre-push hook
|
|
35
|
+
that runs the full suite) or contended by many sessions.
|
|
30
36
|
"""
|
|
31
37
|
from __future__ import annotations
|
|
32
38
|
|
|
@@ -41,7 +47,7 @@ import time
|
|
|
41
47
|
|
|
42
48
|
sys.dont_write_bytecode = True # no __pycache__ inside the consumer's .claude/skills
|
|
43
49
|
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
|
|
44
|
-
from wt_config import main_branch, main_root # noqa: E402
|
|
50
|
+
from wt_config import load_config, main_branch, main_root # noqa: E402
|
|
45
51
|
|
|
46
52
|
ROADMAP = "context/foundation/roadmap.md"
|
|
47
53
|
COAUTHOR = "Co-Authored-By: Claude <noreply@anthropic.com>"
|
|
@@ -208,6 +214,33 @@ def run_cloud(mode: str, change_id: str, arg: str | None, branch: str | None, dr
|
|
|
208
214
|
sys.exit(f"push to origin/{main} failed after 6 attempts: {push.stderr.strip()[:300] if push else ''}")
|
|
209
215
|
|
|
210
216
|
|
|
217
|
+
def run_cloud_branch(mode: str, change_id: str, arg: str | None, branch: str | None, dry: bool) -> None:
|
|
218
|
+
"""Commit one roadmap edit on the session's own branch (the checkout); push nothing."""
|
|
219
|
+
repo = git(".", "rev-parse", "--show-toplevel").strip()
|
|
220
|
+
repo_name = os.path.basename(repo)
|
|
221
|
+
current = git(repo, "rev-parse", "--abbrev-ref", "HEAD").strip()
|
|
222
|
+
if current == main_branch(repo):
|
|
223
|
+
sys.exit(f"cloudState=branch: the session stands on `{current}` — switch to the change branch first")
|
|
224
|
+
if branch is None:
|
|
225
|
+
branch = current
|
|
226
|
+
work_path = os.path.join(repo, ROADMAP)
|
|
227
|
+
with open(work_path, encoding="utf-8") as fh:
|
|
228
|
+
old = fh.read()
|
|
229
|
+
new = edit(old, mode, change_id, arg, repo_name, cloud_branch=branch if mode == "open" else None)
|
|
230
|
+
if dry:
|
|
231
|
+
sys.stdout.writelines(difflib.unified_diff(old.splitlines(True), new.splitlines(True), current, "commit"))
|
|
232
|
+
return
|
|
233
|
+
with open(work_path, "w", encoding="utf-8") as fh:
|
|
234
|
+
fh.write(new)
|
|
235
|
+
msg = commit_message(old, mode, change_id, arg, f"cloud session, branch {branch}")
|
|
236
|
+
session = os.environ.get("CLAUDE_CODE_REMOTE_SESSION_ID", "")
|
|
237
|
+
if session.startswith("cse_"):
|
|
238
|
+
msg += f"\nClaude-Session: https://claude.ai/code/session_{session[4:]}"
|
|
239
|
+
git(repo, "commit", "-q", "-m", msg, "--", ROADMAP)
|
|
240
|
+
sha = git(repo, "rev-parse", "--short", "HEAD").strip()
|
|
241
|
+
print(f"{sha} {msg.splitlines()[0]} -> {current} (not pushed; the branch carries the state)")
|
|
242
|
+
|
|
243
|
+
|
|
211
244
|
def run_local(mode: str, change_id: str, arg: str | None, dry: bool) -> None:
|
|
212
245
|
main_wt = main_root()
|
|
213
246
|
repo_name = os.path.basename(main_wt)
|
|
@@ -291,7 +324,9 @@ def main() -> None:
|
|
|
291
324
|
sys.exit(__doc__)
|
|
292
325
|
mode, change_id = args[0], args[1]
|
|
293
326
|
arg = note if mode == "open" else (args[2] if mode == "stage" else None)
|
|
294
|
-
if cloud:
|
|
327
|
+
if cloud and (load_config().get("worktree") or {}).get("cloudState") == "branch":
|
|
328
|
+
run_cloud_branch(mode, change_id, arg, branch, dry)
|
|
329
|
+
elif cloud:
|
|
295
330
|
run_cloud(mode, change_id, arg, branch, dry)
|
|
296
331
|
else:
|
|
297
332
|
run_local(mode, change_id, arg, dry)
|
|
@@ -354,7 +354,7 @@ job), then:
|
|
|
354
354
|
CronCreate(
|
|
355
355
|
cron: "4,19,34,49 * * * *", # every 15 min, off the :00/:30 marks
|
|
356
356
|
recurring: true,
|
|
357
|
-
prompt: "Status for the owner + loop heartbeat (/softure-worktree-manager). If several of these fired while busy, do one. 1) bash <M>/wm-resume.sh + the latest commits of the worker branches. 2) Report
|
|
357
|
+
prompt: "Status for the owner + loop heartbeat (/softure-worktree-manager). If several of these fired while busy, do one. 1) bash <M>/wm-resume.sh + the latest commits of the worker branches. 2) Report as the status table (format under 'The report itself'); nothing moved → one line. 3) Resume the loop by the wm-resume actions (M0.1 table): MERGE → M5 and M6; NUDGE → SendMessage 'continue' (usage limit: after its reset time); RELAUNCH → claude stop + wm-launch.sh; wm-watch Monitor expired → re-arm with the IDs in flight; free slot and a ready item without collision → M1–M3. Work until the roadmap is done / done_code. 4) End → M7 (integration suite on <main>; close the roadmap and push <main> only if the roadmap header orders it; tag, release and deploy never — those are the owner's) and CronDelete this job. Write the report in the language and the times in the timezone from context/workflow.json.")
|
|
358
358
|
```
|
|
359
359
|
|
|
360
360
|
This prompt is also the run's **heartbeat**: a worker stuck on a usage limit
|
|
@@ -368,9 +368,23 @@ M7 deletes it. Tell the owner the first fire time, that it waits while a merge
|
|
|
368
368
|
is in progress (cron fires only when the session is idle), and that stage
|
|
369
369
|
events and merges are still reported immediately.
|
|
370
370
|
|
|
371
|
-
The report itself
|
|
372
|
-
|
|
373
|
-
|
|
371
|
+
The report itself — the same shape every time, on the clock and on request
|
|
372
|
+
(`status`): one table with **every** row of the roadmap, not only the ones in
|
|
373
|
+
flight, so the owner never has to ask what happened to the rest:
|
|
374
|
+
|
|
375
|
+
| ID | Title | Stage | Waits for |
|
|
376
|
+
| --- | --- | --- | --- |
|
|
377
|
+
| FC-3 | <title> | in progress (implement 2/3), session alive | — |
|
|
378
|
+
| FC-6 | <title> | waiting | FC-4, FC-5 |
|
|
379
|
+
| FC-1 | <title> | on `<main>` @ `<merge sha>` | release |
|
|
380
|
+
|
|
381
|
+
Stage is one of: waiting · in progress (`<stage>`, session alive / stalled) ·
|
|
382
|
+
ready to merge · on `<main>` @ `<sha>`. Below the table one line: `<N> of <M>
|
|
383
|
+
on <main>`, then what moved since the last report (new commits, stage changes,
|
|
384
|
+
merges). Every claim carries its evidence — a merge SHA, a commit, a run URL —
|
|
385
|
+
never "done" without one. Times are shown in `workflow.json` → `timezone`
|
|
386
|
+
(default: the machine's zone), with the zone named once. Nothing moved since
|
|
387
|
+
the last report → one line; don't pad it.
|
|
374
388
|
|
|
375
389
|
| event | action |
|
|
376
390
|
| --- | --- |
|
|
@@ -437,7 +451,9 @@ points of this skill:
|
|
|
437
451
|
empty entry is noise in the lists the owner reads before a deploy. Commit
|
|
438
452
|
together with the merge's roadmap fix-up (documents only, own paths).
|
|
439
453
|
|
|
440
|
-
**Integration line of the READY report
|
|
454
|
+
**Integration line of the READY report** (with `integration.cadence:
|
|
455
|
+
"roadmap"` it reads `deferred to the roadmap run` — that is expected; the
|
|
456
|
+
run happens once at M7). New reds must be "none" — a worker
|
|
441
457
|
reporting READY with new reds has not finished A3.8; send it back
|
|
442
458
|
(`SendMessage`), don't merge. Reds the worker lists as **already on
|
|
443
459
|
`<main>`** are a signal of their own: unless a roadmap row already carries
|
|
@@ -496,9 +512,20 @@ and the owner's signal before the release. Put the line into the final report:
|
|
|
496
512
|
new roadmap row and a worker (test names and the run URL in its `change.md`,
|
|
497
513
|
the header note points to the row); after its merge, push (if ordered) and run
|
|
498
514
|
this again. `75` → the run is still going; wait for it and read the result,
|
|
499
|
-
don't start a new run over a moving one.
|
|
500
|
-
|
|
501
|
-
|
|
515
|
+
don't start a new run over a moving one. With `integration.cadence:
|
|
516
|
+
"roadmap"` this is the roadmap's only full run, so its reds are measured
|
|
517
|
+
against the previous result on `<main>`, not per change.
|
|
518
|
+
|
|
519
|
+
**Then close the roadmap — only when the header orders it** ("Archive roadmap:
|
|
520
|
+
at the end") and the run above is green: `/softure-roadmap --close --auto`
|
|
521
|
+
(WORKFLOW §5.2). A failing gate (a leftover folder in `context/changes/`, a
|
|
522
|
+
row not settled) is fixed first — leftovers are archived, unsettled rows go to
|
|
523
|
+
a worker — never forced. The close is a documents-only commit on `<main>`; if a
|
|
524
|
+
push is ordered, push it too (a second, documents-only push, through the hook). No header order → leave the roadmap in
|
|
525
|
+
place and list it in the report as the owner's step.
|
|
526
|
+
|
|
527
|
+
**Tag, release and deploy never** — the owner publishes the release after
|
|
528
|
+
answering `## Owner decisions and checks`.
|
|
502
529
|
|
|
503
530
|
## status
|
|
504
531
|
|