release: v2.2.2 V_safe JSON integer refuse on foreign bridge

Align host json encode/decode with Lean ForeignJSON: refuse OOD integers
instead of silent Node distortion; keep decimal-string BigInt author path.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
cflmyandCursor committed 2026-11-01 09:43:51 +08:00
1 parent 58791fc7d9
commit 82c8d78fd3
21 files changed
+449 -17

No files matched your search

@@ -0,0 +1,24 @@
---
markup: occlusion
title: foreign V_safe refuse after Python arithmetic
import:
foreign: lib/foreign.mq.md
json: lib/json.mq.md
---
# main
**py = > foreign.session_open lang="python" timeout=30**
`emit` =
```python
import json
n = 2**53 - 1
print(json.dumps({"n": 2 * n}))
```
**raw = > foreign.session_eval id=`py` code=`emit`**
**stdout = > json.get value=`raw` key="stdout"**
**payload = > json.parse text=`stdout`**
**> print text=`payload`**
**> foreign.session_close id=`py`**