agents-relay 2.0.265 → 2.0.267
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/README.md +1 -1
- package/dashboard/dashboard.css +224 -0
- package/dashboard/dashboard.js +398 -0
- package/dashboard/icons/icon-180.png +0 -0
- package/dashboard/icons/icon-192.png +0 -0
- package/dashboard/icons/icon-512.png +0 -0
- package/dashboard/index.html +92 -0
- package/dashboard/jel-function.js +193 -0
- package/dashboard/manifest.webmanifest +25 -0
- package/dashboard/pwa.js +6 -0
- package/dashboard/service-worker.js +24 -0
- package/dist/agent-prompt-builder.js +6 -1
- package/dist/cli-help.js +11 -2
- package/dist/cli-task-complete.js +12 -0
- package/dist/cli.js +6 -1
- package/dist/dashboard-html.js +23 -483
- package/dist/dashboard-style.js +3 -223
- package/dist/dashboard.js +34 -4
- package/dist/git-delivery.js +112 -0
- package/dist/managed-worker-input.js +1 -0
- package/dist/reconciler-runtime.js +6 -1
- package/dist/relayd-control.js +45 -0
- package/dist/workflow/definitions-v2.js +2 -1
- package/dist/workflow/entity-creation.js +2 -1
- package/dist/workflow/lifecycle.js +3 -3
- package/package.json +2 -1
- package/skills/agents-relay/SKILL.md +4 -0
- package/skills/agents-relay/contracts/event-contract.md +1 -0
- package/skills/agents-relay/contracts/worker-self-review.md +4 -0
- package/workflow/task-lifecycle.mmd +6 -2
|
@@ -21,6 +21,7 @@ Every Implementation, Reviewer, and Troubleshooter execution publishes `task.sta
|
|
|
21
21
|
`task.started` and `task.progress` reset the Task inactivity timeout only when Relay accepts the event for the exact current execution. Progress is nonterminal, must be newer than the last accepted progress event, and cannot extend a terminal or stale execution.
|
|
22
22
|
|
|
23
23
|
- `task.completed`: assigned responsibility finished and its role-specific output is durable, regardless of whether a reviewed artifact passed.
|
|
24
|
+
For newly created source Tasks with `gitDeliveryRequired=true`, do **not** publish `task.completed` directly. Complete through `agents-relay task complete --repo ... --id ... --task-id ... --execution-id ... --commit-sha ... --summary ...` after a fresh Git commit. Relay validates the commit and emits the correlated Task completion itself; direct Event Bus completion is rejected.
|
|
24
25
|
- `task.failed`: assigned responsibility could not be fulfilled; include failure phase, reason, and evidence in `data`.
|
|
25
26
|
|
|
26
27
|
`task.blocked` and `task.unblocked` are **Relay-owned lifecycle facts**, not agent terminal outcomes. Transport acceptance is not proof Relay accepted the transition. Every lifecycle event must use the exact Job, Task, and execution source identity provided by Relay; stale/duplicate execution events cannot change current state.
|
|
@@ -10,3 +10,7 @@ For every Task that implements or changes code, configuration, documentation, me
|
|
|
10
10
|
This worker self-review **does not replace** Relay's independent SHA-bound final Reviewer, required human approvals, Graph-managed review/revision, or delivery/merge gates. A worker must not approve its own final review, merge, or invent verification evidence.
|
|
11
11
|
|
|
12
12
|
For read-only research or diagnostic Tasks, validate findings and evidence; do not invent artifact modifications or review rounds.
|
|
13
|
+
|
|
14
|
+
## Commit-required source Tasks
|
|
15
|
+
|
|
16
|
+
If the authoritative Task Context says `gitDeliveryRequired: true`, the final self-review is followed by a **real Git commit** on the Task's Job source branch, before completion. Include exact `Relay-Task: TASK_ID` and `Relay-Execution: EXECUTION_ID` commit trailers; verify no untracked or modified source files remain. Call the same-version `agents-relay task complete` CLI with the full commit SHA and bound execution ID. This CLI is the only authorized success path for the Task. A direct `task.completed` Event Bus message is not acceptable. Missing output, dirty source, wrong commit ancestry, stale execution or failed checks are not success; keep working or report an evidenced blocker.
|
|
@@ -25,6 +25,8 @@ depUnsat["guard: dependenciesUnsatisfied"]
|
|
|
25
25
|
runnable["guard: runnable"]
|
|
26
26
|
dispatchable["guard: dispatchable"]
|
|
27
27
|
recoverStart["guard: recoverableExecution"]
|
|
28
|
+
sourceDeliveryReady["guard: sourceDeliveryVerified"]
|
|
29
|
+
recoverSourceDeliveryReady["guard: sourceDeliveryVerified"]
|
|
28
30
|
recoverComplete["guard: recoverableExecution"]
|
|
29
31
|
recoverBlocked["guard: recoverableExecution"]
|
|
30
32
|
recoverFailed["guard: recoverableExecution"]
|
|
@@ -173,7 +175,8 @@ running -->|on: review.changes_required| reviewChangesRunningClearError
|
|
|
173
175
|
reviewChangesRunningClearError --> reviewChangesRunningClearReason
|
|
174
176
|
reviewChangesRunningClearReason --> succeeded
|
|
175
177
|
running -->|on: review.blocked| runningBlockAllowed
|
|
176
|
-
running -->|on: task.completed|
|
|
178
|
+
running -->|on: task.completed| sourceDeliveryReady
|
|
179
|
+
sourceDeliveryReady -->|true| completeClearError
|
|
177
180
|
completeClearError --> completeClearReason
|
|
178
181
|
completeClearReason --> succeeded
|
|
179
182
|
running -->|on: task.failed| failed
|
|
@@ -213,7 +216,8 @@ failed -->|on: task.started| recoverStart
|
|
|
213
216
|
recoverStart -->|true| recoverStartClearError
|
|
214
217
|
recoverStartClearError --> recoverStartClearReason
|
|
215
218
|
recoverStartClearReason --> running
|
|
216
|
-
failed -->|on: task.completed|
|
|
219
|
+
failed -->|on: task.completed| recoverSourceDeliveryReady
|
|
220
|
+
recoverSourceDeliveryReady -->|true| recoverComplete
|
|
217
221
|
recoverComplete -->|true| recoverCompleteClearError
|
|
218
222
|
recoverCompleteClearError --> recoverCompleteClearReason
|
|
219
223
|
recoverCompleteClearReason --> succeeded
|