Skip to content

Fix terminal temporary array return typing#85

Merged
luisleo526 merged 1 commit into
mainfrom
fix/terminal-array-temporary-return
Jul 19, 2026
Merged

Fix terminal temporary array return typing#85
luisleo526 merged 1 commit into
mainfrom
fix/terminal-array-temporary-return

Conversation

@luisleo526

Copy link
Copy Markdown
Contributor

Summary

  • infer exact primitive UDF return types for terminal get calls on direct built-in array temporaries, including positional, mixed, keyword, copy, and bounded zero-argument forward-UDF forms
  • reconcile forward return metadata without re-visiting effectful AST nodes, and reject recursion reached through the new temporary-reader edge
  • recover primitive UDF element types for array.from vectors and deduplicate repeated analysis of one stateful FuncCall AST while preserving real caller clones
  • retain fail-closed behavior for arbitrary receivers, argument-bearing forward calls, keyword array.copy(id=...), nested temporary .copy(), and forward calls outside the direct array.from element shape

Validation

  • focused compile suite: 59/59
  • full native pytest: exit 0, 2,129 collected nodes
  • Pyodide parity: 277/277 fixtures, 263 accepted plus 14 expected errors
  • frozen source differentials: historical 666 and current 812 both have zero output/error diffs
  • exhaustive N=3 causal matrix: 8/8 cells, 240/240 case evaluations, all-off and publication gates true, GO with zero violations; fingerprint 849c91ec934e59e28540e1d92406af48428428ba2f99c5f05753324beba67f0e
  • fresh forced-no-cache scraper gate on current public main: 416/416 accounted, 409 OK plus the same 7 expected non-OK rows, 0 UP / 0 DOWN
  • scoreboard unchanged at 354 Excellent / 47 Strong / 4 Moderate / 2 Weak; all 410 existing engine tapes and all 410 shared generated C++ outputs are byte-identical

No TradingView source, tape, threshold, grader, or strategy-specific behavior changed.

@luisleo526
luisleo526 marked this pull request as ready for review July 19, 2026 18:08
@luisleo526
luisleo526 merged commit c0fd2cf into main Jul 19, 2026
9 checks passed
@luisleo526
luisleo526 deleted the fix/terminal-array-temporary-return branch July 19, 2026 18:09
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