Repository navigation
Conversation
…or run Co-Authored-By: Claude Opus 5.5 <[email protected]>
…while paused - A new pause pushes one "Prometheus paused" alert, saying who paused and never why, with no category, to each live owner device with no live socket (PushDispatcher.push_paused). Pausing again pushes nothing; a store that cannot name its owners sends nothing; a failed or slow push (5 s cap) never fails the pause. - oara doctor gains a Pause row: ok, a warning with since when (never who or why), or an error with what to do when the file is unreadable. - /curator run refuses while paused (its non-model pass archives files). - Docs: the alert, the doctor row, and a model-started process pointed at another pause file. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
- The Pause row is in the doctor checks that always run, so --no-scan, no config or a failed scan still show it (and exit 1 on an unreadable file); not reported twice. It names the file it read, and a state that cannot be read is an error row, never a crash. - A pause file whose since is Infinity, NaN, negative, too large for a float or past the year 5138 is unreadable (paused), not a crash at boot or in a child. - A pause landing while the curator's model reviews archives nothing. - The alert never carries a chat account's id to Apple, and goes to every owner device at once, so one that never answers does not keep it from the others. A comment says why it is owner-only. - Docs: what a pause does not stop (a process detached before it). Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This branch has not been deployed
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.
Beacon iOS Piece 17, PR 3 of 3: the push alert and the doctor row. Stacked on #919 (itself on #918); retarget as they merge. Next release, held with them.
The alert. A new pause pushes one alert to each owner device with no live socket:
PushDispatcher.push_paused, called by the pause itself, so the REST route and the owner's Telegram/pauseboth alert./api/status, and never a chat account's id: a Telegram pause reads "Paused by owner in Telegram". The top-level keypaused_since(epoch seconds) lets the app show local time.owner_device_ids): never a scoped or revoked device. A device watching over its socket already got thepaused_changedframe, so it gets no push.PUT /api/pause(the same pause) pushes nothing.The doctor row.
oara doctorgains a Pause row, in the checks that always run, so--no-scan, a missing config or a failed deep scan still show it. It names the file it read; a CLI run reads this machine's default file unless told another. The row is:oara doctorthen exits 1);The curator archives nothing while paused.
/curator runrefuses. A pause that lands while the curator's model is reviewing archives nothing either; the suggestions come again on the next run. Both were backlogged lows from #919's second review.A pause file with a nonsense
since(Infinity, NaN, negative, too large for a float, or past the year 5138) is unreadable, which counts as paused. Before, that crashed boot and child processes; it's PR 1 code, fixed here because this PR's doctor row exposed it.Choices noted:
bythe pause stores: a device name, the API token, or the owner's Telegram./api/status.node_pubin every push): whichever of the two merges second adds_named(...)to the pause body and a row totests/test_push_carries_node_pub.py.Not in this PR (backlog from #919's reviews): the web chat handler and
/v1treat a pause met inside a round, before the sweep cancels the turn, as a turn failure. The client gets an error frame reading "Prometheus is paused", and the turn's tail is discarded. That's safe; making it match the interrupt path is a separate change tows_server.py.Reviews: two.
since, the curator's archive step, the chat id, concurrent delivery, a docs sentence that overstated, and a test that a hanging push is cut off.persisted: falsecan make the alert missed or misleading;task_failedpushes.Phone: nothing to adopt for the alert to show; it's a plain alert. Optional: open the pause banner on tap, and read
paused_since.Tests: red first (
tests/test_pause_alert_and_doctor.py). Local Mac suite at 681627e, with the venv on PATH: 16,092 passed, 0 failed. Ruff and the mypy gate are clean.🤖 Generated with Claude Code