agents-relay 2.0.205 → 2.0.206

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.
@@ -308,6 +308,14 @@ export async function runAgentShortcut(options) {
308
308
  let effectsStarted = false;
309
309
  let shortcutModuleEntered = false;
310
310
  try {
311
+ // Shortcut execution is a whole-Graph optimization, not a per-node Worker scheduler.
312
+ // Check complete coverage BEFORE importing or invoking any shortcut. Otherwise a
313
+ // missing later role can strand earlier side effects in Troubleshooter recovery.
314
+ // The existing durable shortcut.failed transition safely routes an untouched Graph
315
+ // to its original Worker; a previously checkpointed partial run still fails closed.
316
+ const missing = shortcuts.filter(item => !item.path);
317
+ if (missing.length)
318
+ return await fallback(`Incomplete Agent Graph shortcut coverage: ${missing.map(item => item.nodeId).join(', ')}; use the original Worker`);
311
319
  const incoming = new Map(graph.nodes.map(node => [node.id, graph.edges.filter(edge => edge.to === node.id).map(edge => edge.from)]));
312
320
  const max = Math.max(1, Math.min(8, options.concurrency ?? 4));
313
321
  const shortcutByNode = new Map(shortcuts.map(item => [item.nodeId, item.path]));
package/dist/cli-help.js CHANGED
@@ -58,9 +58,10 @@ Shortcut execution:
58
58
  [--store-dir DIR] [--project-path DIR] [--neo-root DIR] [--concurrency 4]
59
59
 
60
60
  The selected Task must have an Agent Graph. Project shortcuts at
61
- agents/.shortcut/<agent>.agent.mjs override Neo shared shortcuts. Missing or
62
- shortcuts that fail before effects are returned to the normal durable Worker
63
- queue. Nonhuman waits resume only from a matching SQLite Task receipt; EventBus
61
+ agents/.shortcut/<agent>.agent.mjs override Neo shared shortcuts. A Graph
62
+ with any missing shortcut falls back to the normal durable Worker before
63
+ executing any module; mixing shortcut and Worker nodes in one Graph is unsupported.
64
+ Shortcuts that fail before effects also return to the Worker queue. Nonhuman waits resume only from a matching SQLite Task receipt; EventBus
64
65
  events are wake signals. Human approval remains hostInvocation-only.
65
66
  Shortcut Job completion requires durable contentOnly=true and no PR, merge, or review gates.
66
67
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agents-relay",
3
- "version": "2.0.205",
3
+ "version": "2.0.206",
4
4
  "description": "Durable async agent jobs coordinated through GitHub pull requests",
5
5
  "repository": {
6
6
  "type": "git",