Repository navigation
fix(buzz-acp): break WIP-resume loop on placeholder checkpoints (WO #1093) - #13
Merged
Merged
Conversation
… 2 idle-kills (WO block#1093) Placeholder bundles (<1KB or header-only) are archived instead of resumed, and two consecutive killed_idle outcomes force-skip WIP resume with a one-line channel notice so seats cannot wedge on empty resume loops.
CI Rust Lint failed fmt-check on the new IdleKillTracker wiring and related helpers.
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.
Summary
Breaks the Ox-style WIP-resume wedge: placeholder checkpoints are archived (never resumed), and after 2 consecutive
killed_idleoutcomes the seat skips WIP resume once and posts a one-line channel notice.Tracks remote-aid-medical#1093.
AC3 (red before / green after)
Ox-shaped fixture (exactly 40 bytes:
# buzz-acp wip checkpoint\nts=<N>\n):resume_wip_hinthas no placeholder predicate — any newestOUTBOX/wip/*.bundlebecomes a[WIP Resume]prompt. Fixture is treated as resumable → RED (reproduces the loop).placeholder_fixture_archived_not_resumedarchives the fixture and returns no resume hint → GREEN.New / renamed API (
crates/buzz-acp/src/wip_checkpoint.rs)is_placeholder_checkpoint/is_header_only_checkpoint_body/PLACEHOLDER_MAX_BYTES/WIP_CHECKPOINT_HEADERarchive_wip_bundle→OUTBOX/wip-archive-<UTC>/IdleKillTracker/IDLE_KILL_SKIP_THRESHOLD/decide_wip_resume/WipResumeDecision/wip_idle_skip_noticePromptContext.idle_kill_trackerandrun_prompt_task/handle_prompt_resultTests
crates/buzz-acp/tests/wip_placeholder_resume.rs:placeholder_fixture_archived_not_resumed,two_consecutive_killed_idle_skips_once_with_one_noticetest_placeholder_fixture_is_archived_not_resumed,test_two_consecutive_killed_idle_force_skips_wip_resume_oncefiles-touched:
Evidence