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.
- package/CHANGELOG.md +25 -0
- package/README.md +6 -2
- package/dist/packages/work/src/agent/brief.d.ts +6 -0
- package/dist/packages/work/src/agent/brief.js +102 -2
- package/dist/packages/work/src/agent/loop.d.ts +10 -1
- package/dist/packages/work/src/agent/loop.js +28 -0
- package/dist/packages/work/src/agent/workdir.d.ts +22 -0
- package/dist/packages/work/src/agent/workdir.js +80 -0
- package/dist/packages/work/src/exec/loop.d.ts +13 -1
- package/dist/packages/work/src/exec/loop.js +184 -9
- package/dist/packages/work/src/harness/child-env.js +8 -0
- package/dist/packages/work/src/harness/claude.js +25 -6
- package/dist/packages/work/src/harness/codex.js +7 -0
- package/dist/packages/work/src/harness/contract.d.ts +22 -3
- package/dist/packages/work/src/harness/contract.js +22 -3
- package/dist/packages/work/src/hold/mcp.d.ts +11 -2
- package/dist/packages/work/src/hold/mcp.js +69 -2
- package/dist/packages/work/src/hub/client.d.ts +8 -1
- package/dist/packages/work/src/hub/client.js +1 -0
- package/dist/packages/work/src/hub/types.d.ts +29 -0
- package/dist/packages/work/src/roles/agent-run.js +9 -1
- package/dist/packages/work/src/roles/exec.js +9 -0
- package/dist/packages/work/src/roles/shift.js +9 -1
- package/dist/packages/work/src/settings/settings.d.ts +32 -5
- package/dist/packages/work/src/settings/settings.js +37 -12
- package/dist/packages/work/src/shift/runtime.d.ts +7 -0
- package/dist/packages/work/src/shift/runtime.js +29 -4
- package/dist/packages/work/src/shift/spawn.d.ts +12 -2
- package/dist/packages/work/src/shift/spawn.js +16 -3
- package/dist/src/cli.js +257 -7
- package/dist/src/config-dir.d.ts +62 -0
- package/dist/src/config-dir.js +87 -0
- package/dist/src/crypto/trust-roots.d.ts +8 -4
- package/dist/src/crypto/trust-roots.js +18 -12
- package/dist/src/defs.js +57 -16
- package/dist/src/engine.d.ts +46 -1
- package/dist/src/engine.js +97 -3
- package/dist/src/hub.d.ts +5 -1
- package/dist/src/hub.js +7 -8
- package/dist/src/index.d.ts +1 -1
- package/dist/src/index.js +1 -1
- package/dist/src/model.d.ts +29 -5
- package/dist/src/model.js +63 -14
- package/dist/src/paths.d.ts +47 -4
- package/dist/src/paths.js +36 -5
- package/dist/src/types.d.ts +8 -2
- package/dist/src/work-settings.d.ts +8 -5
- package/dist/src/work-settings.js +15 -12
- package/docs/authoring.md +40 -13
- package/docs/bundles.md +9 -0
- package/docs/cli.md +155 -24
- package/docs/crypto.md +8 -8
- package/docs/design.md +20 -2
- package/docs/embedding.md +5 -4
- package/docs/wire-contracts.md +3 -2
- package/package.json +1 -1
- package/plugins/claude-code/plugin/.claude-plugin/plugin.json +1 -1
- package/plugins/claude-code/plugin/.mcp.json +1 -1
- package/plugins/codex/plugins/owenloop/.codex-plugin/plugin.json +1 -1
- 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
|
|
968
|
-
|
|
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
|
|
96
|
-
|
|
97
|
-
If the
|
|
98
|
-
|
|
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
|
package/docs/wire-contracts.md
CHANGED
|
@@ -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
|
|
300
|
-
|
|
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
|
+
"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
|
+
"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"
|