Skip to content

[Codex] Run persisted workflow Test Runs on Built-in Actor Foundation - #6046

Merged
sfmskywalker merged 25 commits into
mainfrom
agent/codex/6035-kernel-direct-test-runs
Nov 27, 2026
Merged

sfmskywalker merged 25 commits into
mainfrom
agent/codex/6035-kernel-direct-test-runs

Conversation

@sfmskywalker

Copy link
Copy Markdown
Member

Part of #4229. Tracks #6035 and supports the installed draft-test journey in #5633.

Route persisted draft and saved-version Test Runs through Built-in Actor Foundation in the private qualification composition. Keep the exact draft or version material, tenant and partition, expiring Test Run scope, standard run details and Stop, and isolation from published starts and lists.

  • Use the existing driver selections for named Event, HTTP, Timer and Cron. Timer and Cron fire once in the selected Test Run. Scoped HTTP keeps exact run identity, authored responses and timeouts, and same-target replay.
  • Inspect and deliver manual named events at a committed wait on the exact actor. The resume and idempotent receipt commit together. A second Test Run with the same local wait identifier stays independent.
  • Record the issued actor and executable pin under the same Runtime scope fence. Stop and expiry use selected provider operations.

The stock composition retains its previous activation setting. The private dispatcher covers persisted execution. Ephemeral and attached-child Test Run behavior, the production activation and the removal of the old dispatch and read dependencies remain follow-up work. The installed proof uses isolated staged packages, with the old packages present and zero legacy execution-state rows on both providers. Qualification with those packages removed belongs to the removal composition.

@coderabbitai

coderabbitai Bot commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@sfmskywalker sfmskywalker mentioned this pull request Nov 27, 2026
30 of 35 tasks
@sfmskywalker

Copy link
Copy Markdown
Member Author

[Codex] Qualified the draft head 3f52a44a5dd11afecef530da5eb14ee3a9ab4799 on main 5a473ba624b688a0974c7f4a21713b4838cdba4a. The standard Release build completed with zero errors. Installed SQLite and PostgreSQL 17 ran the Foundation Host package fixture from d6640c49f514575fa00d7d7f336be512ee3b4195 with verified replacement assembly hashes. One local feature source enabled the private path for these runs.

  • Both providers ran Native Sequence and Flowchart scoped Event starts with and without a payload. Manual delivery resumed the selected wait, reported AlreadyDelivered on replay, rejected changed data and left a peer Test Run with the same local wait ID waiting.
  • Both providers ran scoped Native and Flowchart HTTP with authored 201 and the exact run link, replay on that run and a 409 for changed data. They also ran a held response followed by Stop, an authored 408 followed by Stop of the issued actor, and background 202 on Flowchart.
  • Timer and Cron fired once. Each provider had zero legacy execution-state rows, zero recurring schedule roots and a clean shell drain. The main-integrated predecessor 86b1adee121e96e715c086429363fc4bc5c7eccf passed both focused hosted scope and expiry checks. Earlier installed direct draft and saved-version runs covered Native, Flowchart and Stop through the standard Publishing and Runtime routes.

The exact installed witness includes the old packages. K14 still requires the default installed composition with the old dispatch and execution-state dependencies removed, plus the following retained Test Run cases.

The stock activation remains off. Publishing options and driver discovery, TestRun scope and target records, and the standard routes carry forward. Legacy start dispatch, exact-test state reads, bookmark resume, root cancellation and the response-instruction fallback can be removed from the installed composition once those paths are qualified.

@sfmskywalker

Copy link
Copy Markdown
Member Author

[Codex] The first source review found that a Runtime pin could outlive an uncommitted preparation and prevent another start in the same scope. Installed SQLite and PostgreSQL 17 passed the correction at 7d8574614b8b332b82211f5888b80d86f851e502. Each proved that a competing request cannot replace the live preparation, that the prior actor never appeared, that an exact disarm enables one replacement, and that replay returns the committed replacement actor. The Runtime transaction compares the observed binding while rechecking the open scope and selected source.

The remaining review work is isolated store protocol admission, the shared Event Flowchart correction, manual delivery versus closure and control recovery from durable state. Stock tenant compatibility is restored locally.

…el-direct-test-runs

# Conflicts:
#	essentials/src/ActorFoundation/BuiltIn/Sqlite/SqliteDirectRequests.cs
#	essentials/src/ActorFoundation/BuiltIn/Sqlite/SqliteEmbeddedReads.cs
#	essentials/src/ActorFoundation/BuiltIn/Store/EntityFrameworkCore/EfStore.RootSelf.cs
#	essentials/src/ActorFoundation/BuiltIn/Store/EntityFrameworkCore/EfStore.Versions.cs
#	essentials/src/ActorFoundation/BuiltIn/Store/EntityFrameworkCore/RootScheduleOwnerMode.cs
#	essentials/src/Workflows/Runtime/KernelHosting/KernelShellRuntime.cs
#	essentials/src/Workflows/Runtime/KernelHosting/KernelShellStorage.cs
#	essentials/src/Workflows/Runtime/KernelHosting/WorkflowsRuntimeKernelHostingFeature.cs
#	essentials/tests/ActorFoundation/Native/Run/ProfileCapabilityChecks.cs
#	essentials/tests/Workflows/Runtime/KernelHost/Tests/KernelPublishedExecuteTests.cs
@sfmskywalker

Copy link
Copy Markdown
Member Author

[Codex] Exact draft head a968b4ad36c25caf61025658cab607c34258f7c5 passed the two review corrections and local qualification. The scope write now serializes concurrent named Event deliveries while rechecking the exact binding and expiry. The new expiry rule applies only to the authorized isolated run. Legacy Get and Stop still work while the legacy presentation exists.

The concurrent delivery suite passed 8/8, the Publishing suite passed 76/76, and the previous binaries reproduced the repaired failures in their targeted controls. Packaged SQLite and PostgreSQL both verified actual restart, exact wait delivery and replay, Stop, prepared-scope cleanup, bounded held HTTP replay, clean drain and no legacy execution-state rows on the private path. Independent review covered protocol isolation, replay and lifecycle, and cleared both corrections. This draft will reconcile and repeat its installed checks after #6053 because the PRs share hosting files.

@sfmskywalker

Copy link
Copy Markdown
Member Author

[Codex] Exact reconciled head 2895a724e25b6c74b411699ab77af7bbaa6b9410 passed two independent reviews. The installed host keeps shared 36 Inline and Event serving. Private 131 keeps its separate store marker and provider definitions, and both normal hosts refused actual private stores.

Local qualification passed 8 hosted cases covering private TestRuns, shipped standard Execute and K9, shipped Ephemeral, and shipped authored Event on SQLite and PostgreSQL. The Publishing suite passed 76 tests. Both composed packages passed restart, exact wait delivery and replay, Stop, and held HTTP replay with bounded response retention and clean owner drain. Private TestRuns wrote zero legacy execution-state rows. Ephemeral TestRun and isolated attached-child support remain separate K14 work.

@sfmskywalker
sfmskywalker marked this pull request as ready for review November 27, 2026 18:28
@sfmskywalker

Copy link
Copy Markdown
Member Author

[Codex] Both independent reviews and the recorded local qualification cleared 2895a724e25b6c74b411699ab77af7bbaa6b9410. Current main has the exact qualified base tree. I am using Sipke’s head-matched admin-merge instruction for this program.

@sfmskywalker
sfmskywalker merged commit 1afda6c into main Nov 27, 2026
1 check passed
@sfmskywalker
sfmskywalker deleted the agent/codex/6035-kernel-direct-test-runs branch November 27, 2026 18:28
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