owenloop 0.5.16 → 0.5.17

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/CHANGELOG.md CHANGED
@@ -4,6 +4,13 @@ All notable changes to this project are documented here. The format is based on
4
4
  [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project
5
5
  adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## [0.5.17](https://github.com/typicalday/owenloop/compare/v0.5.16...v0.5.17) (2026-08-21)
8
+
9
+
10
+ ### Features
11
+
12
+ * **work:** send the release reason so an unservable order stops being silent ([#279](https://github.com/typicalday/owenloop/issues/279)) ([6bd1194](https://github.com/typicalday/owenloop/commit/6bd119449a8684fb25eae034703d8746b28f175a))
13
+
7
14
  ## [0.5.16](https://github.com/typicalday/owenloop/compare/v0.5.15...v0.5.16) (2026-08-21)
8
15
 
9
16
 
@@ -352,6 +352,7 @@ export type ReleaseRequest = {
352
352
  } | {
353
353
  workflow: string;
354
354
  run: string;
355
+ reason?: string;
355
356
  };
356
357
  /**
357
358
  * Response shapes mirror hub-core `verbs/release.ts` (verified 2026-07-18):
@@ -362,6 +363,10 @@ export type ReleaseRequest = {
362
363
  * drain-exempt-ion, never list which claims were exempt.
363
364
  * - targeted: `{ released: boolean, reason?, workflow?, run? }` — idempotent
364
365
  * (a not-held target is `released: false`, not an error).
366
+ * Targeted requests may carry an optional `reason`; the hub trims it,
367
+ * treats blank text as absent, truncates it to 1024 Unicode code points
368
+ * without splitting surrogate pairs, and records whether truncation
369
+ * occurred. It retains only the first observation for a workflow/step.
365
370
  *
366
371
  * The by-session form's `released` array is REQUIRED (the drain role reads it);
367
372
  * the targeted form's fields are all optional so callers that only do a
@@ -225,8 +225,9 @@ export function createLeaseLoop(opts) {
225
225
  return 'stopped';
226
226
  opts.out(`owenloop work ${role}: final breath (${stopReason || 'stop'}) — releasing ${workflow}/${runId}`);
227
227
  try {
228
+ const request = { workflow, run: runId, ...(stopReason !== '' ? { reason: stopReason } : {}) };
228
229
  const raced = await Promise.race([
229
- opts.hub.release({ workflow, run: runId }).then(() => 'ok'),
230
+ opts.hub.release(request).then(() => 'ok'),
230
231
  opts.sleep(RELEASE_CAP_MS).then(() => 'timeout'),
231
232
  ]);
232
233
  if (raced === 'timeout') {
@@ -391,14 +391,15 @@ export function createShiftLoop(opts) {
391
391
  * deliberately stays off the dispatch critical path; a failed release falls
392
392
  * back to the existing pickup-window behavior and is observable.
393
393
  */
394
- function releaseClaim(workflow, run) {
395
- void opts.hub.release({ workflow, run }).catch((e) => {
394
+ function releaseClaim(workflow, run, reason) {
395
+ void opts.hub.release({ workflow, run, ...(reason !== undefined ? { reason } : {}) }).catch((e) => {
396
396
  noteServerBackoff(e);
397
397
  const message = errMsg(e);
398
398
  opts.err(`[${workflow}/${run}] release failed: ${message} — leaving the hub pickup window to re-offer it`);
399
399
  emit({ type: 'hub-error', op: 'release', workflow, message });
400
400
  });
401
401
  }
402
+ const formatReleaseReason = (reason, message) => `${reason}: ${message}`;
402
403
  function acquireDispatchLock(waitMs, label) {
403
404
  return acquireFileLockSync(join(opts.stateDir, '.dispatch.lock'), {
404
405
  ...opts.dispatchLockOptions,
@@ -614,7 +615,7 @@ export function createShiftLoop(opts) {
614
615
  reason: 'claim-expired',
615
616
  message,
616
617
  });
617
- releaseClaim(candidate.workflow, candidate.order.run);
618
+ releaseClaim(candidate.workflow, candidate.order.run, formatReleaseReason('claim-expired', message));
618
619
  return true;
619
620
  }
620
621
  /** Dispatch already-claimed orders when local child capacity becomes free. */
@@ -787,7 +788,7 @@ export function createShiftLoop(opts) {
787
788
  */
788
789
  const releaseOrder = (workflow, order, reason, message) => {
789
790
  dropOrder(workflow, order, reason, message);
790
- releaseClaim(workflow, order.run);
791
+ releaseClaim(workflow, order.run, formatReleaseReason(reason, message));
791
792
  // Re-arm the next sweep, but only for the two TRANSIENT reasons — see
792
793
  // `SweepResult.releasedForCapacity` for why `agent-lane-closed` is not
793
794
  // one of them. The independent cooldown prevents a busy cursor from
@@ -17,8 +17,9 @@ which policy applies. If the turn ends without a hub outcome, its
17
17
  terminal local line repeats the provider-reported runtime model and a bounded
18
18
  harness diagnostic when either was reported; missing values are named rather
19
19
  than guessed. These messages are telemetry only. The hub remains the sole
20
- source of task outcome, and the targeted release request carries no diagnostic
21
- fields.
20
+ source of task outcome. Its targeted release receives the stable
21
+ `capability-silent-no-submit` reason, while the provider-reported runtime model
22
+ and bounded harness diagnostic remain local to the worker output.
22
23
 
23
24
  Native judge entries do not carry a separately authored `x` map. The definition
24
25
  compiler deep-clones the producer step's complete parsed `x` map onto every
@@ -46,10 +46,11 @@ stdout/stderr, so Shift dispatch preserves them in `<run>.log`. The claim
46
46
  warning states whether the harness will use its default or an authored step
47
47
  model/effort; the terminal message may name the harness-reported runtime model
48
48
  and bounded failure context when available. It is intentionally not a
49
- `shift.log` event and does not add a
50
- diagnosis to the reason-less targeted hub release. Local logging can still be
51
- disabled as described below, in which case the worker remains runnable but
52
- these local diagnostics are not retained.
49
+ `shift.log` event. The targeted hub release receives only the stable
50
+ `capability-silent-no-submit` reason; the detailed provider and failure context
51
+ stays in worker output. Local logging can still be disabled as described below,
52
+ in which case the worker remains runnable but these local diagnostics are not
53
+ retained.
53
54
 
54
55
  | Command outcome | Worker channel | Header |
55
56
  | --- | --- | --- |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "owenloop",
3
- "version": "0.5.16",
3
+ "version": "0.5.17",
4
4
  "description": "Deterministic rails for agentic workflows. Declare steps and dependencies; the engine guarantees order, redoes what changes invalidate, and stops what keeps failing — instead of hoping the agent follows through.",
5
5
  "license": "Apache-2.0",
6
6
  "author": "typicalday",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "owenloop",
3
- "version": "0.5.16",
3
+ "version": "0.5.17",
4
4
  "description": "Claude Code driver for owenloop — cross-harness shift and conduct skills driven by the owenloop CLI, plus one hub control-plane MCP server backing an author skill and a fallback worker, for conducting and authoring workflows against your hosted owenloop server.",
5
5
  "author": {
6
6
  "name": "Typical Day"
@@ -7,7 +7,7 @@
7
7
  "mcp"
8
8
  ],
9
9
  "env": {
10
- "OWENLOOP_PLUGIN_VERSION": "0.5.16"
10
+ "OWENLOOP_PLUGIN_VERSION": "0.5.17"
11
11
  }
12
12
  }
13
13
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "owenloop",
3
- "version": "0.5.16",
3
+ "version": "0.5.17",
4
4
  "description": "Codex plugin for the owenloop workflow engine.",
5
5
  "skills": "./skills/",
6
6
  "mcpServers": "./.mcp.json"
@@ -6,7 +6,7 @@
6
6
  "mcp"
7
7
  ],
8
8
  "env": {
9
- "OWENLOOP_PLUGIN_VERSION": "0.5.16"
9
+ "OWENLOOP_PLUGIN_VERSION": "0.5.17"
10
10
  },
11
11
  "env_vars": [
12
12
  "HOME",