Repository navigation
feat(runtime): manage member-authored child runs - #244
Merged
Merged
Conversation
KaiEureka
force-pushed
the
codex/shared-model-routing
branch
from
October 24, 2026 03:54
9f83918 to
68206f6
Compare
KaiEureka
force-pushed
the
codex/compose-authored-isolation
branch
from
October 24, 2026 04:10
adf8d9d to
2789b1d
Compare
This was referenced Oct 24, 2026
KaiEureka
marked this pull request as ready for review
October 24, 2026 05:00
KaiEureka
force-pushed
the
codex/shared-model-routing
branch
from
October 24, 2026 05:17
68206f6 to
aefc373
Compare
KaiEureka
force-pushed
the
codex/compose-authored-isolation
branch
from
October 24, 2026 05:22
04189a4 to
936f419
Compare
KaiEureka
force-pushed
the
codex/shared-model-routing
branch
from
October 24, 2026 05:40
aefc373 to
b06d963
Compare
KaiEureka
force-pushed
the
codex/compose-authored-isolation
branch
from
October 24, 2026 05:40
936f419 to
683968c
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.
Adds
manage_workflowfor Team members that write their own Workflow source and execute it in their current environment. The tool provides launch, status, wait, stop and result operations, owns child lifetime and reconciles usage with the parent's available budget. Registeredrun_workflowcalls retain their existing interface.A private owned bridge connects the member's Python process to the configured host model and environment providers. This allows a member in a network-isolated container to run a new Workflow with independently isolated workers, while the host retains Docker control. Model configuration travels through stdin. Native child session records and results are saved before temporary control files and environments are reclaimed.
The implementation reuses the existing Environment, Workflow runtime, model client, request admission, cancellation and environment-pool operations. Independent review repaired internal structured-output permissions, shared budget reservations, native model metadata forwarding, concurrent file-edit ownership and cancellation accounting. Child process cancellation is separate from result and artifact persistence. Pending requests use a small index and separate payload files so several ordinary prompts do not exhaust the environment's per-file read limit.
Functional validation uses real Docker containers and loopback model servers, including completion, cancellation, late usage, model identity and retained artifacts. The final production tree passed all 13 native Docker and bridge checks, and the 69 applicable compatibility and authored-run checks passed. The default invocation skips one explicitly opt-in Docker case, which was exercised with the Docker environment enabled. The offline example also ran from a built wheel outside the checkout. Ruff, import-linter, deptry, translation checks and the proposed-commit secret scan pass. The final merge review also exercised native completion and cancellation while an unrelated container was removed. Cleanup assertions follow this run's owned container IDs, preserving leak detection alongside other Docker consumers. All final-head GitHub checks pass across Python 3.10–3.14. The Python 3.12 suite completed 9,960 passing tests with 53 skips.
An executable offline example is included at
examples/member-authored-workflow/. This is the fourth part of the runtime feature series, building on #243.