bareloop 0.6.0 → 0.8.0

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/README.md CHANGED
@@ -25,15 +25,34 @@ inheritance with ledger-counted attribution.
25
25
  The pitch in one line: **workflows that earn their own design, with receipts** — every
26
26
  inherited rule carries the green that minted it and the contrast that attributed it.
27
27
 
28
+ **What you keep is the workflow, not the session.** An agent figures your recurring,
29
+ verifiable job out once; what survives is a verified, self-healing workflow you can run
30
+ again — with bounded spend under an envelope *you* sign, deterministic verification you
31
+ don't author, and cost and time reported honestly (an unknown is reported unknown, never
32
+ rounded to zero). *Direction, not yet shipped:* a local workbench where you experiment with
33
+ a job, graduate a workflow once it greens, and **export** it — signed spec, workflow, close
34
+ scripts and a thin runner that depends on bareloop, so the whole self-healing library
35
+ (bare-agent · bareguard · litectx) comes along as npm dependencies. That bundle runs
36
+ headless as an enclosed CLI and asks you the same signing questions at the prompt that the
37
+ workbench would. It is a dependency, never generated standalone code: the gate travels with
38
+ it and never disappears.
39
+
28
40
  > **Status: Layer 2 — accepted.** The agent now authors its own workflow: `runJob()`
29
41
  > takes a signed job spec, surveys the repo, **drafts a validated plan of bounded steps**
30
42
  > (each with an operator-signed self-check it may reference but never author), and runs it
31
43
  > under an un-gameable outer close and one budget it can only tighten. On the real-model
32
44
  > acceptance battery (F47) the emergent flow converted a job the same worker failed 4/4
33
45
  > before — 3/3 runs, clearing the owned bar every time, composing its own check exits. The
34
- > within-run ratchet (Layer R) ships armed-and-inert by measurement (F41). Next: **N3 —
35
- > executed inheritance**, where the workflow persists and improves across runs (the
36
- > ladder's kill-switch question).
46
+ > within-run ratchet (Layer R) ships armed-and-inert by measurement (F41). **In flight:
47
+ > N3 — executed inheritance**, where a workflow that greened is kept, offered to the next
48
+ > similar job, and improved as executed instead of drafted from scratch (the ladder's
49
+ > kill-switch question). As of 0.7.0 N3's machinery **ships** — the bridge registry, the
50
+ > operator-signed reuse envelope, the selection call and step-level resume are all in the
51
+ > public API — but shipping is not acceptance: one execution green proves reuse safe and
52
+ > legal, never *beneficial*. The contrast that was to prove the lift is now retired (F88): a
53
+ > validation rule hands every cold run the plan shape a bridge was carrying, so the gap it
54
+ > would have measured is gone. Treat reuse as available and unproven — what a bridge should
55
+ > carry instead is open.
37
56
 
38
57
  ## Quick start
39
58
 
@@ -60,17 +79,17 @@ Three layers; nothing inside negotiates with the layer above it.
60
79
  | Layer | What it is | Emergent? |
61
80
  |---|---|---|
62
81
  | **Outer shell** | Per-run budget cap (bareguard), retry cap, verdict collection, escalation routing. Stateless across runs | never — permanent, dumb, un-gameable |
63
- | **Emergent middle** | The authored plan: bounded steps, each with its granted verbs, its own round/attempt caps, its write scope and its form-checkable exits — schema-validated, red before tokens burn | yes — authored and improved by the agent |
82
+ | **Emergent middle** | The authored plan: bounded steps, each with its granted verbs, its own round cap, its write scope and its form-checkable exits — schema-validated, red before tokens burn. A step keeps iterating while it is making progress; when it stops, the shell ends it and the planner re-allocates | yes — authored and improved by the agent |
64
83
  | **Floor** | Append-only JSONL spine (single source for every UI), litectx store per job, per-run ledger | never — the record |
65
84
 
66
- Every checkpoint in a workflow carries its own **verdict class**, and the class decides
67
- what the run's learning is worth:
85
+ Every job declares a **verdict class**, and the class decides what the run's learning is
86
+ worth. Today exactly one is built:
68
87
 
69
- | Verdict | Truth source | Mints inheritance? |
70
- |---|---|---|
71
- | **Hard green** | predicate / exit-code (tests, build, lint) | automatically |
72
- | **Soft green** | rubric / assessment | only with HITL confirm or N consistent repeats |
73
- | **HITL green** | a human is the close (PR merge, "publish") | yes — and merge stays human, forever |
88
+ | Verdict | Truth source | Mints inheritance? | Status |
89
+ |---|---|---|---|
90
+ | **Hard green** | predicate / exit-code (tests, build, lint) | automatically | **built** |
91
+ | **Soft green** | rubric / assessment | only with HITL confirm or N consistent repeats | declared, not built (rung N4) |
92
+ | **HITL green** | a human is the close (PR merge, "publish") | yes — and merge stays human, forever | declared, not built (rung N4) |
74
93
 
75
94
  The full bare-suite surface is *disclosed* to the authoring agent; only *admitted* verbs
76
95
  are callable per job. A request against a locked primitive is a structured red — real