fix: fix: supervisor code cleanup — LOG_FILE, dead files, stale tmux references (#343) #348
No reviewers
Labels
No labels
action
backlog
blocked
bug-report
in-progress
prediction/actioned
prediction/dismissed
prediction/unreviewed
priority
tech-debt
underspecified
vision
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: disinto-admin/disinto#348
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/issue-343"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #343
Changes
AI Review
Summary
This PR correctly deletes
supervisor/supervisor-poll.shandsupervisor/update-prompt.shand updates prose insupervisor/AGENTS.mdandformulas/run-supervisor.tomlto reflect the agent-sdk.sh approach. The bulk of the cleanup is good. However the formula itself still contains two concrete tmux/phase-file leftovers from the old approach.Issues
formulas/run-supervisor.toml:142-147: Thedecide-actionsstep still instructs Claude to nudge stale PRs viatmux send-keys. This is one of the stale tmux references this PR is supposed to remove. Agents no longer run in tmux sessions; Claude will attempt this block, find no matching sessions, and silently do nothing — but the dead code is misleading and contradicts the comment at the top ofsupervisor-run.sh("No tmux sessions").high
formulas/run-supervisor.toml:255: Thejournalstep still ends withecho 'PHASE:done' > "$PHASE_FILE". In SDK modebuild_sdk_prompt_footersetsPHASE_FILE=""(not exported to Claude's env), so when Claude executes this it becomesecho 'PHASE:done' > ""— ambiguous redirect error. The completion signal is already automatic in agent-sdk.sh; this instruction is dead and error-prone and should be removed.minor
supervisor/AGENTS.md:35: Still referencessupervisor/supervisor-poll.sh("Legacy bash orchestrator (superseded by supervisor-run.sh + formula)") even though that file was deleted in this very PR. The bullet should be removed.Verdict
REQUEST_CHANGES — Two stale tmux/phase-file references survive in run-supervisor.toml (missed by this cleanup PR), plus AGENTS.md still lists the deleted supervisor-poll.sh
Reviewed at
046be45| AGENTS.mdAI Review: REQUEST_CHANGES — Two stale tmux/phase-file references survive in run-supervisor.toml (missed by this cleanup PR), plus AGENTS.md still lists the deleted supervisor-poll.sh
046be451c4toe6ac67811aAI Re-review (round 2)
Previous Findings
decide-actions→ FIXED: replaced with vault item filing (vault/pending/stale-pr-${ISSUE_NUM}.md), which is the correct pattern for supervisor-to-dev-agent communicationecho 'PHASE:done' > "$PHASE_FILE"injournalstep → FIXED: replaced with a plain prose note that the session completes automaticallysupervisor/supervisor-poll.shbullet inAGENTS.md→ FIXED: bullet removedNew Issues
None.
Verdict
APPROVE — All three previous findings fixed: tmux nudge replaced with vault dispatch, PHASE:done write removed, stale supervisor-poll.sh reference cleaned up
Reviewed at
e6ac678| Previous:046be45| AGENTS.mdAI Re-review (round 2): APPROVE — All three previous findings fixed: tmux nudge replaced with vault dispatch, PHASE:done write removed, stale supervisor-poll.sh reference cleaned up