oh-my-openagent 5.1.32 → 5.1.33
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/dist/cli/index.js +15 -15
- package/dist/cli-node/index.js +15 -15
- package/dist/features/background-agent/concurrency.d.ts +6 -0
- package/dist/features/background-agent/manager.d.ts +2 -0
- package/dist/features/background-agent/task-history.d.ts +1 -0
- package/dist/features/background-agent/types.d.ts +2 -0
- package/dist/index.js +161 -20
- package/dist/skills/browser/runtime/omowright/manifest.json +1 -1
- package/dist/skills/ulw-execute/SKILL.md +9 -6
- package/dist/skills/ulw-research/SKILL.md +4 -4
- package/dist/tui.js +14 -14
- package/package.json +14 -14
- package/packages/omo-codex/plugin/.codex-plugin/plugin.json +1 -1
- package/packages/omo-codex/plugin/components/bootstrap/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/bootstrap/package.json +1 -1
- package/packages/omo-codex/plugin/components/comment-checker/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/comment-checker/package.json +1 -1
- package/packages/omo-codex/plugin/components/git-bash/hooks/hooks.json +2 -2
- package/packages/omo-codex/plugin/components/git-bash/package.json +1 -1
- package/packages/omo-codex/plugin/components/lazycodex-executor-verify/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/lazycodex-executor-verify/package.json +1 -1
- package/packages/omo-codex/plugin/components/lsp/dist/.omo-runtime-manifest.json +2 -2
- package/packages/omo-codex/plugin/components/lsp/hooks/hooks.json +2 -2
- package/packages/omo-codex/plugin/components/lsp/package.json +1 -1
- package/packages/omo-codex/plugin/components/rules/hooks/hooks.json +4 -4
- package/packages/omo-codex/plugin/components/rules/package.json +1 -1
- package/packages/omo-codex/plugin/components/teammode/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/teammode/package.json +1 -1
- package/packages/omo-codex/plugin/components/telemetry/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/telemetry/package.json +1 -1
- package/packages/omo-codex/plugin/components/ultrawork/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/ultrawork/package.json +1 -1
- package/packages/omo-codex/plugin/components/ulw-execute-continuation/hooks/hooks.json +1 -1
- package/packages/omo-codex/plugin/components/ulw-execute-continuation/package.json +1 -1
- package/packages/omo-codex/plugin/components/ulw-loop/hooks/hooks.json +5 -5
- package/packages/omo-codex/plugin/components/ulw-loop/package.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-compact-resetting-git-bash-mcp-reminder.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-compact-resetting-lsp-diagnostics-cache.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-compact-resetting-project-rule-cache.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-tool-use-checking-comments.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-tool-use-checking-lsp-diagnostics.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-tool-use-checking-thread-title-hygiene.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-tool-use-matching-project-rules.json +1 -1
- package/packages/omo-codex/plugin/hooks/post-tool-use-recording-spawn-admission.json +1 -1
- package/packages/omo-codex/plugin/hooks/pre-tool-use-enforcing-unlimited-goal-budget.json +1 -1
- package/packages/omo-codex/plugin/hooks/pre-tool-use-guarding-ulw-loop-spawns.json +1 -1
- package/packages/omo-codex/plugin/hooks/pre-tool-use-recommending-git-bash-mcp.json +1 -1
- package/packages/omo-codex/plugin/hooks/session-start-checking-auto-update.json +1 -1
- package/packages/omo-codex/plugin/hooks/session-start-checking-bootstrap-provisioning.json +1 -1
- package/packages/omo-codex/plugin/hooks/session-start-loading-project-rules.json +1 -1
- package/packages/omo-codex/plugin/hooks/session-start-recording-session-telemetry.json +1 -1
- package/packages/omo-codex/plugin/hooks/stop-checking-ulw-execute-continuation.json +1 -1
- package/packages/omo-codex/plugin/hooks/stop-checking-ulw-loop-resume.json +1 -1
- package/packages/omo-codex/plugin/hooks/subagent-stop-verifying-lazycodex-executor-evidence.json +1 -1
- package/packages/omo-codex/plugin/hooks/user-prompt-submit-checking-ultrawork-trigger.json +1 -1
- package/packages/omo-codex/plugin/hooks/user-prompt-submit-checking-ulw-loop-steering.json +1 -1
- package/packages/omo-codex/plugin/hooks/user-prompt-submit-loading-project-rules.json +1 -1
- package/packages/omo-codex/plugin/package-lock.json +12 -12
- package/packages/omo-codex/plugin/package.json +1 -1
- package/packages/omo-codex/plugin/skills/browser/runtime/omowright/manifest.json +1 -1
- package/packages/omo-codex/plugin/skills/ulw-execute/SKILL.md +9 -6
- package/packages/omo-codex/plugin/skills/ulw-research/SKILL.md +4 -4
- package/packages/omo-codex/scripts/install-dist/install-local.mjs +2 -2
- package/packages/shared-skills/skills/browser/runtime/omowright/manifest.json +1 -1
- package/packages/shared-skills/skills/ulw-execute/SKILL.md +9 -6
- package/packages/shared-skills/skills/ulw-research/SKILL.md +4 -4
package/dist/cli/index.js
CHANGED
|
@@ -64,7 +64,7 @@ var package_default;
|
|
|
64
64
|
var init_package = __esm(() => {
|
|
65
65
|
package_default = {
|
|
66
66
|
name: "oh-my-opencode",
|
|
67
|
-
version: "5.1.
|
|
67
|
+
version: "5.1.33",
|
|
68
68
|
description: "The Best AI Agent Harness - Batteries-Included OpenCode Plugin with Multi-Model Orchestration, Parallel Background Agents, and Crafted LSP/AST Tools",
|
|
69
69
|
main: "./dist/index.js",
|
|
70
70
|
types: "dist/index.d.ts",
|
|
@@ -241,7 +241,7 @@ var init_package = __esm(() => {
|
|
|
241
241
|
},
|
|
242
242
|
devDependencies: {
|
|
243
243
|
"@clack/prompts": "^1.8.1",
|
|
244
|
-
"@code-yeongyu/senpi": "2026.10.
|
|
244
|
+
"@code-yeongyu/senpi": "2026.10.13",
|
|
245
245
|
"@modelcontextprotocol/sdk": "^1.30.0",
|
|
246
246
|
"@oh-my-opencode/agents-md-core": "workspace:*",
|
|
247
247
|
"@oh-my-opencode/ast-grep-mcp": "workspace:*",
|
|
@@ -300,18 +300,18 @@ var init_package = __esm(() => {
|
|
|
300
300
|
typescript: "^7.0.2"
|
|
301
301
|
},
|
|
302
302
|
optionalDependencies: {
|
|
303
|
-
"oh-my-opencode-darwin-arm64": "5.1.
|
|
304
|
-
"oh-my-opencode-darwin-x64": "5.1.
|
|
305
|
-
"oh-my-opencode-darwin-x64-baseline": "5.1.
|
|
306
|
-
"oh-my-opencode-linux-arm64": "5.1.
|
|
307
|
-
"oh-my-opencode-linux-arm64-musl": "5.1.
|
|
308
|
-
"oh-my-opencode-linux-x64": "5.1.
|
|
309
|
-
"oh-my-opencode-linux-x64-baseline": "5.1.
|
|
310
|
-
"oh-my-opencode-linux-x64-musl": "5.1.
|
|
311
|
-
"oh-my-opencode-linux-x64-musl-baseline": "5.1.
|
|
312
|
-
"oh-my-opencode-windows-arm64": "5.1.
|
|
313
|
-
"oh-my-opencode-windows-x64": "5.1.
|
|
314
|
-
"oh-my-opencode-windows-x64-baseline": "5.1.
|
|
303
|
+
"oh-my-opencode-darwin-arm64": "5.1.33",
|
|
304
|
+
"oh-my-opencode-darwin-x64": "5.1.33",
|
|
305
|
+
"oh-my-opencode-darwin-x64-baseline": "5.1.33",
|
|
306
|
+
"oh-my-opencode-linux-arm64": "5.1.33",
|
|
307
|
+
"oh-my-opencode-linux-arm64-musl": "5.1.33",
|
|
308
|
+
"oh-my-opencode-linux-x64": "5.1.33",
|
|
309
|
+
"oh-my-opencode-linux-x64-baseline": "5.1.33",
|
|
310
|
+
"oh-my-opencode-linux-x64-musl": "5.1.33",
|
|
311
|
+
"oh-my-opencode-linux-x64-musl-baseline": "5.1.33",
|
|
312
|
+
"oh-my-opencode-windows-arm64": "5.1.33",
|
|
313
|
+
"oh-my-opencode-windows-x64": "5.1.33",
|
|
314
|
+
"oh-my-opencode-windows-x64-baseline": "5.1.33"
|
|
315
315
|
},
|
|
316
316
|
overrides: {
|
|
317
317
|
hono: "^4.13.8",
|
|
@@ -89902,7 +89902,7 @@ var package_default2;
|
|
|
89902
89902
|
var init_package2 = __esm(() => {
|
|
89903
89903
|
package_default2 = {
|
|
89904
89904
|
name: "@oh-my-opencode/omo-codex",
|
|
89905
|
-
version: "5.1.
|
|
89905
|
+
version: "5.1.33",
|
|
89906
89906
|
type: "module",
|
|
89907
89907
|
private: true,
|
|
89908
89908
|
description: "Codex harness adapter for oh-my-openagent. Vendored Codex plugin namespace (omo) + TypeScript installer + telemetry.",
|
package/dist/cli-node/index.js
CHANGED
|
@@ -65,7 +65,7 @@ var package_default;
|
|
|
65
65
|
var init_package = __esm(() => {
|
|
66
66
|
package_default = {
|
|
67
67
|
name: "oh-my-opencode",
|
|
68
|
-
version: "5.1.
|
|
68
|
+
version: "5.1.33",
|
|
69
69
|
description: "The Best AI Agent Harness - Batteries-Included OpenCode Plugin with Multi-Model Orchestration, Parallel Background Agents, and Crafted LSP/AST Tools",
|
|
70
70
|
main: "./dist/index.js",
|
|
71
71
|
types: "dist/index.d.ts",
|
|
@@ -242,7 +242,7 @@ var init_package = __esm(() => {
|
|
|
242
242
|
},
|
|
243
243
|
devDependencies: {
|
|
244
244
|
"@clack/prompts": "^1.8.1",
|
|
245
|
-
"@code-yeongyu/senpi": "2026.10.
|
|
245
|
+
"@code-yeongyu/senpi": "2026.10.13",
|
|
246
246
|
"@modelcontextprotocol/sdk": "^1.30.0",
|
|
247
247
|
"@oh-my-opencode/agents-md-core": "workspace:*",
|
|
248
248
|
"@oh-my-opencode/ast-grep-mcp": "workspace:*",
|
|
@@ -301,18 +301,18 @@ var init_package = __esm(() => {
|
|
|
301
301
|
typescript: "^7.0.2"
|
|
302
302
|
},
|
|
303
303
|
optionalDependencies: {
|
|
304
|
-
"oh-my-opencode-darwin-arm64": "5.1.
|
|
305
|
-
"oh-my-opencode-darwin-x64": "5.1.
|
|
306
|
-
"oh-my-opencode-darwin-x64-baseline": "5.1.
|
|
307
|
-
"oh-my-opencode-linux-arm64": "5.1.
|
|
308
|
-
"oh-my-opencode-linux-arm64-musl": "5.1.
|
|
309
|
-
"oh-my-opencode-linux-x64": "5.1.
|
|
310
|
-
"oh-my-opencode-linux-x64-baseline": "5.1.
|
|
311
|
-
"oh-my-opencode-linux-x64-musl": "5.1.
|
|
312
|
-
"oh-my-opencode-linux-x64-musl-baseline": "5.1.
|
|
313
|
-
"oh-my-opencode-windows-arm64": "5.1.
|
|
314
|
-
"oh-my-opencode-windows-x64": "5.1.
|
|
315
|
-
"oh-my-opencode-windows-x64-baseline": "5.1.
|
|
304
|
+
"oh-my-opencode-darwin-arm64": "5.1.33",
|
|
305
|
+
"oh-my-opencode-darwin-x64": "5.1.33",
|
|
306
|
+
"oh-my-opencode-darwin-x64-baseline": "5.1.33",
|
|
307
|
+
"oh-my-opencode-linux-arm64": "5.1.33",
|
|
308
|
+
"oh-my-opencode-linux-arm64-musl": "5.1.33",
|
|
309
|
+
"oh-my-opencode-linux-x64": "5.1.33",
|
|
310
|
+
"oh-my-opencode-linux-x64-baseline": "5.1.33",
|
|
311
|
+
"oh-my-opencode-linux-x64-musl": "5.1.33",
|
|
312
|
+
"oh-my-opencode-linux-x64-musl-baseline": "5.1.33",
|
|
313
|
+
"oh-my-opencode-windows-arm64": "5.1.33",
|
|
314
|
+
"oh-my-opencode-windows-x64": "5.1.33",
|
|
315
|
+
"oh-my-opencode-windows-x64-baseline": "5.1.33"
|
|
316
316
|
},
|
|
317
317
|
overrides: {
|
|
318
318
|
hono: "^4.13.8",
|
|
@@ -89981,7 +89981,7 @@ var package_default2;
|
|
|
89981
89981
|
var init_package2 = __esm(() => {
|
|
89982
89982
|
package_default2 = {
|
|
89983
89983
|
name: "@oh-my-opencode/omo-codex",
|
|
89984
|
-
version: "5.1.
|
|
89984
|
+
version: "5.1.33",
|
|
89985
89985
|
type: "module",
|
|
89986
89986
|
private: true,
|
|
89987
89987
|
description: "Codex harness adapter for oh-my-openagent. Vendored Codex plugin namespace (omo) + TypeScript installer + telemetry.",
|
|
@@ -6,6 +6,12 @@ export declare class ConcurrencyManager {
|
|
|
6
6
|
constructor(config?: BackgroundTaskConfig);
|
|
7
7
|
getConcurrencyLimit(model: string): number;
|
|
8
8
|
getConcurrencyKey(model: string): string;
|
|
9
|
+
/**
|
|
10
|
+
* Non-blocking acquire: takes a slot immediately when one is free.
|
|
11
|
+
* Returns true when a slot was taken, false when the group is full (in
|
|
12
|
+
* which case nothing is held and the caller decides whether to queue).
|
|
13
|
+
*/
|
|
14
|
+
tryAcquire(model: string): boolean;
|
|
9
15
|
acquire(model: string, taskId?: string): Promise<void>;
|
|
10
16
|
release(model: string): void;
|
|
11
17
|
/**
|
|
@@ -62,6 +62,7 @@ export declare class BackgroundManager {
|
|
|
62
62
|
private processingKeys;
|
|
63
63
|
private completionTimers;
|
|
64
64
|
private readonly syncAttachedSessions;
|
|
65
|
+
private readonly resumesAwaitingAdmission;
|
|
65
66
|
private completedTaskArchive;
|
|
66
67
|
private completedTaskSummaries;
|
|
67
68
|
private idleDeferralTimers;
|
|
@@ -165,6 +166,7 @@ export declare class BackgroundManager {
|
|
|
165
166
|
concurrencyKey?: string;
|
|
166
167
|
}): Promise<BackgroundTask>;
|
|
167
168
|
resume(input: ResumeInput): Promise<BackgroundTask>;
|
|
169
|
+
private startResumedTask;
|
|
168
170
|
private checkSessionTodos;
|
|
169
171
|
private markSessionOutputObserved;
|
|
170
172
|
private clearDispatchedParentWake;
|
|
@@ -14,6 +14,7 @@ export declare class TaskHistory {
|
|
|
14
14
|
record(parentSessionID: string | undefined, entry: TaskHistoryEntry): void;
|
|
15
15
|
getByParentSession(parentSessionID: string): TaskHistoryEntry[];
|
|
16
16
|
clearSession(parentSessionID: string): void;
|
|
17
|
+
restoreEntry(parentSessionID: string, taskID: string, entry: TaskHistoryEntry | undefined): void;
|
|
17
18
|
clearAll(): void;
|
|
18
19
|
formatForCompaction(parentSessionID: string): string | null;
|
|
19
20
|
}
|
|
@@ -38,10 +38,12 @@ export interface BackgroundTask {
|
|
|
38
38
|
teamRunId?: string;
|
|
39
39
|
description: string;
|
|
40
40
|
prompt: string;
|
|
41
|
+
originalPrompt?: string;
|
|
41
42
|
agent: string;
|
|
42
43
|
spawnDepth?: number;
|
|
43
44
|
status: BackgroundTaskStatus;
|
|
44
45
|
queuedAt?: Date;
|
|
46
|
+
pendingResume?: object;
|
|
45
47
|
startedAt?: Date;
|
|
46
48
|
completedAt?: Date;
|
|
47
49
|
result?: string;
|
package/dist/index.js
CHANGED
|
@@ -99137,7 +99137,7 @@ function getCachedVersion(options = {}) {
|
|
|
99137
99137
|
// package.json
|
|
99138
99138
|
var package_default = {
|
|
99139
99139
|
name: "oh-my-opencode",
|
|
99140
|
-
version: "5.1.
|
|
99140
|
+
version: "5.1.33",
|
|
99141
99141
|
description: "The Best AI Agent Harness - Batteries-Included OpenCode Plugin with Multi-Model Orchestration, Parallel Background Agents, and Crafted LSP/AST Tools",
|
|
99142
99142
|
main: "./dist/index.js",
|
|
99143
99143
|
types: "dist/index.d.ts",
|
|
@@ -99314,7 +99314,7 @@ var package_default = {
|
|
|
99314
99314
|
},
|
|
99315
99315
|
devDependencies: {
|
|
99316
99316
|
"@clack/prompts": "^1.8.1",
|
|
99317
|
-
"@code-yeongyu/senpi": "2026.10.
|
|
99317
|
+
"@code-yeongyu/senpi": "2026.10.13",
|
|
99318
99318
|
"@modelcontextprotocol/sdk": "^1.30.0",
|
|
99319
99319
|
"@oh-my-opencode/agents-md-core": "workspace:*",
|
|
99320
99320
|
"@oh-my-opencode/ast-grep-mcp": "workspace:*",
|
|
@@ -99373,18 +99373,18 @@ var package_default = {
|
|
|
99373
99373
|
typescript: "^7.0.2"
|
|
99374
99374
|
},
|
|
99375
99375
|
optionalDependencies: {
|
|
99376
|
-
"oh-my-opencode-darwin-arm64": "5.1.
|
|
99377
|
-
"oh-my-opencode-darwin-x64": "5.1.
|
|
99378
|
-
"oh-my-opencode-darwin-x64-baseline": "5.1.
|
|
99379
|
-
"oh-my-opencode-linux-arm64": "5.1.
|
|
99380
|
-
"oh-my-opencode-linux-arm64-musl": "5.1.
|
|
99381
|
-
"oh-my-opencode-linux-x64": "5.1.
|
|
99382
|
-
"oh-my-opencode-linux-x64-baseline": "5.1.
|
|
99383
|
-
"oh-my-opencode-linux-x64-musl": "5.1.
|
|
99384
|
-
"oh-my-opencode-linux-x64-musl-baseline": "5.1.
|
|
99385
|
-
"oh-my-opencode-windows-arm64": "5.1.
|
|
99386
|
-
"oh-my-opencode-windows-x64": "5.1.
|
|
99387
|
-
"oh-my-opencode-windows-x64-baseline": "5.1.
|
|
99376
|
+
"oh-my-opencode-darwin-arm64": "5.1.33",
|
|
99377
|
+
"oh-my-opencode-darwin-x64": "5.1.33",
|
|
99378
|
+
"oh-my-opencode-darwin-x64-baseline": "5.1.33",
|
|
99379
|
+
"oh-my-opencode-linux-arm64": "5.1.33",
|
|
99380
|
+
"oh-my-opencode-linux-arm64-musl": "5.1.33",
|
|
99381
|
+
"oh-my-opencode-linux-x64": "5.1.33",
|
|
99382
|
+
"oh-my-opencode-linux-x64-baseline": "5.1.33",
|
|
99383
|
+
"oh-my-opencode-linux-x64-musl": "5.1.33",
|
|
99384
|
+
"oh-my-opencode-linux-x64-musl-baseline": "5.1.33",
|
|
99385
|
+
"oh-my-opencode-windows-arm64": "5.1.33",
|
|
99386
|
+
"oh-my-opencode-windows-x64": "5.1.33",
|
|
99387
|
+
"oh-my-opencode-windows-x64-baseline": "5.1.33"
|
|
99388
99388
|
},
|
|
99389
99389
|
overrides: {
|
|
99390
99390
|
hono: "^4.13.8",
|
|
@@ -142452,17 +142452,24 @@ class ConcurrencyManager {
|
|
|
142452
142452
|
}
|
|
142453
142453
|
return model;
|
|
142454
142454
|
}
|
|
142455
|
-
|
|
142455
|
+
tryAcquire(model) {
|
|
142456
142456
|
const key = this.getConcurrencyKey(model);
|
|
142457
142457
|
const limit = this.getConcurrencyLimit(model);
|
|
142458
142458
|
if (limit === Infinity) {
|
|
142459
|
-
return;
|
|
142459
|
+
return true;
|
|
142460
142460
|
}
|
|
142461
142461
|
const current = this.counts.get(key) ?? 0;
|
|
142462
142462
|
if (current < limit) {
|
|
142463
142463
|
this.counts.set(key, current + 1);
|
|
142464
|
+
return true;
|
|
142465
|
+
}
|
|
142466
|
+
return false;
|
|
142467
|
+
}
|
|
142468
|
+
async acquire(model, taskId) {
|
|
142469
|
+
if (this.tryAcquire(model)) {
|
|
142464
142470
|
return;
|
|
142465
142471
|
}
|
|
142472
|
+
const key = this.getConcurrencyKey(model);
|
|
142466
142473
|
return new Promise((resolve, reject) => {
|
|
142467
142474
|
const queue = this.queues.get(key) ?? [];
|
|
142468
142475
|
const entry = {
|
|
@@ -142765,9 +142772,17 @@ async function tryFallbackRetry(args) {
|
|
|
142765
142772
|
const rawKey = task.model ? `${task.model.providerID}/${task.model.modelID}` : task.agent;
|
|
142766
142773
|
const key = concurrencyManager.getConcurrencyKey(rawKey);
|
|
142767
142774
|
const queue = queuesByKey.get(key) ?? [];
|
|
142775
|
+
const hasContinuation = !!task.originalPrompt && task.originalPrompt !== task.prompt;
|
|
142776
|
+
const retryPrompt = hasContinuation ? `${task.originalPrompt}
|
|
142777
|
+
|
|
142778
|
+
[Latest continuation instruction]
|
|
142779
|
+
${task.prompt}` : task.prompt;
|
|
142780
|
+
const retryNote = hasContinuation ? `
|
|
142781
|
+
|
|
142782
|
+
[Note: this is a retry in a new session after the previous session failed; the earlier session's context is not available. Work from the original task and latest continuation instruction above.]` : "";
|
|
142768
142783
|
const retryInput = {
|
|
142769
142784
|
description: task.description,
|
|
142770
|
-
prompt:
|
|
142785
|
+
prompt: `${retryPrompt}${retryNote}`,
|
|
142771
142786
|
agent: task.agent,
|
|
142772
142787
|
parentSessionId: task.parentSessionId,
|
|
142773
142788
|
parentMessageId: task.parentMessageId,
|
|
@@ -144701,6 +144716,25 @@ class TaskHistory {
|
|
|
144701
144716
|
clearSession(parentSessionID) {
|
|
144702
144717
|
this.entries.delete(parentSessionID);
|
|
144703
144718
|
}
|
|
144719
|
+
restoreEntry(parentSessionID, taskID, entry) {
|
|
144720
|
+
const list = this.entries.get(parentSessionID);
|
|
144721
|
+
if (!list) {
|
|
144722
|
+
if (entry)
|
|
144723
|
+
this.record(parentSessionID, entry);
|
|
144724
|
+
return;
|
|
144725
|
+
}
|
|
144726
|
+
const index = list.findIndex((current) => current.id === taskID);
|
|
144727
|
+
if (index !== -1) {
|
|
144728
|
+
if (entry)
|
|
144729
|
+
list[index] = { ...entry };
|
|
144730
|
+
else
|
|
144731
|
+
list.splice(index, 1);
|
|
144732
|
+
} else if (entry) {
|
|
144733
|
+
this.record(parentSessionID, entry);
|
|
144734
|
+
}
|
|
144735
|
+
if (list.length === 0)
|
|
144736
|
+
this.entries.delete(parentSessionID);
|
|
144737
|
+
}
|
|
144704
144738
|
clearAll() {
|
|
144705
144739
|
this.entries.clear();
|
|
144706
144740
|
}
|
|
@@ -145300,6 +145334,7 @@ class BackgroundManager {
|
|
|
145300
145334
|
processingKeys = new Set;
|
|
145301
145335
|
completionTimers = new Map;
|
|
145302
145336
|
syncAttachedSessions = new Set;
|
|
145337
|
+
resumesAwaitingAdmission = new Set;
|
|
145303
145338
|
completedTaskArchive = new Map;
|
|
145304
145339
|
completedTaskSummaries = new Map;
|
|
145305
145340
|
idleDeferralTimers = new Map;
|
|
@@ -145506,8 +145541,12 @@ class BackgroundManager {
|
|
|
145506
145541
|
taskIDs.add(task.id);
|
|
145507
145542
|
this.tasksByParentSession.set(parentSessionID, taskIDs);
|
|
145508
145543
|
}
|
|
145509
|
-
captureResumeTaskSnapshot(task) {
|
|
145544
|
+
captureResumeTaskSnapshot(task, resumeParentSessionID) {
|
|
145510
145545
|
return {
|
|
145546
|
+
prompt: task.prompt,
|
|
145547
|
+
originalPrompt: task.originalPrompt,
|
|
145548
|
+
queuedAt: task.queuedAt,
|
|
145549
|
+
historyEntry: this.taskHistory.getByParentSession(resumeParentSessionID).find((entry) => entry.id === task.id),
|
|
145511
145550
|
status: task.status,
|
|
145512
145551
|
completedAt: task.completedAt,
|
|
145513
145552
|
error: task.error,
|
|
@@ -145523,16 +145562,23 @@ class BackgroundManager {
|
|
|
145523
145562
|
};
|
|
145524
145563
|
}
|
|
145525
145564
|
restoreTaskAfterSkippedResume(task, snapshot, skippedStatus) {
|
|
145565
|
+
if (this.shutdownTriggered)
|
|
145566
|
+
return;
|
|
145526
145567
|
log2("[background-agent] Restoring task after skipped resume prompt:", {
|
|
145527
145568
|
taskId: task.id,
|
|
145528
145569
|
sessionID: task.sessionId,
|
|
145529
145570
|
skippedStatus
|
|
145530
145571
|
});
|
|
145572
|
+
const resumeParentSessionID = task.parentSessionId;
|
|
145531
145573
|
this.cleanupPendingByParent(task);
|
|
145574
|
+
this.taskHistory.restoreEntry(resumeParentSessionID, task.id, snapshot.historyEntry);
|
|
145532
145575
|
if (task.concurrencyKey) {
|
|
145533
145576
|
this.concurrencyManager.release(task.concurrencyKey);
|
|
145534
145577
|
}
|
|
145535
145578
|
task.status = snapshot.status;
|
|
145579
|
+
task.prompt = snapshot.prompt;
|
|
145580
|
+
task.originalPrompt = snapshot.originalPrompt;
|
|
145581
|
+
task.queuedAt = snapshot.queuedAt;
|
|
145536
145582
|
task.completedAt = snapshot.completedAt;
|
|
145537
145583
|
task.error = snapshot.error;
|
|
145538
145584
|
task.startedAt = snapshot.startedAt;
|
|
@@ -145549,6 +145595,9 @@ class BackgroundManager {
|
|
|
145549
145595
|
this.scheduleTaskRemoval(task.id);
|
|
145550
145596
|
}
|
|
145551
145597
|
this.updateBackgroundTaskMarker(task.parentSessionId);
|
|
145598
|
+
if (resumeParentSessionID !== task.parentSessionId) {
|
|
145599
|
+
this.updateBackgroundTaskMarker(resumeParentSessionID);
|
|
145600
|
+
}
|
|
145552
145601
|
}
|
|
145553
145602
|
removeTaskFromParentIndex(taskID, parentSessionID) {
|
|
145554
145603
|
if (!parentSessionID) {
|
|
@@ -146145,14 +146194,74 @@ The fallback retry session is now created and can be inspected directly.
|
|
|
146145
146194
|
if (existingTask.status === "running") {
|
|
146146
146195
|
throw new Error(`Task ${existingTask.id} is currently running and cannot accept a continuation prompt. ` + "Wait for it to complete before resuming it with task_id.");
|
|
146147
146196
|
}
|
|
146148
|
-
|
|
146197
|
+
if (existingTask.status === "pending" && existingTask.pendingResume) {
|
|
146198
|
+
throw new Error(`Task ${existingTask.id} already has a continuation queued for admission and cannot accept another one. ` + "Wait for it to start and complete before resuming it with task_id.");
|
|
146199
|
+
}
|
|
146200
|
+
if (this.resumesAwaitingAdmission.has(existingTask.id)) {
|
|
146201
|
+
throw new Error(`Task ${existingTask.id} is already being resumed and cannot accept another continuation. ` + "Wait for it to complete before resuming it with task_id.");
|
|
146202
|
+
}
|
|
146203
|
+
const resumeSnapshot = this.captureResumeTaskSnapshot(existingTask, input.parentSessionId);
|
|
146149
146204
|
const completionTimer = this.completionTimers.get(existingTask.id);
|
|
146150
146205
|
if (completionTimer) {
|
|
146151
146206
|
clearTimeout(completionTimer);
|
|
146152
146207
|
this.completionTimers.delete(existingTask.id);
|
|
146153
146208
|
}
|
|
146154
146209
|
const concurrencyKey = this.concurrencyManager.getConcurrencyKey(existingTask.concurrencyGroup ?? existingTask.agent);
|
|
146155
|
-
|
|
146210
|
+
if (this.concurrencyManager.tryAcquire(concurrencyKey)) {
|
|
146211
|
+
this.resumesAwaitingAdmission.add(existingTask.id);
|
|
146212
|
+
try {
|
|
146213
|
+
await Promise.resolve();
|
|
146214
|
+
return await this.startResumedTask(existingTask, input, resumeSnapshot, concurrencyKey);
|
|
146215
|
+
} finally {
|
|
146216
|
+
this.resumesAwaitingAdmission.delete(existingTask.id);
|
|
146217
|
+
}
|
|
146218
|
+
}
|
|
146219
|
+
const admission = this.concurrencyManager.acquire(concurrencyKey, existingTask.id);
|
|
146220
|
+
const resumeToken = {};
|
|
146221
|
+
existingTask.pendingResume = resumeToken;
|
|
146222
|
+
existingTask.status = "pending";
|
|
146223
|
+
existingTask.queuedAt = new Date;
|
|
146224
|
+
existingTask.completedAt = undefined;
|
|
146225
|
+
existingTask.error = undefined;
|
|
146226
|
+
this.updateTaskParent(existingTask, input.parentSessionId);
|
|
146227
|
+
existingTask.parentMessageId = input.parentMessageId;
|
|
146228
|
+
existingTask.parentModel = input.parentModel;
|
|
146229
|
+
existingTask.parentAgent = input.parentAgent;
|
|
146230
|
+
if (input.parentTools)
|
|
146231
|
+
existingTask.parentTools = input.parentTools;
|
|
146232
|
+
if (input.parentSessionId) {
|
|
146233
|
+
const pending = this.pendingByParent.get(input.parentSessionId) ?? new Set;
|
|
146234
|
+
pending.add(existingTask.id);
|
|
146235
|
+
this.pendingByParent.set(input.parentSessionId, pending);
|
|
146236
|
+
}
|
|
146237
|
+
this.taskHistory.record(input.parentSessionId, { id: existingTask.id, sessionID: existingTask.sessionId, agent: existingTask.agent, description: existingTask.description, status: "pending", category: existingTask.category });
|
|
146238
|
+
getTaskToastManager()?.addTask({ id: existingTask.id, description: existingTask.description, agent: existingTask.agent, isBackground: true, status: "queued" });
|
|
146239
|
+
this.updateBackgroundTaskMarker(existingTask.parentSessionId);
|
|
146240
|
+
admission.then(async () => {
|
|
146241
|
+
if (this.shutdownTriggered || existingTask.status !== "pending" || existingTask.pendingResume !== resumeToken) {
|
|
146242
|
+
this.concurrencyManager.release(concurrencyKey);
|
|
146243
|
+
return;
|
|
146244
|
+
}
|
|
146245
|
+
await this.startResumedTask(existingTask, input, resumeSnapshot, concurrencyKey);
|
|
146246
|
+
}).catch((error) => {
|
|
146247
|
+
this.logger("[background-agent] Queued resume was not admitted:", { taskId: existingTask.id, error: error instanceof Error ? error.message : String(error) });
|
|
146248
|
+
if (this.shutdownTriggered || existingTask.status !== "pending" || existingTask.pendingResume !== resumeToken)
|
|
146249
|
+
return;
|
|
146250
|
+
existingTask.pendingResume = undefined;
|
|
146251
|
+
this.restoreTaskAfterSkippedResume(existingTask, resumeSnapshot, "unavailable");
|
|
146252
|
+
});
|
|
146253
|
+
return existingTask;
|
|
146254
|
+
}
|
|
146255
|
+
async startResumedTask(existingTask, input, resumeSnapshot, concurrencyKey) {
|
|
146256
|
+
if (this.shutdownTriggered) {
|
|
146257
|
+
this.concurrencyManager.release(concurrencyKey);
|
|
146258
|
+
return existingTask;
|
|
146259
|
+
}
|
|
146260
|
+
if (!existingTask.sessionId)
|
|
146261
|
+
throw new Error(`Task has no sessionID: ${existingTask.id}`);
|
|
146262
|
+
existingTask.pendingResume = undefined;
|
|
146263
|
+
existingTask.originalPrompt ??= existingTask.prompt;
|
|
146264
|
+
existingTask.prompt = input.prompt;
|
|
146156
146265
|
existingTask.concurrencyKey = concurrencyKey;
|
|
146157
146266
|
existingTask.concurrencyGroup = concurrencyKey;
|
|
146158
146267
|
existingTask.status = "running";
|
|
@@ -146166,6 +146275,15 @@ The fallback retry session is now created and can be inspected directly.
|
|
|
146166
146275
|
existingTask.parentTools = input.parentTools;
|
|
146167
146276
|
}
|
|
146168
146277
|
existingTask.startedAt = new Date;
|
|
146278
|
+
this.taskHistory.record(input.parentSessionId, {
|
|
146279
|
+
id: existingTask.id,
|
|
146280
|
+
sessionID: existingTask.sessionId,
|
|
146281
|
+
agent: existingTask.agent,
|
|
146282
|
+
description: existingTask.description,
|
|
146283
|
+
status: "running",
|
|
146284
|
+
category: existingTask.category,
|
|
146285
|
+
startedAt: existingTask.startedAt
|
|
146286
|
+
});
|
|
146169
146287
|
existingTask.progress = {
|
|
146170
146288
|
toolCalls: existingTask.progress?.toolCalls ?? 0,
|
|
146171
146289
|
toolCallWindow: existingTask.progress?.toolCallWindow,
|
|
@@ -146276,6 +146394,16 @@ The fallback retry session is now created and can be inspected directly.
|
|
|
146276
146394
|
const errorMessage = errorInfo.message ?? (error instanceof Error ? error.message : String(error));
|
|
146277
146395
|
existingTask.error = errorMessage;
|
|
146278
146396
|
existingTask.completedAt = new Date;
|
|
146397
|
+
this.taskHistory.record(existingTask.parentSessionId, {
|
|
146398
|
+
id: existingTask.id,
|
|
146399
|
+
sessionID: existingTask.sessionId,
|
|
146400
|
+
agent: existingTask.agent,
|
|
146401
|
+
description: existingTask.description,
|
|
146402
|
+
status: "interrupt",
|
|
146403
|
+
category: existingTask.category,
|
|
146404
|
+
startedAt: existingTask.startedAt,
|
|
146405
|
+
completedAt: existingTask.completedAt
|
|
146406
|
+
});
|
|
146279
146407
|
if (existingTask.rootSessionId) {
|
|
146280
146408
|
this.unregisterRootDescendant(existingTask.rootSessionId);
|
|
146281
146409
|
}
|
|
@@ -147596,7 +147724,17 @@ The task was re-queued on a fallback model after a retryable failure.
|
|
|
147596
147724
|
this.stopPolling();
|
|
147597
147725
|
const trackedSessionIDs = new Set;
|
|
147598
147726
|
const abortRequests = [];
|
|
147727
|
+
const queuedResumeParents = new Set;
|
|
147599
147728
|
for (const task of this.tasks.values()) {
|
|
147729
|
+
if (task.pendingResume) {
|
|
147730
|
+
queuedResumeParents.add(task.parentSessionId);
|
|
147731
|
+
task.pendingResume = undefined;
|
|
147732
|
+
task.status = "cancelled";
|
|
147733
|
+
task.completedAt = new Date;
|
|
147734
|
+
this.concurrencyManager.cancelWaiter(task.concurrencyGroup ?? task.agent, task.id);
|
|
147735
|
+
this.cleanupPendingByParent(task);
|
|
147736
|
+
removeTaskToastTracking(task.id);
|
|
147737
|
+
}
|
|
147600
147738
|
if (task.sessionId) {
|
|
147601
147739
|
trackedSessionIDs.add(task.sessionId);
|
|
147602
147740
|
}
|
|
@@ -147662,6 +147800,9 @@ The task was re-queued on a fallback model after a retryable failure.
|
|
|
147662
147800
|
this.queuesByKey.clear();
|
|
147663
147801
|
this.processingKeys.clear();
|
|
147664
147802
|
this.taskHistory.clearAll();
|
|
147803
|
+
for (const parentSessionID of queuedResumeParents) {
|
|
147804
|
+
this.updateBackgroundTaskMarker(parentSessionID);
|
|
147805
|
+
}
|
|
147665
147806
|
this.completedTaskSummaries.clear();
|
|
147666
147807
|
this.unregisterProcessCleanup();
|
|
147667
147808
|
log2("[background-agent] Shutdown complete");
|
|
@@ -34,7 +34,7 @@ Plan and reviewer agents may run for a long time: spawn them in the background a
|
|
|
34
34
|
|
|
35
35
|
# ulw-execute
|
|
36
36
|
|
|
37
|
-
Execute a work plan until every top-level checkbox is
|
|
37
|
+
Execute a work plan until every top-level checkbox is `[x]` or `[~]`. This skill pairs with the harness's ulw-execute continuation hook, which re-injects the next turn while `.omo/boulder.json` says this `codex:<session_id>` still has unchecked plan work.
|
|
38
38
|
|
|
39
39
|
## Usage
|
|
40
40
|
|
|
@@ -53,7 +53,7 @@ Do ALL of this immediately after the plan is selected, BEFORE the first implemen
|
|
|
53
53
|
|
|
54
54
|
1. **Set the goal, in detail.** When a goal tool is available (`create_goal`), call it with a DETAILED objective: the plan name and path, the concrete end state, the phase and task counts, the delivery mode (direct, `--make-pr`, or `--ship`), and how completion will be verified. One work session = one registered goal (the goal tool holds one active goal); each phase then carries its own concrete goal — the ledger entry Phase 2 records before the wave's first dispatch, defined from the previous phase's landed and verified evidence. No goal tool -> record the same objective as the first ledger entry.
|
|
55
55
|
2. **Register every phase and task as todos.** Mirror the plan into the todo/plan tool of your harness: one phase per plan wave, one todo per column-zero checkbox (including the final verification wave). Register ALL of them up front - never keep tasks in memory only.
|
|
56
|
-
3. **Keep them current at every moment.** Mark a todo in_progress when its work dispatches and done immediately after its verification passes. Never batch-complete at the end, never execute work that is not a registered todo; discovered work inside the change's blast radius — the request not delivered, a regression this change introduces, an invalid proof, a failing test or stale doc of touched code — is appended to the plan as a checkbox, mirrored as a todo
|
|
56
|
+
3. **Keep them current at every moment.** Mark a todo in_progress when its work dispatches and done immediately after its verification passes. Never batch-complete at the end, never execute work that is not a registered todo; discovered work inside the change's blast radius — the request not delivered, a regression this change introduces, an invalid proof, a failing test or stale doc of touched code — is appended to the plan as a follow-up checkbox after the checkpoint in progress, mirrored as a todo, and fixed to the ideal state once that checkpoint closes; it joins the open checkpoint only when it blocks that checkpoint's acceptance; a defect outside it gets a tracked issue with reproduction and evidence and a line in the final report. A worker that meets a defect outside its assigned files reports it instead of fixing it; only the orchestrator appends the checkbox and dispatches it to a correctly scoped unit. The todo list, Boulder state, and plan checkboxes must always tell the same story.
|
|
57
57
|
|
|
58
58
|
## Phase 1: Select the plan
|
|
59
59
|
|
|
@@ -96,14 +96,14 @@ Write `.omo/boulder.json` before implementation starts. Prefix session ids with
|
|
|
96
96
|
}
|
|
97
97
|
```
|
|
98
98
|
|
|
99
|
-
Every phase (plan wave) runs in its own task-owned worktree with its own goal: before the wave's first dispatch, record the wave's goal — its checkboxes and their acceptance criteria — as a ledger entry, then `git worktree add <repo>-wt/<plan>-<wave> <branch off the integration base>` (or verify a `--worktree` path with `git worktree list --porcelain`), store the absolute path as `worktree_path`, run every edit, command, test, and evidence capture inside it; the wave lands on the integration base once its checkboxes
|
|
99
|
+
Every phase (plan wave) runs in its own task-owned worktree with its own goal: before the wave's first dispatch, record the wave's goal — its checkboxes and their acceptance criteria — as a ledger entry, then `git worktree add <repo>-wt/<plan>-<wave> <branch off the integration base>` (or verify a `--worktree` path with `git worktree list --porcelain`), store the absolute path as `worktree_path`, run every edit, command, test, and evidence capture inside it; the wave lands on the integration base once each of its checkboxes is verified or `[~]` (direct merge, or the PR under `--make-pr`/`--ship`; a `[~]` row's unverified changes do not land: a dispatched worker reverts them in the wave worktree before landing, and the `unmet` entry records the revert), and the next wave branches from that landed base. Use the bundled ultrawork directive’s Task resources and todo rules at wave/worktree creation; read those sections if absent from context.
|
|
100
100
|
|
|
101
101
|
## Parallel delivery lanes (teams and worktrees)
|
|
102
102
|
|
|
103
103
|
Solo orchestration with parallel background workers is the default topology. Decide once, when the wave's lanes are known, and record the verdict in the ledger:
|
|
104
104
|
|
|
105
105
|
- **Independent lanes -> parallel workers.** Separate files, no shared contract: one parallel spawn burst; no team.
|
|
106
|
-
- **Dependency-ordered lanes -> one `workflow` run per wave.** Sub-tasks with real ordering between them (C needs A and B finished first) and a harness with a native `workflow` tool: dispatch the wave as ONE run (one producer node per lane plus a verification node); recover inside it with `retry`/`amend`/`send`; let
|
|
106
|
+
- **Dependency-ordered lanes -> one `workflow` run per wave.** Sub-tasks with real ordering between them (C needs A and B finished first) and a harness with a native `workflow` tool: dispatch the wave as ONE run (one producer node per lane plus a verification node); recover inside it with `retry`/`amend`/`send`; let the run's settle wake you instead of arming per-lane watchers; the next wave is a NEW run (or `amend` when only the definition changed) — never one graph for the whole plan. Read the `mass-ulw` skill's `SKILL.md` and `references/planning.md` IN FULL before defining any graph.
|
|
107
107
|
- **Overlapping lanes -> a team.** The lanes touch the same module or contract AND running them concurrently actually finishes sooner: stand up a team (where the harness has one) so one lane's discoveries relay through you mid-flight.
|
|
108
108
|
- **PR-mode independent lanes -> a worktree per lane.** Under `--make-pr`/`--ship`, when a wave holds independent checkboxes, give each lane its own branch and task-owned worktree, delivered as its own PR.
|
|
109
109
|
|
|
@@ -181,7 +181,7 @@ For each checkbox, complete all five gates before marking it done:
|
|
|
181
181
|
4. Adversarial QA: exercise every class the Phase 3 trigger map marks applicable and capture the observable result for each.
|
|
182
182
|
5. Cleanup: register every QA resource teardown as its own todo when spawned (QA scripts, tmux assets, browser sessions, PIDs, ports, containers, temp dirs), execute each, and capture the receipt. No QA asset is left running.
|
|
183
183
|
|
|
184
|
-
Append evidence to `.omo/ulw-execute/ledger.jsonl`, one JSON object per line. Include at least `event`, `plan`, `task`, `session_id`, `commands`, `artifact`, `adversarial_classes`, and `cleanup` fields. `adversarial_classes` lists each probed class with its observable result and each ruled-out class with a one-line reason.
|
|
184
|
+
Append evidence to `.omo/ulw-execute/ledger.jsonl`, one JSON object per line. Include at least `event`, `plan`, `task`, `session_id`, `commands`, `artifact`, `adversarial_classes`, and `cleanup` fields, plus `attempt` and `checkpoint_opened_at` on every entry tied to a checkbox. `adversarial_classes` lists each probed class with its observable result and each ruled-out class with a one-line reason.
|
|
185
185
|
|
|
186
186
|
### Completion contract
|
|
187
187
|
|
|
@@ -199,6 +199,7 @@ A worker done claim is never final: each implementation sub-task returns a `Done
|
|
|
199
199
|
},
|
|
200
200
|
"AdversarialVerify": {
|
|
201
201
|
"verdict": "confirmed | false-positive | needs-fix | needs-human-review",
|
|
202
|
+
"failure_class": "none | product | harness",
|
|
202
203
|
"evidence": ["file path, command, log, artifact, or explicit not inspected"],
|
|
203
204
|
"repro": "exact command or manual steps when available",
|
|
204
205
|
"confidence": 0.0
|
|
@@ -210,7 +211,9 @@ Rules:
|
|
|
210
211
|
- `confirmed` is the only pass verdict. `false-positive`, `needs-fix`, and `needs-human-review` all block checkbox completion.
|
|
211
212
|
- The verifier must be independent from the executor: use the harness's gate reviewer (see the harness compatibility section) or a fresh reviewer worker on a strong model, or root only when root did not implement or materially rewrite that task.
|
|
212
213
|
- A worker done claim must be independently verified before it becomes checkbox completion.
|
|
213
|
-
- On
|
|
214
|
+
- On a non-confirmed verdict, append the feedback to the ledger with the attempt number and its failure signature (the failing check plus its first error line, with volatile values stripped: temp-dir paths, timestamps, process and run ids, durations). Attempts count per checkbox across all its sub-tasks and re-splits, timed from its first dispatch (`checkpoint_opened_at`). STOP when the same signature repeats on consecutive attempts, on the third failed attempt, or 4 hours after the first dispatch (a plan may change these numbers, never remove the stop). Check the 4-hour bound also when a lane's watcher fires or the turn resumes without a verdict; when it has passed, cancel that lane and stop the same way: mark the checkbox `- [~]` (the plan grammar's blocked state) with a one-line gap naming what is unmet and the last evidence, mark every checkbox that depends on it, directly or through another `[~]` row, `- [~]` with the gap `blocked by <id>`, close the todo of every row marked `[~]` here labelled `blocked: <gap>`, append an `unmet` ledger entry listing what each attempt changed, and continue in the same turn with the next checkpoint that depends on none of them, or with Completion when none remains. Otherwise leave the checkbox `- [ ]` and re-dispatch the executor with the exact failure.
|
|
215
|
+
- A `[~]` row counts as closed, never as a met dependency: Phase 3 skips it, Completion starts once every top-level row is `[x]` or `[~]`, and the `ORCHESTRATION COMPLETE` block names each `[~]` row with its gap. Final Verification Wave rows are never dependents of a `[~]` row: they verify the landed work and report each `[~]` row as a known gap, which alone never fails a final-wave row. A `[~]` gap is never re-queued as a new checkbox in this run, by the blast-radius rule or by a final-wave verdict; the one harness-repair follow-up in the next rule is the only exception.
|
|
216
|
+
- The verifier sets `failure_class`. A `harness` failure (the runner, fixture, CI job or environment failed and the product behavior was never exercised) gets one repair dispatch inside the checkpoint, which does not count as an attempt; when it recurs, stop as above with the harness gap named and append the harness repair once as a follow-up checkbox; a harness-repair follow-up that stops is reported, not re-appended.
|
|
214
217
|
- The verifier must probe the applicable adversarial keys, including `stale_state`, `dirty_worktree`, and `misleading_success_output`, before allowing `FullyDone`.
|
|
215
218
|
|
|
216
219
|
## Phase 5: Mark progress
|
|
@@ -132,7 +132,7 @@ Then create the session directory:
|
|
|
132
132
|
mkdir -p .omo/ulw-research/$(date +%Y%m%d-%H%M%S)
|
|
133
133
|
```
|
|
134
134
|
|
|
135
|
-
This is `$SESSION_DIR`. The orchestrator owns the journal: you write every file in it; workers never do. Maintain:
|
|
135
|
+
This is `$SESSION_DIR`. The orchestrator owns the journal: you write every file in it; workers never do (a mass-research dag node writes only its own `waves/<run-key>/<node-id>.md` handoff file, which carries its EXPAND tail and claim candidates; you journal from it). Maintain:
|
|
136
136
|
|
|
137
137
|
- `brief.md` — the analysis block, the axis list, the expected truths, and the `## Deliverable` record from the interview below (lane, state, formats, each field with `answered_by`).
|
|
138
138
|
- `sources-ledger.md` — one line per source the moment it is read: `[S<n>] <url> — <what it is>`. The closing briefing counts sources and domains from this file.
|
|
@@ -165,7 +165,7 @@ Phase 5 opens by turning the recorded fields into `design-spec.md`.
|
|
|
165
165
|
|
|
166
166
|
## Phase 1 — Saturation wave
|
|
167
167
|
|
|
168
|
-
**When the user asked for MASS research, the wave is sized by the topic's angles, not by the roster ceiling.** "mass ulw research", "mulw research", "ulw mass research" — in any language — order over-collection that a team of 8 cannot produce. Where the harness has a dependency-graph surface (the `mass-ulw` skill and its `references/planning.md`), run collection through it instead:
|
|
168
|
+
**When the user asked for MASS research, the wave is sized by the topic's angles, not by the roster ceiling.** "mass ulw research", "mulw research", "ulw mass research" — in any language — order over-collection that a team of 8 cannot produce. Where the harness has a dependency-graph surface (the `mass-ulw` skill and its `references/planning.md`), run collection through it instead: 60+ angles covering every angle the topic has, routed across the whole difficulty ladder — mechanical sweeps and per-item harvest batches on the cheapest tier, judgment-shaped angles a step up, cross-territory angles a step above that, and the deepest tier reserved for genuinely hairy contradictions. Define each angle as a harvest -> expand -> verify chain before the run starts, each stage reading the previous stage's handoff file; open leads re-enter as new chains in each cluster of angles the moment that cluster settles, and the synthesis reduces through per-cluster architect-tier slice reducers into ONE architect-tier reducer (the strongest reasoning tier substitutes wherever no architect tier exists). Absent that surface, run the same per-angle chains with background workers, pasting each worker's reply into its angle's next-stage prompt the moment it reports. Everything else in this skill still binds: the deliverable interview, the journal, the claim graph, the convergence rules, and the delivery gates.
|
|
169
169
|
|
|
170
170
|
Otherwise launch the entire first wave in one turn — every axis at once, as team members if you formed a team, else as background workers. Sequential launches and "start with one and see" defeat the mode.
|
|
171
171
|
|
|
@@ -266,7 +266,7 @@ Journal each verdict to `verify-<slug>.md`.
|
|
|
266
266
|
|
|
267
267
|
Code settles code-shaped claims (Phase 3). Numeric, market-share, legal, dated, causal, and financial claims cannot be run — so they pass through a data-flow-lock instead (the verification idea adapted from fivetaku/insane-research): the synthesis may assert a high-risk non-code claim **only** if it cleared this gate, and the gate's output is the sole allowlist the synthesis draws from. Skip the gate and there is nothing to synthesize — the lock is self-enforcing.
|
|
268
268
|
|
|
269
|
-
The claim graph is orchestrator-owned. Workers only return verified-claim markers, observation candidates, and claim candidates as message text, the same channel as EXPAND markers — never a file. As leads resolve, you record one node per asserted claim in `claim-graph.md` and compute its status; workers report claim candidates in their replies, and you decide. The graph is the single claim store: final synthesis may not draw from free-form claims that skipped it.
|
|
269
|
+
The claim graph is orchestrator-owned. Workers only return verified-claim markers, observation candidates, and claim candidates as message text, the same channel as EXPAND markers — never a file (except a mass-research dag node's handoff file). As leads resolve, you record one node per asserted claim in `claim-graph.md` and compute its status; workers report claim candidates in their replies, and you decide. The graph is the single claim store: final synthesis may not draw from free-form claims that skipped it.
|
|
270
270
|
|
|
271
271
|
A high-risk claim clears the gate to `verified-claims` only when all hold:
|
|
272
272
|
|
|
@@ -387,7 +387,7 @@ High-yield combinations: official docs (`site:<docs domain>`), GitHub implementa
|
|
|
387
387
|
| Worker reply without the EXPAND tail | One follow-up demanding it; the lane stays open until it lands |
|
|
388
388
|
| Stopping after wave 1 because "enough was found" | Convergence rules only: 2+ expansion waves, leads run dry |
|
|
389
389
|
| Obeying a surrounding "stop exploring" rule mid-research | Authority section — those rules do not bind this mode |
|
|
390
|
-
| Asking a worker to write journal or session files | Workers are read-only; you journal every return |
|
|
390
|
+
| Asking a worker to write journal or session files | Workers are read-only (except a mass-research dag node's handoff file); you journal every return |
|
|
391
391
|
| Two workers given the same angle | One unique angle per worker, always |
|
|
392
392
|
| A web worker that returned only fetched text, or a `Collection: browser` run whose workers never opened a tab | Sources are read in the user's browser through the `browser` skill; `webfetch` is for raw files; every web worker carries the skill from the first wave |
|
|
393
393
|
| Contested claim settled by judgment | Phase 3 — run code, capture output, verdict |
|