feat(project): make Work Item execution durable across providers and routines - #749
Merged
Conversation
Neonforge98
marked this pull request as draft
August 9, 2026 07:31
Member
|
CI failed - please check. |
Neonforge98
force-pushed
the
codex/durable-workitem-runs
branch
from
August 9, 2026 14:17
64b09f7 to
dc2c5ca
Compare
Neonforge98
force-pushed
the
codex/durable-workitem-runs
branch
from
August 9, 2026 14:30
dc2c5ca to
4041e2c
Compare
Neonforge98
marked this pull request as ready for review
August 9, 2026 14:42
Neonforge98
force-pushed
the
codex/durable-workitem-runs
branch
from
August 9, 2026 21:03
fcedc93 to
1558de0
Compare
This reverts commit bf98b55.
Neonforge98
force-pushed
the
codex/durable-workitem-runs
branch
from
August 10, 2026 06:21
5f4764b to
62734f9
Compare
Pre-commit hook ran. Total eslint: 0, total circular: 0
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.
Problem
Project execution could start work without a durable execution episode tying Work Items, Sessions, Routines, provider turns, and terminal accounting together. Interruptions could leave runs or routine fires active indefinitely, while a successfully finished Run could leave its Work Item in an active state with no clear review queue.
The surrounding product boundaries also had several gaps: Project-mode sessions without a linked Project treated the missing Project as missing input even though the data model supports org-level Work Items; create/update receipts were not reliable navigation surfaces; local branch builds could be confused with or replaced by a production update; and large local histories made metadata-only session changes capable of triggering unnecessary replay materialization.
Solution
/Applications/ORG2.appinstead of replacing itself, while production releases retain in-place updatingPotential risks
/Applications/ORG2.appValidation
WI-0094through a real native SDE Session; the Run finishedsucceeded, the Work Item displayedIn Review, and usage showed 59.1K tokens (58,115 input / 989 output)WI-0094,In Reviewstate, completed Session, and token summary through the UIWI-0097from a Project-mode SDE Session with no Project, without a scope question; the item persisted withproject_id = NULLand reachedIn ReviewOpen work item: WI-0097switched My Station to the correctly scoped detail showing its title, body,No linked Project,In Review, completed run, and 10.4K token usagecodex/durable-workitem-runsand SHA62734f98f439570690255e96fc1773a3690d3fef