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/CHANGELOG.md +690 -0
- package/README.md +30 -11
- package/bareloop.context.md +658 -38
- package/package.json +2 -2
- package/src/bridges.js +571 -0
- package/src/clock.js +57 -5
- package/src/exits.js +8 -2
- package/src/index.js +29 -0
- package/src/job.js +43 -6
- package/src/ladder.js +196 -0
- package/src/ledger.js +84 -9
- package/src/plan.js +106 -107
- package/src/planrun.js +1040 -168
- package/src/ralph.js +156 -29
- package/src/reuse.js +1665 -0
- package/src/run.js +92 -6
- package/src/selection.js +160 -0
- package/src/spine.js +7 -2
- package/src/trend.js +405 -0
- package/src/validate.js +121 -0
- package/types/bridges.d.ts +198 -0
- package/types/clock.d.ts +25 -3
- package/types/exits.d.ts +14 -0
- package/types/index.d.ts +3 -0
- package/types/job.d.ts +13 -2
- package/types/ladder.d.ts +86 -0
- package/types/plan.d.ts +41 -41
- package/types/planrun.d.ts +208 -9
- package/types/ralph.d.ts +98 -4
- package/types/reuse.d.ts +392 -0
- package/types/run.d.ts +63 -3
- package/types/selection.d.ts +46 -0
- package/types/spine.d.ts +8 -1
- package/types/trend.d.ts +108 -0
- package/types/validate.d.ts +50 -0
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).
|
|
35
|
-
> executed inheritance**, where
|
|
36
|
-
> ladder's
|
|
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
|
|
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
|
|
67
|
-
|
|
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
|