@softure-ai/skills 0.7.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md 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 30 min |
39
+ | parallel sessions, reports | only when the owner starts them | coordinator + one session per change, report every 60 min |
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
package/WORKFLOW.md CHANGED
@@ -63,7 +63,8 @@ or languages.
63
63
  "lookup": null, // optional: command printing the stored result for INTEGRATION_SHA (exit 0 green, 1 red, 3 none);
64
64
  // wt-integration.sh reuses a green result for the same commit instead of starting a run
65
65
  "coveredByRelease": false // true: the release pipeline runs the same full suite on the released commit, so a roadmap
66
- // whose header orders "Release: at the end" gets no separate run at M7 (§5.2)
66
+ // whose header orders "Release: at the end" gets no separate run at M7 and closes
67
+ // without waiting for the release (§5.2)
67
68
  },
68
69
  "migrations": { // optional: lets orchestrators detect collisions between parallel changes
69
70
  "dir": "drizzle",
@@ -82,7 +83,8 @@ or languages.
82
83
  "source": "roadmap", // "roadmap": items come from roadmap.md; "issues": the forge's open issues are the queue
83
84
  "merge": "pr", // "pr": pull request with fresh <main>, merged on the forge after green checks (default);
84
85
  // "push": local --no-ff merge, then push <main> through the pre-push hook
85
- "reports": { "every": 30, "hours": null } // coordinator status reports: minutes (0 = off), optional "10:00-22:30" window
86
+ "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
86
88
  },
87
89
  "research": { // optional: extra knowledge sources softure-research should consult
88
90
  "sources": ["docs/", "context/foundation/prd.md"]
@@ -309,9 +311,17 @@ the end", otherwise by the owner). Gates, all checked on `<main>` and reported t
309
311
  2. `context/changes/` holds only its README, plus the folders of carried rows. Any other folder is archived first
310
312
  (`softure-archive`, including work done without a plan), never deleted and never left behind;
311
313
  3. when `integration` is configured: one green full run on the final `<main>` (its result line goes into the archive).
312
- With `integration.coveredByRelease: true` and the order "Release: at the end", that run is the release's: the
313
- gate reads the green result the release pipeline stored for the final `<main>` commit (`integration.lookup`).
314
- Until the release has run, the close waits and the report names it as the step after the release.
314
+ With `integration.coveredByRelease: true` and the order "Release: at the end", that run is the release's, and
315
+ the close **does not wait for it**: a green `integration.lookup` result for the final `<main>` commit is used
316
+ when one exists; otherwise the summary records `integration: covered by the release on <sha>
317
+ (coveredByRelease)`. The release's integration result gates the deploy, not the archive; its reds become new
318
+ roadmap rows as usual.
319
+
320
+ **Close before the release.** The release reads the roadmap to list what ships, so the archived file is the single
321
+ stable input for every release of that roadmap: the first attempt, a retry after a failed release, a redeploy or a
322
+ rollback re-run. A release that comes after the close passes it explicitly
323
+ (`softure-deploy release-notes --roadmap context/foundation/archive/<YYYY-MM-DD>-roadmap.md`). Rows that wait for
324
+ the release keep `done_code` in the archived `## At a glance`, so the release still lists them.
315
325
 
316
326
  Then, in one commit (`docs(roadmap): close <slug>`):
317
327
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@softure-ai/skills",
3
- "version": "0.7.0",
3
+ "version": "0.8.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
@@ -159,10 +159,13 @@ irreversible action nobody asked for, a secret or access only the owner has, sco
159
159
  suite runs per `integration.cadence`, never per push.
160
160
 
161
161
  **Roadmap reports** (coordinator, pasted into the main chat, times in `timezone`):
162
- - When: after every batch of thread starts, and every `autonomy.reports.every` minutes (default 30) at
163
- fixed marks (:00, :30) inside `autonomy.reports.hours`, only while work runs. Each report schedules
164
- the next one; stop the chain when nothing runs. After a pause (usage limit) name the reports that
165
- were skipped. A report produced in a thread of its own (a scheduled routine) is pasted into the main
162
+ - When: after every batch of thread starts (an ad-hoc post), and every `autonomy.reports.every`
163
+ minutes (default 60) on full hours inside `autonomy.reports.hours`, only while work runs. Routines
164
+ fire at most once an hour, on the full hour, so the schedule is `every` rounded up to a multiple of
165
+ 60 (60 → `0 * * * *`, 120 → `0 */2 * * *`; `wt_config.py --report-cron` prints it); a value below 60
166
+ runs hourly. **One recurring routine** drives the reports: the coordinator creates it when work
167
+ starts and deletes it when nothing runs, or on the owner's "stop" or "pause". Never a chain of
168
+ one-off wake-ups. After a pause (usage limit) name the reports that were skipped. A report produced in a thread of its own (a scheduled routine) is pasted into the main
166
169
  chat and that thread is closed at once.
167
170
  - Shape, the same in every project, nothing else:
168
171
  1. title: `Roadmap report <roadmap name>, <HH:MM>`;
@@ -185,7 +188,7 @@ irreversible action nobody asked for, a secret or access only the owner has, sco
185
188
  Example, shown in English (roadmap prefix `SA`):
186
189
 
187
190
  ```markdown
188
- **Roadmap report softure-auth, 14:30**
191
+ **Roadmap report softure-auth, 14:00**
189
192
  Done: 47 of 50 on master (latest SA-31, SA-59).
190
193
 
191
194
  | ID | What it does | Stage | Link |
@@ -198,7 +201,7 @@ irreversible action nobody asked for, a secret or access only the owner has, sco
198
201
  Times: SA-35 ready to merge around 15:30; next report 15:00.
199
202
  ```
200
203
 
201
- Nothing moved since the last report: one line (`14:30, no change: 47 of 50; SA-35 implement 2/3`).
204
+ Nothing moved since the last report: one line (`15:00, no change: 47 of 50; SA-35 implement 2/3`).
202
205
 
203
206
  **Bugs and gaps in SOFTURE packages.** A well-founded, non-duplicate bug or gap in an `@softure-ai/*`
204
207
  package (or in this project's own scope) is filed right away as an issue in the repository that owns
@@ -223,7 +226,8 @@ through the project's own pipeline (version-bump pull request → merge → the
223
226
  several threads on one package, the last to merge releases. No manual tags, no moved tags; a failed
224
227
  release is fixed forward with a patch bump. A production deploy always needs the owner's separate
225
228
  word. Ad-hoc fixes ride the next release instead of getting one of their own, unless the owner says
226
- otherwise.
229
+ otherwise. A roadmap ordered to be archived is closed before its release, and every release of it
230
+ (retries and redeploys included) reads the archived file (WORKFLOW §5.2).
227
231
 
228
232
  **Stop and limits.** "Stop" or "pause" from the owner stops everything: no new threads, report
229
233
  routines removed, open threads finished or stopped at a safe point; record the pause in memory and do
@@ -70,7 +70,7 @@ start any work: no change, PRD or roadmap is created here.
70
70
  said ("this project is autonomous", "we run it by hand"). Otherwise, interactive: ask "How is
71
71
  this project run?" with the options **manual** (recommended: the owner checks every step,
72
72
  commits and merges by hand; client projects) and **autonomous** (the agent decides, merges green
73
- work, coordinates parallel sessions and reports every 30 minutes). In `--auto` without a signal,
73
+ work, coordinates parallel sessions and reports every hour). In `--auto` without a signal,
74
74
  use `manual`. An existing `mode` is never changed here; switching is the owner's explicit call
75
75
  (WORKFLOW §8, "Switching mode").
76
76
  5. **Show the plan.** Without `--auto`, print the proposed tree and the full `workflow.json`,
@@ -131,7 +131,7 @@ only when it was detected or the user asked for it:
131
131
  | `worktree.cloudState` | `"main"` | the user runs cloud sessions that must keep state on the branch (`"branch"`) |
132
132
  | `research.sources` | none | step 2 found docs, ADRs or a PRD (interactive: listed in the plan; `--auto`: only paths that exist) |
133
133
  | `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) |
134
- | `autonomy` | roadmap as the work source, merge via pull request, reports every 30 min | `mode` is `autonomous` and the user names issues as the queue, merges by push, or another report cadence |
134
+ | `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 |
135
135
 
136
136
  Content of the README files, and a complete worked example (detection, plan, report) for a
137
137
  fictional repo: read `references/templates.md` **when writing the READMEs** and
@@ -77,8 +77,12 @@ Read the PRD in full, not in excerpts.
77
77
  Then write `## Summary` (`| ID | Item | What changed | Merge |`, the merge SHA from
78
78
  `git log --merges --grep "<change-id>"` on `<main>`, plus the integration line), move the file to
79
79
  `foundation/archive/<YYYY-MM-DD>-roadmap.md`, clean up the promoted roadmap's backlog folder and
80
- index row, and commit. Do not promote the next roadmap in the same step: that is `--promote`, the
81
- owner's call. In `--auto`, a failing gate stops the close and is reported; it is never forced.
80
+ index row, and commit. With `integration.coveredByRelease` and "Release: at the end" the close does not
81
+ wait for the release: the integration line reads `covered by the release on <sha> (coveredByRelease)`
82
+ unless a green stored result exists. The archived file is what the release notes read (every release
83
+ of this roadmap, retries and redeploys included); rows waiting for the release keep `done_code`, so
84
+ the release still lists them. Name the archived path in the report. Do not promote the next roadmap
85
+ in the same step: that is `--promote`, the owner's call. In `--auto`, a failing gate stops the close and is reported; it is never forced.
82
86
  A sample `## Summary` is at the end of [references/example-roadmap.md](references/example-roadmap.md).
83
87
 
84
88
  ## Existing roadmap
@@ -194,8 +198,8 @@ Overwriting a roadmap without archiving it is never an option. In `--auto`: revi
194
198
  - frontmatter: `prd_version` = the PRD `version`;
195
199
  - run-wide orders in the quote block: push main or not; archive the roadmap at the end or not;
196
200
  release at the end or not (only with the owner's approval, quoted: it tells the coordinator a release
197
- follows, and with `integration.coveredByRelease` the release's suite is the roadmap's run; skills
198
- still never release); parallelism (default: `workflow.json` → `worktree.maxParallel`); which items need the owner
201
+ follows, and with `integration.coveredByRelease` the release's suite is the roadmap's run; the roadmap
202
+ is archived before the release, which reads the archived file; skills still never release); parallelism (default: `workflow.json` → `worktree.maxParallel`); which items need the owner
199
203
  at the keyboard (`Mode: owner`);
200
204
  - `## Order` opens with the framing (optimising for, first proof, main risk, depth), then the
201
205
  reasoning for the order, `### Starting point` (the confirmed baseline, one line per layer
@@ -201,3 +201,7 @@ Waiting on you: the cancellation window (unblocks BK-3), the payment provider (B
201
201
  Carried over: BK-6 (owner: payment provider) → `roadmaps/roadmap-payments.md`.
202
202
  Integration: green 212/212 on e9f1c03.
203
203
  ```
204
+
205
+ With `integration.coveredByRelease` and "Release: at the end" the close runs before the release, so the last
206
+ line reads `Integration: covered by the release on e9f1c03 (coveredByRelease).` and the release that follows
207
+ lists BK-1 to BK-7 from this archived file.
@@ -4,10 +4,12 @@
4
4
  wt_config.py <dotted.key> # scalar -> one line; list -> one item per line; missing/null -> nothing
5
5
  wt_config.py --root # absolute path of the main worktree
6
6
  wt_config.py --json # the whole resolved config as JSON
7
+ wt_config.py --report-cron # cron of the autonomous report routine (nothing when reports are off)
7
8
 
8
9
  Always reads the config of the MAIN worktree (first entry of `git worktree list`), so every
9
10
  worktree and every script sees the same values. `mainBranch` falls back to origin's HEAD, then
10
- "main"; `worktree.maxParallel` to 4; `language` to "en"; `mode` to "manual".
11
+ "main"; `worktree.maxParallel` to 4; `language` to "en"; `mode` to "manual";
12
+ `autonomy.reports.every` to 60.
11
13
 
12
14
  Importable: `from wt_config import load_config, main_root, main_branch`.
13
15
  """
@@ -19,7 +21,13 @@ import subprocess
19
21
  import sys
20
22
 
21
23
  CONFIG_PATH = os.path.join("context", "workflow.json")
22
- DEFAULTS = {"mode": "manual", "language": "en", "worktree": {"maxParallel": 4, "setup": []}, "release": {"owner": True}}
24
+ DEFAULTS = {
25
+ "mode": "manual",
26
+ "language": "en",
27
+ "worktree": {"maxParallel": 4, "setup": []},
28
+ "release": {"owner": True},
29
+ "autonomy": {"reports": {"every": 60, "hours": None}},
30
+ }
23
31
 
24
32
 
25
33
  def main_root() -> str:
@@ -78,6 +86,20 @@ def lookup(config: dict, dotted: str):
78
86
  return node
79
87
 
80
88
 
89
+ def report_cron(config: dict) -> str | None:
90
+ """Cron for the report routine: `every` rounded up to whole hours (routines fire at most hourly)."""
91
+ every = lookup(config, "autonomy.reports.every")
92
+ if not every:
93
+ return None
94
+ if every < 60:
95
+ print(f"autonomy.reports.every={every} is below 60; routines run hourly at most, using 60",
96
+ file=sys.stderr)
97
+ hours = max(1, -(-int(every) // 60))
98
+ if hours >= 24:
99
+ return "0 0 * * *"
100
+ return "0 * * * *" if hours == 1 else f"0 */{hours} * * *"
101
+
102
+
81
103
  def main() -> None:
82
104
  if len(sys.argv) != 2:
83
105
  sys.exit(__doc__)
@@ -86,6 +108,11 @@ def main() -> None:
86
108
  print(main_root())
87
109
  return
88
110
  config = load_config()
111
+ if arg == "--report-cron":
112
+ cron = report_cron(config)
113
+ if cron:
114
+ print(cron)
115
+ return
89
116
  if arg == "--json":
90
117
  print(json.dumps(config, indent=2, ensure_ascii=False))
91
118
  return
@@ -377,9 +377,13 @@ or a machine that slept emits no stage event, so without it the run stalls
377
377
  silently.
378
378
 
379
379
  **Autonomous mode:** the clock follows `autonomy.reports` instead of the
380
- default: every `every` minutes (default 30) at the :00/:30 marks
381
- (`cron: "0,30 * * * *"`), inside `hours` when set; `every: 0` = off. An
382
- explicit `--status-every` still wins.
380
+ default: every `every` minutes (default 60) on full hours, inside `hours`
381
+ when set; `every: 0` = off. Build the cron from `every`, never from fixed
382
+ marks: `python3 <S>/wt_config.py --report-cron` prints it (`every` rounded up
383
+ to a multiple of 60, because routines fire at most hourly: 60 → `0 * * * *`,
384
+ 120 → `0 */2 * * *`). It is one recurring job for the whole run, created at
385
+ the first launch and deleted at M7 or on the owner's "stop"/"pause"; reports
386
+ never re-arm the next one. An explicit `--status-every` still wins.
383
387
 
384
388
  `--status-every N` changes the period (build the minute list from an
385
389
  off-mark offset: N=20 → `7,27,47 * * * *`); `--status-every 0` skips it. Arm
@@ -550,19 +554,20 @@ could not start.
550
554
  **Covered by the release** — `integration.coveredByRelease: true` **and** the
551
555
  header orders "Release: at the end" (the owner's approval, quoted): the
552
556
  release pipeline runs the same full suite on the released commit, so a run
553
- here would test that commit twice. Skip the run and write in the report:
554
- `integration <main>: covered by the release pipeline on <sha>
555
- (coveredByRelease)`. The release itself is still the owner's (or follows the
556
- project's own rules) — this skill never starts it. Its red result is handled
557
- as above: each red becomes a row and a worker. Without that header order, run
558
- the suite here as usual.
557
+ here would test that commit twice. The order is then: **skip the run → close
558
+ the roadmap → hand the release to the owner.** Write in the report:
559
+ `integration <main>: covered by the release on <sha> (coveredByRelease)`.
560
+ The release itself is still the owner's (or follows the project's own rules)
561
+ — this skill never starts it. Its result gates the deploy, not the close; a
562
+ red result is handled as above: each red becomes a row and a worker. Without
563
+ that header order, run the suite here as usual.
559
564
 
560
565
  **Then close the roadmap — only when the header orders it** ("Archive roadmap:
561
- at the end") and the run above is green (covered by the release → the gate
562
- reads the release's stored green result for the final `<main>` commit,
563
- WORKFLOW §5.2; no result yet → leave the close as the step after the release
564
- and say so): `/softure-roadmap --close --auto`
565
- (WORKFLOW §5.2). A failing gate (a leftover folder in `context/changes/`, a
566
+ at the end") and the run above is green, or is covered by the release (the
567
+ close never waits for the release; WORKFLOW §5.2): `/softure-roadmap --close
568
+ --auto` (WORKFLOW §5.2). The archived file is what the release reads, so the
569
+ close always comes before the release: tell the owner to release from
570
+ `context/foundation/archive/<date>-roadmap.md`. A failing gate (a leftover folder in `context/changes/`, a
566
571
  row not settled) is fixed first — leftovers are archived, unsettled rows go to
567
572
  a worker — never forced. The close is a documents-only commit on `<main>`; if a
568
573
  push is ordered, push it too (a second, documents-only push, through the hook). No header order → leave the roadmap in