No reviewers
Labels
No labels
action
backlog
blocked
bug-report
cannot-reproduce
in-progress
in-triage
needs-triage
prediction/actioned
prediction/dismissed
prediction/unreviewed
priority
rejected
reproduced
tech-debt
underspecified
vision
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: disinto-admin/disinto#933
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/issue-867"
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 #867
Changes
AI Review
Blockers
critical
supervisor/supervisor-run.sh:178: Health-status grep matches its own negative.grep -q "healthy"matches both "healthy" and "UNHEALTHY" (substring). When preflight emitsWP Agent Health: UNHEALTHY, the inner grep still succeeds and_wp_agent_healthyis set to"true". Recovery code at line 181 ([ "$_wp_agent_healthy" = "false" ]) therefore never fires. Fix: match the full word, e.g.grep -q '^WP Agent Health: healthy$'orgrep -vq 'UNHEALTHY'.critical
supervisor/supervisor-run.sh:309: Recovery comment body is not JSON-encoded._recovery_commentis a raw multiline shell string embedded directly into the-dargument:-d "{\"body\":$_recovery_comment}". The value contains newlines, asterisks, and angle-bracket HTML, none of which are escaped as JSON. EveryPOST .../commentscall will send malformed JSON and silently fail (|| trueswallows the error). Fix: pipe throughjq -n --arg body "$_recovery_comment" '{body: $body}'and use that output as the-dpayload.Minor
minor
supervisor/supervisor-run.sh:204: Log message after successful restart readsSuccessfully restarted WP agent container: $_wp_agent_healthy. At this point_wp_agent_healthyholds"false"(we're in the unhealthy branch). Should reference$WP_AGENT_CONTAINER_NAMEinstead.minor
formulas/run-supervisor.toml:116-118: Duplicate**P0 Memory crisis:**heading — the diff adds a blank**P0 Memory crisis:**line immediately before the existing one. Delete the new blank copy.low
supervisor/preflight.sh:260:docker logs --since 20m ... 2>&1 2>/dev/null—2>&1redirects stderr to stdout (into the pipe), then2>/dev/nullredirects stderr to/dev/null. Net effect: only the container's stdout is grepped; container stderr (where gRPC errors likely appear) is discarded. Use2>&1alone to merge both streams.Verdict
REQUEST_CHANGES — Recovery never fires (UNHEALTHY contains 'healthy') and recovery comments always produce malformed JSON
Reviewed at
31b5e11| AGENTS.mdAI Review: REQUEST_CHANGES — Recovery never fires (UNHEALTHY contains 'healthy') and recovery comments always produce malformed JSON
31b5e11006toc0697ab27bAI Re-review (round 2)
Previous Findings
supervisor-run.sh:178grep substring match (UNHEALTHY contains 'healthy') → FIXED: pattern changed to^WP Agent Health: healthy$, anchored exact match; preflight emits exactly that string (preflight.sh:312 confirms)supervisor-run.sh:309recovery comment not JSON-encoded → FIXED:-d "$(jq -n --arg body "$_recovery_comment" '{body: $body}')"correctly pipes through jqsupervisor-run.sh:204log message referenced$_wp_agent_healthyinstead of container name → FIXED: now uses$WP_AGENT_CONTAINER_NAMEformulas/run-supervisor.tomlduplicate**P0 Memory crisis:**heading → FIXED: duplicate line removedsupervisor/preflight.sh:2602>&1 2>/dev/nulldouble-redirect → FIXED: now correctly2>&1only, merging stderr into pipeNew Issues
None.
Verdict
APPROVE — All three blockers from previous review are fixed; no new issues introduced
Reviewed at
c0697ab| Previous:31b5e11| AGENTS.mdAI Re-review (round 2): APPROVE — All three blockers from previous review are fixed; no new issues introduced