owenloop 0.5.35 → 0.5.36

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.36](https://github.com/typicalday/owenloop/compare/v0.5.35...v0.5.36) (2026-10-05)
8
+
9
+
10
+ ### Bug Fixes
11
+
12
+ * **work:** revoke hold MCP tools immediately on stop ([#346](https://github.com/typicalday/owenloop/issues/346)) ([da3b574](https://github.com/typicalday/owenloop/commit/da3b574850ef05ff19833c69978012bf66dafb9c))
13
+
7
14
  ## [0.5.35](https://github.com/typicalday/owenloop/compare/v0.5.34...v0.5.35) (2026-10-04)
8
15
 
9
16
 
@@ -111,6 +111,7 @@ export function createHoldMcp(deps) {
111
111
  // either the model or submit-proof construction.
112
112
  let firstContact;
113
113
  let captured;
114
+ let stopping = false;
114
115
  // Set the moment the lease loop's run() settles (lease-lost, completed,
115
116
  // released, …): from then on this mount no longer holds the order, so BOTH
116
117
  // registered tools fast-fail with isError and never touch the hub again (plan section 4
@@ -140,13 +141,17 @@ export function createHoldMcp(deps) {
140
141
  terminal = outcome;
141
142
  return outcome;
142
143
  },
143
- stop: (reason, stopOpts) => inner.stop(reason, stopOpts),
144
+ stop: (reason, stopOpts) => {
145
+ // Revoke model-facing tools before the asynchronous lease loop settles.
146
+ stopping = true;
147
+ inner.stop(reason, stopOpts);
148
+ },
144
149
  };
145
150
  /** The fast-fail both tools apply once the hold is over. */
146
151
  function terminalGuard() {
147
- if (terminal === undefined)
152
+ if (terminal === undefined && !stopping)
148
153
  return undefined;
149
- return textResult({ error: `order no longer held (${terminal}) — stop` }, true);
154
+ return textResult({ error: `order no longer held (${terminal ?? 'stopping'}) — stop` }, true);
150
155
  }
151
156
  async function gate(res) {
152
157
  if (res.order === null)
@@ -182,12 +187,18 @@ export function createHoldMcp(deps) {
182
187
  return gone;
183
188
  if (captured !== undefined) {
184
189
  const refused = await gate(captured);
190
+ const afterGate = terminalGuard();
191
+ if (afterGate !== undefined)
192
+ return afterGate;
185
193
  if (refused !== undefined)
186
194
  return refused;
187
195
  return textResult(orderView(captured));
188
196
  }
189
197
  if (firstContact !== undefined) {
190
198
  const refused = await gate(firstContact);
199
+ const afterGate = terminalGuard();
200
+ if (afterGate !== undefined)
201
+ return afterGate;
191
202
  if (refused !== undefined)
192
203
  return refused;
193
204
  captured = firstContact;
@@ -196,6 +207,9 @@ export function createHoldMcp(deps) {
196
207
  try {
197
208
  const res = await hub.getOrder({ workflow, run, ...holderReq });
198
209
  const refused = await gate(res);
210
+ const afterGate = terminalGuard();
211
+ if (afterGate !== undefined)
212
+ return afterGate;
199
213
  if (refused !== undefined)
200
214
  return refused;
201
215
  captured = res;
@@ -278,6 +292,9 @@ export function createHoldMcp(deps) {
278
292
  ...(deps.sshProcess !== undefined ? { sshProcess: deps.sshProcess } : {}),
279
293
  });
280
294
  }
295
+ const beforeSubmit = terminalGuard();
296
+ if (beforeSubmit !== undefined)
297
+ return beforeSubmit;
281
298
  const res = await hub.submit({
282
299
  workflow,
283
300
  run,
@@ -444,6 +461,9 @@ export function createHoldMcp(deps) {
444
461
  }
445
462
  const contentType = typeof contentTypeArg === 'string' ? contentTypeArg.trim() : guessContentType(resolved);
446
463
  const filename = typeof filenameArg === 'string' ? filenameArg.trim() : basename(resolved);
464
+ const beforeUpload = terminalGuard();
465
+ if (beforeUpload !== undefined)
466
+ return beforeUpload;
447
467
  const res = await hub.putFileArtifact({ workflow, bytes, contentType, filename });
448
468
  // Hand back the envelope EXACTLY as it must be submitted. The hub's
449
469
  // `text` is dropped from the pointer so the model cannot paste a field
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "owenloop",
3
- "version": "0.5.35",
3
+ "version": "0.5.36",
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.35",
3
+ "version": "0.5.36",
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.35"
10
+ "OWENLOOP_PLUGIN_VERSION": "0.5.36"
11
11
  }
12
12
  }
13
13
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "owenloop",
3
- "version": "0.5.35",
3
+ "version": "0.5.36",
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.35"
9
+ "OWENLOOP_PLUGIN_VERSION": "0.5.36"
10
10
  },
11
11
  "env_vars": [
12
12
  "HOME",