@cat-factory/orchestration 0.176.0 → 0.177.1
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/modules/execution/ExecutionService.d.ts +9 -62
- package/dist/modules/execution/ExecutionService.d.ts.map +1 -1
- package/dist/modules/execution/ExecutionService.js +46 -320
- package/dist/modules/execution/ExecutionService.js.map +1 -1
- package/dist/modules/execution/OneShotStepController.d.ts +92 -0
- package/dist/modules/execution/OneShotStepController.d.ts.map +1 -0
- package/dist/modules/execution/OneShotStepController.js +202 -0
- package/dist/modules/execution/OneShotStepController.js.map +1 -0
- package/dist/modules/execution/PollRunningController.d.ts +113 -0
- package/dist/modules/execution/PollRunningController.d.ts.map +1 -0
- package/dist/modules/execution/PollRunningController.js +298 -0
- package/dist/modules/execution/PollRunningController.js.map +1 -0
- package/dist/modules/execution/RunDispatcher.d.ts +4 -108
- package/dist/modules/execution/RunDispatcher.d.ts.map +1 -1
- package/dist/modules/execution/RunDispatcher.js +51 -468
- package/dist/modules/execution/RunDispatcher.js.map +1 -1
- package/dist/modules/execution/StepDecisionController.d.ts +120 -0
- package/dist/modules/execution/StepDecisionController.d.ts.map +1 -0
- package/dist/modules/execution/StepDecisionController.js +347 -0
- package/dist/modules/execution/StepDecisionController.js.map +1 -0
- package/dist/modules/observability/LlmObservabilityService.d.ts +5 -2
- package/dist/modules/observability/LlmObservabilityService.d.ts.map +1 -1
- package/dist/modules/observability/LlmObservabilityService.js +6 -3
- package/dist/modules/observability/LlmObservabilityService.js.map +1 -1
- package/package.json +8 -8
|
@@ -0,0 +1,347 @@
|
|
|
1
|
+
import { ConflictError, NotFoundError, ValidationError, assertFound, } from '@cat-factory/kernel';
|
|
2
|
+
import { companionTargets, hasTrait, INTERVIEW_GATE_TRAIT, isCompanionKind, } from '@cat-factory/agents';
|
|
3
|
+
import { isAsyncAgentExecutor } from '@cat-factory/kernel';
|
|
4
|
+
import { ARCHITECTURE_BRAINSTORM_AGENT_KIND, CLARITY_REVIEW_AGENT_KIND, HUMAN_REVIEW_AGENT_KIND, HUMAN_TEST_AGENT_KIND, REQUIREMENTS_BRAINSTORM_AGENT_KIND, REQUIREMENTS_REVIEW_AGENT_KIND, VISUAL_CONFIRM_AGENT_KIND, } from './ci.logic.js';
|
|
5
|
+
/**
|
|
6
|
+
* The HUMAN decision surface on a parked run: resolve a decision, approve / request changes on /
|
|
7
|
+
* reject a gated proposal, ask the human-review gate for a fix, and merge (or decline to merge)
|
|
8
|
+
* the PR a finished run left behind. Every one of these is reached from the SPA or the public
|
|
9
|
+
* API when a person acts on a run the engine deliberately stopped — as opposed to the engine's
|
|
10
|
+
* own advance path, which is the dispatcher's.
|
|
11
|
+
*
|
|
12
|
+
* Extracted from {@link ExecutionService} as a cohesive collaborator (the `RunDispatcher`
|
|
13
|
+
* controller pattern: a deps object of bound engine call-backs), so the engine service keeps the
|
|
14
|
+
* run state machine and this file keeps the decisions people make about it. The engine exposes
|
|
15
|
+
* thin delegates, so no HTTP call site changed.
|
|
16
|
+
*/
|
|
17
|
+
export class StepDecisionController {
|
|
18
|
+
deps;
|
|
19
|
+
constructor(deps) {
|
|
20
|
+
this.deps = deps;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Several gates park on a `step.approval` but are NOT generic prose approvals — they are
|
|
24
|
+
* driven by their own dedicated surface, never the generic
|
|
25
|
+
* approve/request-changes/reject resolvers (which would advance the run bypassing the
|
|
26
|
+
* loop). Guard those resolvers so a stray approve can't short-circuit any of them:
|
|
27
|
+
* the requirements/clarity review gates, the brainstorms, the human-testing and
|
|
28
|
+
* visual-confirmation gates, an interview-trait gate, a companion at its rework cap
|
|
29
|
+
* (`companion.exceeded`), the follow-up companion with undecided items, and a coder
|
|
30
|
+
* parked on the implementation-fork decision (whose approve would skip the build
|
|
31
|
+
* dispatch entirely).
|
|
32
|
+
*/
|
|
33
|
+
assertNotIterativeGate(step) {
|
|
34
|
+
if (step.agentKind === REQUIREMENTS_REVIEW_AGENT_KIND) {
|
|
35
|
+
throw new ConflictError('Resolve the requirements review through its review window, not the approval gate');
|
|
36
|
+
}
|
|
37
|
+
if (step.agentKind === CLARITY_REVIEW_AGENT_KIND) {
|
|
38
|
+
throw new ConflictError('Resolve the clarity review through its review window, not the approval gate');
|
|
39
|
+
}
|
|
40
|
+
if (step.agentKind === REQUIREMENTS_BRAINSTORM_AGENT_KIND ||
|
|
41
|
+
step.agentKind === ARCHITECTURE_BRAINSTORM_AGENT_KIND) {
|
|
42
|
+
throw new ConflictError('Resolve the brainstorm through its brainstorm window, not the approval gate');
|
|
43
|
+
}
|
|
44
|
+
if (step.agentKind === HUMAN_TEST_AGENT_KIND) {
|
|
45
|
+
throw new ConflictError('Resolve the human-testing gate through its window (confirm / request a fix), not the approval gate');
|
|
46
|
+
}
|
|
47
|
+
if (step.agentKind === VISUAL_CONFIRM_AGENT_KIND) {
|
|
48
|
+
throw new ConflictError('Resolve the visual-confirmation gate through its window (approve / request a fix), not the approval gate');
|
|
49
|
+
}
|
|
50
|
+
if (hasTrait(step.agentKind, INTERVIEW_GATE_TRAIT, this.deps.agentKindRegistry)) {
|
|
51
|
+
throw new ConflictError('Resolve the interview through its interview window, not the approval gate');
|
|
52
|
+
}
|
|
53
|
+
if (step.companion?.exceeded) {
|
|
54
|
+
throw new ConflictError('Resolve this companion review through its iteration-cap prompt, not the approval gate');
|
|
55
|
+
}
|
|
56
|
+
if (step.followUps?.enabled && step.followUps.items.some((i) => i.status === 'pending')) {
|
|
57
|
+
throw new ConflictError('Resolve the follow-up companion through its window (file / send back / answer / dismiss), not the approval gate');
|
|
58
|
+
}
|
|
59
|
+
if (step.forkDecision?.status === 'awaiting_choice' ||
|
|
60
|
+
step.forkDecision?.status === 'answering') {
|
|
61
|
+
// Approving here would advance the run PAST the coder step with the build never run
|
|
62
|
+
// (the park sits between the proposer and the Coder dispatch).
|
|
63
|
+
throw new ConflictError('Resolve the implementation-fork decision through its fork window (choose an approach), not the approval gate');
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Dispatch the `fixer` against the human-review gate's PR branch from a human's freeform
|
|
68
|
+
* instructions — bypassing the precheck + grace window. Parks a `pendingFix` on the gate step,
|
|
69
|
+
* consumed on the gate's next poll (see {@link evaluateGate}) which dispatches the fixer with
|
|
70
|
+
* the instructions folded in. A second request before the first is consumed simply replaces the
|
|
71
|
+
* pending instructions. Throws when no human-review gate is currently parked.
|
|
72
|
+
*
|
|
73
|
+
* The run is re-driven via `workRunner.startRun` so the pending fix is picked up promptly even
|
|
74
|
+
* when the driver had died (e.g. its durable advance job expired/was evicted before the stale-
|
|
75
|
+
* run sweeper re-drove it) — `startRun` is idempotent for a live run (the exclusive advance
|
|
76
|
+
* queue no-ops a duplicate send), so this only has an effect when no driver is currently
|
|
77
|
+
* polling. A spend-paused run is left paused (it resumes through its own path).
|
|
78
|
+
*/
|
|
79
|
+
async requestHumanReviewFix(workspaceId, blockId, instructions) {
|
|
80
|
+
const block = await this.deps.blockRepository.get(workspaceId, blockId);
|
|
81
|
+
if (!block?.executionId) {
|
|
82
|
+
throw new ConflictError('No human-review gate is currently awaiting input');
|
|
83
|
+
}
|
|
84
|
+
// Optimistic-concurrency write: parking the `pendingFix` can race the gate's own poll
|
|
85
|
+
// (the durable driver advancing the run), so re-read + re-apply on fresh state instead
|
|
86
|
+
// of clobbering — the lost-update fix, same path as resolveDecision. The validation runs
|
|
87
|
+
// inside the mutation so it sees the run as it stands at write time.
|
|
88
|
+
const instance = await this.deps.runStateMachine.mutateInstance(workspaceId, block.executionId, (inst) => {
|
|
89
|
+
const step = inst.steps[inst.currentStep];
|
|
90
|
+
if (!step || step.agentKind !== HUMAN_REVIEW_AGENT_KIND || !step.gate) {
|
|
91
|
+
throw new ConflictError('No human-review gate is currently awaiting input');
|
|
92
|
+
}
|
|
93
|
+
// The fix is consumed by evaluateGate's pendingFix branch, which dispatches the fixer
|
|
94
|
+
// ONLY when the gate's provider is wired AND there is an async executor to escalate to.
|
|
95
|
+
// Reject up front when neither holds, instead of silently parking a pendingFix the gate
|
|
96
|
+
// would discard on its pass-through (an unwired gate advances) — the caller must see the
|
|
97
|
+
// failure, not a 200.
|
|
98
|
+
const gate = this.deps.runDispatcher.gateFor(step.agentKind);
|
|
99
|
+
if (!gate?.wired() || !isAsyncAgentExecutor(this.deps.agentExecutor)) {
|
|
100
|
+
throw new ConflictError('The human-review gate cannot dispatch a fix on this deployment (no review provider or async executor configured)');
|
|
101
|
+
}
|
|
102
|
+
step.gate.pendingFix = { instructions, at: this.deps.clock.now() };
|
|
103
|
+
// Re-arm a decision-parked run so the re-driven loop polls instead of no-oping; a spend-
|
|
104
|
+
// paused run stays paused.
|
|
105
|
+
if (inst.status === 'blocked')
|
|
106
|
+
inst.status = 'running';
|
|
107
|
+
});
|
|
108
|
+
await this.deps.runStateMachine.emitInstance(workspaceId, instance);
|
|
109
|
+
// Ensure a driver is active to consume the pending fix (idempotent for a live run).
|
|
110
|
+
if (instance.status === 'running') {
|
|
111
|
+
await this.deps.workRunner.startRun(workspaceId, instance.id);
|
|
112
|
+
}
|
|
113
|
+
return instance;
|
|
114
|
+
} /** Resolve a pending decision; the run's next step lets the agent finish it. */
|
|
115
|
+
async resolveDecision(workspaceId, executionId, decisionId, choice) {
|
|
116
|
+
await this.deps.requireWorkspace(workspaceId);
|
|
117
|
+
// Optimistic-concurrency write: a second resolve (double-click) or a racing driver
|
|
118
|
+
// poll can't clobber the chosen decision — the loser re-reads and re-applies.
|
|
119
|
+
const instance = await this.deps.runStateMachine.mutateInstance(workspaceId, executionId, async (inst) => {
|
|
120
|
+
const step = inst.steps.find((s) => s.decision?.id === decisionId);
|
|
121
|
+
if (!step || !step.decision)
|
|
122
|
+
throw new NotFoundError('Decision', decisionId);
|
|
123
|
+
step.decision.chosen = choice;
|
|
124
|
+
this.deps.stepGraph.startStep(step);
|
|
125
|
+
if (inst.status === 'blocked')
|
|
126
|
+
inst.status = 'running';
|
|
127
|
+
await this.deps.runStateMachine.updateBlockProgress(workspaceId, inst, 'in_progress');
|
|
128
|
+
});
|
|
129
|
+
// Wake the parked durable run, if any. The DB write above remains the source
|
|
130
|
+
// of truth (so the backstop sweeper can still re-drive it); the signal is an
|
|
131
|
+
// optimisation that lets the workflow continue immediately.
|
|
132
|
+
await this.deps.workRunner.signalDecision(workspaceId, instance.id, decisionId, choice);
|
|
133
|
+
await this.deps.runStateMachine.emitInstance(workspaceId, instance);
|
|
134
|
+
return instance;
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* Approve a step's gated proposal: the run advances to the next step, carrying
|
|
138
|
+
* the (optionally human-edited) proposal forward as context. Mirrors
|
|
139
|
+
* {@link resolveDecision}'s durable-wake but *advances* the pipeline instead of
|
|
140
|
+
* re-running the step (the step is already done). Idempotent — re-approving an
|
|
141
|
+
* already-approved gate is a no-op.
|
|
142
|
+
*/
|
|
143
|
+
async approveStep(workspaceId, executionId, approvalId, opts = {}) {
|
|
144
|
+
await this.deps.requireWorkspace(workspaceId);
|
|
145
|
+
// Optimistic-concurrency write like resolveDecision/requestStepChanges: an approve
|
|
146
|
+
// holding a stale snapshot (a racing reject, a driver poll, a terminal transition)
|
|
147
|
+
// must re-read and re-validate rather than blind-write — otherwise it can resurrect
|
|
148
|
+
// a run another writer already failed. The advance's in-memory half runs inside the
|
|
149
|
+
// CAS; the non-idempotent side effects (block writes, driver signal, emit) run once
|
|
150
|
+
// after, on the winning state.
|
|
151
|
+
let stepIndex = -1;
|
|
152
|
+
let alreadyApproved = false;
|
|
153
|
+
const instance = await this.deps.runStateMachine.mutateInstance(workspaceId, executionId, (inst) => {
|
|
154
|
+
alreadyApproved = false;
|
|
155
|
+
stepIndex = inst.steps.findIndex((s) => s.approval?.id === approvalId);
|
|
156
|
+
const step = inst.steps[stepIndex];
|
|
157
|
+
if (!step || !step.approval)
|
|
158
|
+
throw new NotFoundError('Approval', approvalId);
|
|
159
|
+
this.assertNotIterativeGate(step);
|
|
160
|
+
if (step.approval.status === 'approved') {
|
|
161
|
+
alreadyApproved = true;
|
|
162
|
+
return;
|
|
163
|
+
}
|
|
164
|
+
if (step.approval.status === 'rejected') {
|
|
165
|
+
throw new ConflictError(`Approval '${approvalId}' was rejected`);
|
|
166
|
+
}
|
|
167
|
+
if (inst.status === 'failed' || inst.status === 'done') {
|
|
168
|
+
throw new ConflictError(`Execution '${executionId}' is already ${inst.status}`);
|
|
169
|
+
}
|
|
170
|
+
// A human edit to the proposal replaces the agent's text, so the revised
|
|
171
|
+
// proposal is what downstream steps read (via priorOutputs). That only holds when the
|
|
172
|
+
// output IS the agent's work product: a step whose output is a RENDERING of an
|
|
173
|
+
// already-ingested artifact (the spec doc, the blueprint tree, the initiative plan —
|
|
174
|
+
// see `reviewableArtifactOutput`) would take the edit into `step.output` while the
|
|
175
|
+
// committed artifact stayed the ingested one, so the correction silently reaches
|
|
176
|
+
// nothing. Refuse rather than accept-and-drop; the reviewer's route is "request
|
|
177
|
+
// changes", which re-runs the producer with the correction as feedback.
|
|
178
|
+
if (opts.proposal !== undefined) {
|
|
179
|
+
if (step.outputIsRendered) {
|
|
180
|
+
throw new ValidationError("This step's output is a rendering of the artifact it already produced, so edits " +
|
|
181
|
+
'to it cannot change that artifact. Request changes instead — the step re-runs ' +
|
|
182
|
+
'with your feedback.', { reason: 'proposal_not_editable' });
|
|
183
|
+
}
|
|
184
|
+
step.output = opts.proposal;
|
|
185
|
+
step.approval.proposal = opts.proposal;
|
|
186
|
+
}
|
|
187
|
+
step.approval.status = 'approved';
|
|
188
|
+
// A gate is never raised on the final step, but the shared advance stays defensive.
|
|
189
|
+
this.deps.runStateMachine.advanceRunPastGate(inst, stepIndex);
|
|
190
|
+
});
|
|
191
|
+
if (alreadyApproved)
|
|
192
|
+
return instance;
|
|
193
|
+
await this.deps.runStateMachine.settleAdvancedGate(workspaceId, instance, stepIndex);
|
|
194
|
+
return instance;
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* Request changes on a step's gated proposal: the same step re-runs with the
|
|
198
|
+
* human's freeform feedback and/or per-block comments (and its prior proposal)
|
|
199
|
+
* folded into the agent's context (see {@link AgentContextBuilder}). The run is left
|
|
200
|
+
* `running` on the same step; on the re-run's completion the gate is raised
|
|
201
|
+
* afresh. At least one of `feedback`/`comments` is expected (the controller
|
|
202
|
+
* validates this), but an empty review is harmless — the agent simply re-runs.
|
|
203
|
+
*/
|
|
204
|
+
async requestStepChanges(workspaceId, executionId, approvalId, review) {
|
|
205
|
+
await this.deps.requireWorkspace(workspaceId);
|
|
206
|
+
// Optimistic-concurrency write: two concurrent change-requests on the same gate
|
|
207
|
+
// (the documented double-submit) can't both dispatch a re-run — the loser re-reads,
|
|
208
|
+
// sees `changes_requested`, and is rejected below instead of clobbering.
|
|
209
|
+
const instance = await this.deps.runStateMachine.mutateInstance(workspaceId, executionId, (inst) => {
|
|
210
|
+
const step = inst.steps.find((s) => s.approval?.id === approvalId);
|
|
211
|
+
if (!step || !step.approval)
|
|
212
|
+
throw new NotFoundError('Approval', approvalId);
|
|
213
|
+
this.assertNotIterativeGate(step);
|
|
214
|
+
if (step.approval.status === 'approved') {
|
|
215
|
+
throw new ConflictError(`Approval '${approvalId}' is already approved`);
|
|
216
|
+
}
|
|
217
|
+
if (step.approval.status === 'rejected') {
|
|
218
|
+
throw new ConflictError(`Approval '${approvalId}' was rejected`);
|
|
219
|
+
}
|
|
220
|
+
// A re-run is already in flight (and will raise a fresh gate on completion);
|
|
221
|
+
// acting on this now-stale gate id would dispatch duplicate work.
|
|
222
|
+
if (step.approval.status === 'changes_requested') {
|
|
223
|
+
throw new ConflictError(`Approval '${approvalId}' is already being re-run`);
|
|
224
|
+
}
|
|
225
|
+
const stepIndex = inst.steps.findIndex((s) => s.approval?.id === approvalId);
|
|
226
|
+
step.approval.status = 'changes_requested';
|
|
227
|
+
step.approval.feedback = review.feedback;
|
|
228
|
+
step.approval.comments = review.comments?.length ? review.comments : undefined;
|
|
229
|
+
// A companion's gate reviews the PRODUCER's output, not the companion's own work:
|
|
230
|
+
// requesting changes here must re-run the producer (with the human's feedback
|
|
231
|
+
// folded in) and re-grade, NOT re-run the companion. Redirect the rework to the
|
|
232
|
+
// nearest preceding step of one of the companion's target kinds.
|
|
233
|
+
if (isCompanionKind(step.agentKind)) {
|
|
234
|
+
const targets = companionTargets(step.agentKind);
|
|
235
|
+
let producerIndex = -1;
|
|
236
|
+
for (let i = stepIndex - 1; i >= 0; i--) {
|
|
237
|
+
if (targets.includes(inst.steps[i].agentKind)) {
|
|
238
|
+
producerIndex = i;
|
|
239
|
+
break;
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
const producer = producerIndex >= 0 ? inst.steps[producerIndex] : undefined;
|
|
243
|
+
if (producer) {
|
|
244
|
+
// Re-run the producer (with the human's feedback) and every step up to and
|
|
245
|
+
// including the companion, then the companion re-grades. Does NOT touch the
|
|
246
|
+
// companion's automatic-rework budget — a human-driven iteration is unbounded.
|
|
247
|
+
const previousProposal = producer.output ?? step.approval.proposal;
|
|
248
|
+
this.deps.stepGraph.rerunProducerThrough(inst, producerIndex, stepIndex, {
|
|
249
|
+
previousProposal,
|
|
250
|
+
feedback: review.feedback ?? '',
|
|
251
|
+
...(review.comments?.length ? { comments: review.comments } : {}),
|
|
252
|
+
});
|
|
253
|
+
if (inst.status === 'blocked')
|
|
254
|
+
inst.status = 'running';
|
|
255
|
+
return;
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
// Drop the live job handle so the re-run dispatches fresh work rather than
|
|
259
|
+
// re-attaching to the finished job (async steps); inline steps ignore this.
|
|
260
|
+
step.jobId = undefined;
|
|
261
|
+
// A requested re-run is a fresh execution: clear the prior timing so the next
|
|
262
|
+
// start/finish times this attempt rather than spanning the human gate wait.
|
|
263
|
+
step.startedAt = null;
|
|
264
|
+
step.finishedAt = null;
|
|
265
|
+
this.deps.stepGraph.startStep(step);
|
|
266
|
+
if (inst.status === 'blocked')
|
|
267
|
+
inst.status = 'running';
|
|
268
|
+
});
|
|
269
|
+
await this.deps.workRunner.signalDecision(workspaceId, instance.id, approvalId, 'changes_requested');
|
|
270
|
+
await this.deps.runStateMachine.emitInstance(workspaceId, instance);
|
|
271
|
+
return instance;
|
|
272
|
+
}
|
|
273
|
+
/**
|
|
274
|
+
* Reject a step's gated proposal: the run stops entirely. The gate is marked
|
|
275
|
+
* `rejected` and the run is failed with a dedicated `rejected` failure kind, so
|
|
276
|
+
* the board surfaces it via the shared failure banner (block → `blocked`) with a
|
|
277
|
+
* Retry affordance. The parked durable run is woken so it observes the now-terminal
|
|
278
|
+
* status and stops (the workflow's advance loop no-ops on a non-running run).
|
|
279
|
+
* Idempotent — rejecting an already-terminal gate is a no-op.
|
|
280
|
+
*/
|
|
281
|
+
async rejectStep(workspaceId, executionId, approvalId, reason) {
|
|
282
|
+
await this.deps.requireWorkspace(workspaceId);
|
|
283
|
+
// Optimistic-concurrency write: a reject racing the durable driver (or a concurrent
|
|
284
|
+
// resolve/request-changes on the same gate) re-reads and re-applies instead of
|
|
285
|
+
// clobbering the other writer — the lost-update fix, same as resolveDecision.
|
|
286
|
+
let alreadyRejected = false;
|
|
287
|
+
const instance = await this.deps.runStateMachine.mutateInstance(workspaceId, executionId, (inst) => {
|
|
288
|
+
const step = inst.steps.find((s) => s.approval?.id === approvalId);
|
|
289
|
+
if (!step || !step.approval)
|
|
290
|
+
throw new NotFoundError('Approval', approvalId);
|
|
291
|
+
this.assertNotIterativeGate(step);
|
|
292
|
+
if (step.approval.status === 'approved') {
|
|
293
|
+
throw new ConflictError(`Approval '${approvalId}' is already approved`);
|
|
294
|
+
}
|
|
295
|
+
// A re-run is in flight; this gate id is stale (a fresh one is raised on its
|
|
296
|
+
// completion). Reject the current gate via that fresh id, not this one.
|
|
297
|
+
if (step.approval.status === 'changes_requested') {
|
|
298
|
+
throw new ConflictError(`Approval '${approvalId}' is being re-run`);
|
|
299
|
+
}
|
|
300
|
+
// Already rejected (and the run already failed): leave it as-is and skip failRun below.
|
|
301
|
+
if (step.approval.status === 'rejected') {
|
|
302
|
+
alreadyRejected = true;
|
|
303
|
+
return;
|
|
304
|
+
}
|
|
305
|
+
step.approval.status = 'rejected';
|
|
306
|
+
if (reason)
|
|
307
|
+
step.approval.feedback = reason;
|
|
308
|
+
});
|
|
309
|
+
if (alreadyRejected)
|
|
310
|
+
return instance;
|
|
311
|
+
const message = reason
|
|
312
|
+
? `A reviewer rejected the proposal: ${reason}`
|
|
313
|
+
: 'A reviewer rejected the proposal, stopping the run.';
|
|
314
|
+
// failRun persists the terminal failure + flips the block to `blocked` and emits.
|
|
315
|
+
await this.deps.failRun(workspaceId, executionId, message, 'rejected');
|
|
316
|
+
// Wake the parked durable run; it re-reads the now-terminal status and stops.
|
|
317
|
+
await this.deps.workRunner.signalDecision(workspaceId, instance.id, approvalId, 'rejected');
|
|
318
|
+
return assertFound(await this.deps.executionRepository.get(workspaceId, executionId), 'Execution', executionId);
|
|
319
|
+
}
|
|
320
|
+
/**
|
|
321
|
+
* Merge an open PR: a block moves from `pr_ready` to `done`. This is the HUMAN merge path —
|
|
322
|
+
* a `merge_review` / `pipeline_complete` notification act, or the inspector's merge control.
|
|
323
|
+
*
|
|
324
|
+
* `reviewEffort` records, in the same call, how much review the PR actually needed. It is
|
|
325
|
+
* always optional: an untagged merge settles the track record with a null tag and nothing
|
|
326
|
+
* downstream breaks. The record settle runs AFTER the merge and is best-effort inside the
|
|
327
|
+
* service, so no part of this feature can fail or block a merge.
|
|
328
|
+
*/
|
|
329
|
+
async mergePr(workspaceId, blockId, reviewEffort) {
|
|
330
|
+
await this.deps.requireWorkspace(workspaceId);
|
|
331
|
+
const block = await this.deps.requireBlock(workspaceId, blockId);
|
|
332
|
+
if (block.status !== 'pr_ready') {
|
|
333
|
+
throw new ConflictError(`Block '${blockId}' has no PR awaiting merge`, 'no_pr_to_merge');
|
|
334
|
+
}
|
|
335
|
+
await this.deps.finalizeMerge(workspaceId, blockId);
|
|
336
|
+
await this.deps.mergePolicy.recordHumanMerge(workspaceId, blockId, reviewEffort);
|
|
337
|
+
return this.deps.requireBlock(workspaceId, blockId);
|
|
338
|
+
}
|
|
339
|
+
/**
|
|
340
|
+
* Record that a human DECLINED to merge — they dismissed the review card rather than acting on
|
|
341
|
+
* it, so the class's rollup counts a rejection instead of a forever-`pending_review` row.
|
|
342
|
+
*/
|
|
343
|
+
recordMergeRejection(workspaceId, executionId) {
|
|
344
|
+
return this.deps.mergePolicy.recordRejection(workspaceId, executionId);
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
//# sourceMappingURL=StepDecisionController.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StepDecisionController.js","sourceRoot":"","sources":["../../../src/modules/execution/StepDecisionController.ts"],"names":[],"mappings":"AAAA,OAAO,EAML,aAAa,EAGb,aAAa,EAEb,eAAe,EAGf,WAAW,GACZ,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EAEL,gBAAgB,EAChB,QAAQ,EACR,oBAAoB,EACpB,eAAe,GAChB,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAA;AAE1D,OAAO,EACL,kCAAkC,EAClC,yBAAyB,EACzB,uBAAuB,EACvB,qBAAqB,EACrB,kCAAkC,EAClC,8BAA8B,EAC9B,yBAAyB,GAC1B,MAAM,eAAe,CAAA;AAqCtB;;;;;;;;;;;GAWG;AACH,MAAM,OAAO,sBAAsB;IACJ,IAAI;IAAjC,YAA6B,IAAgC;oBAAhC,IAAI;IAA+B,CAAC;IAEjE;;;;;;;;;;OAUG;IACK,sBAAsB,CAAC,IAAkB;QAC/C,IAAI,IAAI,CAAC,SAAS,KAAK,8BAA8B,EAAE,CAAC;YACtD,MAAM,IAAI,aAAa,CACrB,kFAAkF,CACnF,CAAA;QACH,CAAC;QACD,IAAI,IAAI,CAAC,SAAS,KAAK,yBAAyB,EAAE,CAAC;YACjD,MAAM,IAAI,aAAa,CACrB,6EAA6E,CA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CAAC;CACF"}
|
|
@@ -232,8 +232,11 @@ export declare function makeHarnessCallRecorder(service: LlmObservabilityService
|
|
|
232
232
|
* - `phase` is left absent ⇒ the unattributed `''` slice. Phases are boundaries the HARNESS
|
|
233
233
|
* owns inside a container run; an inline call sits outside all of them, and stamping one
|
|
234
234
|
* would file it under a loop it never ran in.
|
|
235
|
-
* - `turnIndex` is null
|
|
236
|
-
* rows order by `createdAt`.
|
|
235
|
+
* - `turnIndex` is null for a plain `generateText`, like the proxy's: there is no job-scoped
|
|
236
|
+
* counter there either, so those rows order by `createdAt`. An inline step served by a HARNESS
|
|
237
|
+
* CLI does have one — the CLI runs a tool loop behind the single SDK call and reports each
|
|
238
|
+
* model call it made — and passes it, so a run's inline turns order by turn like a container
|
|
239
|
+
* step's do.
|
|
237
240
|
* - `httpStatus` is null: the AI SDK owns the transport, so a failure arrives as an exception
|
|
238
241
|
* whose message is already on `errorMessage` (scrubbed by the service) rather than a status.
|
|
239
242
|
* - `upstreamMs` is the whole `durationMs`, which makes the derived overhead 0 — honestly so.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LlmObservabilityService.d.ts","sourceRoot":"","sources":["../../../src/modules/observability/LlmObservabilityService.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,KAAK,EACV,KAAK,WAAW,EAOjB,MAAM,qBAAqB,CAAA;AAC5B,OAAO,KAAK,EACV,gBAAgB,EAChB,aAAa,EACb,MAAM,EACN,iBAAiB,EACjB,aAAa,EACb,uBAAuB,EACvB,oBAAoB,EACpB,YAAY,EACZ,2BAA2B,EAC3B,2BAA2B,EAC5B,MAAM,qBAAqB,CAAA;AAC5B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAI9D,MAAM,WAAW,mCAAmC;IAClD,uBAAuB,EAAE,uBAAuB,CAAA;IAChD,WAAW,EAAE,WAAW,CAAA;IACxB,KAAK,EAAE,KAAK,CAAA;IACZ;;;;;;OAMG;IACH,a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OAAO,CAAC,gBAAgB,CAAC,CAG5F;CACF;AAED,kGAAkG;AAClG,MAAM,WAAW,uBAAuB;IACtC,WAAW,EAAE,MAAM,CAAA;IACnB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,SAAS,EAAE,MAAM,CAAA;IACjB,gEAAgE;IAChE,QAAQ,EAAE,MAAM,CAAA;IAChB,wFAAwF;IACxF,KAAK,EAAE,MAAM,CAAA;IACb;;;;;;;OAOG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,iBAAiB,EAAE,CAAA;CAC3B;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,uBAAuB,GAC/B,CAAC,KAAK,EAAE,uBAAuB,KAAK,OAAO,CAAC,IAAI,CAAC,CAuCnD;AAED
|
|
1
|
+
{"version":3,"file":"LlmObservabilityService.d.ts","sourceRoot":"","sources":["../../../src/modules/observability/LlmObservabilityService.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,KAAK,EACV,KAAK,WAAW,EAOjB,MAAM,qBAAqB,CAAA;AAC5B,OAAO,KAAK,EACV,gBAAgB,EAChB,aAAa,EACb,MAAM,EACN,iBAAiB,EACjB,aAAa,EACb,uBAAuB,EACvB,oBAAoB,EACpB,YAAY,EACZ,2BAA2B,EAC3B,2BAA2B,EAC5B,MAAM,qBAAqB,CAAA;AAC5B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAI9D,MAAM,WAAW,mCAAmC;IAClD,uBAAuB,EAAE,uBAAuB,CAAA;IAChD,WAAW,EAAE,WAAW,CAAA;IACxB,KAAK,EAAE,KAAK,CAAA;IACZ;;;;;;OAMG;IACH,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB;;;;;OAKG;IACH,SAAS,CAAC,EAAE,YAAY,CAAA;IACxB;;;;;;OAMG;IACH,2BAA2B,CAAC,EAAE,2BAA2B,CAAA;IACzD;;;;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A;IAC1B,SAAS,EAAE,MAAM,CAAA;IACjB,gEAAgE;IAChE,QAAQ,EAAE,MAAM,CAAA;IAChB,wFAAwF;IACxF,KAAK,EAAE,MAAM,CAAA;IACb;;;;;;;OAOG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,iBAAiB,EAAE,CAAA;CAC3B;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,uBAAuB,GAC/B,CAAC,KAAK,EAAE,uBAAuB,KAAK,OAAO,CAAC,IAAI,CAAC,CAuCnD;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,uBAAuB,GAC/B,CAAC,IAAI,EAAE,aAAa,KAAK,OAAO,CAAC,IAAI,CAAC,CA4BxC"}
|
|
@@ -266,8 +266,11 @@ export function makeHarnessCallRecorder(service) {
|
|
|
266
266
|
* - `phase` is left absent ⇒ the unattributed `''` slice. Phases are boundaries the HARNESS
|
|
267
267
|
* owns inside a container run; an inline call sits outside all of them, and stamping one
|
|
268
268
|
* would file it under a loop it never ran in.
|
|
269
|
-
* - `turnIndex` is null
|
|
270
|
-
* rows order by `createdAt`.
|
|
269
|
+
* - `turnIndex` is null for a plain `generateText`, like the proxy's: there is no job-scoped
|
|
270
|
+
* counter there either, so those rows order by `createdAt`. An inline step served by a HARNESS
|
|
271
|
+
* CLI does have one — the CLI runs a tool loop behind the single SDK call and reports each
|
|
272
|
+
* model call it made — and passes it, so a run's inline turns order by turn like a container
|
|
273
|
+
* step's do.
|
|
271
274
|
* - `httpStatus` is null: the AI SDK owns the transport, so a failure arrives as an exception
|
|
272
275
|
* whose message is already on `errorMessage` (scrubbed by the service) rather than a status.
|
|
273
276
|
* - `upstreamMs` is the whole `durationMs`, which makes the derived overhead 0 — honestly so.
|
|
@@ -294,7 +297,7 @@ export function makeInlineCallRecorder(service) {
|
|
|
294
297
|
provider: call.provider,
|
|
295
298
|
model: call.model,
|
|
296
299
|
streaming: false,
|
|
297
|
-
turnIndex: null,
|
|
300
|
+
turnIndex: call.turnIndex ?? null,
|
|
298
301
|
messageCount: call.messageCount,
|
|
299
302
|
toolCount: call.toolCount,
|
|
300
303
|
requestMaxTokens: call.requestMaxTokens,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LlmObservabilityService.js","sourceRoot":"","sources":["../../../src/modules/observability/LlmObservabilityService.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,2BAA2B,EAC3B,UAAU,EACV,kBAAkB,EAClB,aAAa,EACb,aAAa,GACd,MAAM,qBAAqB,CAAA;AAe5B,OAAO,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAA;AA2CrF;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,GAAG,GAAG,IAAI,CAAA;AAExC,sEAAsE;AACtE,SAAS,SAAS,CAAC,IAAY;IAC7B,IAAI,IAAI,CAAC,MAAM,IAAI,cAAc;QAAE,OAAO,IAAI,CAAA;IAC9C,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,cAAc,CAAC,iBAAiB,IAAI,CAAC,MAAM,GAAG,cAAc,SAAS,CAAA;AAC/F,CAAC;AAED,oEAAoE;AACpE,MAAM,kBAAkB,GAAG,IAAI,CAAA;AAE/B,sFAAsF;AACtF,MAAM,mBAAmB,GAAiB,EAAE,UAAU,EAAE,EAAE,EAAE,iBAAiB,EAAE,CAAC,EAAE,UAAU,EAAE,EAAE,EAAE,CAAA;AAelG,yFAAyF;AACzF,SAAS,WAAW,CAAC,IAAiB;IACpC,OAAO,OAAO,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,EAAE,CAAA;AACjD,CAAC;AA0DD;;;;;;;;GAQG;AACH,MAAM,OAAO,uBAAuB;IACjB,UAAU,CAAyB;IACnC,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AE,CAAC;gBACV,UAAU,EAAE,CAAC;gBACb,EAAE,EAAE,IAAI;gBACR,UAAU,EAAE,IAAI;gBAChB,YAAY,EAAE,IAAI;gBAClB,UAAU,EAAE,IAAI,CAAC,UAAU;gBAC3B,YAAY,EAAE,IAAI,CAAC,YAAY;gBAC/B,aAAa,EAAE,IAAI,CAAC,aAAa;aAClC,CAAC,CAAA;QACJ,CAAC;IACH,CAAC,CAAA;AACH,CAAC;AAED
|
|
1
|
+
{"version":3,"file":"LlmObservabilityService.js","sourceRoot":"","sources":["../../../src/modules/observability/LlmObservabilityService.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,2BAA2B,EAC3B,UAAU,EACV,kBAAkB,EAClB,aAAa,EACb,aAAa,GACd,MAAM,qBAAqB,CAAA;AAe5B,OAAO,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAA;AA2CrF;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,GAAG,GAAG,IAAI,CAAA;AAExC,sEAAsE;AACtE,SAAS,SAAS,CAAC,IAAY;IAC7B,IAAI,IAAI,CAAC,MAAM,IAAI,cAAc;QAAE,OAAO,IAAI,CAAA;IAC9C,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,cAAc,CAAC,iBAAiB,IAAI,CAAC,MAAM,GAAG,cAAc,SAAS,CAAA;AAC/F,CAAC;AAED,oEAAoE;AACpE,MAAM,kBAAkB,GAAG,IAAI,CAAA;AAE/B,sFAAsF;AACtF,MAAM,mBAAmB,GAAiB,EAAE,UAAU,EAAE,EAAE,EAAE,iBAAiB,EAAE,CAAC,EAAE,UAAU,EAAE,EAAE,EAAE,CAAA;AAelG,yFAAyF;AACzF,SAAS,WAAW,CAAC,IAAiB;IACpC,OAAO,OAAO,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,EAAE,CAAA;AACjD,CAAC;AA0DD;;;;;;;;GAQG;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AChB,YAAY,EAAE,IAAI,CAAC,YAAY;QAC/B,UAAU,EAAE,IAAI,CAAC,UAAU;QAC3B,YAAY,EAAE,IAAI,CAAC,YAAY;QAC/B,aAAa,EAAE,IAAI,CAAC,aAAa;KAClC,CAAC,CAAA;AACN,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cat-factory/orchestration",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.177.1",
|
|
4
4
|
"description": "Delivery-workflow engine for the Agent Architecture Board (execution, bootstrap, pipelines, board, boardScan, requirements, and composition root).",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -25,15 +25,15 @@
|
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"ai": "^7.0.37",
|
|
28
|
-
"@cat-factory/agents": "0.
|
|
29
|
-
"@cat-factory/caching": "0.11.
|
|
28
|
+
"@cat-factory/agents": "0.94.0",
|
|
29
|
+
"@cat-factory/caching": "0.11.30",
|
|
30
30
|
"@cat-factory/contracts": "0.202.0",
|
|
31
|
-
"@cat-factory/integrations": "0.113.
|
|
32
|
-
"@cat-factory/kernel": "0.
|
|
31
|
+
"@cat-factory/integrations": "0.113.5",
|
|
32
|
+
"@cat-factory/kernel": "0.201.0",
|
|
33
33
|
"@cat-factory/prompt-fragments": "0.15.25",
|
|
34
|
-
"@cat-factory/sandbox": "0.11.
|
|
35
|
-
"@cat-factory/spend": "0.12.
|
|
36
|
-
"@cat-factory/workspaces": "0.21.
|
|
34
|
+
"@cat-factory/sandbox": "0.11.15",
|
|
35
|
+
"@cat-factory/spend": "0.12.131",
|
|
36
|
+
"@cat-factory/workspaces": "0.21.8"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"typescript": "7.0.2",
|