You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`HYPHA_NOTES_FILE`|`.team-notes/<foo>-extensions-spec-hypha.md` — only when `hypha_available == true`|
157
+
|`COMPARISON_FILE`|`.team-notes/<foo>-extensions-comparison.md` — only when `hypha_available == true`|
158
+
|`ACTIVE_NOTES_FILE`| per-file, computed at Gate B-C (or defaulted to the legacy `NOTES_FILE` when Hypha is off). Substituted into implementer/tester/reviewer prompts. |
129
159
|`TEAM_NAME`|`batch-extensions-impl` (one team name for the whole batch) |
130
160
|`ISSUE_NUMBER`| from `gh issue list … --search "SysML2.NET/Extend/<Foo>Extensions.cs in:body"`|
131
161
@@ -211,15 +241,20 @@ Idempotent — re-assigning is a no-op on `gh`. Report success/failure per issue
211
241
on failure, log and continue (an unassignable issue is not a blocker for the
212
242
implementation itself).
213
243
214
-
### 8. Phase R — Spawn the batch researcher (ONE agent)
244
+
### 8. Phase R — Spawn the batch researcher(s)
245
+
246
+
Split into 8a + 8b based on `hypha_available` from the pre-flight.
247
+
248
+
#### 8a. Legacy batch researcher (ALWAYS run)
215
249
216
250
**One `Agent(...)` call** for the entire batch:
217
251
218
252
-`subagent_type: "general-purpose"`
219
253
-`model: <researcher_model>` per the batch-wide step-5 grade.
220
254
- Foreground.
221
-
- Prompt: the v2 researcher prompt from `.claude/team-templates/extension-impl.md`,
222
-
adapted per "Prompt adaptation rules" above:
255
+
- Prompt: the v2 legacy researcher prompt from
256
+
`.claude/team-templates/extension-impl.md`, adapted per "Prompt adaptation
a batch-wide summary line. The orchestrator needs to know which files need
312
449
re-dispatch and which are clean.
@@ -352,6 +489,19 @@ Print to the user:
352
489
- Spec-text-only methods flagged separately (grounded in spec prose, not OCL).
353
490
- Out-of-scope blockers surfaced.
354
491
492
+
-**Hypha comparison block** (ONLY when `hypha_available == true`):
493
+
- Batch-wide verdict roll-up from the N `COMPARISON_FILE`s
494
+
(e.g. "Hypha stronger for 4/6 files, legacy stronger for 1/6,
495
+
equivalent for 1/6").
496
+
- Which notes path drove implementation (batch-wide: Hypha or legacy,
497
+
per Gate B-C).
498
+
- Repo-relative paths to all N `.team-notes/<foo>-extensions-comparison.md`
499
+
files for the user to inspect after the run — the A/B corpus lives on
500
+
disk regardless of the Gate B-C pick.
501
+
- If the run downgraded mid-flight (Hypha errored between 8b and 8.5),
502
+
a short note saying "Hypha comparison unavailable for the batch —
503
+
downgraded to legacy-only at step X" and skip the rest of the block.
504
+
355
505
-**Pre-filled commit message** (MANDATORY — append at the very end of the final-summary message in a fenced code block, ready to copy):
356
506
357
507
```
@@ -376,7 +526,9 @@ After the handoff line, the orchestrator stops. The run is complete. The user ma
376
526
| Dirty working tree | Step 4 | Abort, ask user to commit/stash. |
377
527
| Branch already exists | Step 6 | Abort; ask user to pick a different batch or delete the stale branch. |
378
528
|`gh issue edit --add-assignee` fails for one issue | Step 7 | Log + continue (non-blocking; implementation still proceeds). |
379
-
| Researcher's notes file missing/empty for one file | Step 8 | Re-dispatch THE researcher with a focused brief naming only that file. |
529
+
| Researcher's notes file missing/empty for one file | Step 8a / 8b | Re-dispatch THE affected researcher (legacy or Hypha) with a focused brief naming only that file. |
530
+
| Hypha plugin errors mid-run (between 8b and 8.5) | Step 8 / 8.5 | Skip step 8.5 + Gate B-C. Set every file's `ACTIVE_NOTES_FILE` = its legacy `NOTES_FILE`. Surface downgrade in step 14. |
531
+
| Comparator's report missing/empty for one file | Step 8.5 | Re-dispatch THE comparator with a focused brief naming only that file's pair. |
380
532
| Production build fails | Step 10.1 | Re-dispatch THE implementer with a focused brief naming the broken file(s) + compile errors. |
381
533
| Targeted test fails | Step 10.2 | Attribute (OCL vs test bug), re-dispatch THE implementer or THE tester with a focused brief. |
382
534
| Sibling test failure in regression sweep | Step 11 | Dispatch ONE regression-sweep tester with the full sibling list. |
@@ -390,7 +542,13 @@ After the handoff line, the orchestrator stops. The run is complete. The user ma
390
542
## Parallelism caps (orchestrator self-enforced)
391
543
392
544
- N ≤ 6 files per batch (single-context working set limit for each agent).
393
-
- Phase R: **1** agent.
545
+
- Phase R:
546
+
- Legacy-only run (`hypha_available == false`): **1** agent.
547
+
- Hypha run (`hypha_available == true`): **2** agents in parallel
0 commit comments