@cat-factory/server 0.236.0 → 0.237.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.
Files changed (35) hide show
  1. package/dist/agents/ContainerAgentExecutor.d.ts.map +1 -1
  2. package/dist/agents/ContainerAgentExecutor.js +29 -24
  3. package/dist/agents/ContainerAgentExecutor.js.map +1 -1
  4. package/dist/agents/agentContextRecord.d.ts +29 -8
  5. package/dist/agents/agentContextRecord.d.ts.map +1 -1
  6. package/dist/agents/agentContextRecord.js +40 -12
  7. package/dist/agents/agentContextRecord.js.map +1 -1
  8. package/dist/agents/containerAgentBody.d.ts +2 -22
  9. package/dist/agents/containerAgentBody.d.ts.map +1 -1
  10. package/dist/agents/containerAgentBody.js +23 -33
  11. package/dist/agents/containerAgentBody.js.map +1 -1
  12. package/dist/agents/containerAgentResult.d.ts +8 -6
  13. package/dist/agents/containerAgentResult.d.ts.map +1 -1
  14. package/dist/agents/containerAgentResult.js +23 -222
  15. package/dist/agents/containerAgentResult.js.map +1 -1
  16. package/dist/agents/jobBody.d.ts.map +1 -1
  17. package/dist/agents/jobBody.js +113 -216
  18. package/dist/agents/jobBody.js.map +1 -1
  19. package/dist/agents/prompts.d.ts +0 -41
  20. package/dist/agents/prompts.d.ts.map +1 -1
  21. package/dist/agents/prompts.js +10 -99
  22. package/dist/agents/prompts.js.map +1 -1
  23. package/dist/agents/toolServers.d.ts +20 -0
  24. package/dist/agents/toolServers.d.ts.map +1 -1
  25. package/dist/agents/toolServers.js +33 -0
  26. package/dist/agents/toolServers.js.map +1 -1
  27. package/dist/index.d.ts +1 -1
  28. package/dist/index.d.ts.map +1 -1
  29. package/dist/index.js +1 -1
  30. package/dist/index.js.map +1 -1
  31. package/dist/modules/publicApi/openapiDocument.generated.d.ts +1 -1
  32. package/dist/modules/publicApi/openapiDocument.generated.d.ts.map +1 -1
  33. package/dist/modules/publicApi/openapiDocument.generated.js +1 -1
  34. package/dist/modules/publicApi/openapiDocument.generated.js.map +1 -1
  35. package/package.json +8 -8
@@ -1,6 +1,5 @@
1
- import { bugFixGuidanceFor, composeBlockSystemPrompt, EFFORT_REPORT_GUIDANCE, toolServersSection, FOLLOW_UP_GUIDANCE, PR_DESCRIPTION_GUIDANCE, isContainerBackedCompanion, isReadOnlyAgentKind, resolvePrNumber, standardsDeliveredAsFiles, standardsVerbosityFor, userPromptFor, } from '@cat-factory/agents';
2
- import { CI_FIXER_AGENT_KIND, CONFLICT_RESOLVER_AGENT_KIND, FIXER_AGENT_KIND, MERGER_AGENT_KIND, ON_CALL_AGENT_KIND, TESTER_AGENT_KIND, UI_TESTER_AGENT_KIND, } from '@cat-factory/orchestration';
3
- import { MERGE_ASSESSMENT_SHAPE_HINT, mergerMultiRepoUserPrompt, mergerUserPrompt, ON_CALL_ASSESSMENT_SHAPE_HINT, onCallUserPrompt, prBody, TEST_REPORT_SHAPE_HINT, testerInfraSpec, UI_TEST_REPORT_SHAPE_HINT, } from './prompts.js';
1
+ import { bugFixGuidanceFor, composeBlockSystemPrompt, EFFORT_REPORT_GUIDANCE, toolServersSection, FOLLOW_UP_GUIDANCE, PR_DESCRIPTION_GUIDANCE, isContainerBackedCompanion, resolvePrNumber, standardsDeliveredAsFiles, standardsVerbosityFor, userPromptFor, } from '@cat-factory/agents';
2
+ import { prBody, testerInfraSpec } from './prompts.js';
4
3
  import { dispatchSystemPromptFor } from './promptOverrides.js';
5
4
  /**
6
5
  * Build the per-kind harness job body: the shared `common` fields plus ONLY the delta
@@ -12,7 +11,7 @@ import { dispatchSystemPromptFor } from './promptOverrides.js';
12
11
  */
13
12
  export function buildKindBody(context, parts, registry) {
14
13
  // `parts` (common/webTools/workBranch/workBranchReady) is consumed by
15
- // `buildRegisteredAgentBody`/`buildMigratedBuiltInBody`, not directly here.
14
+ // `buildRegisteredAgentBody`, not directly here.
16
15
  const baseRoleSystemPrompt = composeBlockSystemPrompt(
17
16
  // The workspace's own prompt for this kind when it has one, else the shipped base — see
18
17
  // `dispatchSystemPromptFor`, which every container-dispatch prompt assembly rides.
@@ -51,64 +50,47 @@ export function buildKindBody(context, parts, registry) {
51
50
  // no tool servers, so every built-in run's prompt is byte-for-byte unchanged.
52
51
  const tools = toolServersSection(context);
53
52
  const roleSystemPrompt = tools ? `${withSkills}\n\n${tools}` : withSkills;
54
- // A registered (custom or migrated) kind that declares an `agent` step dispatches
55
- // through the generic, manifest-driven `agent` harness kind — no per-kind case here.
56
- // Built-in kinds (below) still carry their bespoke bodies until they are migrated.
57
- const registeredStep = registry.agentStep(context.agentKind);
58
- if (registeredStep) {
59
- return buildRegisteredAgentBody(context, parts, registeredStep, roleSystemPrompt, registry);
60
- }
61
- // Built-in container kinds NOT yet moved onto the public `registerAgentKind` seam, but
62
- // dispatched through the generic `buildRegisteredAgentBody` path via a synthesized
63
- // `AgentStepSpec` (they dispatch `kind:'agent'`, exactly like a registered custom kind,
64
- // with NO bespoke per-kind harness handler) — the Task-5 strangler. Today: the in-place
65
- // fixers (`ci-fixer` / `fixer`, coding-on-PR), the JSON-assessment producers (`merger` /
66
- // `on-call`, read-only structured explore whose assessment is coerced backend-side in
67
- // `toRunResult`), the `tester` (read-only structured explore with docker-compose infra
68
- // stand-up), and the conflict-resolver (coding with a `mergeBase`). The already-migrated
69
- // built-ins (`blueprints` / `spec-writer` / the initiative kinds) are real registrations,
70
- // so the generic `registry.agentStep(...)` path above handles them. The default coder
71
- // dispatches the generic coding agent at the end of this method.
72
- const migrated = buildMigratedBuiltInBody(context, parts, roleSystemPrompt, registry);
73
- if (migrated)
74
- return migrated;
75
- // Container-backed companions (reviewer / doc-reviewer): a read-only explore that clones
76
- // the producer's PR branch and reads the ACTUAL repository (changed files / committed
77
- // document) before rating it, returning the verdict as structured JSON. Surfaced to the
78
- // engine as `result.custom` (the default `toRunResult` branch) and parsed back into a
79
- // CompanionAssessment by `CompanionController.resolveContainerVerdict`. The companion
80
- // review system prompt (which already instructs the JSON shape and, for these kinds, to
81
- // read the checkout) wins in `systemPromptFor`, so no per-kind prompt wiring is needed.
82
- if (isContainerBackedCompanion(context.agentKind, registry)) {
83
- return buildRegisteredAgentBody(context, parts, { surface: 'container-explore', clone: { branch: 'pr' }, output: { kind: 'structured' } }, roleSystemPrompt, registry);
84
- }
85
- // Read-only agents (architect, analysis) explore a real checkout but never edit it:
86
- // they clone a branch, produce a prose report/proposal and return it as `output`,
87
- // making no commit and opening no PR (and unlike a coding run an edit-free run is
88
- // the expected, correct outcome, not a failure). They dispatch through the generic,
89
- // manifest-driven `agent` kind in `explore` mode — the SAME path a registered
90
- // `container-explore` kind takes — instead of a bespoke per-kind harness handler. A
91
- // synthesized read-only step (no clone target ⇒ the shared work-branch fallback, so
92
- // e.g. the architect reads the spec-writer's committed `spec/` and any in-progress
93
- // implementation, falling back to base when no work/PR branch exists) yields a body
94
- // byte-identical to the old `/explore` job, minus only the harness-internal temp-dir
95
- // label. This is the first built-in migrated onto the generic agent surface (the
96
- // Task-5 strangler); the now-dead `/explore` harness handler is deleted in a
97
- // follow-up once parity is confirmed on CI.
98
- if (isReadOnlyAgentKind(context.agentKind)) {
99
- return buildRegisteredAgentBody(context, parts, { surface: 'container-explore' }, roleSystemPrompt, registry);
100
- }
101
- // The default coder (and any other write-and-PR kind): the build-phase role plus the
102
- // block's selected best-practice fragments. Dispatches the generic `container-coding`
103
- // agent onto the deterministic per-task work branch (`clone: 'work'` ⇒ branch off base,
104
- // push the work branch, open a PR). The work-branch name is deterministic per task
105
- // (block), NOT per dispatch — a retry mints a fresh executionId but keeps the blockId —
106
- // so every re-dispatch targets the SAME branch; `runCodingAgent` checkpoints commits to
107
- // it and RESUMES on it if it already exists, so an evicted/failed run's work survives.
108
- // This is behaviour-equivalent to the old bespoke `/run` body (handleAgent coding mode
109
- // is built on the same `runCodingAgent` primitive); the dead `/run` handler is removed
110
- // in the harness-cleanup step.
111
- return buildRegisteredAgentBody(context, parts, { surface: 'container-coding', clone: { branch: 'work' } }, roleSystemPrompt, registry);
53
+ // ONE dispatch path. Every kind the platform ships now DECLARES its container shape on the
54
+ // agent-kind registry (see `@cat-factory/agents` `kinds/built-in-container.ts`), so what a
55
+ // built-in does is data the engine reads through the same seam a deployment's own kind uses:
56
+ // there is no `switch (context.agentKind)` here, and no bespoke per-kind harness handler
57
+ // behind it either. That is the end of the agent-kind strangler.
58
+ return buildRegisteredAgentBody(context, parts, resolveDispatchStep(context.agentKind, registry), roleSystemPrompt, registry);
59
+ }
60
+ /**
61
+ * The default dispatch shape for a container kind that declared none: the implementer's. Branch
62
+ * off base onto the deterministic per-task work branch, push it, open a PR.
63
+ *
64
+ * No built-in reaches it any more this is what a deployment gets for a kind it routed to the
65
+ * container executor without an `agent` spec, and it is the behaviour that path always had.
66
+ */
67
+ const DEFAULT_CONTAINER_STEP = {
68
+ surface: 'container-coding',
69
+ clone: { branch: 'work' },
70
+ };
71
+ /**
72
+ * A container-backed COMPANION's dispatch shape: a read-only explore that clones the producer's
73
+ * PR branch and reads the ACTUAL repository (the changed files, the committed document) before
74
+ * rating it, returning the verdict as structured JSON.
75
+ *
76
+ * Synthesized rather than registered because a companion is a PAIRING (`registerCompanion`)
77
+ * rather than an agent kind: it never appears in `registry.all()`, and giving it a registration
78
+ * would put it in the palette as a placeable block, which it is not. `CompanionController`
79
+ * parses the verdict back out of `result.custom`.
80
+ */
81
+ const CONTAINER_COMPANION_STEP = {
82
+ surface: 'container-explore',
83
+ clone: { branch: 'pr' },
84
+ output: { kind: 'structured' },
85
+ };
86
+ /** The dispatch shape for this kind: its own declaration, the companion shape, else the default. */
87
+ function resolveDispatchStep(kind, registry) {
88
+ const declared = registry.agentStep(kind);
89
+ if (declared)
90
+ return declared;
91
+ if (isContainerBackedCompanion(kind, registry))
92
+ return CONTAINER_COMPANION_STEP;
93
+ return DEFAULT_CONTAINER_STEP;
112
94
  }
113
95
  /**
114
96
  * Forward a kind's structured-output spec into the harness job body as a spreadable
@@ -131,28 +113,65 @@ function structuredOutputField(output) {
131
113
  };
132
114
  }
133
115
  /**
134
- * Build the generic `agent` job body for a registered kind from its declarative
135
- * {@link AgentStepSpec} the single dispatch path that replaces the per-kind cases as
136
- * built-ins migrate. `container-explore` clones a branch read-only and returns prose
137
- * (or, for `output.kind==='structured'`, a parsed `custom` JSON object the kind's
138
- * post-op renders from); `container-coding` clones, edits, pushes and (off the work
139
- * branch) opens a PR. The clone target maps `base`/`pr`/`work` to a concrete branch
140
- * exactly as the built-in bodies do.
116
+ * The resolved checkout facts a kind's own prompt builder may name see kernel's
117
+ * {@link AgentDispatchContext}. Built here, at the one dispatch chokepoint, so a builder can
118
+ * never be handed a branch that differs from the one the job body asks the harness to clone.
141
119
  */
142
- function buildRegisteredAgentBody(context, parts, step, roleSystemPrompt, registry,
120
+ function dispatchContextFor(parts) {
121
+ return {
122
+ baseBranch: parts.repo.baseBranch,
123
+ workBranch: parts.workBranch,
124
+ multiRepo: (parts.peerRepos?.length ?? 0) > 0,
125
+ };
126
+ }
143
127
  /**
144
- * The concrete task prompt. Defaults to the generic `userPromptFor` (block context +
145
- * prior outputs) the same prompt a registered custom kind gets. A migrated built-in
146
- * (merger / on-call) overrides it with its bespoke, JSON-instructing prompt so its
147
- * body matches the old per-kind handler's.
128
+ * Build the generic `agent` job body for a kind from its declarative {@link AgentStepSpec} —
129
+ * the single dispatch path, taken by every built-in and every deployment-registered kind alike.
130
+ * `container-explore` clones a branch read-only and returns prose (or, for
131
+ * `output.kind==='structured'`, a parsed `custom` JSON object the kind's post-op renders from);
132
+ * `container-coding` clones, edits, pushes and (off the work branch) opens a PR. The clone target
133
+ * maps `base`/`pr`/`work` to a concrete branch.
148
134
  */
149
- userPrompt = userPromptFor(context, registry, { materialized: true })) {
135
+ function buildRegisteredAgentBody(context, parts, step, roleSystemPrompt, registry) {
136
+ // The kind's own prompt when it declared one (the merger's diff instructions, the
137
+ // conflict-resolver's compact task reference), else the generic block-context prompt. Both
138
+ // resolve inside `userPromptFor`, so this layer names no kind.
139
+ const userPrompt = userPromptFor(context, registry, {
140
+ materialized: true,
141
+ dispatch: dispatchContextFor(parts),
142
+ });
150
143
  // Two mutually-exclusive surfaces, split into their own builders so each stays within the
151
144
  // cyclomatic-complexity budget (the shared branch prelude is cheap enough to recompute in each).
152
145
  return step.surface === 'container-coding'
153
146
  ? buildCodingAgentBody(context, parts, step, roleSystemPrompt, userPrompt)
154
147
  : buildExploreAgentBody(context, parts, step, roleSystemPrompt, userPrompt);
155
148
  }
149
+ /**
150
+ * Resolve an in-place (`pr`-targeting) coding dispatch to its concrete clone + push branches,
151
+ * honouring the step's declared preconditions.
152
+ *
153
+ * `requirePr` WITHDRAWS the base-branch fallback: a kind that works in place on an existing pull
154
+ * request has nothing to do without one, and quietly cloning base would push its commits onto the
155
+ * default branch. The dispatch fails loudly instead. `prFallback: 'work'` keeps one narrower
156
+ * fallback for that case — the shared per-task work branch every repo's PR rides, which is the
157
+ * right target when the OWN service had no change (so no own `pullRequest`) but a PEER repo did.
158
+ */
159
+ function resolveInPlaceBranches(context, parts, step) {
160
+ const prBranch = context.block.pullRequest?.branch;
161
+ const toWorkBranch = step.clone?.prFallback === 'work';
162
+ if (!step.clone?.requirePr) {
163
+ // No precondition declared: clone whatever exists (base when there is no PR yet) and push to
164
+ // the work branch, so a kind that reaches this path without a PR still lands its commits on
165
+ // a branch of its own rather than on base.
166
+ return { clone: prBranch ?? parts.repo.baseBranch, push: prBranch ?? parts.workBranch };
167
+ }
168
+ const resolved = prBranch ?? (toWorkBranch ? parts.workBranch : undefined);
169
+ if (!resolved) {
170
+ throw new Error(`The \`${context.agentKind}\` step needs the implementation pull request's branch to ` +
171
+ 'work on, and this block has none.');
172
+ }
173
+ return { clone: resolved, push: resolved };
174
+ }
156
175
  /**
157
176
  * The optional sibling-checkout legs of a coding job: the multi-repo peer repos (each opening the
158
177
  * SAME work branch + an equivalent PR when this kind opens PRs, otherwise resumed in place / seeded
@@ -241,6 +260,9 @@ function buildCodingAgentBody(context, parts, step, roleSystemPrompt, userPrompt
241
260
  // yet falls back to the work-branch open-a-PR flow (coder-like) below — so one kind serves both
242
261
  // a BAU pipeline step (amend the coder's PR) and a standalone/initiative run (open its own PR).
243
262
  const onPr = step.clone?.branch === 'pr' || (step.clone?.branch === 'pr-or-work' && Boolean(prBranch));
263
+ // The concrete in-place branches, honouring the step's `requirePr` / `prFallback` declarations.
264
+ // Resolved once here so the clone, the push target and the refusal cannot disagree.
265
+ const inPlace = onPr ? resolveInPlaceBranches(context, parts, step) : undefined;
244
266
  {
245
267
  // `pr` clone ⇒ work in place on the PR branch and push back (fixer-like, no new PR);
246
268
  // otherwise branch off base onto the work branch, push it and open a PR (coder-like).
@@ -277,9 +299,13 @@ function buildCodingAgentBody(context, parts, step, roleSystemPrompt, userPrompt
277
299
  opensPr ? PR_DESCRIPTION_GUIDANCE : undefined,
278
300
  ]),
279
301
  userPrompt,
280
- branch: onPr ? (prBranch ?? repo.baseBranch) : repo.baseBranch,
302
+ branch: inPlace ? inPlace.clone : repo.baseBranch,
281
303
  ...(onPr ? {} : { newBranch: workBranch }),
282
- pushBranch: onPr ? (prBranch ?? workBranch) : workBranch,
304
+ pushBranch: inPlace ? inPlace.push : workBranch,
305
+ // Merge the repo's base branch in before the agent runs, so the conflict hunks are in the
306
+ // working tree for it to resolve; the harness completes the merge commit and pushes back
307
+ // onto the same branch, refusing a half-resolved tree (the conflict-resolver).
308
+ ...(step.clone?.mergeBase ? { mergeBase: repo.baseBranch } : {}),
283
309
  ...(opensPr ? { pr } : {}),
284
310
  ...(noChangesIsError ? {} : { noChangesIsError: false }),
285
311
  ...(peerRepos ? { peerRepos } : {}),
@@ -379,6 +405,16 @@ function buildExploreAgentBody(context, parts, step, roleSystemPrompt, userPromp
379
405
  ...(step.clone?.full ? { full: true } : {}),
380
406
  ...(reviewPrNumber !== undefined ? { reviewPrNumber } : {}),
381
407
  ...structuredOutputField(step.output),
408
+ // The tester family: stand the service's declared test dependencies up around the run
409
+ // (locally via docker-compose, or against the environment this run provisioned — the
410
+ // frame's capability profile decides which) and hand the step's resolved test secrets to
411
+ // the suite. Derived per run, so a kind declares only that it needs one.
412
+ ...(step.testInfra
413
+ ? {
414
+ infra: testerInfraSpec(context),
415
+ ...(parts.testSecretEnv?.length ? { testSecrets: parts.testSecretEnv } : {}),
416
+ }
417
+ : {}),
382
418
  ...webTools,
383
419
  },
384
420
  };
@@ -620,143 +656,4 @@ export function renderReferenceBranchesSection(branches, opts = {}) {
620
656
  }
621
657
  return lines.join('\n');
622
658
  }
623
- /**
624
- * Build the generic `agent` body for a BUILT-IN container kind being migrated onto the
625
- * manifest-driven path (the Task-5 strangler), or undefined when `context.agentKind` is
626
- * not a migrated built-in (the caller falls through to the remaining bespoke switch). Each
627
- * migrated kind is expressed as a synthesized {@link AgentStepSpec} routed through
628
- * {@link buildRegisteredAgentBody} — the SAME dispatch a registered custom kind takes — so
629
- * there is no bespoke harness handler:
630
- * - `ci-fixer` / `fixer`: coding-on-PR (clone the PR branch, push back, no new PR; a
631
- * no-op is non-fatal). Requires the implementation PR branch.
632
- * - `merger` / `on-call`: read-only structured explore (full clone) that returns ONLY a
633
- * JSON assessment; the conservative coercion that used to live in the harness runs
634
- * backend-side in {@link toRunResult}.
635
- * - `conflict-resolver`: coding (full clone of the PR branch) with a `mergeBase` — the
636
- * harness merges the base in to surface the conflicts, the agent resolves them, and the
637
- * harness completes the merge commit + pushes back onto the same branch (no new PR).
638
- */
639
- function buildMigratedBuiltInBody(context, parts, roleSystemPrompt, registry) {
640
- const { repo } = parts;
641
- const prBranch = context.block.pullRequest?.branch;
642
- switch (context.agentKind) {
643
- // In-place fixers: clone the PR head branch, push fixes back onto it (no new PR);
644
- // a no-op run is a clean non-event (the gate/loop re-checks the real signal).
645
- case CI_FIXER_AGENT_KIND:
646
- if (!prBranch)
647
- throw new Error('CI-fixer needs the implementation PR branch to push fixes to');
648
- return buildRegisteredAgentBody(context, parts, { surface: 'container-coding', clone: { branch: 'pr' } }, roleSystemPrompt, registry);
649
- case FIXER_AGENT_KIND:
650
- if (!prBranch)
651
- throw new Error('Fixer needs the implementation PR branch to push fixes to');
652
- return buildRegisteredAgentBody(context, parts, { surface: 'container-coding', clone: { branch: 'pr' } }, roleSystemPrompt, registry);
653
- // The conflict-resolver clones the PR head branch (full history), merges the base in
654
- // to surface the conflicts, resolves them and pushes back onto the SAME branch (no new
655
- // branch / PR) so the PR becomes mergeable and CI re-runs. It dispatches the generic
656
- // coding agent with a `mergeBase` (the harness merges `origin/<mergeBase>` in before the
657
- // agent runs); the harness leads the prompt with the actual conflict hunks it discovers.
658
- //
659
- // Unlike the CI-fixer it is deliberately NOT given `userPromptFor(context)`: that renders
660
- // the full task brief + every prior agent's output (the spec-writer's whole spec, etc.),
661
- // which buries the one-line "resolve a conflict" role and drifts the model onto
662
- // re-implementing the feature (observed in prod: a resolver that returned a "test report
663
- // is ready" answer and never touched the markers). The backend supplies only a compact
664
- // task reference for intent.
665
- case CONFLICT_RESOLVER_AGENT_KIND: {
666
- // The branch to resolve on is the shared per-task work branch every repo's PR rides
667
- // (`cat-factory/<blockId>`, opened via `newBranch: workBranch` for the own service AND
668
- // every peer). The own PR's recorded branch equals it by construction; `parts.workBranch`
669
- // is the robust value when the OWN service had no change (no own `pullRequest`) but a
670
- // PEER repo did (the peer-conflict case — `parts.repo` was swapped to that peer upstream).
671
- const resolveBranch = prBranch ?? parts.workBranch;
672
- if (!resolveBranch) {
673
- throw new Error('Conflict-resolver needs the implementation PR branch to resolve conflicts on');
674
- }
675
- const description = context.block.description?.trim();
676
- const built = buildRegisteredAgentBody(context, parts, { surface: 'container-coding', clone: { branch: 'pr', full: true } }, roleSystemPrompt, registry, `Task: ${context.block.title}${description ? `\n\n${description}` : ''}`);
677
- // Pin the clone/push branch to the resolved work branch (the generic `pr`-clone path falls
678
- // back to the base branch when there is no own PR, which would clone the wrong ref for a
679
- // peer-only conflict) and merge THIS repo's base in to surface the conflicts.
680
- return {
681
- kind: built.kind,
682
- body: {
683
- ...built.body,
684
- branch: resolveBranch,
685
- pushBranch: resolveBranch,
686
- mergeBase: repo.baseBranch,
687
- },
688
- };
689
- }
690
- // The merger clones the PR head (full, to diff vs base) and returns ONLY the
691
- // complexity/risk/impact assessment JSON; the engine performs the real merge. On a MULTI-REPO
692
- // task (`parts.peerRepos` set) it clones each peer PR's repo as a read-only full sibling too
693
- // (the explore fan-out) and scores the COMBINED diff — the section naming the sibling
694
- // checkouts + per-repo diff commands is appended to the system prompt by the explore builder.
695
- case MERGER_AGENT_KIND: {
696
- const multiRepo = (parts.peerRepos?.length ?? 0) > 0;
697
- return buildRegisteredAgentBody(context, parts, {
698
- surface: 'container-explore',
699
- clone: { branch: 'pr', full: true },
700
- output: { kind: 'structured', shapeHint: MERGE_ASSESSMENT_SHAPE_HINT },
701
- }, dispatchSystemPromptFor(context, registry), registry, multiRepo ? mergerMultiRepoUserPrompt(context) : mergerUserPrompt(context, repo));
702
- }
703
- // The on-call agent clones the BASE branch (full, to locate + diff the merged
704
- // release commit) and returns ONLY the regression assessment JSON. It is
705
- // `code-aware` (it reads the released code to correlate the diff with the
706
- // evidence), so the service's resolved best-practice fragments are folded into
707
- // its bespoke system prompt — the shared `roleSystemPrompt` is bypassed here.
708
- case ON_CALL_AGENT_KIND:
709
- return buildRegisteredAgentBody(context, parts, {
710
- surface: 'container-explore',
711
- clone: { branch: 'base', full: true },
712
- output: { kind: 'structured', shapeHint: ON_CALL_ASSESSMENT_SHAPE_HINT },
713
- }, composeBlockSystemPrompt(dispatchSystemPromptFor(context, registry), context.block, registry.standardsDelivery(context.agentKind), standardsDeliveredAsFiles(context.injectedContextFiles), standardsVerbosityFor(context.agentKind, registry)), registry, onCallUserPrompt(context, repo, registry));
714
- // The tester clones the PR head branch (read-only — it makes NO commits), stands up
715
- // its dependencies (locally via the service's docker-compose, or against the
716
- // provisioned ephemeral env — the service's declared provision type picks which) and
717
- // returns ONLY a structured JSON report. It runs as a generic structured explore with
718
- // an `infra` spec the harness uses to stand the docker-compose dependencies up for the
719
- // run; `toRunResult` coerces the JSON into `testReport` (the conservative greenlight /
720
- // blocking-concern rule the harness applied now runs backend-side, and the engine's
721
- // TesterController re-applies it). The role prompt + the run-mode/ephemeral-URL guidance
722
- // come from the standard `roleSystemPrompt` + `userPromptFor` (which already carry them),
723
- // so the harness adds none. The engine loops the `fixer` on a withheld greenlight.
724
- case TESTER_AGENT_KIND: {
725
- const built = buildRegisteredAgentBody(context, parts, {
726
- surface: 'container-explore',
727
- clone: { branch: 'pr' },
728
- output: { kind: 'structured', shapeHint: TEST_REPORT_SHAPE_HINT },
729
- }, roleSystemPrompt, registry);
730
- return {
731
- kind: built.kind,
732
- body: {
733
- ...built.body,
734
- infra: testerInfraSpec(context),
735
- ...(parts.testSecretEnv?.length ? { testSecrets: parts.testSecretEnv } : {}),
736
- },
737
- };
738
- }
739
- // The UI tester is the Tester's browser-driven sibling: same read-only structured
740
- // explore + infra stand-up, but it drives Playwright (supplied by the UI-tester
741
- // image, routed via the `image:'ui'` dispatch option) to capture a non-redundant
742
- // screenshot of each distinct view, uploads them to the artifact store, and reports
743
- // them under `screenshots[]`. The role prompt carries the capture guidance.
744
- case UI_TESTER_AGENT_KIND: {
745
- const built = buildRegisteredAgentBody(context, parts, {
746
- surface: 'container-explore',
747
- clone: { branch: 'pr' },
748
- output: { kind: 'structured', shapeHint: UI_TEST_REPORT_SHAPE_HINT },
749
- }, roleSystemPrompt, registry);
750
- return {
751
- kind: built.kind,
752
- body: {
753
- ...built.body,
754
- infra: testerInfraSpec(context),
755
- ...(parts.testSecretEnv?.length ? { testSecrets: parts.testSecretEnv } : {}),
756
- },
757
- };
758
- }
759
- }
760
- return undefined;
761
- }
762
659
  //# sourceMappingURL=jobBody.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"jobBody.js","sourceRoot":"","sources":["../../src/agents/jobBody.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,iBAAiB,EACjB,wBAAwB,EACxB,sBAAsB,EACtB,kBAAkB,EAClB,kBAAkB,EAClB,uBAAuB,EACvB,0BAA0B,EAC1B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CAAA;IACD,KAAK,MAAM,MAAM,IAAI,QAAQ,EAAE,CAAC;QAC9B,MAAM,IAAI,GAAG,mBAAmB,CAAC,MAAM,CAAC,CAAA;QACxC,KAAK,CAAC,IAAI,CACR,OAAO,MAAM,qCAAqC,MAAM,MAAM;YAC5D,qBAAqB,MAAM,kEAAkE;YAC7F,qBAAqB,MAAM,sDAAsD;YACjF,qCAAqC,IAAI,WAAW,MAAM,KAAK,CAClE,CAAA;IACH,CAAC;IACD,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;AACzB,CAAC"}
@@ -1,45 +1,4 @@
1
1
  import { type AgentRunContext } from '@cat-factory/kernel';
2
- import { type AgentKindRegistry } from '@cat-factory/agents';
3
- import type { RepoTarget } from './ContainerAgentExecutor.js';
4
- /**
5
- * The role/system prompts, structured-output shape hints, and per-kind user-prompt
6
- * builders for the built-in container agent kinds the {@link ContainerAgentExecutor}
7
- * dispatches through the generic `agent` harness surface but that are NOT yet real
8
- * `registerAgentKind` entries (merger / on-call / tester). Extracted verbatim from
9
- * `ContainerAgentExecutor.ts` so the prompt material lives in one cohesive unit; the
10
- * executor imports it at its original call sites. Pure strings + pure builder functions —
11
- * no executor state. (The migrated `blueprints` / `spec-writer` prompts now live with their
12
- * definitions in `@cat-factory/agents` — `agents/kinds/spec-blueprints.ts`.)
13
- */
14
- /** Compact shape hint fed to the structured-output repair call for the merger assessment. */
15
- export declare const MERGE_ASSESSMENT_SHAPE_HINT: string;
16
- /** Compact shape hint fed to the structured-output repair call for the on-call assessment. */
17
- export declare const ON_CALL_ASSESSMENT_SHAPE_HINT: string;
18
- /** Compact shape hint fed to the structured-output repair call for the tester report. */
19
- export declare const TEST_REPORT_SHAPE_HINT: string;
20
- /** Shape hint for the UI tester: a test report that also lists captured screenshots. */
21
- export declare const UI_TEST_REPORT_SHAPE_HINT: string;
22
- /**
23
- * The merger's task prompt — the instructions + diff guidance the bespoke harness `/merge`
24
- * handler used to build. Kept backend-side now that the merger dispatches the generic
25
- * explore agent. Names the PR/branches so the agent diffs against the right base.
26
- */
27
- export declare function mergerUserPrompt(context: AgentRunContext, repo: RepoTarget): string;
28
- /**
29
- * The merger's task prompt for a MULTI-REPO task (service-connections phase 4): the change is one
30
- * PR per repo, each checked out as a read-only sibling on its PR branch. The exact per-repo diff
31
- * commands + sibling directories live in the "Multi-repo pull request" system-prompt section
32
- * (rendered by `renderMergerMultiRepoSection`), so this prompt just tells the agent to run them and
33
- * score the COMBINED cross-repo change as ONE assessment.
34
- */
35
- export declare function mergerMultiRepoUserPrompt(context: AgentRunContext): string;
36
- /**
37
- * The on-call agent's task prompt — the regression evidence (the generic block/prior-output
38
- * prompt) plus the locate-the-merged-commit guidance the bespoke harness `/on-call` handler
39
- * used to build. The released PR already merged into the base branch (its work branch is
40
- * gone), so the agent is on the base branch and is told how to find the merged commit.
41
- */
42
- export declare function onCallUserPrompt(context: AgentRunContext, repo: RepoTarget, registry: AgentKindRegistry): string;
43
2
  export declare function testerInfraSpec(context: AgentRunContext): Record<string, unknown>;
44
3
  /**
45
4
  * The harness `frontend` infra spec for a self-contained UI test, from the frame's resolved
@@ -1 +1 @@
1
- {"version":3,"file":"prompts.d.ts","sourceRoot":"","sources":["../../src/agents/prompts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,eAAe,EAAgB,MAAM,qBAAqB,CAAA;AACxE,OAAO,EAAE,KAAK,iBAAiB,EAAiB,MAAM,qBAAqB,CAAA;AAM3E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAA;AAE7D;;;;;;;;;GASG;AASH,6FAA6F;AAC7F,eAAO,MAAM,2BAA2B,QAEQ,CAAA;AAEhD,8FAA8F;AAC9F,eAAO,MAAM,6BAA6B,QAEgC,CAAA;AAE1E,yFAAyF;AACzF,eAAO,MAAM,sBAAsB,QAGkE,CAAA;AAErG,wFAAwF;AACxF,eAAO,MAAM,yBAAyB,QAGiD,CAAA;AAEvF;;;;GAIG;AACH,wBA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