agents-relay 2.0.240 → 2.0.241

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,17 @@ 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; if you cannot fulfill the Task, report task.failed.',
147
+ '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.',
148
+ ] : []),
149
+ ]),
139
150
  ];
140
151
  return lines.join('\n');
141
152
  }
@@ -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 an immutable Agent reference only.
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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agents-relay",
3
- "version": "2.0.240",
3
+ "version": "2.0.241",
4
4
  "description": "Durable async agent jobs coordinated through GitHub pull requests",
5
5
  "repository": {
6
6
  "type": "git",