diff --git a/CHANGELOG.md b/CHANGELOG.md index 4f2f0b9..2d05188 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,27 @@ All notable changes to this project are documented here. The format follows ## Unreleased +### Changed + +- `probbit live` (and `persona turn`) on a persona with `reward_from`: a reward without `src` is still refused (exit 2), + and the error now names the missing field `src`, lists the kinds `reward_from` allows and shows one line that is + accepted, e.g. `{"praise":true,"src":"env"}`. docs/persona.md §5.7 and the agent-harness README show `live` commands + with `src` for the shipped dispatch policy and an agent-harness persona; the three declare the same `reward_from`. + A goal win's example line shows a win the persona accepts (1, or `drives.expectation.win_max` when that is below 1). + +### Fixed + +- `bench/agentdojo/experiments/rerun.sh` stops at once (exit 2) with the exact `tar xzf tables/strands-A.tar.gz` command + when `strands/A` does not hold all 726 arm-A strands; before, E5 failed 0/726 and the tables differed. + +### Documentation + +- docs/persona.md §5.6 and the cheatsheet: under `on_conflict: yield`, a habit tested alone can be `unknown` to `prove` + and get a `fuzz` counterexample with `habits.violations: 0` and the habit in `habits.yielded` (the shipped tutor's + `after_error_check`, seeds 0-19); read `violations` and `yielded`, not only the verdict. +- docs/persona.md §2.8 and USE-CASES: mapping raw task success onto praise and criticism moves every learned trait with + one sign, so one global preference smears over all of them; a caution from the learning step, not a measured result. + ## 0.15.0 - 2026-11-18 0.15.0 adds `probbit explain STRAND --event N`, a read-only receipt for one logged event, recomputed through the same diff --git a/USE-CASES.md b/USE-CASES.md index c92a94e..38f414f 100644 --- a/USE-CASES.md +++ b/USE-CASES.md @@ -28,6 +28,9 @@ Do not use it when: - **you need raw search speed on a known puzzle class.** Backtracking counts sudoku solutions 15-102x faster per puzzle than probbit's exact tier, and probbit's sampler refuses every generated sudoku (20/20; in the current build a puzzle that naked singles solve passes the gate (`diagnostics_passed`), §4). - **you need the best cut or lowest energy.** Simulated annealing found better max-cuts at equal time (§3). +- **you plan to pay every learned trait with raw task success.** Mapped onto praise and criticism, its one sign moves every trait + the learning block names, so one global preference smears over all of them *(inferred)*: learn only the traits the feedback + judges ([docs/persona.md](docs/persona.md) §2.8). ## Catalogue by problem shape diff --git a/bench/agentdojo/experiments/rerun.sh b/bench/agentdojo/experiments/rerun.sh index e8ed8fd..c4d2466 100755 --- a/bench/agentdojo/experiments/rerun.sh +++ b/bench/agentdojo/experiments/rerun.sh @@ -5,6 +5,14 @@ # PYTHON= experiments/rerun.sh runs an interpreter outside that range with a warning instead of a refusal. set -euo pipefail cd "$(dirname "$0")/.." +# E5 replays the 726 arm-A strands; without them every replay fails and E5 reads 0/726. Stop before any table is written. +want=$(tar tzf tables/strands-A.tar.gz | grep -c '\.strand$') +have=0; [ -d strands/A ] && have=$(find strands/A -name '*.strand' | wc -l | tr -d ' ') +if [ "$have" != "$want" ]; then + echo "stopped: strands/A holds $have of the $want arm-A strands that E5 replays. Extract them first, in $(pwd):" >&2 + echo " tar xzf tables/strands-A.tar.gz" >&2 + exit 2 +fi PY="${PYTHON:-${1:-venv011/bin/python}}" # numpy 1.26.4 has wheels for CPython 3.9 to 3.12 only; a source build on 3.14 shifted three bars.tsv cells. pyv=$("$PY" -c 'import sys; print("%d.%d" % sys.version_info[:2])') || { echo "cannot run $PY" >&2; exit 2; } diff --git a/docs/CHEATSHEET.md b/docs/CHEATSHEET.md index 279a5d9..978ad57 100644 --- a/docs/CHEATSHEET.md +++ b/docs/CHEATSHEET.md @@ -215,4 +215,6 @@ verdict}`, where `rules` is the `persona lint` document. In GitHub Actions: `use - `lint`: contradicting habits; with `--props`, every rule proved or fuzzed; - `fuzz`: "none found" is evidence over the scripts searched, not a proof; - `prove`: `held by construction` (a habit implies it), `proved for every event sequence` (a sound bound) or `unknown`; +- with `on_conflict: yield`, a habit tested alone can be `unknown` and get a counterexample with `habits.violations: 0` and + the habit in `habits.yielded` (it gave way to a higher priority): read `violations` and `yielded`, not only the verdict; - `live verify`: a strand replays byte for byte. diff --git a/docs/persona.md b/docs/persona.md index f1273ee..ea67d27 100644 --- a/docs/persona.md +++ b/docs/persona.md @@ -308,6 +308,15 @@ step 2), so the feedback turn's own stance already uses it. What learning can an - A persona without the block has no `learned` or `credit` field, and every document it produces is the same, byte for byte, as before the block existed. +**One sign for every learned trait.** The reward and the correction flags carry one sign for the whole turn, and each learned +trait the previous stance released steps with that sign, by its own credit. A host that maps raw task success onto them (a +passed task = praise, a failed one = criticism) therefore pushes every trait in `traits` toward the levels it happened to take +on passing turns and away from those it took on failing ones, whether or not that trait had anything to do with the +outcome: one global preference, smeared over every +trait the block names. This is a caution read from the step above, not a measured result. Scope the credit to what the +feedback judges: list in `traits` only the traits it is about, and with `learning.credit` (below) pay the decision the +outcome is about. + **Action-addressed feedback (`learning.credit`, optional).** Without it, feedback pays the previous stance. With it, the host can name the decision an outcome is about, so a late or out-of-order outcome credits the stance the host acted on: @@ -486,7 +495,7 @@ one of the kinds listed for that input; otherwise the event is **refused whole** | the event | refused because | |---|---| | `{"praise": true, "src": "self"}` | a reward never comes from the individual itself | -| `{"praise": true}` | a reward needs a source | +| `{"praise": true}` | a reward needs a source (the error names the missing field `src` and shows one accepted line) | | `{"goals": {"fun": {"win": 1}}, "src": "clock"}` | a source the persona does not list for it | | `{"praise": true, "src": "human:"}` | a malformed source | @@ -1441,6 +1450,17 @@ program leaves the exact tiers is `unknown`. `held by construction` relies on ev every rule in force. A rule with raw `rules` (not `then`) is fuzzed but not proved. The bound is per cell with the moods at the edges of their box, so a soft rule whose margin is small stays `unknown` even when no script breaks it. +**A habit that yields is not a broken habit.** Under `on_conflict: yield` (section 5.5) a lower-priority habit gives way on +a turn where it cannot hold together with a higher one. Test such a habit alone as a rule and `prove` can say `unknown` and +`fuzz` can print a counterexample whose stance has `habits.violations: 0` and the habit in `habits.yielded`. The shipped +tutor shows it: its `after_error_check` as `--never '{when: {error: true}, then: {caution: {at_least: prev+1}, verbosity: +{at_most: prev-1}}}'` is `unknown` to `prove` for seeds 0-19 (exit 1), and `fuzz` finds a 2-event counterexample on each of +those seeds (exit 1): the second event is a confused learner and an error at once, `confused_no_playful` (priority 10) wins, +and the stance says `"yielded":["after_error_check"]` and `"escalate":"habit conflict resolved by priority: after_error_check +yielded"`. Read `violations` and `yielded` in the counterexample's stance (`replay` prints it, `fuzz --json` has it under +`shortest.stance.habits`), not only the verdict: `violations` above 0 is a broken habit, a name in `yielded` is the priority +the persona declared. + **With a drives block** (section 2.9). A rule may name `pursue` in `then` and, in `when`, the goal conditions the persona's habits use (the same goal, signal and range). `fuzz` adds goal signals to its events: per goal a win on `--grid` x `win_max`, a cue, a deadline on each `--hours` value. `prove` reads the drives as boxes: the aggregates as number inputs over their whole @@ -1530,6 +1550,16 @@ inputs as given, `goals` included, and `verify` replays them. the previous stance took (section 2.8), never past ±total_cap per level. Without a block nothing learns, and every stance and state is the one `persona turn` gives. +**Sources.** A persona with `reward_from` (section 2.10) needs `src` on every event whose reward is on. The shipped +`examples/persona/dispatch-policy.yaml` allows `human` or `env`, and the three `examples/agent-harness/` personas allow `env`: + +```sh +printf '%s\n' '{"error":true}' '{"praise":true,"src":"env"}' | probbit live examples/persona/dispatch-policy.yaml --seed 2 --clock fixed +printf '%s\n' '{"praise":true,"src":"env"}' | probbit live examples/agent-harness/adaptive.json --seed 2 --clock fixed +``` + +Without it the event is refused (exit 2), and the error names the field and shows one line that is accepted. + **What never changes.** Genes, priors, couplings, input effects, history features, habits and every trait's allowed levels. The learner's whole output is the Δ table, and habits are rules of every compiled program (section 3, step 6), so every stance obeys every habit in force whatever Δ is: rule immunity is architectural, not trained or measured into it, and `prove` (section 5.6) diff --git a/examples/agent-harness/README.md b/examples/agent-harness/README.md index 0b2eead..7c066a4 100644 --- a/examples/agent-harness/README.md +++ b/examples/agent-harness/README.md @@ -66,6 +66,10 @@ and Windows. ## Replaying generated counterexamples +The three personas here declare `reward_from: [env]`, so an event with `praise` on needs `"src":"env"` +(`echo '{"praise":true,"src":"env"}' | ./target/release/probbit live examples/agent-harness/adaptive.json --clock fixed`); +without it `probbit live` refuses the event (exit 2) and names the missing field. + When `reward_from` requires a source, fuzz searches an abstract accepted-source history. It must not silently label that history as a production observation. Explicitly authorize a synthetic fixture source when exporting a runnable counterexample: diff --git a/llms-full.txt b/llms-full.txt index ccb2f51..faab0b0 100644 --- a/llms-full.txt +++ b/llms-full.txt @@ -1343,6 +1343,15 @@ step 2), so the feedback turn's own stance already uses it. What learning can an - A persona without the block has no `learned` or `credit` field, and every document it produces is the same, byte for byte, as before the block existed. +**One sign for every learned trait.** The reward and the correction flags carry one sign for the whole turn, and each learned +trait the previous stance released steps with that sign, by its own credit. A host that maps raw task success onto them (a +passed task = praise, a failed one = criticism) therefore pushes every trait in `traits` toward the levels it happened to take +on passing turns and away from those it took on failing ones, whether or not that trait had anything to do with the +outcome: one global preference, smeared over every +trait the block names. This is a caution read from the step above, not a measured result. Scope the credit to what the +feedback judges: list in `traits` only the traits it is about, and with `learning.credit` (below) pay the decision the +outcome is about. + **Action-addressed feedback (`learning.credit`, optional).** Without it, feedback pays the previous stance. With it, the host can name the decision an outcome is about, so a late or out-of-order outcome credits the stance the host acted on: @@ -1521,7 +1530,7 @@ one of the kinds listed for that input; otherwise the event is **refused whole** | the event | refused because | |---|---| | `{"praise": true, "src": "self"}` | a reward never comes from the individual itself | -| `{"praise": true}` | a reward needs a source | +| `{"praise": true}` | a reward needs a source (the error names the missing field `src` and shows one accepted line) | | `{"goals": {"fun": {"win": 1}}, "src": "clock"}` | a source the persona does not list for it | | `{"praise": true, "src": "human:"}` | a malformed source | @@ -2476,6 +2485,17 @@ program leaves the exact tiers is `unknown`. `held by construction` relies on ev every rule in force. A rule with raw `rules` (not `then`) is fuzzed but not proved. The bound is per cell with the moods at the edges of their box, so a soft rule whose margin is small stays `unknown` even when no script breaks it. +**A habit that yields is not a broken habit.** Under `on_conflict: yield` (section 5.5) a lower-priority habit gives way on +a turn where it cannot hold together with a higher one. Test such a habit alone as a rule and `prove` can say `unknown` and +`fuzz` can print a counterexample whose stance has `habits.violations: 0` and the habit in `habits.yielded`. The shipped +tutor shows it: its `after_error_check` as `--never '{when: {error: true}, then: {caution: {at_least: prev+1}, verbosity: +{at_most: prev-1}}}'` is `unknown` to `prove` for seeds 0-19 (exit 1), and `fuzz` finds a 2-event counterexample on each of +those seeds (exit 1): the second event is a confused learner and an error at once, `confused_no_playful` (priority 10) wins, +and the stance says `"yielded":["after_error_check"]` and `"escalate":"habit conflict resolved by priority: after_error_check +yielded"`. Read `violations` and `yielded` in the counterexample's stance (`replay` prints it, `fuzz --json` has it under +`shortest.stance.habits`), not only the verdict: `violations` above 0 is a broken habit, a name in `yielded` is the priority +the persona declared. + **With a drives block** (section 2.9). A rule may name `pursue` in `then` and, in `when`, the goal conditions the persona's habits use (the same goal, signal and range). `fuzz` adds goal signals to its events: per goal a win on `--grid` x `win_max`, a cue, a deadline on each `--hours` value. `prove` reads the drives as boxes: the aggregates as number inputs over their whole @@ -2565,6 +2585,16 @@ inputs as given, `goals` included, and `verify` replays them. the previous stance took (section 2.8), never past ±total_cap per level. Without a block nothing learns, and every stance and state is the one `persona turn` gives. +**Sources.** A persona with `reward_from` (section 2.10) needs `src` on every event whose reward is on. The shipped +`examples/persona/dispatch-policy.yaml` allows `human` or `env`, and the three `examples/agent-harness/` personas allow `env`: + +```sh +printf '%s\n' '{"error":true}' '{"praise":true,"src":"env"}' | probbit live examples/persona/dispatch-policy.yaml --seed 2 --clock fixed +printf '%s\n' '{"praise":true,"src":"env"}' | probbit live examples/agent-harness/adaptive.json --seed 2 --clock fixed +``` + +Without it the event is refused (exit 2), and the error names the field and shows one line that is accepted. + **What never changes.** Genes, priors, couplings, input effects, history features, habits and every trait's allowed levels. The learner's whole output is the Δ table, and habits are rules of every compiled program (section 3, step 6), so every stance obeys every habit in force whatever Δ is: rule immunity is architectural, not trained or measured into it, and `prove` (section 5.6) diff --git a/probbit-cli/src/live.rs b/probbit-cli/src/live.rs index 339bb88..080d359 100644 --- a/probbit-cli/src/live.rs +++ b/probbit-cli/src/live.rs @@ -1419,7 +1419,7 @@ mod tests { fn rewards_from_the_individual_itself_are_refused() { let (p, doc) = kit(Some(r#"["human","env"]"#)); let (mut lv, _) = Live::start(p.clone(), &doc, persona::init(&p, Some(2), true, &run), Clock::Fixed, "t"); - for (e, why) in [(r#"{"praise":true,"src":"self"}"#, "from the individual itself"), (r#"{"praise":true}"#, "needs a src"), (r#"{"criticism":true,"src":"clock"}"#, "from clock"), + for (e, why) in [(r#"{"praise":true,"src":"self"}"#, "from the individual itself"), (r#"{"praise":true}"#, "missing the field `src`"), (r#"{"criticism":true,"src":"clock"}"#, "from clock"), (r#"{"goals":{"fun":{"win":0.5}},"src":"self"}"#, "goals.fun.win from the individual"), (r#"{"praise":true,"src":"human:"}"#, "a source"), (r#"{"src":7}"#, "a source")] { let err = lv.event(&json::parse(e).unwrap(), &run).unwrap_err(); assert_eq!(err.path, "inputs.src", "{e}"); assert!(err.msg.contains(why), "{e}: {}", err.msg); } assert_eq!(lv.n, 0, "a refused event changes nothing"); diff --git a/probbit-cli/tests/persona.rs b/probbit-cli/tests/persona.rs index e5cd467..98401b7 100644 --- a/probbit-cli/tests/persona.rs +++ b/probbit-cli/tests/persona.rs @@ -822,6 +822,23 @@ fn src_without_reward_from_gives_0_8_0_bytes() { for f in [&script, &st, &sd, &guarded, &gs] { let _ = std::fs::remove_file(f); } } +/// The six shipped personas with `reward_from` (the dispatch policy, sensed, pacer and the three agent-harness personas): a +/// praise without `src` (and on pacer a goal win without it) exits 2 with an error that names the field and shows one accepted +/// line; that line, as shown, exits 0. +#[test] +fn reward_without_src_names_the_field() { + let praise = "{\"praise\":true}"; + for (p, ev) in [("persona/dispatch-policy.yaml", praise), ("persona/sensed.yaml", praise), ("persona/pacer.yaml", praise), + ("persona/pacer.yaml", "{\"goals\":{\"task\":{\"win\":1}}}"), ("agent-harness/adaptive.json", praise), ("agent-harness/addressed.json", praise), + ("agent-harness/guarded.json", praise)] { + let p = format!("{}/../examples/{p}", env!("CARGO_MANIFEST_DIR")); + let (c, _, e) = probbit(&["live", &p, "--seed", "2", "--clock", "fixed"], &format!("{ev}\n")); assert_eq!(c, 2, "{p}: {e}"); + assert!(e.contains("missing the field `src`"), "{p}: {e}"); + let line = e.split("one line that is accepted: ").nth(1).and_then(|r| r.lines().next()).unwrap_or_else(|| panic!("{p}: {e}")); + let (c, _, e) = probbit(&["live", &p, "--seed", "2", "--clock", "fixed"], &format!("{line}\n")); assert_eq!(c, 0, "{p}: {line}: {e}"); + } +} + /// The safety kit through the CLI: `--checkpoint-every` writes checkpoint lines that `verify` and `verify --from-checkpoint` /// check; `live control` pauses (every event refused, exit 4, nothing written), resumes and retires (final); the individual cannot /// control itself; a held lock refuses a second writer and a control line (exit 4) and changes nothing; no lock is left behind diff --git a/probbit-persona/src/persona.rs b/probbit-persona/src/persona.rs index 19fdf9f..b6cb87f 100644 --- a/probbit-persona/src/persona.rs +++ b/probbit-persona/src/persona.rs @@ -763,8 +763,9 @@ pub fn src_kind(s: &str) -> Option<&'static str> { match (k, id) { ("human", i) if i.map_or(true, ok) => Some("human"), ("env", i) if i.map_or(true, ok) => Some("env"), ("self", None) => Some("self"), ("clock", None) => Some("clock"), _ => None } } /// Reward provenance (G1, §2.10): with `reward_from`, a reward-bearing input that is on (a learning flag true, a goal's win > 0) -/// needs the event's `src` to be one of its allowed kinds; `self`, a missing or an undeclared source refuses the event whole -fn provenance(rw: &[(String, Option>)], raw: &[(String, Json)]) -> R<()> { +/// needs the event's `src` to be one of its allowed kinds; `self`, a missing or an undeclared source refuses the event whole. +/// `win` is the goal win the error's example line shows: min(1, drives.expectation.win_max), so the line is accepted. +fn provenance(rw: &[(String, Option>)], raw: &[(String, Json)], win: f64) -> R<()> { const FORM: &str = "a source: human[:id] | env[:id] | self | clock (id: 1-64 of A-Z a-z 0-9 _ . - @ / :)"; let kind = match get(raw, "src") { None => None, Some(Json::Str(s)) => Some(src_kind(s).ok_or_else(|| perr("inputs.src", FORM))?), Some(_) => return Err(perr("inputs.src", FORM)) }; for (k, allowed) in rw { @@ -773,7 +774,9 @@ fn provenance(rw: &[(String, Option>)], raw: &[(String, Json)]) -> R None => matches!(get(raw, k), Some(Json::Bool(true))) }; let Some(allowed) = allowed.as_ref().filter(|_| on) else { continue }; match kind { - None => return Err(perr("inputs.src", format!("{k} is a reward: the event needs a src ({} allowed by reward_from)", allowed.join(" or ")))), + None => { let eg = match k.strip_prefix("goals.").and_then(|r| r.strip_suffix(".win")) { + Some(g) => format!(r#"{{"goals":{{"{g}":{{"win":{}}}}},"src":"{}"}}"#, pyn(win), allowed[0]), None => format!(r#"{{"{k}":true,"src":"{}"}}"#, allowed[0]) }; + return Err(perr("inputs.src", format!("{k} is a reward: the event is missing the field `src` (reward_from allows {}); one line that is accepted: {eg}", allowed.join(" or ")))) } Some("self") => return Err(perr("inputs.src", format!("{k} from the individual itself (src self) is refused: a reward comes from {}", allowed.join(" or ")))), Some(kd) if !allowed.iter().any(|a| a == kd) => return Err(perr("inputs.src", format!("{k} from {kd} is refused: reward_from allows {}", allowed.join(" or ")))), _ => {} } } @@ -783,7 +786,7 @@ fn provenance(rw: &[(String, Option>)], raw: &[(String, Json)]) -> R /// Normal turns use this same check; callers cannot use this to authorize production evidence. pub fn check_provenance(p: &Persona, raw: &Json) -> R<()> { let raw = raw.as_obj().ok_or_else(|| perr("inputs", "must be an object"))?; - if let Some(rw) = &p.reward { provenance(rw, raw)?; } + if let Some(rw) = &p.reward { provenance(rw, raw, example_win(p))?; } // readings (§2.11, S2): each one's source, its own or the event's, of a kind its sense reads from if let Some(sn) = &p.senses { src_form(raw)?; sense_step(sn, &SState::zero(&p.name, sn, p.seed), raw, get(raw, "src"), true)?; } // a cancel (§2.8, B-R5) comes from env or a person @@ -793,6 +796,8 @@ pub fn check_provenance(p: &Persona, raw: &Json) -> R<()> { let nd = NState { genes: Json::Null, deficit: vec![0.0; nb.items.len()], success: vec![nb.init; nb.items.len()], misses: vec![0.0; nb.items.len()], beyond: vec![0; nb.items.len()], lost: false, phasic: 0.0 }; needs_step(d, nb, &nd, &[], raw, get(raw, "src"), true)?; } Ok(()) } +/// The goal win an error's example line shows: 1, or win_max when it is below 1 (a win lies in [0, win_max]) +fn example_win(p: &Persona) -> f64 { p.drives.as_ref().map_or(1.0, |d| d.win_max.min(1.0)) } /// A persona whose events need a source: rewards (`reward_from`), readings (a senses block), cancels (a credit block) or needs /// amounts (a needs block) pub fn has_reward_sources(p: &Persona) -> bool { p.reward.is_some() || p.senses.is_some() || p.credit().is_some() || p.has_needs() } @@ -1599,7 +1604,7 @@ fn prep_body(p: &Persona, st: &State, raw: &[(String, Json)], src: Option<&Json> /// inputs and returned; without any of them it stays an undeclared input fn take_src(p: &Persona, raw: Vec<(String, Json)>, check: bool) -> R<(Option, Vec<(String, Json)>)> { if p.reward.is_none() && p.senses.is_none() && p.credit().is_none() && !p.has_needs() { return Ok((None, raw)); } - if check { match &p.reward { Some(rw) => provenance(rw, &raw)?, None => src_form(&raw)? } } + if check { match &p.reward { Some(rw) => provenance(rw, &raw, example_win(p))?, None => src_form(&raw)? } } let src = get(&raw, "src").cloned(); Ok((src, raw.into_iter().filter(|(k, _)| k != "src").collect())) } @@ -6163,6 +6168,16 @@ mod tests { /// host never sends pace_up / pace_down, and the loop host's transient to the fixed points 1.2632, 1.5 and 2.25 at loop gain /// G 0.24, 0.60, 0.84 (p6) #[test] + fn missing_src_example_win_fits_win_max() { + // win_max 0.5: the shown goal line carries 0.5 (a win of 1 would be refused); the default win_max (2): it shows 1 + for (doc, want) in [(PACE.replace(r#""win_max":4"#, r#""win_max":0.5"#), "0.5"), (PACE.replace(r#","expectation":{"win_max":4}"#, ""), "1")] { + let p = build(&json::parse(&doc).unwrap()).unwrap(); let st0 = init(&p, Some(0), true, &run); + let e = check_provenance(&p, &json::parse(&format!(r#"{{"goals":{{"task":{{"win":{want}}}}}}}"#)).unwrap()).unwrap_err(); + let line = e.msg.split("one line that is accepted: ").nth(1).unwrap_or_else(|| panic!("{}", e.msg)); + assert_eq!(line, format!(r#"{{"goals":{{"task":{{"win":{want}}}}},"src":"env"}}"#), "{}", e.msg); + ok_turn(&p, &st0, line); } + } + #[test] fn pace_follows_its_closed_forms() { let p = build(&json::parse(PACE).unwrap()).unwrap(); let st0 = init(&p, Some(0), true, &run); let rb = |d: &Json| gnum(d, &["pace", "rbar"]); let k = 1.0 - 0.5f64.powf(1.0 / 6.0);