8000 feat(agentcore): add Turn driver and loop recovery integration by Fodesu · Pull Request #90 · felinics/twilight · GitHub
[go: up one dir, main page]

Skip to content

feat(agentcore): add Turn driver and loop recovery integration - #90

Merged
Fodesu merged 1 commit into
feat/agent-runtime-core-16-loopfrom
feat/agent-runtime-core-17-loop-conformance
Oct 3, 2026
Merged

Fodesu merged 1 commit into
feat/agent-runtime-core-16-loopfrom
feat/agent-runtime-core-17-loop-conformance

Conversation

@Fodesu
@Fodesu Fodesu commented Oct 3, 2026 •
Copy link
Copy Markdown
Member

Summary

Adds the driver and conformance layer for the execution Loop. The new driver helpers exercise the Loop through its public Advance, Deliver, and recovery-facing boundaries rather than reaching into reducer implementation details.

Design

The driver separates three responsibilities that are easy to conflate in a Run test: advancing persisted state to a quiescent point, observing dispatched effect keys, and delivering terminal outcomes back through the Loop. Model and tool paths are driven through the same contract, while the driver-specific helpers make the relevant setup and outcome sequencing explicit. Recovery helpers cover Runs that already contain Executing targets and therefore must not silently redispatch or settle them as if the current process owned the original attempt.

The responder abstractions model the Executor boundary used by conformance scenarios. They can validate assignments before a start barrier, accept dispatches by stable key, return outcomes separately, and represent retryable, unknown, or terminal responses. Loop helpers preserve the important invariant that a start fact is committed before an external effect is offered, and that a dispatch whose result is unknown leaves the target Executing for reconciliation.

The driver also makes observation boundaries visible: committed facts are emitted as committed events, while model deltas, reasoning deltas, tool progress, and reset markers remain provisional. This keeps tests focused on the durable protocol rather than on a particular transport or worker implementation.

Testing

The added conformance driver and loop/recovery responder helpers are test infrastructure. They provide reusable scenarios for the later behavior suites without asserting additional production semantics in this branch.

@Fodesu
Fodesu added this pull request to stack #105 October 3, 2026 12:27
@Fodesu Fodesu changed the title feat/agent runtime core 17 loop conformance feat(agentcore): add Turn driver and loop recovery integration Oct 3, 2026
@Fodesu
Fodesu force-pushed the feat/agent-runtime-core-17-loop-conformance branch from 3d56088 to 26e67c3 Compare October 3, 2026 14:43
@Fodesu
Fodesu marked this pull request as ready for review October 3, 2026 14:48
@Fodesu
Fodesu removed this pull request from stack #105 October 3, 2026 16:13
@Fodesu
Fodesu added this pull request to stack #107 October 3, 2026 16:16
@Fodesu
Fodesu removed this pull request from stack #107 October 3, 2026 16:34
@Fodesu
Fodesu added this pull request to stack #108 October 3, 2026 16:37
@Fodesu
Fodesu removed this pull request from stack #108 October 3, 2026 16:51
@Fodesu
Fodesu added this pull request to stack #110 October 3, 2026 16:55
@Fodesu
Fodesu force-pushed the feat/agent-runtime-core-17-loop-conformance branch from 26e67c3 to 38e1dbd Compare October 3, 2026 17:04
@Fodesu
Fodesu force-pushed the feat/agent-runtime-core-17-loop-conformance branch from 38e1dbd to c60737b Compare October 3, 2026 17:11
@Fodesu
Fodesu merged commit f5529f7 into main Oct 3, 2026
4 checks passed
@Fodesu
Fodesu deleted the feat/agent-runtime-core-17-loop-conformance branch October 5, 2026 07:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0