fix(verify-cert): spawn() + Volume verdict — survives client/laptop death#207
Merged
Conversation
…/laptop death Three --detach runs died to laptop sleep: --detach keeps the APP alive but the local entrypoint's blocking .remote() input is cancelled when the client dies (server logs: "Received a cancellation signal ... killing task"). Decouple fully, the proven L3-gate pattern (2026-05-29): - entrypoint uses cert.spawn() (non-blocking) and fire-and-exits — no client input to cancel, so the function runs server-side independent of the laptop. - cert() writes the VERDICT to the Volume (cert_verdict_n<N>_task<T>.json), so the result is recoverable when the client is long gone: `modal volume get`. Guard is the server-side function timeout=10800 (a local watchdog is useless against sleep). Recover: modal volume get reflex-verify-cert-data cert_verdict_n30_task0.json - Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
Three
--detachcert runs died to laptop sleep —--detachkeeps the app alive but the entrypoint's blocking.remote()input is cancelled when the client dies. Decouple via the proven L3-gate pattern:cert.spawn()(non-blocking, server-side independent) + write the verdict to the Volume so it's recoverable when the client is gone. Server-sidetimeout=10800is the guard. Re-cert firing now asap-xocekXwCKJdagIJpQ8GYGi.🤖 Generated with Claude Code