Repository navigation
feat: add invocation-scoped task lifecycle foundation - #731
Open
zhongkechen wants to merge 16 commits into
Open
zhongkechen wants to merge 16 commits into
zhongkechen wants to merge 16 commits into
Conversation
zhongkechen
added this pull request to stack #732
September 24, 2026 23:12
3 tasks done
zhongkechen
force-pushed
the
feature/lmi-invocation-scope
branch
2 times, most recently
from
September 25, 2026 22:20
02edc13 to
ebad82c
Compare
zhongkechen
marked this pull request as ready for review
September 25, 2026 22:21
zhongkechen
had a problem deploying
to
ai-pr-review-runtime
September 25, 2026 22:23 — with
GitHub Actions
Error
This comment has been minimized.
This comment has been minimized.
zhongkechen
force-pushed
the
feature/lmi-invocation-scope
branch
from
September 25, 2026 22:58
092a4a2 to
d81fee3
Compare
This comment has been minimized.
This comment has been minimized.
zhongkechen
force-pushed
the
feature/lmi-invocation-scope
branch
from
September 29, 2026 17:14
d81fee3 to
18759d5
Compare
zhongkechen
force-pushed
the
feature/lmi-invocation-scope
branch
from
September 29, 2026 17:39
18759d5 to
fba3f18
Compare
zhongkechen
had a problem deploying
to
ai-pr-review-runtime
September 29, 2026 17:45 — with
GitHub Actions
Failure
zhongkechen
force-pushed
the
feature/lmi-invocation-scope
branch
from
September 29, 2026 17:49
fba3f18 to
73b4b16
Compare
zhongkechen
had a problem deploying
to
ai-pr-review-runtime
September 29, 2026 18:29 — with
GitHub Actions
Error
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
zhongkechen
force-pushed
the
feature/lmi-invocation-scope
branch
from
September 29, 2026 22:12
94b2803 to
bc29489
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
10 tasks
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Contributor
Codex AI reviewNo actionable findings in the PR changes. Residual test risk: concurrency, cancellation, and replay behavior were reviewed statically; tests were not executed. Reviewed commit |
This branch was successfully deployed
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.
Issue Link, if available
Foundation for #726. Stacked on #728 and targeting
test/lmi-cloud-lifecycle; retarget tomainafter that prerequisite lands. Invocation deadlines and bounded cleanup remain in #733; opt-in per-invocation executors remain in #735.Description
Give each invocation an
ExecutionManager-owned task lifecycle that coordinates task submission, operation admission, polling, and checkpoint shutdown. Tasks register before dispatch and track logical completion separately from their interruptible handle and actual exit. The branch incorporates upstream main67bad28cd9ef1b0808bed193f8a15be75ce457edthrough #728.FutureTaskbefore executor dispatch so a saturatedCallerRunsPolicytask can be interrupted while submission is still on the stack. Atomically select result publication or cancellation: a selected success/failure cannot be overtaken by cancellation, and cancellation-winning workers cannot publish a competing result. Physical cancellation precedes logical cancellation; registry removal precedes the actual exit signal.DRAINING, already-admitted child/map/parallel work can register and run descendants, including delayed nested steps. Root and unrelated new work are rejected. Exact manager ownership prevents cross-invocation leakage on reused or inline executor threads.admissionLock; shutdown waits for admitted enqueue calls before its final flush. An interrupted drain staysDRAININGso subsequent cleanup can persist results from already-admitted work for replay.Testing
Final head
d9b251c5003c03e997df6d07dd05116441509a88also includes the reviewed #728 harness-only follow-up.mvn -o -B clean spotless:apply verify: all ten modules, 3,001 tests passed, 34 conditional/cloud skips, zero failures/errors. This includes the public delayed-descendant FLAT/NESTED map/parallel replay controls and upstream lifecycle, token-revocation, worker-scope, and large-result controls.15d8eb2c0053cd625b30679993330e6f8f0b58da: all 77 focused Java 17 lifecycle/admission/manager/replay controls and 11 Java 25 lifecycle controls passed. The cancellation-observer, caller-runs, late-result replay, and gated success/failure publication regressions failed on their pre-fix versions and pass after their fixes.exit()signals rather than logical result completion. Formatting andgit diff --checkpass. Current-head CI is tracked separately.Checklist
test/lmi-cloud-lifecycleBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.