Repository navigation
refactor: retire superseded batch paths, sweep dead code, consolidate tests - #701
Merged
Merged
Conversation
…estions backfill The August batch flow (a hand-dispatched record scored by `batch collect` into a review packet, with an optional integration preview) is superseded by the shift orchestrator. Remove the collect verb and its code, _integration.py, packet.js and their tests; the per-worker @mention path, unreachable since the questions inbox replaced it (event-comment retries stay); the one-off `batch questions --backfill`; and names left dead by these removals. Every surviving batch verb prints the same output as before against a real Mind, and the pre-change orchestrator tests pass against this source. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016nhQ8NtYMv2K9yt336CnGn
Comments and docstrings in the batch conductor now say what the code does and why, in the present tense; dates, milestone tags and incident narratives are left to git history. Comment-only: each file's AST with docstrings stripped is unchanged. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016nhQ8NtYMv2K9yt336CnGn
Remove unused functions, constants and imports outside the batch conductor, the caller-less board overnight functions, and the test of the deleted integration module. Start consolidating test setup into shared helper modules and collapsing same-body tests into parametrized ones. Work in progress; the full suite passes at this commit. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016nhQ8NtYMv2K9yt336CnGn
Work in progress; the full suite passes at this commit. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016nhQ8NtYMv2K9yt336CnGn
…redundant ones A new tests/_shift_fixtures.py holds the bare-remote Mind setup and git helpers that were repeated across the orchestrator tests, and one loaded _batch module. Same-body tests are parametrized with the case count kept; twelve strictly redundant cases are removed after moving their unique asserts to the surviving test. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016nhQ8NtYMv2K9yt336CnGn
…nductor Comment-only: each file's AST with docstrings stripped is unchanged. Docstrings printed as --help keep their wording. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016nhQ8NtYMv2K9yt336CnGn
This was referenced Nov 22, 2026
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.
Closes #700.
Summary
Size reduction approved by the human on 2026-11-22 after a refactor review. Net: 10,791 lines deleted, 3,217 added across 160 files.
What changed
batch collectremoved — the August hand-dispatched batch flow, superseded by the shift orchestrator._batch.py4,173 → ~1,900 lines;_integration.py,packet.jsand three test files deleted; batchAGENTS.mdandskills/batchdescribe the brief-only flow.batch questions --backfillremoved, and with it thequestionsverb.tests/_helpers.pyandtests/_shift_fixtures.pyhold shared setup; same-body tests parametrized; redundant tests removed after moving their unique asserts.CLI changes
batch collectandbatch questionsare no longer verbs (exit 2). The "flag does not belong toplan" message no longer names collect. The digest loses the "N pushes this shift" finding and the "mention will not notify" warning, both only reachable from the removed path. Nothing else changes.Verification
plan,brief --check,brief --new,digest,watch --once,ready,green,premise,slice) print byte-identical output before and after against a real PyAutoMind.claudeandgh.Left for follow-up
collected:, which nothing stamps now;planstill reads a "carried" outcomes block only collect wrote.batches/AGENTS.md,REFERENCE.md, packet template) and PyAutoHeart (bin/pyauto-hearthelp) still mentionbatch collect.--helpstill carry history.Generated by Claude Code