Repository navigation
fix(semantics): preserve direct promise ownership boundaries - #758
Merged
morluto merged 1 commit intoOct 6, 2026
Merged
Conversation
Signed-off-by: Rudy Celekli <[email protected]>
2 of 17 tasks
Owner
|
Reviewed: requiring the promise node itself as direct operand for assignment/await/return/chaining/aggregation ownership is correct — stops leakage through consume(Promise.resolve(1)) while return-await still hits direct AwaitExpression first. isUnmodeledCall boundary and direct-receiver/aggregate checks match bounded static-recovery scope. 14 domain + 4 graph cases cover transparency and negatives. APPROVE, no comments. |
Owner
|
Thank you! Squash-merged. Acknowledged: tight ownership boundary with strong domain + graph coverage. Appreciate the work. |
8 tasks done
darsrc
pushed a commit
to darsrc/rea
that referenced
this pull request
Oct 10, 2026
…#758) Signed-off-by: Rudy Celekli <[email protected]>
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
Preserve the direct value boundary when recovering static Promise ownership. A Promise nested inside
consume(Promise.resolve(1))previously acquired ownership from the enclosing assignment, await, or return, even whenconsumereturns a scalar. That produced resolvedowns,awaits, orreturns-taskrelations for the wrong value.Assignment, await and return now require the Promise operation itself after transparent syntax wrappers. Chaining requires a direct receiver, and aggregation requires a direct array element. Intervening calls remain unknown. This is bounded static syntax recovery, not a claim of complete transitive Promise ownership.
Verification
analyze-javascript-applicationover eight local source scenarios: the three indirect ownership cases become unknown; direct assignment, await, return, chaining and aggregation remain correct.consume(Promise.resolve(1))fixture returns scalar 7.npm run build:cached,npm run check,npm run check:fastpass with 124 lint warnings and zero errors.Codex assisted on behalf of @rudycelekli. Signed DCO source received independent review before publication. Hosted CI is tracked separately.