Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 66 additions & 2 deletions .github/fork-seams.json
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,72 @@
"assert.ok(settled?.type === \"provider_thread.updated\");",
"assert.equal(settled.providerThread.status, \"idle\");"
]
},
"packages/contracts/src/orchestratorMcp.ts": {
"why": "Usage pacing's note on a delegate_task result and the two refusal codes of the fork's delegation gates (usage pacing, agent slots), from before every upstream file was counted. The linked-child prompt fields (#817, design in #808) come in as one spread of the fork's own struct fields (forkOrchestratorMcp.ts), so later fork fields on this result need no new line here.",
"added": [
"// Fork: set only on the delegate_task call the usage pacing gate acted on or could not judge.",
"usagePacingNote: Schema.optional(Schema.String).annotate({",
"description: \"What usage pacing did with this task (moved it, lowered its effort, or why not).\",",
"}),",
"// Fork: the usage pacing gate held a delegated task; the message says until when.",
"\"usage_pacing_hold\",",
"// Fork: the agent slot gate refused a new delegated agent; the message names the rule.",
"\"slots_full\","
],
"announced": {
"since": "2026-11-22",
"added": [
"import * as ForkOrchestratorMcp from \"./forkOrchestratorMcp.ts\"; // Fork: its result fields",
"...ForkOrchestratorMcp.ForkDelegateTaskResultFields,"
]
}
},
"apps/server/src/mcp/OrchestratorMcpService.ts": {
"why": "The fork's delegation checks (fork/delegateChecks.ts: usage pacing, agent slots, a child's own options, a linked child's prompts) at their seats in delegate_task, create_threads and a remote task's status, from before every upstream file was counted. A pending secret request of a linked child ends a blocking wait (#817): one call in upstream's endsTaskWait, on the module's existing DelegateChecks import.",
"added": [
"import * as DelegateChecks from \"../fork/delegateChecks.ts\";",
"// Fork: the fork's delegation checks (pacing, slots, a child's own options) at their seats.",
"const delegateChecks = yield* DelegateChecks.make({ resolveTarget, scanWorkspace });",
"...(yield* delegateChecks.remotePrompts(task, status)), // Fork: reported here (fork/remoteTaskPrompts.ts)",
"target: yield* delegateChecks.remoteTarget({ ...input.target, environmentId }), // Fork: its own options",
"// Fork: seat 1 of the fork's delegation checks (fork/delegateChecks.ts), before the workspace.",
"const { target: pacedTarget, note: usagePacingNote } = yield* delegateChecks.beforeWorkspace({",
"isRetry: isRetryOfAcceptedDelegation,",
"parent,",
"requested: { ...input.target, role: input.role },",
"runtimeMode: input.runtimeMode,",
"cwd: yield* parentWorkspaceCwd(parent),",
"target,",
"});",
"// Fork: seat 2 of the checks, last before the dispatch (its hold: fork/delegateChecks.ts).",
"const forkHold = yield* delegateChecks.afterWorkspace({",
"isRetry: isRetryOfAcceptedDelegation,",
"callerThreadId: scope.thread.threadId,",
"target: pacedTarget,",
"});",
"modelSelection: pacedTarget.modelSelection,",
"if (childThreadId !== null) yield* forkHold.started(childThreadId);",
"// Fork: the dispatch is done; a named child keeps counting until its run shows.",
"yield* forkHold.release;",
"const task = yield* input.mode === \"wait\"",
"return usagePacingNote === undefined ? task : { ...task, usagePacingNote };",
"}, Effect.scoped), // Fork: closes the hold of a call that stops half-way (fork/delegateChecks.ts)",
"const resolvedTarget = yield* resolveTargetRechecking({",
"const { target } = yield* delegateChecks.beforeCreateThread({",
"isRetry: isRetryOfAcceptedCreation,",
"child: { threadId, index, batch: input.threads },",
"parent,",
"requested: request.target,",
"target: resolvedTarget,",
"});"
],
"announced": {
"since": "2026-11-22",
"added": [
"DelegateChecks.promptEndsWait(result) || // Fork: a secret request ends a wait (#817)"
]
}
}
},
"//pending": "Upstream files whose fork lines predate counting every upstream file, each with its ceiling: the most fork lines it may hold against upstream (counted from upstream, as fork-follow runs the check). To move into fork files or pin as seams; lower a ceiling when lines move out and take a file off when none are left. A pull request may change them but not grow them.",
Expand All @@ -477,7 +543,6 @@
"apps/server/src/cloud/selfUpdate.ts": 4,
"apps/server/src/config.ts": 2,
"apps/server/src/mcp/McpHttpServer.ts": 10,
"apps/server/src/mcp/OrchestratorMcpService.ts": 35,
"apps/server/src/mcp/toolkits/environment/handlers.test.ts": 63,
"apps/server/src/mcp/toolkits/project/handlers.test.ts": 48,
"apps/server/src/orchestration-v2/EffectWorker.ts": 28,
Expand Down Expand Up @@ -517,7 +582,6 @@
"docs/operations/release.md": 1,
"packages/contracts/package.json": 8,
"packages/contracts/src/editor.ts": 40,
"packages/contracts/src/orchestratorMcp.ts": 8,
"packages/provider-core/src/server/managedProvider.test.ts": 39,
"packages/provider-core/src/server/managedProvider.ts": 8,
"packages/provider-core/src/server/snapshot.ts": 2,
Expand Down
Loading