refactor: extract run admission runtime - #133
Merged
Merged
Conversation
ByBrawe
marked this pull request as ready for review
August 21, 2026 06:20
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.
Summary
Continue the V1 executor modularization by moving due selection and pre-dispatch admission policy out of
runtime/executor.js.runtime/run-admission.jsfor due-job selection, max-runtime stop, stop-file stop,--until, and preflight safe/failure handling;Behavior-preserving source modularization only; no runtime state schema or user-visible command behavior change. The committed generated
src/index.jsremains behavior-equivalent and unchanged in this source-only slice; the Bundle Gate regenerated the exact source head and exercised that generated bundle against real OpenCode on Linux and Windows.Verification
Exact head
d1203ea998267731014ab4e9c0340d9911d42729:testjob. Its first attempt hit a timing-sensitive comprehensive-harness assertion; Windows, both compatibility lanes, both real-host lanes, and the generated-bundle regression suite were already green. The Ubuntu retry passed unchanged.The first branch head also exposed a Windows-only path expectation in the new stop-file unit fixture; the fixture was corrected to compare against the platform-resolved path. No production runtime change was needed for that failure.