Skip to content

Wave 20: a handback that only claims to wait on background work gets a bounded block - #2174

Merged
remigiusz-antczak merged 1 commit into
mainfrom
land/wave-20
Oct 31, 2026
Merged

remigiusz-antczak merged 1 commit into
mainfrom
land/wave-20

Conversation

@remigiusz-antczak

Copy link
Copy Markdown
Collaborator

A lane that hands back claiming it waits on background tests now gets a bounded block (at most 3), so it waits in the same turn or reports its work as unverified.

Changes

  • handback_cap.py: the waiting claim blocks the stop (exit 2) in every mode but off. There is no block without an agent id, while stop_hook_active is true, or when the first status line reads UNVERIFIED, and at most 3 per agent id.
  • The background-guard policy text, the lane preamble and test_bg_wait_claim.py now say so.
  • The command-word change to flow_alarm.py from the same lane is not in this PR; it moves to its own change.

Verification

  • Tests: handback_cap.py --selftest 130/130 (117 before), test_bg_wait_claim.py 9/9, test_flow_alarm.py 10/10, changelog fragments 23/23, run-ci-tests --affected 28/28 with the privacy gate clean; size ratchet ok.

🤖 Generated with Claude Code

…a bounded block

A lane that hands back saying it is waiting on its background tests used to get only a
systemMessage, so it could end with its work unverified. handback_cap.py now blocks that stop
(exit 2) in every mode but off, and the reason tells the lane to wait in this turn or hand back
status=UNVERIFIED naming what is pending. The block is bounded: none without an agent_id, none
while stop_hook_active is true, none when the first status line reads UNVERIFIED (a later
UNVERIFIED line does not exempt a VERIFIED handback), and at most MAX_BLOCKS (3) per agent id.
The background_guard policy text, the lane preamble and test_bg_wait_claim.py now say so.

Tests: handback_cap.py --selftest 130/130 (117 before), test_bg_wait_claim.py 9/9, test_flow_alarm.py 10/10, run-ci-tests --affected 28/28 (privacy gate clean)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@remigiusz-antczak
remigiusz-antczak merged commit e1d698c into main Oct 31, 2026
11 checks passed
@remigiusz-antczak
remigiusz-antczak deleted the land/wave-20 branch October 31, 2026 22:13
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