feat(hygiene): hygiene conductor — phase 1 scaffold + boundaries (#87) - #88
Merged
Conversation
#87) Phase 1 of the PyAutoBrain hygiene conductor — the code-quality upkeep function (developer-loop cost + repo tidiness), distinct from Heart (proof-of-works) and profiling (modelling speed). Real, routable and bounded, with its five modes (perf/tidy/noise/deps/docs + default worklist) staged as stubs; no behaviour yet. - agents/conductors/hygiene/{AGENTS.md,hygiene.sh}: the conductor + skeleton emitting a staged HygieneDecision (stdlib/bash; --json footing). - bin/pyauto-brain: dispatch map, description, usage, CONDUCTOR_ORDER. - skills/hygiene/{SKILL.md,hygiene.md}: the /hygiene veneer + Codex wrapper. - skills/COMMANDS.md: /hygiene veneer + tier-1 row. - agents/conductors/profiling/AGENTS.md: rewrite the vs-hygiene boundary to the measured-thing split and move "slow integration-function hunting" into hygiene's perf mode. - skills/repo_cleanup/SKILL.md: repoint the Future-Cleanup-Agent note at the built conductor (absorbed as tidy in phase 2). Modes fill in later phases (2: absorb repo_cleanup + cli_noise_clean, consult dep_audit + audit_docs; 3: perf + optional PyAutoHeart legs). Tests: 30 passed. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Tw3EwV55k6VzxorYng3Kfn
This was referenced Jul 11, 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 #87 (phase 1 of the hygiene conductor).
What
Phase 1 of the PyAutoBrain hygiene conductor — the code-quality upkeep
function (developer-loop cost + repo tidiness), distinct from Heart
(proof-of-works) and profiling (modelling speed). This makes the conductor
real, routable, and correctly bounded, with its five modes staged as stubs —
no behaviour yet. Design of record:
PyAutoMind/feature/pyautobrain/hygiene_agent.md;decision (conductor, no new paired repo):
PyAutoMind/research/pyautobrain/hygiene_agent_decision.md.Changes
agents/conductors/hygiene/{AGENTS.md, hygiene.sh}— the conductor + astdlib/bash skeleton emitting a staged
HygieneDecision(default worklist +perf/tidy/noise/deps/docs;--jsonfooting).bin/pyauto-brain— dispatch map, description, usage comment,CONDUCTOR_ORDER.skills/hygiene/{SKILL.md, hygiene.md}— the/hygieneveneer + Codex wrapper.skills/COMMANDS.md—/hygieneveneer entry + tier-1 conductor row.agents/conductors/profiling/AGENTS.md— rewrite thevs hygieneboundary tothe measured-thing split (profiling = modelling speed; hygiene = dev-loop cost)
and move "hunting generally-slow functions flagged by integration tests"
into hygiene's
perfmode.skills/repo_cleanup/SKILL.md— repoint the "Future Cleanup Agent" note at thebuilt conductor (absorbed as
tidyin phase 2).Out of scope (later phases): phase 2 absorbs
repo_cleanup(tidy) +cli_noise_clean(noise) and consultsdep_audit(deps) /audit_docs(
docs); phase 3 buildsperf(test/script/import timing) + optional PyAutoHeartobservation legs (
import_time/cli_noise).Autonomous-ship gate (
--auto, effective level: supervised)(Brain is the reasoning/org repo; no Python public API consumed by the science
libraries — no
python-sourcereview flag).(
smoke_tests.txtcovers the six science workspaces).the one nit — hardcoded help line-numbers — was fixed to parse the
# Usage:block). The
no-test-changesrisk flag is covered bytest_skill_install,which now asserts hygiene is a well-formed public agent.
no reason set acknowledged at launch. Not GREEN — this run parked at ship
sign-off (supervised) and shipped on explicit human go-ahead, not an
autonomous safe-ship.
Validation checklist (reviewer)
bin/pyauto-brain hygieneprints the staged 5-mode menu; a mode prints its staged notice.bin/pyauto-brain hygiene --jsonis valid JSON;hygiene <mode> --jsonlikewise.bin/pyauto-brain helplists hygiene in the conductor block;help hygienerenders the charter./hygieneresolves afterbash bin/install.sh(auto-discoversskills/hygiene/).vs hygieneboundary + Future-modes read correctly;repo_cleanuppointer updated.🤖 Generated with Claude Code
https://claude.ai/code/session_01Tw3EwV55k6VzxorYng3Kfn