owenloop 0.5.3 → 0.5.5

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.
Files changed (60) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/README.md +6 -2
  3. package/dist/packages/work/src/agent/brief.d.ts +6 -0
  4. package/dist/packages/work/src/agent/brief.js +102 -2
  5. package/dist/packages/work/src/agent/loop.d.ts +10 -1
  6. package/dist/packages/work/src/agent/loop.js +28 -0
  7. package/dist/packages/work/src/agent/workdir.d.ts +22 -0
  8. package/dist/packages/work/src/agent/workdir.js +80 -0
  9. package/dist/packages/work/src/exec/loop.d.ts +13 -1
  10. package/dist/packages/work/src/exec/loop.js +184 -9
  11. package/dist/packages/work/src/harness/child-env.js +8 -0
  12. package/dist/packages/work/src/harness/claude.js +25 -6
  13. package/dist/packages/work/src/harness/codex.js +7 -0
  14. package/dist/packages/work/src/harness/contract.d.ts +22 -3
  15. package/dist/packages/work/src/harness/contract.js +22 -3
  16. package/dist/packages/work/src/hold/mcp.d.ts +11 -2
  17. package/dist/packages/work/src/hold/mcp.js +69 -2
  18. package/dist/packages/work/src/hub/client.d.ts +8 -1
  19. package/dist/packages/work/src/hub/client.js +1 -0
  20. package/dist/packages/work/src/hub/types.d.ts +29 -0
  21. package/dist/packages/work/src/roles/agent-run.js +9 -1
  22. package/dist/packages/work/src/roles/exec.js +9 -0
  23. package/dist/packages/work/src/roles/shift.js +9 -1
  24. package/dist/packages/work/src/settings/settings.d.ts +32 -5
  25. package/dist/packages/work/src/settings/settings.js +37 -12
  26. package/dist/packages/work/src/shift/runtime.d.ts +7 -0
  27. package/dist/packages/work/src/shift/runtime.js +29 -4
  28. package/dist/packages/work/src/shift/spawn.d.ts +12 -2
  29. package/dist/packages/work/src/shift/spawn.js +16 -3
  30. package/dist/src/cli.js +257 -7
  31. package/dist/src/config-dir.d.ts +62 -0
  32. package/dist/src/config-dir.js +87 -0
  33. package/dist/src/crypto/trust-roots.d.ts +8 -4
  34. package/dist/src/crypto/trust-roots.js +18 -12
  35. package/dist/src/defs.js +57 -16
  36. package/dist/src/engine.d.ts +46 -1
  37. package/dist/src/engine.js +97 -3
  38. package/dist/src/hub.d.ts +5 -1
  39. package/dist/src/hub.js +7 -8
  40. package/dist/src/index.d.ts +1 -1
  41. package/dist/src/index.js +1 -1
  42. package/dist/src/model.d.ts +29 -5
  43. package/dist/src/model.js +63 -14
  44. package/dist/src/paths.d.ts +47 -4
  45. package/dist/src/paths.js +36 -5
  46. package/dist/src/types.d.ts +8 -2
  47. package/dist/src/work-settings.d.ts +8 -5
  48. package/dist/src/work-settings.js +15 -12
  49. package/docs/authoring.md +40 -13
  50. package/docs/bundles.md +9 -0
  51. package/docs/cli.md +155 -24
  52. package/docs/crypto.md +8 -8
  53. package/docs/design.md +20 -2
  54. package/docs/embedding.md +5 -4
  55. package/docs/wire-contracts.md +3 -2
  56. package/package.json +1 -1
  57. package/plugins/claude-code/plugin/.claude-plugin/plugin.json +1 -1
  58. package/plugins/claude-code/plugin/.mcp.json +1 -1
  59. package/plugins/codex/plugins/owenloop/.codex-plugin/plugin.json +1 -1
  60. package/plugins/codex/plugins/owenloop/.mcp.json +1 -1
package/docs/design.md CHANGED
@@ -964,8 +964,26 @@ verdict, so the worker issues neither verb and the reap path re-offers the order
964
964
  Command receipts may also carry a bounded JSON payload emitted by a stdout line
965
965
  beginning with `##owenloop:payload##`. The last marker line wins, and the 64 KiB
966
966
  JSON-text cap protects the runner because the runner does not buffer full stdout.
967
- A valid plain-step payload reject is delivered only after every owed receipt has
968
- been submitted. The reject request contains `workflow`, `run`, `path`, and `text`;
967
+ A valid plain-step payload reject is delivered BEFORE any owed receipt is
968
+ submitted. The hub refuses a reject from a run whose claim has closed, and a
969
+ step's last owed submit is what closes it — so the reverse order made every
970
+ reject from a single-owed-path step undeliverable. What follows the reject
971
+ depends on the hub's own answer, in its `closed` field:
972
+
973
+ - `closed: true` — the rejected path was one of this firing's consumed inputs,
974
+ so the hub closed the run `no_work`. The owed paths stay debts and the step
975
+ re-fires against the rebuilt input. No receipt is submitted: an artifact
976
+ derived from an input the same command just declared bad is what the engine's
977
+ dead-input cascade would discard anyway. This is also why the ordering cannot
978
+ born-reject a later submit — there is no later submit.
979
+ - `closed: false` — the rejected path was not consumed by this firing, so the
980
+ claim and the consume fingerprint are both intact and every owed receipt is
981
+ submitted normally.
982
+
983
+ A reject that is refused or throws submits nothing at all, so a gate can never
984
+ green the path its own reject was protesting.
985
+
986
+ The reject request contains `workflow`, `run`, `path`, and `text`;
969
987
  the hub derives the rejecting actor and the client cannot provide `by`.
970
988
 
971
989
  This worker transport does not change `assertAuthority`: the engine continues to
package/docs/embedding.md CHANGED
@@ -92,10 +92,11 @@ to — see deep tick below), `defDigest` (identifies the definition snapshot to
92
92
  resolve instructions from), `consumes` (the captured green inputs), `owes`
93
93
  (the owed outputs + their accumulated reason threads), plus
94
94
  `inputs`/`outputs`/`workdir`/`model`/`worker`/`spec`/`x`/`cause`. `workdir` may
95
- be authored as a literal `workdir:` or resolved from a consumed artifact by a
96
- step's `workdirFrom:`; the order field and wire shape are the same either way.
97
- If the consumed value cannot resolve to a non-empty string, `engine.tick()`
98
- returns a `workdir-unresolved` deferral and emits no order. It carries
95
+ be authored as a literal `workdir:` or resolved by a step's `workdirFrom:` from
96
+ either a consumed artifact or a declared input; the order field and wire shape
97
+ are the same in all three cases. If the resolved value cannot become a non-empty
98
+ string — including while a named input is still owed — `engine.tick()` returns a
99
+ `workdir-unresolved` deferral and emits no order. It carries
99
100
  no authored prompt or command text — those resolve through `resolver` by
100
101
  digest (next section). A consumer rejecting an upstream artifact is just
101
102
  `engine.reject(wf, path, by, text)`; the forward cascade and stall liveness
@@ -296,8 +296,9 @@ Required fields are `run`, `workflow`, `step`, `key`, `defDigest`, `inputs`,
296
296
 
297
297
  Optional fields are `index`, `workdir`, `model`, `worker`, `judge`, `spec`, `x`,
298
298
  `consumedFingerprint`, `consumesProof`, and `cause`. `workdir` may be authored
299
- as a literal `workdir:` or resolved by the engine from a consumed artifact's
300
- `workdirFrom:` value; the Order wire shape remains unchanged.
299
+ as a literal `workdir:` or resolved by the engine from a step's `workdirFrom:`,
300
+ whose stem names either a consumed artifact or a declared input; the Order wire
301
+ shape remains unchanged. No proof field covers `workdir` in any case.
301
302
 
302
303
  `defDigest` is a non-empty opaque reference. `inputs` and `outputs` are string
303
304
  arrays. `consumes` is an open artifact-path map; `spec` and `x` are opaque
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "owenloop",
3
- "version": "0.5.3",
3
+ "version": "0.5.5",
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.3",
3
+ "version": "0.5.5",
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.3"
10
+ "OWENLOOP_PLUGIN_VERSION": "0.5.5"
11
11
  }
12
12
  }
13
13
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "owenloop",
3
- "version": "0.5.3",
3
+ "version": "0.5.5",
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.3"
9
+ "OWENLOOP_PLUGIN_VERSION": "0.5.5"
10
10
  },
11
11
  "env_vars": [
12
12
  "HOME",