Repository navigation
automations: add service groundwork and overview - #28609
Closed
eternal-openai wants to merge 2 commits into
Closed
eternal-openai wants to merge 2 commits into
eternal-openai wants to merge 2 commits into
Conversation
This was referenced Jun 16, 2026
eternal-openai
force-pushed
the
codex/automations-01-groundwork
branch
from
June 16, 2026 23:02
b0e1c77 to
d04f773
Compare
eternal-openai
force-pushed
the
codex/automations-01-groundwork
branch
from
June 17, 2026 00:14
5a80588 to
1dfcddd
Compare
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.
Stack
automation_updatetoolrunNowrequestsOverview
This stack migrates scheduled automations and heartbeats into
codex-rswithout reintroducing the earlier generic inbox/event-bus design. The durable source of truth is automation state in SQLite; app-server owns the public v2 API and delivery into local threads; the extension layer exposes the agent-facingautomation_updatetool whenFeature::Automationsis enabled.The important concurrency decision is that multiple app-server processes may see the same automation database, but only one process owns a dispatch at a time through claim/lease fields introduced later in the stack. Cron automations create new local threads per configured
cwd; heartbeats target existing threads and can later resume them without a client connection.Why
The previous prototype grew toward a generic inbox/event queue, but the review direction settled on keeping automations, external events, agent-to-agent communication, and future queue work as separate implementations. This first PR gives the automation stack a small foundation: the feature gate, persisted thread metadata helpers, and thread lineage/runtime metadata needed by later automation dispatch without adding the automation APIs yet.
What Changed
Feature::Automationsas an under-development, default-off feature gate.mainmigrations.Verification
The rebased stack was checked with:
just bazel-lock-checkCODEX_SQLITE_HOME=/tmp/codex-automations-non-appserver-20260616-rebased just test -p codex-features -p codex-state -p codex-app-server-protocol -p codex-automation-extensionenv -u CODEX_SQLITE_HOME just test -p codex-app-server suite::v2::automationDocumentation
No developers.openai.com documentation update is needed for this draft stack. The architecture draft lives in Notion while the API remains experimental and default-off.