devrites 6.1.1 → 6.1.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 +6 -0
- package/README.md +1 -1
- package/docs/cli.md +4 -1
- package/docs/engine/commands.md +4 -4
- package/docs/orchestration.md +4 -3
- package/docs/usage.md +1 -1
- package/engine/internal/lib/claims.go +12 -2
- package/engine/internal/lib/claims_holder.go +124 -0
- package/engine/internal/lib/cli_observe.go +14 -0
- package/engine/internal/lib/taskgraph.go +124 -0
- package/engine/internal/parallel/cli.go +111 -9
- package/engine/internal/parallel/lease.go +58 -4
- package/engine/internal/parallel/ops.go +244 -75
- package/engine/internal/parallel/select.go +31 -6
- package/pack/.claude/agents/devrites-plan-drafter.md +2 -1
- package/pack/.claude/agents/devrites-slice-wright.md +2 -1
- package/pack/.claude/skills/devrites-lib/reference/parallel-dispatch.md +7 -2
- package/pack/.claude/skills/devrites-lib/reference/standards/afk-hitl.md +3 -2
- package/pack/.claude/skills/devrites-lib/reference/standards/agents.md +6 -2
- package/pack/.claude/skills/devrites-lib/reference/standards/workflow-artifacts.md +10 -6
- package/pack/.claude/skills/devrites-lib/reference/workspace-artifact-schema.md +1 -1
- package/pack/.claude/skills/rite-autocomplete/SKILL.md +2 -2
- package/pack/.claude/skills/rite-autocomplete/reference/loop.md +1 -1
- package/pack/.claude/skills/rite-autocomplete/reference/stop-conditions.md +5 -1
- package/pack/.claude/skills/rite-build/SKILL.md +7 -7
- package/pack/.claude/skills/rite-build/reference/afk-discipline.md +2 -2
- package/pack/.claude/skills/rite-build/reference/checkpoint.md +1 -1
- package/pack/.claude/skills/rite-build/reference/one-slice-cycle.md +1 -1
- package/pack/.claude/skills/rite-build/reference/parallel-batch.md +28 -21
- package/pack/.claude/skills/rite-build/reference/phase-contract.md +10 -1
- package/pack/.claude/skills/rite-build/reference/spec-drift-guard.md +3 -2
- package/pack/.claude/skills/rite-build/reference/wright-dispatch.md +2 -2
- package/pack/.claude/skills/rite-define/SKILL.md +1 -1
- package/pack/.claude/skills/rite-handoff/SKILL.md +1 -1
- package/pack/.claude/skills/rite-plan/reference/slicing.md +5 -0
- package/pack/.claude/skills/rite-vet/reference/artifacts.md +8 -0
- package/pack/.claude/skills/rite-vet/reference/review-axes.md +1 -1
- package/pack/generated/claude/agents/devrites-plan-drafter.md +2 -1
- package/pack/generated/claude/agents/devrites-slice-wright.md +2 -1
- package/pack/generated/claude/skills/devrites-lib/reference/parallel-dispatch.md +7 -2
- package/pack/generated/claude/skills/devrites-lib/reference/standards/afk-hitl.md +3 -2
- package/pack/generated/claude/skills/devrites-lib/reference/standards/agents.md +6 -2
- package/pack/generated/claude/skills/devrites-lib/reference/standards/workflow-artifacts.md +10 -6
- package/pack/generated/claude/skills/devrites-lib/reference/workspace-artifact-schema.md +1 -1
- package/pack/generated/claude/skills/rite-autocomplete/SKILL.md +2 -2
- package/pack/generated/claude/skills/rite-autocomplete/reference/loop.md +1 -1
- package/pack/generated/claude/skills/rite-autocomplete/reference/stop-conditions.md +5 -1
- package/pack/generated/claude/skills/rite-build/SKILL.md +7 -7
- package/pack/generated/claude/skills/rite-build/reference/afk-discipline.md +2 -2
- package/pack/generated/claude/skills/rite-build/reference/checkpoint.md +1 -1
- package/pack/generated/claude/skills/rite-build/reference/one-slice-cycle.md +1 -1
- package/pack/generated/claude/skills/rite-build/reference/parallel-batch.md +28 -21
- package/pack/generated/claude/skills/rite-build/reference/phase-contract.md +10 -1
- package/pack/generated/claude/skills/rite-build/reference/spec-drift-guard.md +3 -2
- package/pack/generated/claude/skills/rite-build/reference/wright-dispatch.md +2 -2
- package/pack/generated/claude/skills/rite-define/SKILL.md +1 -1
- package/pack/generated/claude/skills/rite-handoff/SKILL.md +1 -1
- package/pack/generated/claude/skills/rite-plan/reference/slicing.md +5 -0
- package/pack/generated/claude/skills/rite-vet/reference/artifacts.md +8 -0
- package/pack/generated/claude/skills/rite-vet/reference/review-axes.md +1 -1
- package/pack/generated/codex/agents/devrites-plan-drafter.toml +2 -1
- package/pack/generated/codex/agents/devrites-slice-wright.toml +2 -1
- package/pack/generated/codex/skills/devrites-lib/reference/parallel-dispatch.md +7 -2
- package/pack/generated/codex/skills/devrites-lib/reference/standards/afk-hitl.md +3 -2
- package/pack/generated/codex/skills/devrites-lib/reference/standards/agents.md +6 -2
- package/pack/generated/codex/skills/devrites-lib/reference/standards/workflow-artifacts.md +10 -6
- package/pack/generated/codex/skills/devrites-lib/reference/workspace-artifact-schema.md +1 -1
- package/pack/generated/codex/skills/rite-autocomplete/SKILL.md +2 -2
- package/pack/generated/codex/skills/rite-autocomplete/reference/loop.md +1 -1
- package/pack/generated/codex/skills/rite-autocomplete/reference/stop-conditions.md +5 -1
- package/pack/generated/codex/skills/rite-build/SKILL.md +7 -7
- package/pack/generated/codex/skills/rite-build/reference/afk-discipline.md +2 -2
- package/pack/generated/codex/skills/rite-build/reference/checkpoint.md +1 -1
- package/pack/generated/codex/skills/rite-build/reference/one-slice-cycle.md +1 -1
- package/pack/generated/codex/skills/rite-build/reference/parallel-batch.md +28 -21
- package/pack/generated/codex/skills/rite-build/reference/phase-contract.md +10 -1
- package/pack/generated/codex/skills/rite-build/reference/spec-drift-guard.md +3 -2
- package/pack/generated/codex/skills/rite-build/reference/wright-dispatch.md +2 -2
- package/pack/generated/codex/skills/rite-define/SKILL.md +1 -1
- package/pack/generated/codex/skills/rite-handoff/SKILL.md +1 -1
- package/pack/generated/codex/skills/rite-plan/reference/slicing.md +5 -0
- package/pack/generated/codex/skills/rite-vet/reference/artifacts.md +8 -0
- package/pack/generated/codex/skills/rite-vet/reference/review-axes.md +1 -1
- package/pack/generated/devin/agents/devrites-plan-drafter.md +2 -1
- package/pack/generated/devin/agents/devrites-slice-wright.md +2 -1
- package/pack/generated/devin/skills/devrites-lib/reference/parallel-dispatch.md +7 -2
- package/pack/generated/devin/skills/devrites-lib/reference/standards/afk-hitl.md +3 -2
- package/pack/generated/devin/skills/devrites-lib/reference/standards/agents.md +6 -2
- package/pack/generated/devin/skills/devrites-lib/reference/standards/workflow-artifacts.md +10 -6
- package/pack/generated/devin/skills/devrites-lib/reference/workspace-artifact-schema.md +1 -1
- package/pack/generated/devin/skills/rite-autocomplete/SKILL.md +2 -2
- package/pack/generated/devin/skills/rite-autocomplete/reference/loop.md +1 -1
- package/pack/generated/devin/skills/rite-autocomplete/reference/stop-conditions.md +5 -1
- package/pack/generated/devin/skills/rite-build/SKILL.md +7 -7
- package/pack/generated/devin/skills/rite-build/reference/afk-discipline.md +2 -2
- package/pack/generated/devin/skills/rite-build/reference/checkpoint.md +1 -1
- package/pack/generated/devin/skills/rite-build/reference/one-slice-cycle.md +1 -1
- package/pack/generated/devin/skills/rite-build/reference/parallel-batch.md +28 -21
- package/pack/generated/devin/skills/rite-build/reference/phase-contract.md +10 -1
- package/pack/generated/devin/skills/rite-build/reference/spec-drift-guard.md +3 -2
- package/pack/generated/devin/skills/rite-build/reference/wright-dispatch.md +2 -2
- package/pack/generated/devin/skills/rite-define/SKILL.md +1 -1
- package/pack/generated/devin/skills/rite-handoff/SKILL.md +1 -1
- package/pack/generated/devin/skills/rite-plan/reference/slicing.md +5 -0
- package/pack/generated/devin/skills/rite-vet/reference/artifacts.md +8 -0
- package/pack/generated/devin/skills/rite-vet/reference/review-axes.md +1 -1
- package/pack/generated/omp/agents/devrites-plan-drafter.md +2 -1
- package/pack/generated/omp/agents/devrites-slice-wright.md +2 -1
- package/pack/generated/omp/skills/devrites-lib/reference/parallel-dispatch.md +7 -2
- package/pack/generated/omp/skills/devrites-lib/reference/standards/afk-hitl.md +3 -2
- package/pack/generated/omp/skills/devrites-lib/reference/standards/agents.md +6 -2
- package/pack/generated/omp/skills/devrites-lib/reference/standards/workflow-artifacts.md +10 -6
- package/pack/generated/omp/skills/devrites-lib/reference/workspace-artifact-schema.md +1 -1
- package/pack/generated/omp/skills/rite-autocomplete/SKILL.md +2 -2
- package/pack/generated/omp/skills/rite-autocomplete/reference/loop.md +1 -1
- package/pack/generated/omp/skills/rite-autocomplete/reference/stop-conditions.md +5 -1
- package/pack/generated/omp/skills/rite-build/SKILL.md +7 -7
- package/pack/generated/omp/skills/rite-build/reference/afk-discipline.md +2 -2
- package/pack/generated/omp/skills/rite-build/reference/checkpoint.md +1 -1
- package/pack/generated/omp/skills/rite-build/reference/one-slice-cycle.md +1 -1
- package/pack/generated/omp/skills/rite-build/reference/parallel-batch.md +28 -21
- package/pack/generated/omp/skills/rite-build/reference/phase-contract.md +10 -1
- package/pack/generated/omp/skills/rite-build/reference/spec-drift-guard.md +3 -2
- package/pack/generated/omp/skills/rite-build/reference/wright-dispatch.md +2 -2
- package/pack/generated/omp/skills/rite-define/SKILL.md +1 -1
- package/pack/generated/omp/skills/rite-handoff/SKILL.md +1 -1
- package/pack/generated/omp/skills/rite-plan/reference/slicing.md +5 -0
- package/pack/generated/omp/skills/rite-vet/reference/artifacts.md +8 -0
- package/pack/generated/omp/skills/rite-vet/reference/review-axes.md +1 -1
- package/pack/generated/pi/agents/devrites-plan-drafter.md +2 -1
- package/pack/generated/pi/agents/devrites-slice-wright.md +2 -1
- package/pack/generated/pi/skills/devrites-lib/reference/parallel-dispatch.md +7 -2
- package/pack/generated/pi/skills/devrites-lib/reference/standards/afk-hitl.md +3 -2
- package/pack/generated/pi/skills/devrites-lib/reference/standards/agents.md +6 -2
- package/pack/generated/pi/skills/devrites-lib/reference/standards/workflow-artifacts.md +10 -6
- package/pack/generated/pi/skills/devrites-lib/reference/workspace-artifact-schema.md +1 -1
- package/pack/generated/pi/skills/rite-autocomplete/SKILL.md +2 -2
- package/pack/generated/pi/skills/rite-autocomplete/reference/loop.md +1 -1
- package/pack/generated/pi/skills/rite-autocomplete/reference/stop-conditions.md +5 -1
- package/pack/generated/pi/skills/rite-build/SKILL.md +7 -7
- package/pack/generated/pi/skills/rite-build/reference/afk-discipline.md +2 -2
- package/pack/generated/pi/skills/rite-build/reference/checkpoint.md +1 -1
- package/pack/generated/pi/skills/rite-build/reference/one-slice-cycle.md +1 -1
- package/pack/generated/pi/skills/rite-build/reference/parallel-batch.md +28 -21
- package/pack/generated/pi/skills/rite-build/reference/phase-contract.md +10 -1
- package/pack/generated/pi/skills/rite-build/reference/spec-drift-guard.md +3 -2
- package/pack/generated/pi/skills/rite-build/reference/wright-dispatch.md +2 -2
- package/pack/generated/pi/skills/rite-define/SKILL.md +1 -1
- package/pack/generated/pi/skills/rite-handoff/SKILL.md +1 -1
- package/pack/generated/pi/skills/rite-plan/reference/slicing.md +5 -0
- package/pack/generated/pi/skills/rite-vet/reference/artifacts.md +8 -0
- package/pack/generated/pi/skills/rite-vet/reference/review-axes.md +1 -1
- package/package.json +1 -1
|
@@ -36,14 +36,14 @@ Select **greedily in plan order**: pass every currently dependency-ready pending
|
|
|
36
36
|
`N_eff = 1` → one serial round; nothing pending → Prove. A cap that cannot be filled
|
|
37
37
|
is normal: take fewer. Serial is this round's size, not the rest of the run.
|
|
38
38
|
|
|
39
|
-
**
|
|
40
|
-
|
|
41
|
-
`parallel select
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
39
|
+
**Refill per landing; never wait for the batch.** Each sibling lands alone when
|
|
40
|
+
green ([Lifecycle](#lifecycle) step 6). Then re-read `state.md`, pending slices, and
|
|
41
|
+
the tree and run `parallel select --cap N --slug <slug>`: unlanded siblings hold
|
|
42
|
+
their slots and paths, landed ones count as built, and only new picks print;
|
|
43
|
+
`parallel add` starts each from the control tip and its wright dispatches at once.
|
|
44
|
+
No lease → plain `select` + `create`. AFK/autocomplete is one run; HITL stops after
|
|
45
|
+
each landing. **Failing case:** three siblings are green, one is repairing, and no
|
|
46
|
+
new slice starts.
|
|
47
47
|
|
|
48
48
|
## Path-disjoint
|
|
49
49
|
|
|
@@ -109,22 +109,27 @@ Lease: `batch_id`, `created_at`, `base_sha`, `n`,
|
|
|
109
109
|
headroom bounds the batch size — one batch never assumes unbounded reviewers.
|
|
110
110
|
5. Non-green siblings → **repair round** (below) in the same worktrees; lease
|
|
111
111
|
stays `running` — no abort while repair budget remains. A green sibling →
|
|
112
|
-
`parallel record-green
|
|
112
|
+
`parallel record-green`, then step 6 for it alone.
|
|
113
113
|
A recoverable RED blocks integration but does not cancel independent safe running siblings.
|
|
114
114
|
Expected test-first RED is not a terminal gate failure. Cancel only for a shared
|
|
115
115
|
invalid foundation, safety/access failure, resource boundary, or explicit stop;
|
|
116
116
|
preserve completed and in-progress recoverable work and classify each result.
|
|
117
|
-
6. `parallel integrate --apply-to-control` **only after steps
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
(imperative summary, never a slice id). Staging branch, then FF
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
117
|
+
6. `parallel integrate --slice <id> --apply-to-control` **only after its steps
|
|
118
|
+
4–5 are green**: `transfer_commit` descends from the sibling's base and diffs
|
|
119
|
+
path-exact vs it; apply as its own local `WIP(<slug>):` commit
|
|
120
|
+
(imperative summary, never a slice id). Staging branch, then FF; the engine
|
|
121
|
+
refuses (never rewinds) if anything but this lease moved control. Conflict →
|
|
122
|
+
`integrate-failed`; classify under repair rounds (siblings stay in place).
|
|
123
|
+
Never integrate because a wright returned.
|
|
124
|
+
7. Each landing: FF control (the branch that held `HEAD` when the batch started —
|
|
125
|
+
often `main`/`master`, otherwise whatever the user was on) by one local commit,
|
|
126
|
+
never pushed; union that sibling's paths into `touched-files.md`; update
|
|
127
|
+
state/evidence; AFK +1 for that sibling; optional `check candidate`. Then
|
|
128
|
+
refill ([Dynamic selection](#dynamic-selection-and-re-batching)) and start the
|
|
129
|
+
feature gates on control
|
|
130
|
+
([Proof tiers](phase-contract.md#proof-tiers)); the next landing waits for them
|
|
131
|
+
to pass, the refilled wrights do not.
|
|
132
|
+
8. Cleanup runs only after the last landing marks the lease `complete` — work
|
|
128
133
|
landed in control, so `parallel cleanup` removes worktrees/branches.
|
|
129
134
|
Blocked/human-stopped batches keep lease, worktrees, branches — nothing is
|
|
130
135
|
removed while the batch may resume. `parallel abort` + `cleanup --force`
|
|
@@ -191,9 +196,11 @@ Repair rejected work in place; never discard/rebuild while budget remains.
|
|
|
191
196
|
## Engine verbs
|
|
192
197
|
|
|
193
198
|
```text
|
|
194
|
-
devrites-engine parallel select --cap <1-10> [--root <dir>] [<json-file>|-]
|
|
199
|
+
devrites-engine parallel select --cap <1-10> [--root <dir>] [--slug <slug>] [<json-file>|-]
|
|
195
200
|
devrites-engine parallel create --root <repo> --slug <slug> --batch <id> --base <B> --json <file>|-
|
|
201
|
+
devrites-engine parallel add --root <repo> --slug <slug> --json <file>|-
|
|
196
202
|
devrites-engine parallel record-green --root <repo> --slug <slug> --slice <id> --commit <sha>
|
|
203
|
+
devrites-engine parallel integrate --root <repo> --slug <slug> --slice <id> --apply-to-control
|
|
197
204
|
devrites-engine parallel integrate --root <repo> --slug <slug> --apply-to-control
|
|
198
205
|
devrites-engine parallel status --root <repo> --slug <slug>
|
|
199
206
|
devrites-engine parallel lease-write|lease-read|lease-clear --root <repo> --slug <slug>
|
|
@@ -42,7 +42,8 @@ Spec Drift Guard still applies.
|
|
|
42
42
|
6. **Prove.** Against the frozen pre-slice candidate inspect
|
|
43
43
|
test hunks for deletion, skipping/focus, tautology, or weaker expectations.
|
|
44
44
|
Wait for step 5's exact test-analyst account; missing/adverse criterion verdict is
|
|
45
|
-
Critical. Run only `test-plan.md` repository/CI commands
|
|
45
|
+
Critical. Run only `test-plan.md` repository/CI commands ([tier](#proof-tiers)),
|
|
46
|
+
record output, recheck
|
|
46
47
|
`git diff --name-only`. Missing/weakened/red/source-mutating proof cannot pass.
|
|
47
48
|
Pre-existing/environment-specific claims need a predating same-command,
|
|
48
49
|
same-environment baseline; otherwise unresolved.
|
|
@@ -67,6 +68,14 @@ Spec Drift Guard still applies.
|
|
|
67
68
|
|
|
68
69
|
One contract builds one slice: preserve TDD, exact paths and independent judgment.
|
|
69
70
|
|
|
71
|
+
## Proof tiers
|
|
72
|
+
|
|
73
|
+
With a `test-plan.md` `## Feature gates` section, step 6 runs `Tests/proof` and every
|
|
74
|
+
other row; feature gates run once per parallel landing, on control, while worktree
|
|
75
|
+
wrights continue. The next landing and Prove wait for them; red is a fingerprint
|
|
76
|
+
against slices landed since the last green run. Serial same-worktree mode, and plans
|
|
77
|
+
without the section, run every row each round.
|
|
78
|
+
|
|
70
79
|
## Independent Build review
|
|
71
80
|
|
|
72
81
|
After inspection, freeze full slice scope and cumulative baseline diff. Initial
|
|
@@ -82,5 +82,6 @@ The detecting phase owns backtracking and the batch sweep. Save
|
|
|
82
82
|
`return_phase`/`return_next_action`; consume nested Plan/Vet `STOP` internally, complete
|
|
83
83
|
vetted acceptance-preserving remediation, then restore the cursor and failed step.
|
|
84
84
|
Never hand the human an intermediate command. The shared three-attempt causal-fingerprint
|
|
85
|
-
cap still applies:
|
|
86
|
-
|
|
85
|
+
cap still applies: a spent strategy escalates and a fully escalated fingerprint parks
|
|
86
|
+
under the [retry contract](../../devrites-lib/reference/standards/afk-hitl.md#retry-cap-no-progress-loops-and-self-resolve),
|
|
87
|
+
while a genuinely human-owned decision uses the question format below.
|
|
@@ -144,8 +144,8 @@ TTL is crash recovery, not normal cleanup.
|
|
|
144
144
|
**Do not land on control until review and proof are both green.** Isolated
|
|
145
145
|
`transfer_commit` stays on the worker branch; same-worktree diffs stay
|
|
146
146
|
uncommitted. Serial: [`checkpoint.md`](checkpoint.md), then host may remove the
|
|
147
|
-
worktree. Parallel: `record-green
|
|
148
|
-
--apply-to-control
|
|
147
|
+
worktree. Parallel: `record-green`, then `parallel integrate
|
|
148
|
+
--slice <id> --apply-to-control`; `parallel cleanup` removes worktrees.
|
|
149
149
|
5. Reconcile returned reuse, conventions, principles, sources, assumptions,
|
|
150
150
|
decisions, dead ends, follow-ups, gates, and touched files. Persist the
|
|
151
151
|
relevant facts in canonical artifacts, not the wholesale report. A plan-gap
|
|
@@ -161,7 +161,7 @@ Pull these via `Read` when shaping the plan:
|
|
|
161
161
|
meaning-changing mappings block. Then run
|
|
162
162
|
`devrites-engine check task-graph <slug>`; a malformed dependency graph blocks
|
|
163
163
|
before Vet rather than spending a reviewer context on invalid tasks. Resolve each
|
|
164
|
-
`ADVISORY size:` line now (split, or
|
|
164
|
+
`ADVISORY size:`/`hub:` line now (split or seam slice, or a rationale); never blocking.
|
|
165
165
|
7. **Readiness gate** (`plan-template.md`): require CLEAR coverage; complete acceptance,
|
|
166
166
|
wiring, shared-contract proof, applicable outputs, and rollback; risk-first acyclic order;
|
|
167
167
|
justified deviations; and every horizon item present, with blockers resolved, planning
|
|
@@ -74,7 +74,7 @@ themselves. The workspace is the canonical store; the handoff is the chat-only d
|
|
|
74
74
|
6. **In-flight work.** Every dispatch wave opened or sealed without a return (`devrites-engine
|
|
75
75
|
dispatch <slug> status`), running writer handle, held claim id plus paths (`devrites-engine
|
|
76
76
|
claim list --all`), and consumptive action started, each `terminal: yes|unknown` (`yes` only with
|
|
77
|
-
an admitted return, release, or proof of stop). The live handle exists only in chat. Any
|
|
77
|
+
an admitted return, release, `dead` claim, or proof of stop). The live handle exists only in chat. Any
|
|
78
78
|
`unknown` row makes item 1 a reconcile step (`dispatch <slug> status`, `parallel status`,
|
|
79
79
|
`claim list --all`), never a writer command: otherwise the next session dispatches a second writer.
|
|
80
80
|
7. **How to resume:** fixed boilerplate (see template below).
|
|
@@ -168,3 +168,8 @@ Order by dependency, but minimize coupling. A slice that needs three other slice
|
|
|
168
168
|
is a smell: look for a thinner cut that stands alone. An edge exists only when this slice
|
|
169
169
|
reads something the other produces: write it as `SLICE-001 (via <interface>)`. If you
|
|
170
170
|
cannot name what crosses, drop the edge; a shallow, wide graph runs in parallel.
|
|
171
|
+
|
|
172
|
+
Slices sharing a file never build side by side: put a hub file's shared edit
|
|
173
|
+
(registry, command table, test harness) in one seam slice the others depend on.
|
|
174
|
+
`check task-graph` prints the `schedule:` and `ADVISORY hub:` lines; inseparable
|
|
175
|
+
writes get `Serial rationale: <why>`. Never merge slices or drop acceptance to widen it.
|
|
@@ -103,6 +103,14 @@ From $rite-vet on <iso>. Runner + conventions: <detected framework + command>.
|
|
|
103
103
|
Link any disposable parser fixture. Preflight values are planning evidence, not post-build proof;
|
|
104
104
|
Prove recaptures the observed command, candidate identity, and result.
|
|
105
105
|
|
|
106
|
+
## Feature gates
|
|
107
|
+
| Gate | Command | Cwd | Expected |
|
|
108
|
+
|---|---|---|---|
|
|
109
|
+
| <full suite / workspace lint / audit> | <exact command> | <path> | <exit/output> |
|
|
110
|
+
|
|
111
|
+
Whole-repository rows only: Build runs them per landing
|
|
112
|
+
([tiers](../../rite-build/reference/phase-contract.md#proof-tiers)), Prove on the final candidate.
|
|
113
|
+
|
|
106
114
|
Commands in this durable artifact are portable repository commands: no RTK or local shell
|
|
107
115
|
aliases, user-specific absolute paths, or temporary proof trees. Evidence records
|
|
108
116
|
the command actually executed.
|
|
@@ -30,7 +30,7 @@ Before implementation review, check for work beyond the settled spec.
|
|
|
30
30
|
(over-budget `tasks.md`/`plan.md` from slice or AC count) is a scope finding, not a
|
|
31
31
|
`Budget override`: route to `$rite-plan course-correct` (`MVP cut`) with the
|
|
32
32
|
continuation sequence named; do not vet the whole epic. An `ADVISORY size:`
|
|
33
|
-
|
|
33
|
+
or `hub:` line without its rationale is a non-blocking Suggestion to split or seam it.
|
|
34
34
|
4. **Built-in check.** For each new pattern/infra/concurrency approach, invoke
|
|
35
35
|
`devrites-source-driven` inline to verify current framework/runtime support and cite it. Custom
|
|
36
36
|
work where a built-in suffices is a scope-reduction finding.
|
|
@@ -24,7 +24,8 @@ seams supplied by the orchestrator.
|
|
|
24
24
|
planning artifacts while preserving settled intent.
|
|
25
25
|
|
|
26
26
|
Reuse existing seams and dependencies before proposing new ones. Build vertical
|
|
27
|
-
slices in dependency order
|
|
27
|
+
slices in dependency order; put a hub file's shared edit in one seam slice
|
|
28
|
+
([slicing.md](../skills/rite-plan/reference/slicing.md#slice-independence)). Map every REQ and AC to a slice and executable proof,
|
|
28
29
|
name rollback and failure paths; keep acceptance-changing proposals separate. Durable
|
|
29
30
|
proof commands must be portable repository commands, never host-local wrappers,
|
|
30
31
|
user-specific absolute paths, or temporary proof trees.
|
|
@@ -108,7 +108,8 @@ unclear boundary is underspecified: return `Escalation` without proceeding.
|
|
|
108
108
|
that source in the result. Never invent an API.
|
|
109
109
|
- **No process residue.** Do not put `SLICE-###`, slice numbers, or "this slice"
|
|
110
110
|
in product source, tests, comments, or filenames.
|
|
111
|
-
4. **VERIFY (fail-on-red).** Run writer-safe tests/types/lint
|
|
111
|
+
4. **VERIFY (fail-on-red).** Run writer-safe tests/types/lint: `Tests/proof` plus
|
|
112
|
+
tests of changed code; `## Feature gates` rows are root-owned. Report required
|
|
112
113
|
build/browser/E2E as `not-run` (root-owned, artifact-producing gates), and only
|
|
113
114
|
when the exact command, cwd, and prerequisites already appear in the unchanged
|
|
114
115
|
vetted `test-plan.md`; never synthesize or rewrite a root command. Root runs
|
|
@@ -127,7 +127,8 @@ child's handle, path/resource ownership and capacity reservation until the
|
|
|
127
127
|
native host confirms a terminal state and returned work has been reconciled.
|
|
128
128
|
Query or wait on that handle; do not replace the child, release its slot, or
|
|
129
129
|
reuse its resources while it may still run. If terminal state cannot be
|
|
130
|
-
established, record a gap and retain ownership
|
|
130
|
+
established, record a gap and retain ownership; for a child launched by an earlier
|
|
131
|
+
session, the claim proof below settles it. A result classification alone
|
|
131
132
|
does not prove host termination.
|
|
132
133
|
|
|
133
134
|
On resume (compaction or a new session), run `devrites-engine dispatch <slug>
|
|
@@ -135,7 +136,11 @@ status`, `parallel status`, and `claim list --all` before any dispatch. A read-o
|
|
|
135
136
|
wave whose handles this session cannot query: `abandon` it, record each unreturned
|
|
136
137
|
role `gap`, and re-dispatch fresh on the current digest; its late returns are
|
|
137
138
|
`stale`. A writer keeps its claim and lease — no relaunch on those paths until the
|
|
138
|
-
claim is released or its holder is proven terminal.
|
|
139
|
+
claim is released or its holder is proven terminal. For an unqueryable writer,
|
|
140
|
+
`claim list --all` showing its claim `released` or `dead` (the engine proved the
|
|
141
|
+
holding session exited on this host) is that proof: `abandon` the wave, record the
|
|
142
|
+
role `gap`, claim the paths, and re-dispatch without waiting on the launching
|
|
143
|
+
session. `live` or `expired` stays held. A wright that never returned an
|
|
139
144
|
admitted result leaves unadmitted bytes: task-path changes since its pre-dispatch
|
|
140
145
|
`git diff --name-only` baseline are never cited as built nor discarded, and are
|
|
141
146
|
named in the re-dispatch contract; changes outside task paths stop for the human
|
|
@@ -223,8 +223,9 @@ project/decision docs, and authoritative dependency sources; make and record rev
|
|
|
223
223
|
implementation/test choices. Ask only about product, scope, acceptance, architecture policy,
|
|
224
224
|
irreversible risk, or human-only access/action.
|
|
225
225
|
|
|
226
|
-
Objective test/build/tool failure runs bounded `devrites-debug-recovery`; fix it or
|
|
227
|
-
|
|
226
|
+
Objective test/build/tool failure runs bounded `devrites-debug-recovery`; fix it, or escalate and
|
|
227
|
+
park it under the [retry contract](#retry-cap-no-progress-loops-and-self-resolve). Never ask
|
|
228
|
+
permission for another attempt, test, parser repair, or probe.
|
|
228
229
|
Close decisions at the earliest informed phase: product in spec, coverage in clarify,
|
|
229
230
|
scope/risk in temper, architecture/dependencies in define, and proof/toolchain in vet. Build
|
|
230
231
|
keeps only unavailable-pre-code or mandatory action-time checkpoints.
|
|
@@ -62,7 +62,9 @@ a human plus an agent) can share one working tree. Before a same-tree writer
|
|
|
62
62
|
starts, it records an advisory claim — `devrites-engine claim add --session
|
|
63
63
|
<id> <paths>` — retains the returned `<claim-id>`, then checks the same paths
|
|
64
64
|
with `devrites-engine claim check --session <id> <paths>`; a held claim from a
|
|
65
|
-
live foreign session is
|
|
65
|
+
live foreign session is never merged later or overridden. Unattended, skip only
|
|
66
|
+
work that needs those paths, run independent work, and re-check `claim list --all`
|
|
67
|
+
before stopping; stop and report the holder only when nothing independent remains. On every
|
|
66
68
|
host-confirmed terminal path after `add` ([unknown outcomes keep it](../parallel-dispatch.md#cancellation-and-terminal-reconciliation)) — return,
|
|
67
69
|
rejected result, stop, or a launch refused with no handle — run
|
|
68
70
|
`devrites-engine claim release --session <id> --id <claim-id>`. Claims expire
|
|
@@ -73,7 +75,9 @@ Claims cover product paths only; root-authored `.devrites/**` files use
|
|
|
73
75
|
Expiry is not proof the holder stopped: size `claim add --ttl <minutes>` to the
|
|
74
76
|
expected write (engine max 240) and re-add before it lapses; before writing, also
|
|
75
77
|
read `claim list --all` — a foreign `expired` claim on overlapping paths whose
|
|
76
|
-
session is not proven terminal counts as held (stop and report).
|
|
78
|
+
session is not proven terminal counts as held (stop and report). `dead` (engine-proven
|
|
79
|
+
exited holder) or `released` is terminal: reconcile per
|
|
80
|
+
[§ Cancellation](../parallel-dispatch.md#cancellation-and-terminal-reconciliation). **Failing case:**
|
|
77
81
|
session B's `claim check` passes at minute 35 over session A's still-running wright.
|
|
78
82
|
|
|
79
83
|
## Independence
|
|
@@ -326,12 +326,16 @@ Epoch starts 1. `FAILED` records preimages/cleanup/epoch/fingerprint/reason/
|
|
|
326
326
|
boundary/route/no-progress count. Resolved fingerprints close; a different
|
|
327
327
|
invariant gets a distinct fingerprint. Handoff death resumes its retry epoch with
|
|
328
328
|
prior rows immutable. `WA-OP-011/012` enforce independent fingerprint/epoch caps
|
|
329
|
-
and terminal source cleanup. Exhaustion
|
|
329
|
+
and terminal source cleanup. Exhaustion closes this admission, not the work:
|
|
330
|
+
the controlling caller escalates it under the
|
|
331
|
+
[retry contract](afk-hitl.md#retry-cap-no-progress-loops-and-self-resolve)
|
|
332
|
+
through `PLAN_VET_REPAIR`, and a re-vetted changed design re-admits under a new
|
|
333
|
+
identity with fresh epochs. A fully escalated fingerprint parks. Exhaustion records:
|
|
330
334
|
|
|
331
335
|
```text
|
|
332
|
-
status=
|
|
336
|
+
status=running
|
|
333
337
|
exhaustion_cause=<same-fingerprint-count|total-epoch-limit>
|
|
334
|
-
next_action
|
|
338
|
+
next_action=/rite-plan repair <slug> — escalate exhausted workflow attempt
|
|
335
339
|
```
|
|
336
340
|
|
|
337
341
|
The journal, evidence section, and observer retain that cause; epoch exhaustion
|
|
@@ -343,7 +347,7 @@ Precedence: busy owner; safety/access/approval gate; completed historical; activ
|
|
|
343
347
|
journal; `CLEANED`; missing/stale authority; stale writer evidence; current
|
|
344
348
|
admission. `PROVED|CLEANING` resumes cleanup; install-through-`PROVING`, rollback,
|
|
345
349
|
or failure cleanup routes offline; retryable `FAILED` routes correction/retry;
|
|
346
|
-
`EXHAUSTED`
|
|
350
|
+
`EXHAUSTED` escalates; `PREPARING|PREPARED` resumes only with current authority.
|
|
347
351
|
There is no actor-history migration or backfill.
|
|
348
352
|
|
|
349
353
|
|Route|Owner|Exact action|Durable state/status/next action|Cursor/output|
|
|
@@ -356,7 +360,7 @@ There is no actor-history migration or backfill.
|
|
|
356
360
|
| `VERIFY_EXISTING`|controlling root|verify `CLEANED`, targets, proof, and product separation; do not reinstall|restore saved return phase/action|no retry/slice/action budget|
|
|
357
361
|
| `NO_BACKFILL`|controlling root|no action|completed state unchanged|no new output|
|
|
358
362
|
| `WAIT_ACTIVE_OWNER`|non-owner|no write; stop invocation|shared state unchanged|fixed owner-busy diagnostic|
|
|
359
|
-
| `BLOCKED_EXHAUSTED`|controlling root|no attempt 4
|
|
363
|
+
| `BLOCKED_EXHAUSTED`|controlling root|no attempt 4 on this admission; escalate through `PLAN_VET_REPAIR` or park per retry contract|`status=running`, exact exhausted `next_action`; parked keeps the parked-recovery action|fixed exhausted diagnostic; no intermediate reply|
|
|
360
364
|
| `BLOCKED_GATE`|controlling root|follow existing safety/access/approval gate|gate-owned state|gate output; never reinterpret as retry|
|
|
361
365
|
|
|
362
366
|
|Scenario ID|Trigger|Exact route / action|Durable consequence|Forbidden behavior|
|
|
@@ -422,7 +426,7 @@ pairs remain injective for actionable seams.
|
|
|
422
426
|
| `devrites-debug-recovery/SKILL.md`|durable active failure or ambiguous admitted state|`OFFLINE_RECOVERY`; correct offline, re-preflight, narrow Vet, retry only under cap|saved caller or exact Plan/Vet route|
|
|
423
427
|
| `rite-autocomplete/SKILL.md`|lifecycle cursor encounters admitted set or resumable journal|invoke classifier; execute returned route internally|saved phase/action; zero intermediate reply|
|
|
424
428
|
| `rite-autocomplete/reference/loop.md`|loop tick sees Workflow Artifact trigger/state|invoke classifier once under owner lock; no actor-history migration|same loop cursor; no budget charge for verify/rerun|
|
|
425
|
-
| `rite-autocomplete/reference/stop-conditions.md`|classifier returns owner-busy, exhausted, or existing hard gate|
|
|
429
|
+
| `rite-autocomplete/reference/stop-conditions.md`|classifier returns owner-busy, exhausted, or existing hard gate|escalate `BLOCKED_EXHAUSTED`; on `WAIT_ACTIVE_OWNER` run independent work and recheck; stop on exact `BLOCKED_GATE` result|unchanged cursor plus fixed route-owned output|
|
|
426
430
|
| `rite-build/SKILL.md`|Vet-ready admitted bytes require root authorship outside product wright|`ROOT_TRANSACTION`; root writes only admitted `.devrites/**` targets|saved Build slice cursor; wright product allowlist unchanged|
|
|
427
431
|
| `rite-build/reference/phase-contract.md`|Build gate enters or resumes transaction|invoke canonical operation table; reconcile exact result|same slice/checkpoint cursor or Plan/Vet route|
|
|
428
432
|
| `rite-prove/SKILL.md`|Prove consumes installed Workflow Artifact or `CLEANED` rerun|`VERIFY_EXISTING` or admitted proof path ending `PROVE_AND_RETURN`|saved Prove cursor; stop before real action|
|
|
@@ -237,7 +237,7 @@ slices; use `none` when they do not apply. Complexity above 3 triggers reslicing
|
|
|
237
237
|
unless the stated reason makes the boundary irreducible. A Writer allowlist of 12+
|
|
238
238
|
files prints an engine `ADVISORY size:` line (`check task-graph`, `check slice`;
|
|
239
239
|
never blocking): split it acceptance-preserving, or add `Size rationale:` naming
|
|
240
|
-
the inseparable capability
|
|
240
|
+
the inseparable capability; `ADVISORY hub:` takes a seam slice or `Serial rationale:`.
|
|
241
241
|
|
|
242
242
|
## Read next by phase
|
|
243
243
|
|
|
@@ -107,8 +107,8 @@ executable controller/harness/bundle bytes or a missing writer, read
|
|
|
107
107
|
`/rite-review` → `/rite-seal`. Read and execute each skill; durable files, not
|
|
108
108
|
chat, carry state. Apply the mutable post-vet budget before first Build.
|
|
109
109
|
Build runs the largest eligible path-disjoint batch (cap: this invocation's
|
|
110
|
-
`--parallel N`, else sentinel `max_parallel`, else 10) and
|
|
111
|
-
|
|
110
|
+
`--parallel N`, else sentinel `max_parallel`, else 10) and refills a slot
|
|
111
|
+
per landing until no pending slice remains; a one-slice round is serial for that round only, then
|
|
112
112
|
selection runs again (host isolation still forces serial when concurrent writers
|
|
113
113
|
cannot be separated). When `--parallel N`
|
|
114
114
|
is present, pass it into `/rite-build` and do not consult leftover sentinel
|
|
@@ -67,7 +67,7 @@ Workspace files carry state; chat does not. Read and execute each phase skill:
|
|
|
67
67
|
| 3 | `/rite-temper` | harden or reduce; `expand` and extra acceptance stop for a human; irreversible risk still pauses |
|
|
68
68
|
| 4 | `/rite-define` | approved plan/tasks/traceability |
|
|
69
69
|
| 5 | `/rite-vet` | every plan; derive mutable budget after READY |
|
|
70
|
-
| 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);
|
|
70
|
+
| 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); refill per landing; charge once per landed slice |
|
|
71
71
|
| 7 | `/rite-prove` | all slices built; approved proof; recovery on red |
|
|
72
72
|
| 8 | `/rite-polish` | re-prove after code edits |
|
|
73
73
|
| 9 | `/rite-review` | in-scope correction then fresh proof |
|
|
@@ -58,7 +58,7 @@ amplification Plan repair and narrow Vet inline, then pause for fresh GO before
|
|
|
58
58
|
one evidence-acquisition attempt. Without a safe seam, escalate to the next
|
|
59
59
|
class or park; only a real human/risk/scope gate stops for a human.
|
|
60
60
|
|
|
61
|
-
<!-- workflow-artifact-adapter: {"module":"devrites-lib/reference/standards/workflow-artifacts.md","entry":"classifier returns owner-busy, exhausted, or existing hard gate","action":"
|
|
61
|
+
<!-- workflow-artifact-adapter: {"module":"devrites-lib/reference/standards/workflow-artifacts.md","entry":"classifier returns owner-busy, exhausted, or existing hard gate","action":"escalate BLOCKED_EXHAUSTED; on WAIT_ACTIVE_OWNER run independent work and recheck; stop on exact BLOCKED_GATE result","return":"unchanged cursor plus fixed route-owned output"} -->
|
|
62
62
|
## Other stop classes
|
|
63
63
|
|
|
64
64
|
- **Gate severity:** escalating always stops. Blocking with a ranked recommended
|
|
@@ -85,6 +85,10 @@ class or park; only a real human/risk/scope gate stops for a human.
|
|
|
85
85
|
pre-existing remaining value, explicit flag, sentinel cap, or post-vet pending count
|
|
86
86
|
does not stop. Zero with no pending slices is normal completion.
|
|
87
87
|
Malformed flag stops before any write.
|
|
88
|
+
- **Foreign writer:** a `live`/`expired` claim or `WAIT_ACTIVE_OWNER` held by
|
|
89
|
+
another session blocks only work on those paths; run independent work, re-check,
|
|
90
|
+
and stop only when nothing independent remains. `released`/`dead` claims are
|
|
91
|
+
reconciled per [§ Cancellation](../../devrites-lib/reference/parallel-dispatch.md#cancellation-and-terminal-reconciliation).
|
|
88
92
|
- **Resource envelope:** overlapping run or missing AFK after arm still stops.
|
|
89
93
|
Do not stop on `--max-slices`, `max_agents`, `max_minutes`, or `max_review_queue`.
|
|
90
94
|
- **Confidence:** intent still cannot become testable acceptance after interview.
|
|
@@ -74,15 +74,15 @@ Wright applies anti-slop; root verifies returns and never patches source. Refuse
|
|
|
74
74
|
|
|
75
75
|
Omitted/`1` ≡ serial; `2`–`10` is a **cap** — the root runs the largest eligible
|
|
76
76
|
path-disjoint set it can start now (`N_eff`), takes fewer when the cap cannot be
|
|
77
|
-
filled, and
|
|
78
|
-
|
|
77
|
+
filled, and refills a slot per landing (serial slice or one sibling) until
|
|
78
|
+
no pending slice remains
|
|
79
79
|
([`parallel-batch.md` § Dynamic selection](reference/parallel-batch.md#dynamic-selection-and-re-batching)).
|
|
80
|
-
Unattended runs (`/rite-autocomplete`, `.devrites/AFK` `max_parallel`)
|
|
81
|
-
inside the same run; HITL stops after each
|
|
80
|
+
Unattended runs (`/rite-autocomplete`, `.devrites/AFK` `max_parallel`) refill
|
|
81
|
+
inside the same run; HITL stops after each landing. This invocation's `--parallel N`
|
|
82
82
|
is the cap: leftover sentinel `max_parallel` is not consulted. Autocomplete with
|
|
83
83
|
that flag also writes or replaces only `max_parallel: N`. Non-integer/`N≤0`/`N>10` hard refuse.
|
|
84
|
-
|
|
85
|
-
|
|
84
|
+
Each sibling lands alone when its review + proof are green (`integrate --slice`):
|
|
85
|
+
one local `WIP(<slug>):` commit onto the control branch (never pushed). Do not
|
|
86
86
|
integrate a sibling because the wright returned. A red/gap sibling gets a bounded repair
|
|
87
87
|
round in its own worktree — never rebuilt from scratch while budget remains.
|
|
88
88
|
Post-writer inventory and affected rechecks follow `phase-contract.md` § Independent
|
|
@@ -93,7 +93,7 @@ a human `Fix`. Exhausted repair blocks and preserves everything;
|
|
|
93
93
|
`cleanup --force` salvages slice branches before removing worktrees —
|
|
94
94
|
human-gated to abandon a batch, orchestrator-emitted only as the salvage
|
|
95
95
|
step of an automatic frozen-lease re-batch.
|
|
96
|
-
AFK charges
|
|
96
|
+
AFK charges per landed sibling only. Running lease blocks another
|
|
97
97
|
`/rite-build`. Details: `parallel-batch.md`.
|
|
98
98
|
|
|
99
99
|
## Execute and reply
|
|
@@ -44,8 +44,8 @@ The controlling root owns the cap:
|
|
|
44
44
|
before the next dispatch.
|
|
45
45
|
- **Serial:** charge when fail-on-red is green and the built record is written
|
|
46
46
|
(same rewrite as step 2).
|
|
47
|
-
- **Parallel `--parallel`:** charge only after **successful
|
|
48
|
-
— once per
|
|
47
|
+
- **Parallel `--parallel`:** charge only after **successful integrate**
|
|
48
|
+
— once per landed green sibling. Abort / integrate-failed → charge **0**.
|
|
49
49
|
Do not charge on worktree-green before integrate. See
|
|
50
50
|
[`parallel-batch.md`](parallel-batch.md).
|
|
51
51
|
|
|
@@ -18,7 +18,7 @@ the orchestrator pauses for approval before landing it.
|
|
|
18
18
|
and fail-on-red proof are green, with no open Critical/Important and no repair
|
|
19
19
|
wright still in flight. Serial: git recipe below (skip empty index) or isolated
|
|
20
20
|
FF of a matching `transfer_commit`. Parallel: `devrites-engine parallel
|
|
21
|
-
integrate --apply-to-control` (no second control `git commit`).
|
|
21
|
+
integrate --slice <id> --apply-to-control` (no second control `git commit`).
|
|
22
22
|
- **Do not:** when a wright returns; before review/proof; with red/gap findings;
|
|
23
23
|
fast-forward an isolated transfer onto control before those checks.
|
|
24
24
|
|
|
@@ -28,7 +28,7 @@ RECORD → orchestrator: after green verification, update state.md/evidence.m
|
|
|
28
28
|
upsert the authoritative candidate manifest from the actual scoped diff
|
|
29
29
|
(CHECKPOINT) → only now, with review+proof green: local WIP(<slug>): <imperative summary>
|
|
30
30
|
on the control branch (no slice id) → checkpoint.md
|
|
31
|
-
NEXT → HITL root reports and stops. AFK with parallel cap>1: return to parallel-batch selection
|
|
31
|
+
NEXT → HITL root reports and stops. AFK with parallel cap>1: return to parallel-batch selection to refill; otherwise repeat under afk-discipline.md
|
|
32
32
|
```
|
|
33
33
|
|
|
34
34
|
## Why the boundary matters
|
|
@@ -36,14 +36,14 @@ Select **greedily in plan order**: pass every currently dependency-ready pending
|
|
|
36
36
|
`N_eff = 1` → one serial round; nothing pending → Prove. A cap that cannot be filled
|
|
37
37
|
is normal: take fewer. Serial is this round's size, not the rest of the run.
|
|
38
38
|
|
|
39
|
-
**
|
|
40
|
-
|
|
41
|
-
`parallel select
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
39
|
+
**Refill per landing; never wait for the batch.** Each sibling lands alone when
|
|
40
|
+
green ([Lifecycle](#lifecycle) step 6). Then re-read `state.md`, pending slices, and
|
|
41
|
+
the tree and run `parallel select --cap N --slug <slug>`: unlanded siblings hold
|
|
42
|
+
their slots and paths, landed ones count as built, and only new picks print;
|
|
43
|
+
`parallel add` starts each from the control tip and its wright dispatches at once.
|
|
44
|
+
No lease → plain `select` + `create`. AFK/autocomplete is one run; HITL stops after
|
|
45
|
+
each landing. **Failing case:** three siblings are green, one is repairing, and no
|
|
46
|
+
new slice starts.
|
|
47
47
|
|
|
48
48
|
## Path-disjoint
|
|
49
49
|
|
|
@@ -109,22 +109,27 @@ Lease: `batch_id`, `created_at`, `base_sha`, `n`,
|
|
|
109
109
|
headroom bounds the batch size — one batch never assumes unbounded reviewers.
|
|
110
110
|
5. Non-green siblings → **repair round** (below) in the same worktrees; lease
|
|
111
111
|
stays `running` — no abort while repair budget remains. A green sibling →
|
|
112
|
-
`parallel record-green
|
|
112
|
+
`parallel record-green`, then step 6 for it alone.
|
|
113
113
|
A recoverable RED blocks integration but does not cancel independent safe running siblings.
|
|
114
114
|
Expected test-first RED is not a terminal gate failure. Cancel only for a shared
|
|
115
115
|
invalid foundation, safety/access failure, resource boundary, or explicit stop;
|
|
116
116
|
preserve completed and in-progress recoverable work and classify each result.
|
|
117
|
-
6. `parallel integrate --apply-to-control` **only after steps
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
(imperative summary, never a slice id). Staging branch, then FF
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
117
|
+
6. `parallel integrate --slice <id> --apply-to-control` **only after its steps
|
|
118
|
+
4–5 are green**: `transfer_commit` descends from the sibling's base and diffs
|
|
119
|
+
path-exact vs it; apply as its own local `WIP(<slug>):` commit
|
|
120
|
+
(imperative summary, never a slice id). Staging branch, then FF; the engine
|
|
121
|
+
refuses (never rewinds) if anything but this lease moved control. Conflict →
|
|
122
|
+
`integrate-failed`; classify under repair rounds (siblings stay in place).
|
|
123
|
+
Never integrate because a wright returned.
|
|
124
|
+
7. Each landing: FF control (the branch that held `HEAD` when the batch started —
|
|
125
|
+
often `main`/`master`, otherwise whatever the user was on) by one local commit,
|
|
126
|
+
never pushed; union that sibling's paths into `touched-files.md`; update
|
|
127
|
+
state/evidence; AFK +1 for that sibling; optional `check candidate`. Then
|
|
128
|
+
refill ([Dynamic selection](#dynamic-selection-and-re-batching)) and start the
|
|
129
|
+
feature gates on control
|
|
130
|
+
([Proof tiers](phase-contract.md#proof-tiers)); the next landing waits for them
|
|
131
|
+
to pass, the refilled wrights do not.
|
|
132
|
+
8. Cleanup runs only after the last landing marks the lease `complete` — work
|
|
128
133
|
landed in control, so `parallel cleanup` removes worktrees/branches.
|
|
129
134
|
Blocked/human-stopped batches keep lease, worktrees, branches — nothing is
|
|
130
135
|
removed while the batch may resume. `parallel abort` + `cleanup --force`
|
|
@@ -191,9 +196,11 @@ Repair rejected work in place; never discard/rebuild while budget remains.
|
|
|
191
196
|
## Engine verbs
|
|
192
197
|
|
|
193
198
|
```text
|
|
194
|
-
devrites-engine parallel select --cap <1-10> [--root <dir>] [<json-file>|-]
|
|
199
|
+
devrites-engine parallel select --cap <1-10> [--root <dir>] [--slug <slug>] [<json-file>|-]
|
|
195
200
|
devrites-engine parallel create --root <repo> --slug <slug> --batch <id> --base <B> --json <file>|-
|
|
201
|
+
devrites-engine parallel add --root <repo> --slug <slug> --json <file>|-
|
|
196
202
|
devrites-engine parallel record-green --root <repo> --slug <slug> --slice <id> --commit <sha>
|
|
203
|
+
devrites-engine parallel integrate --root <repo> --slug <slug> --slice <id> --apply-to-control
|
|
197
204
|
devrites-engine parallel integrate --root <repo> --slug <slug> --apply-to-control
|
|
198
205
|
devrites-engine parallel status --root <repo> --slug <slug>
|
|
199
206
|
devrites-engine parallel lease-write|lease-read|lease-clear --root <repo> --slug <slug>
|
|
@@ -42,7 +42,8 @@ Spec Drift Guard still applies.
|
|
|
42
42
|
6. **Prove.** Against the frozen pre-slice candidate inspect
|
|
43
43
|
test hunks for deletion, skipping/focus, tautology, or weaker expectations.
|
|
44
44
|
Wait for step 5's exact test-analyst account; missing/adverse criterion verdict is
|
|
45
|
-
Critical. Run only `test-plan.md` repository/CI commands
|
|
45
|
+
Critical. Run only `test-plan.md` repository/CI commands ([tier](#proof-tiers)),
|
|
46
|
+
record output, recheck
|
|
46
47
|
`git diff --name-only`. Missing/weakened/red/source-mutating proof cannot pass.
|
|
47
48
|
Pre-existing/environment-specific claims need a predating same-command,
|
|
48
49
|
same-environment baseline; otherwise unresolved.
|
|
@@ -67,6 +68,14 @@ Spec Drift Guard still applies.
|
|
|
67
68
|
|
|
68
69
|
One contract builds one slice: preserve TDD, exact paths and independent judgment.
|
|
69
70
|
|
|
71
|
+
## Proof tiers
|
|
72
|
+
|
|
73
|
+
With a `test-plan.md` `## Feature gates` section, step 6 runs `Tests/proof` and every
|
|
74
|
+
other row; feature gates run once per parallel landing, on control, while worktree
|
|
75
|
+
wrights continue. The next landing and Prove wait for them; red is a fingerprint
|
|
76
|
+
against slices landed since the last green run. Serial same-worktree mode, and plans
|
|
77
|
+
without the section, run every row each round.
|
|
78
|
+
|
|
70
79
|
## Independent Build review
|
|
71
80
|
|
|
72
81
|
After inspection, freeze full slice scope and cumulative baseline diff. Initial
|
|
@@ -82,5 +82,6 @@ The detecting phase owns backtracking and the batch sweep. Save
|
|
|
82
82
|
`return_phase`/`return_next_action`; consume nested Plan/Vet `STOP` internally, complete
|
|
83
83
|
vetted acceptance-preserving remediation, then restore the cursor and failed step.
|
|
84
84
|
Never hand the human an intermediate command. The shared three-attempt causal-fingerprint
|
|
85
|
-
cap still applies:
|
|
86
|
-
|
|
85
|
+
cap still applies: a spent strategy escalates and a fully escalated fingerprint parks
|
|
86
|
+
under the [retry contract](../../devrites-lib/reference/standards/afk-hitl.md#retry-cap-no-progress-loops-and-self-resolve),
|
|
87
|
+
while a genuinely human-owned decision uses the question format below.
|
|
@@ -144,8 +144,8 @@ TTL is crash recovery, not normal cleanup.
|
|
|
144
144
|
**Do not land on control until review and proof are both green.** Isolated
|
|
145
145
|
`transfer_commit` stays on the worker branch; same-worktree diffs stay
|
|
146
146
|
uncommitted. Serial: [`checkpoint.md`](checkpoint.md), then host may remove the
|
|
147
|
-
worktree. Parallel: `record-green
|
|
148
|
-
--apply-to-control
|
|
147
|
+
worktree. Parallel: `record-green`, then `parallel integrate
|
|
148
|
+
--slice <id> --apply-to-control`; `parallel cleanup` removes worktrees.
|
|
149
149
|
5. Reconcile returned reuse, conventions, principles, sources, assumptions,
|
|
150
150
|
decisions, dead ends, follow-ups, gates, and touched files. Persist the
|
|
151
151
|
relevant facts in canonical artifacts, not the wholesale report. A plan-gap
|
|
@@ -160,7 +160,7 @@ Pull these via `Read` when shaping the plan:
|
|
|
160
160
|
meaning-changing mappings block. Then run
|
|
161
161
|
`devrites-engine check task-graph <slug>`; a malformed dependency graph blocks
|
|
162
162
|
before Vet rather than spending a reviewer context on invalid tasks. Resolve each
|
|
163
|
-
`ADVISORY size:` line now (split, or
|
|
163
|
+
`ADVISORY size:`/`hub:` line now (split or seam slice, or a rationale); never blocking.
|
|
164
164
|
7. **Readiness gate** (`plan-template.md`): require CLEAR coverage; complete acceptance,
|
|
165
165
|
wiring, shared-contract proof, applicable outputs, and rollback; risk-first acyclic order;
|
|
166
166
|
justified deviations; and every horizon item present, with blockers resolved, planning
|
|
@@ -74,7 +74,7 @@ themselves. The workspace is the canonical store; the handoff is the chat-only d
|
|
|
74
74
|
6. **In-flight work.** Every dispatch wave opened or sealed without a return (`devrites-engine
|
|
75
75
|
dispatch <slug> status`), running writer handle, held claim id plus paths (`devrites-engine
|
|
76
76
|
claim list --all`), and consumptive action started, each `terminal: yes|unknown` (`yes` only with
|
|
77
|
-
an admitted return, release, or proof of stop). The live handle exists only in chat. Any
|
|
77
|
+
an admitted return, release, `dead` claim, or proof of stop). The live handle exists only in chat. Any
|
|
78
78
|
`unknown` row makes item 1 a reconcile step (`dispatch <slug> status`, `parallel status`,
|
|
79
79
|
`claim list --all`), never a writer command: otherwise the next session dispatches a second writer.
|
|
80
80
|
7. **How to resume:** fixed boilerplate (see template below).
|