Implement flow-sensitive SELECT narrowing for TYPEOF guards in AND expressions#14
Merged
starseeker merged 7 commits intotreatfrom Feb 7, 2026
Merged
Conversation
…ookup) Co-authored-by: starseeker <238416+starseeker@users.noreply.github.com>
Co-authored-by: starseeker <238416+starseeker@users.noreply.github.com>
Co-authored-by: starseeker <238416+starseeker@users.noreply.github.com>
Co-authored-by: starseeker <238416+starseeker@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add flow-sensitive narrowing for AP242 pattern
Implement flow-sensitive SELECT narrowing for TYPEOF guards in AND expressions
Feb 7, 2026
Owner
|
@copilot there is an entity folder with a massive number of files - please clean this up. |
These files were accidentally committed in 6d1bc20. They are build artifacts from exp2cxx schema compilation and should not be in the repository. The directories are already in .gitignore. Co-authored-by: starseeker <238416+starseeker@users.noreply.github.com>
Author
Owner
|
@copilot we still have a schema.h in the repository that says it was generated by exp2cxx |
This file was generated by exp2cxx in commit 6d1bc20 and should not be tracked in the repository. Co-authored-by: starseeker <238416+starseeker@users.noreply.github.com>
Author
starseeker
approved these changes
Feb 7, 2026
starseeker
added a commit
that referenced
this pull request
Feb 9, 2026
…pressions (#14) Implement flow-sensitive narrowing - ap242 schema can now be read --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: starseeker <238416+starseeker@users.noreply.github.com>
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.
Flow-Sensitive Narrowing Implementation - COMPLETE ✓
Implementation complete! Flow-sensitive narrowing allows QUERY expressions on SELECT-typed variables when guarded by TYPEOF checks in AND expressions.
Changes Summary:
Acceptance Criteria Met:
✅ AP242 schema parses without PE056 errors
✅ No unsafe QUERY acceptance
✅ No OR/NOT refinement leakage
✅ Nested AND support
✅ All build artifacts excluded from repository
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.