bareloop 0.56.0 → 0.57.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 +35 -0
- package/README.md +3 -3
- package/bareloop.context.md +65 -207
- package/package.json +2 -2
- package/src/authorflow.js +25 -78
- package/src/authoring.js +5 -124
- package/src/authorjob.js +33 -395
- package/src/authorreadout.js +17 -355
- package/src/authorrun.js +8 -211
- package/src/blockasks.js +2 -2
- package/src/bundlerun.js +4 -1
- package/src/checkblock.js +76 -50
- package/src/checklist.js +1 -1
- package/src/checkpick.js +10 -1
- package/src/cli.js +3 -3
- package/src/declaredclose.js +11 -110
- package/src/destpoint.js +1 -1
- package/src/index.js +3 -43
- package/src/interviewrun.js +13 -8
- package/src/job.js +20 -1
- package/src/jobblock.js +11 -46
- package/src/judged.js +13 -1229
- package/src/kinds.js +5 -347
- package/src/noteask.js +124 -0
- package/src/pagedry.js +27 -5
- package/src/pagemap.js +2 -2
- package/src/pagerules.js +18 -3
- package/src/panel/authorroutes.js +9 -3
- package/src/panel/authorsession.js +99 -141
- package/src/panel/importrun.js +0 -1
- package/src/panel/index.html +6 -6
- package/src/panel/jobplan.js +7 -5
- package/src/panel/server.js +25 -64
- package/src/panel/status.js +3 -0
- package/src/pickrecord.js +15 -54
- package/src/planrun.js +2 -48
- package/src/promptregisters.js +2 -17
- package/src/providerrows.js +0 -36
- package/src/providers.js +4 -25
- package/src/questionbox.js +4 -12
- package/src/rubricstep.js +26 -6
- package/src/run.js +2 -15
- package/src/userrun.js +14 -111
- package/types/authorflow.d.ts +9 -58
- package/types/authoring.d.ts +1 -14
- package/types/authorjob.d.ts +13 -55
- package/types/authorreadout.d.ts +8 -80
- package/types/blockasks.d.ts +1 -2
- package/types/checkblock.d.ts +32 -17
- package/types/checklist.d.ts +2 -2
- package/types/checkpick.d.ts +5 -0
- package/types/cli.d.ts +1 -3
- package/types/declaredclose.d.ts +3 -33
- package/types/index.d.ts +2 -4
- package/types/job.d.ts +8 -0
- package/types/jobblock.d.ts +8 -38
- package/types/judged.d.ts +7 -357
- package/types/kinds.d.ts +3 -104
- package/types/noteask.d.ts +76 -0
- package/types/pagedry.d.ts +13 -0
- package/types/pagerules.d.ts +7 -0
- package/types/panel/authorsession.d.ts +35 -4
- package/types/panel/jobplan.d.ts +3 -3
- package/types/panel/server.d.ts +13 -5
- package/types/panel/status.d.ts +5 -0
- package/types/pickrecord.d.ts +8 -13
- package/types/planrun.d.ts +1 -22
- package/types/providerrows.d.ts +0 -31
- package/types/providers.d.ts +3 -19
- package/types/rubricstep.d.ts +9 -0
- package/types/run.d.ts +1 -20
- package/types/userrun.d.ts +0 -1
- package/src/calibrate.js +0 -702
- package/src/cardauthor.js +0 -502
- package/src/fitcheck.js +0 -168
- package/types/calibrate.d.ts +0 -201
- package/types/cardauthor.d.ts +0 -358
- package/types/fitcheck.d.ts +0 -119
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,41 @@ All notable changes to bareloop are documented here. Format:
|
|
|
5
5
|
[SemVer](https://semver.org/spec/v2.0.0.html). Pre-1.0: **minor** = a ladder rung or
|
|
6
6
|
feature lands, **patch** = docs, fixes, scaffolding.
|
|
7
7
|
|
|
8
|
+
## [0.57.0] - 2026-11-14
|
|
9
|
+
|
|
10
|
+
### Removed
|
|
11
|
+
|
|
12
|
+
- **BREAKING: the old judge's runtime engine is gone (hamr 2026-11-14: "i don't need old runs in anything").** `src/judged.js` keeps only `resolveJudge` / `resolveJobJudge` (the judge identity the spec stamp and the workflow key read); the locate call, the owned rulebook, `decide`, the calibration set's shape and `defaultJudgeLoop` are deleted. The `judged-floor` kind is no longer a live kind or in `KIND_CATALOGUE` (`RETIRED_KINDS` and `judged-floor-gone` go with it), `closeDecl.calibration` is an unknown field, and `runJob` / `runPlan` / `cliMain` no longer take `judgeProvider`, `judgeModel` or `judgeRates` (no `JUDGE_API_KEY` is read; `buildRunnerProviders` returns `{provider, providerFor}`). Library exports removed: `JUDGE_RULES`, `JUDGE_RULE_IDS`, `runLocate`, `decide`, `CALIBRATION_SIZE`, `validateCalibrationSet`, `expectedOf`, `JUDGE_ATTEMPTS`, `MAX_JUDGED_PATHS`. The panel Summary box no longer shows a `judge:` line. A signed spec with a `judged-floor` stage or PASS/FAIL lines now also refuses at `run-u --spec` in the plain words ("draft it fresh"), as it does at Reuse, at a scheduled fire and at the bundle door. Kept: the learnings ledger and how it reads old rows, and the spend readers of an old spine's `judge-round` records.
|
|
13
|
+
- **BREAKING: PASS/FAIL judge examples are gone (hamr 2026-11-14, rubric vs deterministic split, piece 1).** A `~ PASS:` / `~ FAIL:` line is refused at $0 in plain words ("PASS/FAIL examples are gone — write what you want as a ~ rule."), on the panel and the CLI. `jobblock.js` no longer exports `renderExamples` or `jobBlockFitsCheck`, a parsed job line has no `examples` field, the soft-green question set is The job alone (no Judge Examples answer), and the hint text and the panel's rubric placeholder no longer mention the examples. The `~` / `!` / `$` check list (with Drop and Add) covers what the examples did.
|
|
14
|
+
- **BREAKING: the old judge is gone (hamr 2026-11-14, rubric vs deterministic split, piece 2).** `src/cardauthor.js` (the judge-card compile) and `src/calibrate.js` (the 10-case calibration and its signing gate, gate 4 of `prepareSigning`) are deleted, with their library exports: `proposeJudgedArtifacts`, `signJudgedArtifacts`, `foldJudgedArtifacts`, `runCalibration`, `INJECTION_LOCATE_BATTERY`, `CASUALTY_AXES`, and `authorjob`'s `seedProofIsCalibration`. `prepareSigning` takes no `judgeLoop`/`judgeModel`/`onJudgeCost`/`calibrateFn`/`ceilingUsd`/`priorCalls` and returns no `gates.calibration`; `authorCloseForJob` takes no `judgeModel`/`signerFix`/`proposeFn`/`compileOpts` and returns no `judged`. `judged-floor` is no longer on any composer menu (`classMenu`), and a composed or signed close that still carries one is refused at $0 as `judged-floor-gone` ("The old judge is gone. Write what you want checked as a ~ rule on the check list, or draft the job fresh."). The panel and the CLI author run lose the `calibrating` step, the calibration readout and the judge-key checks. The `judged-floor` runtime engine is removed (see the BREAKING bullet above): an old signed spec with a `judged-floor` stage is refused in plain words, not run.
|
|
15
|
+
- **BREAKING: the fit check is gone (hamr 2026-11-14, piece 3).** `src/fitcheck.js` (v0.45.0, "I found N of M of your asks") is deleted: no paid fit call before the look, no Go on / Stop question, no `fit-stopped` stop, no `fit-check` drafting-log row; `authorCloseForJob` takes no `fitFn`/`fitAsk`/`onFit` and the panel session no `fitFn`. One place for all checks: the check list. "A run needs at least one check" stays, from the check list.
|
|
16
|
+
|
|
17
|
+
### Fixed
|
|
18
|
+
|
|
19
|
+
- check list: a `!` phrase carrying a source (ledger-suggest adds) was judged against every look fact with no source or the same source, on any line, because the money filter in `matchBang` had `&&` and `||` ungrouped; a phrase on a line with no money fact was wrongly Not checked "in none of its results" when another line had one. The filter now reads money facts on this line only, then the source test. Found by /branch-review on this branch; `tests/checkblock-bang-result.test.js`.
|
|
20
|
+
- check list: one rule, one Not-checked row on the confirm card (live run mwgsl7zx: after Revise the person's earlier Drop is kept and the look dropped the same `~` rule again, so the card listed it twice, "the page never shows a time right after ..." and "You chose to leave it Not checked ..."). A `~` rule the check list says Not checked (`CheckBlock.saysRule`) is said by its own row alone, with the person's choice as its reason; the look's line for that rule is no longer drawn beside it (`accepted.notChecked`, the drafter's list, is unchanged). The block itself already held one row (signed list and card); the second row was the confirm card's merge in `runConfirmTurn`. `tests/checkblock-one-row.test.js`.
|
|
21
|
+
- page rules: a label the page ALWAYS writes with a colon right after it ("Departure time: 10:24 AM.") is signed as the page writes it, whether the look gave "Departure time:" or "Departure time" (live run mwgsl7zx: after Revise the look dropped the colon, the time fact read no time and the person was asked to drop the rule). One owner, `withColon` in `src/pagerules.js`, a plain count of the page's text: every place that holds the label has a colon after it, else the word stays as given; the run's checker reads the same signed word, so drafting and run agree. Money and other value labels follow. `tests/time-label-colon.test.js` on the run's real page; the JFK-LAX map test and the golden port now expect the page's own word.
|
|
22
|
+
- **After an Agree, every view shows the replaced rule (live run mwgp0au6).** The chat message after the answers, the plan card's job lines and the saved `card.json` still read "~ not a red-eye" while the signed spec held "departure time between 05:00 and 23:59". The session's own lines now take the check list's rebuilt lines in place (one owner), `card` (what `card.json` stores) follows `state.card`, and the answers message is drawn after the rebuild.
|
|
23
|
+
- check list: one rule in, one rule out (hamr 2026-11-14, supersedes "an agreed answer is a new `~` line"; live run mwgjnrkz showed two `~` rules from one Agree). An Agree, or the person's own typed words, REPLACES the asked rule (same line, same rule number); the check list is the one owner and the job text, card box and signed rows are rebuilt from it (`jobLinesView`). Deleted: follower rows (`parent`, `matchFollow`, `followsOf`, `follow`, `pairWith`/`pairRule`, the "you agreed:" card tail), the F318 `sameRuleWords` dedupe in `answerQuestions`, and the picks record's `added` pairing. A counting rule whose own words are the check ("exactly 3 list items") is built as written with no question (`obviousCheck`), so a replaced rule never re-asks on a re-draft or Reuse. The ask text now says the answer "replaces that ~ rule". `!` and `$` rows already replace, never add beside (`onTheList`, carried choices are by row key). Test-proven; not seen live.
|
|
24
|
+
- rubric: a facts-only line that also asks for written words gets its note (live run mwgjlezb: "Write a one-sentence triage note ... quoting its title word for word" produced results and no note). At drafting, ONLY when a line is facts-only, ONE typed call (`src/noteask.js`, the destination call's provider/model/thinking-off, one retry, no repair) asks per such line whether it also wants written words; code decides: yes adds a `$` default row "line N writes a note — the note must be there" with a countable text part (brief FACTS AND TEXT, text-present floored), no changes nothing, a failed call shows a Not checked row "could not ask whether line N also wants a note". Test-proven; not seen live.
|
|
25
|
+
- rubric: the confirm card's "line N file ... must exist, be complete JSON, and carry text" lists "and carry text" only for a line whose signed close has a text-present check (`lineCarriesText`, derived from the close), not for every line.
|
|
26
|
+
- check list: a `!` phrase the AI adds (ledger-suggest) that is on the page but in none of its result rows ("Rome" in the search box and the "Track prices" toggles only) is Not checked with the look's own sentence ("... is on the page but in none of its results, so it is not checked."); it was built, offered under Suggested, signed, and the run went red every try. One owner for "what is a result row" (`resultQuotes`, `src/pagedry.js`) shared with the look's dry read; with no money fact on the line nothing is guessed. Found live by fwdloop (run walk-m16-flights run-1); the same class as the look's `phrase-no-result` (bareloop run mwg3pov1's flights checks).
|
|
27
|
+
- check list: a `~` money rule written in another currency than the page's fact ("under $150" on a euro price) is Not checked with the plain reason "the amount in your rule is in another currency than the page's prices"; it no longer falls back to the look's or the AI's reading and checks the number on the wrong currency. One spelling of the reason (`WHY_OTHER_CURRENCY`, `src/rubricstep.js`). Found live by fwdloop (run walk-m16-flights run-1, euro page); the same class as bareloop run mwg3pov1's money rows.
|
|
28
|
+
- panel: the Audit's checks fold (and the Result tab's checks box) show ONLY the run's latest close (the last `outer-close` or fix-loop `close-verdict`), not the `outer-close` precheck that runs before the fix loop; a run that went green in the fix loop no longer shows failed rows, and a stage the latest close never reached (it stops at its first red) reads grey "not reached" instead of the precheck's old result (live run mwg3pov1).
|
|
29
|
+
- panel: the Run summary "checks:" line ("N run · N passed · N failed") reads the same latest close as the Audit checks fold, through `checksOf`, not every step exit check plus the pre-fix-loop precheck; a stage the latest close never reached shows "N not reached" and counts as neither; the tries parenthesis is gone (live run mwg3pov1).
|
|
30
|
+
|
|
31
|
+
### Added
|
|
32
|
+
|
|
33
|
+
- **Tickets + rubric goes through the check list (hamr 2026-11-14, piece 5; POC runs mwg70fd7 and mwg3pov1).** A Tickets job on the Rubric check has the ticket as its one input: the ticket line is the only input and is renumbered from 1 in ONE place (`cardInputs`, `src/panel/authorsession.js`), read by the fresh card, the session, the Destination check, the schedule and Reuse (`buildReuseSpec`) alike, so a Reuse no longer dies at signing with `spec-invalid (inputs[0].n expected 1)`. The drafting-time read takes the newest ticket the job has not run (`newestUnrunTicket`) and reads it (`readTicket`), with no ticket-number box; the frozen draft input is that ticket's text, and run start re-reads the same list row. Test seams: `createSession` deps `newestUnrunTicket` and `readTicketFn`.
|
|
34
|
+
|
|
35
|
+
### Changed
|
|
36
|
+
|
|
37
|
+
- docs (hamr 2026-11-14, piece 7): `bareloop.context.md` (header, verdict classes, interview set, job block, rubric-on-files section, retired `judged-floor` note, Tickets + rubric section, exports list) and the README verification lines say what the code now does (no calibration, no judge decides, no fit check, no PASS/FAIL examples); PRD v1.134 contract lines ticked.
|
|
38
|
+
- **An old job (PASS/FAIL examples or the old judge) is not reused or bundled (hamr 2026-11-14, piece 6).** A signed spec with a `~ PASS:` / `~ FAIL:` job-line rule or a `judged-floor` stage refuses in plain words ("This job was made with PASS/FAIL examples or the old judge, which are gone. Draft it fresh.") at Reuse (the panel route and the session), at a scheduled fire (it is a Reuse), and at `bareloop run <bundle>`, before any key, repo or copy is touched. One reader: `oldJobWords` (`src/job.js`). Old runs are not repaired.
|
|
39
|
+
- **Rubric on a repo is refused at $0 (hamr 2026-11-14, piece 4).** A Deterministic check is anything a machine can check, so a repo job is Deterministic; Rubric on a repo is allowed only for a Tickets job. A rubric card whose Inputs line 1 is a repo, and a `soft-green` pick at the CLI interview (it always takes a repo), are refused before anything is made or asked: "A repo job uses a Deterministic check."
|
|
40
|
+
- panel: the Audit checks fold header is lowercase like the other part rows (hamr 2026-11-13); README walkthrough GIF regenerated for the check block.
|
|
41
|
+
- Dependency: bareguard ^0.36.0 (check helpers, ruling #82; existing rubric fingerprints and verdicts unchanged — peer-tested on 90 saved plans and 35 verdicts).
|
|
42
|
+
|
|
8
43
|
## [0.56.0] - 2026-11-13
|
|
9
44
|
|
|
10
45
|
### Added
|
package/README.md
CHANGED
|
@@ -25,7 +25,7 @@ bareloop finds that path for you. Write your problem in plain language, as steps
|
|
|
25
25
|
The harness (budget, time, what it may touch) and the judge both sit **outside** the agent loop. The agent can't judge itself. Every run is recorded, so you can audit it and replay it at $0 and see exactly what happened.
|
|
26
26
|
|
|
27
27
|
<p align="center">
|
|
28
|
-
<img src="https://raw.githubusercontent.com/hamr0/bareloop/main/docs/media/panel-walkthrough.gif" alt="The bareloop panel: write a job, the runs list, a rubric run
|
|
28
|
+
<img src="https://raw.githubusercontent.com/hamr0/bareloop/main/docs/media/panel-walkthrough.gif" alt="The bareloop panel: write a job, the runs list, a rubric run with a fixed try, its Result, the Audit checks fold and the signed Job with its check rows, then a repo run ready to merge" width="900">
|
|
29
29
|
</p>
|
|
30
30
|
|
|
31
31
|
## The machine that makes machines
|
|
@@ -36,7 +36,7 @@ Like a CNC machine, bareloop builds the thing that does the work, then lets a ga
|
|
|
36
36
|
|
|
37
37
|
**Guide rails, not just guardrails.** Guardrails stop the agent going off the road: a money cap, a time cap, and a read/write fence it can't move. Guide rails keep it on the road: each new worker hears what earlier tries read, searched and changed, diffs included; two misses redraw the plan; past lessons go to the planner; an unclear job gets up to 3 questions, not a guess.
|
|
38
38
|
|
|
39
|
-
**Verification.** The check sits outside the agent's loop: code
|
|
39
|
+
**Verification.** The check sits outside the agent's loop: code decides. Anything code can't check is listed as Not checked, and you judge it at Accept. A red goes back with the real error to be fixed, until it's green or out of budget.
|
|
40
40
|
|
|
41
41
|
**Evidence.** Every call, every allowed or blocked read and write, every check result and every cent is recorded. You can audit it in the panel and replay it at $0. Research facts are quoted from saved sources.
|
|
42
42
|
|
|
@@ -45,7 +45,7 @@ Like a CNC machine, bareloop builds the thing that does the work, then lets a ga
|
|
|
45
45
|
**Deterministic (code)**: code decides. Tests pass, the linter is quiet, the build exits clean. If no check exists yet, say what you need and the agent builds that check first.
|
|
46
46
|
> *"Fix the lint errors."* · *"Add doc comments to every function."* · *"Split this 3,000-line file without breaking a test."*
|
|
47
47
|
|
|
48
|
-
**Rubric (research)**: it searches, collects, compares and hands you a report where every fact is quoted from a saved copy of its source.
|
|
48
|
+
**Rubric (research)**: it searches, collects, compares and hands you a report where every fact is quoted from a saved copy of its source. An AI only points at the page's own words, and fixed rules in code decide.
|
|
49
49
|
> *"Find flights LAX→SFO under $400, nonstop, no red-eye."* · *"Compare these 5 laptops on price, weight and warranty."*
|
|
50
50
|
|
|
51
51
|
## What it won't do
|