Skip to content

fix(codegen): isolate local collection scopes#75

Merged
luisleo526 merged 1 commit into
mainfrom
fix/ki48h-scoped-local-collections
Jul 18, 2026
Merged

fix(codegen): isolate local collection scopes#75
luisleo526 merged 1 commit into
mainfrom
fix/ki48h-scoped-local-collections

Conversation

@luisleo526

Copy link
Copy Markdown
Contributor

Summary

  • isolate callable-local array/map/matrix metadata by callable, block, and declaration identity instead of process-wide raw variable names
  • activate lexical collection bindings in source order, preserving outer-RHS aliases, scalar/parameter/loop shadows, persistent members, and exact element types
  • carry scoped collection context through UDF methods, tuples, drawing/header discovery, and linear request.security helper emission

Validation

  • focused lexical-scope suite: 53 passed
  • impacted compatibility suites: 163 passed, including frozen output hashes
  • adversarial loop-binder compile matrix: 9/9
  • full pinned-engine pytest: 1770 passed, 2 skipped
  • Pyodide gate: 277/277 parity
  • 666-source manifest: byte-identical to KI-48g baseline at 26ff05c3ba8a78fbc67c2be70fb08dc9b8a044362dd925149cbbd4b208040a7e (660 OK, same 6 errors)
  • exhaustive N=3 factor matrix: 8/8, publication_gate_passed=true, fingerprint a3e2b987ca923fc25b15c75395ccb2d5c75dd9948ae96c3a528940d19c942926

Follow-up

  • terminal local-array element expressions still have a pre-existing generic UDF return-type gap
  • same-raw-name persistent collections across nested helper clones still share the pre-existing state-identity limitation

@luisleo526
luisleo526 marked this pull request as ready for review July 18, 2026 00:35
@luisleo526
luisleo526 merged commit a325761 into main Jul 18, 2026
9 checks passed
@luisleo526
luisleo526 deleted the fix/ki48h-scoped-local-collections branch July 18, 2026 00:36
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