Repository navigation
fix: sweep fail streak resets on a new shift; digest row names the sweep wait (M3.7e follow-ups) - #695
Merged
Conversation
…ames the sweep wait - _sweep.observe: a failed run-list read more than SWEEP_STREAK_GAP_S (600 s) after the previous read attempt starts a fresh streak, so the 30-minute unknown rule counts only continuous failures inside one run of ticks. - _digest: a PR in counters["sweep_waits"] reads "waiting: workspace sweep unknown since <t>" in its own row (plain word "Waiting — workspace sweep unknown"), beside the merge-order wait. Workspace sweep section unchanged. - AUTONOMY.md S4 and batch AGENTS.md record the gap rule. - Tests: LateLibs spawner; streak-gap, continuous-hold and digest-row tests; r1_2/r2_1 tests now tick a few minutes apart. Refs #694 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…backstop
- _sweep.observe takes the shift (slot name) and stores it as read_shift.
A failed read starts a fresh streak when the previous read was another
shift's (or none is recorded) or is over SWEEP_STREAK_GAP_S = 7200 s old.
Slow ticks inside one shift (gh calls hanging to their timeouts) no longer
restart the streak, so the 30-minute hold still fires.
- _orchestrator passes slot.name to both observe calls.
- _digest.sweep_wait_state: partition(" since "), falling back to the
wait's own `since` when the separator is missing.
- AUTONOMY.md S4 and batch AGENTS.md updated to the new rule.
- Tests: new-shift fresh streak (stored shift differs / none stored),
12-minute ticks still hold, 2 h gap resets, digest fallback; the r1_2 and
r2_1 tests are back to their original tick spacing.
Refs #694
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.
Summary
The two M3.7e review follow-ups (closes #694), filed as drafts and approved by the human on 2026-11-19.
SWEEP_STREAK_GAP_S = 7200). A failure left over from the previous shift no longer makes the next shift's first failed read "unknown" at once. Slow ticks inside one shift (gh calls hanging to their timeouts) no longer restart the streak, so 30 minutes of continuous failures still hold PRs.AUTONOMY.mdS4 and batchAGENTS.md.API Changes
None — internal changes only (
_sweep.observegains ashiftargument; newSWEEP_STREAK_GAP_S;_digest.sweep_wait_state).Test Plan
tests/test_shift_end_sweep.py(43 tests): the new-shift reset, the no-stored-shift reset, slow 12-minute ticks still holding after 30 minutes, the digest row and its fallback all failed on the earlier code; the 2-hour gap test guards existing behaviour.bin/check_skill_line_counts.sh 200 PyAutoBrain, tenant firewall,install.sh --check-project-discovery: OK.🤖 Generated with Claude Code