agents-relay 2.0.240 → 2.0.242
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.
|
@@ -136,6 +136,19 @@ export async function buildRelayWorkPrompt(input) {
|
|
|
136
136
|
`Job: ${input.jobId}`,
|
|
137
137
|
`Task: ${input.taskId}`,
|
|
138
138
|
`Execution: ${input.executionId}`,
|
|
139
|
+
'', '## User Assignment',
|
|
140
|
+
...(input.taskTitle?.trim() ? [`Assigned ${input.agentName === 'planner' ? 'Plan' : 'Task'} title (locator): ${JSON.stringify(input.taskTitle)}`] : []),
|
|
141
|
+
...(input.agentName === 'planner' ? [
|
|
142
|
+
'Read the full authoritative Plan Context through the matching Relay CLI. Apply the actual Plan, not merely its context lookup.',
|
|
143
|
+
] : [
|
|
144
|
+
'Read the FULL authoritative Task input, output, and acceptance criteria through the matching Relay CLI. Fulfill THAT Task: reading context, starting, or summarizing it is preparation only.',
|
|
145
|
+
...(input.workerSelfReview ? [
|
|
146
|
+
'Before task.completed, perform at least TWO independent full Task-to-result review/fix rounds: reread the Task requirements, check every requirement, fix real gaps, and review again until clean. Never invent fixes or evidence.',
|
|
147
|
+
'A failing test, incomplete implementation, or self-review finding means CONTINUE implementing and fixing, not task.failed. While a concrete next repair is feasible within this execution, do that repair and repeat the full review/fix cycle; use task.progress to report findings and the next repair.',
|
|
148
|
+
'Only report task.failed for a specific, verified blocker that prevents further effective work in this execution (such as missing required access, an unavailable dependency, or an exhausted hard execution limit). Explain the blocker, evidence, what was attempted, and why no actionable repair remains. Do not equate unfinished Task requirements with inability to fulfill them.',
|
|
149
|
+
'For EACH completed self-review round (including clean rounds), publish a separate correlated `task.progress` event via the configured events-bus, recording round number, Task requirements checked, findings, fixes and verification outcome. Verify event acceptance before continuing or publishing the terminal event. A progress event is not task.completed.',
|
|
150
|
+
] : []),
|
|
151
|
+
]),
|
|
139
152
|
];
|
|
140
153
|
return lines.join('\n');
|
|
141
154
|
}
|
|
@@ -6,7 +6,7 @@ import { existsSync } from 'node:fs';
|
|
|
6
6
|
import { fileURLToPath } from 'node:url';
|
|
7
7
|
/**
|
|
8
8
|
* Shared entry point for every managed Agent. Runtime Task intent lives in SQLite;
|
|
9
|
-
* the adapter receives execution identity and
|
|
9
|
+
* the adapter receives a Task title, execution identity, and immutable Agent reference.
|
|
10
10
|
* No GitHub/PR discovery or dynamic skill/agent inventory enters the prompt.
|
|
11
11
|
*/
|
|
12
12
|
export async function managedWorkerInput(job, task, context, mode = 'production') {
|
|
@@ -58,6 +58,8 @@ export async function managedWorkerInput(job, task, context, mode = 'production'
|
|
|
58
58
|
projectPath: context.project.gitRoot ?? context.project.path,
|
|
59
59
|
providerInstructions: context.providerInstructions?.[adapter],
|
|
60
60
|
skillPath: join(packageRoot, 'skills/agents-relay/SKILL.md'),
|
|
61
|
+
taskTitle: task.title,
|
|
62
|
+
workerSelfReview: role === 'worker',
|
|
61
63
|
jobId: job.id,
|
|
62
64
|
taskId: task.id,
|
|
63
65
|
executionId: task.executionId,
|