Skip to content

fix(semantic): make dependent queries safe to re-enter - #1306

Draft
lewis6991 wants to merge 1 commit into
EmmyLuaLs:mainfrom
lewis6991:rewrite-common-reentry
Draft

lewis6991 wants to merge 1 commit into
EmmyLuaLs:mainfrom
lewis6991:rewrite-common-reentry

Conversation

@lewis6991

@lewis6991 lewis6991 commented Oct 16, 2026 •

Copy link
Copy Markdown
Collaborator

Dependent queries can revisit unfinished work, causing stack overflows
or caching partial results as final answers.

Track active queries and comparisons. Keep results that depend on
unfinished work provisional so later queries can retry them. Preserve
definite comparison results. Defer conditionals with unresolved checks.

Share alias paths across dependent queries. Allow repeated aliases only
when each instance is a strict subtree of the previous one. Use work
lists for long finite alias and expression chains.

@lewis6991
lewis6991 force-pushed the rewrite-common-reentry branch 6 times, most recently from 855312a to 4528244 Compare October 16, 2026 16:57
@lewis6991
lewis6991 marked this pull request as draft October 16, 2026 23:41
Dependent queries can revisit unfinished work, overflow the stack, or
cache partial answers as final results.

Track active queries and keep dependent results provisional. Use work
lists for alias expansion, type comparison, and long expression chains.
Prove recursive structural matches separately from query re-entry, and
reject alias argument growth that cannot be shown to terminate.
@lewis6991
lewis6991 force-pushed the rewrite-common-reentry branch from 4528244 to 9f224b3 Compare October 16, 2026 23:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant