8000 test(agentcore): add Run integration and regression coverage by Fodesu · Pull Request #98 · felinics/twilight · GitHub
[go: up one dir, main page]

Skip to content

test(agentcore): add Run integration and regression coverage - #98

Merged
Fodesu merged 4 commits into
feat/agent-runtime-core-23-test-supportfrom
feat/agent-runtime-integration-tests
Oct 3, 2026
Merged

Fodesu merged 4 commits into
feat/agent-runtime-core-23-test-supportfrom
feat/agent-runtime-integration-tests

Conversation

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

Summary

Adds integration coverage for the assembled agent runtime. These tests exercise the Run machine, canonical values, reconciliation, regression cases, and wire helpers together rather than testing each reducer or adapter in isolation.

Coverage

machine_test.go drives persisted Run commands through preparation, model execution, tool execution, settlement, terminal states, and invalid transitions. The scenarios check that command identities replay safely, stale bases are rejected, effect identities bind the correct Executing target, and model/tool outcomes cross the Loop boundary in the correct direction.

Reconciliation tests combine Run state with executor observations and verify the distinction between active, terminal, orphaned, missing, and aborted executions. They cover disposal and recovery behavior without treating a missing observation as proof when an executor is still authoritative. Canonical tests freeze the stable representation used for request, result, and identity digests; wire helpers keep test setup aligned with the production envelope and codec rules.

Regression cases document previously fragile boundaries around terminal handling, effect settlement, unknown outcomes, and recovery. The tests intentionally use the public stores, command envelopes, and projection-facing helpers so failures identify contract drift at the integration seam instead of merely exposing an implementation detail.

Scope

This is a test-only PR. It adds no production event types or runtime behavior; its purpose is to establish executable coverage for the already-added core modules before storage and application adapters are validated.

@Fodesu
Fodesu added this pull request to stack #105 October 3, 2026 12:27
@Fodesu Fodesu changed the title feat/agent runtime integration tests test(agentcore): add Run integration and regression coverage Oct 3, 2026
@Fodesu
Fodesu force-pushed the feat/agent-runtime-integration-tests branch from 6451d18 to 13d7d3f Compare October 3, 2026 14:43
@Fodesu
Fodesu force-pushed the feat/agent-runtime-integration-tests branch from 13d7d3f to 09b2878 Compare October 3, 2026 14:55
@Fodesu
Fodesu force-pushed the feat/agent-runtime-integration-tests branch 2 times, most recently from 56f8e6b to 799be4b Compare October 3, 2026 15:47
@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-integration-tests branch from 48a89db to 654d484 Compare October 3, 2026 16:37
@Fodesu
Fodesu changed the base branch from feat/agent-runtime-app to feat/agent-runtime-core-22-owner 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-integration-tests branch from 654d484 to af19dbd Compare October 3, 2026 16:54
@Fodesu
Fodesu changed the base branch from feat/agent-runtime-core-22-owner to feat/agent-runtime-core-23-test-support October 3, 2026 16:54
@Fodesu
Fodesu added this pull request to stack #110 October 3, 2026 16:55
@Fodesu
Fodesu force-pushed the feat/agent-runtime-integration-tests branch from af19dbd to 3c16f1d Compare October 3, 2026 17:04
@Fodesu
Fodesu force-pushed the feat/agent-runtime-integration-tests branch from 3c16f1d to 1e27fe4 Compare October 3, 2026 17:11
@Fodesu
Fodesu marked this pull request as ready for review October 3, 2026 17:14
@Fodesu
Fodesu merged commit bbfad93 into main Oct 3, 2026
8 checks passed
@Fodesu
Fodesu deleted the feat/agent-runtime-integration-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