vibe-coding-master 0.9.3 → 0.9.4
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.
|
@@ -8,6 +8,7 @@ import { submitTerminalInput } from "../runtime/terminal-submit.js";
|
|
|
8
8
|
import { readVcmMemoryHostFrame, readVcmMemoryBlock, replaceVcmMemoryBlock } from "../templates/harness/memory-block.js";
|
|
9
9
|
import { ARCHITECT_PLANNING_MEMORY_CANDIDATE_PATH, architectPlanningCandidateSnapshotPath, durableDocAssignmentReportPath, memoryReviewRoleDraftPath, MEMORY_REVIEW_RUNS_ROOT, MEMORY_REVIEW_STATE_PATH } from "./memory-review-paths.js";
|
|
10
10
|
import { parseMemoryProposal, validateMemoryProposal } from "./memory-proposal-validation.js";
|
|
11
|
+
const MEMORY_REVIEW_STOP_BLOCK_LIMIT = 3;
|
|
11
12
|
const MEMORY_FILE_DEFINITIONS = [
|
|
12
13
|
{ path: "CLAUDE.md", title: "Shared Memory" },
|
|
13
14
|
{ path: ".claude/agents/project-manager.md", title: "Project Manager Memory", role: "project-manager" },
|
|
@@ -436,43 +437,75 @@ export function createAutoMemoryService(deps) {
|
|
|
436
437
|
if (!(await deps.appSettings.getPreferences()).autoMemoryEnabled && !preserveDisabledReview(state)) {
|
|
437
438
|
if (state) {
|
|
438
439
|
await discardActiveReview(input.taskRepoRoot, state);
|
|
439
|
-
return true;
|
|
440
|
+
return { handled: true };
|
|
440
441
|
}
|
|
441
|
-
return false;
|
|
442
|
+
return { handled: false };
|
|
442
443
|
}
|
|
443
444
|
if (state?.status === "reviewing" && !state.reviewPromptDispatchedAt) {
|
|
444
|
-
return false;
|
|
445
|
+
return { handled: false };
|
|
445
446
|
}
|
|
446
447
|
if (!state || state.status !== "reviewing") {
|
|
447
|
-
return false;
|
|
448
|
+
return { handled: false };
|
|
448
449
|
}
|
|
449
450
|
if (input.eventName === "UserPromptSubmit" || input.eventName === "PostCompact") {
|
|
450
|
-
return true;
|
|
451
|
+
return { handled: true };
|
|
451
452
|
}
|
|
452
453
|
if (input.eventName === "StopFailure") {
|
|
453
454
|
await failReview(input.taskRepoRoot, state, "Task Harness Retrospective memory review turn failed.");
|
|
454
|
-
return true;
|
|
455
|
+
return { handled: true };
|
|
455
456
|
}
|
|
456
457
|
if (input.eventName === "Stop") {
|
|
457
458
|
if (!state.retrospectiveReportPath
|
|
458
459
|
|| !(await deps.fs.pathExists(state.retrospectiveReportPath))
|
|
459
460
|
|| !(await deps.fs.readText(state.retrospectiveReportPath)).trim()) {
|
|
460
|
-
|
|
461
|
-
return true;
|
|
461
|
+
return rejectHarnessEngineerStop(input, state, "Task Harness Retrospective did not write the required retrospective report.");
|
|
462
462
|
}
|
|
463
463
|
try {
|
|
464
464
|
await recordHarnessEngineerMemoryResult(input.taskRepoRoot, state);
|
|
465
|
-
if (state.assignments.length > 0) {
|
|
466
|
-
await dispatchCurrentDurableDocAssignment(input.baseRepoRoot, input.taskRepoRoot, state);
|
|
467
|
-
}
|
|
468
465
|
}
|
|
469
466
|
catch (error) {
|
|
470
|
-
|
|
471
|
-
|
|
467
|
+
const message = `Harness Engineer memory result could not be recorded: ${errorMessage(error)}`;
|
|
468
|
+
if (!isFixableMemoryResultError(error)) {
|
|
469
|
+
await failReview(input.taskRepoRoot, state, message);
|
|
470
|
+
return { handled: true };
|
|
471
|
+
}
|
|
472
|
+
const hint = error instanceof VcmError && error.hint ? ` ${error.hint}` : "";
|
|
473
|
+
return rejectHarnessEngineerStop(input, state, `${message}${hint}`);
|
|
472
474
|
}
|
|
473
|
-
|
|
475
|
+
if (state.assignments.length > 0) {
|
|
476
|
+
try {
|
|
477
|
+
await dispatchCurrentDurableDocAssignment(input.baseRepoRoot, input.taskRepoRoot, state);
|
|
478
|
+
}
|
|
479
|
+
catch (error) {
|
|
480
|
+
await failReview(input.taskRepoRoot, state, `Durable-document assignment could not be dispatched: ${errorMessage(error)}`);
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
return { handled: true };
|
|
474
484
|
}
|
|
475
|
-
return true;
|
|
485
|
+
return { handled: true };
|
|
486
|
+
}
|
|
487
|
+
// A correctable retrospective result keeps the Harness Engineer turn alive
|
|
488
|
+
// with the validation error, a bounded number of times, so the role can fix
|
|
489
|
+
// review-result.json or the memory commit instead of the review failing
|
|
490
|
+
// silently after the turn has ended.
|
|
491
|
+
async function rejectHarnessEngineerStop(input, state, message) {
|
|
492
|
+
const blocks = state.stopBlockCount ?? 0;
|
|
493
|
+
if (!input.allowStopBlock || blocks >= MEMORY_REVIEW_STOP_BLOCK_LIMIT) {
|
|
494
|
+
await failReview(input.taskRepoRoot, state, message);
|
|
495
|
+
return { handled: true };
|
|
496
|
+
}
|
|
497
|
+
state.stopBlockCount = blocks + 1;
|
|
498
|
+
state.error = message;
|
|
499
|
+
state.updatedAt = now();
|
|
500
|
+
await persistActiveState(input.taskRepoRoot, state);
|
|
501
|
+
return {
|
|
502
|
+
handled: true,
|
|
503
|
+
stopBlockReason: [
|
|
504
|
+
message,
|
|
505
|
+
`Fix the retrospective report, ${resolveRepoPath(input.taskRepoRoot, reviewResultRelativePath(state.runId))}, or the memory commit, then end the turn again.`,
|
|
506
|
+
`Attempt ${state.stopBlockCount} of ${MEMORY_REVIEW_STOP_BLOCK_LIMIT}; after that the memory review fails.`
|
|
507
|
+
].join(" ")
|
|
508
|
+
};
|
|
476
509
|
}
|
|
477
510
|
async function getFile(_baseRepoRoot, taskRepoRoot, filePath) {
|
|
478
511
|
await assertMemoryBlocksInstalled(deps.fs, taskRepoRoot);
|
|
@@ -549,9 +582,47 @@ export function createAutoMemoryService(deps) {
|
|
|
549
582
|
statusCode: 409
|
|
550
583
|
});
|
|
551
584
|
}
|
|
585
|
+
if (await harnessEngineerResultWritten(taskRepoRoot, state)) {
|
|
586
|
+
// The Harness Engineer finished its turn, so re-validate the current
|
|
587
|
+
// result file and memory commit before discarding anything.
|
|
588
|
+
try {
|
|
589
|
+
await recordHarnessEngineerMemoryResult(taskRepoRoot, state);
|
|
590
|
+
}
|
|
591
|
+
catch (error) {
|
|
592
|
+
if (await memoryChangedSinceReview(taskRepoRoot, state)) {
|
|
593
|
+
// Reviewed memory is already committed; restarting would lose the
|
|
594
|
+
// durable-document moves recorded only in this run's result file.
|
|
595
|
+
const message = `Harness Engineer memory result could not be recorded: ${errorMessage(error)}`;
|
|
596
|
+
await failReview(taskRepoRoot, state, message);
|
|
597
|
+
throw new VcmError({
|
|
598
|
+
code: "MEMORY_REVIEW_RESULT_STILL_INVALID",
|
|
599
|
+
message,
|
|
600
|
+
statusCode: 409,
|
|
601
|
+
hint: `Correct ${resolveRepoPath(taskRepoRoot, reviewResultRelativePath(state.runId))} or the memory commit, then retry.`
|
|
602
|
+
});
|
|
603
|
+
}
|
|
604
|
+
await clearActiveState(taskRepoRoot);
|
|
605
|
+
return getState(baseRepoRoot, taskRepoRoot);
|
|
606
|
+
}
|
|
607
|
+
if (state.assignments.length > 0) {
|
|
608
|
+
await dispatchCurrentDurableDocAssignment(baseRepoRoot, taskRepoRoot, state);
|
|
609
|
+
}
|
|
610
|
+
return getState(baseRepoRoot, taskRepoRoot);
|
|
611
|
+
}
|
|
552
612
|
await clearActiveState(taskRepoRoot);
|
|
553
613
|
return getState(baseRepoRoot, taskRepoRoot);
|
|
554
614
|
}
|
|
615
|
+
async function harnessEngineerResultWritten(taskRepoRoot, state) {
|
|
616
|
+
if (!state.reviewBaseCommit || !state.reviewPromptDispatchedAt) {
|
|
617
|
+
return false;
|
|
618
|
+
}
|
|
619
|
+
return deps.fs.pathExists(resolveRepoPath(taskRepoRoot, reviewResultRelativePath(state.runId)));
|
|
620
|
+
}
|
|
621
|
+
async function memoryChangedSinceReview(taskRepoRoot, state) {
|
|
622
|
+
const before = await readRunMemorySet(taskRepoRoot, state.runId, "before");
|
|
623
|
+
const after = await readMemorySet(taskRepoRoot);
|
|
624
|
+
return MEMORY_FILE_DEFINITIONS.some((definition) => before[definition.path] !== after[definition.path]);
|
|
625
|
+
}
|
|
555
626
|
async function retryDurableDocAssignment(baseRepoRoot, taskRepoRoot, assignmentId) {
|
|
556
627
|
const state = await loadActiveState(taskRepoRoot);
|
|
557
628
|
const assignment = state && (state.status === "documenting" || state.status === "failed")
|
|
@@ -996,7 +1067,7 @@ export function createAutoMemoryService(deps) {
|
|
|
996
1067
|
await persistActiveState(taskRepoRoot, state);
|
|
997
1068
|
}
|
|
998
1069
|
async function readAndValidateHarnessMemoryReviewResult(taskRepoRoot, state, before, after, currentHead, changedMemoryPaths) {
|
|
999
|
-
const resultPath = resolveRepoPath(taskRepoRoot,
|
|
1070
|
+
const resultPath = resolveRepoPath(taskRepoRoot, reviewResultRelativePath(state.runId));
|
|
1000
1071
|
if (!(await deps.fs.pathExists(resultPath))) {
|
|
1001
1072
|
throw new VcmError({
|
|
1002
1073
|
code: "MEMORY_REVIEW_RESULT_MISSING",
|
|
@@ -1791,6 +1862,20 @@ function ensureTrailingNewline(content) {
|
|
|
1791
1862
|
function sha256(content) {
|
|
1792
1863
|
return createHash("sha256").update(content).digest("hex");
|
|
1793
1864
|
}
|
|
1865
|
+
function reviewResultRelativePath(runId) {
|
|
1866
|
+
return `${MEMORY_REVIEW_RUNS_ROOT}/${runId}/review-result.json`;
|
|
1867
|
+
}
|
|
1868
|
+
// Errors the Harness Engineer can correct in its own output: the result file,
|
|
1869
|
+
// the memory edit, or the memory commit. A malformed result file surfaces as a
|
|
1870
|
+
// JSON SyntaxError.
|
|
1871
|
+
function isFixableMemoryResultError(error) {
|
|
1872
|
+
if (error instanceof SyntaxError) {
|
|
1873
|
+
return true;
|
|
1874
|
+
}
|
|
1875
|
+
return error instanceof VcmError
|
|
1876
|
+
&& error.code.startsWith("MEMORY_")
|
|
1877
|
+
&& error.code !== "MEMORY_REVIEW_BASE_MISSING";
|
|
1878
|
+
}
|
|
1794
1879
|
function errorMessage(error) {
|
|
1795
1880
|
return error instanceof Error ? error.message : String(error);
|
|
1796
1881
|
}
|
|
@@ -114,29 +114,30 @@ export function createClaudeHookService(deps) {
|
|
|
114
114
|
dispatchedCount: 0
|
|
115
115
|
};
|
|
116
116
|
}
|
|
117
|
-
async function processHarnessEngineerHook(input) {
|
|
117
|
+
async function processHarnessEngineerHook(input, options) {
|
|
118
118
|
const eventName = parseBusinessHookEvent(input.event.hook_event_name);
|
|
119
119
|
const context = await getProjectToolHookContext("Harness Engineer");
|
|
120
120
|
const projectScoped = input.taskSlug === "__project_harness_engineer__";
|
|
121
|
-
const
|
|
122
|
-
?
|
|
123
|
-
eventName,
|
|
121
|
+
const recordSessionEvent = (recordedEventName) => projectScoped
|
|
122
|
+
? deps.sessionService.recordProjectHarnessEngineerHookEvent(context.project.repoRoot, {
|
|
123
|
+
eventName: recordedEventName,
|
|
124
124
|
sessionId: stringOrUndefined(input.event.session_id),
|
|
125
125
|
transcriptPath: stringOrUndefined(input.event.transcript_path),
|
|
126
126
|
cwd: stringOrUndefined(input.event.cwd) ?? stringOrUndefined(input.event.new_cwd),
|
|
127
127
|
runtimeSessionId: stringOrUndefined(input.event.vcm_runtime_session_id),
|
|
128
128
|
runtimeSessionToken: input.runtimeSessionToken
|
|
129
129
|
})
|
|
130
|
-
:
|
|
130
|
+
: deps.sessionService.recordRoleHookEvent(context.project.repoRoot, {
|
|
131
131
|
taskSlug: input.taskSlug,
|
|
132
132
|
role: input.role,
|
|
133
|
-
eventName,
|
|
133
|
+
eventName: recordedEventName,
|
|
134
134
|
sessionId: stringOrUndefined(input.event.session_id),
|
|
135
135
|
transcriptPath: stringOrUndefined(input.event.transcript_path),
|
|
136
136
|
cwd: stringOrUndefined(input.event.cwd) ?? stringOrUndefined(input.event.new_cwd),
|
|
137
137
|
runtimeSessionId: stringOrUndefined(input.event.vcm_runtime_session_id),
|
|
138
138
|
runtimeSessionToken: input.runtimeSessionToken
|
|
139
139
|
});
|
|
140
|
+
const session = await recordSessionEvent(eventName);
|
|
140
141
|
if (!session) {
|
|
141
142
|
return completedHookResult(input, eventName);
|
|
142
143
|
}
|
|
@@ -144,14 +145,32 @@ export function createClaudeHookService(deps) {
|
|
|
144
145
|
? (await deps.taskService.listTasks(context.project.repoRoot))
|
|
145
146
|
.find((task) => task.cleanupStatus !== "cleaned" && (projectScoped || task.taskSlug === input.taskSlug))
|
|
146
147
|
: undefined;
|
|
147
|
-
const
|
|
148
|
+
const memoryResult = activeTask
|
|
148
149
|
? await deps.autoMemoryService?.handleHarnessEngineerHook({
|
|
149
150
|
baseRepoRoot: context.project.repoRoot,
|
|
150
151
|
taskRepoRoot: getTaskRuntimeRepoRoot(activeTask),
|
|
151
152
|
taskSlug: activeTask.taskSlug,
|
|
152
|
-
eventName
|
|
153
|
+
eventName,
|
|
154
|
+
allowStopBlock: options.allowBlock && eventName === "Stop"
|
|
153
155
|
})
|
|
154
|
-
:
|
|
156
|
+
: undefined;
|
|
157
|
+
if (memoryResult?.stopBlockReason) {
|
|
158
|
+
// The memory review result is still correctable: keep the Harness
|
|
159
|
+
// Engineer turn alive and skip retrospective completion until it passes.
|
|
160
|
+
// The turn continues, so the session must not stay recorded as idle and
|
|
161
|
+
// receive queued input meanwhile.
|
|
162
|
+
await recordSessionEvent("UserPromptSubmit");
|
|
163
|
+
return {
|
|
164
|
+
ok: true,
|
|
165
|
+
eventName,
|
|
166
|
+
taskSlug: activeTask?.taskSlug ?? input.taskSlug,
|
|
167
|
+
role: input.role,
|
|
168
|
+
sessionUpdated: Boolean(session),
|
|
169
|
+
dispatchedCount: 0,
|
|
170
|
+
stopDecision: { behavior: "block", reason: memoryResult.stopBlockReason }
|
|
171
|
+
};
|
|
172
|
+
}
|
|
173
|
+
const memoryHandled = memoryResult?.handled ?? false;
|
|
155
174
|
const memoryState = activeTask && deps.autoMemoryService
|
|
156
175
|
? await deps.autoMemoryService.getState(context.project.repoRoot, getTaskRuntimeRepoRoot(activeTask))
|
|
157
176
|
: undefined;
|
|
@@ -631,7 +650,7 @@ export function createClaudeHookService(deps) {
|
|
|
631
650
|
});
|
|
632
651
|
if (eventName === "Stop") {
|
|
633
652
|
const memoryState = await deps.autoMemoryService.getState(context.project.repoRoot, context.taskRepoRoot);
|
|
634
|
-
await deps.harnessFeedbackService?.completeWaitingTaskRetrospective(context.project.repoRoot, context.taskSlug, memoryState
|
|
653
|
+
await deps.harnessFeedbackService?.completeWaitingTaskRetrospective(context.project.repoRoot, context.taskSlug, memoryState);
|
|
635
654
|
}
|
|
636
655
|
return {
|
|
637
656
|
ok: true,
|
|
@@ -908,7 +927,7 @@ export function createClaudeHookService(deps) {
|
|
|
908
927
|
return processTranslatorHook(input);
|
|
909
928
|
}
|
|
910
929
|
if (isHarnessEngineerToolRoleName(input.role)) {
|
|
911
|
-
return processHarnessEngineerHook(input);
|
|
930
|
+
return processHarnessEngineerHook(input, { allowBlock: false });
|
|
912
931
|
}
|
|
913
932
|
if (eventName === "UserPromptSubmit") {
|
|
914
933
|
return handleUserPromptSubmitHook(input);
|
|
@@ -930,7 +949,7 @@ export function createClaudeHookService(deps) {
|
|
|
930
949
|
return processTranslatorHook(input);
|
|
931
950
|
}
|
|
932
951
|
if (isHarnessEngineerToolRoleName(input.role)) {
|
|
933
|
-
return processHarnessEngineerHook(input);
|
|
952
|
+
return processHarnessEngineerHook(input, { allowBlock: true });
|
|
934
953
|
}
|
|
935
954
|
return processStopHook(input, { allowBlock: true });
|
|
936
955
|
});
|
|
@@ -175,6 +175,7 @@ export function createHarnessFeedbackService(deps) {
|
|
|
175
175
|
...processedMarker,
|
|
176
176
|
status: "failed",
|
|
177
177
|
durableDocFailure: input.memoryReviewHasAssignments,
|
|
178
|
+
memoryReviewFailure: true,
|
|
178
179
|
failedAt: timestamp,
|
|
179
180
|
updatedAt: timestamp,
|
|
180
181
|
error: input.memoryReviewError
|
|
@@ -194,15 +195,28 @@ export function createHarnessFeedbackService(deps) {
|
|
|
194
195
|
await completeTaskRetrospective(repoRoot, processedMarker);
|
|
195
196
|
return true;
|
|
196
197
|
}
|
|
197
|
-
async function completeWaitingTaskRetrospective(repoRoot, taskSlug,
|
|
198
|
+
async function completeWaitingTaskRetrospective(repoRoot, taskSlug, memory) {
|
|
198
199
|
const marker = await loadTaskRetrospectiveMarker(repoRoot, taskSlug);
|
|
199
|
-
|
|
200
|
+
// A memory review that failed validation recovers only when a retry
|
|
201
|
+
// re-validated and applied that same run; a discarded run never does.
|
|
202
|
+
const memoryReviewRecovered = Boolean(marker?.memoryReviewFailure
|
|
203
|
+
&& marker.memoryRunId
|
|
204
|
+
&& memory.runs.some((run) => run.runId === marker.memoryRunId && run.status === "applied"));
|
|
205
|
+
if (!marker
|
|
206
|
+
|| (marker.status !== "waiting-docs"
|
|
207
|
+
&& !(marker.status === "failed" && (marker.durableDocFailure || memoryReviewRecovered)))) {
|
|
200
208
|
return false;
|
|
201
209
|
}
|
|
210
|
+
const memoryStatus = memory.status;
|
|
202
211
|
if (memoryStatus === "documenting") {
|
|
203
212
|
if (marker.status === "failed") {
|
|
204
213
|
await persistTaskRetrospectiveMarker(repoRoot, {
|
|
205
|
-
...marker,
|
|
214
|
+
...marker,
|
|
215
|
+
status: "waiting-docs",
|
|
216
|
+
memoryReviewFailure: undefined,
|
|
217
|
+
updatedAt: now(),
|
|
218
|
+
error: undefined,
|
|
219
|
+
failedAt: undefined
|
|
206
220
|
});
|
|
207
221
|
}
|
|
208
222
|
return true;
|
|
@@ -235,6 +249,7 @@ export function createHarnessFeedbackService(deps) {
|
|
|
235
249
|
...processedMarker,
|
|
236
250
|
status: "completed",
|
|
237
251
|
durableDocFailure: undefined,
|
|
252
|
+
memoryReviewFailure: undefined,
|
|
238
253
|
error: undefined,
|
|
239
254
|
failedAt: undefined,
|
|
240
255
|
completedAt: timestamp,
|
|
@@ -408,8 +423,11 @@ export function createHarnessFeedbackService(deps) {
|
|
|
408
423
|
`Write the complete machine-readable review to: ${memoryReview.reviewResultPath}`,
|
|
409
424
|
"The JSON root must be: {\"version\":1,\"runId\":\"<assigned run id>\",\"memoryCommit\":\"<full commit or none>\",\"decisions\":[],\"durableDocAssignments\":[]}.",
|
|
410
425
|
"Each decision must contain itemId, source (existing|proposal), target, entry, decision, reason, impactIfAbsent, evidence (non-empty array), finalContent, and durableDocPath.",
|
|
426
|
+
"Every decision field is a non-empty string except evidence. Use \"none\" for finalContent when the decision keeps no memory text (remove, reject, move-to-durable-doc), and for durableDocPath unless the decision is move-to-durable-doc, where it must equal the assignment targetPath.",
|
|
427
|
+
"For retain, update, keep-in-memory, and keep-memory-reference, finalContent must be the exact memory text now present in the <VCM-memory> block; an update's finalContent must be one complete semantic entry as it now appears.",
|
|
411
428
|
"Existing decisions use retain|update|remove|move-to-durable-doc. Add or Update proposal decisions use keep-in-memory|keep-memory-reference|move-to-durable-doc|reject; Remove proposal decisions use remove|retain. Proposal itemId must equal the assigned candidate ID.",
|
|
412
429
|
"Each durableDocAssignment must contain sourceMemoryPath, sourceEntry, targetPath, content, reason, and evidence (non-empty array). Use a project-relative Markdown target outside .ai/vcm.",
|
|
430
|
+
"VCM validates review-result.json and the memory commit when you end the turn. If validation fails, the Stop is rejected with the error; correct the result file or the memory commit and end the turn again.",
|
|
413
431
|
"In the retrospective report, include only this memory summary:",
|
|
414
432
|
"",
|
|
415
433
|
"## Memory Review",
|
|
@@ -59,7 +59,7 @@ export function createRuntimeCoordinatorService(deps) {
|
|
|
59
59
|
await deps.translationService.stopTask(taskRepoRoot, activeTask.taskSlug).catch(() => undefined);
|
|
60
60
|
}
|
|
61
61
|
const memoryState = await reconcileAutoMemory(repoRoot, activeTask, preferences.autoTaskHarnessReviewEnabled ? "auto" : undefined);
|
|
62
|
-
await deps.harnessFeedbackService.completeWaitingTaskRetrospective(repoRoot, activeTask.taskSlug, memoryState
|
|
62
|
+
await deps.harnessFeedbackService.completeWaitingTaskRetrospective(repoRoot, activeTask.taskSlug, memoryState);
|
|
63
63
|
const memoryReadiness = await getTaskRetrospectiveMemoryReadiness(repoRoot, activeTask);
|
|
64
64
|
if ((preferences.autoTaskHarnessReviewEnabled || memoryReadiness.trigger) && memoryReadiness.ready) {
|
|
65
65
|
await maybeStartTaskHarnessRetrospective(repoRoot, activeTask, memoryReadiness.trigger ?? "auto");
|