Repository navigation
feat(agentcore): implement supervised execution worker - #93
Merged
Fodesu merged 2 commits intoOct 3, 2026
Conversation
Fodesu
force-pushed
the
feat/agent-runtime-core-20-executor-worker
branch
from
October 3, 2026 14:43
dede823 to
72352bc
Compare
Fodesu
force-pushed
the
feat/agent-runtime-core-20-executor-worker
branch
2 times, most recently
from
October 3, 2026 15:35
e732467 to
15a6f86
Compare
Fodesu
marked this pull request as ready for review
October 3, 2026 16:23
Fodesu
force-pushed
the
feat/agent-runtime-core-20-executor-worker
branch
from
October 3, 2026 17:04
15a6f86 to
7290678
Compare
Fodesu
force-pushed
the
feat/agent-runtime-core-20-executor-worker
branch
from
October 3, 2026 17:11
7290678 to
9156db5
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.
Summary
Adds the execution Worker and supervision logic that turns executor contracts into a recoverable process boundary. The Worker owns notices and progress for its accepted effects, while
supervisemanages worker lifetime and recovery without changing the Run’s durable state machine.Design
A Worker receives an immutable Assignment, persists or reuses the record under its stable key, and runs the model or tool implementation behind that record. Dispatch is idempotent: a replayed key attaches to the existing logical execution instead of creating an unrelated effect. Worker-local generations identify re-dispatches, and progress frames carry generation and sequence so consumers can discard provisional output from an earlier attempt after a reset.
Terminal outcomes are written before settlement notices are published. Notices therefore remain hints to reread, not durable result copies. The Worker keeps its notice stream and bounded history with the worker instance, allowing a restarted process to expose a new epoch rather than pretending that old sequence numbers remain valid. Cancellation and abort follow separate paths: cancellation asks a live execution to stop, while abort closes a key so a late dispatch cannot start work after Run recovery has disposed it.
Supervision handles accepted work that outlives an in-process caller. It can recover orphaned records and attach a replacement execution where the contract permits, while preserving the distinction between an active attempt, a terminal readable record, and an unknown effect. No worker observation is promoted directly into Run facts; the Loop still settles outcomes through its command protocol.
This PR contains production Worker/supervision code; contract and conformance coverage is supplied by adjacent executor packages.