You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adds a reusable fallback host bridge that applies LoopX's Codex App scheduler
hint RRULE to the local automation store when automation_update is not
available.
Motivation
LoopX heartbeats project scheduler_hint.codex_app.stateful_backoff with apply_needed / recommended_rrule / ack_hint.cli_args. On hosts without
the Codex App automation_update tool, there was no first-class way to apply
the RRULE; operators had to edit ~/.codex/automations/<id>/automation.toml
and the ~/.codex/sqlite/codex-dev.dbautomations row by hand and then run
the ACK manually.
What Changed
New scripts/codex_app_apply_rrule.py:
reads loopx quota should-run and extracts scheduler_hint.codex_app;
when apply_needed=true and recommended_rrule is present, backs up the
automation SQLite (.backup), updates the automation TOML rrule and the automations row, then runs the bound ack_hint.cli_args;
when apply_needed=false but ack_needed=true, runs the ACK without a
host update;
supports --dry-run and overridable paths/goal/agent for tests and
alternate installations; no credentials or private material are handled.
New tests/test_codex_app_apply_rrule.py: covers apply (TOML + DB + ACK +
backup), dry-run no-write, no-apply ACK-only, and helper-level updates.
Validation
tests/test_codex_app_apply_rrule.py: 4 passed.
ruff check clean on both files.
git diff --check clean.
Notes
This is a host-specific fallback bridge, not a substitute for automation_update; it is scoped to the Codex App automation store and should
be invoked only with the RRULE projected by LoopX.
APPROVE. Head 68abbf479e886afa3cc78323e49a5d631a94a839. The fallback tool reads the LoopX Codex App scheduler hint, backs up the automation SQLite, updates both the automation TOML and the automations row when apply_needed=true, and runs the bound ACK; it also supports dry-run and ACK-only paths. 4 focused tests pass, ruff and git diff --check are clean, and GitHub pytest/dependency-review are green with the branch mergeable. Author-owned PR; GitHub blocks formal self-review, so this comment records the approval conclusion.
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
control-planeQuota, todo, scheduler, registry, state, goal, or runtime control-plane change.triageNeeds maintainer triage or routing.
1 participant
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.
Summary
Adds a reusable fallback host bridge that applies LoopX's Codex App scheduler
hint RRULE to the local automation store when
automation_updateis notavailable.
Motivation
LoopX heartbeats project
scheduler_hint.codex_app.stateful_backoffwithapply_needed/recommended_rrule/ack_hint.cli_args. On hosts withoutthe Codex App
automation_updatetool, there was no first-class way to applythe RRULE; operators had to edit
~/.codex/automations/<id>/automation.tomland the
~/.codex/sqlite/codex-dev.dbautomationsrow by hand and then runthe ACK manually.
What Changed
scripts/codex_app_apply_rrule.py:loopx quota should-runand extractsscheduler_hint.codex_app;apply_needed=trueandrecommended_rruleis present, backs up theautomation SQLite (
.backup), updates the automation TOMLrruleand theautomationsrow, then runs the boundack_hint.cli_args;apply_needed=falsebutack_needed=true, runs the ACK without ahost update;
--dry-runand overridable paths/goal/agent for tests andalternate installations; no credentials or private material are handled.
tests/test_codex_app_apply_rrule.py: covers apply (TOML + DB + ACK +backup), dry-run no-write, no-apply ACK-only, and helper-level updates.
Validation
tests/test_codex_app_apply_rrule.py: 4 passed.ruff checkclean on both files.git diff --checkclean.Notes
This is a host-specific fallback bridge, not a substitute for
automation_update; it is scoped to the Codex App automation store and shouldbe invoked only with the RRULE projected by LoopX.