Repository navigation
bench(individuality): the P0 check accepts the missing-src message 0.15.1 rewords - #102
Merged
Merged
Conversation
…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).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The P0 corpus (
bench/individuality/p0.py check) records the earlier words of the error for a reward withoutsrcon apersona with
reward_from(the corpus'sadaptiveandguarded). #100 reworded that message, so a 0.15.1 build gives96 differing outputs, all in that message: the error object on stdout and the stderr line of
replayandlive; theexit code (2), the error's
codeandpath, 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 (apraisewithoutsrc;reward_fromis["env"]).checkcompares an output ofreplayorlivethat differs from its record once morewith 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. Anyother 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
envwrittenenwin the example line inside the messagein 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:
{"outputs": 653, "differ": 0, "identical": 539, "stderr_warnings_only": 18, "src_message_reworded": 96, "strands_verified": 8, "verify_failed": []}, exit 0.{"outputs": 653, "differ": 0, "identical": 629, "stderr_warnings_only": 24, "src_message_reworded": 0, "strands_verified": 8, "verify_failed": []}, exit 0.bench/body/p0.pywith 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).