Merge current V3 PTC vocabulary into system-prompt representation

Compose the shared release branch PTC rename with the structural system-head migration in the existing V2-to-V3 stage. Audit source payloads and remap local coordinates before renaming dispatch vocabulary and owned plugin attribution; retain original message identities and generation-qualified references. Native V3 validation combines the same system and PTC lifecycle semantics through a private released-validation view.

Reuse the V3 row-admission owner in current JSONL scanning before recoverable-tail suppression, so malformed rows cannot hide retired required PTC tags or header.system. The new corruption-prefix regressions and all173 existing JSONL scanner tests pass. Combined migration/catalog/persistence suite:300 tests; executable V3 migration source has100% coverage. No released generation, prior migration implementation, shared release branch, benchmark or CI workflow is modified by this integration.
This commit is contained in:
Tianyi Cui
2026-09-06 21:33:35 +08:00
92 changed files with 1143 additions and 298 deletions
@@ -705,13 +705,13 @@
}
},
{
"type": "tool/code-dispatch-start",
"type": "tool/ptc-dispatch-start",
"seq": 30,
"time": 0,
"data": {
"rootCallId": "advanced-code",
"parentCallId": "advanced-code",
"subCallId": "advanced-code:code:1",
"subCallId": "advanced-code:ptc:1",
"name": "snapshot_double",
"arguments": {
"value": 21
@@ -719,13 +719,13 @@
}
},
{
"type": "tool/code-dispatch",
"type": "tool/ptc-dispatch",
"seq": 31,
"time": 0,
"data": {
"rootCallId": "advanced-code",
"parentCallId": "advanced-code",
"subCallId": "advanced-code:code:1",
"subCallId": "advanced-code:ptc:1",
"name": "snapshot_double",
"arguments": {
"value": 21
@@ -2453,13 +2453,13 @@
"payload": {
"sessionId": "{{parent}}",
"event": {
"type": "tool/code-dispatch-start",
"type": "tool/ptc-dispatch-start",
"seq": 30,
"time": 0,
"data": {
"rootCallId": "advanced-code",
"parentCallId": "advanced-code",
"subCallId": "advanced-code:code:1",
"subCallId": "advanced-code:ptc:1",
"name": "snapshot_double",
"arguments": {
"value": 21
@@ -2473,13 +2473,13 @@
"payload": {
"sessionId": "{{parent}}",
"event": {
"type": "tool/code-dispatch",
"type": "tool/ptc-dispatch",
"seq": 31,
"time": 0,
"data": {
"rootCallId": "advanced-code",
"parentCallId": "advanced-code",
"subCallId": "advanced-code:code:1",
"subCallId": "advanced-code:ptc:1",
"name": "snapshot_double",
"arguments": {
"value": 21
@@ -29,8 +29,8 @@
{"type":"session-log-deepseek/delivery-accepted","data":{"sessionId":"{{parent}}","sessionFormatVersion":3,"throughSeq":26}}
{"type":"assistant/message","data":{"turn":1,"step":3,"message":{"role":"assistant","content":[{"type":"tool-call","id":"advanced-code","name":"run_code","arguments":"{\"code\": \"return await tools.snapshot_double({ value: 21 })\", \"description\": \"Run the temporary Plugin tool\"}"}],"source":{"kind":"model","provider":"deepseek-official","model":"smoke-model"},"id":"{{messageId}}"},"usage":{"inputTokens":3,"outputTokens":3,"totalTokens":6},"stream":[{"type":"chunk","time":0,"chunk":{"type":"block-start","index":0,"blockType":"tool-call"}},{"type":"tool-call-chunks","time0":0,"index":0,"dt":[],"id":"advanced-code","name":"run_code","args":["{\"code\": \"return await tools.snapshot_double({ value: 21 })\", \"description\": \"Run the temporary Plugin tool\"}"]},{"type":"chunk","time":0,"chunk":{"type":"block-end","index":0,"block":{"type":"tool-call","id":"advanced-code","name":"run_code","arguments":"{\"code\": \"return await tools.snapshot_double({ value: 21 })\", \"description\": \"Run the temporary Plugin tool\"}"}}},{"type":"chunk","time":0,"chunk":{"type":"usage","usage":{"inputTokens":3,"outputTokens":3,"totalTokens":6}}},{"type":"chunk","time":0,"chunk":{"type":"finish","reason":{"kind":"tool-calls"}}}]},"surfaceOp":"append"}
{"type":"tool/call","data":{"turn":1,"step":3,"callId":"advanced-code","name":"run_code","arguments":"{\"code\": \"return await tools.snapshot_double({ value: 21 })\", \"description\": \"Run the temporary Plugin tool\"}"}}
{"type":"tool/code-dispatch-start","data":{"rootCallId":"advanced-code","parentCallId":"advanced-code","subCallId":"advanced-code:code:1","name":"snapshot_double","arguments":{"value":21}}}
{"type":"tool/code-dispatch","data":{"rootCallId":"advanced-code","parentCallId":"advanced-code","subCallId":"advanced-code:code:1","name":"snapshot_double","arguments":{"value":21},"isError":false,"content":[{"type":"text","text":"42"}]}}
{"type":"tool/ptc-dispatch-start","data":{"rootCallId":"advanced-code","parentCallId":"advanced-code","subCallId":"advanced-code:ptc:1","name":"snapshot_double","arguments":{"value":21}}}
{"type":"tool/ptc-dispatch","data":{"rootCallId":"advanced-code","parentCallId":"advanced-code","subCallId":"advanced-code:ptc:1","name":"snapshot_double","arguments":{"value":21},"isError":false,"content":[{"type":"text","text":"42"}]}}
{"type":"tool/result","data":{"turn":1,"step":3,"message":{"source":{"kind":"tool","callId":"advanced-code"},"content":[{"type":"tool-result","toolCallId":"advanced-code","content":[{"type":"text","text":"42"}],"isError":false}],"role":"user","id":"{{messageId}}"}},"sourceEventSeqs":[29],"surfaceOp":"append"}
{"type":"step/end","data":{"turn":1,"step":3}}
{"type":"step/start","data":{"turn":1,"step":4}}