Skip to content

refactor(engine): run scheduled prompts through the built-in runtime - #4249

Merged
LHagfoss merged 1 commit into
mainfrom
refactor/builtin-agent-scheduled-turns
Nov 22, 2026
Merged

LHagfoss merged 1 commit into
mainfrom
refactor/builtin-agent-scheduled-turns

Conversation

@LHagfoss

Copy link
Copy Markdown
Owner

What

Step 4 of ADR 0008. The daemon executor no longer builds AppState or calls raw_cli. It hands a scheduled job's prompt to BuiltinRuntime::run_scheduled, a new trait in acp/builtin.rs, and maps its ScheduledPromptError (permanent, transient or ambiguous) to the run outcome as before.

raw_cli::HeadlessRuntime implements it with the same steps: build the scheduled state, give it a daemon session of its own, run the turn. For now builtin::runtime() returns it directly; when the agent moves to its own crate, the binary registers it at startup instead.

Changelog

No user-facing change.

Testing

cargo check --workspace --tests; CI runs the daemon action tests.

The daemon executor hands a job's prompt to BuiltinRuntime::run_scheduled
instead of building the agent's state and running its turn itself.
@github-actions github-actions Bot added the refactor Code improvement and restructuring label Nov 22, 2026
@LHagfoss
LHagfoss merged commit b5d4604 into main Nov 22, 2026
7 checks passed
@LHagfoss
LHagfoss deleted the refactor/builtin-agent-scheduled-turns branch November 22, 2026 19:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactor Code improvement and restructuring

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant