@aigile/engine 0.0.0-stage → 0.2.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/agents/code-reviewer.d.ts +37 -0
- package/dist/agents/code-reviewer.d.ts.map +1 -0
- package/dist/agents/code-reviewer.js +192 -0
- package/dist/agents/code-reviewer.js.map +1 -0
- package/dist/agents/engineer.d.ts +118 -0
- package/dist/agents/engineer.d.ts.map +1 -0
- package/dist/agents/engineer.js +528 -0
- package/dist/agents/engineer.js.map +1 -0
- package/dist/agents/monitor.d.ts +66 -0
- package/dist/agents/monitor.d.ts.map +1 -0
- package/dist/agents/monitor.js +281 -0
- package/dist/agents/monitor.js.map +1 -0
- package/dist/agents/orchestrator.d.ts +49 -0
- package/dist/agents/orchestrator.d.ts.map +1 -0
- package/dist/agents/orchestrator.js +204 -0
- package/dist/agents/orchestrator.js.map +1 -0
- package/dist/agents/release-manager.d.ts +76 -0
- package/dist/agents/release-manager.d.ts.map +1 -0
- package/dist/agents/release-manager.js +312 -0
- package/dist/agents/release-manager.js.map +1 -0
- package/dist/agents/spec-analyst.d.ts +102 -0
- package/dist/agents/spec-analyst.d.ts.map +1 -0
- package/dist/agents/spec-analyst.js +406 -0
- package/dist/agents/spec-analyst.js.map +1 -0
- package/dist/agents/verifier.d.ts +41 -0
- package/dist/agents/verifier.d.ts.map +1 -0
- package/dist/agents/verifier.js +173 -0
- package/dist/agents/verifier.js.map +1 -0
- package/dist/ai-service.d.ts +52 -0
- package/dist/ai-service.d.ts.map +1 -0
- package/dist/ai-service.js +164 -0
- package/dist/ai-service.js.map +1 -0
- package/dist/build-service.d.ts +65 -0
- package/dist/build-service.d.ts.map +1 -0
- package/dist/build-service.js +140 -0
- package/dist/build-service.js.map +1 -0
- package/dist/checkout.d.ts +57 -0
- package/dist/checkout.d.ts.map +1 -0
- package/dist/checkout.js +187 -0
- package/dist/checkout.js.map +1 -0
- package/dist/command-runner.d.ts +67 -0
- package/dist/command-runner.d.ts.map +1 -0
- package/dist/command-runner.js +149 -0
- package/dist/command-runner.js.map +1 -0
- package/dist/conversations.d.ts +18 -0
- package/dist/conversations.d.ts.map +1 -0
- package/dist/conversations.js +34 -0
- package/dist/conversations.js.map +1 -0
- package/dist/data-access.d.ts +34 -0
- package/dist/data-access.d.ts.map +1 -0
- package/dist/data-access.js +85 -0
- package/dist/data-access.js.map +1 -0
- package/dist/git-host.d.ts +43 -0
- package/dist/git-host.d.ts.map +1 -0
- package/dist/git-host.js +83 -0
- package/dist/git-host.js.map +1 -0
- package/dist/in-memory-store.d.ts +25 -0
- package/dist/in-memory-store.d.ts.map +1 -0
- package/dist/in-memory-store.js +52 -0
- package/dist/in-memory-store.js.map +1 -0
- package/dist/index.d.ts +28 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +28 -0
- package/dist/index.js.map +1 -0
- package/dist/milestones.d.ts +36 -0
- package/dist/milestones.d.ts.map +1 -0
- package/dist/milestones.js +50 -0
- package/dist/milestones.js.map +1 -0
- package/dist/pull-request-sync.d.ts +29 -0
- package/dist/pull-request-sync.d.ts.map +1 -0
- package/dist/pull-request-sync.js +79 -0
- package/dist/pull-request-sync.js.map +1 -0
- package/dist/questions.d.ts +37 -0
- package/dist/questions.d.ts.map +1 -0
- package/dist/questions.js +79 -0
- package/dist/questions.js.map +1 -0
- package/dist/queue.d.ts +51 -0
- package/dist/queue.d.ts.map +1 -0
- package/dist/queue.js +108 -0
- package/dist/queue.js.map +1 -0
- package/dist/reviews.d.ts +17 -0
- package/dist/reviews.d.ts.map +1 -0
- package/dist/reviews.js +42 -0
- package/dist/reviews.js.map +1 -0
- package/dist/router.d.ts +13 -0
- package/dist/router.d.ts.map +1 -0
- package/dist/router.js +22 -0
- package/dist/router.js.map +1 -0
- package/dist/scheduler.d.ts +57 -0
- package/dist/scheduler.d.ts.map +1 -0
- package/dist/scheduler.js +134 -0
- package/dist/scheduler.js.map +1 -0
- package/dist/services.d.ts +359 -0
- package/dist/services.d.ts.map +1 -0
- package/dist/services.js +674 -0
- package/dist/services.js.map +1 -0
- package/dist/spec-resolver.d.ts +69 -0
- package/dist/spec-resolver.d.ts.map +1 -0
- package/dist/spec-resolver.js +200 -0
- package/dist/spec-resolver.js.map +1 -0
- package/dist/text-diff.d.ts +16 -0
- package/dist/text-diff.d.ts.map +1 -0
- package/dist/text-diff.js +51 -0
- package/dist/text-diff.js.map +1 -0
- package/dist/tool-sandbox.d.ts +47 -0
- package/dist/tool-sandbox.d.ts.map +1 -0
- package/dist/tool-sandbox.js +245 -0
- package/dist/tool-sandbox.js.map +1 -0
- package/dist/tracks.d.ts +58 -0
- package/dist/tracks.d.ts.map +1 -0
- package/dist/tracks.js +149 -0
- package/dist/tracks.js.map +1 -0
- package/dist/verifier.d.ts +27 -0
- package/dist/verifier.d.ts.map +1 -0
- package/dist/verifier.js +99 -0
- package/dist/verifier.js.map +1 -0
- package/package.json +31 -4
- package/README.md +0 -3
|
@@ -0,0 +1,528 @@
|
|
|
1
|
+
import { join } from 'node:path';
|
|
2
|
+
import { readFile } from 'node:fs/promises';
|
|
3
|
+
import { COLLECTIONS, parseRole } from '@aigile/core';
|
|
4
|
+
import { AiBlockedError } from '../ai-service.js';
|
|
5
|
+
import { BuildService } from '../build-service.js';
|
|
6
|
+
import { Checkout } from '../checkout.js';
|
|
7
|
+
import { DataAccess } from '../data-access.js';
|
|
8
|
+
import { MilestoneService } from '../milestones.js';
|
|
9
|
+
import { QueueService } from '../queue.js';
|
|
10
|
+
import { ReviewService } from '../reviews.js';
|
|
11
|
+
import { Verifier } from '../verifier.js';
|
|
12
|
+
import { ProjectService, RoleService, ServiceError } from '../services.js';
|
|
13
|
+
import { SpecResolver } from '../spec-resolver.js';
|
|
14
|
+
import { formatUnifiedDiff } from '../text-diff.js';
|
|
15
|
+
import { runnerFor } from '../command-runner.js';
|
|
16
|
+
import { openPullRequest, parseRemote, TOKEN_ENV } from '../git-host.js';
|
|
17
|
+
import { redactSecrets, ToolSandbox } from '../tool-sandbox.js';
|
|
18
|
+
export const ENGINEER_KEY = 'engineer';
|
|
19
|
+
export const ENGINEER_ROLE = {
|
|
20
|
+
name: 'Engineer',
|
|
21
|
+
description: 'aigile’s building agent: turns the specs that changed into a change on the project’s repository, on a branch of its own, for a person to approve.',
|
|
22
|
+
appRole: 'contributor',
|
|
23
|
+
kind: 'agent',
|
|
24
|
+
agentKey: ENGINEER_KEY,
|
|
25
|
+
};
|
|
26
|
+
/** The part of the Engineer's instructions that ships with the package (documentation/agents.md §2.3). */
|
|
27
|
+
export const ENGINEER_CONTRACT = `You are the Engineer of aigile, a system in which people write specs (statements of intent in Markdown) and agents turn them into work. You are working in a checkout of one project's repository, on a branch made for this build. You have two tools: bash, which runs in the checkout with a short allowlist of commands (build, test, lint, read-only git; nothing that leaves the checkout, and never a push), and a text editor for viewing, creating and editing files under it.
|
|
28
|
+
|
|
29
|
+
Your job: make the repository satisfy the specs below, with the smallest correct change. Read before you write: look at the layout, the existing conventions and the tests. Change what the specs require and nothing else; do not refactor, reformat or "improve" what they do not mention. Run the project's checks (tests, lint, build) when it has them and make them pass; if a check cannot run here, say so. Do not commit or push: aigile commits your working tree when you finish, and a person approves it before anything leaves this machine. Do not create files outside the checkout. If a spec is ambiguous, choose the reading that changes the least and name the question in your report. If a spec cannot be satisfied (it needs something the repository does not have, or contradicts what you find), stop and say so instead of guessing.
|
|
30
|
+
|
|
31
|
+
When you are done, answer with your report and nothing else, in Markdown with exactly these headings:
|
|
32
|
+
## Summary
|
|
33
|
+
One paragraph: what the specs asked for and what you did.
|
|
34
|
+
## Changes
|
|
35
|
+
A bullet per file, what and why.
|
|
36
|
+
## Checks
|
|
37
|
+
What you ran and the result; what you could not run.
|
|
38
|
+
## Open questions
|
|
39
|
+
Anything the approver should decide, or "None".`;
|
|
40
|
+
/** The instructions for the plan, before any change (documentation/agents.md §2.3, the plan gate). */
|
|
41
|
+
export const ENGINEER_PLAN_CONTRACT = `You are the Engineer of aigile, planning before you build. You are in a checkout of the project's repository on its mainline, with tools that only read: view files and run read-only commands (ls, cat, grep, git log, the test runner if you want to see what exists). Nothing you do here changes the repository; a person approves your plan, and then you build in a later run with this plan in front of you.
|
|
42
|
+
|
|
43
|
+
Read the repository enough to plan well: its layout, its conventions, its tests, where the specs' requirements live. Then answer with your plan and nothing else, in Markdown with exactly these headings:
|
|
44
|
+
## Summary
|
|
45
|
+
One paragraph: what the specs ask for and what you will do.
|
|
46
|
+
## Files
|
|
47
|
+
A bullet per file you will create or change, with what and why.
|
|
48
|
+
## Steps
|
|
49
|
+
Numbered, in the order you will work.
|
|
50
|
+
## Checks
|
|
51
|
+
What you will run to prove it.
|
|
52
|
+
## Risks
|
|
53
|
+
What could go wrong, what you are unsure of, and what you will do about it.
|
|
54
|
+
## Open questions
|
|
55
|
+
Anything the approver should decide before you start, or "None".`;
|
|
56
|
+
export const ENGINEER_DEFAULT_BRIEF = `# Engineer brief
|
|
57
|
+
|
|
58
|
+
How the Engineer works on this installation's repositories. Edit this spec to change its habits; add a spec mapped to the Engineer and to an organization or project for rules that apply only there (the commands to run, the conventions to follow, the files never to touch).
|
|
59
|
+
|
|
60
|
+
## Working
|
|
61
|
+
|
|
62
|
+
- Match the repository's conventions: language, formatting, test style, commit granularity.
|
|
63
|
+
- Prefer the existing tooling (its package scripts, its test runner) over anything new.
|
|
64
|
+
- Keep the change reviewable: one concern, no drive-by edits.
|
|
65
|
+
|
|
66
|
+
## Checks
|
|
67
|
+
|
|
68
|
+
- Run the fastest relevant check first (a focused test), the full suite before finishing.
|
|
69
|
+
- Never weaken or delete a test to make it pass; report the failure instead.
|
|
70
|
+
|
|
71
|
+
## Reporting
|
|
72
|
+
|
|
73
|
+
- The approver reads your report before the diff: say what changed and why in their words, not in the code's.
|
|
74
|
+
`;
|
|
75
|
+
const MAX_SPECS_CHARS = 300_000;
|
|
76
|
+
/** One checkout per project, one mutation at a time: builds, plans, adopts, discards and pushes queue on the project. */
|
|
77
|
+
const locks = new Map();
|
|
78
|
+
export async function withProjectLock(projectId, fn) {
|
|
79
|
+
const previous = locks.get(projectId) ?? Promise.resolve();
|
|
80
|
+
const run = previous.catch(() => { }).then(fn);
|
|
81
|
+
locks.set(projectId, run);
|
|
82
|
+
try {
|
|
83
|
+
return await run;
|
|
84
|
+
}
|
|
85
|
+
finally {
|
|
86
|
+
if (locks.get(projectId) === run)
|
|
87
|
+
locks.delete(projectId);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
/** A URL without its embedded credentials, for prompts, records and errors. */
|
|
91
|
+
function safeUrl(url) {
|
|
92
|
+
return url ? redactSecrets(url) : '';
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* The Engineer's build (documentation/agents.md §2.3, the Build step): a Build
|
|
96
|
+
* from the resolved specs, a clean branch in the project's checkout, the
|
|
97
|
+
* model at work with the sandboxed tools, a commit of what it changed, and
|
|
98
|
+
* an approval queued for the project's highest-ranked author. Every outcome
|
|
99
|
+
* lands on the Build record; the caller only ever gets a Build back.
|
|
100
|
+
*/
|
|
101
|
+
export class EngineerAgent {
|
|
102
|
+
store;
|
|
103
|
+
ai;
|
|
104
|
+
config;
|
|
105
|
+
data;
|
|
106
|
+
builds;
|
|
107
|
+
resolver;
|
|
108
|
+
projects;
|
|
109
|
+
queue;
|
|
110
|
+
reviews;
|
|
111
|
+
milestones;
|
|
112
|
+
constructor(store, ai, config, queue) {
|
|
113
|
+
this.store = store;
|
|
114
|
+
this.ai = ai;
|
|
115
|
+
this.config = config;
|
|
116
|
+
this.milestones = new MilestoneService(store);
|
|
117
|
+
this.data = new DataAccess(store);
|
|
118
|
+
this.builds = new BuildService(this.data, store);
|
|
119
|
+
this.resolver = new SpecResolver(this.data);
|
|
120
|
+
this.projects = new ProjectService(store);
|
|
121
|
+
this.queue = queue ?? new QueueService(store);
|
|
122
|
+
this.reviews = new ReviewService(store);
|
|
123
|
+
}
|
|
124
|
+
async role() {
|
|
125
|
+
const raw = await this.store.list(COLLECTIONS.roles);
|
|
126
|
+
return raw.map((r) => parseRole(r)).find((r) => r.agentKey === ENGINEER_KEY) ?? null;
|
|
127
|
+
}
|
|
128
|
+
static branchFor(build) {
|
|
129
|
+
return `aigile/build-${build.id.slice(0, 8)}`;
|
|
130
|
+
}
|
|
131
|
+
checkoutFor(project, installRoot) {
|
|
132
|
+
return new Checkout(join(installRoot, '.aigile', 'work', project.id), project.gitUrl, project.gitBranch);
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* A build: with the plan gate on (the default), the Engineer plans first
|
|
136
|
+
* and the Build waits (`plan-ready`) for a person's go; with it off, or
|
|
137
|
+
* `skipPlan`, it builds at once. The returned Build says where it is.
|
|
138
|
+
*/
|
|
139
|
+
async build(projectId, options) {
|
|
140
|
+
const project = await this.projects.get(projectId);
|
|
141
|
+
if (!project.gitUrl)
|
|
142
|
+
throw new Error(`project ${project.name} has no repository to build`);
|
|
143
|
+
return withProjectLock(projectId, async () => {
|
|
144
|
+
const inFlight = (await this.builds.forProject(projectId)).find((b) => b.status === 'plan-ready' || b.status === 'building' || b.status === 'checking');
|
|
145
|
+
if (inFlight)
|
|
146
|
+
throw new Error(`build ${inFlight.id.slice(0, 8)} of ${project.name} is ${inFlight.status}; one build at a time per project`);
|
|
147
|
+
const gate = this.config.agents.engineer.planGate && !options.skipPlan;
|
|
148
|
+
const plan = await this.builds.planBuild(projectId, project.gitBranch, {
|
|
149
|
+
seed: { requestedBy: options.actor.userId, status: gate ? 'plan-ready' : 'building', retryOf: options.retry?.build.id ?? null },
|
|
150
|
+
});
|
|
151
|
+
return gate ? this.plan(plan.build, project, options) : this.run(plan.build, project, options);
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
/** The plan: read the checkout on the mainline, write the plan, queue the person's go. */
|
|
155
|
+
async plan(build, project, options) {
|
|
156
|
+
const role = await this.role();
|
|
157
|
+
const post = (kind, summary, detail = '', needs = null) => this.milestones.post({ kind, roleId: role?.id ?? null, agentKey: ENGINEER_KEY, about: { kind: 'build', id: build.id }, projectIds: [project.id], summary, detail, needs }, { userId: `agent:${ENGINEER_KEY}` });
|
|
158
|
+
const fail = async (detail) => {
|
|
159
|
+
await post('blocked', `Planning a build of ${project.name} failed`, detail);
|
|
160
|
+
return this.builds.update(build.id, { status: 'failed', report: detail }, `Build ${build.id.slice(0, 8)} failed while planning`);
|
|
161
|
+
};
|
|
162
|
+
if (!role)
|
|
163
|
+
return fail('the Engineer role is not installed; run `aigile install`');
|
|
164
|
+
const changes = await this.builds.changesOf(build);
|
|
165
|
+
if (changes.length === 0 && !options.retry) {
|
|
166
|
+
return this.builds.update(build.id, { status: 'planned', report: 'No spec changed since the previous build; nothing to do.' }, `Build ${build.id.slice(0, 8)}: nothing to do`);
|
|
167
|
+
}
|
|
168
|
+
const checkout = this.checkoutFor(project, options.installRoot);
|
|
169
|
+
const branch = EngineerAgent.branchFor(build);
|
|
170
|
+
try {
|
|
171
|
+
await checkout.prepare(branch);
|
|
172
|
+
}
|
|
173
|
+
catch (err) {
|
|
174
|
+
return fail(`could not prepare the checkout of ${safeUrl(project.gitUrl)}: ${redactSecrets(err instanceof Error ? err.message : String(err))}`);
|
|
175
|
+
}
|
|
176
|
+
await this.builds.update(build.id, { branch }, `Build ${build.id.slice(0, 8)} planning on ${branch}`);
|
|
177
|
+
const brief = await this.resolver.resolveRole(role.id, project.id);
|
|
178
|
+
const system = [ENGINEER_PLAN_CONTRACT, ...brief.map((b) => `\n\n---\n\n${b.content}`)].join('');
|
|
179
|
+
const user = await this.prompt({ ...build, branch }, project, changes, options, 'plan');
|
|
180
|
+
let sandbox;
|
|
181
|
+
try {
|
|
182
|
+
sandbox = new ToolSandbox(checkout.dir, this.config.agents.engineer, true, runnerFor(this.config.agents.sandbox, [checkout.dir], project.id));
|
|
183
|
+
}
|
|
184
|
+
catch (err) {
|
|
185
|
+
return fail(err instanceof Error ? err.message : String(err));
|
|
186
|
+
}
|
|
187
|
+
const engineer = this.config.agents.engineer;
|
|
188
|
+
try {
|
|
189
|
+
const result = await this.ai.runTools({ system, messages: [{ role: 'user', content: user }], tools: sandbox.handlers(), budgetTokens: Math.min(engineer.budgetTokens, 40_000), deadline: Date.now() + engineer.buildTimeoutMs }, { roleId: role.id, agentKey: ENGINEER_KEY, purpose: `plan ${project.name}`, subject: null, briefRevisions: brief.map((b) => ({ specId: b.specId, revision: b.revision })) });
|
|
190
|
+
if (result.stopReason === 'refusal')
|
|
191
|
+
return fail(`The model declined: ${result.refusal ?? ''}`);
|
|
192
|
+
const plan = result.text.trim() || '(the Engineer gave no plan)';
|
|
193
|
+
const ready = await this.builds.update(build.id, { status: 'plan-ready', plan, toolLog: sandbox.log, costUsd: result.costUsd }, `Build ${build.id.slice(0, 8)}: plan ready`);
|
|
194
|
+
const approver = await this.approverFor(project.id, options.actor.userId);
|
|
195
|
+
const summary = plan.split('\n').find((l) => l.trim() && !l.startsWith('#'))?.trim().slice(0, 100) ?? 'plan ready';
|
|
196
|
+
await post('plan-ready', `Plan for a build of ${project.name}: ${summary}`, '', 'approve the plan, send it back with a reason, or discard');
|
|
197
|
+
await this.queue.open({ kind: 'approval', assigneeUserId: approver, title: `Plan: ${project.name}`, summary, ref: { kind: 'build', id: build.id }, waitingOnRoleId: role.id, projectIds: [project.id] }, { userId: `agent:${ENGINEER_KEY}`, author: { name: role.name, email: `${ENGINEER_KEY}@aigile.local` } });
|
|
198
|
+
return ready;
|
|
199
|
+
}
|
|
200
|
+
catch (err) {
|
|
201
|
+
return fail(err instanceof AiBlockedError ? `blocked: ${err.message}` : err instanceof Error ? err.message : String(err));
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
/** The person's go on the plan: the build runs now, with the plan in its brief. */
|
|
205
|
+
async approvePlan(buildId, actor, options) {
|
|
206
|
+
const { build, project } = await this.acceptPlan(buildId, actor);
|
|
207
|
+
return this.runApproved(build, project, { ...options, actor });
|
|
208
|
+
}
|
|
209
|
+
/** The decision itself: the plan is accepted and the build is building (409 when it is not plan-ready). The work is runApproved. */
|
|
210
|
+
async acceptPlan(buildId, actor) {
|
|
211
|
+
const build = await this.builds.get(buildId);
|
|
212
|
+
if (build.status !== 'plan-ready')
|
|
213
|
+
throw new ServiceError(409, `build ${buildId} is ${build.status}, not plan-ready`);
|
|
214
|
+
const project = await this.projects.get(build.projectId);
|
|
215
|
+
await this.queue.closeAbout({ kind: 'build', id: buildId }, actor);
|
|
216
|
+
const building = await this.builds.update(buildId, { status: 'building', decidedBy: actor.userId }, `Build ${buildId.slice(0, 8)}: plan approved`);
|
|
217
|
+
return { build: building, project };
|
|
218
|
+
}
|
|
219
|
+
/** The work after an accepted plan, one build at a time per project. */
|
|
220
|
+
runApproved(build, project, options) {
|
|
221
|
+
return withProjectLock(project.id, () => this.run(build, project, { ...options, skipPlan: true }));
|
|
222
|
+
}
|
|
223
|
+
/** The person's no on the plan, with a reason: one more plan with the reason, then discard. */
|
|
224
|
+
async rejectPlan(buildId, reason, actor, installRoot) {
|
|
225
|
+
const { rejected, retryable } = await this.markPlanRejected(buildId, reason, actor);
|
|
226
|
+
if (!retryable)
|
|
227
|
+
return { rejected, retry: null };
|
|
228
|
+
return { rejected, retry: await this.retry(rejected, reason, { installRoot, actor }) };
|
|
229
|
+
}
|
|
230
|
+
/** The decision itself (409 when the build is not plan-ready); `retryable` says whether one more plan is owed. */
|
|
231
|
+
async markPlanRejected(buildId, reason, actor) {
|
|
232
|
+
const build = await this.builds.get(buildId);
|
|
233
|
+
if (build.status !== 'plan-ready')
|
|
234
|
+
throw new ServiceError(409, `build ${buildId} is ${build.status}, not plan-ready`);
|
|
235
|
+
await this.queue.closeAbout({ kind: 'build', id: buildId }, actor);
|
|
236
|
+
const rejected = await this.builds.update(buildId, { status: 'rejected', decidedBy: actor.userId, rejectReason: reason }, `Build ${buildId.slice(0, 8)}: plan rejected`);
|
|
237
|
+
return { rejected, retryable: !build.retryOf };
|
|
238
|
+
}
|
|
239
|
+
/** The one retry a rejection earns: a new build on the project with the reason. */
|
|
240
|
+
retry(rejected, reason, options) {
|
|
241
|
+
return this.build(rejected.projectId, { ...options, retry: { build: rejected, reason } });
|
|
242
|
+
}
|
|
243
|
+
/** The work on an already planned Build (the web API plans, answers, then runs). */
|
|
244
|
+
async run(build, project, options) {
|
|
245
|
+
const role = await this.role();
|
|
246
|
+
const post = (kind, summary, detail = '') => this.milestones.post({ kind, roleId: role?.id ?? null, agentKey: ENGINEER_KEY, about: { kind: 'build', id: build.id }, projectIds: [project.id], summary, detail }, { userId: `agent:${ENGINEER_KEY}` });
|
|
247
|
+
const fail = async (detail) => {
|
|
248
|
+
await post('blocked', `Build of ${project.name} failed`, detail);
|
|
249
|
+
return this.builds.update(build.id, { status: 'failed', report: detail }, `Build ${build.id.slice(0, 8)} failed`);
|
|
250
|
+
};
|
|
251
|
+
if (!role)
|
|
252
|
+
return fail('the Engineer role is not installed; run `aigile install`');
|
|
253
|
+
await post('claimed', `Building ${project.name}${options.retry ? ' again, after a rejection' : ''}`);
|
|
254
|
+
const changes = await this.builds.changesOf(build);
|
|
255
|
+
if (changes.length === 0 && !options.retry) {
|
|
256
|
+
return this.builds.update(build.id, { status: 'planned', report: 'No spec changed since the previous build; nothing to do.' }, `Build ${build.id.slice(0, 8)}: nothing to do`);
|
|
257
|
+
}
|
|
258
|
+
const branch = EngineerAgent.branchFor(build);
|
|
259
|
+
const checkout = this.checkoutFor(project, options.installRoot);
|
|
260
|
+
try {
|
|
261
|
+
await checkout.prepare(branch);
|
|
262
|
+
}
|
|
263
|
+
catch (err) {
|
|
264
|
+
return fail(`could not prepare the checkout of ${safeUrl(project.gitUrl)}: ${redactSecrets(err instanceof Error ? err.message : String(err))}`);
|
|
265
|
+
}
|
|
266
|
+
await this.builds.update(build.id, { branch }, `Build ${build.id.slice(0, 8)} on ${branch}`);
|
|
267
|
+
const brief = await this.resolver.resolveRole(role.id, project.id);
|
|
268
|
+
const system = [ENGINEER_CONTRACT, ...brief.map((b) => `\n\n---\n\n${b.content}`)].join('');
|
|
269
|
+
const user = await this.prompt(build, project, changes, options, 'build');
|
|
270
|
+
let sandbox;
|
|
271
|
+
try {
|
|
272
|
+
sandbox = new ToolSandbox(checkout.dir, this.config.agents.engineer, false, runnerFor(this.config.agents.sandbox, [checkout.dir], project.id));
|
|
273
|
+
}
|
|
274
|
+
catch (err) {
|
|
275
|
+
return fail(err instanceof Error ? err.message : String(err));
|
|
276
|
+
}
|
|
277
|
+
const engineer = this.config.agents.engineer;
|
|
278
|
+
const agentActor = { name: role.name, email: `${ENGINEER_KEY}@aigile.local` };
|
|
279
|
+
let report;
|
|
280
|
+
let cost = null;
|
|
281
|
+
try {
|
|
282
|
+
const result = await this.ai.runTools({
|
|
283
|
+
system,
|
|
284
|
+
messages: [{ role: 'user', content: user }],
|
|
285
|
+
tools: sandbox.handlers(),
|
|
286
|
+
budgetTokens: engineer.budgetTokens,
|
|
287
|
+
deadline: Date.now() + engineer.buildTimeoutMs,
|
|
288
|
+
}, {
|
|
289
|
+
roleId: role.id,
|
|
290
|
+
agentKey: ENGINEER_KEY,
|
|
291
|
+
purpose: `build ${project.name}`,
|
|
292
|
+
subject: null,
|
|
293
|
+
briefRevisions: brief.map((b) => ({ specId: b.specId, revision: b.revision })),
|
|
294
|
+
});
|
|
295
|
+
cost = result.costUsd;
|
|
296
|
+
if (result.stopReason === 'refusal') {
|
|
297
|
+
await post('blocked', `Build of ${project.name}: the model declined`, result.refusal ?? '');
|
|
298
|
+
return this.builds.update(build.id, { status: 'failed', report: `The model declined: ${result.refusal ?? ''}`, toolLog: sandbox.log, costUsd: cost }, `Build ${build.id.slice(0, 8)} refused`);
|
|
299
|
+
}
|
|
300
|
+
report = result.text.trim() || '(the Engineer gave no report)';
|
|
301
|
+
if (result.stopReason !== 'end')
|
|
302
|
+
report += `\n\n_The run stopped early (${result.stopReason}); the changes below may be incomplete._`;
|
|
303
|
+
}
|
|
304
|
+
catch (err) {
|
|
305
|
+
const detail = err instanceof AiBlockedError ? `blocked: ${err.message}` : err instanceof Error ? err.message : String(err);
|
|
306
|
+
await post('blocked', `Build of ${project.name} did not run`, detail);
|
|
307
|
+
return this.builds.update(build.id, { status: 'failed', report: detail, toolLog: sandbox.log }, `Build ${build.id.slice(0, 8)} failed`);
|
|
308
|
+
}
|
|
309
|
+
const title = report.split('\n').find((l) => l.trim() && !l.startsWith('#'))?.trim().slice(0, 72) ?? `aigile build ${build.id.slice(0, 8)}`;
|
|
310
|
+
const commit = await checkout.commitAll(`${title}\n\nBuild ${build.id} by aigile's Engineer; approved through aigile.\n`, agentActor);
|
|
311
|
+
if (!commit) {
|
|
312
|
+
await post('blocked', `Build of ${project.name} changed nothing`, report.slice(0, 500));
|
|
313
|
+
return this.builds.update(build.id, { status: 'failed', report: `${report}\n\n_The Engineer changed nothing in the repository._`, toolLog: sandbox.log, costUsd: cost }, `Build ${build.id.slice(0, 8)}: no change`);
|
|
314
|
+
}
|
|
315
|
+
// While the Verifier and the Reviewer work, nobody can decide: the build is checking, and proposed only once the approval is queued.
|
|
316
|
+
let proposed = await this.builds.update(build.id, { status: 'checking', commit, report, toolLog: sandbox.log, costUsd: cost }, `Build ${build.id.slice(0, 8)} built: ${title}`);
|
|
317
|
+
// The Verifier adds the tests that prove the change; the Reviewer and the checks then see them.
|
|
318
|
+
let tests = null;
|
|
319
|
+
if (options.testWriter) {
|
|
320
|
+
try {
|
|
321
|
+
tests = await options.testWriter(proposed);
|
|
322
|
+
proposed = await this.builds.get(build.id);
|
|
323
|
+
}
|
|
324
|
+
catch (err) {
|
|
325
|
+
console.warn(`[aigile] tests for build ${build.id.slice(0, 8)} failed: ${err instanceof Error ? err.message : String(err)}`);
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
// The Code Reviewer reads it first; its worst finding rides on the approval.
|
|
329
|
+
let review = null;
|
|
330
|
+
if (options.reviewer) {
|
|
331
|
+
try {
|
|
332
|
+
review = await options.reviewer(proposed);
|
|
333
|
+
proposed = await this.builds.get(build.id);
|
|
334
|
+
}
|
|
335
|
+
catch (err) {
|
|
336
|
+
console.warn(`[aigile] review of build ${build.id.slice(0, 8)} failed: ${err instanceof Error ? err.message : String(err)}`);
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
// The Verifier runs the project's own checks; a failure is a gate for the approver, not a stop.
|
|
340
|
+
let verification = null;
|
|
341
|
+
if (options.verifier) {
|
|
342
|
+
try {
|
|
343
|
+
verification = await options.verifier(proposed);
|
|
344
|
+
proposed = await this.builds.get(build.id);
|
|
345
|
+
}
|
|
346
|
+
catch (err) {
|
|
347
|
+
console.warn(`[aigile] verification of build ${build.id.slice(0, 8)} failed: ${err instanceof Error ? err.message : String(err)}`);
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
const approver = await this.approverFor(project.id, options.actor.userId);
|
|
351
|
+
proposed = await this.builds.update(build.id, { status: 'proposed' }, `Build ${build.id.slice(0, 8)} proposed`);
|
|
352
|
+
await this.milestones.post({ kind: 'finished', roleId: role.id, agentKey: ENGINEER_KEY, about: { kind: 'build', id: build.id }, projectIds: [project.id], summary: `Proposed a build of ${project.name}: ${title}`, needs: 'approve, reject with a reason, or discard', relayTo: null }, { userId: `agent:${ENGINEER_KEY}` });
|
|
353
|
+
const reviewNote = !review ? 'unreviewed' : review.verdict === 'blocked' ? 'review could not run' : review.verdict === 'clean' ? 'review: clean' : `review: ${review.worst} finding(s)`;
|
|
354
|
+
const checksNote = !verification ? 'checks: not run' : `checks: ${verification.status}`;
|
|
355
|
+
const testsNote = tests && tests.status === 'added' ? ` · tests: ${tests.detail}` : '';
|
|
356
|
+
const engineerActor = { userId: `agent:${ENGINEER_KEY}`, author: agentActor };
|
|
357
|
+
await this.queue.open({ kind: 'approval', assigneeUserId: approver, title: `Build: ${project.name}`, summary: `${title} · ${reviewNote} · ${checksNote}${testsNote}`, ref: { kind: 'build', id: build.id }, waitingOnRoleId: role.id, projectIds: [project.id] }, engineerActor);
|
|
358
|
+
if (verification && (verification.status === 'failed' || verification.status === 'blocked')) {
|
|
359
|
+
await this.queue.open({ kind: 'gate', assigneeUserId: approver, title: `Checks ${verification.status} on build: ${project.name}`, summary: verification.note ?? '', ref: { kind: 'build', id: build.id }, waitingOnRoleId: role.id, projectIds: [project.id] }, engineerActor);
|
|
360
|
+
}
|
|
361
|
+
if (review && review.verdict !== 'blocked') {
|
|
362
|
+
await this.queue.open({ kind: 'review', assigneeUserId: approver, title: `Review of build: ${project.name}`, summary: review.summary.slice(0, 120), ref: { kind: 'build', id: build.id }, waitingOnRoleId: review.reviewerRoleId, projectIds: [project.id] }, engineerActor);
|
|
363
|
+
}
|
|
364
|
+
return proposed;
|
|
365
|
+
}
|
|
366
|
+
/** The approver's yes: push the branch (never the mainline), open the pull request, close the queue items. */
|
|
367
|
+
async approve(buildId, actor, installRoot, env = process.env) {
|
|
368
|
+
const build = await this.builds.get(buildId);
|
|
369
|
+
if (build.status !== 'proposed' || !build.branch || !build.commit)
|
|
370
|
+
throw new Error(`build ${buildId} is ${build.status}, not proposed`);
|
|
371
|
+
const project = await this.projects.get(build.projectId);
|
|
372
|
+
// What was read and checked must be what is pushed.
|
|
373
|
+
if (build.reviewId) {
|
|
374
|
+
const review = await this.reviews.get(build.reviewId).catch(() => null);
|
|
375
|
+
if (review && review.commit && review.commit !== build.commit)
|
|
376
|
+
throw new Error(`the review read ${review.commit.slice(0, 8)} but the build is at ${build.commit.slice(0, 8)}; review it again`);
|
|
377
|
+
}
|
|
378
|
+
if (build.verificationId) {
|
|
379
|
+
const verification = await new Verifier(this.store, this.config).get(build.verificationId).catch(() => null);
|
|
380
|
+
if (verification && verification.commit && verification.commit !== build.commit)
|
|
381
|
+
throw new Error(`the checks ran on ${verification.commit.slice(0, 8)} but the build is at ${build.commit.slice(0, 8)}; run them again`);
|
|
382
|
+
}
|
|
383
|
+
return withProjectLock(project.id, async () => {
|
|
384
|
+
await this.checkoutFor(project, installRoot).push(build.branch, build.commit);
|
|
385
|
+
return this.afterPush(build, project, buildId, actor, env);
|
|
386
|
+
});
|
|
387
|
+
}
|
|
388
|
+
async afterPush(build, project, buildId, actor, env) {
|
|
389
|
+
const pr = await this.pullRequestFor(build, project, env);
|
|
390
|
+
const pushed = await this.builds.update(buildId, { status: 'pushed', decidedBy: actor.userId, ...pr }, `Build ${buildId.slice(0, 8)} approved and pushed${pr.pullRequest ? `; pull request ${pr.pullRequest.url}` : ''}`);
|
|
391
|
+
// With a pull request the ledger waits for the host's merge (PullRequestSync); without one, the push is the merge aigile will ever see.
|
|
392
|
+
if (!pr.pullRequest)
|
|
393
|
+
await this.reviews.settleForBuild(buildId, 'merged', actor);
|
|
394
|
+
await this.queue.closeAbout({ kind: 'build', id: buildId }, actor);
|
|
395
|
+
return pushed;
|
|
396
|
+
}
|
|
397
|
+
/** Open the pull request for a pushed branch, or say why there is none; never throws. */
|
|
398
|
+
async pullRequestFor(build, project, env) {
|
|
399
|
+
const none = (note) => ({ pullRequest: null, pullRequestNote: note });
|
|
400
|
+
if (!this.config.agents.pullRequests.enabled)
|
|
401
|
+
return none('pull requests are off (agents.pullRequests.enabled)');
|
|
402
|
+
const remote = parseRemote(project.gitUrl ?? '');
|
|
403
|
+
if (!remote)
|
|
404
|
+
return none('the repository is not on Bitbucket, GitHub or GitLab; push only');
|
|
405
|
+
const token = env[TOKEN_ENV[remote.host]];
|
|
406
|
+
if (!token)
|
|
407
|
+
return none(`${TOKEN_ENV[remote.host]} is not set; push only`);
|
|
408
|
+
const review = build.reviewId ? await this.reviews.get(build.reviewId).catch(() => null) : null;
|
|
409
|
+
const changes = await this.builds.changesOf(build);
|
|
410
|
+
const title = build.report.split('\n').find((l) => l.trim() && !l.startsWith('#'))?.trim().slice(0, 72) ?? `aigile build ${build.id.slice(0, 8)}`;
|
|
411
|
+
const body = [
|
|
412
|
+
`Built by aigile's Engineer from the specs of ${project.name} (build ${build.id.slice(0, 8)}); approved through aigile.`,
|
|
413
|
+
'',
|
|
414
|
+
'## The Engineer\'s report',
|
|
415
|
+
'',
|
|
416
|
+
build.report,
|
|
417
|
+
...(review
|
|
418
|
+
? [
|
|
419
|
+
'',
|
|
420
|
+
`## The Code Reviewer's reading (${review.verdict === 'blocked' ? 'could not run' : review.verdict === 'clean' ? 'clean' : `worst: ${review.worst}`})`,
|
|
421
|
+
'',
|
|
422
|
+
review.summary,
|
|
423
|
+
...review.findings.filter((f) => !f.preexisting).map((f) => `- [${f.severity}] ${f.title}${f.file ? ` (${f.file})` : ''}: ${f.detail}`),
|
|
424
|
+
...(review.assumptions.length ? ['', `Assumes: ${review.assumptions.join('; ')}.`] : []),
|
|
425
|
+
]
|
|
426
|
+
: []),
|
|
427
|
+
...(await this.verificationLines(build)),
|
|
428
|
+
'',
|
|
429
|
+
`## Spec changes (${changes.length})`,
|
|
430
|
+
'',
|
|
431
|
+
...changes.map((c) => `- ${c.kind} ${c.specId}${c.toRevision ? ` @ ${c.toRevision.slice(0, 8)}` : ''}`),
|
|
432
|
+
].join('\n');
|
|
433
|
+
try {
|
|
434
|
+
const pr = await openPullRequest(remote, { title, body, source: build.branch, target: project.gitBranch }, token);
|
|
435
|
+
return { pullRequest: pr, pullRequestNote: null };
|
|
436
|
+
}
|
|
437
|
+
catch (err) {
|
|
438
|
+
return none(`the pull request could not be opened: ${err instanceof Error ? err.message : String(err)}`);
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
/** The approver's no, with a reason: the branch goes, and the Engineer tries once more with the reason. */
|
|
442
|
+
async reject(buildId, reason, actor, installRoot, reviewer, verifier, testWriter) {
|
|
443
|
+
const { rejected, retryable } = await this.markRejected(buildId, reason, actor, installRoot);
|
|
444
|
+
if (!retryable)
|
|
445
|
+
return { rejected, retry: null };
|
|
446
|
+
return { rejected, retry: await this.retry(rejected, reason, { installRoot, actor, reviewer: reviewer ?? null, verifier: verifier ?? null, testWriter: testWriter ?? null }) };
|
|
447
|
+
}
|
|
448
|
+
/** The decision itself: the branch is dropped and the build rejected (409 when it is not proposed); `retryable` says whether one more build is owed. */
|
|
449
|
+
async markRejected(buildId, reason, actor, installRoot) {
|
|
450
|
+
const build = await this.builds.get(buildId);
|
|
451
|
+
if (build.status !== 'proposed')
|
|
452
|
+
throw new ServiceError(409, `build ${buildId} is ${build.status}, not proposed`);
|
|
453
|
+
const project = await this.projects.get(build.projectId);
|
|
454
|
+
if (build.branch)
|
|
455
|
+
await withProjectLock(project.id, () => this.checkoutFor(project, installRoot).discard(build.branch));
|
|
456
|
+
const rejected = await this.builds.update(buildId, { status: 'rejected', decidedBy: actor.userId, rejectReason: reason }, `Build ${buildId.slice(0, 8)} rejected`);
|
|
457
|
+
await this.reviews.settleForBuild(buildId, 'sent back', actor);
|
|
458
|
+
await this.queue.closeAbout({ kind: 'build', id: buildId }, actor);
|
|
459
|
+
return { rejected, retryable: !build.retryOf };
|
|
460
|
+
}
|
|
461
|
+
/** Drop a proposed build and its branch without a retry. */
|
|
462
|
+
async discard(buildId, actor, installRoot) {
|
|
463
|
+
const build = await this.builds.get(buildId);
|
|
464
|
+
if (build.status !== 'proposed' && build.status !== 'failed' && build.status !== 'plan-ready')
|
|
465
|
+
throw new ServiceError(409, `build ${buildId} is ${build.status}; only a proposed, failed or plan-ready build can be discarded`);
|
|
466
|
+
const project = await this.projects.get(build.projectId);
|
|
467
|
+
if (build.branch)
|
|
468
|
+
await withProjectLock(project.id, () => this.checkoutFor(project, installRoot).discard(build.branch));
|
|
469
|
+
const discarded = await this.builds.update(buildId, { status: 'discarded', decidedBy: actor.userId }, `Build ${buildId.slice(0, 8)} discarded`);
|
|
470
|
+
await this.reviews.settleForBuild(buildId, 'withdrawn', actor);
|
|
471
|
+
await this.queue.closeAbout({ kind: 'build', id: buildId }, actor);
|
|
472
|
+
return discarded;
|
|
473
|
+
}
|
|
474
|
+
async verificationLines(build) {
|
|
475
|
+
if (!build.verificationId)
|
|
476
|
+
return [];
|
|
477
|
+
const v = await new Verifier(this.store, this.config).get(build.verificationId).catch(() => null);
|
|
478
|
+
if (!v)
|
|
479
|
+
return [];
|
|
480
|
+
return ['', `## Checks: ${v.status}${v.note ? ` (${v.note})` : ''}`, '', ...v.checks.map((c) => `- \`${c.command}\` → ${c.exitCode === null ? 'timed out' : `exit ${c.exitCode}`} in ${Math.round(c.durationMs / 1000)} s`)];
|
|
481
|
+
}
|
|
482
|
+
/** The project's highest-ranked spec author (documentation/agents.md §3.7); the requester when nobody ranks. */
|
|
483
|
+
async approverFor(projectId, fallback) {
|
|
484
|
+
const resolution = await this.resolver.resolveProject(projectId);
|
|
485
|
+
const ranked = resolution.resolved.filter((r) => r.ranking !== null && !r.authorUserId.startsWith('agent:') && r.authorUserId !== 'aigile');
|
|
486
|
+
return ranked[0]?.authorUserId ?? fallback;
|
|
487
|
+
}
|
|
488
|
+
async prompt(build, project, changes, options, mode) {
|
|
489
|
+
const resolution = await this.resolver.resolveProject(project.id);
|
|
490
|
+
let budget = MAX_SPECS_CHARS;
|
|
491
|
+
const specs = resolution.resolved
|
|
492
|
+
.filter((r) => {
|
|
493
|
+
budget -= r.content.length;
|
|
494
|
+
return budget >= 0;
|
|
495
|
+
})
|
|
496
|
+
.map((r, i) => `### ${i + 1}. ${r.title} (spec ${r.specId}, ranking ${r.ranking ?? 'none'})\n\n${r.content}`)
|
|
497
|
+
.join('\n\n');
|
|
498
|
+
const diffs = changes
|
|
499
|
+
.map((c) => `### Spec ${c.specId} (${c.kind})\n\`\`\`diff\n${formatUnifiedDiff(c.diff)}\n\`\`\``)
|
|
500
|
+
.join('\n\n');
|
|
501
|
+
let index = '';
|
|
502
|
+
try {
|
|
503
|
+
index = await readFile(join(options.installRoot, 'agents', 'engineer', `${project.id}.md`), 'utf8');
|
|
504
|
+
}
|
|
505
|
+
catch {
|
|
506
|
+
// No area index yet.
|
|
507
|
+
}
|
|
508
|
+
let reviewText = '';
|
|
509
|
+
if (options.retry?.build.reviewId) {
|
|
510
|
+
const review = await this.reviews.get(options.retry.build.reviewId).catch(() => null);
|
|
511
|
+
if (review && review.verdict === 'findings')
|
|
512
|
+
reviewText = `\n\nThe Code Reviewer found:\n${review.findings.filter((f) => !f.preexisting).map((f) => `- [${f.severity}] ${f.title}${f.file ? ` (${f.file})` : ''}: ${f.detail}`).join('\n')}`;
|
|
513
|
+
}
|
|
514
|
+
if (options.retry?.build.verificationId) {
|
|
515
|
+
const v = await new Verifier(this.store, this.config).get(options.retry.build.verificationId).catch(() => null);
|
|
516
|
+
const failed = v?.checks.find((c) => c.exitCode !== 0);
|
|
517
|
+
if (v && failed)
|
|
518
|
+
reviewText += `\n\nThe checks ${v.status}: \`${failed.command}\` ${failed.exitCode === null ? 'timed out' : `exited ${failed.exitCode}`}; the end of its output:\n\`\`\`\n${failed.outputTail.slice(-2000)}\n\`\`\``;
|
|
519
|
+
}
|
|
520
|
+
const retry = options.retry
|
|
521
|
+
? `\n\n## This build re-does a rejected one\n\nThe approver rejected the previous attempt with this reason:\n\n> ${options.retry.reason}${reviewText}\n\nIts report was:\n\n${options.retry.build.report}\n\nStart again from the base branch (the checkout is clean) and address the reason.`
|
|
522
|
+
: '';
|
|
523
|
+
const approvedPlan = mode === 'build' && build.plan ? `\n\n## The plan a person approved\n\nFollow it; where you must deviate, say so in your report.\n\n${build.plan}` : '';
|
|
524
|
+
const task = mode === 'plan' ? 'Read what you need, then answer with your plan as instructed. Change nothing.' : 'Make the repository satisfy the specs, run its checks, and finish with your report.';
|
|
525
|
+
return `## The project\n\n${project.name}; repository ${safeUrl(project.gitUrl)}, mainline ${project.gitBranch}; you are on branch ${build.branch ?? EngineerAgent.branchFor(build)} in the checkout at your working directory.\n\n## The specs that apply, strongest first (${resolution.resolved.length})\n\n${specs}\n\n## What changed since the previous build (${changes.length} spec(s))\n\n${diffs || '(first build: every spec is new)'}${index ? `\n\n## What earlier Engineers learned about this project\n\n${index}` : ''}${retry}${approvedPlan}\n\n## Your task\n\n${task}`;
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
//# sourceMappingURL=engineer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"engineer.js","sourceRoot":"","sources":["../../src/agents/engineer.ts"],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