@cat-factory/server 0.49.4 → 0.49.6
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/agents/ContainerAgentExecutor.d.ts +0 -36
- package/dist/agents/ContainerAgentExecutor.d.ts.map +1 -1
- package/dist/agents/ContainerAgentExecutor.js +4 -295
- package/dist/agents/ContainerAgentExecutor.js.map +1 -1
- package/dist/agents/jobBody.d.ts +73 -0
- package/dist/agents/jobBody.d.ts.map +1 -0
- package/dist/agents/jobBody.js +295 -0
- package/dist/agents/jobBody.js.map +1 -0
- package/package.json +6 -6
|
@@ -283,41 +283,5 @@ export declare class ContainerAgentExecutor implements AsyncAgentExecutor {
|
|
|
283
283
|
* (`common`) so the per-kind bodies can't drift on which auth they forward.
|
|
284
284
|
*/
|
|
285
285
|
private resolveAuth;
|
|
286
|
-
/**
|
|
287
|
-
* Build the per-kind harness job body: the shared `common` fields plus ONLY the delta
|
|
288
|
-
* specific to this kind's harness endpoint (its prompts, the branch it runs on, and
|
|
289
|
-
* any per-kind extras), and the matching dispatch `kind`. The web-search fields live
|
|
290
|
-
* in `webTools` (shared by the kinds that allow web access). The dispatch precedence
|
|
291
|
-
* matches the original if-ladder exactly: the specific kinds first, then any read-only
|
|
292
|
-
* kind, then the default coder body.
|
|
293
|
-
*/
|
|
294
|
-
private buildKindBody;
|
|
295
|
-
/**
|
|
296
|
-
* Build the generic `agent` job body for a registered kind from its declarative
|
|
297
|
-
* {@link AgentStepSpec} — the single dispatch path that replaces the per-kind cases as
|
|
298
|
-
* built-ins migrate. `container-explore` clones a branch read-only and returns prose
|
|
299
|
-
* (or, for `output.kind==='structured'`, a parsed `custom` JSON object the kind's
|
|
300
|
-
* post-op renders from); `container-coding` clones, edits, pushes and (off the work
|
|
301
|
-
* branch) opens a PR. The clone target maps `base`/`pr`/`work` to a concrete branch
|
|
302
|
-
* exactly as the built-in bodies do.
|
|
303
|
-
*/
|
|
304
|
-
private buildRegisteredAgentBody;
|
|
305
|
-
/**
|
|
306
|
-
* Build the generic `agent` body for a BUILT-IN container kind being migrated onto the
|
|
307
|
-
* manifest-driven path (the Task-5 strangler), or undefined when `context.agentKind` is
|
|
308
|
-
* not a migrated built-in (the caller falls through to the remaining bespoke switch). Each
|
|
309
|
-
* migrated kind is expressed as a synthesized {@link AgentStepSpec} routed through
|
|
310
|
-
* {@link buildRegisteredAgentBody} — the SAME dispatch a registered custom kind takes — so
|
|
311
|
-
* there is no bespoke harness handler:
|
|
312
|
-
* - `ci-fixer` / `fixer`: coding-on-PR (clone the PR branch, push back, no new PR; a
|
|
313
|
-
* no-op is non-fatal). Requires the implementation PR branch.
|
|
314
|
-
* - `merger` / `on-call`: read-only structured explore (full clone) that returns ONLY a
|
|
315
|
-
* JSON assessment; the conservative coercion that used to live in the harness runs
|
|
316
|
-
* backend-side in {@link toRunResult}.
|
|
317
|
-
* - `conflict-resolver`: coding (full clone of the PR branch) with a `mergeBase` — the
|
|
318
|
-
* harness merges the base in to surface the conflicts, the agent resolves them, and the
|
|
319
|
-
* harness completes the merge commit + pushes back onto the same branch (no new PR).
|
|
320
|
-
*/
|
|
321
|
-
private buildMigratedBuiltInBody;
|
|
322
286
|
}
|
|
323
287
|
//# sourceMappingURL=ContainerAgentExecutor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContainerAgentExecutor.d.ts","sourceRoot":"","sources":["../../src/agents/ContainerAgentExecutor.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,oBAAoB,EACzB,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,kBAAkB,EACvB,KAAK,WAAW,EAChB,KAAK,YAAY,EACjB,KAAK,QAAQ,EAKb,KAAK,kBAAkB,EACxB,MAAM,qBAAqB,CAAA;AAS5B,OAAO,EACL,KAAK,YAAY,
|
|
1
|
+
{"version":3,"file":"ContainerAgentExecutor.d.ts","sourceRo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
|
|
|
1
1
|
import {} from '@cat-factory/kernel';
|
|
2
2
|
import { CONTEXT_BUDGET, CredentialRequiredError, renderTaskContext, SUBSCRIPTION_VENDORS, isIndividualVendor, } from '@cat-factory/kernel';
|
|
3
3
|
import { resolveInstanceTypeId } from '@cat-factory/contracts';
|
|
4
|
-
import { agentTuningFor,
|
|
4
|
+
import { agentTuningFor, isProxyableProvider, isReadOnlyAgentKind, webResearchGuidanceFor, } from '@cat-factory/agents';
|
|
5
5
|
import { ModelRouter } from './ModelRouter.js';
|
|
6
6
|
import { toRunResult } from './containerAgentResult.js';
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
7
|
+
import { buildKindBody } from './jobBody.js';
|
|
8
|
+
import { UI_TESTER_AGENT_KIND } from '@cat-factory/orchestration';
|
|
9
9
|
import { RunnerJobClient } from './RunnerJobClient.js';
|
|
10
10
|
/**
|
|
11
11
|
* The repo spec every container job body carries: clone coordinates plus, for a
|
|
@@ -557,7 +557,7 @@ export class ContainerAgentExecutor {
|
|
|
557
557
|
webToolsGuidance: webResearchGuidanceFor(context.agentKind, { fetch: true }),
|
|
558
558
|
...(webSearchEnabled ? { webSearch: true } : {}),
|
|
559
559
|
};
|
|
560
|
-
const { body, kind } =
|
|
560
|
+
const { body, kind } = buildKindBody(promptContext, {
|
|
561
561
|
common,
|
|
562
562
|
webTools,
|
|
563
563
|
repo,
|
|
@@ -649,296 +649,5 @@ export class ContainerAgentExecutor {
|
|
|
649
649
|
...(subscriptionTokenId ? { subscriptionTokenId } : {}),
|
|
650
650
|
};
|
|
651
651
|
}
|
|
652
|
-
/**
|
|
653
|
-
* Build the per-kind harness job body: the shared `common` fields plus ONLY the delta
|
|
654
|
-
* specific to this kind's harness endpoint (its prompts, the branch it runs on, and
|
|
655
|
-
* any per-kind extras), and the matching dispatch `kind`. The web-search fields live
|
|
656
|
-
* in `webTools` (shared by the kinds that allow web access). The dispatch precedence
|
|
657
|
-
* matches the original if-ladder exactly: the specific kinds first, then any read-only
|
|
658
|
-
* kind, then the default coder body.
|
|
659
|
-
*/
|
|
660
|
-
buildKindBody(context, parts) {
|
|
661
|
-
// `parts` (common/webTools/workBranch/workBranchReady) is consumed by
|
|
662
|
-
// `buildRegisteredAgentBody`/`buildMigratedBuiltInBody`, not directly here.
|
|
663
|
-
const baseRoleSystemPrompt = composeBlockSystemPrompt(systemPromptFor(context.agentKind), context.block);
|
|
664
|
-
// When the future-looking Follow-up companion is enabled for this (coder) step, append
|
|
665
|
-
// the guidance that tells the Coder to stream loose-ends / side-tasks / questions to the
|
|
666
|
-
// sentinel file the harness tails. Only when enabled, so a disabled companion (or any
|
|
667
|
-
// other kind) never writes the file.
|
|
668
|
-
const roleSystemPrompt = context.followUpCompanion
|
|
669
|
-
? `${baseRoleSystemPrompt}\n\n${FOLLOW_UP_GUIDANCE}`
|
|
670
|
-
: baseRoleSystemPrompt;
|
|
671
|
-
// A registered (custom or migrated) kind that declares an `agent` step dispatches
|
|
672
|
-
// through the generic, manifest-driven `agent` harness kind — no per-kind case here.
|
|
673
|
-
// Built-in kinds (below) still carry their bespoke bodies until they are migrated.
|
|
674
|
-
const registeredStep = registeredAgentStep(context.agentKind);
|
|
675
|
-
if (registeredStep) {
|
|
676
|
-
return this.buildRegisteredAgentBody(context, parts, registeredStep, roleSystemPrompt);
|
|
677
|
-
}
|
|
678
|
-
// Built-in container kinds migrated onto the generic, manifest-driven `agent` harness
|
|
679
|
-
// kind (they dispatch `kind:'agent'` through `buildRegisteredAgentBody`, exactly like a
|
|
680
|
-
// registered custom kind, with NO bespoke per-kind harness handler) — the Task-5
|
|
681
|
-
// strangler. Today: blueprints/spec-writer (structured explore + render post-op), the
|
|
682
|
-
// in-place fixers (`ci-fixer` / `fixer`, coding-on-PR), the JSON-assessment producers
|
|
683
|
-
// (`merger` / `on-call`, read-only structured explore whose assessment is coerced
|
|
684
|
-
// backend-side in `toRunResult`), the `tester` (read-only structured explore with
|
|
685
|
-
// docker-compose infra stand-up), and the conflict-resolver (coding with a `mergeBase`).
|
|
686
|
-
// The default coder dispatches the generic coding agent at the end of this method.
|
|
687
|
-
const migrated = this.buildMigratedBuiltInBody(context, parts, roleSystemPrompt);
|
|
688
|
-
if (migrated)
|
|
689
|
-
return migrated;
|
|
690
|
-
// Container-backed companions (reviewer / doc-reviewer): a read-only explore that clones
|
|
691
|
-
// the producer's PR branch and reads the ACTUAL repository (changed files / committed
|
|
692
|
-
// document) before rating it, returning the verdict as structured JSON. Surfaced to the
|
|
693
|
-
// engine as `result.custom` (the default `toRunResult` branch) and parsed back into a
|
|
694
|
-
// CompanionAssessment by `CompanionController.resolveContainerVerdict`. The companion
|
|
695
|
-
// review system prompt (which already instructs the JSON shape and, for these kinds, to
|
|
696
|
-
// read the checkout) wins in `systemPromptFor`, so no per-kind prompt wiring is needed.
|
|
697
|
-
if (isContainerBackedCompanion(context.agentKind)) {
|
|
698
|
-
return this.buildRegisteredAgentBody(context, parts, { surface: 'container-explore', clone: { branch: 'pr' }, output: { kind: 'structured' } }, roleSystemPrompt);
|
|
699
|
-
}
|
|
700
|
-
// Read-only agents (architect, analysis) explore a real checkout but never edit it:
|
|
701
|
-
// they clone a branch, produce a prose report/proposal and return it as `output`,
|
|
702
|
-
// making no commit and opening no PR (and — unlike a coding run — an edit-free run is
|
|
703
|
-
// the expected, correct outcome, not a failure). They dispatch through the generic,
|
|
704
|
-
// manifest-driven `agent` kind in `explore` mode — the SAME path a registered
|
|
705
|
-
// `container-explore` kind takes — instead of a bespoke per-kind harness handler. A
|
|
706
|
-
// synthesized read-only step (no clone target ⇒ the shared work-branch fallback, so
|
|
707
|
-
// e.g. the architect reads the spec-writer's committed `spec/` and any in-progress
|
|
708
|
-
// implementation, falling back to base when no work/PR branch exists) yields a body
|
|
709
|
-
// byte-identical to the old `/explore` job, minus only the harness-internal temp-dir
|
|
710
|
-
// label. This is the first built-in migrated onto the generic agent surface (the
|
|
711
|
-
// Task-5 strangler); the now-dead `/explore` harness handler is deleted in a
|
|
712
|
-
// follow-up once parity is confirmed on CI.
|
|
713
|
-
if (isReadOnlyAgentKind(context.agentKind)) {
|
|
714
|
-
return this.buildRegisteredAgentBody(context, parts, { surface: 'container-explore' }, roleSystemPrompt);
|
|
715
|
-
}
|
|
716
|
-
// The default coder (and any other write-and-PR kind): the build-phase role plus the
|
|
717
|
-
// block's selected best-practice fragments. Dispatches the generic `container-coding`
|
|
718
|
-
// agent onto the deterministic per-task work branch (`clone: 'work'` ⇒ branch off base,
|
|
719
|
-
// push the work branch, open a PR). The work-branch name is deterministic per task
|
|
720
|
-
// (block), NOT per dispatch — a retry mints a fresh executionId but keeps the blockId —
|
|
721
|
-
// so every re-dispatch targets the SAME branch; `runCodingAgent` checkpoints commits to
|
|
722
|
-
// it and RESUMES on it if it already exists, so an evicted/failed run's work survives.
|
|
723
|
-
// This is behaviour-equivalent to the old bespoke `/run` body (handleAgent coding mode
|
|
724
|
-
// is built on the same `runCodingAgent` primitive); the dead `/run` handler is removed
|
|
725
|
-
// in the harness-cleanup step.
|
|
726
|
-
return this.buildRegisteredAgentBody(context, parts, { surface: 'container-coding', clone: { branch: 'work' } }, roleSystemPrompt);
|
|
727
|
-
}
|
|
728
|
-
/**
|
|
729
|
-
* Build the generic `agent` job body for a registered kind from its declarative
|
|
730
|
-
* {@link AgentStepSpec} — the single dispatch path that replaces the per-kind cases as
|
|
731
|
-
* built-ins migrate. `container-explore` clones a branch read-only and returns prose
|
|
732
|
-
* (or, for `output.kind==='structured'`, a parsed `custom` JSON object the kind's
|
|
733
|
-
* post-op renders from); `container-coding` clones, edits, pushes and (off the work
|
|
734
|
-
* branch) opens a PR. The clone target maps `base`/`pr`/`work` to a concrete branch
|
|
735
|
-
* exactly as the built-in bodies do.
|
|
736
|
-
*/
|
|
737
|
-
buildRegisteredAgentBody(context, parts, step, roleSystemPrompt,
|
|
738
|
-
/**
|
|
739
|
-
* The concrete task prompt. Defaults to the generic `userPromptFor` (block context +
|
|
740
|
-
* prior outputs) — the same prompt a registered custom kind gets. A migrated built-in
|
|
741
|
-
* (merger / on-call) overrides it with its bespoke, JSON-instructing prompt so its
|
|
742
|
-
* body matches the old per-kind handler's.
|
|
743
|
-
*/
|
|
744
|
-
userPrompt = userPromptFor(context, { materialized: true })) {
|
|
745
|
-
const { common, webTools, repo, workBranch, workBranchReady } = parts;
|
|
746
|
-
const prBranch = context.block.pullRequest?.branch;
|
|
747
|
-
const onPr = step.clone?.branch === 'pr';
|
|
748
|
-
const exploreBranch = step.clone?.branch === 'base'
|
|
749
|
-
? repo.baseBranch
|
|
750
|
-
: onPr
|
|
751
|
-
? (prBranch ?? repo.baseBranch)
|
|
752
|
-
: workBranchReady
|
|
753
|
-
? workBranch
|
|
754
|
-
: (prBranch ?? repo.baseBranch);
|
|
755
|
-
if (step.surface === 'container-coding') {
|
|
756
|
-
// `pr` clone ⇒ work in place on the PR branch and push back (fixer-like, no new PR);
|
|
757
|
-
// otherwise branch off base onto the work branch, push it and open a PR (coder-like).
|
|
758
|
-
return {
|
|
759
|
-
kind: 'agent',
|
|
760
|
-
body: {
|
|
761
|
-
...common,
|
|
762
|
-
mode: 'coding',
|
|
763
|
-
systemPrompt: roleSystemPrompt,
|
|
764
|
-
userPrompt,
|
|
765
|
-
branch: onPr ? (prBranch ?? repo.baseBranch) : repo.baseBranch,
|
|
766
|
-
...(onPr ? {} : { newBranch: workBranch }),
|
|
767
|
-
pushBranch: onPr ? (prBranch ?? workBranch) : workBranch,
|
|
768
|
-
...(onPr
|
|
769
|
-
? { noChangesIsError: false }
|
|
770
|
-
: {
|
|
771
|
-
pr: {
|
|
772
|
-
title: `${context.block.title} (${context.pipelineName})`,
|
|
773
|
-
body: prBody(context),
|
|
774
|
-
},
|
|
775
|
-
}),
|
|
776
|
-
...(step.clone?.full ? { full: true } : {}),
|
|
777
|
-
// The Coder (follow-up companion enabled) streams forward-looking items out via
|
|
778
|
-
// the sentinel file; tell the harness to tail it. Only on the implementer path.
|
|
779
|
-
...(context.followUpCompanion && !onPr ? { streamFollowUps: true } : {}),
|
|
780
|
-
...webTools,
|
|
781
|
-
},
|
|
782
|
-
};
|
|
783
|
-
}
|
|
784
|
-
// container-explore (read-only): prose, or a structured JSON object as `custom`.
|
|
785
|
-
return {
|
|
786
|
-
kind: 'agent',
|
|
787
|
-
body: {
|
|
788
|
-
...common,
|
|
789
|
-
mode: 'explore',
|
|
790
|
-
systemPrompt: roleSystemPrompt,
|
|
791
|
-
userPrompt,
|
|
792
|
-
branch: exploreBranch,
|
|
793
|
-
...(step.clone?.full ? { full: true } : {}),
|
|
794
|
-
...(step.output?.kind === 'structured'
|
|
795
|
-
? {
|
|
796
|
-
output: {
|
|
797
|
-
kind: 'structured',
|
|
798
|
-
...(step.output.shapeHint ? { shapeHint: step.output.shapeHint } : {}),
|
|
799
|
-
...(step.output.repair === false ? { repair: false } : {}),
|
|
800
|
-
...(step.output.failOnUnusableFinal ? { failOnUnusableFinal: true } : {}),
|
|
801
|
-
},
|
|
802
|
-
}
|
|
803
|
-
: {}),
|
|
804
|
-
...webTools,
|
|
805
|
-
},
|
|
806
|
-
};
|
|
807
|
-
}
|
|
808
|
-
/**
|
|
809
|
-
* Build the generic `agent` body for a BUILT-IN container kind being migrated onto the
|
|
810
|
-
* manifest-driven path (the Task-5 strangler), or undefined when `context.agentKind` is
|
|
811
|
-
* not a migrated built-in (the caller falls through to the remaining bespoke switch). Each
|
|
812
|
-
* migrated kind is expressed as a synthesized {@link AgentStepSpec} routed through
|
|
813
|
-
* {@link buildRegisteredAgentBody} — the SAME dispatch a registered custom kind takes — so
|
|
814
|
-
* there is no bespoke harness handler:
|
|
815
|
-
* - `ci-fixer` / `fixer`: coding-on-PR (clone the PR branch, push back, no new PR; a
|
|
816
|
-
* no-op is non-fatal). Requires the implementation PR branch.
|
|
817
|
-
* - `merger` / `on-call`: read-only structured explore (full clone) that returns ONLY a
|
|
818
|
-
* JSON assessment; the conservative coercion that used to live in the harness runs
|
|
819
|
-
* backend-side in {@link toRunResult}.
|
|
820
|
-
* - `conflict-resolver`: coding (full clone of the PR branch) with a `mergeBase` — the
|
|
821
|
-
* harness merges the base in to surface the conflicts, the agent resolves them, and the
|
|
822
|
-
* harness completes the merge commit + pushes back onto the same branch (no new PR).
|
|
823
|
-
*/
|
|
824
|
-
buildMigratedBuiltInBody(context, parts, roleSystemPrompt) {
|
|
825
|
-
const { repo } = parts;
|
|
826
|
-
const prBranch = context.block.pullRequest?.branch;
|
|
827
|
-
switch (context.agentKind) {
|
|
828
|
-
// The Blueprinter maps the repo into the service → modules tree. It now runs as a
|
|
829
|
-
// read-only structured explore (clone the PR branch when present, else the default
|
|
830
|
-
// branch — exactly its old `prBranch ?? baseBranch` clone), returning ONLY the tree
|
|
831
|
-
// as JSON; the deterministic render + commit of the `blueprints/` artifact that used
|
|
832
|
-
// to live in the harness `/blueprint` handler is the backend `blueprintPostOp` (run
|
|
833
|
-
// from ExecutionService), and `toRunResult` coerces the JSON into `blueprintService`
|
|
834
|
-
// for the board reconcile + that post-op.
|
|
835
|
-
case BLUEPRINTS_AGENT_KIND:
|
|
836
|
-
return this.buildRegisteredAgentBody(context, parts, {
|
|
837
|
-
surface: 'container-explore',
|
|
838
|
-
clone: { branch: 'pr' },
|
|
839
|
-
output: { kind: 'structured', shapeHint: BLUEPRINT_SHAPE_HINT },
|
|
840
|
-
}, BLUEPRINT_SYSTEM_PROMPT, blueprintUserPrompt());
|
|
841
|
-
// The spec-writer maintains the prescriptive `spec/` document. It now runs as a
|
|
842
|
-
// read-only structured explore on the per-block WORK branch (clone `work` — the
|
|
843
|
-
// deterministic `cat-factory/<blockId>` the coder resumes, created from base when
|
|
844
|
-
// absent; it runs BEFORE the coder, so it SEEDS that branch). The agent READS the
|
|
845
|
-
// baseline spec from its own checkout (`spec/`), applies this ONE task as an increment,
|
|
846
|
-
// and returns the COMPLETE tree as JSON; the deterministic SHARD + commit of the
|
|
847
|
-
// `spec/` artifact that used to live in the harness `/spec` handler is the backend
|
|
848
|
-
// `specPostOp` (run from ExecutionService), and `toRunResult` coerces the JSON into the
|
|
849
|
-
// `spec` channel the engine strict-validates + that post-op renders/commits from. It
|
|
850
|
-
// NEVER targets base: the spec is prescriptive for not-yet-landed work, so it merges
|
|
851
|
-
// WITH the feature, never reaching `main` ahead of it.
|
|
852
|
-
case SPEC_WRITER_AGENT_KIND:
|
|
853
|
-
return this.buildRegisteredAgentBody(context, parts, {
|
|
854
|
-
surface: 'container-explore',
|
|
855
|
-
clone: { branch: 'work' },
|
|
856
|
-
// The spec doc is handed onward to be sharded + committed by `specPostOp`, so a
|
|
857
|
-
// final answer cut off at the output ceiling must FAIL LOUDLY (the bespoke `/spec`
|
|
858
|
-
// handler's `unusableFinalAnswerCause` gate) rather than be laundered into a
|
|
859
|
-
// half-baked spec by the structured repair — exactly what drove the old
|
|
860
|
-
// spec-writer ⇄ companion rework loop.
|
|
861
|
-
output: { kind: 'structured', shapeHint: SPEC_SHAPE_HINT, failOnUnusableFinal: true },
|
|
862
|
-
}, SPEC_WRITER_SYSTEM_PROMPT, specWriterUserPrompt(context));
|
|
863
|
-
// In-place fixers: clone the PR head branch, push fixes back onto it (no new PR);
|
|
864
|
-
// a no-op run is a clean non-event (the gate/loop re-checks the real signal).
|
|
865
|
-
case CI_FIXER_AGENT_KIND:
|
|
866
|
-
if (!prBranch)
|
|
867
|
-
throw new Error('CI-fixer needs the implementation PR branch to push fixes to');
|
|
868
|
-
return this.buildRegisteredAgentBody(context, parts, { surface: 'container-coding', clone: { branch: 'pr' } }, roleSystemPrompt);
|
|
869
|
-
case FIXER_AGENT_KIND:
|
|
870
|
-
if (!prBranch)
|
|
871
|
-
throw new Error('Fixer needs the implementation PR branch to push fixes to');
|
|
872
|
-
return this.buildRegisteredAgentBody(context, parts, { surface: 'container-coding', clone: { branch: 'pr' } }, roleSystemPrompt);
|
|
873
|
-
// The conflict-resolver clones the PR head branch (full history), merges the base in
|
|
874
|
-
// to surface the conflicts, resolves them and pushes back onto the SAME branch (no new
|
|
875
|
-
// branch / PR) so the PR becomes mergeable and CI re-runs. It dispatches the generic
|
|
876
|
-
// coding agent with a `mergeBase` (the harness merges `origin/<mergeBase>` in before the
|
|
877
|
-
// agent runs); the harness leads the prompt with the actual conflict hunks it discovers.
|
|
878
|
-
//
|
|
879
|
-
// Unlike the CI-fixer it is deliberately NOT given `userPromptFor(context)`: that renders
|
|
880
|
-
// the full task brief + every prior agent's output (the spec-writer's whole spec, etc.),
|
|
881
|
-
// which buries the one-line "resolve a conflict" role and drifts the model onto
|
|
882
|
-
// re-implementing the feature (observed in prod: a resolver that returned a "test report
|
|
883
|
-
// is ready" answer and never touched the markers). The backend supplies only a compact
|
|
884
|
-
// task reference for intent.
|
|
885
|
-
case CONFLICT_RESOLVER_AGENT_KIND: {
|
|
886
|
-
if (!prBranch) {
|
|
887
|
-
throw new Error('Conflict-resolver needs the implementation PR branch to resolve conflicts on');
|
|
888
|
-
}
|
|
889
|
-
const description = context.block.description?.trim();
|
|
890
|
-
const built = this.buildRegisteredAgentBody(context, parts, { surface: 'container-coding', clone: { branch: 'pr', full: true } }, roleSystemPrompt, `Task: ${context.block.title}${description ? `\n\n${description}` : ''}`);
|
|
891
|
-
return { kind: built.kind, body: { ...built.body, mergeBase: repo.baseBranch } };
|
|
892
|
-
}
|
|
893
|
-
// The merger clones the PR head (full, to diff vs base) and returns ONLY the
|
|
894
|
-
// complexity/risk/impact assessment JSON; the engine performs the real merge.
|
|
895
|
-
case MERGER_AGENT_KIND:
|
|
896
|
-
return this.buildRegisteredAgentBody(context, parts, {
|
|
897
|
-
surface: 'container-explore',
|
|
898
|
-
clone: { branch: 'pr', full: true },
|
|
899
|
-
output: { kind: 'structured', shapeHint: MERGE_ASSESSMENT_SHAPE_HINT },
|
|
900
|
-
}, MERGER_SYSTEM_PROMPT, mergerUserPrompt(context, repo));
|
|
901
|
-
// The on-call agent clones the BASE branch (full, to locate + diff the merged
|
|
902
|
-
// release commit) and returns ONLY the regression assessment JSON.
|
|
903
|
-
case ON_CALL_AGENT_KIND:
|
|
904
|
-
return this.buildRegisteredAgentBody(context, parts, {
|
|
905
|
-
surface: 'container-explore',
|
|
906
|
-
clone: { branch: 'base', full: true },
|
|
907
|
-
output: { kind: 'structured', shapeHint: ON_CALL_ASSESSMENT_SHAPE_HINT },
|
|
908
|
-
}, ON_CALL_SYSTEM_PROMPT, onCallUserPrompt(context, repo));
|
|
909
|
-
// The tester clones the PR head branch (read-only — it makes NO commits), stands up
|
|
910
|
-
// its dependencies (locally via the service's docker-compose, or against the
|
|
911
|
-
// provisioned ephemeral env — the task's `tester.environment` config picks which) and
|
|
912
|
-
// returns ONLY a structured JSON report. It runs as a generic structured explore with
|
|
913
|
-
// an `infra` spec the harness uses to stand the docker-compose dependencies up for the
|
|
914
|
-
// run; `toRunResult` coerces the JSON into `testReport` (the conservative greenlight /
|
|
915
|
-
// blocking-concern rule the harness applied now runs backend-side, and the engine's
|
|
916
|
-
// TesterController re-applies it). The role prompt + the run-mode/ephemeral-URL guidance
|
|
917
|
-
// come from the standard `roleSystemPrompt` + `userPromptFor` (which already carry them),
|
|
918
|
-
// so the harness adds none. The engine loops the `fixer` on a withheld greenlight.
|
|
919
|
-
case TESTER_AGENT_KIND: {
|
|
920
|
-
const built = this.buildRegisteredAgentBody(context, parts, {
|
|
921
|
-
surface: 'container-explore',
|
|
922
|
-
clone: { branch: 'pr' },
|
|
923
|
-
output: { kind: 'structured', shapeHint: TEST_REPORT_SHAPE_HINT },
|
|
924
|
-
}, roleSystemPrompt);
|
|
925
|
-
return { kind: built.kind, body: { ...built.body, infra: testerInfraSpec(context) } };
|
|
926
|
-
}
|
|
927
|
-
// The UI tester is the Tester's browser-driven sibling: same read-only structured
|
|
928
|
-
// explore + infra stand-up, but it drives Playwright (supplied by the UI-tester
|
|
929
|
-
// image, routed via the `image:'ui'` dispatch option) to capture a non-redundant
|
|
930
|
-
// screenshot of each distinct view, uploads them to the artifact store, and reports
|
|
931
|
-
// them under `screenshots[]`. The role prompt carries the capture guidance.
|
|
932
|
-
case UI_TESTER_AGENT_KIND: {
|
|
933
|
-
const built = this.buildRegisteredAgentBody(context, parts, {
|
|
934
|
-
surface: 'container-explore',
|
|
935
|
-
clone: { branch: 'pr' },
|
|
936
|
-
output: { kind: 'structured', shapeHint: UI_TEST_REPORT_SHAPE_HINT },
|
|
937
|
-
}, roleSystemPrompt);
|
|
938
|
-
return { kind: built.kind, body: { ...built.body, infra: testerInfraSpec(context) } };
|
|
939
|
-
}
|
|
940
|
-
}
|
|
941
|
-
return undefined;
|
|
942
|
-
}
|
|
943
652
|
}
|
|
944
653
|
//# sourceMappingURL=ContainerAgentExecutor.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContainerAgentExecutor.js","sourceRoot":"","sources":["../../src/agents/ContainerAgentExecutor.ts"],"names":[],"mappings":"AAAA,OAAO,EAiBN,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EACL,cAAc,EACd,uBAAuB,EACvB,iBAAiB,EACjB,oBAAoB,EACpB,kBAAkB,GACnB,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAA;AAC9D,OAAO,EAEL,cAAc,EACd,wBAAwB,EACxB,kBAAkB,EAClB,0BAA0B,EAC1B,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,eAAe,EACf,aAAa,EACb,sBAAsB,GACvB,MAAM,qBAAqB,CAAA;AAE5B,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AACvD,OAAO,EACL,oBAAoB,EACpB,uBAAuB,EACvB,mBAAmB,EACnB,2BAA2B,EAC3B,oBAAoB,EACpB,gBAAgB,EAChB,6BAA6B,EAC7B,qBAAqB,EACrB,gBAAgB,EAChB,MAAM,EACN,eAAe,EACf,yBAAyB,EACzB,oBAAoB,EACpB,sBAAsB,EACtB,eAAe,EACf,yBAAyB,GAC1B,MAAM,cAAc,CAAA;AACrB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+C,CAClD,CAAA;YACH,CAAC;YACD,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,sBAAsB,CAAC,WAAW,EAAE,kBAAkB,CAAC,CAAA;YACtF,mBAAmB,GAAG,MAAM,CAAC,OAAO,CAAA;YACpC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAA;QACxB,CAAC;QACD,iFAAiF;QACjF,iFAAiF;QACjF,gFAAgF;QAChF,4EAA4E;QAC5E,gFAAgF;QAChF,6EAA6E;QAC7E,iFAAiF;QACjF,iEAAiE;QACjE,8EAA8E;QAC9E,wFAAwF;QACxF,MAAM,OAAO,GAAG,oBAAoB,CAAC,kBAAkB,CAAC,CAAC,OAAO,CAAA;QAChE,OAAO;YACL,IAAI,EAAE;gBACJ,OAAO;gBACP,iBAAiB,EAAE,MAAM;gBACzB,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,mBAAmB,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;aACrD;YACD,GAAG,CAAC,mBAAmB,CAAC,CAAC,CAAC,EAAE,mBAAmB,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;SACxD,CAAA;IACH,CAAC;CACF"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import type { AgentRunContext, AgentStepSpec, RunnerDispatchKind } from '@cat-factory/kernel';
|
|
2
|
+
import type { RepoTarget } from './ContainerAgentExecutor.js';
|
|
3
|
+
/**
|
|
4
|
+
* The pieces a per-kind job body is assembled from, computed once per dispatch in
|
|
5
|
+
* `ContainerAgentExecutor.buildJobBody` and threaded into every builder so the kinds
|
|
6
|
+
* can't drift on which shared fields they forward:
|
|
7
|
+
* - `common` — the fields EVERY harness job body carries (jobId/model/auth/repo/proxy/…).
|
|
8
|
+
* - `webTools` — the proxy-backed web-tools nudge + switch, shared by the kinds that
|
|
9
|
+
* allow web access.
|
|
10
|
+
* - `repo` — the resolved repo target (owner/name/baseBranch + optional serviceDirectory).
|
|
11
|
+
* - `workBranch` / `workBranchReady` — the deterministic per-task work branch and whether
|
|
12
|
+
* it exists on the remote yet (a read-only agent falls back to base when it doesn't).
|
|
13
|
+
*/
|
|
14
|
+
export interface KindBodyParts {
|
|
15
|
+
common: Record<string, unknown>;
|
|
16
|
+
webTools: Record<string, unknown>;
|
|
17
|
+
repo: RepoTarget;
|
|
18
|
+
workBranch: string;
|
|
19
|
+
workBranchReady: boolean;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Build the per-kind harness job body: the shared `common` fields plus ONLY the delta
|
|
23
|
+
* specific to this kind's harness endpoint (its prompts, the branch it runs on, and
|
|
24
|
+
* any per-kind extras), and the matching dispatch `kind`. The web-search fields live
|
|
25
|
+
* in `webTools` (shared by the kinds that allow web access). The dispatch precedence
|
|
26
|
+
* matches the original if-ladder exactly: the specific kinds first, then any read-only
|
|
27
|
+
* kind, then the default coder body.
|
|
28
|
+
*/
|
|
29
|
+
export declare function buildKindBody(context: AgentRunContext, parts: KindBodyParts): {
|
|
30
|
+
body: Record<string, unknown>;
|
|
31
|
+
kind: RunnerDispatchKind;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* Build the generic `agent` job body for a registered kind from its declarative
|
|
35
|
+
* {@link AgentStepSpec} — the single dispatch path that replaces the per-kind cases as
|
|
36
|
+
* built-ins migrate. `container-explore` clones a branch read-only and returns prose
|
|
37
|
+
* (or, for `output.kind==='structured'`, a parsed `custom` JSON object the kind's
|
|
38
|
+
* post-op renders from); `container-coding` clones, edits, pushes and (off the work
|
|
39
|
+
* branch) opens a PR. The clone target maps `base`/`pr`/`work` to a concrete branch
|
|
40
|
+
* exactly as the built-in bodies do.
|
|
41
|
+
*/
|
|
42
|
+
export declare function buildRegisteredAgentBody(context: AgentRunContext, parts: KindBodyParts, step: AgentStepSpec, roleSystemPrompt: string,
|
|
43
|
+
/**
|
|
44
|
+
* The concrete task prompt. Defaults to the generic `userPromptFor` (block context +
|
|
45
|
+
* prior outputs) — the same prompt a registered custom kind gets. A migrated built-in
|
|
46
|
+
* (merger / on-call) overrides it with its bespoke, JSON-instructing prompt so its
|
|
47
|
+
* body matches the old per-kind handler's.
|
|
48
|
+
*/
|
|
49
|
+
userPrompt?: string): {
|
|
50
|
+
body: Record<string, unknown>;
|
|
51
|
+
kind: RunnerDispatchKind;
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* Build the generic `agent` body for a BUILT-IN container kind being migrated onto the
|
|
55
|
+
* manifest-driven path (the Task-5 strangler), or undefined when `context.agentKind` is
|
|
56
|
+
* not a migrated built-in (the caller falls through to the remaining bespoke switch). Each
|
|
57
|
+
* migrated kind is expressed as a synthesized {@link AgentStepSpec} routed through
|
|
58
|
+
* {@link buildRegisteredAgentBody} — the SAME dispatch a registered custom kind takes — so
|
|
59
|
+
* there is no bespoke harness handler:
|
|
60
|
+
* - `ci-fixer` / `fixer`: coding-on-PR (clone the PR branch, push back, no new PR; a
|
|
61
|
+
* no-op is non-fatal). Requires the implementation PR branch.
|
|
62
|
+
* - `merger` / `on-call`: read-only structured explore (full clone) that returns ONLY a
|
|
63
|
+
* JSON assessment; the conservative coercion that used to live in the harness runs
|
|
64
|
+
* backend-side in {@link toRunResult}.
|
|
65
|
+
* - `conflict-resolver`: coding (full clone of the PR branch) with a `mergeBase` — the
|
|
66
|
+
* harness merges the base in to surface the conflicts, the agent resolves them, and the
|
|
67
|
+
* harness completes the merge commit + pushes back onto the same branch (no new PR).
|
|
68
|
+
*/
|
|
69
|
+
export declare function buildMigratedBuiltInBody(context: AgentRunContext, parts: KindBodyParts, roleSystemPrompt: string): {
|
|
70
|
+
body: Record<string, unknown>;
|
|
71
|
+
kind: RunnerDispatchKind;
|
|
72
|
+
} | undefined;
|
|
73
|
+
//# sourceMappingURL=jobBody.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jobBody.d.ts","sourceRoot":"","sources":["../../src/agents/jobBody.ts"],"names":[],"mappings":"AAAA,OA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Companion, isReadOnlyAgentKind, registeredAgentStep, systemPromptFor, userPromptFor, } from '@cat-factory/agents';
|
|
2
|
+
import { BLUEPRINTS_AGENT_KIND, CI_FIXER_AGENT_KIND, CONFLICT_RESOLVER_AGENT_KIND, FIXER_AGENT_KIND, MERGER_AGENT_KIND, ON_CALL_AGENT_KIND, SPEC_WRITER_AGENT_KIND, TESTER_AGENT_KIND, UI_TESTER_AGENT_KIND, } from '@cat-factory/orchestration';
|
|
3
|
+
import { BLUEPRINT_SHAPE_HINT, BLUEPRINT_SYSTEM_PROMPT, blueprintUserPrompt, MERGE_ASSESSMENT_SHAPE_HINT, MERGER_SYSTEM_PROMPT, mergerUserPrompt, ON_CALL_ASSESSMENT_SHAPE_HINT, ON_CALL_SYSTEM_PROMPT, onCallUserPrompt, prBody, SPEC_SHAPE_HINT, SPEC_WRITER_SYSTEM_PROMPT, specWriterUserPrompt, TEST_REPORT_SHAPE_HINT, testerInfraSpec, UI_TEST_REPORT_SHAPE_HINT, } from './prompts.js';
|
|
4
|
+
/**
|
|
5
|
+
* Build the per-kind harness job body: the shared `common` fields plus ONLY the delta
|
|
6
|
+
* specific to this kind's harness endpoint (its prompts, the branch it runs on, and
|
|
7
|
+
* any per-kind extras), and the matching dispatch `kind`. The web-search fields live
|
|
8
|
+
* in `webTools` (shared by the kinds that allow web access). The dispatch precedence
|
|
9
|
+
* matches the original if-ladder exactly: the specific kinds first, then any read-only
|
|
10
|
+
* kind, then the default coder body.
|
|
11
|
+
*/
|
|
12
|
+
export function buildKindBody(context, parts) {
|
|
13
|
+
// `parts` (common/webTools/workBranch/workBranchReady) is consumed by
|
|
14
|
+
// `buildRegisteredAgentBody`/`buildMigratedBuiltInBody`, not directly here.
|
|
15
|
+
const baseRoleSystemPrompt = composeBlockSystemPrompt(systemPromptFor(context.agentKind), context.block);
|
|
16
|
+
// When the future-looking Follow-up companion is enabled for this (coder) step, append
|
|
17
|
+
// the guidance that tells the Coder to stream loose-ends / side-tasks / questions to the
|
|
18
|
+
// sentinel file the harness tails. Only when enabled, so a disabled companion (or any
|
|
19
|
+
// other kind) never writes the file.
|
|
20
|
+
const roleSystemPrompt = context.followUpCompanion
|
|
21
|
+
? `${baseRoleSystemPrompt}\n\n${FOLLOW_UP_GUIDANCE}`
|
|
22
|
+
: baseRoleSystemPrompt;
|
|
23
|
+
// A registered (custom or migrated) kind that declares an `agent` step dispatches
|
|
24
|
+
// through the generic, manifest-driven `agent` harness kind — no per-kind case here.
|
|
25
|
+
// Built-in kinds (below) still carry their bespoke bodies until they are migrated.
|
|
26
|
+
const registeredStep = registeredAgentStep(context.agentKind);
|
|
27
|
+
if (registeredStep) {
|
|
28
|
+
return buildRegisteredAgentBody(context, parts, registeredStep, roleSystemPrompt);
|
|
29
|
+
}
|
|
30
|
+
// Built-in container kinds migrated onto the generic, manifest-driven `agent` harness
|
|
31
|
+
// kind (they dispatch `kind:'agent'` through `buildRegisteredAgentBody`, exactly like a
|
|
32
|
+
// registered custom kind, with NO bespoke per-kind harness handler) — the Task-5
|
|
33
|
+
// strangler. Today: blueprints/spec-writer (structured explore + render post-op), the
|
|
34
|
+
// in-place fixers (`ci-fixer` / `fixer`, coding-on-PR), the JSON-assessment producers
|
|
35
|
+
// (`merger` / `on-call`, read-only structured explore whose assessment is coerced
|
|
36
|
+
// backend-side in `toRunResult`), the `tester` (read-only structured explore with
|
|
37
|
+
// docker-compose infra stand-up), and the conflict-resolver (coding with a `mergeBase`).
|
|
38
|
+
// The default coder dispatches the generic coding agent at the end of this method.
|
|
39
|
+
const migrated = buildMigratedBuiltInBody(context, parts, roleSystemPrompt);
|
|
40
|
+
if (migrated)
|
|
41
|
+
return migrated;
|
|
42
|
+
// Container-backed companions (reviewer / doc-reviewer): a read-only explore that clones
|
|
43
|
+
// the producer's PR branch and reads the ACTUAL repository (changed files / committed
|
|
44
|
+
// document) before rating it, returning the verdict as structured JSON. Surfaced to the
|
|
45
|
+
// engine as `result.custom` (the default `toRunResult` branch) and parsed back into a
|
|
46
|
+
// CompanionAssessment by `CompanionController.resolveContainerVerdict`. The companion
|
|
47
|
+
// review system prompt (which already instructs the JSON shape and, for these kinds, to
|
|
48
|
+
// read the checkout) wins in `systemPromptFor`, so no per-kind prompt wiring is needed.
|
|
49
|
+
if (isContainerBackedCompanion(context.agentKind)) {
|
|
50
|
+
return buildRegisteredAgentBody(context, parts, { surface: 'container-explore', clone: { branch: 'pr' }, output: { kind: 'structured' } }, roleSystemPrompt);
|
|
51
|
+
}
|
|
52
|
+
// Read-only agents (architect, analysis) explore a real checkout but never edit it:
|
|
53
|
+
// they clone a branch, produce a prose report/proposal and return it as `output`,
|
|
54
|
+
// making no commit and opening no PR (and — unlike a coding run — an edit-free run is
|
|
55
|
+
// the expected, correct outcome, not a failure). They dispatch through the generic,
|
|
56
|
+
// manifest-driven `agent` kind in `explore` mode — the SAME path a registered
|
|
57
|
+
// `container-explore` kind takes — instead of a bespoke per-kind harness handler. A
|
|
58
|
+
// synthesized read-only step (no clone target ⇒ the shared work-branch fallback, so
|
|
59
|
+
// e.g. the architect reads the spec-writer's committed `spec/` and any in-progress
|
|
60
|
+
// implementation, falling back to base when no work/PR branch exists) yields a body
|
|
61
|
+
// byte-identical to the old `/explore` job, minus only the harness-internal temp-dir
|
|
62
|
+
// label. This is the first built-in migrated onto the generic agent surface (the
|
|
63
|
+
// Task-5 strangler); the now-dead `/explore` harness handler is deleted in a
|
|
64
|
+
// follow-up once parity is confirmed on CI.
|
|
65
|
+
if (isReadOnlyAgentKind(context.agentKind)) {
|
|
66
|
+
return buildRegisteredAgentBody(context, parts, { surface: 'container-explore' }, roleSystemPrompt);
|
|
67
|
+
}
|
|
68
|
+
// The default coder (and any other write-and-PR kind): the build-phase role plus the
|
|
69
|
+
// block's selected best-practice fragments. Dispatches the generic `container-coding`
|
|
70
|
+
// agent onto the deterministic per-task work branch (`clone: 'work'` ⇒ branch off base,
|
|
71
|
+
// push the work branch, open a PR). The work-branch name is deterministic per task
|
|
72
|
+
// (block), NOT per dispatch — a retry mints a fresh executionId but keeps the blockId —
|
|
73
|
+
// so every re-dispatch targets the SAME branch; `runCodingAgent` checkpoints commits to
|
|
74
|
+
// it and RESUMES on it if it already exists, so an evicted/failed run's work survives.
|
|
75
|
+
// This is behaviour-equivalent to the old bespoke `/run` body (handleAgent coding mode
|
|
76
|
+
// is built on the same `runCodingAgent` primitive); the dead `/run` handler is removed
|
|
77
|
+
// in the harness-cleanup step.
|
|
78
|
+
return buildRegisteredAgentBody(context, parts, { surface: 'container-coding', clone: { branch: 'work' } }, roleSystemPrompt);
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Build the generic `agent` job body for a registered kind from its declarative
|
|
82
|
+
* {@link AgentStepSpec} — the single dispatch path that replaces the per-kind cases as
|
|
83
|
+
* built-ins migrate. `container-explore` clones a branch read-only and returns prose
|
|
84
|
+
* (or, for `output.kind==='structured'`, a parsed `custom` JSON object the kind's
|
|
85
|
+
* post-op renders from); `container-coding` clones, edits, pushes and (off the work
|
|
86
|
+
* branch) opens a PR. The clone target maps `base`/`pr`/`work` to a concrete branch
|
|
87
|
+
* exactly as the built-in bodies do.
|
|
88
|
+
*/
|
|
89
|
+
export function buildRegisteredAgentBody(context, parts, step, roleSystemPrompt,
|
|
90
|
+
/**
|
|
91
|
+
* The concrete task prompt. Defaults to the generic `userPromptFor` (block context +
|
|
92
|
+
* prior outputs) — the same prompt a registered custom kind gets. A migrated built-in
|
|
93
|
+
* (merger / on-call) overrides it with its bespoke, JSON-instructing prompt so its
|
|
94
|
+
* body matches the old per-kind handler's.
|
|
95
|
+
*/
|
|
96
|
+
userPrompt = userPromptFor(context, { materialized: true })) {
|
|
97
|
+
const { common, webTools, repo, workBranch, workBranchReady } = parts;
|
|
98
|
+
const prBranch = context.block.pullRequest?.branch;
|
|
99
|
+
const onPr = step.clone?.branch === 'pr';
|
|
100
|
+
const exploreBranch = step.clone?.branch === 'base'
|
|
101
|
+
? repo.baseBranch
|
|
102
|
+
: onPr
|
|
103
|
+
? (prBranch ?? repo.baseBranch)
|
|
104
|
+
: workBranchReady
|
|
105
|
+
? workBranch
|
|
106
|
+
: (prBranch ?? repo.baseBranch);
|
|
107
|
+
if (step.surface === 'container-coding') {
|
|
108
|
+
// `pr` clone ⇒ work in place on the PR branch and push back (fixer-like, no new PR);
|
|
109
|
+
// otherwise branch off base onto the work branch, push it and open a PR (coder-like).
|
|
110
|
+
return {
|
|
111
|
+
kind: 'agent',
|
|
112
|
+
body: {
|
|
113
|
+
...common,
|
|
114
|
+
mode: 'coding',
|
|
115
|
+
systemPrompt: roleSystemPrompt,
|
|
116
|
+
userPrompt,
|
|
117
|
+
branch: onPr ? (prBranch ?? repo.baseBranch) : repo.baseBranch,
|
|
118
|
+
...(onPr ? {} : { newBranch: workBranch }),
|
|
119
|
+
pushBranch: onPr ? (prBranch ?? workBranch) : workBranch,
|
|
120
|
+
...(onPr
|
|
121
|
+
? { noChangesIsError: false }
|
|
122
|
+
: {
|
|
123
|
+
pr: {
|
|
124
|
+
title: `${context.block.title} (${context.pipelineName})`,
|
|
125
|
+
body: prBody(context),
|
|
126
|
+
},
|
|
127
|
+
}),
|
|
128
|
+
...(step.clone?.full ? { full: true } : {}),
|
|
129
|
+
// The Coder (follow-up companion enabled) streams forward-looking items out via
|
|
130
|
+
// the sentinel file; tell the harness to tail it. Only on the implementer path.
|
|
131
|
+
...(context.followUpCompanion && !onPr ? { streamFollowUps: true } : {}),
|
|
132
|
+
...webTools,
|
|
133
|
+
},
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
// container-explore (read-only): prose, or a structured JSON object as `custom`.
|
|
137
|
+
return {
|
|
138
|
+
kind: 'agent',
|
|
139
|
+
body: {
|
|
140
|
+
...common,
|
|
141
|
+
mode: 'explore',
|
|
142
|
+
systemPrompt: roleSystemPrompt,
|
|
143
|
+
userPrompt,
|
|
144
|
+
branch: exploreBranch,
|
|
145
|
+
...(step.clone?.full ? { full: true } : {}),
|
|
146
|
+
...(step.output?.kind === 'structured'
|
|
147
|
+
? {
|
|
148
|
+
output: {
|
|
149
|
+
kind: 'structured',
|
|
150
|
+
...(step.output.shapeHint ? { shapeHint: step.output.shapeHint } : {}),
|
|
151
|
+
...(step.output.repair === false ? { repair: false } : {}),
|
|
152
|
+
...(step.output.failOnUnusableFinal ? { failOnUnusableFinal: true } : {}),
|
|
153
|
+
},
|
|
154
|
+
}
|
|
155
|
+
: {}),
|
|
156
|
+
...webTools,
|
|
157
|
+
},
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* Build the generic `agent` body for a BUILT-IN container kind being migrated onto the
|
|
162
|
+
* manifest-driven path (the Task-5 strangler), or undefined when `context.agentKind` is
|
|
163
|
+
* not a migrated built-in (the caller falls through to the remaining bespoke switch). Each
|
|
164
|
+
* migrated kind is expressed as a synthesized {@link AgentStepSpec} routed through
|
|
165
|
+
* {@link buildRegisteredAgentBody} — the SAME dispatch a registered custom kind takes — so
|
|
166
|
+
* there is no bespoke harness handler:
|
|
167
|
+
* - `ci-fixer` / `fixer`: coding-on-PR (clone the PR branch, push back, no new PR; a
|
|
168
|
+
* no-op is non-fatal). Requires the implementation PR branch.
|
|
169
|
+
* - `merger` / `on-call`: read-only structured explore (full clone) that returns ONLY a
|
|
170
|
+
* JSON assessment; the conservative coercion that used to live in the harness runs
|
|
171
|
+
* backend-side in {@link toRunResult}.
|
|
172
|
+
* - `conflict-resolver`: coding (full clone of the PR branch) with a `mergeBase` — the
|
|
173
|
+
* harness merges the base in to surface the conflicts, the agent resolves them, and the
|
|
174
|
+
* harness completes the merge commit + pushes back onto the same branch (no new PR).
|
|
175
|
+
*/
|
|
176
|
+
export function buildMigratedBuiltInBody(context, parts, roleSystemPrompt) {
|
|
177
|
+
const { repo } = parts;
|
|
178
|
+
const prBranch = context.block.pullRequest?.branch;
|
|
179
|
+
switch (context.agentKind) {
|
|
180
|
+
// The Blueprinter maps the repo into the service → modules tree. It now runs as a
|
|
181
|
+
// read-only structured explore (clone the PR branch when present, else the default
|
|
182
|
+
// branch — exactly its old `prBranch ?? baseBranch` clone), returning ONLY the tree
|
|
183
|
+
// as JSON; the deterministic render + commit of the `blueprints/` artifact that used
|
|
184
|
+
// to live in the harness `/blueprint` handler is the backend `blueprintPostOp` (run
|
|
185
|
+
// from ExecutionService), and `toRunResult` coerces the JSON into `blueprintService`
|
|
186
|
+
// for the board reconcile + that post-op.
|
|
187
|
+
case BLUEPRINTS_AGENT_KIND:
|
|
188
|
+
return buildRegisteredAgentBody(context, parts, {
|
|
189
|
+
surface: 'container-explore',
|
|
190
|
+
clone: { branch: 'pr' },
|
|
191
|
+
output: { kind: 'structured', shapeHint: BLUEPRINT_SHAPE_HINT },
|
|
192
|
+
}, BLUEPRINT_SYSTEM_PROMPT, blueprintUserPrompt());
|
|
193
|
+
// The spec-writer maintains the prescriptive `spec/` document. It now runs as a
|
|
194
|
+
// read-only structured explore on the per-block WORK branch (clone `work` — the
|
|
195
|
+
// deterministic `cat-factory/<blockId>` the coder resumes, created from base when
|
|
196
|
+
// absent; it runs BEFORE the coder, so it SEEDS that branch). The agent READS the
|
|
197
|
+
// baseline spec from its own checkout (`spec/`), applies this ONE task as an increment,
|
|
198
|
+
// and returns the COMPLETE tree as JSON; the deterministic SHARD + commit of the
|
|
199
|
+
// `spec/` artifact that used to live in the harness `/spec` handler is the backend
|
|
200
|
+
// `specPostOp` (run from ExecutionService), and `toRunResult` coerces the JSON into the
|
|
201
|
+
// `spec` channel the engine strict-validates + that post-op renders/commits from. It
|
|
202
|
+
// NEVER targets base: the spec is prescriptive for not-yet-landed work, so it merges
|
|
203
|
+
// WITH the feature, never reaching `main` ahead of it.
|
|
204
|
+
case SPEC_WRITER_AGENT_KIND:
|
|
205
|
+
return buildRegisteredAgentBody(context, parts, {
|
|
206
|
+
surface: 'container-explore',
|
|
207
|
+
clone: { branch: 'work' },
|
|
208
|
+
// The spec doc is handed onward to be sharded + committed by `specPostOp`, so a
|
|
209
|
+
// final answer cut off at the output ceiling must FAIL LOUDLY (the bespoke `/spec`
|
|
210
|
+
// handler's `unusableFinalAnswerCause` gate) rather than be laundered into a
|
|
211
|
+
// half-baked spec by the structured repair — exactly what drove the old
|
|
212
|
+
// spec-writer ⇄ companion rework loop.
|
|
213
|
+
output: { kind: 'structured', shapeHint: SPEC_SHAPE_HINT, failOnUnusableFinal: true },
|
|
214
|
+
}, SPEC_WRITER_SYSTEM_PROMPT, specWriterUserPrompt(context));
|
|
215
|
+
// In-place fixers: clone the PR head branch, push fixes back onto it (no new PR);
|
|
216
|
+
// a no-op run is a clean non-event (the gate/loop re-checks the real signal).
|
|
217
|
+
case CI_FIXER_AGENT_KIND:
|
|
218
|
+
if (!prBranch)
|
|
219
|
+
throw new Error('CI-fixer needs the implementation PR branch to push fixes to');
|
|
220
|
+
return buildRegisteredAgentBody(context, parts, { surface: 'container-coding', clone: { branch: 'pr' } }, roleSystemPrompt);
|
|
221
|
+
case FIXER_AGENT_KIND:
|
|
222
|
+
if (!prBranch)
|
|
223
|
+
throw new Error('Fixer needs the implementation PR branch to push fixes to');
|
|
224
|
+
return buildRegisteredAgentBody(context, parts, { surface: 'container-coding', clone: { branch: 'pr' } }, roleSystemPrompt);
|
|
225
|
+
// The conflict-resolver clones the PR head branch (full history), merges the base in
|
|
226
|
+
// to surface the conflicts, resolves them and pushes back onto the SAME branch (no new
|
|
227
|
+
// branch / PR) so the PR becomes mergeable and CI re-runs. It dispatches the generic
|
|
228
|
+
// coding agent with a `mergeBase` (the harness merges `origin/<mergeBase>` in before the
|
|
229
|
+
// agent runs); the harness leads the prompt with the actual conflict hunks it discovers.
|
|
230
|
+
//
|
|
231
|
+
// Unlike the CI-fixer it is deliberately NOT given `userPromptFor(context)`: that renders
|
|
232
|
+
// the full task brief + every prior agent's output (the spec-writer's whole spec, etc.),
|
|
233
|
+
// which buries the one-line "resolve a conflict" role and drifts the model onto
|
|
234
|
+
// re-implementing the feature (observed in prod: a resolver that returned a "test report
|
|
235
|
+
// is ready" answer and never touched the markers). The backend supplies only a compact
|
|
236
|
+
// task reference for intent.
|
|
237
|
+
case CONFLICT_RESOLVER_AGENT_KIND: {
|
|
238
|
+
if (!prBranch) {
|
|
239
|
+
throw new Error('Conflict-resolver needs the implementation PR branch to resolve conflicts on');
|
|
240
|
+
}
|
|
241
|
+
const description = context.block.description?.trim();
|
|
242
|
+
const built = buildRegisteredAgentBody(context, parts, { surface: 'container-coding', clone: { branch: 'pr', full: true } }, roleSystemPrompt, `Task: ${context.block.title}${description ? `\n\n${description}` : ''}`);
|
|
243
|
+
return { kind: built.kind, body: { ...built.body, mergeBase: repo.baseBranch } };
|
|
244
|
+
}
|
|
245
|
+
// The merger clones the PR head (full, to diff vs base) and returns ONLY the
|
|
246
|
+
// complexity/risk/impact assessment JSON; the engine performs the real merge.
|
|
247
|
+
case MERGER_AGENT_KIND:
|
|
248
|
+
return buildRegisteredAgentBody(context, parts, {
|
|
249
|
+
surface: 'container-explore',
|
|
250
|
+
clone: { branch: 'pr', full: true },
|
|
251
|
+
output: { kind: 'structured', shapeHint: MERGE_ASSESSMENT_SHAPE_HINT },
|
|
252
|
+
}, MERGER_SYSTEM_PROMPT, mergerUserPrompt(context, repo));
|
|
253
|
+
// The on-call agent clones the BASE branch (full, to locate + diff the merged
|
|
254
|
+
// release commit) and returns ONLY the regression assessment JSON.
|
|
255
|
+
case ON_CALL_AGENT_KIND:
|
|
256
|
+
return buildRegisteredAgentBody(context, parts, {
|
|
257
|
+
surface: 'container-explore',
|
|
258
|
+
clone: { branch: 'base', full: true },
|
|
259
|
+
output: { kind: 'structured', shapeHint: ON_CALL_ASSESSMENT_SHAPE_HINT },
|
|
260
|
+
}, ON_CALL_SYSTEM_PROMPT, onCallUserPrompt(context, repo));
|
|
261
|
+
// The tester clones the PR head branch (read-only — it makes NO commits), stands up
|
|
262
|
+
// its dependencies (locally via the service's docker-compose, or against the
|
|
263
|
+
// provisioned ephemeral env — the task's `tester.environment` config picks which) and
|
|
264
|
+
// returns ONLY a structured JSON report. It runs as a generic structured explore with
|
|
265
|
+
// an `infra` spec the harness uses to stand the docker-compose dependencies up for the
|
|
266
|
+
// run; `toRunResult` coerces the JSON into `testReport` (the conservative greenlight /
|
|
267
|
+
// blocking-concern rule the harness applied now runs backend-side, and the engine's
|
|
268
|
+
// TesterController re-applies it). The role prompt + the run-mode/ephemeral-URL guidance
|
|
269
|
+
// come from the standard `roleSystemPrompt` + `userPromptFor` (which already carry them),
|
|
270
|
+
// so the harness adds none. The engine loops the `fixer` on a withheld greenlight.
|
|
271
|
+
case TESTER_AGENT_KIND: {
|
|
272
|
+
const built = buildRegisteredAgentBody(context, parts, {
|
|
273
|
+
surface: 'container-explore',
|
|
274
|
+
clone: { branch: 'pr' },
|
|
275
|
+
output: { kind: 'structured', shapeHint: TEST_REPORT_SHAPE_HINT },
|
|
276
|
+
}, roleSystemPrompt);
|
|
277
|
+
return { kind: built.kind, body: { ...built.body, infra: testerInfraSpec(context) } };
|
|
278
|
+
}
|
|
279
|
+
// The UI tester is the Tester's browser-driven sibling: same read-only structured
|
|
280
|
+
// explore + infra stand-up, but it drives Playwright (supplied by the UI-tester
|
|
281
|
+
// image, routed via the `image:'ui'` dispatch option) to capture a non-redundant
|
|
282
|
+
// screenshot of each distinct view, uploads them to the artifact store, and reports
|
|
283
|
+
// them under `screenshots[]`. The role prompt carries the capture guidance.
|
|
284
|
+
case UI_TESTER_AGENT_KIND: {
|
|
285
|
+
const built = buildRegisteredAgentBody(context, parts, {
|
|
286
|
+
surface: 'container-explore',
|
|
287
|
+
clone: { branch: 'pr' },
|
|
288
|
+
output: { kind: 'structured', shapeHint: UI_TEST_REPORT_SHAPE_HINT },
|
|
289
|
+
}, roleSystemPrompt);
|
|
290
|
+
return { kind: built.kind, body: { ...built.body, infra: testerInfraSpec(context) } };
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
return undefined;
|
|
294
|
+
}
|
|
295
|
+
//# sourceMappingURL=jobBody.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jobBody.js","sourceRoot":"","sources":["../../src/agents/jobBody.ts"],"names":[],"mappings":"AACA,OAAO,EACL,wBAAwB,EACxB,kBAAkB,EAClB,0BAA0B,EAC1B,mBAAmB,EACnB,mBAAmB,EACnB,eAAe,EACf,aAAa,GACd,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EACL,qBAAqB,EACrB,mBAAmB,EACnB,4BAA4B,EAC5B,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,sBAAsB,EACtB,iBAAiB,EACjB,oBAAoB,GACrB,MAAM,4BAA4B,CAAA;AACnC,OAAO,EACL,oBAAoB,EACpB,uBAAuB,EACvB,mBAAmB,EACnB,2BAA2B,EAC3B,oBAAoB,EACpB,gBAAgB,EAChB,6BAA6B,EAC7B,qBAAqB,EACrB,gBAAgB,EAChB,MAAM,EACN,eAAe,EACf,yBAAyB,EACzB,oBAAoB,EACpB,sBAAsB,EACtB,eAAe,EACf,yBAAyB,GAC1B,MAAM,cAAc,CAAA;AAsBrB;;;;;;;GAOG;AACH,MAAM,UAAU,aAAa,CAC3B,OAAwB,EACxB,KAAoB;IAEpB,sEAAsE;IACtE,4EAA4E;IAC5E,MAAM,oBAAoB,GAAG,wBAAwB,CACnD,eAAe,CAAC,OAAO,CAAC,SAAS,CAAC,EAClC,OAAO,CAAC,KAAK,CACd,CAAA;IACD,uFAAuF;IACvF,yFAAyF;IACzF,sFAAsF;IACtF,qCAAqC;IACrC,MAAM,gBAAgB,GAAG,OAAO,CAAC,iBAAiB;QAChD,CAAC,CAAC,GAAG,oBAAoB,OAAO,kBAAkB,EAAE;QACpD,CAAC,CAAC,oBAAoB,CAAA;IAExB,kFAAkF;IAClF,qFAAqF;IACrF,mFAAmF;IACnF,MAAM,cAAc,GAAG,mBAAmB,CAAC,OAAO,CAAC,SAAS,CAAC,CAAA;IAC7D,IAAI,cAAc,EAAE,CAAC;QACnB,OAAO,wBAAwB,CAAC,OAAO,EAAE,KAAK,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AClB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cat-factory/server",
|
|
3
|
-
"version": "0.49.
|
|
3
|
+
"version": "0.49.6",
|
|
4
4
|
"description": "Runtime-neutral HTTP layer for the Agent Architecture Board: the Hono controllers, middleware (auth/authz/CORS/error), request helpers and the gateway seams shared by every deployment facade (Cloudflare Worker, Node service).",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -30,13 +30,13 @@
|
|
|
30
30
|
"hono": "^4.12.27",
|
|
31
31
|
"pino": "^10.3.1",
|
|
32
32
|
"valibot": "^1.4.2",
|
|
33
|
-
"@cat-factory/agents": "0.22.
|
|
33
|
+
"@cat-factory/agents": "0.22.5",
|
|
34
34
|
"@cat-factory/contracts": "0.56.1",
|
|
35
|
-
"@cat-factory/integrations": "0.37.
|
|
36
|
-
"@cat-factory/kernel": "0.55.
|
|
37
|
-
"@cat-factory/orchestration": "0.43.
|
|
35
|
+
"@cat-factory/integrations": "0.37.1",
|
|
36
|
+
"@cat-factory/kernel": "0.55.4",
|
|
37
|
+
"@cat-factory/orchestration": "0.43.4",
|
|
38
38
|
"@cat-factory/prompt-fragments": "0.9.9",
|
|
39
|
-
"@cat-factory/spend": "0.10.
|
|
39
|
+
"@cat-factory/spend": "0.10.38"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"typescript": "7.0.1-rc",
|