Skip to content

bench(individuality): the P0 check accepts the missing-src message 0.15.1 rewords - #102

Merged
BitmapAsset merged 2 commits into
mainfrom
fix/p0-src-message
Nov 19, 2026
Merged

BitmapAsset merged 2 commits into
mainfrom
fix/p0-src-message

Conversation

@BitmapAsset

@BitmapAsset BitmapAsset commented Nov 19, 2026 •

Copy link
Copy Markdown
Owner

The P0 corpus (bench/individuality/p0.py check) records the earlier words of the error for a reward without src on a
persona with reward_from (the corpus's adaptive and guarded). #100 reworded that message, so a 0.15.1 build gives
96 differing outputs, all in that message: the error object on stdout and the stderr line of replay and live; the
exit code (2), the error's code and path, and every stance, state and strand are unchanged.

This PR follows the README's "Changes after freezing" way, as for the senses and credit warning lines:

  • bench/individuality/p0.py: the corpus's scripts produce exactly one such message (a praise without src;
    reward_from is ["env"]). check compares an output of replay or live that differs from its record once more
    with exactly that message, as the stderr line has it and as the error object 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, still counts as a difference: checked with two planted changes, one byte
    of a stance field outside the message in one output and env written enw in the example line inside the message
    in another; both outputs, and only they, are reported.
  • bench/individuality/README.md: one sentence in the P0 section and a new entry under "Changes after freezing".
  • bench/individuality/fixtures/MANIFEST: the p0.py line (sha256 and size).

Results:

  • 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.
  • Released 0.15.0 binary (Python 3.9): {"outputs": 653, "differ": 0, "identical": 629, "stderr_warnings_only": 24, "src_message_reworded": 0, "strands_verified": 8, "verify_failed": []}, exit 0.
  • bench/body/p0.py with the 0.15.1 build: exit 0; n6, s5, r5, l5 and o5 pass.
  • run.py's manifest check: no differences.

The corpus is unchanged (EXPECTED, the scripts and the strands).

…15.1 rewords

The P0 corpus records the earlier words of the error for a reward without `src` on a persona with `reward_from`
(the corpus's `adaptive` and `guarded`); #100 reworded that message. `p0.py check` now compares an output of
`replay` or `live` that differs from its record once more with every such message put back into the recorded words
(the two forms the engine writes: a learning flag, a goal win; plain or JSON-escaped quotes) and reports the outputs
that then equal their records apart as `src_message_reworded`. Any other byte still counts as 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).
… corpus produces

The corpus's scripts produce one missing-src message: a `praise` without `src` on `adaptive` and `guarded`, whose
`reward_from` is `["env"]`. The rule now replaces exactly its bytes, in two writings (as the stderr line has them and
as the error object on stdout has them, each quote escaped), with the recorded words (`bytes.replace`, no pattern), so
any other change inside or outside the message is reported as a difference. The README entry says so; 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).
@BitmapAsset
BitmapAsset merged commit 108d4a1 into main Nov 19, 2026
35 of 36 checks passed
@BitmapAsset
BitmapAsset deleted the fix/p0-src-message branch November 19, 2026 10:00
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