Skip to content

Quote a forked stage's answers whole for the stage that settles them - #53

Merged
jithinAB merged 1 commit into
masterfrom
pact-loops/fork-answers-whole
Dec 5, 2026
Merged

jithinAB merged 1 commit into
masterfrom
pact-loops/fork-answers-whole

Conversation

@jithinAB

@jithinAB jithinAB commented Dec 5, 2026

Copy link
Copy Markdown
Contributor

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 with quoted, which cuts a value at SHOW_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.
  • The harness quotes forked answers with whole=True.
  • Values shown to a person keep the cut.

Why

Bud Meta Harness ports this record (@budmh/loop-stages). On a staff-desk agent running three-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

  • New: tests/test_forks_stops_and_a_growing_each.py::test_the_stage_that_settles_reads_every_attempt_whole checks that three attempts longer than 200 characters each reach the settle stage in full.
  • The full Python adapter suite under Node 24 gives 3504 passed, 163 skipped, 1 failed. The failure is 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 no ai package installed. It is an environment gap and fails the same way without this change.
  • The headline counts are now 5401 tests (1733 Rust + 3668 adapter).

🤖 Generated with Claude Code

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>
@jithinAB
jithinAB merged commit 3a75126 into master Dec 5, 2026
1 of 2 checks passed
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