Repository navigation
Quote a forked stage's answers whole for the stage that settles them - #53
Merged
Merged
Conversation
quoted() cuts a value at SHOW_LIMIT, the bound on what a person is shown, so the stage after a forked one read each longer attempt cut short. quoted() takes whole=True for a value a model works from, and the harness quotes forked answers that way. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
What changes
When a run leaves a stage that writes
forks: yes, the next stage reads every attempt's answer as one quoted record. The harness quoted each answer withquoted, which cuts a value atSHOW_LIMIT(200 characters). That limit is meant for what a person is shown ("a display bound; the value itself is unchanged"). So the stage that settles the attempts read each longer answer cut short.quoted(value, whole=True)neutralises control characters and double quotes as before, but does not cut the value.whole=True.Why
Bud Meta Harness ports this record (
@budmh/loop-stages). On a staff-desk agent runningthree-independent-tries(claude-haiku-5-5), both attempts gave the right figures and citations, plus a second part that fell past the cut. The settle step read "...With 18 days tak… (493 characters in all)". It then said it would look the figures up again instead of settling them. BMH now quotes the answers whole, and this change keeps the reference in step.Tests
tests/test_forks_stops_and_a_growing_each.py::test_the_stage_that_settles_reads_every_attempt_wholechecks that three attempts longer than 200 characters each reach the settle stage in full.test_a_remote_agents_bill_is_not_a_ceiling_we_hold::test_the_second_port_reports_a_spend_cap_it_cannot_price, because this checkout's TypeScript adapter has noaipackage installed. It is an environment gap and fails the same way without this change.🤖 Generated with Claude Code