test(python): record native V3 delivery provenance

Regenerate advanced and restart expectations through the shipped macOS arm64 SEA runtime built from 0521815d45. Real delivery-accepted events now record sessionFormatVersion 3 in the five V3 logs and advanced SDK notifications. Restart result.json and requests.json regenerate identically. Preserve all five V2 predecessors byte-for-byte from b2b300f9; no production, migration, launcher, or test changes.

Evidence (macOS arm64): pnpm exec tsx scripts/build-exe-for-python-sdk.ts --targets node24-macos-arm64 passed, including the full pnpm build. file dist-exe/deepseek-harness-sdk-runtime-macos-arm64 reports Mach-O 64-bit executable arm64.

For each SCENARIO=sdk-snapshot,sdk-restart: PYTHONDONTWRITEBYTECODE=1 PYTHONPATH=python/sdk/src:python/sdk-runtime/src /Users/cty/dsh-deploy/.agents/worktrees/sp-kv-sdk-evidence/tmp/py-sdk-venv/bin/python scripts/smoke-python-runtime.py --exe dist-exe/deepseek-harness-sdk-runtime-macos-arm64 --scenario SCENARIO --update-snapshots passed; the same two commands without --update-snapshots passed.

PYTHONDONTWRITEBYTECODE=1 PYTHONPATH=python/sdk/src:python/sdk-runtime/src uv run --no-project --python /Users/cty/.local/share/uv/python/cpython-3.14.5-macos-aarch64-none/bin/python3 --with pytest --with pydantic>=2.12,<3 python -m pytest python/sdk/tests/test_smoke_model.py -q: 28 passed. Earlier helper invocations lacked pytest or SDK imports; corrected environment passed without source changes. git diff --quiet b2b300f9 -- scripts/snapshots/python-sdk-single-exe/**/*.v2.jsonl and git diff --cached --check passed.
This commit is contained in:
Tianyi Cui
2026-09-06 20:58:57 +08:00
parent 49e1050092
commit e9957a2671
6 changed files with 27 additions and 27 deletions
@@ -193,7 +193,7 @@
"time": 0,
"data": {
"sessionId": "{{parent}}",
"sessionFormatVersion": 2,
"sessionFormatVersion": 3,
"throughSeq": 12
}
},
@@ -361,7 +361,7 @@
"time": 0,
"data": {
"sessionId": "{{parent}}",
"sessionFormatVersion": 2,
"sessionFormatVersion": 3,
"throughSeq": 18
}
},
@@ -598,7 +598,7 @@
"time": 0,
"data": {
"sessionId": "{{parent}}",
"sessionFormatVersion": 2,
"sessionFormatVersion": 3,
"throughSeq": 26
}
},
@@ -797,7 +797,7 @@
"time": 0,
"data": {
"sessionId": "{{parent}}",
"sessionFormatVersion": 2,
"sessionFormatVersion": 3,
"throughSeq": 34
}
},
@@ -961,7 +961,7 @@
"time": 0,
"data": {
"sessionId": "{{parent}}",
"sessionFormatVersion": 2,
"sessionFormatVersion": 3,
"throughSeq": 40
}
},
@@ -1165,7 +1165,7 @@
"time": 0,
"data": {
"sessionId": "{{parent}}",
"sessionFormatVersion": 2,
"sessionFormatVersion": 3,
"throughSeq": 50
}
},
@@ -1396,7 +1396,7 @@
"time": 0,
"data": {
"sessionId": "{{parent}}",
"sessionFormatVersion": 2,
"sessionFormatVersion": 3,
"throughSeq": 58
}
},
@@ -1839,7 +1839,7 @@
"time": 0,
"data": {
"sessionId": "{{parent}}",
"sessionFormatVersion": 2,
"sessionFormatVersion": 3,
"throughSeq": 12
}
}
@@ -2043,7 +2043,7 @@
"time": 0,
"data": {
"sessionId": "{{parent}}",
"sessionFormatVersion": 2,
"sessionFormatVersion": 3,
"throughSeq": 18
}
}
@@ -2328,7 +2328,7 @@
"time": 0,
"data": {
"sessionId": "{{parent}}",
"sessionFormatVersion": 2,
"sessionFormatVersion": 3,
"throughSeq": 26
}
}
@@ -2575,7 +2575,7 @@
"time": 0,
"data": {
"sessionId": "{{parent}}",
"sessionFormatVersion": 2,
"sessionFormatVersion": 3,
"throughSeq": 34
}
}
@@ -2999,7 +2999,7 @@
"time": 0,
"data": {
"sessionId": "{{child-1}}",
"sessionFormatVersion": 2,
"sessionFormatVersion": 3,
"throughSeq": 13
}
}
@@ -3231,7 +3231,7 @@
"time": 0,
"data": {
"sessionId": "{{parent}}",
"sessionFormatVersion": 2,
"sessionFormatVersion": 3,
"throughSeq": 40
}
}
@@ -3687,7 +3687,7 @@
"time": 0,
"data": {
"sessionId": "{{child-2}}",
"sessionFormatVersion": 2,
"sessionFormatVersion": 3,
"throughSeq": 13
}
}
@@ -3950,7 +3950,7 @@
"time": 0,
"data": {
"sessionId": "{{parent}}",
"sessionFormatVersion": 2,
"sessionFormatVersion": 3,
"throughSeq": 50
}
}
@@ -4229,7 +4229,7 @@
"time": 0,
"data": {
"sessionId": "{{parent}}",
"sessionFormatVersion": 2,
"sessionFormatVersion": 3,
"throughSeq": 58
}
}