8000 test(agentcore): cover executor worker behavior by Fodesu · Pull Request #102 · felinics/twilight · GitHub
[go: up one dir, main page]

Skip to content

test(agentcore): cover executor worker behavior - #102

Merged
Fodesu merged 2 commits into
feat/agent-runtime-loop-executor-testsfrom
feat/agent-runtime-executor-tests
Oct 3, 2026
Merged

Fodesu merged 2 commits into
feat/agent-runtime-loop-executor-testsfrom
feat/agent-runtime-executor-tests

Conversation

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

Summary

Adds executor behavior tests for the execution store, worker supervision, progress, assignment replay, cancellation, and terminal outcome contracts.

Coverage

The executor tests exercise idempotent dispatch by AssignmentKey, validation before acceptance, terminal outcome reads, attachment states, cancellation, abort, and recovery. They verify that a repeated Assignment does not create a second logical effect, that terminal state remains readable after the worker exits, and that abort closes a missing execution before a late dispatch can start it.

Progress tests cover bounded provisional frames, generation resets, sequence ordering, end markers, and the distinction between progress loss and outcome loss. Supervision tests cover worker replacement, orphaned records, adoption/recovery, retryable and unknown dispatch responses, and notice delivery across the worker lifecycle. Settlement notifications are treated as wake-ups: the expected result is reread from the execution port rather than reconstructed from the notice.

The suite checks model and tool outcome variants separately, including known failures, unknown tool effects, cancellation, malformed/provider failures, and stable failure classification. It also exercises replay and retention rules so a worker restart cannot silently turn an existing external effect into a fresh attempt.

These tests target the executor contract directly and keep provider implementations out of the assertion path. They are intended to validate both local workers and later transport-backed adapters against the same lifecycle invariants.

Scope

This PR is test-only and adds no executor production code.

@Fodesu
Fodesu added this pull request to stack #105 October 3, 2026 12:27
@Fodesu Fodesu changed the title feat/agent runtime executor tests test(agentcore): cover executor worker behavior Oct 3, 2026
@Fodesu
Fodesu force-pushed the feat/agent-runtime-executor-tests branch 2 times, most recently from 2a110c6 to 7fe95bf Compare October 3, 2026 14:55
@Fodesu
Fodesu force-pushed the feat/agent-runtime-executor-tests branch from 7fe95bf to 2b34e11 Compare October 3, 2026 15:35
@Fodesu
Fodesu force-pushed the feat/agent-runtime-executor-tests branch from 2b34e11 to 06eb7cf Compare October 3, 2026 15:47
@Fodesu
Fodesu force-pushed the feat/agent-runtime-executor-tests branch from 06eb7cf to 84ebc7a Compare October 3, 2026 16:05
@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 force-pushed the feat/agent-runtime-executor-tests branch from 84ebc7a to 1e5765e Compare October 3, 2026 16:37
@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 force-pushed the feat/agent-runtime-executor-tests branch from 1e5765e to cdeff57 Compare October 3, 2026 16:55
@Fodesu
Fodesu added this pull request to stack #110 October 3, 2026 16:55
@Fodesu
Fodesu force-pushed the feat/agent-runtime-executor-tests branch from cdeff57 to 072f79c Compare October 3, 2026 17:04
@Fodesu
Fodesu force-pushed the feat/agent-runtime-executor-tests branch from 072f79c to 0c85f16 Compare October 3, 2026 17:11
@Fodesu
Fodesu marked this pull request as ready for review October 3, 2026 17:20
@Fodesu
Fodesu merged commit 1a78ef1 into main Oct 3, 2026
8 checks passed
@Fodesu
Fodesu deleted the feat/agent-runtime-executor-tests branch October 5, 2026 07:37
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