Skip to content

fix(megazord): supervisor exit 0 quando a varredura rodou - #8

Open
iB2 wants to merge 1 commit into
mainfrom
fix/paperclip-supervisor-exit-code
Open

iB2 wants to merge 1 commit into
mainfrom
fix/paperclip-supervisor-exit-code

Conversation

@iB2

@iB2 iB2 commented Sep 14, 2026

Copy link
Copy Markdown
Owner

Follow-up da #7. O supervisor é vigiado pelo dead-man's-switch (expect_exit: 0); sair não-zero em FINDING faria o monitor parecer que falhou toda vez que detectasse um problema. Findings vão pelo alerta WhatsApp + health.json, então o exit code sinaliza só "a varredura rodou". Bate com o comportamento já em disco (task agendada: último resultado 0).

🤖 Generated with Claude Code

The scheduled supervisor is watched by the _health dead-man's-switch
(expect_exit: 0). Exiting non-zero on FINDINGS would make the monitor look like
it failed every time it correctly detected a problem. Findings are delivered via
the WhatsApp alert + health.json, so the exit code now signals only "did the
sweep run" (0 = ran, non-zero = the supervisor itself failed). Matches the live
behaviour already on disk (verified via the scheduled task: last result 0).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant