devrites 5.10.1 → 5.10.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/README.md +1 -1
- package/docs/cli.md +4 -1
- package/docs/command-map.md +2 -1
- package/docs/engine/commands.md +7 -5
- package/docs/orchestration.md +5 -2
- package/docs/usage.md +3 -1
- package/engine/commands.go +3 -0
- package/engine/help.go +190 -0
- package/engine/help_test.go +98 -0
- package/engine/internal/parallel/cli.go +90 -32
- package/engine/internal/parallel/cli_test.go +32 -0
- package/engine/main.go +15 -8
- package/engine/root_routing_test.go +4 -0
- package/pack/.claude/skills/devrites-lib/reference/standards/afk-hitl.md +15 -8
- package/pack/.claude/skills/rite-autocomplete/SKILL.md +10 -5
- package/pack/.claude/skills/rite-autocomplete/reference/loop.md +12 -7
- package/pack/.claude/skills/rite-build/SKILL.md +3 -1
- package/pack/.claude/skills/rite-build/reference/afk-discipline.md +4 -3
- package/pack/.claude/skills/rite-build/reference/parallel-batch.md +3 -1
- package/pack/.claude/skills/rite-define/reference/plan-template.md +1 -1
- package/pack/generated/claude/skills/devrites-lib/reference/standards/afk-hitl.md +15 -8
- package/pack/generated/claude/skills/rite-autocomplete/SKILL.md +10 -5
- package/pack/generated/claude/skills/rite-autocomplete/reference/loop.md +12 -7
- package/pack/generated/claude/skills/rite-build/SKILL.md +3 -1
- package/pack/generated/claude/skills/rite-build/reference/afk-discipline.md +4 -3
- package/pack/generated/claude/skills/rite-build/reference/parallel-batch.md +3 -1
- package/pack/generated/claude/skills/rite-define/reference/plan-template.md +1 -1
- package/pack/generated/codex/skills/devrites-lib/reference/standards/afk-hitl.md +15 -8
- package/pack/generated/codex/skills/rite-autocomplete/SKILL.md +10 -5
- package/pack/generated/codex/skills/rite-autocomplete/reference/loop.md +12 -7
- package/pack/generated/codex/skills/rite-build/SKILL.md +3 -1
- package/pack/generated/codex/skills/rite-build/reference/afk-discipline.md +4 -3
- package/pack/generated/codex/skills/rite-build/reference/parallel-batch.md +3 -1
- package/pack/generated/codex/skills/rite-define/reference/plan-template.md +1 -1
- package/pack/generated/omp/skills/devrites-lib/reference/standards/afk-hitl.md +15 -8
- package/pack/generated/omp/skills/rite-autocomplete/SKILL.md +10 -5
- package/pack/generated/omp/skills/rite-autocomplete/reference/loop.md +12 -7
- package/pack/generated/omp/skills/rite-build/SKILL.md +3 -1
- package/pack/generated/omp/skills/rite-build/reference/afk-discipline.md +4 -3
- package/pack/generated/omp/skills/rite-build/reference/parallel-batch.md +3 -1
- package/pack/generated/omp/skills/rite-define/reference/plan-template.md +1 -1
- package/pack/generated/pi/skills/devrites-lib/reference/standards/afk-hitl.md +15 -8
- package/pack/generated/pi/skills/rite-autocomplete/SKILL.md +10 -5
- package/pack/generated/pi/skills/rite-autocomplete/reference/loop.md +12 -7
- package/pack/generated/pi/skills/rite-build/SKILL.md +3 -1
- package/pack/generated/pi/skills/rite-build/reference/afk-discipline.md +4 -3
- package/pack/generated/pi/skills/rite-build/reference/parallel-batch.md +3 -1
- package/pack/generated/pi/skills/rite-define/reference/plan-template.md +1 -1
- package/package.json +1 -1
|
@@ -17,18 +17,21 @@ allow_gates: [advisory, validating]
|
|
|
17
17
|
# max_slices / max_agents / max_minutes / max_review_queue omitted: unlimited
|
|
18
18
|
# continue_sequence: true # opt-in: chain recorded continuations after Seal GO
|
|
19
19
|
# max_workspaces: 5 # sequence budget when chaining
|
|
20
|
-
# max_parallel: 10 #
|
|
20
|
+
# max_parallel: 10 # default cap when this invocation omits `--parallel N`; `--parallel N` wins and rewrites only this field
|
|
21
21
|
# max_tokens: <N>
|
|
22
22
|
# max_cost_usd: <amount>
|
|
23
23
|
# notify: "<cmd>"
|
|
24
24
|
```
|
|
25
25
|
|
|
26
|
-
Read an existing sentinel first. Preserve it byte-for-byte when valid
|
|
26
|
+
Read an existing sentinel first. Preserve it byte-for-byte when valid, except
|
|
27
|
+
when this invocation contains `--parallel N`: then write or replace only
|
|
28
|
+
`max_parallel: N` and leave every other key unchanged. Stop if the sentinel is
|
|
27
29
|
malformed. Do not stop because it names `max_slices` / `max_agents` /
|
|
28
30
|
`max_minutes` / `max_review_queue` or only `[advisory]`. If absent, write it
|
|
29
|
-
once after clarity
|
|
30
|
-
It is read-only: never rewrite it after Vet or reset it on resume. Leftover
|
|
31
|
-
|
|
31
|
+
once after clarity, and include `max_parallel: N` when that flag is present.
|
|
32
|
+
Never write `max_slices` from `--max-slices`. It is otherwise read-only: never rewrite it after Vet or reset it on resume. Leftover `expires_at` is ignored
|
|
33
|
+
and never rewritten. **Failing case:** leftover `max_parallel: 1` keeps the run
|
|
34
|
+
serial after `--parallel 5`.
|
|
32
35
|
|
|
33
36
|
### Derive the mutable post-vet budget
|
|
34
37
|
|
|
@@ -44,7 +47,9 @@ readiness check first; reject overlap. Do not stop on `max_agents`,
|
|
|
44
47
|
gets fresh activation-local counters but retains durable slice/recovery state.
|
|
45
48
|
|
|
46
49
|
When driving `/rite-build`, ignore afk-discipline remaining-0, `--max-slices`,
|
|
47
|
-
and parallel AFK headroom
|
|
50
|
+
and parallel AFK headroom as stop conditions. Pass this invocation's
|
|
51
|
+
`--parallel N` into `/rite-build` when present; leftover sentinel
|
|
52
|
+
`max_parallel` is then not the cap. Close validating questions and blocking questions
|
|
48
53
|
that already name a ranked recommended option (recommended pick via
|
|
49
54
|
`devrites-engine state resolve`) instead of queuing them or handing
|
|
50
55
|
`/rite-resolve` to the user. Escalating, irreversible-risk, access, and
|
|
@@ -61,7 +66,7 @@ Workspace files carry state; chat does not. Read and execute each phase skill:
|
|
|
61
66
|
| 3 | `/rite-temper` | harden, reduce, or expand; irreversible risk still pauses |
|
|
62
67
|
| 4 | `/rite-define` | approved plan/tasks/traceability |
|
|
63
68
|
| 5 | `/rite-vet` | every plan; derive mutable budget after READY |
|
|
64
|
-
| 6 | `/rite-build` batch loop | largest eligible path-disjoint set (cap 10; one-slice round when <2 eligible); recompute after each round; charge once per green built slice |
|
|
69
|
+
| 6 | `/rite-build` batch loop | largest eligible path-disjoint set (cap: this invocation's `--parallel N`, else sentinel `max_parallel`, else 10; one-slice round when <2 eligible); recompute after each round; charge once per green built slice |
|
|
65
70
|
| 7 | `/rite-prove` | all slices built; approved proof; recovery on red |
|
|
66
71
|
| 8 | `/rite-polish` | re-prove after code edits |
|
|
67
72
|
| 9 | `/rite-review` | in-scope correction then fresh proof |
|
|
@@ -64,7 +64,9 @@ filled, and recomputes after every completed round (serial slice or parallel
|
|
|
64
64
|
integrate) until no pending slice remains
|
|
65
65
|
([`parallel-batch.md` § Dynamic selection](reference/parallel-batch.md#dynamic-selection-and-re-batching)).
|
|
66
66
|
Unattended runs (`/rite-autocomplete`, `.devrites/AFK` `max_parallel`) repeat batches
|
|
67
|
-
inside the same run; HITL stops after each batch.
|
|
67
|
+
inside the same run; HITL stops after each batch. This invocation's `--parallel N`
|
|
68
|
+
is the cap: leftover sentinel `max_parallel` is not consulted. Autocomplete with
|
|
69
|
+
that flag also writes or replaces only `max_parallel: N`. Non-integer/`N≤0`/`N>10` hard refuse.
|
|
68
70
|
All-green (independent review + proof) then integrate as one local `WIP(<slug>):`
|
|
69
71
|
commit per sibling onto the current control branch (never pushed). Do not
|
|
70
72
|
integrate a sibling because the wright returned. A red/gap sibling gets a bounded repair
|
|
@@ -16,9 +16,10 @@ control; irreversible work (destructive/auth/public API) always pauses.
|
|
|
16
16
|
The controlling root owns the cap:
|
|
17
17
|
|
|
18
18
|
1. **Before every dispatch**, re-read `.devrites/AFK`, `state.md`, and the
|
|
19
|
-
selected slice.
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
selected slice. This invocation's `--parallel N` is the cap when present;
|
|
20
|
+
leftover sentinel `max_parallel` is not consulted in that case. When that
|
|
21
|
+
flag or sentinel `max_parallel` is greater than 1, recompute `N_eff` via
|
|
22
|
+
`parallel select` before the next dispatch — a prior one-slice round does not keep the run serial. A configured `max_slices` and any existing
|
|
22
23
|
`afk_slices_remaining` value, including its released bullet form, must each
|
|
23
24
|
be a decimal nonnegative integer. A missing
|
|
24
25
|
`state.md` or malformed configured value fails closed; an omitted cap is the
|
|
@@ -9,6 +9,7 @@ Opt-in only. Default `/rite-build` stays [`one-slice-cycle.md`](one-slice-cycle.
|
|
|
9
9
|
| omitted / `--parallel 1` | Serial one-slice |
|
|
10
10
|
| `--parallel N` (**2≤N≤10**) | N is a **cap**, not a quota: run the largest eligible set ≤ N |
|
|
11
11
|
| non-integer / `N≤0` / `N>10` | Hard refuse (no silent clamp) |
|
|
12
|
+
| Autocomplete `--parallel N` | N is the cap for this run; leftover sentinel `max_parallel` is ignored, then `/rite-autocomplete` writes or replaces only `max_parallel: N` |
|
|
12
13
|
| Autocomplete, no flag | Same path, cap from sentinel `max_parallel` else 10; serial only when ineligible |
|
|
13
14
|
|
|
14
15
|
AFK caps `N`. Charge green siblings once after integrate; abort /
|
|
@@ -21,7 +22,8 @@ Size each batch by what is runnable **now**, never by the requested number:
|
|
|
21
22
|
|
|
22
23
|
```text
|
|
23
24
|
N_eff = min(
|
|
24
|
-
cap -- --parallel N
|
|
25
|
+
cap -- this invocation's --parallel N (wins over leftover sentinel max_parallel)
|
|
26
|
+
| else sentinel max_parallel | else 10 (autocomplete default)
|
|
25
27
|
eligible set -- dependency-satisfied pending slices, pairwise path-disjoint
|
|
26
28
|
AFK headroom -- remaining max_slices, max_agents, max_minutes, review queue
|
|
27
29
|
host capacity -- concurrent worktree writers + the runtime isolation table
|
|
@@ -14,7 +14,7 @@ Spec: ./spec.md Decision coverage: ./decision-coverage.md Date: <date>
|
|
|
14
14
|
- Language/runtime/version: <...>
|
|
15
15
|
- Frameworks/libraries: <...>
|
|
16
16
|
- Storage/data: <...>
|
|
17
|
-
- Test commands: <discovered runner commands; discovery contract: rite-prove/reference/test-command-discovery.md>
|
|
17
|
+
- Test commands: <discovered runner commands; discovery contract: .pi/skills/rite-prove/reference/test-command-discovery.md>
|
|
18
18
|
- Target/platform/constraints: <...>
|
|
19
19
|
- Approach-affecting product/constraint unknowns route to `/rite-clarify`;
|
|
20
20
|
`[NEEDS CLARIFICATION]` blocks approval.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "devrites",
|
|
3
|
-
"version": "5.10.
|
|
3
|
+
"version": "5.10.2",
|
|
4
4
|
"description": "DevRites: a disciplined senior-engineer workflow pack for Claude Code, Codex, omp, and pi",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"homepage": "https://github.com/ViktorsBaikers/DevRites#readme",
|