pi-better-harness 0.50.1 → 0.51.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/CHANGELOG.md +9 -0
- package/README.md +3 -1
- package/extensions/settings/page.ts +13 -7
- package/extensions/task-context/index.ts +48 -13
- package/extensions/task-context/outcome-state.ts +18 -2
- package/extensions/task-context/workflow-plan.ts +13 -4
- package/node_modules/pi-better-background-tasks/package.json +1 -1
- package/node_modules/pi-better-background-tasks/runtime-client/artifacts/darwin-arm64.gz +0 -0
- package/node_modules/pi-better-background-tasks/runtime-client/artifacts/darwin-arm64.json +1 -1
- package/node_modules/pi-better-background-tasks/runtime-client/artifacts/darwin-x64.gz +0 -0
- package/node_modules/pi-better-background-tasks/runtime-client/artifacts/darwin-x64.json +1 -1
- package/node_modules/pi-better-background-tasks/runtime-client/artifacts/linux-arm64.gz +0 -0
- package/node_modules/pi-better-background-tasks/runtime-client/artifacts/linux-arm64.json +1 -1
- package/node_modules/pi-better-background-tasks/runtime-client/artifacts/linux-x64.gz +0 -0
- package/node_modules/pi-better-background-tasks/runtime-client/artifacts/linux-x64.json +1 -1
- package/node_modules/pi-better-background-tasks/src/supervisor/README.md +1 -4
- package/node_modules/pi-better-goal/README.md +4 -0
- package/node_modules/pi-better-goal/package.json +1 -1
- package/node_modules/pi-better-goal/src/index.ts +34 -8
- package/node_modules/pi-better-goal/src/task-context.ts +12 -6
- package/node_modules/pi-better-sandbox/README.md +3 -3
- package/node_modules/pi-better-sandbox/package.json +1 -1
- package/node_modules/pi-better-subagents/README.md +12 -10
- package/node_modules/pi-better-subagents/batch.mjs +2 -0
- package/node_modules/pi-better-subagents/bin/recover-workspace.mjs +19 -0
- package/node_modules/pi-better-subagents/cleanup.ts +10 -2
- package/node_modules/pi-better-subagents/config.ts +7 -1
- package/node_modules/pi-better-subagents/continuation.ts +4 -2
- package/node_modules/pi-better-subagents/docs/usage.md +39 -53
- package/node_modules/pi-better-subagents/failures.ts +10 -2
- package/node_modules/pi-better-subagents/index.ts +121 -42
- package/node_modules/pi-better-subagents/isolated-workspace.ts +557 -0
- package/node_modules/pi-better-subagents/list.mjs +2 -2
- package/node_modules/pi-better-subagents/managed-launch-client.ts +23 -6
- package/node_modules/pi-better-subagents/output-payload.ts +26 -12
- package/node_modules/pi-better-subagents/package.json +4 -2
- package/node_modules/pi-better-subagents/parse.ts +10 -5
- package/node_modules/pi-better-subagents/registry.ts +23 -5
- package/node_modules/pi-better-subagents/retained-result.ts +65 -0
- package/node_modules/pi-better-subagents/runtime-client/artifacts/darwin-arm64.gz +0 -0
- package/node_modules/pi-better-subagents/runtime-client/artifacts/darwin-arm64.json +1 -1
- package/node_modules/pi-better-subagents/runtime-client/artifacts/darwin-x64.gz +0 -0
- package/node_modules/pi-better-subagents/runtime-client/artifacts/darwin-x64.json +1 -1
- package/node_modules/pi-better-subagents/runtime-client/artifacts/linux-arm64.gz +0 -0
- package/node_modules/pi-better-subagents/runtime-client/artifacts/linux-arm64.json +1 -1
- package/node_modules/pi-better-subagents/runtime-client/artifacts/linux-x64.gz +0 -0
- package/node_modules/pi-better-subagents/runtime-client/artifacts/linux-x64.json +1 -1
- package/node_modules/pi-better-subagents/session-selection.ts +2 -1
- package/node_modules/pi-better-subagents/session-store.ts +9 -0
- package/node_modules/pi-better-subagents/settings-page.ts +147 -108
- package/node_modules/pi-better-subagents/shared-catalog.ts +23 -7
- package/node_modules/pi-better-subagents/task-guard.ts +13 -1
- package/node_modules/pi-better-subagents/task-policy.ts +5 -1
- package/node_modules/pi-better-subagents/tools.ts +4 -7
- package/node_modules/pi-better-subagents/workspace-files.ts +114 -0
- package/node_modules/pi-better-subagents/workspace-scope.ts +6 -0
- package/node_modules/pi-better-subagents/worktree-feedback.ts +77 -0
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.51.0] - 2026-11-22
|
|
4
|
+
|
|
5
|
+
### Changed
|
|
6
|
+
|
|
7
|
+
- Find related controls together in `/harness-settings` and `/subagents`. Subagent settings show help for the focused row, wrap long values in narrow terminals, and display the configured shortcuts for editing. (#876)
|
|
8
|
+
- Choose Clone or Worktree for isolated subagent work and select **No limit** for the run timeout. Both workspace modes preserve files and partial results for recovery. (#875)
|
|
9
|
+
- A Goal bound to an Outcome now checks its acceptance evidence and unfinished work before completing. Rush Todo stages keep their blockers until delivery evidence arrives. (#854, #873)
|
|
10
|
+
- Bundle Subagents 0.37.0, Background Tasks 0.20.0, Goal 0.16.0 and Sandbox 0.15.1. Background Tasks and Subagents carry the Server 0.7.0 runtime.
|
|
11
|
+
|
|
3
12
|
## [0.50.1] - 2026-11-22
|
|
4
13
|
|
|
5
14
|
### Changed
|
package/README.md
CHANGED
|
@@ -210,7 +210,9 @@ pi -e ./packages/pi-better-harness/extensions/minimal-output/index.ts
|
|
|
210
210
|
## Harness Settings
|
|
211
211
|
|
|
212
212
|
The bundled harness provides `/harness-settings`, using Pi's native settings
|
|
213
|
-
list.
|
|
213
|
+
list. Work planning comes first, followed by delegation and sandbox access,
|
|
214
|
+
background waits and completion delivery, then display settings. It opens
|
|
215
|
+
the settings screens of loaded Sandbox, Subagents, and Goal
|
|
214
216
|
packages without duplicating their configuration, plus the **Agent catalog** shortcut
|
|
215
217
|
to the `/agents` catalog. `/sandbox`, `/subagents settings`, `/agents`, and
|
|
216
218
|
`/goal settings` remain available in standalone installations.
|
|
@@ -17,7 +17,15 @@ const callbackDescription = (source: "session" | "default") => [
|
|
|
17
17
|
"Changes apply to this session. Ctrl+S saves your default.",
|
|
18
18
|
].join("\n");
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
// Keep each package page beside the controls used for the same task.
|
|
21
|
+
const taskOrder = [
|
|
22
|
+
"setting:outcome-todo", "setting:goal-auto-start", "link:goal", "setting:outcome-todo-ledger",
|
|
23
|
+
"link:subagents", "link:agents", "link:sandbox",
|
|
24
|
+
"setting:tool-call-guard", "setting:background-review-interval", CALLBACK_SETTING_ID,
|
|
25
|
+
"setting:navigator-view", "setting:navigator-sticky", "setting:outcome-todo-display",
|
|
26
|
+
"setting:tool-output", "setting:tool-animation",
|
|
27
|
+
];
|
|
28
|
+
const position = new Map(taskOrder.map((id, index) => [id, index]));
|
|
21
29
|
|
|
22
30
|
function presentControl(control: SettingsControl) {
|
|
23
31
|
const copy = controlCopy.get(control.id);
|
|
@@ -62,14 +70,12 @@ export async function chooseHarnessSetting(ctx: ExtensionCommandContext, links:
|
|
|
62
70
|
values: Object.values(callbackLabels),
|
|
63
71
|
};
|
|
64
72
|
const allControls = navigatorView ? [...controls, navigatorView] : [...controls];
|
|
65
|
-
const
|
|
66
|
-
(controlOrder.get(a.id) ?? controlOrder.size) - (controlOrder.get(b.id) ?? controlOrder.size)
|
|
67
|
-
).map(presentControl);
|
|
73
|
+
const entries = allControls.map(presentControl);
|
|
68
74
|
const items = [
|
|
69
75
|
...(callbackSetting ? [callbackSetting] : []),
|
|
70
|
-
...
|
|
76
|
+
...entries.map(({ item }) => item),
|
|
71
77
|
...links.map(presentLink),
|
|
72
|
-
];
|
|
78
|
+
].sort((a, b) => (position.get(a.id) ?? position.size) - (position.get(b.id) ?? position.size));
|
|
73
79
|
const feedback = new Text("", 2, 0);
|
|
74
80
|
let changing = false;
|
|
75
81
|
const report = (message: string, error = false) => {
|
|
@@ -81,7 +87,7 @@ export async function chooseHarnessSetting(ctx: ExtensionCommandContext, links:
|
|
|
81
87
|
value: (text, active) => active ? theme.inverse(text) : theme.fg("muted", text),
|
|
82
88
|
description: text => theme.fg("text", text), cursor: "> ", hint: text => theme.fg("dim", text),
|
|
83
89
|
}, (id, value) => {
|
|
84
|
-
const entry =
|
|
90
|
+
const entry = entries.find(({ item }) => item.id === id);
|
|
85
91
|
if (entry) {
|
|
86
92
|
const previous = entry.display(entry.control.get());
|
|
87
93
|
const next = entry.control.values[entry.values.indexOf(value)]!;
|
|
@@ -10,7 +10,7 @@ import { OUTCOME_ENTRY, prepareOutcome, restoreOutcome, formatOutcome, type Outc
|
|
|
10
10
|
import { changeOutcomeTodoPreference, parseOutcomeTodoPreferences } from "./preferences.js";
|
|
11
11
|
import { canRenderTaskRuntime, renderCompactTaskHeader, type CompactTaskHeader } from "./compact-task-header.js";
|
|
12
12
|
import type { GoalSnapshot } from "pi-better-goal/src/types.ts";
|
|
13
|
-
import {
|
|
13
|
+
import { OUTCOME_ACCEPTED_EVENT, type TaskContextRequest } from "pi-better-goal/src/task-context.ts";
|
|
14
14
|
|
|
15
15
|
import {
|
|
16
16
|
completedPlanClearDelay,
|
|
@@ -168,7 +168,7 @@ export default function taskContextExtension(pi: ExtensionAPI): void {
|
|
|
168
168
|
let enabled = false;
|
|
169
169
|
let display = true;
|
|
170
170
|
let ledgerEnabled = false;
|
|
171
|
-
let
|
|
171
|
+
let sessionContext: ExtensionContext | undefined;
|
|
172
172
|
let outcome: Outcome | null = null;
|
|
173
173
|
const taskTools = ["update_todo", "get_todo"] as const;
|
|
174
174
|
const syncTools = (): void => {
|
|
@@ -434,10 +434,11 @@ export default function taskContextExtension(pi: ExtensionAPI): void {
|
|
|
434
434
|
|
|
435
435
|
const restore = (ctx: ExtensionContext): void => {
|
|
436
436
|
const entries = ctx.sessionManager.getBranch();
|
|
437
|
-
|
|
437
|
+
sessionContext = ctx;
|
|
438
|
+
const trigger = reconstructGoalSnapshot(entries);
|
|
439
|
+
outcome = restoreOutcome(entries, trigger);
|
|
438
440
|
restoreLedgerState(ctx);
|
|
439
441
|
if (enabled) {
|
|
440
|
-
const trigger = reconstructGoalSnapshot(entries);
|
|
441
442
|
if (!outcome && trigger && trigger.status !== "complete") {
|
|
442
443
|
outcome = { objective: trigger.objective, source: "goal", goalId: trigger.goalId, status: trigger.status === "active" ? "active" : "paused" };
|
|
443
444
|
} else if (outcome?.goalId && outcome.status !== "complete" && outcome.status !== "cancelled") {
|
|
@@ -484,7 +485,6 @@ export default function taskContextExtension(pi: ExtensionAPI): void {
|
|
|
484
485
|
|
|
485
486
|
const installWidget = (ctx: ExtensionContext): void => {
|
|
486
487
|
if (!ctx.hasUI) return;
|
|
487
|
-
widgetContext = ctx;
|
|
488
488
|
setNavigatorPanel(ctx,
|
|
489
489
|
EXTENSION_NAME,
|
|
490
490
|
(tui, theme) => {
|
|
@@ -535,7 +535,7 @@ export default function taskContextExtension(pi: ExtensionAPI): void {
|
|
|
535
535
|
promptSnippet: "Remember the accepted outcome and update Todo, workflow, or durable ledger progress",
|
|
536
536
|
promptGuidelines: [
|
|
537
537
|
"Capture the accepted outcome before substantive implementation, delegation, or investigation. An outcome-only update is valid; do not invent a checklist or acceptance criteria.",
|
|
538
|
-
"Use newTask:true with its outcome when the user switches to unrelated work. Omit newTask for a correction or refinement of the same task.
|
|
538
|
+
"Use newTask:true with its outcome when the user switches to unrelated work. Omit newTask for a correction or refinement of the same task. For an active Goal, call update_goal after verifying delivery. Otherwise mark the outcome complete explicitly.",
|
|
539
539
|
"Use a Todo checklist when several meaningful milestones help track delivery; update it when work completes, is blocked, or changes scope.",
|
|
540
540
|
"Write each Todo label as a short action in plain language, usually 3-7 English words or a similarly short phrase in the task's language. For example: 'Add Todo toggle' or 'Test keyboard controls'. Put methods, file paths, rationale, and acceptance criteria in the outcome, explanation, or workflow records, not the label. Apply this to workflow titles too; do not copy long issue headings.",
|
|
541
541
|
"For generic plans only, mark distinct milestones in_progress when work is actually underway. Do not mark a delegated step completed until its result or failure has been inspected and integrated.",
|
|
@@ -577,6 +577,20 @@ export default function taskContextExtension(pi: ExtensionAPI): void {
|
|
|
577
577
|
if (input.todo !== undefined && owner) throw new Error(`${owner} owns the task plan. Send workflow instead of todo.`);
|
|
578
578
|
const nextOutcome = input.outcome ? prepareOutcome(outcome, input.outcome, input.newTask) : null;
|
|
579
579
|
if (!input.newTask) assertOutcomeCompletionAllowed(ctx, nextOutcome);
|
|
580
|
+
let reopenedGoalId: string | undefined;
|
|
581
|
+
if (nextOutcome?.goalId) {
|
|
582
|
+
const goal = reconstructGoalSnapshot(ctx.sessionManager.getBranch());
|
|
583
|
+
if (goal?.goalId === nextOutcome.goalId) {
|
|
584
|
+
if (nextOutcome.status === "complete" && goal.status === "active") {
|
|
585
|
+
throw new Error("This Outcome belongs to an active Goal. Verify its acceptance criteria and use update_goal to complete both.");
|
|
586
|
+
}
|
|
587
|
+
if (nextOutcome.status === "active" && goal.status === "complete") {
|
|
588
|
+
if (input.outcome?.status === "active") reopenedGoalId = nextOutcome.goalId;
|
|
589
|
+
delete nextOutcome.goalId;
|
|
590
|
+
if (nextOutcome.source === "goal") delete nextOutcome.source;
|
|
591
|
+
}
|
|
592
|
+
}
|
|
593
|
+
}
|
|
580
594
|
const replacement = input.todo?.length ? replacePlan(input.newTask ? null : currentPlan, input.todo, input.explanation) : null;
|
|
581
595
|
const detachOnCommit = input.newTask && ledgerId !== null;
|
|
582
596
|
// Commit task memory only after the requested checklist or workflow operation succeeds.
|
|
@@ -590,7 +604,7 @@ export default function taskContextExtension(pi: ExtensionAPI): void {
|
|
|
590
604
|
saveOutcome(nextOutcome);
|
|
591
605
|
const sessionId = ctx.sessionManager.getSessionId?.();
|
|
592
606
|
if (typeof sessionId === "string") {
|
|
593
|
-
pi.events.emit(OUTCOME_ACCEPTED_EVENT, { sessionId, outcome: { ...nextOutcome } });
|
|
607
|
+
pi.events.emit(OUTCOME_ACCEPTED_EVENT, { sessionId, reopenedGoalId, outcome: { ...nextOutcome } });
|
|
594
608
|
}
|
|
595
609
|
};
|
|
596
610
|
if (!input.workflow && input.todo === undefined) {
|
|
@@ -867,21 +881,42 @@ export default function taskContextExtension(pi: ExtensionAPI): void {
|
|
|
867
881
|
registerSettings();
|
|
868
882
|
const unsubscribeTask = pi.events.on("pi-better-harness:task-context", (event: unknown) => {
|
|
869
883
|
if (!event || typeof event !== "object") return;
|
|
870
|
-
const request = event as
|
|
884
|
+
const request = event as TaskContextRequest;
|
|
871
885
|
request.enabled = enabled;
|
|
886
|
+
if (request.action === "audit") {
|
|
887
|
+
if (enabled && outcome?.goalId && outcome.goalId === request.goalId) {
|
|
888
|
+
request.objective = outcome.objective;
|
|
889
|
+
request.doneWhen = outcome.doneWhen?.filter(criterion => criterion.trim());
|
|
890
|
+
if (sessionContext) {
|
|
891
|
+
try {
|
|
892
|
+
assertOutcomeCompletionAllowed(sessionContext, { ...outcome, status: "complete" });
|
|
893
|
+
} catch (error) {
|
|
894
|
+
request.ledgerBlocker = error instanceof Error ? error.message : String(error);
|
|
895
|
+
}
|
|
896
|
+
}
|
|
897
|
+
if (sessionContext && !workflowPlanOwner(sessionContext) && !rushBinding) {
|
|
898
|
+
request.openSteps = currentPlan?.steps.filter(step => step.status !== "completed").map(step => step.step);
|
|
899
|
+
}
|
|
900
|
+
}
|
|
901
|
+
return;
|
|
902
|
+
}
|
|
872
903
|
if (request.action === "inspect") {
|
|
873
|
-
const goal =
|
|
874
|
-
request.display = !!(typeof request.goalId === "string" &&
|
|
904
|
+
const goal = sessionContext ? reconstructGoalSnapshot(sessionContext.sessionManager.getBranch()) : null;
|
|
905
|
+
request.display = !!(typeof request.goalId === "string" && sessionContext?.hasUI && display && displayMode !== "hidden" &&
|
|
875
906
|
outcome && request.goalId === outcome.goalId && goal?.goalId === request.goalId && typeof request.width === "number" &&
|
|
876
|
-
canRenderTaskRuntime(request.width, goalHeaderRuntime(goal)) && displayedWorkflowOwner === workflowPlanOwner(
|
|
907
|
+
canRenderTaskRuntime(request.width, goalHeaderRuntime(goal)) && displayedWorkflowOwner === workflowPlanOwner(sessionContext));
|
|
877
908
|
}
|
|
878
909
|
if (!enabled || request.action === "inspect") return;
|
|
879
910
|
if (request.action === "bind") {
|
|
880
|
-
if (request.goalId && request.objective?.trim() === outcome?.objective &&
|
|
911
|
+
if (request.goalId && request.objective?.trim() === outcome?.objective && outcome?.status === "active" && !outcome.goalId) {
|
|
881
912
|
saveOutcome({ ...outcome, goalId: request.goalId });
|
|
882
913
|
}
|
|
883
914
|
} else if (request.action === "start" && request.goalId && request.objective?.trim()) {
|
|
884
915
|
if (outcome?.goalId === request.goalId) return;
|
|
916
|
+
if (outcome?.status === "active" && !outcome.goalId && outcome.objective === request.objective.trim()) {
|
|
917
|
+
saveOutcome({ ...outcome, goalId: request.goalId });
|
|
918
|
+
return;
|
|
919
|
+
}
|
|
885
920
|
clearWorkflowPlan();
|
|
886
921
|
if (currentPlan) clearPlan();
|
|
887
922
|
saveOutcome({ objective: request.objective.trim(), status: "active", goalId: request.goalId, source: "goal" });
|
|
@@ -953,7 +988,7 @@ export default function taskContextExtension(pi: ExtensionAPI): void {
|
|
|
953
988
|
if (typeof unsubscribeSettings === "function") unsubscribeSettings();
|
|
954
989
|
if (typeof unsubscribeTask === "function") unsubscribeTask();
|
|
955
990
|
refreshWidget = undefined;
|
|
956
|
-
|
|
991
|
+
sessionContext = undefined;
|
|
957
992
|
try {
|
|
958
993
|
setNavigatorPanel(ctx, EXTENSION_NAME, undefined);
|
|
959
994
|
} catch { /* best-effort cleanup */ }
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { reconstructGoalSnapshot } from "pi-better-goal/src/goal-state.ts";
|
|
2
|
+
import type { GoalSnapshot } from "pi-better-goal/src/types.ts";
|
|
3
|
+
|
|
1
4
|
export const OUTCOME_ENTRY = "pi-better-harness:outcome";
|
|
2
5
|
|
|
3
6
|
export interface OutcomeInput {
|
|
@@ -33,9 +36,13 @@ export function prepareOutcome(current: Outcome | null, input: OutcomeInput, new
|
|
|
33
36
|
};
|
|
34
37
|
}
|
|
35
38
|
|
|
36
|
-
export function restoreOutcome(
|
|
39
|
+
export function restoreOutcome(
|
|
40
|
+
entries: readonly { type: string; customType?: string; data?: unknown }[],
|
|
41
|
+
goal?: GoalSnapshot | null,
|
|
42
|
+
): Outcome | null {
|
|
43
|
+
let lastOutcomeIndex = -1;
|
|
37
44
|
let outcome: Outcome | null = null;
|
|
38
|
-
for (const entry of entries) {
|
|
45
|
+
for (const [index, entry] of entries.entries()) {
|
|
39
46
|
if (entry.type !== "custom" || entry.customType !== OUTCOME_ENTRY) continue;
|
|
40
47
|
const data = entry.data as { version?: number; outcome?: Outcome } | null;
|
|
41
48
|
if (data?.version !== 1 || !data.outcome) continue;
|
|
@@ -43,10 +50,19 @@ export function restoreOutcome(entries: Iterable<{ type: string; customType?: st
|
|
|
43
50
|
const parsed = prepareOutcome(null, data.outcome);
|
|
44
51
|
if (typeof data.outcome.goalId === "string") parsed.goalId = data.outcome.goalId;
|
|
45
52
|
outcome = parsed;
|
|
53
|
+
lastOutcomeIndex = index;
|
|
46
54
|
} catch {
|
|
47
55
|
// A malformed entry is not permission to replace previously valid task state.
|
|
48
56
|
}
|
|
49
57
|
}
|
|
58
|
+
// Older sessions could save new active work against a Goal that was already complete.
|
|
59
|
+
if (outcome?.status === "active" && goal?.status === "complete" && outcome.goalId === goal.goalId) {
|
|
60
|
+
const previous = reconstructGoalSnapshot(entries.slice(0, lastOutcomeIndex));
|
|
61
|
+
if (previous?.goalId === goal.goalId && previous.status === "complete") {
|
|
62
|
+
delete outcome.goalId;
|
|
63
|
+
if (outcome.source === "goal") delete outcome.source;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
50
66
|
return outcome;
|
|
51
67
|
}
|
|
52
68
|
|
|
@@ -182,7 +182,7 @@ function unitStatus(unit: RushUnit): DisplayStatus {
|
|
|
182
182
|
return unit.reviewedHead === unit.headSha ? "reviewed" : "implemented";
|
|
183
183
|
}
|
|
184
184
|
|
|
185
|
-
function unitStages(unit: RushUnit): Record<"implement" | "review" | "ci", DisplayStatus> {
|
|
185
|
+
function unitStages(unit: RushUnit, fleet: RushPlan["fleet"]): Record<"implement" | "review" | "ci", DisplayStatus> {
|
|
186
186
|
const status = workflowStatus(unit.status);
|
|
187
187
|
if (status === "completed" || status === "skipped") return { implement: status, review: status, ci: status };
|
|
188
188
|
|
|
@@ -195,9 +195,18 @@ function unitStages(unit: RushUnit): Record<"implement" | "review" | "ci", Displ
|
|
|
195
195
|
|
|
196
196
|
// An issue can stop in one phase while retaining evidence from another.
|
|
197
197
|
if (status === "blocked" || status === "failed") {
|
|
198
|
-
if (!implemented) return { implement: status, review: reviewed ? "completed" : "pending", ci: "pending" };
|
|
199
198
|
if (reviewed || inCI) return { implement: "completed", review: reviewed ? "completed" : "pending", ci: status };
|
|
200
|
-
return { implement: "completed", review: status, ci: "pending" };
|
|
199
|
+
if (implemented || inReview) return { implement: "completed", review: status, ci: "pending" };
|
|
200
|
+
if (unit.stage !== "implement" && unit.stage !== "pending") {
|
|
201
|
+
// Older plans record stages such as validate without a delivery marker.
|
|
202
|
+
const saved = {
|
|
203
|
+
implement: workflowStatus(fleet.implement?.status ?? "pending"),
|
|
204
|
+
review: workflowStatus(fleet.review?.status ?? "pending"),
|
|
205
|
+
ci: workflowStatus(fleet.ci?.status ?? "pending"),
|
|
206
|
+
};
|
|
207
|
+
if (Object.values(saved).some(stage => stage === "blocked" || stage === "failed")) return saved;
|
|
208
|
+
}
|
|
209
|
+
return { implement: status, review: "pending", ci: "pending" };
|
|
201
210
|
}
|
|
202
211
|
|
|
203
212
|
return {
|
|
@@ -237,7 +246,7 @@ function presentRushPlan(plan: RushPlan, owner: string, readOnly = false): PlanP
|
|
|
237
246
|
stageLabels.push({ color: style.color, text: ` ${style.glyph}` });
|
|
238
247
|
}
|
|
239
248
|
};
|
|
240
|
-
const issueStages = plan.issues.map(unitStages);
|
|
249
|
+
const issueStages = plan.issues.map(unit => unitStages(unit, plan.fleet));
|
|
241
250
|
for (const name of ["implement", "review", "ci"] as const) {
|
|
242
251
|
addStage(name, issueStages.map((issue) => issue[name]));
|
|
243
252
|
}
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"build":{"format":1,"sourceDigest":"
|
|
1
|
+
{"build":{"format":1,"sourceDigest":"5bd2e8ad130e4ee494caf40bb7129c5c9c1f787d486de66304ec9a7fa5fcb45e","piSdkVersion":"1.4.0","nodeVersion":"24.14.1","platform":"darwin-arm64","dependencyLockDigest":"300f19071b0e3f4e68220f42d7976b92dc6a629dd2719325fb7fad41781164c8","protocolVersion":1,"serverVersion":"0.7.0","contentId":"be4b4f5c05d403d84c98a0e34f407fbf65fb8f90e4e9d07930404c8f408665eb"},"sha256":"701e694c1047bcb5ef4652c6a05cfbee0798eb90a4a1e57574118c0b3df59d18"}
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"build":{"format":1,"sourceDigest":"
|
|
1
|
+
{"build":{"format":1,"sourceDigest":"5bd2e8ad130e4ee494caf40bb7129c5c9c1f787d486de66304ec9a7fa5fcb45e","piSdkVersion":"1.4.0","nodeVersion":"24.14.1","platform":"darwin-x64","dependencyLockDigest":"300f19071b0e3f4e68220f42d7976b92dc6a629dd2719325fb7fad41781164c8","protocolVersion":1,"serverVersion":"0.7.0","contentId":"3db710d017c57fdc43d18531bcd3144de15767b9021223fcc262d39107db55f6"},"sha256":"4f88a4c1bf931f4af0805f227f5d473336f796f74cacad45020bad79e3962232"}
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"build":{"format":1,"sourceDigest":"
|
|
1
|
+
{"build":{"format":1,"sourceDigest":"5bd2e8ad130e4ee494caf40bb7129c5c9c1f787d486de66304ec9a7fa5fcb45e","piSdkVersion":"1.4.0","nodeVersion":"24.14.1","platform":"linux-arm64","dependencyLockDigest":"300f19071b0e3f4e68220f42d7976b92dc6a629dd2719325fb7fad41781164c8","protocolVersion":1,"serverVersion":"0.7.0","contentId":"93a5ca8f14a1667ff653465e5844577f34c3f48c79b1ac87daea77f52eba65e3"},"sha256":"24938d0af26379b8b068e09e1e92d3a4c87d88ea04894a676100a4ed19d90649"}
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"build":{"format":1,"sourceDigest":"
|
|
1
|
+
{"build":{"format":1,"sourceDigest":"5bd2e8ad130e4ee494caf40bb7129c5c9c1f787d486de66304ec9a7fa5fcb45e","piSdkVersion":"1.4.0","nodeVersion":"24.14.1","platform":"linux-x64","dependencyLockDigest":"300f19071b0e3f4e68220f42d7976b92dc6a629dd2719325fb7fad41781164c8","protocolVersion":1,"serverVersion":"0.7.0","contentId":"71973a617087e76c008eb1eb0b6e50d4ec51f2e6617af432828dba6bdf4baaa1"},"sha256":"b5f918fde231b83e9351dc194ec10bd60f5d8641c452c4925f0bbbffa5eeebd9"}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
# Detached local supervisor
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
[observed-waits design](../../../../docs/plans/observed-waits-design.md): local process and command-watch
|
|
5
|
-
supervision that survives the process that launched it. Nothing in this directory is wired into the
|
|
6
|
-
Background Tasks tools yet; the parent owns that integration.
|
|
3
|
+
The detached supervisor runs local processes and command watches after the launching frontend exits. The coordinator retains the wait and its owner. [Observed waits](https://github.com/1aboveio/pi-better-harness/blob/main/docs/adr/0020-observed-waits-retain-an-owner.md) · [Supervisor design](https://github.com/1aboveio/pi-better-harness/blob/main/docs/plans/observed-waits-design.md)
|
|
7
4
|
|
|
8
5
|
## Contract
|
|
9
6
|
|
|
@@ -50,6 +50,10 @@ With **Auto-start Goal** enabled, a successful explicit `update_todo` outcome sa
|
|
|
50
50
|
|
|
51
51
|
Existing active, paused or budget-limited Goals are never replaced or resumed. Refinements of a bound outcome do not create another Goal. A new unbound task can start after the previous Goal completes. Session restore, branch navigation and enabling the preference do not replay saved outcomes; the next explicit qualifying save is the trigger. Completing a checklist or outcome does not complete the Goal.
|
|
52
52
|
|
|
53
|
+
For an active Goal with a bound Outcome, the agent completes both through `update_goal`. It supplies an `evidence` array with one `{criterion, result}` per `doneWhen` entry, using the Outcome objective if no criteria were recorded. Each result should identify the observed result and its source. Open Todo steps and open items on an associated work ledger block completion. These checks also apply after a workflow scheduler reports `finish`. The user can still complete a Goal manually with `/goal complete`.
|
|
54
|
+
|
|
55
|
+
Explicitly setting the same bound Outcome back to `active` after Goal completion starts a fresh Goal for its remaining work, including when Auto-start Goal is off. The new Goal preserves the Todo. Restoring an older session that saved active work against an already completed Goal leaves that work active and unbound. Running `/goal <exact Outcome objective>` binds it again with its Todo intact.
|
|
56
|
+
|
|
53
57
|
When a workflow already owns the session, the new Goal binds its registered coordinator without invoking it again. Its scheduler and completion checks continue to apply. An unavailable or invalid workflow coordinator prevents automatic creation.
|
|
54
58
|
|
|
55
59
|
## Settings Storage
|
|
@@ -998,18 +998,24 @@ export default function (pi: ExtensionAPI): void {
|
|
|
998
998
|
const unsubscribeOutcomeAccepted = pi.events.on(OUTCOME_ACCEPTED_EVENT, (value: unknown) => {
|
|
999
999
|
const ctx = currentCtx;
|
|
1000
1000
|
const event = value as Partial<OutcomeAcceptedEvent> | null;
|
|
1001
|
-
if (!
|
|
1002
|
-
typeof event.sessionId !== "string" || event.sessionId !== ctx.sessionManager.getSessionId()
|
|
1003
|
-
!canStartGoalFromOutcome(event.outcome)) return;
|
|
1001
|
+
if (!ctx || !event ||
|
|
1002
|
+
typeof event.sessionId !== "string" || event.sessionId !== ctx.sessionManager.getSessionId()) return;
|
|
1004
1003
|
const current = getGoal(ctx);
|
|
1005
1004
|
if (current && current.status !== "complete") return;
|
|
1005
|
+
const reopenedGoal = current?.status === "complete" && current.goalId === event.reopenedGoalId ? current : undefined;
|
|
1006
|
+
if ((!reopenedGoal && !preferences.autoStartFromOutcome) || !canStartGoalFromOutcome(event.outcome, reopenedGoal)) return;
|
|
1006
1007
|
const objective = event.outcome.objective.trim();
|
|
1007
1008
|
if (validateObjective(objective)) return;
|
|
1008
1009
|
const owner = getWorkflow(ctx);
|
|
1009
1010
|
if (owner && !workflowAvailable(owner)) return;
|
|
1010
|
-
const
|
|
1011
|
+
const retainedCommand = objective.startsWith("/") ? reopenedGoal?.command : undefined;
|
|
1012
|
+
const command = retainedCommand ?? (owner ? resolveGoalCommand(pi, `/skill:${owner.name}`) : null);
|
|
1011
1013
|
const goal = createGoalSnapshot(objective, null, undefined, command ?? undefined);
|
|
1012
1014
|
setGoal(goal, ctx, "runtime", true);
|
|
1015
|
+
if (retainedCommand) {
|
|
1016
|
+
const retainedOwner = goalWorkflowOwner(goal);
|
|
1017
|
+
if (retainedOwner && (owner?.name !== retainedOwner.name || owner?.path !== retainedOwner.path)) recordWorkflow(retainedOwner);
|
|
1018
|
+
}
|
|
1013
1019
|
resetContinuationState(goal);
|
|
1014
1020
|
});
|
|
1015
1021
|
|
|
@@ -1180,13 +1186,17 @@ export default function (pi: ExtensionAPI): void {
|
|
|
1180
1186
|
pi.registerTool({
|
|
1181
1187
|
name: "update_goal",
|
|
1182
1188
|
label: "Update Goal",
|
|
1183
|
-
description: "Mark the
|
|
1189
|
+
description: "Mark the Goal complete after verifying the requested outcome. For each recorded doneWhen criterion, supply its exact text and observed result in evidence. If a bound Outcome has no criteria, use its objective. A scheduler finish alone only confirms that workflow actions have settled.",
|
|
1184
1190
|
promptSnippet: "Mark the current Codex-style goal complete after verification.",
|
|
1185
1191
|
parameters: Type.Object({
|
|
1192
|
+
evidence: Type.Optional(Type.Array(Type.Object({
|
|
1193
|
+
criterion: Type.String(),
|
|
1194
|
+
result: Type.String({ description: "Observed result and its source, such as a test run, deployment receipt, or issue state." }),
|
|
1195
|
+
}))),
|
|
1186
1196
|
status: Type.String({ description: "Only 'complete' is accepted." }),
|
|
1187
1197
|
}),
|
|
1188
1198
|
async execute(_toolCallId, params, _signal, _onUpdate, ctx) {
|
|
1189
|
-
const input = params as { status: string };
|
|
1199
|
+
const input = params as { status: string; evidence?: Array<{ criterion: string; result: string }> };
|
|
1190
1200
|
if (input.status !== "complete") {
|
|
1191
1201
|
return {
|
|
1192
1202
|
content: [{ type: "text", text: "Only status:'complete' is accepted." }],
|
|
@@ -1214,7 +1224,23 @@ export default function (pi: ExtensionAPI): void {
|
|
|
1214
1224
|
details: { ok: false, goal: current, due: verdict.due },
|
|
1215
1225
|
};
|
|
1216
1226
|
}
|
|
1217
|
-
const
|
|
1227
|
+
const latest = getGoal(ctx);
|
|
1228
|
+
if (latest?.goalId !== current.goalId || latest.status !== current.status) {
|
|
1229
|
+
return { content: [{ type: "text", text: "Goal changed during the completion check. Read the current Goal." }], details: { ok: false, goal: latest } };
|
|
1230
|
+
}
|
|
1231
|
+
const audit = requestTaskContext(pi, "audit", current);
|
|
1232
|
+
const criteria = audit.doneWhen?.length ? audit.doneWhen : audit.objective ? [audit.objective] : [];
|
|
1233
|
+
const missing = criteria.filter(criterion => !input.evidence?.some(item => item.criterion === criterion && item.result.trim()));
|
|
1234
|
+
if (audit.ledgerBlocker || audit.openSteps?.length || missing.length) {
|
|
1235
|
+
const message = [
|
|
1236
|
+
"Verify the requested outcome before completing the Goal.",
|
|
1237
|
+
...(audit.ledgerBlocker ? [audit.ledgerBlocker] : []),
|
|
1238
|
+
...(audit.openSteps ?? []).map(step => `Open Todo: ${step}`),
|
|
1239
|
+
...missing.map(criterion => `Missing evidence: ${criterion}`),
|
|
1240
|
+
].join("\n");
|
|
1241
|
+
return { content: [{ type: "text", text: message }], details: { ok: false, goal: current, missing, openSteps: audit.openSteps } };
|
|
1242
|
+
}
|
|
1243
|
+
const goal = goalWithStatus(latest, "complete");
|
|
1218
1244
|
setGoal(goal, ctx, "tool");
|
|
1219
1245
|
if (getWorkflow(ctx)) recordWorkflow(null);
|
|
1220
1246
|
const warning = verdict?.allow ? verdict.warning : undefined;
|
|
@@ -1505,7 +1531,7 @@ export default function (pi: ExtensionAPI): void {
|
|
|
1505
1531
|
`${pausedInstruction}\n` + "While the goal is paused, this overrides the workflow instructions below: do not advance the workflow until the goal is resumed.\n\n",
|
|
1506
1532
|
`Active workflow: ${owner.name} (${owner.path}). Its task plan owns planning and the parent is a coordinator, not a product-code implementer. Follow the workflow instructions below, including on resumed turns:\n\n${instructions}`,
|
|
1507
1533
|
isPokeable(goal) && (harnessPresent
|
|
1508
|
-
? "Complete the goal only after the workflow completion audit."
|
|
1534
|
+
? "Complete the goal only after the workflow completion audit and verification of every accepted Outcome criterion."
|
|
1509
1535
|
: `Active objective: ${goal.objective}. Complete it only after the workflow completion audit.`),
|
|
1510
1536
|
questionInstruction && questionInstruction.trim(),
|
|
1511
1537
|
heldInstruction,
|
|
@@ -4,12 +4,13 @@ import type { GoalSnapshot } from "./types.js";
|
|
|
4
4
|
/** Synchronous request bus shared with an installed `pi-better-harness` runtime. */
|
|
5
5
|
export const TASK_CONTEXT_EVENT = "pi-better-harness:task-context";
|
|
6
6
|
|
|
7
|
-
export type TaskContextAction = "inspect" | "start" | "bind" | "pause" | "resume" | "complete";
|
|
7
|
+
export type TaskContextAction = "inspect" | "audit" | "start" | "bind" | "pause" | "resume" | "complete";
|
|
8
8
|
|
|
9
9
|
export const OUTCOME_ACCEPTED_EVENT = "pi-better-harness:outcome-accepted";
|
|
10
10
|
|
|
11
11
|
export interface OutcomeAcceptedEvent {
|
|
12
12
|
sessionId: string;
|
|
13
|
+
reopenedGoalId?: string;
|
|
13
14
|
outcome: {
|
|
14
15
|
objective: string;
|
|
15
16
|
doneWhen?: readonly string[];
|
|
@@ -19,13 +20,15 @@ export interface OutcomeAcceptedEvent {
|
|
|
19
20
|
}
|
|
20
21
|
|
|
21
22
|
/** Only explicit, actionable outcomes qualify; prose and restored state do not. */
|
|
22
|
-
export function canStartGoalFromOutcome(value: unknown): value is OutcomeAcceptedEvent["outcome"] {
|
|
23
|
+
export function canStartGoalFromOutcome(value: unknown, reopenedGoal?: Pick<GoalSnapshot, "objective" | "command">): value is OutcomeAcceptedEvent["outcome"] {
|
|
23
24
|
if (!value || typeof value !== "object") return false;
|
|
24
25
|
const outcome = value as Partial<OutcomeAcceptedEvent["outcome"]>;
|
|
26
|
+
const objective = typeof outcome.objective === "string" ? outcome.objective.trim() : "";
|
|
27
|
+
const retainsCommand = reopenedGoal?.command && reopenedGoal.objective.trim() === objective;
|
|
25
28
|
return outcome.status === "active" && outcome.goalId === undefined &&
|
|
26
|
-
|
|
27
|
-
Array.isArray(outcome.doneWhen) && outcome.doneWhen.length > 0 &&
|
|
28
|
-
|
|
29
|
+
!!objective && (!objective.startsWith("/") || !!retainsCommand) &&
|
|
30
|
+
(reopenedGoal !== undefined || (Array.isArray(outcome.doneWhen) && outcome.doneWhen.length > 0 &&
|
|
31
|
+
outcome.doneWhen.every(item => typeof item === "string" && !!item.trim())));
|
|
29
32
|
}
|
|
30
33
|
|
|
31
34
|
/**
|
|
@@ -35,10 +38,13 @@ export function canStartGoalFromOutcome(value: unknown): value is OutcomeAccepte
|
|
|
35
38
|
*/
|
|
36
39
|
export interface TaskContextRequest {
|
|
37
40
|
action: TaskContextAction;
|
|
41
|
+
doneWhen?: readonly string[];
|
|
42
|
+
openSteps?: readonly string[];
|
|
43
|
+
ledgerBlocker?: string;
|
|
38
44
|
goalId?: string;
|
|
39
45
|
/** Current widget width on a visual ownership inspection. */
|
|
40
46
|
width?: number;
|
|
41
|
-
/** The raw original goal trigger;
|
|
47
|
+
/** The raw original goal trigger; returned as the refined objective on audit. */
|
|
42
48
|
objective?: string;
|
|
43
49
|
/** Hooks authority: a present Harness runtime sets this even when Outcome & Todo is off. */
|
|
44
50
|
enabled?: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# pi-better-sandbox
|
|
2
2
|
|
|
3
|
-
Sandbox permissions for Pi's foreground tools, detached subagents, and local background tasks. See the [sandbox tool-loading and permission contract](
|
|
3
|
+
Sandbox permissions for Pi's foreground tools, detached subagents, and local background tasks. See the [sandbox tool-loading and permission contract](https://github.com/1aboveio/pi-better-harness/blob/main/docs/adr/0027-sandbox-tools-and-permissions.md).
|
|
4
4
|
|
|
5
5
|

|
|
6
6
|
|
|
@@ -164,7 +164,7 @@ Linux could separate removal from writing with Landlock (5.19+), but nothing
|
|
|
164
164
|
here can apply it: Node has no binding and `bwrap` does not expose it. Windows
|
|
165
165
|
could use NTFS `DELETE` rights with a restricted token or AppContainer, which
|
|
166
166
|
would need a native launcher. Both are tracked as follow-ups; see
|
|
167
|
-
[ADR 0008](
|
|
167
|
+
[ADR 0008](https://github.com/1aboveio/pi-better-harness/blob/main/docs/adr/0008-write-without-delete.md).
|
|
168
168
|
|
|
169
169
|
### Recovery snapshot (macOS)
|
|
170
170
|
|
|
@@ -309,7 +309,7 @@ schema identity before admitting local spawn/watch and explicit registry
|
|
|
309
309
|
operations. Background's column controls the executable, independently of
|
|
310
310
|
Main's commands switch. Missing or incompatible adapters fail closed when
|
|
311
311
|
Background confinement is enabled, even with Main Off. Remote stop receives no
|
|
312
|
-
local-adapter exemption under Main confinement. See [ADR 0017](
|
|
312
|
+
local-adapter exemption under Main confinement. See [ADR 0017](https://github.com/1aboveio/pi-better-harness/blob/main/docs/adr/0017-background-adapter-admission.md).
|
|
313
313
|
|
|
314
314
|
Overriding `write` and `edit` changes nothing you can see: the parameter
|
|
315
315
|
schemas, prompt guidance, call rendering, write previews, edit diffs, result
|
|
@@ -31,7 +31,8 @@ The API is `runtime-client/src/runtime/client.mjs`, exporting `ensureRuntime`.
|
|
|
31
31
|
- Explicit tool allowlists for child sessions, and `skills` for prompt exposure: omit it to keep user-catalog discovery, pass `[]` for no skills, or pass absolute `SKILL.md` paths for exactly those. See [skill exposure](docs/usage.md#skill-exposure).
|
|
32
32
|
- Durable logs, result retrieval, and [failure observations](docs/failure-observations.md) independent of lifecycle status. A live child handles its own tool errors; the parent is woken only for actionable incidents, and children can classify handled failures with `failure_disposition`.
|
|
33
33
|
- Live background-work navigator for active runs.
|
|
34
|
-
-
|
|
34
|
+
- Git writers start in separate Clones by default. **Git workspace** in `/subagents settings` also offers Worktree. Results carry the working directory or a recoverable copy, including incomplete work. [Workspace recovery](docs/usage.md#git-workspaces)
|
|
35
|
+
- Harness-owned run timing: every run gets independent factual alerts for a tool call left open (5 min) and for no progress (10 min), plus a 60-minute hard timeout. Choose a duration or **No limit** under **Run timeout** in `/subagents settings`. Soft deadlines remain opt-in. Configure per spawn with `deadline_minutes`, `grace_minutes`, `max_minutes`, `tool_wait_minutes`, `stuck_minutes`, globally in `config.json` / `PI_SUBAGENT_*_MINUTES`, or in `/subagents settings`. See [usage notes](docs/usage.md#run-timing-deadline-ceiling-tool-wait-stuck).
|
|
35
36
|
|
|
36
37
|
Every single or batch launch automatically joins one shared supervision watcher in the
|
|
37
38
|
foreground Pi process. The last active run's exit or stop tears it down; a later
|
|
@@ -41,6 +42,8 @@ alerts retain supervision until their handoff is handled, so lost work is not si
|
|
|
41
42
|
|
|
42
43
|
## Worker Ownership
|
|
43
44
|
|
|
45
|
+
Every subagent follows the same contract for preserving work and delivering results to its parent. It applies to read-only investigations as well as tasks that create or change files. [Subagent lifecycle, preservation and delivery](https://github.com/1aboveio/pi-better-harness/blob/main/packages/pi-better-subagents/docs/adr/0007-subagent-lifecycle.md)
|
|
46
|
+
|
|
44
47
|
Every child launch, including clean, batch and unsandboxed launches, loads a Pi
|
|
45
48
|
hook that keeps external CI/PR monitoring with its coordinator. Workers finish
|
|
46
49
|
their assigned implementation or diagnosis, run focused checks, push only when
|
|
@@ -93,19 +96,18 @@ Linux confinement requires a usable `bubblewrap` backend and Pi SDK 0.82.1 or ne
|
|
|
93
96
|
|
|
94
97
|
The user config sets `delegationMode` to `manual`, `adaptive` (default), or
|
|
95
98
|
`coordinator`. `/subagents settings` (or `/subagents`) opens a settings page
|
|
96
|
-
for delegation mode, the concurrent-subagent cap (default 6),
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
99
|
+
for delegation mode, the concurrent-subagent cap (default 6), and Git workspace
|
|
100
|
+
(Clone or Worktree). Run timeout supports a duration or **No limit**. The
|
|
101
|
+
tool-wait alert (default 5 minutes) and no-progress alert (default 10 minutes)
|
|
102
|
+
have separate intervals. Enter `0` to turn an alert off. Skill exposure cycles between Discover automatically and No skill
|
|
100
103
|
catalog. The Selected skills row opens the same searchable checkbox picker used
|
|
101
104
|
by `/agents`: it lists loaded skills by name and description, Space toggles one,
|
|
102
105
|
Enter applies, and typing filters without dropping checked items. Saved paths
|
|
103
106
|
missing from discovery stay visible as unavailable and survive apply. Zero
|
|
104
107
|
checked applies No skill catalog, not discovery. Manual Add skill path remains
|
|
105
|
-
available. The
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
exposure as defaults, and Reset to defaults clears session overrides, including
|
|
108
|
+
available. The Skill exposure row shows where the current skill setting comes from. The session choice controls the next launch before Ctrl+S, and
|
|
109
|
+
edits persist across reloads. Ctrl+S saves delegation, workspace, timing, and skill
|
|
110
|
+
settings as defaults, and Reset to defaults clears session overrides, including
|
|
109
111
|
the skill list. Agents opens the same catalog as `/agents`; a definition that inherits
|
|
110
112
|
skill exposure shows whether the live value comes from this session, saved
|
|
111
113
|
config, or discovery, and an invalid draft is marked invalid rather than shown
|
|
@@ -194,7 +196,7 @@ The projection exposes an opaque semantic `revision`, readable `reason`, attempt
|
|
|
194
196
|
identity, process status, termination evidence and retained evidence references.
|
|
195
197
|
Compare revisions for equality; unchanged observations keep the same revision.
|
|
196
198
|
Unavailable or unsupported coordinator reads report Waiting with an unverified
|
|
197
|
-
reason. See the [projection contract](
|
|
199
|
+
reason. See the [projection contract](https://github.com/1aboveio/pi-better-harness/blob/main/docs/adr/0022-assignment-progress-projection.md).
|
|
198
200
|
|
|
199
201
|
- Repository: https://github.com/1aboveio/pi-better-harness
|
|
200
202
|
- Detailed notes: https://github.com/1aboveio/pi-better-harness/blob/main/packages/pi-better-subagents/docs/usage.md
|
|
@@ -94,6 +94,8 @@ export function mergeJobOptions(shared, job) {
|
|
|
94
94
|
cwd: job.cwd ?? shared?.cwd,
|
|
95
95
|
// Same semantics as subagent_spawn: shared and per-job values must reach
|
|
96
96
|
// spawnSubagentRun so batch jobs can request disposable clone workspaces.
|
|
97
|
+
isolation: job.isolation ?? shared?.isolation,
|
|
98
|
+
recover_in_clone: job.recover_in_clone,
|
|
97
99
|
git_clone_workspace: job.git_clone_workspace ?? shared?.git_clone_workspace,
|
|
98
100
|
approve: job.approve ?? shared?.approve,
|
|
99
101
|
allow_nested: job.allow_nested ?? shared?.allow_nested,
|