Skip to content

0.15.1 part A: four small fixes (src error, rerun.sh, yield docs, learning caution) - #100

Merged
BitmapAsset merged 6 commits into
mainfrom
fix/0.15.1-part-a
Nov 19, 2026
Merged

BitmapAsset merged 6 commits into
mainfrom
fix/0.15.1-part-a

Conversation

@BitmapAsset

@BitmapAsset BitmapAsset commented Nov 19, 2026 •

Copy link
Copy Markdown
Owner

Draft. The four small fixes for 0.15.1. No engine behaviour changes: strands, stances and states are byte for byte as 0.15.0 writes them; the only output that changes is the text of one error.

  1. src on reward_from personas (probbit-persona/src/persona.rs, provenance). A reward without src is still refused (exit 2); the error now names the missing field, lists the kinds reward_from allows and shows one accepted line:
    praise is a reward: the event is missing the field src (reward_from allows env); one line that is accepted: {"praise":true,"src":"env"}.
    For a goal win the example line shows a win the persona accepts: 1, or drives.expectation.win_max when that is below 1 (unit test missing_src_example_win_fits_win_max, win_max 0.5 and the default).
    docs/persona.md §5.7 (new "Sources" paragraph) and examples/agent-harness/README.md show live commands with src for the shipped dispatch policy and an agent-harness persona; the three agent-harness personas declare the same reward_from. New test reward_without_src_names_the_field (probbit-cli/tests/persona.rs) covers all six shipped personas with reward_from (dispatch-policy, sensed, pacer, adaptive, addressed, guarded): a praise without src exits 2 with the message, on pacer also a goal win without src, and the line each error shows exits 0.
  2. 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 (counted against the archive), before any table is written. Before, E5 read 0/726. Checked with 0 and with 1 of 726 extracted; the CI job extracts them first, so it runs as before.
  3. Docs: a habit that yields is not a broken habit (docs/persona.md §5.6, docs/CHEATSHEET.md). On the shipped tutor, after_error_check tested alone is unknown to prove for seeds 0-19 (exit 1), and fuzz finds a 2-event counterexample on all 20 seeds; replaying each of the 20 gives habits.violations: 0 and habits.yielded: ["after_error_check"] (the confused_no_playful habit, priority 10, wins). The docs tell readers to read violations and yielded, not only the verdict.
  4. Docs: one reward sign for every learned trait (docs/persona.md §2.8, USE-CASES.md). Mapping raw task success onto praise/criticism moves every trait in learning.traits toward the levels of passing turns and away from those of failing ones, so one global preference smears over all of them. Worded as a caution read from the learning step, not as a measured result.

CHANGELOG ## Unreleased has the four items; llms-full.txt is regenerated.

Not in this PR: version bump, the release channels (stacked draft PR on top of this branch), any engine change.

@BitmapAsset
BitmapAsset marked this pull request as ready for review November 19, 2026 07:41
@BitmapAsset
BitmapAsset merged commit 6decff7 into main Nov 19, 2026
20 checks passed
@BitmapAsset
BitmapAsset deleted the fix/0.15.1-part-a branch November 19, 2026 07:42
BitmapAsset added a commit that referenced this pull request Nov 19, 2026
…15.1 rewords (#102)

The P0 corpus records the earlier words of the error for a reward without `src` on a persona with `reward_from`;
#100 reworded that message. `bench/individuality/p0.py check` now compares an output of `replay` or `live` that differs
from its record once more with exactly the one such message the corpus's scripts produce (a `praise` without `src` on
`adaptive` and `guarded`, whose `reward_from` is `["env"]`), as the stderr line has it and as the error object on stdout
has it (each quote escaped), put back into the recorded words, and reports the outputs that then equal their records
apart as `src_message_reworded`. Any other byte, inside or outside the message, is still a difference. The README logs
the change under "Changes after freezing"; MANIFEST's p0.py line is updated.

With a 0.15.1 build: {"outputs": 653, "differ": 0, "identical": 539, "stderr_warnings_only": 18,
"src_message_reworded": 96, "strands_verified": 8, "verify_failed": []}, exit 0.
With the released 0.15.0 binary: {"outputs": 653, "differ": 0, "identical": 629, "stderr_warnings_only": 24,
"src_message_reworded": 0, "strands_verified": 8, "verify_failed": []}, exit 0.

The corpus is unchanged (EXPECTED, the scripts and the strands).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant