Repository navigation
A member a rule stopped tells its lead what it had already done - #48
Merged
Merged
Conversation
A team member whose run a rule stopped reached its lead as "cashier stopped: stopped-by-rule", without the rule's words or the payment the member had already made. `stopped_by_rule` now writes the rule's words, then the heading `COMPLETED_CALLS_HEADING` and one line per call holding a `same-request-key:` that the run completed, with what it returned. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jithinAB
marked this pull request as ready for review
November 21, 2026 09:59
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
A team member whose run a rule stopped (
stop-the-run) now tells its lead what it had already done.harness.stopped_by_rule(member, out, keys):<member> was stopped by a rule: <the rule's words>, then, when the run had completed calls holding asame-request-key:, the headingharness.COMPLETED_CALLS_HEADING("It completed these calls before the stop; their results are tool output:") and one line per such call with what it returned, once per key and in the order they ran. A call that failed (error: ...) or was withheld (not done: ...) is left out; the results are what the member's model read, so a hidden value stays its placeholder.delegate_by_running's asker raises it as the member's failure, soHandoff.saidhands the leaderror: cashier could not answer: cashier was stopped by a rule: ...with the completed calls.tests/test_a_stopped_member_says_what_it_already_did.py: a cashier charges one order, then a counting rule stops it before a second; the lead reads the rule's words and the first charge's receipt. A cashier whose charge failed reads only the rule's words.scripts/sync-counts.sh's edits: rust 1733, adapter 3661).Why
The member's reply was
cashier stopped: stopped-by-rule: neither the rule's words nor the payment the member had already made reached the lead. In a live Bud Meta Harness run (serve profile, gpt-5-mini, a card desk lead and cashier,one-charge-per-requeststopping a second charge after a restart), the lead then told the customer an order was "not charged" after its money had moved. BMH builds the same hand-off from its at-most-once ledger, with the same heading, so a lead reads one hand-off on each runtime.Evidence
On this branch's head (master 535a28e):
stopped-by-rulebranch removed from the asker, both fail (the lead readcashier stopped: stopped-by-rule).--experimental-strip-types) passed on a rerun under Node 24 (83 passed, 1 skipped).test_the_headline_test_count_is_the_count.pypassed.Purpose checklist (§0.2)
same-request-key:actions did, nothing the runtime invents.completedCallsText(action-effects) is held to the same words.stopped_by_ruleor write its heading.RunResult.same-request-key:exists for.