@softure-ai/skills 0.13.0 → 0.15.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/ONBOARD.md +2 -1
- package/README.md +7 -2
- package/WORKFLOW.md +64 -11
- package/package.json +1 -1
- package/rules/AGENTS.md +73 -19
- package/skills/softure-archive/SKILL.md +30 -6
- package/skills/softure-init/SKILL.md +9 -3
- package/skills/softure-worktree/SKILL.md +107 -46
- package/skills/softure-worktree/scripts/wt-merge-check.py +140 -0
- package/skills/softure-worktree/scripts/wt-roadmap.py +172 -18
- package/skills/softure-worktree/scripts/wt-startable.py +153 -0
- package/skills/softure-worktree/scripts/wt_config.py +2 -2
- package/skills/softure-worktree-manager/SKILL.md +40 -14
- package/skills/softure-worktree-manager/references/report-routine.md +11 -5
- package/skills/softure-worktree-manager/scripts/wm-resume.sh +5 -4
package/ONBOARD.md
CHANGED
|
@@ -143,4 +143,5 @@ result, and wait for my word before anything leaves the working tree. Talk to me
|
|
|
143
143
|
- Switching mode is the owner's explicit word: change `mode` in `context/workflow.json`, re-run the
|
|
144
144
|
installer, commit both as `docs(rules): switch to <mode> mode` (WORKFLOW §8).
|
|
145
145
|
- A hosted project's main chat (for example a claude.ai project) needs the one-paragraph pointer from
|
|
146
|
-
WORKFLOW §8.5 in its project instructions; the AUTO prompt prints it when it is missing
|
|
146
|
+
WORKFLOW §8.5 in its project instructions; the AUTO prompt prints it when it is missing, and every
|
|
147
|
+
thread checks it at session start and tells the coordinator, which then reads `AGENTS.md` itself.
|
package/README.md
CHANGED
|
@@ -36,7 +36,7 @@ installer injects only that mode's section into the rules block:
|
|
|
36
36
|
| who decides | the owner, step by step; skills ask | the agent takes the recommended option and records it |
|
|
37
37
|
| implementation | one phase per run, commit on the owner's approval | all phases, one commit per phase |
|
|
38
38
|
| merge into the main branch | on the owner's signal | standing consent: serial merge queue, via PR (`autonomy.merge`) |
|
|
39
|
-
| parallel sessions, reports | only when the owner starts them | coordinator + one session per change, report every 60 min |
|
|
39
|
+
| parallel sessions, reports | only when the owner starts them | coordinator + one session per change, report every 60 min, around the clock |
|
|
40
40
|
| release | the owner | the owner while `release.owner` is true; production deploy always the owner |
|
|
41
41
|
|
|
42
42
|
The autonomous standard (roles of the coordinator and its threads, results always sent to the main
|
|
@@ -46,7 +46,12 @@ for SOFTURE package bugs and for gaps in these skills) lives in the rules block,
|
|
|
46
46
|
runs in a checkout, cloud ones included, reads it from `AGENTS.md` without being told. A hosted
|
|
47
47
|
project's coordinator (for example a claude.ai project's main chat) is started outside the checkout:
|
|
48
48
|
paste the one-paragraph pointer from WORKFLOW §8.5 (`softure-init` prints it) into the project
|
|
49
|
-
instructions, and it starts the run by itself.
|
|
49
|
+
instructions, and it starts the run by itself. The paste is checked, not assumed: the first thread
|
|
50
|
+
that finds it missing tells the coordinator, which then reads the rules from the main branch at once
|
|
51
|
+
and asks the owner to paste it. The roadmap state lives on the main branch, written only by
|
|
52
|
+
`wt-roadmap.py` (branches never edit `roadmap.md`), and a branch merges the main branch in again only
|
|
53
|
+
when `wt-merge-check.py` finds an overlap, a migration or a dependency change, so a serial merge
|
|
54
|
+
without overlap costs minutes, not a full test run. Tune it with `autonomy` (WORKFLOW §2). Switch modes only on the
|
|
50
55
|
owner's word: change `mode`, re-run the installer, commit both.
|
|
51
56
|
|
|
52
57
|
Per-project choices go into `context/workflow.json` → `install` and are applied on every install,
|
package/WORKFLOW.md
CHANGED
|
@@ -74,17 +74,27 @@ or languages.
|
|
|
74
74
|
"worktree": {
|
|
75
75
|
"setup": ["npm ci", "cp ../{repo}/.env .env"], // run inside a fresh worktree
|
|
76
76
|
"maxParallel": 4,
|
|
77
|
-
"cloudState": "main" // cloud sessions: "main" pushes the claim
|
|
78
|
-
//
|
|
77
|
+
"cloudState": "main" // cloud sessions: "main" pushes the claim, every stage and the final done to origin/<main>
|
|
78
|
+
// at once (default; branches never edit roadmap.md, so merging <main> in never conflicts
|
|
79
|
+
// on it); "branch" commits them on the session branch only, <main> changes only by the merge
|
|
79
80
|
},
|
|
80
81
|
"release": { "owner": true }, // releases and deploys are never done by skills when true; false lets an autonomous
|
|
81
82
|
// project release through its own pipeline (never a production deploy, §8.4)
|
|
82
83
|
"autonomy": { // optional, read only when mode is "autonomous" (§8.4)
|
|
83
84
|
"source": "roadmap", // "roadmap": items come from roadmap.md; "issues": the forge's open issues are the queue
|
|
84
|
-
"merge": "pr", // "pr": pull request
|
|
85
|
+
"merge": "pr", // "pr": pull request, merged on the forge after green checks (default);
|
|
85
86
|
// "push": local --no-ff merge, then push <main> through the pre-push hook
|
|
87
|
+
"remergeMain": "when-needed", // "when-needed" (default): merge <main> into the branch before the merge only when
|
|
88
|
+
// wt-merge-check.py finds an overlapping file, a migration or a dependency change;
|
|
89
|
+
// "always": before every merge
|
|
90
|
+
"relatedTests": null, // e.g. "npx vitest related --run {files}": the test gate after a merge of <main>, for the
|
|
91
|
+
// files the branch changes; null = the full test gate
|
|
92
|
+
"fullGatePaths": [], // extra globs that force the full gates after a merge of <main> (built in: lockfiles,
|
|
93
|
+
// package manifests, test runner and TypeScript config, test setup, hook config, CI)
|
|
86
94
|
"reports": { "every": 60, "hours": null } // coordinator status reports: minutes (default 60, 0 = off), optional "10:00-22:30"
|
|
87
|
-
// window; one recurring routine on full hours, `every` rounded up to a multiple of 60
|
|
95
|
+
// window; one recurring routine on full hours, `every` rounded up to a multiple of 60.
|
|
96
|
+
// `hours: null` = around the clock (24/7), recommended for autonomous runs: the routine
|
|
97
|
+
// is also the heartbeat that starts unblocked items and nudges stalled threads
|
|
88
98
|
},
|
|
89
99
|
"research": { // optional: extra knowledge sources softure-research should consult
|
|
90
100
|
"sources": ["docs/", "context/foundation/prd.md"]
|
|
@@ -115,10 +125,14 @@ Parallel sessions push often, and every push can start the project's CI. The ski
|
|
|
115
125
|
- the full integration suite runs once per item (`cadence: "change"`) or once per roadmap (`"roadmap"`), never
|
|
116
126
|
twice on the same commit: `integration.lookup` lets `wt-integration.sh` reuse a stored green result, and
|
|
117
127
|
`integration.coveredByRelease` hands the roadmap's run to the release pipeline when a release follows anyway;
|
|
118
|
-
- a "finish" item does not start a run of its own under `cadence: "roadmap"
|
|
128
|
+
- a "finish" item does not start a run of its own under `cadence: "roadmap"`;
|
|
129
|
+
- before a merge, `<main>` is merged into the branch only when needed (`autonomy.remergeMain`), and such a merge
|
|
130
|
+
re-runs only what it can break (`autonomy.relatedTests`), so a merge without overlap costs no push and no hook.
|
|
119
131
|
|
|
120
132
|
The project's side: when the git hooks already run the gates (`pre-commit`, `pre-push`), CI does not need to
|
|
121
|
-
repeat them on every pushed branch.
|
|
133
|
+
repeat them on every pushed branch. A pre-push hook needs a cheap path for a push whose changed files are all
|
|
134
|
+
under `context/` (the roadmap commits of `wt-roadmap.py`): skip typecheck, lint and tests, keep the language
|
|
135
|
+
check. Without it every stage costs a full suite, which is what `cloudState: "branch"` works around. Run CI on pull requests, on the main branch or on demand, skip changes
|
|
122
136
|
that touch only documents, and cancel superseded runs (`concurrency`).
|
|
123
137
|
|
|
124
138
|
## 3. Artifacts
|
|
@@ -183,8 +197,17 @@ Files this change owns exclusively, things it must not touch, deadlines.
|
|
|
183
197
|
|
|
184
198
|
## Notes
|
|
185
199
|
Free-form. Orchestrators append signals here.
|
|
200
|
+
|
|
201
|
+
## Roadmap handoff (only on a change branch, written by softure-archive --handoff)
|
|
202
|
+
- **Status:** done | done_code (waiting: <what>)
|
|
203
|
+
- **Done:** <the `## Done` outcome, one line>
|
|
204
|
+
- **Owner check:** <item text> (Manual N.M) (one line per check)
|
|
205
|
+
- **Before the next release:** <step> (one line per step)
|
|
186
206
|
```
|
|
187
207
|
|
|
208
|
+
`## Roadmap handoff` carries the roadmap transition of a change archived on its branch: the branch never edits
|
|
209
|
+
`roadmap.md`, and `wt-roadmap.py done <change-id>` applies these lines on `<main>` right after the merge (§5).
|
|
210
|
+
|
|
188
211
|
**Status values (exact strings, in this order):**
|
|
189
212
|
|
|
190
213
|
| status | set by | meaning / resume point |
|
|
@@ -260,9 +283,13 @@ Why this order; which items may run in parallel and which files each one owns.
|
|
|
260
283
|
|
|
261
284
|
`Mode` is `autonomous` (an orchestrator may run it end to end) or `owner` (needs the owner at the keyboard).
|
|
262
285
|
In `--auto`, decisions go to a `## Decisions (auto)` section at the end of roadmap.md.
|
|
263
|
-
`softure-archive`
|
|
264
|
-
|
|
265
|
-
|
|
286
|
+
`softure-archive` decides the transition to `done` / `done_code`. On the main branch it rewrites the row and the
|
|
287
|
+
item block and appends to `## Done` itself. On a change branch (`softure-worktree`, unless `worktree.cloudState` is
|
|
288
|
+
`"branch"`) it writes the same decision into the archived `change.md` → `## Roadmap handoff`, and
|
|
289
|
+
`wt-roadmap.py done <change-id>` applies it on `<main>` right after the merge. **A change branch never edits
|
|
290
|
+
`roadmap.md`**: every stage, from `in_progress` to `done`, is one script commit on `<main>`, so merging `<main>` into a
|
|
291
|
+
branch never conflicts on the roadmap. Orchestrators fall back to `wt-roadmap.py done` themselves when a thread did not
|
|
292
|
+
run it.
|
|
266
293
|
Each item block may carry `- **Input:** <path>` (e.g. the change folder), which tells research where its brief lives.
|
|
267
294
|
`change.md` is defined **only** in §4. softure-roadmap `--open-changes` and softure-new write the same format.
|
|
268
295
|
|
|
@@ -480,6 +507,20 @@ AGENTS.md (the managed SOFTURE block) and context/workflow.json from the main br
|
|
|
480
507
|
coordinator described there: follow "Operating mode: autonomous", starting with "Start of a run".
|
|
481
508
|
```
|
|
482
509
|
|
|
510
|
+
A coordinator without the pointer runs on the harness defaults (ask the owner before every merge),
|
|
511
|
+
so the paste is verified, never assumed:
|
|
512
|
+
- **Thread check.** Every thread of a hosted autonomous project checks, at session start, whether
|
|
513
|
+
the project instructions it was given contain this pointer (or any reference to this repository's
|
|
514
|
+
`AGENTS.md`). If not, its first message to the coordinator says so, carries the snippet with
|
|
515
|
+
`<owner>/<repo>` filled in from `origin`, and asks the coordinator to tell the owner where to paste
|
|
516
|
+
it. The thread then carries on with its change (`softure-worktree` → Cloud session).
|
|
517
|
+
- **Coordinator self-check.** A coordinator told by a thread (or noticing itself) that it has not
|
|
518
|
+
loaded the managed block reads `AGENTS.md` and `context/workflow.json` from the main branch at once
|
|
519
|
+
and follows them for the rest of the run, without waiting for the paste: from then on it gives the
|
|
520
|
+
go and runs the merge queue itself. It posts the snippet to the owner in the main chat, with where
|
|
521
|
+
to paste it (the hosted project's instructions), records in memory that the pointer is missing, and
|
|
522
|
+
repeats it as an owner step in every report until the owner confirms the paste.
|
|
523
|
+
|
|
483
524
|
**New roadmap.** When the owner hands over a new roadmap, the coordinator starts one roadmap thread
|
|
484
525
|
that only runs `softure-roadmap`, merges `roadmap.md` and ends. Only then does it start one thread
|
|
485
526
|
per ready item. A single thread never records a roadmap and implements its items.
|
|
@@ -493,8 +534,8 @@ runs in a checkout and reads the block itself.
|
|
|
493
534
|
| step | local | hosted project |
|
|
494
535
|
| --- | --- | --- |
|
|
495
536
|
| launch (M3) | `wm-launch.sh` | start a thread session with the standard brief (item ID, change-id, outcome, base, owned files, waits for, merge path, report-to, "follow AGENTS.md → Operating mode: autonomous") |
|
|
496
|
-
| in-flight state (M0.1) | `wm-resume.sh` | roadmap rows on `origin/<main
|
|
497
|
-
| watch (M4) | `wm-watch.sh` Monitor | thread messages and the report routine; no polling |
|
|
537
|
+
| in-flight state (M0.1) | `wm-resume.sh` | roadmap rows on `origin/<main>`, live for every stage (with `cloudState: "branch"` they show only at merge, so also memory), the harness's thread list, open pull requests |
|
|
538
|
+
| watch (M4) | `wm-watch.sh` Monitor | thread messages and the report routine; no polling when PR events reach the threads, otherwise each thread polls its own CI (below) |
|
|
498
539
|
| READY / merged report | `SendMessage` | cross-session message to the coordinator's session, never a reply in the thread |
|
|
499
540
|
| go | a signal in the conversation | coordinator-to-thread message |
|
|
500
541
|
| branch | `<change-id>` in a worktree | the branch the harness assigns; the change-id lives in `context/changes/` and `change.md` → `branch:` |
|
|
@@ -502,6 +543,18 @@ runs in a checkout and reads the block itself.
|
|
|
502
543
|
| reports / heartbeat | `CronCreate` | a recurring routine; without a scheduling tool, a setup thread creates it from `softure-worktree-manager/references/report-routine.md` |
|
|
503
544
|
| close | `claude stop` + worktree removal | the thread resolves itself after its pull request is merged; on the merge result the coordinator checks it and resolves it if still open |
|
|
504
545
|
|
|
546
|
+
**When PR events do not arrive.** A thread checks at session start whether pull request activity can
|
|
547
|
+
reach it (the subscription succeeds, the forge app has access to the repository). If not, after every
|
|
548
|
+
push it checks its pull request's checks itself until they finish (a scheduled wake-up every few
|
|
549
|
+
minutes, at most about 60 minutes) instead of ending the turn waiting for an event. The coordinator
|
|
550
|
+
records in memory which forge events do not arrive in this project, and nudges a thread whose go has
|
|
551
|
+
produced no merge SHA within 30 minutes.
|
|
552
|
+
|
|
553
|
+
**Startable set.** On every merge result and every report the coordinator recomputes, from
|
|
554
|
+
`roadmap.md` on `origin/<main>`, every item that is not done, has no thread and has all prerequisites
|
|
555
|
+
on `<main>` (or none), and starts a thread for each; `softure-worktree/scripts/wt-startable.py` prints
|
|
556
|
+
the set. It never derives the next start only from the thread that just merged.
|
|
557
|
+
|
|
505
558
|
`worktree.cloudState` (§2) and `install.gitignore: false` (for containers that never run
|
|
506
559
|
`npm install`) apply to the threads as to any cloud session. Forge access in a hosted session is often
|
|
507
560
|
scoped to the project's own repository: attach a repository the run needs (for example SOFTURE/SKILLS
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@softure-ai/skills",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.0",
|
|
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
|
@@ -86,7 +86,10 @@ so every session reads it here itself; it is not consent relayed by another sess
|
|
|
86
86
|
to this section instead of quoting chat messages. **Only a production deploy or release waits for the
|
|
87
87
|
owner's word** (see Releases). Nothing in this section needs to be told to a fresh session again;
|
|
88
88
|
a hosted project's coordinator that does not run inside a checkout gets one pointer to it in the
|
|
89
|
-
project instructions (WORKFLOW §8.5).
|
|
89
|
+
project instructions (WORKFLOW §8.5). A thread whose project instructions lack that pointer tells the
|
|
90
|
+
coordinator in its first message, with the snippet filled in; the coordinator then reads this block
|
|
91
|
+
and `context/workflow.json` from the main branch at once and follows them for the rest of the run,
|
|
92
|
+
without waiting for the paste (WORKFLOW §8.5, Bootstrap).
|
|
90
93
|
|
|
91
94
|
**Decide, don't ask.** Take the recommended option and record it under `## Decisions (auto)` in the
|
|
92
95
|
artifact. Small product decisions are yours: the owner trusts the recommendation and corrects it
|
|
@@ -108,10 +111,14 @@ irreversible action nobody asked for, a secret or access only the owner has, sco
|
|
|
108
111
|
hosted project's main-chat session on its first message) starts the run itself, without waiting for
|
|
109
112
|
the owner's "go":
|
|
110
113
|
1. read `context/workflow.json` and the roadmap (or the issue queue) on the main branch; outside a
|
|
111
|
-
checkout, read them, and this block, from the repository first
|
|
114
|
+
checkout, read them, and this block, from the repository first. Then read the project's memory and
|
|
115
|
+
its own coordinator conventions (the project's `AGENTS.md` outside this block). When memory lacks
|
|
116
|
+
the run state (the serial merge queue holder, the report routine id, the lanes, which forge events
|
|
117
|
+
do not reach the threads), write it there before starting threads;
|
|
112
118
|
2. adopt what is already in flight: roadmap rows `in_progress` or `ready_to_merge`, the harness's open
|
|
113
119
|
threads, open pull requests (`softure-worktree-manager` M0.1); give the go to every READY thread;
|
|
114
|
-
3. start a thread for every
|
|
120
|
+
3. start a thread for every startable item (below), items with no prerequisites included, whatever
|
|
121
|
+
lane they sit in;
|
|
115
122
|
4. create the report routine and post the first roadmap report.
|
|
116
123
|
Only a "stop" or "pause" from the owner, recorded in memory, holds it back.
|
|
117
124
|
|
|
@@ -137,8 +144,14 @@ Only a "stop" or "pause" from the owner, recorded in memory, holds it back.
|
|
|
137
144
|
then ends. Once it is merged, start one thread per ready item, as for any run. Never brief a single
|
|
138
145
|
thread to record a roadmap and implement its items, or to implement a whole roadmap.
|
|
139
146
|
- Runs as many threads as are parallel-safe; `worktree.maxParallel` is a soft default.
|
|
140
|
-
- **The roadmap keeps rolling
|
|
141
|
-
|
|
147
|
+
- **The roadmap keeps rolling: recompute the startable set on every merge result and every report.**
|
|
148
|
+
Read `roadmap.md` on `origin/<main>`; every item that is not done, has no thread, and whose
|
|
149
|
+
prerequisites are all `done` or `done_code` on `<main>` (or has none) gets a thread now, within the
|
|
150
|
+
parallel-safe limit. Never derive it only from the thread that just merged or from its lane
|
|
151
|
+
successor: an item with no prerequisites is never "unblocked by a merge", and an item a sloppy
|
|
152
|
+
merge round missed must still be picked up. `softure-worktree/scripts/wt-startable.py` prints the
|
|
153
|
+
set (`START` rows; `WAIT` rows name the missing prerequisites). Never wait for the rest of the wave.
|
|
154
|
+
Take no new items beyond the roadmap or the issue queue without the owner.
|
|
142
155
|
- A brief names the item ID and change-id, the outcome, the base branch, the files it owns, what it
|
|
143
156
|
waits for, the merge path, how to report back (condensed, to the coordinator's session), and "follow
|
|
144
157
|
AGENTS.md → Operating mode: autonomous". Project-specific standing orders are appended.
|
|
@@ -147,28 +160,59 @@ Only a "stop" or "pause" from the owner, recorded in memory, holds it back.
|
|
|
147
160
|
the owner. **Check every thread waiting for your go on every report and every wake-up**: give the go
|
|
148
161
|
or say what blocks it. A green PR that sits unmerged because nobody said "go" is the coordinator's
|
|
149
162
|
failure.
|
|
163
|
+
- **Stale go:** a thread that got its go and has sent no merge SHA within 30 minutes is nudged at once
|
|
164
|
+
(what is it waiting for, CI or a conflict?), not at the next report.
|
|
150
165
|
- Posts every thread's result in the main chat as it arrives (condensed, decision first).
|
|
151
166
|
- **Makes sure finished threads are closed.** On every merge result, and whenever a thread with a
|
|
152
167
|
one-off job hands its result over (a planning thread, the report routine setup thread once it sends
|
|
153
168
|
the routine id back, a report thread), check that the thread is resolved and resolve it yourself
|
|
154
169
|
(`set_thread_resolved` or the equivalent) if it is not. Never close a thread whose pull request is
|
|
155
170
|
still open.
|
|
156
|
-
- Nudges stalled threads (waiting on CI, stopped by a usage limit) on every report
|
|
171
|
+
- Nudges stalled threads (waiting on CI, stopped by a usage limit) on every report: every working
|
|
172
|
+
thread silent for 45 minutes or more gets a nudge in that firing.
|
|
157
173
|
- A new question about the roadmap goes to a new thread; the old one is closed.
|
|
158
174
|
|
|
159
175
|
**Thread duties:**
|
|
160
176
|
- Run the whole chain for its change (`softure-worktree`), deciding by the rules above.
|
|
161
|
-
-
|
|
162
|
-
|
|
163
|
-
|
|
177
|
+
- **Check the coordinator's bootstrap** in a hosted project: at session start, look for the WORKFLOW
|
|
178
|
+
§8.5 pointer (or any reference to this repository's `AGENTS.md`) in the project instructions the
|
|
179
|
+
session was given. When it is missing, the first message to the coordinator says so, carries the
|
|
180
|
+
snippet with `<owner>/<repo>` filled in, and asks the coordinator to tell the owner where to paste
|
|
181
|
+
it. Then carry on with the change.
|
|
182
|
+
- At READY (green PR, the main branch merged in when Merging below says it is needed): send the
|
|
183
|
+
condensed result to the coordinator and wait for its go. Never write that it waits for the owner.
|
|
184
|
+
Without a coordinator, merge at READY.
|
|
185
|
+
- After the go: merge (below), then record the roadmap state on the main branch
|
|
186
|
+
(`wt-roadmap.py done <change-id>`) and send the merge result to the coordinator.
|
|
187
|
+
- **Watch your own CI when PR events cannot reach you.** At session start, check whether pull request
|
|
188
|
+
activity can reach the thread (the subscription succeeds, the forge app has access to the
|
|
189
|
+
repository). If not, after every push check the pull request's checks yourself until they finish:
|
|
190
|
+
a scheduled wake-up every few minutes, for at most about 60 minutes, then report what is still
|
|
191
|
+
pending. Never end the turn waiting for an event that cannot arrive.
|
|
164
192
|
- **Close the thread only when the work is really done: its pull request is merged into the main
|
|
165
193
|
branch** (`set_thread_resolved` or the equivalent). A thread with an open pull request stays open,
|
|
166
194
|
READY included. It stays open also while an owner action gates its result.
|
|
167
195
|
|
|
168
196
|
**Merging.**
|
|
169
197
|
- Merges are serial, first ready first merged. A ready merge never waits for the owner.
|
|
170
|
-
-
|
|
171
|
-
|
|
198
|
+
- **The roadmap state lives on the main branch, never on a change branch.** Branches do not edit
|
|
199
|
+
`roadmap.md`: `wt-roadmap.py` writes every stage on the main branch (`open`, `stage`, `ready`), and
|
|
200
|
+
the thread runs `wt-roadmap.py done <change-id>` right after its merge; it takes the `## Done`,
|
|
201
|
+
owner-check and release lines from the archived `change.md` (`softure-archive --handoff`). Only
|
|
202
|
+
`worktree.cloudState: "branch"` keeps the old flow, where the branch carries its own row.
|
|
203
|
+
- **Merge the main branch in only when needed** (`autonomy.remergeMain: "when-needed"`, the default).
|
|
204
|
+
After the go, run `softure-worktree/scripts/wt-merge-check.py`. `merge-as-is` (the forge reports the
|
|
205
|
+
pull request mergeable, and since the branch last merged it the main branch brought no migration, no
|
|
206
|
+
dependency change and no file the branch also changes): merge the pull request as it is; its checks
|
|
207
|
+
were green at READY. `remerge`: merge the fresh main branch in, resolve conflicts yourself, run the
|
|
208
|
+
`RUN` lines it prints, push. The main branch is the source of truth: what it has and the branch lacks
|
|
209
|
+
is pulled in and wired. `"always"`: merge the main branch in before every merge.
|
|
210
|
+
- **A merge of the main branch re-runs only what it can break:** every gate except the test gate, plus
|
|
211
|
+
`autonomy.relatedTests` for the files the branch changes. The full suite runs again only when the
|
|
212
|
+
incoming changes add a migration or touch dependencies, test setup or config (`wt-merge-check.py`
|
|
213
|
+
prints `GATES full`), and once per roadmap in the release gate.
|
|
214
|
+
- **Merge on green without polling.** When a merge has to wait for checks, enable the forge's auto-merge
|
|
215
|
+
for the pull request at go time where it is available; poll the checks only where it is not.
|
|
172
216
|
- `autonomy.merge: "pr"` (default): open a pull request (`Closes #N` when it solves an issue), wait for
|
|
173
217
|
green checks, merge it on the forge; the forge deletes the head branch. `"push"`: `git merge --no-ff`
|
|
174
218
|
locally, then push the main branch through the pre-push hook.
|
|
@@ -182,7 +226,11 @@ Only a "stop" or "pause" from the owner, recorded in memory, holds it back.
|
|
|
182
226
|
|
|
183
227
|
**Roadmap reports** (coordinator, pasted into the main chat, times in `timezone`):
|
|
184
228
|
- When: after every batch of thread starts (an ad-hoc post), and every `autonomy.reports.every`
|
|
185
|
-
minutes (default 60) on full hours inside `autonomy.reports.hours`, only while work runs.
|
|
229
|
+
minutes (default 60) on full hours inside `autonomy.reports.hours`, only while work runs.
|
|
230
|
+
`hours: null` (the default) means around the clock, and that is the recommended setting for an
|
|
231
|
+
autonomous run: the report routine is also the run's heartbeat (it recomputes the startable set,
|
|
232
|
+
gives the go, nudges stalled threads), so a window that sleeps at night leaves the night
|
|
233
|
+
unsupervised. Routines
|
|
186
234
|
fire at most once an hour, on the full hour, so the schedule is `every` rounded up to a multiple of
|
|
187
235
|
60 (60 → `0 * * * *`, 120 → `0 */2 * * *`; `wt_config.py --report-cron` prints it); a value below 60
|
|
188
236
|
runs hourly. **One recurring routine** drives the reports: the coordinator creates it when work
|
|
@@ -202,10 +250,12 @@ Only a "stop" or "pause" from the owner, recorded in memory, holds it back.
|
|
|
202
250
|
- **ID**: the roadmap item ID, an uppercase prefix of two or three letters plus a number (`FC-5`,
|
|
203
251
|
`SA-12`, `CMP-3`); in issue mode the issue number (`#42`). Bold, nothing else in the cell.
|
|
204
252
|
- **What it does**: the outcome in a few words.
|
|
205
|
-
- **Stage**: `waiting for <IDs
|
|
253
|
+
- **Stage**: `waiting for <IDs>` (the prerequisite IDs not yet on `<main>`; `waiting for
|
|
254
|
+
predecessors` without IDs is invalid), `research`, `frame`, `plan`, `plan-review`, `implement N/M`,
|
|
206
255
|
`impl-review`, `integration`, `archive`, `ready to merge (PR #N)`, `merging (PR #N)`,
|
|
207
256
|
`blocked (<why>)`, `waits for the owner (<what>)`; add `stalled` when the thread has not moved
|
|
208
|
-
since the last report.
|
|
257
|
+
since the last report. An item whose prerequisites are all on `<main>` but has no thread is a
|
|
258
|
+
coordinator failure: start its thread in the same firing, before posting the report.
|
|
209
259
|
- **Link**: a markdown link to the thread that carries the item, `[thread](<url>)`; `—` when it has
|
|
210
260
|
none. Never a forge URL: the PR number lives in Stage;
|
|
211
261
|
4. `Decision: …` when the owner has something to decide;
|
|
@@ -251,7 +301,9 @@ needs the fix is `blocked (<repo>#<N>)`.
|
|
|
251
301
|
- Public text (issues, pull requests, commits, docs) stays neutral: no personal references, no names
|
|
252
302
|
of private projects (write "an adopting app").
|
|
253
303
|
|
|
254
|
-
**Releases.**
|
|
304
|
+
**Releases.** `release.owner` gates tagging, publishing and deploying only, never merging pull
|
|
305
|
+
requests into the main branch: merges always follow the coordinator's go (Merging). With
|
|
306
|
+
`release.owner: true` nothing is tagged, published or deployed: work ends
|
|
255
307
|
`done_code` with the owner's steps under `## Before the next release`, and a release follows only the
|
|
256
308
|
owner's word for that release. With `release.owner: false` the coordinator releases once per wave
|
|
257
309
|
through the project's own pipeline (version-bump pull request → merge → the pipeline publishes); with
|
|
@@ -268,12 +320,14 @@ pull requests, CI, releases, issues), then nudge the interrupted threads. If the
|
|
|
268
320
|
push, merge or publish this section covers, cite this section and `mode` once; if it still refuses,
|
|
269
321
|
ask the owner for a word in that session and keep the other work going.
|
|
270
322
|
|
|
271
|
-
**Memory** holds only project state (queue, IDs, counters, the owner's specific orders and decisions)
|
|
272
|
-
|
|
273
|
-
|
|
323
|
+
**Memory** holds only project state (queue, IDs, counters, the owner's specific orders and decisions)
|
|
324
|
+
and the run state a fresh coordinator needs (the merge queue holder, the report routine id, the lanes,
|
|
325
|
+
which forge events do not reach the threads). The rules above are not memory material. **When the
|
|
326
|
+
owner has to explain or correct how the process runs** (a step that should have happened by itself, a rule that is missing or wrong), that is a gap in
|
|
274
327
|
these skills: the session that received it checks SOFTURE/SKILLS for a duplicate, files an issue right
|
|
275
328
|
away (neutral text, "an adopting app") and posts the link in the main chat. Memory keeps only the
|
|
276
|
-
project-specific order itself.
|
|
329
|
+
project-specific order itself. The same holds when an audit finds a coordinator miss: record the
|
|
330
|
+
project-specific consequence in memory, file the generic gap.
|
|
277
331
|
|
|
278
332
|
## Conventions
|
|
279
333
|
|
|
@@ -8,7 +8,7 @@ description: >
|
|
|
8
8
|
checks for the owner, fix links, and commit. Handles changes without a plan, a roadmap with
|
|
9
9
|
someone else's uncommitted edits, and a half-finished earlier run. Use when the user says
|
|
10
10
|
"archive the change", "close this change", "we're done with X", or after softure-impl-review.
|
|
11
|
-
argument-hint: "<change-id | path> [--auto] [--done-code \"<what waits>\"]"
|
|
11
|
+
argument-hint: "<change-id | path> [--auto] [--done-code \"<what waits>\"] [--handoff]"
|
|
12
12
|
allowed-tools:
|
|
13
13
|
- Read
|
|
14
14
|
- Glob
|
|
@@ -77,7 +77,9 @@ hard stops. Sample reports: [references/example-archive.md](references/example-a
|
|
|
77
77
|
is the `created` date from change.md, not today. `git mv` stages the rename with the
|
|
78
78
|
committed content only, so run `git add context/archive/<created>-<id>` afterwards or the
|
|
79
79
|
stamp stays out of the commit.
|
|
80
|
-
3. **Update the roadmap** (when change.md has `roadmap_item`, or a row with `` `<id>` `` exists)
|
|
80
|
+
3. **Update the roadmap** (when change.md has `roadmap_item`, or a row with `` `<id>` `` exists).
|
|
81
|
+
With `--handoff` (a change branch, see *Inside a worktree*), do not touch `roadmap.md`: write
|
|
82
|
+
the same decisions into `change.md` → `## Roadmap handoff` instead (below), then go on with step 5.
|
|
81
83
|
- Match exactly: the row whose second cell is `` `<id>` ``. One item can spawn several
|
|
82
84
|
changes, so a near miss is never closed. If `roadmap_item` names an ID whose row carries a
|
|
83
85
|
different change-id, report it and leave the row alone.
|
|
@@ -139,15 +141,37 @@ checks. Pick `done_code` whenever any Manual item is open or the change affects
|
|
|
139
141
|
|
|
140
142
|
## Inside a worktree
|
|
141
143
|
|
|
142
|
-
Archive **on the change branch**, before the merge.
|
|
143
|
-
|
|
144
|
-
|
|
144
|
+
Archive **on the change branch**, before the merge. `softure-worktree` passes `--handoff` (unless
|
|
145
|
+
`worktree.cloudState` is `"branch"`): the branch never edits `roadmap.md`, because the roadmap
|
|
146
|
+
state lives on the main branch and is written only by `wt-roadmap.py`. Steps 3 and 4 then write
|
|
147
|
+
one section at the end of the archived `change.md` (WORKFLOW §4), in this exact form:
|
|
148
|
+
|
|
149
|
+
```markdown
|
|
150
|
+
## Roadmap handoff
|
|
151
|
+
- **Status:** done_code (waiting: <what waits>)
|
|
152
|
+
- **Done:** <outcome, one line>
|
|
153
|
+
- **Owner check:** <item text> (Manual N.M)
|
|
154
|
+
- **Before the next release:** <what must happen before the next deploy>
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
`Status` is `done` or `done_code (waiting: <what>)`, chosen as in step 3 (no date: the script
|
|
158
|
+
stamps the merge day). One `Owner check` line per open Manual item or owner-targeted deferred
|
|
159
|
+
finding, one `Before the next release` line per deploy prerequisite; leave out lines that have
|
|
160
|
+
nothing to say. Right after the merge, `wt-roadmap.py done <change-id>` reads the section from
|
|
161
|
+
the main branch and writes the row, the item block, `## Done`, `## Owner decisions and checks`
|
|
162
|
+
and `## Before the next release`. The report says `roadmap: handed off (wt-roadmap.py done after
|
|
163
|
+
the merge)`.
|
|
164
|
+
|
|
165
|
+
Without `--handoff` (`cloudState: "branch"`), the roadmap edits are made on the branch and
|
|
166
|
+
conflict textually with other merged changes; that is expected. `softure-worktree` resolves them
|
|
167
|
+
row by row during the merge. Do not touch rows of other items.
|
|
145
168
|
|
|
146
169
|
## Checklist
|
|
147
170
|
|
|
148
171
|
- [ ] No uncommitted files of the change before and after; nobody else's WIP or staged work in the commit.
|
|
149
172
|
- [ ] `status: archived` and `archived_at` set, the stamp inside the commit; folder named by `created`.
|
|
150
|
-
- [ ] Roadmap row last cell, item block status, `## Done` and `updated` all changed (or the skip is reported)
|
|
173
|
+
- [ ] Roadmap row last cell, item block status, `## Done` and `updated` all changed (or the skip is reported);
|
|
174
|
+
with `--handoff`, `roadmap.md` untouched and `## Roadmap handoff` written instead.
|
|
151
175
|
- [ ] Open Manual items listed for the owner; deploy prerequisites under `## Before the next release`.
|
|
152
176
|
- [ ] No dangling links; one commit, conventional message, not pushed.
|
|
153
177
|
|
|
@@ -94,7 +94,12 @@ start any work: no change, PRD or roadmap is created here.
|
|
|
94
94
|
8. **Report** a status block, one line per artifact (`created`, `present` or `merged: <keys>`),
|
|
95
95
|
then the unresolved values the owner should fill in, every inferred value with its reason,
|
|
96
96
|
and the next step. With `mode: "autonomous"`, end it with the project-instructions snippet
|
|
97
|
-
for hosted projects (WORKFLOW §8.5), `<owner>/<repo>` filled in from `origin`, ready to paste
|
|
97
|
+
for hosted projects (WORKFLOW §8.5), `<owner>/<repo>` filled in from `origin`, ready to paste,
|
|
98
|
+
and list the paste among the unresolved values as an open owner step
|
|
99
|
+
(`[ ] paste the WORKFLOW §8.5 pointer into the hosted project's instructions`). It stays open
|
|
100
|
+
until a session confirms the pointer is present: a re-run of init in an autonomous project lists
|
|
101
|
+
it again unless the owner confirmed it, and every hosted thread checks it at session start
|
|
102
|
+
(`softure-worktree` → Cloud session), so nothing later assumes the paste happened.
|
|
98
103
|
Then stop: do not chain into other skills.
|
|
99
104
|
|
|
100
105
|
## `workflow.json`
|
|
@@ -130,10 +135,10 @@ only when it was detected or the user asked for it:
|
|
|
130
135
|
| `integration.cadence` | `"change"` (every change runs the suite before archive) | the user wants one run per roadmap (`"roadmap"`) |
|
|
131
136
|
| `integration.lookup` | every call starts a run | the project stores results per commit (e.g. a git note) and has a command that prints one |
|
|
132
137
|
| `integration.coveredByRelease` | `false` | the release pipeline runs the same full suite on the released commit |
|
|
133
|
-
| `worktree.cloudState` | `"main"` | the user runs cloud sessions
|
|
138
|
+
| `worktree.cloudState` | `"main"` (roadmap state on the main branch, branches never edit `roadmap.md`) | the user runs cloud sessions whose pre-push hook has no cheap path for `context/`-only pushes and wants the state on the branch (`"branch"`) |
|
|
134
139
|
| `research.sources` | none | step 2 found docs, ADRs or a PRD (interactive: listed in the plan; `--auto`: only paths that exist) |
|
|
135
140
|
| `install` | gitignore the skills, inject all rule sections | the user wants committed skills or fewer rule sections (the language section always ships; `allowNonEnglishCode: true` only on the owner's explicit word) |
|
|
136
|
-
| `autonomy` | roadmap as the work source, merge via pull request, reports every 60 min (`reports.every`; routines fire at most hourly) | `mode` is `autonomous` and the user names issues as the queue, merges by push, or another report cadence |
|
|
141
|
+
| `autonomy` | roadmap as the work source, merge via pull request, `<main>` merged into a branch only when needed (`remergeMain: "when-needed"`; add `relatedTests`, e.g. `npx vitest related --run {files}`, when the test runner has one), reports every 60 min around the clock (`reports.every`, `reports.hours: null`; routines fire at most hourly; the routine is also the run's heartbeat, so keep it 24/7) | `mode` is `autonomous` and the user names issues as the queue, merges by push, or another report cadence |
|
|
137
142
|
|
|
138
143
|
Content of the README files, and a complete worked example (detection, plan, report) for a
|
|
139
144
|
fictional repo: read `references/templates.md` **when writing the READMEs** and
|
|
@@ -154,6 +159,7 @@ Optional keys other than `research.sources` are never written in `--auto`.
|
|
|
154
159
|
- [ ] Every gate in `workflow.json` points at something that exists, or is `null`.
|
|
155
160
|
- [ ] Gate commands use the repo's package manager.
|
|
156
161
|
- [ ] The report lists the unresolved values the owner should fill in, and every inferred value.
|
|
162
|
+
- [ ] With `mode: "autonomous"`: the §8.5 snippet is printed and the paste is an open owner step.
|
|
157
163
|
|
|
158
164
|
## Do not
|
|
159
165
|
|