@softure-ai/skills 0.25.0 → 0.26.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/WORKFLOW.md CHANGED
@@ -560,7 +560,18 @@ project's own `AGENTS.md`, outside the managed block, not in a session's memory.
560
560
 
561
561
  A hosted multi-session project (for example a claude.ai project) has a **main-chat session** that
562
562
  the owner talks to and that starts **thread sessions**. The main-chat session is the coordinator;
563
- each thread carries one change. They differ from a local run in three ways: the coordinator has no
563
+ each thread carries one change.
564
+
565
+ **One roadmap item = one change = one thread session**, however the work starts: a new roadmap, the
566
+ owner's go on an existing roadmap ("implement the roadmap item by item"), an owner-word issue, a
567
+ resumed run. "Item by item" means one thread per item. Serial order comes from starting the next
568
+ item's thread after the previous merge (the startable set, below), never from queueing items in one
569
+ thread; "merges are serial" and `worktree.maxParallel` are about how many threads merge or run at
570
+ once, never about how many items one thread carries. Two guards keep it:
571
+ - **Coordinator:** before sending a brief, check that it names exactly one item ID and one change-id.
572
+ - **Thread:** a thread whose brief names more than one item (several IDs, a lane, a whole roadmap)
573
+ carries only the first, tells the coordinator at once that the rest need their own threads, and
574
+ resolves after its one merge. It never starts a second item in the same session. They differ from a local run in three ways: the coordinator has no
564
575
  shell over the threads, each thread is a cloud session in its own container on a branch the harness
565
576
  assigns, and the coordinator is started by the harness, not inside a checkout.
566
577
 
@@ -602,7 +613,7 @@ runs in a checkout and reads the block itself.
602
613
 
603
614
  | step | local | hosted project |
604
615
  | --- | --- | --- |
605
- | 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") |
616
+ | launch (M3) | `wm-launch.sh` | start one thread session per item with the standard brief (exactly one item ID and one change-id, outcome, base, owned files, waits for, merge path, report-to, "follow AGENTS.md → Operating mode: autonomous") |
606
617
  | 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 |
607
618
  | 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) |
608
619
  | READY / merged report | `SendMessage` | cross-session message to the coordinator's session, never a reply in the thread |
@@ -808,6 +819,10 @@ recorded:
808
819
  | `step` | `owner step:` entries and manual-mode owner checks `(Manual N.M)`; open `## Before the next release` entries; `done_code` rows waiting for an owner step that has no entry; `**Owner step:**` / `**Owner check:**` lines of an open change's `## Roadmap handoff` |
809
820
  | `secret` | a `step` whose text names a secret, key, token, credential or password |
810
821
 
822
+ The idle placeholder `roadmap.md` (`status: idle` or `roadmap: none`) is no active roadmap, but a project between
823
+ roadmaps still has owner steps: its open `## Owner decisions and checks` and `## Before the next release` entries
824
+ feed `owner_queue` like the main roadmap's, so an owner-word issue can answer them by `id` (§8.6).
825
+
811
826
  An archived roadmap contributes nothing, with one exception: the newest one, while its `## Summary` records no
812
827
  `Release:` line, contributes its open `## Before the next release` steps (the close comes before the release, §5.2).
813
828
  An unticked entry in any other archived roadmap, and any unticked `## Owner decisions and checks` entry in an archived
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@softure-ai/skills",
3
- "version": "0.25.0",
3
+ "version": "0.26.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
@@ -139,6 +139,12 @@ the owner's to-do.
139
139
  AGENTS.md → Operating mode: autonomous"). It carries one change and talks only to the coordinator.
140
140
  - A session started by the owner directly, with no coordinator, does both jobs itself.
141
141
 
142
+ **One item = one change = one thread.** This holds however the work starts: a new roadmap, the owner's
143
+ go on an existing roadmap, an owner-word issue, an issue from the queue, a resumed run. "Item by item"
144
+ means one thread per item, never one thread that carries several items in a row. Serial order comes
145
+ from starting the next item's thread after the previous merge (the startable set, below), never from
146
+ queueing items in one thread. A thread never starts a second item in the same session.
147
+
142
148
  **Start of a run.** A coordinator that wakes with no run in flight (a fresh or cleared session, or a
143
149
  hosted project's main-chat session on its first message) starts the run itself, without waiting for
144
150
  the owner's "go":
@@ -171,9 +177,9 @@ Only a "stop" or "pause" from the owner, recorded in memory, holds it back.
171
177
 
172
178
  **Coordinator duties:**
173
179
  - Writes no code: every fix, even one line, becomes a change in its own thread.
174
- - One thread = one change (one issue). Very similar tiny items may share a thread; items that touch
175
- the same files go to the same thread or wait. A planning thread hands its result over and is closed.
176
- Before starting a thread, check that the item has none yet.
180
+ - One thread = one change = one roadmap item or one issue (One item = one change = one thread, above).
181
+ Items that touch the same files wait for each other; they never share a thread. A planning thread
182
+ hands its result over and is closed. Before starting a thread, check that the item has none yet.
177
183
  - **A new roadmap is two steps, never one thread.** When the owner hands over a new roadmap (or a
178
184
  revision), brief one roadmap thread that only shapes, records, commits and merges `roadmap.md`
179
185
  **and** opens the change of every new item (`context/changes/<change-id>/change.md`, with the item
@@ -181,7 +187,8 @@ Only a "stop" or "pause" from the owner, recorded in memory, holds it back.
181
187
  start one thread per ready item, as for any run; each item thread starts from its change, not
182
188
  from the roadmap row. Never brief a single thread to record a roadmap and implement its items, or
183
189
  to implement a whole roadmap.
184
- - Runs as many threads as are parallel-safe; `worktree.maxParallel` is a soft default.
190
+ - Runs as many threads as are parallel-safe; `worktree.maxParallel` is a soft default for how many
191
+ threads run at once, each with its own item, never a number of items for one thread.
185
192
  - **The roadmap keeps rolling: recompute the startable set on every merge result and every report.**
186
193
  Read `roadmap.md` on `origin/<main>`; every item that is not done, has no thread, and whose
187
194
  prerequisites are all `done` or `done_code` on `<main>` (or has none) gets a thread now, within the
@@ -190,7 +197,8 @@ Only a "stop" or "pause" from the owner, recorded in memory, holds it back.
190
197
  merge round missed must still be picked up. `softure-worktree/scripts/wt-startable.py` prints the
191
198
  set (`START` rows; `WAIT` rows name the missing prerequisites). Never wait for the rest of the wave.
192
199
  Take no new items beyond the roadmap or the issue queue without the owner.
193
- - A brief names the item ID and change-id, the outcome, the base branch, the files it owns, what it
200
+ - A brief names exactly one item ID and one change-id (check this before sending it: a brief that
201
+ names two items, a lane or a whole roadmap is rewritten as one brief per item), the outcome, the base branch, the files it owns, what it
194
202
  waits for, the merge path, how to report back (condensed, to the coordinator's session), and "follow
195
203
  AGENTS.md → Operating mode: autonomous". Project-specific standing orders are appended.
196
204
  - **Gives the go itself.** A thread with a green pull request, no conflicts, inside the approved scope
@@ -218,6 +226,10 @@ Only a "stop" or "pause" from the owner, recorded in memory, holds it back.
218
226
 
219
227
  **Thread duties:**
220
228
  - Run the whole chain for its change (`softure-worktree`), deciding by the rules above.
229
+ - **One item per thread, even when the brief says otherwise.** A brief that names more than one item
230
+ (several IDs, a lane, a whole roadmap, "item by item") is a coordinator mistake: carry only the
231
+ first item, tell the coordinator at once that every other item needs its own thread, and resolve
232
+ after your one merge. Never start a second item in the same session.
221
233
  - **Check the coordinator's bootstrap** in a hosted project: at session start, look for the WORKFLOW
222
234
  §8.5 pointer (or any reference to this repository's `AGENTS.md`) in the project instructions the
223
235
  session was given. When it is missing, the first message to the coordinator says so, carries the
@@ -238,7 +250,9 @@ Only a "stop" or "pause" from the owner, recorded in memory, holds it back.
238
250
  READY included. It stays open also while an owner action gates its result.
239
251
 
240
252
  **Merging.**
241
- - Merges are serial, first ready first merged. A ready merge never waits for the owner.
253
+ - Merges are serial, first ready first merged: one merge at a time across the threads, each thread
254
+ merging its own one item. Serial merges never mean several items in one thread. A ready merge never
255
+ waits for the owner.
242
256
  - **The roadmap state lives on the main branch, never on a change branch.** Branches do not edit
243
257
  `roadmap.md`: `wt-roadmap.py` writes every stage on the main branch (`open`, `stage`, `ready`), and
244
258
  the thread runs `wt-roadmap.py done <change-id>` right after its merge; it takes the `## Done`,
@@ -472,6 +472,11 @@ def build_state(reader, prior: dict | None = None, now: str | None = None) -> di
472
472
  for row in rows if row["status"] not in DONE_STATUSES],
473
473
  }
474
474
  owner_queue += _owner_entries(ROADMAP_PATH, roadmap_text, rows, meta.get("updated") or today)
475
+ elif roadmap_text is not None:
476
+ # The idle placeholder is no active roadmap, but a project between roadmaps still has owner steps:
477
+ # its open `## Owner decisions and checks` and `## Before the next release` entries stay in the queue.
478
+ meta = frontmatter(roadmap_text)
479
+ owner_queue += _owner_entries(ROADMAP_PATH, roadmap_text, [], meta.get("updated") or today)
475
480
 
476
481
  queued = []
477
482
  for path in _roadmap_files(reader, QUEUED_DIR, r"^roadmap-.+\.md$"):
@@ -166,6 +166,12 @@ add`), the change-id lives in `context/changes/`, the READY and merge reports
166
166
  go to the coordinator's session by cross-session message, the go comes back
167
167
  the same way, and the thread is resolved only after its pull request is merged.
168
168
 
169
+ **One item per thread, in A0.** A thread carries exactly one roadmap item (or
170
+ one issue). When its brief names more than one (several IDs, a lane, a whole
171
+ roadmap, "implement the roadmap item by item"), carry only the first, tell the
172
+ coordinator at once that every other item needs its own thread (WORKFLOW §8.5),
173
+ and resolve after that one merge. Never start a second item in the same session.
174
+
169
175
  **Bootstrap check (hosted thread, autonomous mode), in A0.** The coordinator
170
176
  follows the managed block only if the project instructions point it there
171
177
  (WORKFLOW §8.5, Bootstrap); without the pointer it runs on the harness defaults
@@ -683,7 +683,9 @@ Everything else is decided and written into the report.
683
683
  resolutions.
684
684
  - **Every worktree, branch and background session maps to a row in flight**
685
685
  (M0.2). Stale ones get removed, not carried over.
686
- - **Merges are serial; launches are serial; workers run in parallel.**
686
+ - **Merges are serial; launches are serial; workers run in parallel.** One
687
+ worker (or hosted thread) carries exactly one item: serial means one merge
688
+ at a time, never several items queued in one worker.
687
689
  - **The batch is pairwise disjoint in code files, ≤ 1 migration**, and
688
690
  respects content dependencies and hot files.
689
691
  - **`context/changes/` holds exactly the queued and running changes**; the