集成:合入独立通过的异步Git准备与取消修复
This commit is contained in:
commit
7ff5475c21
4159
apps/server/evidence/slow-git/before.json
Normal file
4159
apps/server/evidence/slow-git/before.json
Normal file
File diff suppressed because it is too large
Load Diff
46
apps/server/evidence/slow-git/boundaries.json
Normal file
46
apps/server/evidence/slow-git/boundaries.json
Normal file
@ -0,0 +1,46 @@
|
||||
{
|
||||
"boundary": "真实Engine/Store/Gitea与本地Git;远端传输及模型决定为明确故障注入",
|
||||
"results": [
|
||||
{
|
||||
"mode": "cancel",
|
||||
"ok": true,
|
||||
"elapsedSeconds": 0.0072237079999999875
|
||||
},
|
||||
{
|
||||
"mode": "revise",
|
||||
"ok": true,
|
||||
"elapsedSeconds": 0.007955500000000029
|
||||
},
|
||||
{
|
||||
"mode": "head",
|
||||
"ok": true,
|
||||
"elapsedSeconds": 14.046171165999999
|
||||
},
|
||||
{
|
||||
"mode": "base",
|
||||
"ok": true,
|
||||
"elapsedSeconds": 14.069670874999996
|
||||
},
|
||||
{
|
||||
"mode": "restart",
|
||||
"ok": true,
|
||||
"elapsedSeconds": 0.012853250000000116
|
||||
},
|
||||
{
|
||||
"mode": "result",
|
||||
"ok": true,
|
||||
"queueSeconds": 5.012557792000007,
|
||||
"elapsedSeconds": 5.027085375000009
|
||||
},
|
||||
{
|
||||
"mode": "replay",
|
||||
"ok": true,
|
||||
"preparationJobs": 4
|
||||
},
|
||||
{
|
||||
"mode": "lost-assignment",
|
||||
"ok": true,
|
||||
"preparationJobs": 4
|
||||
}
|
||||
]
|
||||
}
|
||||
66
apps/server/evidence/slow-git/http/assertions.json
Normal file
66
apps/server/evidence/slow-git/http/assertions.json
Normal file
@ -0,0 +1,66 @@
|
||||
{
|
||||
"checks": [
|
||||
{
|
||||
"name": "original-slow cancel saved <=10s",
|
||||
"pass": true
|
||||
},
|
||||
{
|
||||
"name": "original-slow existing processes ended <=10s",
|
||||
"pass": true
|
||||
},
|
||||
{
|
||||
"name": "original-zero cancel saved <=10s",
|
||||
"pass": true
|
||||
},
|
||||
{
|
||||
"name": "original-zero existing processes ended <=10s",
|
||||
"pass": true
|
||||
},
|
||||
{
|
||||
"name": "cancel saved <=10s",
|
||||
"pass": true
|
||||
},
|
||||
{
|
||||
"name": "cancel no old QA start after request",
|
||||
"pass": true
|
||||
},
|
||||
{
|
||||
"name": "revise saved <=10s",
|
||||
"pass": true
|
||||
},
|
||||
{
|
||||
"name": "revise no old QA start after request",
|
||||
"pass": true
|
||||
},
|
||||
{
|
||||
"name": "result publishToEvent <=15s",
|
||||
"pass": true
|
||||
},
|
||||
{
|
||||
"name": "result publishToCursor <=15s",
|
||||
"pass": true
|
||||
},
|
||||
{
|
||||
"name": "result-zero publishToEvent <=15s",
|
||||
"pass": true
|
||||
},
|
||||
{
|
||||
"name": "result-zero publishToCursor <=15s",
|
||||
"pass": true
|
||||
},
|
||||
{
|
||||
"name": "result-during publishToEvent <=15s",
|
||||
"pass": true
|
||||
},
|
||||
{
|
||||
"name": "result-during publishToCursor <=15s",
|
||||
"pass": true
|
||||
}
|
||||
],
|
||||
"passed": 14,
|
||||
"failed": 0,
|
||||
"coverage": {
|
||||
"publicationDuringPreparation": true
|
||||
},
|
||||
"note": "准备期间发布前置未满足不能称该路径通过;请求后启动不能冒充取消落库后启动。"
|
||||
}
|
||||
46
apps/server/evidence/slow-git/http/cancel-boundary.json
Normal file
46
apps/server/evidence/slow-git/http/cancel-boundary.json
Normal file
@ -0,0 +1,46 @@
|
||||
{
|
||||
"baseline": "007bf0988f9bb333e765ed67a0d701ece2ab169e",
|
||||
"scenario": "cancel",
|
||||
"delay": 14.0,
|
||||
"requests": {
|
||||
"dispatch": {
|
||||
"sent": 2.156518125,
|
||||
"end": 2.246084916,
|
||||
"error": "HTTP Error 400: Bad Request"
|
||||
},
|
||||
"action": {
|
||||
"sent": 2.236509083,
|
||||
"end": 2.249047791,
|
||||
"status": 200,
|
||||
"body": "{\"task\":{\"id\":\"slow-start\",\"title\":\"受控慢启动取消核验\",\"goal\":\"仅无害故障注入\",\"acceptance\":\"不调用模型\",\"status\":\"cancelled\",\"revision\":1,\"repository\":\"https://example.invalid/o/r\",\"targetBranch\":\"qa\",\"baseSha\":\"7fc156d144f8e6056191b52b1e087cc57dce7dad\",\"headSha\":\"7fc156d144f8e6056191b52b1e087cc57dce7dad\",\"issueNumber\":1,\"issueUrl\":\"https://example.invalid/issues/1\",\"prNumber\":null,\"prUrl\":null,\"createdAt\":\"2026-09-12T00:52:16.908Z\",\"updatedAt\":\"2026-09-12T00:52:18.591Z\",\"error\":null}}"
|
||||
}
|
||||
},
|
||||
"remotePublishedAt": null,
|
||||
"eventAt": null,
|
||||
"cursorAt": null,
|
||||
"publishToEvent": null,
|
||||
"publishToCursor": null,
|
||||
"actionSent": 2.236509083,
|
||||
"actionSavedAt": 2.265218208,
|
||||
"samples": [
|
||||
{
|
||||
"at": 2.236676666,
|
||||
"status": "reviewing",
|
||||
"revision": 1,
|
||||
"resultEvent": false,
|
||||
"reportCursor": 0
|
||||
},
|
||||
{
|
||||
"at": 2.265218208,
|
||||
"status": "cancelled",
|
||||
"revision": 1,
|
||||
"resultEvent": false,
|
||||
"reportCursor": 0
|
||||
}
|
||||
],
|
||||
"qaRuns": [],
|
||||
"remotePublishedWall": null,
|
||||
"preparationObservedAt": 2.236447333,
|
||||
"savedWithin10": true,
|
||||
"noOldQaStartedAfterRequest": true
|
||||
}
|
||||
25
apps/server/evidence/slow-git/http/cancel-cleanup.json
Normal file
25
apps/server/evidence/slow-git/http/cancel-cleanup.json
Normal file
@ -0,0 +1,25 @@
|
||||
{
|
||||
"serverStopped": true,
|
||||
"pids": [
|
||||
{
|
||||
"pid": 82629,
|
||||
"alive": false
|
||||
},
|
||||
{
|
||||
"pid": 82696,
|
||||
"alive": false
|
||||
},
|
||||
{
|
||||
"pid": 82512,
|
||||
"alive": false
|
||||
},
|
||||
{
|
||||
"pid": 82646,
|
||||
"alive": false
|
||||
},
|
||||
{
|
||||
"pid": 82780,
|
||||
"alive": false
|
||||
}
|
||||
]
|
||||
}
|
||||
16
apps/server/evidence/slow-git/http/cancel-remote.json
Normal file
16
apps/server/evidence/slow-git/http/cancel-remote.json
Normal file
@ -0,0 +1,16 @@
|
||||
{
|
||||
"3": [
|
||||
{
|
||||
"id": 1,
|
||||
"body": "## 任务分配:qa\n\n根任务:https://example.invalid/issues/1\n\n### 分配原因\n明确受控QA分派,不调用模型\n\n### 目标与验收\n仅无害故障注入\n\n不调用模型\n\n需求版本:1\n基线 SHA:`7fc156d144f8e6056191b52b1e087cc57dce7dad`\n检查 SHA:`7fc156d144f8e6056191b52b1e087cc57dce7dad`\n开发分支:`ppanel/slow-start/r1-3`\n目标分支:`qa`\n\n只在自己的 clone 工作,不读其他角色目录或日志。所有交接通过本 Issue 与远端 Git。不得弱化冻结验收。开发须确保候选包含分配的基线 SHA(必要时合并或变基),然后提交、push、创建 PR;独立 CR/QA 须实际检查固定 SHA,并把完整证据提交到独立证据分支或仓库评论。\n\n使用当前会话的 worker 桥读取任务、创建 PR、发布中文 Markdown 报告;stdout 不是报告。\n\n<!-- ppanel:{\"protocol_version\":1,\"event_id\":\"3655e13f-d744-4944-b62a-2ca1af055999\",\"kind\":\"assignment\",\"task_id\":\"slow-start\",\"run_id\":\"94cb5e98-049d-46b9-9cca-cf306c87b427\",\"sender_role\":\"orchestrator\",\"recipient_role\":\"qa\",\"goal_revision\":1,\"base_sha\":\"7fc156d144f8e6056191b52b1e087cc57dce7dad\",\"head_sha\":\"7fc156d144f8e6056191b52b1e087cc57dce7dad\",\"work_item_id\":3} -->",
|
||||
"html_url": "https://example.invalid/o/r/issues/3#1"
|
||||
}
|
||||
],
|
||||
"1": [
|
||||
{
|
||||
"id": 1,
|
||||
"body": "## 任务已取消\n\n取消状态已持久化,停止执行进程;迟到结果只保留记录。\n\n<!-- ppanel:{\"protocol_version\":1,\"event_id\":\"e394028f-a132-4e98-8993-5af60f34596b\",\"kind\":\"cancel\",\"task_id\":\"slow-start\"} -->",
|
||||
"html_url": "https://example.invalid/o/r/issues/1#1"
|
||||
}
|
||||
]
|
||||
}
|
||||
1105
apps/server/evidence/slow-git/http/result-boundary.json
Normal file
1105
apps/server/evidence/slow-git/http/result-boundary.json
Normal file
File diff suppressed because it is too large
Load Diff
33
apps/server/evidence/slow-git/http/result-cleanup.json
Normal file
33
apps/server/evidence/slow-git/http/result-cleanup.json
Normal file
@ -0,0 +1,33 @@
|
||||
{
|
||||
"serverStopped": true,
|
||||
"pids": [
|
||||
{
|
||||
"pid": 82592,
|
||||
"alive": false
|
||||
},
|
||||
{
|
||||
"pid": 82627,
|
||||
"alive": false
|
||||
},
|
||||
{
|
||||
"pid": 83081,
|
||||
"alive": false
|
||||
},
|
||||
{
|
||||
"pid": 82576,
|
||||
"alive": false
|
||||
},
|
||||
{
|
||||
"pid": 82513,
|
||||
"alive": false
|
||||
},
|
||||
{
|
||||
"pid": 83065,
|
||||
"alive": false
|
||||
},
|
||||
{
|
||||
"pid": 82719,
|
||||
"alive": false
|
||||
}
|
||||
]
|
||||
}
|
||||
1119
apps/server/evidence/slow-git/http/result-during-boundary.json
Normal file
1119
apps/server/evidence/slow-git/http/result-during-boundary.json
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,33 @@
|
||||
{
|
||||
"serverStopped": true,
|
||||
"pids": [
|
||||
{
|
||||
"pid": 82664,
|
||||
"alive": false
|
||||
},
|
||||
{
|
||||
"pid": 82825,
|
||||
"alive": false
|
||||
},
|
||||
{
|
||||
"pid": 83084,
|
||||
"alive": false
|
||||
},
|
||||
{
|
||||
"pid": 82511,
|
||||
"alive": false
|
||||
},
|
||||
{
|
||||
"pid": 82681,
|
||||
"alive": false
|
||||
},
|
||||
{
|
||||
"pid": 83100,
|
||||
"alive": false
|
||||
},
|
||||
{
|
||||
"pid": 82717,
|
||||
"alive": false
|
||||
}
|
||||
]
|
||||
}
|
||||
16
apps/server/evidence/slow-git/http/result-during-remote.json
Normal file
16
apps/server/evidence/slow-git/http/result-during-remote.json
Normal file
@ -0,0 +1,16 @@
|
||||
{
|
||||
"3": [
|
||||
{
|
||||
"id": 1,
|
||||
"body": "## 任务分配:qa\n\n根任务:https://example.invalid/issues/1\n\n### 分配原因\n明确受控QA分派,不调用模型\n\n### 目标与验收\n仅无害故障注入\n\n不调用模型\n\n需求版本:1\n基线 SHA:`7fc156d144f8e6056191b52b1e087cc57dce7dad`\n检查 SHA:`7fc156d144f8e6056191b52b1e087cc57dce7dad`\n开发分支:`ppanel/slow-start/r1-3`\n目标分支:`qa`\n\n只在自己的 clone 工作,不读其他角色目录或日志。所有交接通过本 Issue 与远端 Git。不得弱化冻结验收。开发须确保候选包含分配的基线 SHA(必要时合并或变基),然后提交、push、创建 PR;独立 CR/QA 须实际检查固定 SHA,并把完整证据提交到独立证据分支或仓库评论。\n\n使用当前会话的 worker 桥读取任务、创建 PR、发布中文 Markdown 报告;stdout 不是报告。\n\n<!-- ppanel:{\"protocol_version\":1,\"event_id\":\"443ef0a2-ec89-4d5d-9db4-f879bfbec658\",\"kind\":\"assignment\",\"task_id\":\"slow-start\",\"run_id\":\"90205d5a-0185-4e4f-a874-14f3eaf09500\",\"sender_role\":\"orchestrator\",\"recipient_role\":\"qa\",\"goal_revision\":1,\"base_sha\":\"7fc156d144f8e6056191b52b1e087cc57dce7dad\",\"head_sha\":\"7fc156d144f8e6056191b52b1e087cc57dce7dad\",\"work_item_id\":3} -->",
|
||||
"html_url": "https://example.invalid/o/r/issues/3#1"
|
||||
}
|
||||
],
|
||||
"2": [
|
||||
{
|
||||
"id": 1,
|
||||
"body": "## reviewer 执行报告\n\n运行:`reviewer`\n版本:1\n结论:changes_requested\n基线:`7fc156d144f8e6056191b52b1e087cc57dce7dad`\n提交:`7fc156d144f8e6056191b52b1e087cc57dce7dad`\n\n准备期间合法可信失败报告\n\n### 证据\n\n\n<!-- ppanel:{\"protocol_version\":1,\"event_id\":\"cece0666-50cb-44b5-bfe2-6812a5154fa5\",\"kind\":\"result\",\"task_id\":\"slow-start\",\"work_item_id\":2,\"run_id\":\"reviewer\",\"sender_role\":\"reviewer\",\"goal_revision\":1,\"base_sha\":\"7fc156d144f8e6056191b52b1e087cc57dce7dad\",\"head_sha\":\"7fc156d144f8e6056191b52b1e087cc57dce7dad\",\"conclusion\":\"changes_requested\",\"evidence_links\":[]} -->",
|
||||
"html_url": "https://example.invalid/o/r/issues/2#1"
|
||||
}
|
||||
]
|
||||
}
|
||||
16
apps/server/evidence/slow-git/http/result-remote.json
Normal file
16
apps/server/evidence/slow-git/http/result-remote.json
Normal file
@ -0,0 +1,16 @@
|
||||
{
|
||||
"2": [
|
||||
{
|
||||
"id": 1,
|
||||
"body": "## reviewer 执行报告\n\n运行:`reviewer`\n版本:1\n结论:changes_requested\n基线:`7fc156d144f8e6056191b52b1e087cc57dce7dad`\n提交:`7fc156d144f8e6056191b52b1e087cc57dce7dad`\n\n受控可信失败,不代表真实模型\n\n### 证据\n\n\n<!-- ppanel:{\"protocol_version\":1,\"event_id\":\"b4b80d21-79d3-40b8-9b40-c51c448cdbb7\",\"kind\":\"result\",\"task_id\":\"slow-start\",\"work_item_id\":2,\"run_id\":\"reviewer\",\"sender_role\":\"reviewer\",\"goal_revision\":1,\"base_sha\":\"7fc156d144f8e6056191b52b1e087cc57dce7dad\",\"head_sha\":\"7fc156d144f8e6056191b52b1e087cc57dce7dad\",\"conclusion\":\"changes_requested\",\"evidence_links\":[]} -->",
|
||||
"html_url": "https://example.invalid/o/r/issues/2#1"
|
||||
}
|
||||
],
|
||||
"3": [
|
||||
{
|
||||
"id": 1,
|
||||
"body": "## 任务分配:qa\n\n根任务:https://example.invalid/issues/1\n\n### 分配原因\n明确受控QA分派,不调用模型\n\n### 目标与验收\n仅无害故障注入\n\n不调用模型\n\n需求版本:1\n基线 SHA:`7fc156d144f8e6056191b52b1e087cc57dce7dad`\n检查 SHA:`7fc156d144f8e6056191b52b1e087cc57dce7dad`\n开发分支:`ppanel/slow-start/r1-3`\n目标分支:`qa`\n\n只在自己的 clone 工作,不读其他角色目录或日志。所有交接通过本 Issue 与远端 Git。不得弱化冻结验收。开发须确保候选包含分配的基线 SHA(必要时合并或变基),然后提交、push、创建 PR;独立 CR/QA 须实际检查固定 SHA,并把完整证据提交到独立证据分支或仓库评论。\n\n使用当前会话的 worker 桥读取任务、创建 PR、发布中文 Markdown 报告;stdout 不是报告。\n\n<!-- ppanel:{\"protocol_version\":1,\"event_id\":\"31f0970b-8120-4985-bae7-fab9478e452b\",\"kind\":\"assignment\",\"task_id\":\"slow-start\",\"run_id\":\"d37aadfe-f481-4ab2-a6bd-32fc9280f9a1\",\"sender_role\":\"orchestrator\",\"recipient_role\":\"qa\",\"goal_revision\":1,\"base_sha\":\"7fc156d144f8e6056191b52b1e087cc57dce7dad\",\"head_sha\":\"7fc156d144f8e6056191b52b1e087cc57dce7dad\",\"work_item_id\":3} -->",
|
||||
"html_url": "https://example.invalid/o/r/issues/3#1"
|
||||
}
|
||||
]
|
||||
}
|
||||
1196
apps/server/evidence/slow-git/http/result-zero-boundary.json
Normal file
1196
apps/server/evidence/slow-git/http/result-zero-boundary.json
Normal file
File diff suppressed because it is too large
Load Diff
37
apps/server/evidence/slow-git/http/result-zero-cleanup.json
Normal file
37
apps/server/evidence/slow-git/http/result-zero-cleanup.json
Normal file
@ -0,0 +1,37 @@
|
||||
{
|
||||
"serverStopped": true,
|
||||
"pids": [
|
||||
{
|
||||
"pid": 82917,
|
||||
"alive": false
|
||||
},
|
||||
{
|
||||
"pid": 82951,
|
||||
"alive": false
|
||||
},
|
||||
{
|
||||
"pid": 82985,
|
||||
"alive": false
|
||||
},
|
||||
{
|
||||
"pid": 83018,
|
||||
"alive": false
|
||||
},
|
||||
{
|
||||
"pid": 82967,
|
||||
"alive": false
|
||||
},
|
||||
{
|
||||
"pid": 82935,
|
||||
"alive": false
|
||||
},
|
||||
{
|
||||
"pid": 82968,
|
||||
"alive": false
|
||||
},
|
||||
{
|
||||
"pid": 83001,
|
||||
"alive": false
|
||||
}
|
||||
]
|
||||
}
|
||||
16
apps/server/evidence/slow-git/http/result-zero-remote.json
Normal file
16
apps/server/evidence/slow-git/http/result-zero-remote.json
Normal file
@ -0,0 +1,16 @@
|
||||
{
|
||||
"2": [
|
||||
{
|
||||
"id": 1,
|
||||
"body": "## reviewer 执行报告\n\n运行:`reviewer`\n版本:1\n结论:changes_requested\n基线:`992446e462335055d1f386bcbdb17535884f4f35`\n提交:`992446e462335055d1f386bcbdb17535884f4f35`\n\n受控可信失败,不代表真实模型\n\n### 证据\n\n\n<!-- ppanel:{\"protocol_version\":1,\"event_id\":\"0544315a-0ed9-4058-9aae-95755fb30353\",\"kind\":\"result\",\"task_id\":\"slow-start\",\"work_item_id\":2,\"run_id\":\"reviewer\",\"sender_role\":\"reviewer\",\"goal_revision\":1,\"base_sha\":\"992446e462335055d1f386bcbdb17535884f4f35\",\"head_sha\":\"992446e462335055d1f386bcbdb17535884f4f35\",\"conclusion\":\"changes_requested\",\"evidence_links\":[]} -->",
|
||||
"html_url": "https://example.invalid/o/r/issues/2#1"
|
||||
}
|
||||
],
|
||||
"3": [
|
||||
{
|
||||
"id": 1,
|
||||
"body": "## 任务分配:qa\n\n根任务:https://example.invalid/issues/1\n\n### 分配原因\n明确受控QA分派,不调用模型\n\n### 目标与验收\n仅无害故障注入\n\n不调用模型\n\n需求版本:1\n基线 SHA:`992446e462335055d1f386bcbdb17535884f4f35`\n检查 SHA:`992446e462335055d1f386bcbdb17535884f4f35`\n开发分支:`ppanel/slow-start/r1-3`\n目标分支:`qa`\n\n只在自己的 clone 工作,不读其他角色目录或日志。所有交接通过本 Issue 与远端 Git。不得弱化冻结验收。开发须确保候选包含分配的基线 SHA(必要时合并或变基),然后提交、push、创建 PR;独立 CR/QA 须实际检查固定 SHA,并把完整证据提交到独立证据分支或仓库评论。\n\n使用当前会话的 worker 桥读取任务、创建 PR、发布中文 Markdown 报告;stdout 不是报告。\n\n<!-- ppanel:{\"protocol_version\":1,\"event_id\":\"30315546-345e-450d-85ce-f595a3bd733c\",\"kind\":\"assignment\",\"task_id\":\"slow-start\",\"run_id\":\"42387443-311f-4308-8a9c-78d2b69642e4\",\"sender_role\":\"orchestrator\",\"recipient_role\":\"qa\",\"goal_revision\":1,\"base_sha\":\"992446e462335055d1f386bcbdb17535884f4f35\",\"head_sha\":\"992446e462335055d1f386bcbdb17535884f4f35\",\"work_item_id\":3} -->",
|
||||
"html_url": "https://example.invalid/o/r/issues/3#1"
|
||||
}
|
||||
]
|
||||
}
|
||||
46
apps/server/evidence/slow-git/http/revise-boundary.json
Normal file
46
apps/server/evidence/slow-git/http/revise-boundary.json
Normal file
@ -0,0 +1,46 @@
|
||||
{
|
||||
"baseline": "007bf0988f9bb333e765ed67a0d701ece2ab169e",
|
||||
"scenario": "revise",
|
||||
"delay": 14.0,
|
||||
"requests": {
|
||||
"dispatch": {
|
||||
"sent": 2.050079958,
|
||||
"end": 2.140217875,
|
||||
"error": "HTTP Error 400: Bad Request"
|
||||
},
|
||||
"action": {
|
||||
"sent": 2.130367541,
|
||||
"end": 2.1430595,
|
||||
"status": 202,
|
||||
"body": "{\"task\":{\"id\":\"slow-start\",\"title\":\"受控慢启动取消核验\",\"goal\":\"仅无害故障注入\\n\\n补充要求:\\n合法HTTP需求修订\",\"acceptance\":\"不调用模型\",\"status\":\"planning\",\"revision\":2,\"repository\":\"https://example.invalid/o/r\",\"targetBranch\":\"qa\",\"baseSha\":\"7fc156d144f8e6056191b52b1e087cc57dce7dad\",\"headSha\":\"7fc156d144f8e6056191b52b1e087cc57dce7dad\",\"issueNumber\":1,\"issueUrl\":\"https://example.invalid/issues/1\",\"prNumber\":null,\"prUrl\":null,\"createdAt\":\"2026-09-12T00:52:16.908Z\",\"updatedAt\":\"2026-09-12T00:52:18.488Z\",\"error\":null}}"
|
||||
}
|
||||
},
|
||||
"remotePublishedAt": null,
|
||||
"eventAt": null,
|
||||
"cursorAt": null,
|
||||
"publishToEvent": null,
|
||||
"publishToCursor": null,
|
||||
"actionSent": 2.130367541,
|
||||
"actionSavedAt": 2.160583416,
|
||||
"samples": [
|
||||
{
|
||||
"at": 2.130538333,
|
||||
"status": "reviewing",
|
||||
"revision": 1,
|
||||
"resultEvent": false,
|
||||
"reportCursor": 0
|
||||
},
|
||||
{
|
||||
"at": 2.160583416,
|
||||
"status": "planning",
|
||||
"revision": 2,
|
||||
"resultEvent": false,
|
||||
"reportCursor": 0
|
||||
}
|
||||
],
|
||||
"qaRuns": [],
|
||||
"remotePublishedWall": null,
|
||||
"preparationObservedAt": 2.130312291,
|
||||
"savedWithin10": true,
|
||||
"noOldQaStartedAfterRequest": true
|
||||
}
|
||||
25
apps/server/evidence/slow-git/http/revise-cleanup.json
Normal file
25
apps/server/evidence/slow-git/http/revise-cleanup.json
Normal file
@ -0,0 +1,25 @@
|
||||
{
|
||||
"serverStopped": true,
|
||||
"pids": [
|
||||
{
|
||||
"pid": 82594,
|
||||
"alive": false
|
||||
},
|
||||
{
|
||||
"pid": 82662,
|
||||
"alive": false
|
||||
},
|
||||
{
|
||||
"pid": 82510,
|
||||
"alive": false
|
||||
},
|
||||
{
|
||||
"pid": 82735,
|
||||
"alive": false
|
||||
},
|
||||
{
|
||||
"pid": 82612,
|
||||
"alive": false
|
||||
}
|
||||
]
|
||||
}
|
||||
16
apps/server/evidence/slow-git/http/revise-remote.json
Normal file
16
apps/server/evidence/slow-git/http/revise-remote.json
Normal file
@ -0,0 +1,16 @@
|
||||
{
|
||||
"3": [
|
||||
{
|
||||
"id": 1,
|
||||
"body": "## 任务分配:qa\n\n根任务:https://example.invalid/issues/1\n\n### 分配原因\n明确受控QA分派,不调用模型\n\n### 目标与验收\n仅无害故障注入\n\n不调用模型\n\n需求版本:1\n基线 SHA:`7fc156d144f8e6056191b52b1e087cc57dce7dad`\n检查 SHA:`7fc156d144f8e6056191b52b1e087cc57dce7dad`\n开发分支:`ppanel/slow-start/r1-3`\n目标分支:`qa`\n\n只在自己的 clone 工作,不读其他角色目录或日志。所有交接通过本 Issue 与远端 Git。不得弱化冻结验收。开发须确保候选包含分配的基线 SHA(必要时合并或变基),然后提交、push、创建 PR;独立 CR/QA 须实际检查固定 SHA,并把完整证据提交到独立证据分支或仓库评论。\n\n使用当前会话的 worker 桥读取任务、创建 PR、发布中文 Markdown 报告;stdout 不是报告。\n\n<!-- ppanel:{\"protocol_version\":1,\"event_id\":\"a43fea57-4dc9-436d-a30b-7d9254208a94\",\"kind\":\"assignment\",\"task_id\":\"slow-start\",\"run_id\":\"6643f836-837e-414f-bd7a-f5a925813d0a\",\"sender_role\":\"orchestrator\",\"recipient_role\":\"qa\",\"goal_revision\":1,\"base_sha\":\"7fc156d144f8e6056191b52b1e087cc57dce7dad\",\"head_sha\":\"7fc156d144f8e6056191b52b1e087cc57dce7dad\",\"work_item_id\":3} -->",
|
||||
"html_url": "https://example.invalid/o/r/issues/3#1"
|
||||
}
|
||||
],
|
||||
"1": [
|
||||
{
|
||||
"id": 1,
|
||||
"body": "## 需求修订:版本 2\n\n合法HTTP需求修订\n\n旧版本评审全部失效。\n\n<!-- ppanel:{\"protocol_version\":1,\"event_id\":\"88902938-dad0-4834-902d-7acad17f7a16\",\"kind\":\"revision_request\",\"task_id\":\"slow-start\",\"goal_revision\":2} -->",
|
||||
"html_url": "https://example.invalid/o/r/issues/1#1"
|
||||
}
|
||||
]
|
||||
}
|
||||
21
apps/server/evidence/slow-git/original-a07.txt
Normal file
21
apps/server/evidence/slow-git/original-a07.txt
Normal file
@ -0,0 +1,21 @@
|
||||
{"name":"A06 新 head 拒绝旧 CR/QA","ok":true,"ms":6}
|
||||
{"name":"A06 需求修订拒绝旧 CR/QA","ok":true,"ms":3}
|
||||
{"name":"A07 发布后响应丢失、DB 重启、三次重放仅消费一次","ok":true,"ms":5}
|
||||
{"name":"A07 assignment 三次重放仅一次真实 clone 和受控子进程启动","ok":false,"ms":48,"error":"AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value:\n\n assert.ok(args[0].endsWith('/supervisor.js'))\n\n at childProcess.spawn (file:///Users/pptg/workspace/demo/ppanel/.ppanel/build/backend/.ppanel/qa19-a07/check.mjs:124:14)\n at Engine.gitTask (file:///Users/pptg/workspace/demo/ppanel/.ppanel/build/backend/apps/server/dist/engine.js:135:23)\n at Engine.startAssigned (file:///Users/pptg/workspace/demo/ppanel/.ppanel/build/backend/apps/server/dist/engine.js:404:20)\n at Engine.dispatch (file:///Users/pptg/workspace/demo/ppanel/.ppanel/build/backend/apps/server/dist/engine.js:367:21)\n at async file:///Users/pptg/workspace/demo/ppanel/.ppanel/build/backend/.ppanel/qa19-a07/check.mjs:134:12\n at async check (file:///Users/pptg/workspace/demo/ppanel/.ppanel/build/backend/.ppanel/qa19-a07/check.mjs:82:9)\n at async file:///Users/pptg/workspace/demo/ppanel/.ppanel/build/backend/.ppanel/qa19-a07/check.mjs:117:37"}
|
||||
{"name":"A07 assignment 发布响应丢失后恢复并仅执行一次","ok":false,"ms":40,"error":"AssertionError [ERR_ASSERTION]: 已确认发布 assignment 后未恢复一次执行;实际状态 failed\n\n0 !== 1\n\n at file:///Users/pptg/workspace/demo/ppanel/.ppanel/build/backend/.ppanel/qa19-a07/check.mjs:140:12\n at async check (file:///Users/pptg/workspace/demo/ppanel/.ppanel/build/backend/.ppanel/qa19-a07/check.mjs:82:9)\n at async file:///Users/pptg/workspace/demo/ppanel/.ppanel/build/backend/.ppanel/qa19-a07/check.mjs:117:37"}
|
||||
{"name":"真实 HTTP worker 认证及取消持久化,迟到报告不能恢复任务","ok":true,"ms":108}
|
||||
{"name":"#15 外来自指 event_id 在轮询及重启后不能恢复 result","ok":true,"ms":1}
|
||||
{"name":"#15 认证 published 历史可跨重启恢复缺失投影","ok":true,"ms":2}
|
||||
{"name":"A10 退出 0 缺少报告 不成功、不关闭 Issue","ok":true,"ms":1}
|
||||
{"name":"A10 CLI 退出码 7 不成功、不关闭 Issue","ok":true,"ms":1}
|
||||
{"name":"A10 修正三轮后第四轮被拒且形成失败报告","ok":true,"ms":1}
|
||||
{"name":"A10 执行二十次后拒绝新分派","ok":true,"ms":2}
|
||||
{"name":"A10 根任务超时由 tick 持久化并发布失败","ok":true,"ms":1}
|
||||
{"name":"A12 目标 base 前进拒绝旧 CR/QA","ok":true,"ms":2}
|
||||
{"name":"A12 合入后 QA failed 禁止 complete 并保留合入事实","ok":true,"ms":1}
|
||||
{"name":"A12 合入后 QA pass 但目标分支再次前进禁止 complete","ok":true,"ms":1}
|
||||
{"name":"A12 正向对照:合入后同版本 QA pass 才能关闭","ok":true,"ms":1}
|
||||
{"name":"冻结集成:#8 app.py 允许修改,测试/文档/清单不可修改","ok":true,"ms":66}
|
||||
{"name":"冻结集成:真实 Git 业务候选应通过 Engine.merge","ok":true,"ms":205}
|
||||
{"name":"冻结集成:真实 Git 弱化测试即使 CR/QA pass 也不能合并","ok":true,"ms":193}
|
||||
EVIDENCE /var/folders/q4/m_dy0g_90lj2pbc9tq6db3h40000gn/T/ppanel-qa19-hwCDes
|
||||
133
apps/server/evidence/slow-git/recovery.json
Normal file
133
apps/server/evidence/slow-git/recovery.json
Normal file
@ -0,0 +1,133 @@
|
||||
{
|
||||
"boundary": "受控故障注入;真实 SDK/Engine/Store;无外部模型调用",
|
||||
"results": [
|
||||
{
|
||||
"name": "恢复边界 safe",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"name": "恢复边界 comments",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"name": "恢复边界 pending",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"name": "恢复边界 published",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"name": "恢复边界 pid",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"name": "恢复边界 session",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"name": "恢复边界 started",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"name": "恢复边界 result",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"name": "恢复边界 directory",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"name": "恢复边界 missing-directory",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"name": "恢复边界 active",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"name": "恢复边界 unknown-run",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"name": "恢复边界 wrong-binding",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"name": "恢复边界 valid-body",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"name": "恢复边界 network",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"name": "恢复边界 revision",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"name": "恢复边界 unrelated-error",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"name": "恢复边界 race-published",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"name": "恢复边界 race-active",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"name": "恢复边界 race-result",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"name": "恢复边界 race-binding",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"name": "恢复边界 race-budget",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"name": "恢复边界 race-comment",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"name": "完整远端分页 second-page-comment",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"name": "完整远端分页 second-page-network",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"name": "最终正文各字段非法零目录/Issue/run;合法重试一次及 changes_requested 门禁",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"name": "父 P1 新 SDK 复验 corrected",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"name": "父 P1 新 SDK 复验 normal",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"name": "父 P1 新 SDK 复验 text",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"name": "父 P1 新 SDK 复验 error",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"name": "父 P1 新 SDK 复验 invalid-decide",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"name": "父 P2 新复验:真实身份收敛、未知不结束、completed不覆盖",
|
||||
"ok": true
|
||||
}
|
||||
]
|
||||
}
|
||||
10
apps/server/evidence/slow-git/restart-isolated.json
Normal file
10
apps/server/evidence/slow-git/restart-isolated.json
Normal file
@ -0,0 +1,10 @@
|
||||
{
|
||||
"boundary": "真实Engine/Store/Gitea与本地Git;远端传输及模型决定为明确故障注入",
|
||||
"results": [
|
||||
{
|
||||
"mode": "restart",
|
||||
"ok": true,
|
||||
"elapsedSeconds": 0.011866667000000006
|
||||
}
|
||||
]
|
||||
}
|
||||
105
apps/server/evidence/slow-git/rework.json
Normal file
105
apps/server/evidence/slow-git/rework.json
Normal file
@ -0,0 +1,105 @@
|
||||
{
|
||||
"boundary": "受控远端/模型流,实际Engine/Store/Gitea/SDK,无真实模型调用",
|
||||
"results": [
|
||||
{
|
||||
"name": "可信来源 trusted",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"name": "可信来源 untrusted",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"name": "可信来源 wrong-event",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"name": "可信来源 wrong-task",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"name": "可信来源 wrong-role",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"name": "可信来源 old-revision",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"name": "可信来源 old-head",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"name": "可信来源 old-base",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"name": "可信来源 pass",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"name": "可信来源 running",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"name": "可信来源 pending-only",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"name": "丢响应→SQLite重开→不同模型说明重试→一次分派→重复tick",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"name": "分派负例 active",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"name": "分派负例 runs",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"name": "分派负例 corrections",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"name": "分派负例 invalid-body",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"name": "分派负例 publish-error",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"name": "分派负例 cancel-during-post",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"name": "分派负例 revision-during-post",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"name": "可预测event_id不能让普通评论冒充返工请求",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"name": "发布await期间变化 head",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"name": "发布await期间变化 base",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"name": "发布await期间变化 budget",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"name": "发布await期间变化 active",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"name": "真实SDK:决定正文权威版本在前、错误模型原文及原始事件保留",
|
||||
"ok": true
|
||||
}
|
||||
]
|
||||
}
|
||||
613
apps/server/evidence/slow-git/slow.json
Normal file
613
apps/server/evidence/slow-git/slow.json
Normal file
@ -0,0 +1,613 @@
|
||||
{
|
||||
"productSha": "8d374084e109bbabc9e4bcec2a12c4088099db7d",
|
||||
"synthetic": true,
|
||||
"delaySeconds": 14.0,
|
||||
"port": 60234,
|
||||
"cancelRequestSent": 1.6223635,
|
||||
"cancelSavedSeconds": 0.03543479099999991,
|
||||
"existingProcessesEndedSeconds": 2.546009458,
|
||||
"cancelWithin10": true,
|
||||
"existingProcessesWithin10": true,
|
||||
"requests": {
|
||||
"cancel": {
|
||||
"start": 1.622428625,
|
||||
"end": 1.632639833,
|
||||
"status": 200,
|
||||
"body": "{\"task\":{\"id\":\"slow-start\",\"title\":\"受控慢启动取消核验\",\"goal\":\"仅无害故障注入\",\"acceptance\":\"不调用模型\",\"status\":\"cancelled\",\"revision\":1,\"repository\":\"https://example.invalid/o/r\",\"targetBranch\":\"qa\",\"baseSha\":\"07e27a96f8d9f03d12f20c448a12af4d408705ec\",\"headSha\":\"07e27a96f8d9f03d12f20c448a12af4d408705ec\",\"issueNumber\":1,\"issueUrl\":\"https://example.invalid/issues/1\",\"prNumber\":null,\"prUrl\":null,\"createdAt\":\"2026-09-12T00:47:05.044Z\",\"updatedAt\":\"2026-09-12T00:47:06.303Z\",\"error\":null}}"
|
||||
},
|
||||
"health": {
|
||||
"start": 1.622662791,
|
||||
"end": 1.632996416,
|
||||
"status": 200,
|
||||
"body": "{\"ok\":true,\"version\":\"0.1.0\"}"
|
||||
},
|
||||
"dispatch": {
|
||||
"start": 1.54117575,
|
||||
"end": 1.633342583,
|
||||
"error": "HTTP Error 400: Bad Request"
|
||||
}
|
||||
},
|
||||
"samples": [
|
||||
{
|
||||
"secondsFromRequest": 0.00042354099999997175,
|
||||
"taskStatus": "reviewing",
|
||||
"activeExistingPids": [
|
||||
79842,
|
||||
79863
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 0.03543479099999991,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
79842,
|
||||
79863
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 0.06351687499999992,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
79842,
|
||||
79863
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 0.0907399579999999,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
79842,
|
||||
79863
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 0.11607391599999994,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
79842,
|
||||
79863
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 0.15125212499999985,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
79842,
|
||||
79863
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 0.185449666,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
79842,
|
||||
79863
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 0.21842729100000002,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
79842,
|
||||
79863
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 0.24945820799999985,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
79842,
|
||||
79863
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 0.2817507079999999,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
79842,
|
||||
79863
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 0.3171753749999999,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
79842,
|
||||
79863
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 0.34677208299999984,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
79842,
|
||||
79863
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 0.37965066599999986,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
79842,
|
||||
79863
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 0.4080631659999998,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
79842,
|
||||
79863
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 0.44328262500000015,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
79842,
|
||||
79863
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 0.47443858299999997,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
79842,
|
||||
79863
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 0.5098754579999998,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
79842,
|
||||
79863
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 0.5423990829999998,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
79842
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 0.576371666,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
79842
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 0.610428041,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
79842
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 0.642358958,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
79842
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 0.6741089580000001,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
79842
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 0.7091317080000001,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
79842
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 0.7445614159999998,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
79842
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 0.7774081659999998,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
79842
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 0.8117509159999998,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
79842
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 0.8453819579999999,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
79842
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 0.8807603749999999,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
79842
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 0.9151348329999998,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
79842
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 0.9490962079999998,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
79842
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 0.9824437499999998,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
79842
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 1.014445833,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
79842
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 1.0474163330000001,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
79842
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 1.080819125,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
79842
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 1.1122639579999998,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
79842
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 1.1426172499999998,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
79842
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 1.17415075,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
79842
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 1.207518458,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
79842
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 1.2410437079999999,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
79842
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 1.2716793749999997,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
79842
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 1.3035657079999998,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
79842
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 1.335426208,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
79842
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 1.3699897499999998,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
79842
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 1.402105375,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
79842
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 1.4296719159999998,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
79842
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 1.4605564580000001,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
79842
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 1.49570225,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
79842
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 1.530742916,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
79842
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 1.5659095829999998,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
79842
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 1.599078166,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
79842
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 1.63435475,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
79842
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 1.665767083,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
79842
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 1.6990932499999998,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
79842
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 1.734306375,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
79842
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 1.768760125,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
79842
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 1.8034857079999997,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
79842
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 1.8382039999999997,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
79842
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 1.865798125,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
79842
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 1.899122625,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
79842
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 1.9327609159999999,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
79842
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 1.964711291,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
79842
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 1.999063166,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
79842
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 2.031911375,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
79842
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 2.064958625,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
79842
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 2.097741875,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
79842
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 2.132341333,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
79842
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 2.164766666,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
79842
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 2.193816541,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
79842
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 2.2257619159999997,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
79842
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 2.260388166,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
79842
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 2.289142666,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
79842
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 2.324747791,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
79842
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 2.359978875,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
79842
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 2.391749125,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
79842
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 2.427106875,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
79842
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 2.457429333,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
79842
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 2.4849578749999996,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
79842
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 2.512123541,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
79842
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 2.546009458,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": []
|
||||
}
|
||||
],
|
||||
"privateDirectory": "/Users/pptg/workspace/demo/ppanel/.ppanel/build/backend/.ppanel/issue26/slow-start/1789174024727119000",
|
||||
"existingProcessIdentity": {
|
||||
"runId": "reviewer",
|
||||
"pid": 79842,
|
||||
"identity": "Sat Sep 12 08:47:05 2026",
|
||||
"sessionId": "/Users/pptg/workspace/demo/ppanel/.ppanel/build/backend/.ppanel/issue26/slow-start/1789174024727119000/data/tasks/reviewer/session.jsonl",
|
||||
"startedAt": "2026-09-12T00:47:05.793Z",
|
||||
"endedAt": null,
|
||||
"error": null
|
||||
},
|
||||
"existingChild": {
|
||||
"pid": 79863
|
||||
}
|
||||
}
|
||||
7
apps/server/evidence/slow-git/source-hashes.json
Normal file
7
apps/server/evidence/slow-git/source-hashes.json
Normal file
@ -0,0 +1,7 @@
|
||||
{
|
||||
"apps/server/src/engine.ts": "e5485a55aae1135ed6dbbc1e23b03808b1f087ed29f1812872face7f4661ebe0",
|
||||
"apps/server/src/git-job.ts": "06a673ab66ddbfa2ae3e7816dd8c953130b0be8fee20f50535e60cf0e3f0120e",
|
||||
"apps/server/src/frozen.ts": "0fc52fa5bbf35396d4b12f9a3652f1f6ffe070ae249500c7d6f6ca30a2c798ef",
|
||||
"apps/server/test/engine.test.ts": "392268f972697255af3c479ae3382504d598799bdf085618919222efd3053a55",
|
||||
"apps/server/test/slow-git-check.mjs": "84ffc1e8af495f16c6fa9ef2683c8de41a7ce5c815ae6a3b22bf9453a9bb020f"
|
||||
}
|
||||
613
apps/server/evidence/slow-git/zero.json
Normal file
613
apps/server/evidence/slow-git/zero.json
Normal file
@ -0,0 +1,613 @@
|
||||
{
|
||||
"productSha": "8d374084e109bbabc9e4bcec2a12c4088099db7d",
|
||||
"synthetic": true,
|
||||
"delaySeconds": 0.0,
|
||||
"port": 60324,
|
||||
"cancelRequestSent": 1.157205625,
|
||||
"cancelSavedSeconds": 0.03179145800000005,
|
||||
"existingProcessesEndedSeconds": 2.539364041,
|
||||
"cancelWithin10": true,
|
||||
"existingProcessesWithin10": true,
|
||||
"requests": {
|
||||
"health": {
|
||||
"start": 1.157505166,
|
||||
"end": 1.159968791,
|
||||
"status": 200,
|
||||
"body": "{\"ok\":true,\"version\":\"0.1.0\"}"
|
||||
},
|
||||
"cancel": {
|
||||
"start": 1.157277625,
|
||||
"end": 1.167438958,
|
||||
"status": 200,
|
||||
"body": "{\"task\":{\"id\":\"slow-start\",\"title\":\"受控慢启动取消核验\",\"goal\":\"仅无害故障注入\",\"acceptance\":\"不调用模型\",\"status\":\"cancelled\",\"revision\":1,\"repository\":\"https://example.invalid/o/r\",\"targetBranch\":\"qa\",\"baseSha\":\"160fb34294cdfe57153546621187d8a36759027c\",\"headSha\":\"160fb34294cdfe57153546621187d8a36759027c\",\"issueNumber\":1,\"issueUrl\":\"https://example.invalid/issues/1\",\"prNumber\":null,\"prUrl\":null,\"createdAt\":\"2026-09-12T00:47:24.288Z\",\"updatedAt\":\"2026-09-12T00:47:25.029Z\",\"error\":null}}"
|
||||
},
|
||||
"dispatch": {
|
||||
"start": 1.079957291,
|
||||
"end": 1.169074833,
|
||||
"error": "HTTP Error 400: Bad Request"
|
||||
}
|
||||
},
|
||||
"samples": [
|
||||
{
|
||||
"secondsFromRequest": 0.0004269159999998884,
|
||||
"taskStatus": "reviewing",
|
||||
"activeExistingPids": [
|
||||
80110,
|
||||
80126
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 0.03179145800000005,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
80110,
|
||||
80126
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 0.06451529099999997,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
80110,
|
||||
80126
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 0.09094633299999999,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
80110,
|
||||
80126
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 0.12459429099999997,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
80110,
|
||||
80126
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 0.159521083,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
80110,
|
||||
80126
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 0.19489475,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
80110,
|
||||
80126
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 0.2258484999999999,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
80110,
|
||||
80126
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 0.258246666,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
80110,
|
||||
80126
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 0.290945166,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
80110,
|
||||
80126
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 0.326209416,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
80110,
|
||||
80126
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 0.35248445799999994,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
80110,
|
||||
80126
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 0.3865441249999999,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
80110,
|
||||
80126
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 0.42206937499999997,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
80110,
|
||||
80126
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 0.4480180410000001,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
80110,
|
||||
80126
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 0.48304983299999993,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
80110,
|
||||
80126
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 0.5182782079999999,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
80110,
|
||||
80126
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 0.5495727909999999,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
80110
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 0.5836715829999999,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
80110
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 0.611512625,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
80110
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 0.643960708,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
80110
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 0.6751875,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
80110
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 0.71093725,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
80110
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 0.744554916,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
80110
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 0.77077825,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
80110
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 0.805959125,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
80110
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 0.84139775,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
80110
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 0.8767783749999998,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
80110
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 0.9076865409999999,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
80110
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 0.939519958,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
80110
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 0.974750083,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
80110
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 1.0101373329999999,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
80110
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 1.04128425,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
80110
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 1.0764681660000002,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
80110
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 1.1106447080000001,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
80110
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 1.1431235000000002,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
80110
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 1.1761683330000001,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
80110
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 1.2077437500000001,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
80110
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 1.242973708,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
80110
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 1.2772993750000001,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
80110
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 1.3121743750000001,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
80110
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 1.342594041,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
80110
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 1.373731791,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
80110
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 1.4092905829999998,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
80110
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 1.4421925,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
80110
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 1.4769487909999999,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
80110
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 1.5034315409999999,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
80110
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 1.536823,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
80110
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 1.5719005410000002,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
80110
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 1.598015916,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
80110
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 1.6334952500000002,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
80110
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 1.666049541,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
80110
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 1.6929478749999998,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
80110
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 1.72730675,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
80110
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 1.755567375,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
80110
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 1.786958416,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
80110
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 1.8152795830000001,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
80110
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 1.8497519580000001,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
80110
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 1.8852812499999998,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
80110
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 1.918288708,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
80110
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 1.9493069580000002,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
80110
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 1.985155583,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
80110
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 2.018192458,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
80110
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 2.049313,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
80110
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 2.084805666,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
80110
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 2.118948333,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
80110
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 2.149293916,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
80110
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 2.182838666,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
80110
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 2.2157042909999998,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
80110
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 2.2456036249999998,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
80110
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 2.280935083,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
80110
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 2.311779375,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
80110
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 2.343942125,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
80110
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 2.374341583,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
80110
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 2.40790425,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
80110
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 2.44344125,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
80110
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 2.47279325,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
80110
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 2.507994916,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": [
|
||||
80110
|
||||
]
|
||||
},
|
||||
{
|
||||
"secondsFromRequest": 2.539364041,
|
||||
"taskStatus": "cancelled",
|
||||
"activeExistingPids": []
|
||||
}
|
||||
],
|
||||
"privateDirectory": "/Users/pptg/workspace/demo/ppanel/.ppanel/build/backend/.ppanel/issue26/slow-start/1789174043916875000",
|
||||
"existingProcessIdentity": {
|
||||
"runId": "reviewer",
|
||||
"pid": 80110,
|
||||
"identity": "Sat Sep 12 08:47:24 2026",
|
||||
"sessionId": "/Users/pptg/workspace/demo/ppanel/.ppanel/build/backend/.ppanel/issue26/slow-start/1789174043916875000/data/tasks/reviewer/session.jsonl",
|
||||
"startedAt": "2026-09-12T00:47:24.750Z",
|
||||
"endedAt": null,
|
||||
"error": null
|
||||
},
|
||||
"existingChild": {
|
||||
"pid": 80126
|
||||
}
|
||||
}
|
||||
@ -19,7 +19,7 @@ import {
|
||||
type Runtime,
|
||||
type Report,
|
||||
} from "./store.js";
|
||||
import { Gitea, marker, redact } from "./gitea.js";
|
||||
import { Gitea, marker, redact, secrets } from "./gitea.js";
|
||||
import type { Config } from "./config.js";
|
||||
const here = dirname(fileURLToPath(import.meta.url));
|
||||
const git = (args: string[], cwd?: string) =>
|
||||
@ -125,7 +125,7 @@ export class Engine {
|
||||
const context = this.contextRepo(t);
|
||||
if (!existsSync(context)) {
|
||||
mkdirSync(dirname(context), { recursive: true });
|
||||
git(["clone", "--bare", t.repository, context]);
|
||||
await this.gitTask(t, ["clone", "--bare", t.repository, context]);
|
||||
}
|
||||
if (!this.store.frozen(t.id))
|
||||
this.store.freeze(
|
||||
@ -135,6 +135,7 @@ export class Engine {
|
||||
t.baseSha,
|
||||
t.acceptanceFiles ?? [],
|
||||
t.goal + "\n" + t.acceptance,
|
||||
await this.gitTask(t, ["--git-dir", context, "ls-tree", "-r", "-z", t.baseSha]),
|
||||
),
|
||||
);
|
||||
const frozen = this.store.frozen(t.id)!;
|
||||
@ -150,6 +151,35 @@ export class Engine {
|
||||
this.store.save(t);
|
||||
this.store.event(t.id, "assignment", issue.body, null, issue.html_url);
|
||||
}
|
||||
gitChildren = new Map<string, Set<ReturnType<typeof spawn>>>();
|
||||
async gitTask(t: Task, args: string[], cwd?: string) {
|
||||
this.current(t);
|
||||
const root = join(this.cfg.data, "tasks", t.id, "git", id());
|
||||
mkdirSync(root, { recursive: true });
|
||||
writeFileSync(join(root, "spec.json"), JSON.stringify({ args, cwd, secrets: [...secrets] }), { mode: 0o600 });
|
||||
const entry = join(here, "git-job.js");
|
||||
const argsForNode = existsSync(entry) ? [entry, root] : ["--import", join(here, "../node_modules/tsx/dist/loader.mjs"), join(here, "git-job.ts"), root];
|
||||
const child = spawn(process.execPath, argsForNode, { detached: true, stdio: "ignore" });
|
||||
const jobs = this.gitChildren.get(t.id) ?? new Set(); jobs.add(child); this.gitChildren.set(t.id, jobs);
|
||||
try {
|
||||
await new Promise<void>((resolve, reject) => { child.once("error", reject); child.once("close", () => resolve()); });
|
||||
this.current(t);
|
||||
const result = JSON.parse(readFileSync(join(root, "result.json"), "utf8"));
|
||||
if (result.error) throw new Error(result.error);
|
||||
return result.output as string;
|
||||
} finally { jobs.delete(child); }
|
||||
}
|
||||
stopGit(t: Task) {
|
||||
for (const child of this.gitChildren.get(t.id) ?? []) child.kill("SIGTERM");
|
||||
const root = join(this.cfg.data, "tasks", t.id, "git");
|
||||
if (!existsSync(root)) return;
|
||||
for (const job of readdirSync(root)) {
|
||||
try {
|
||||
const state = JSON.parse(readFileSync(join(root, job, "state.json"), "utf8"));
|
||||
if (!state.endedAt && this.alive(state)) process.kill(state.pid, "SIGTERM");
|
||||
} catch { /* Missing identity is not permission to signal another process. */ }
|
||||
}
|
||||
}
|
||||
async cancel(taskId: string) {
|
||||
const t = this.store.task(taskId);
|
||||
if (terminal(t.status)) return t;
|
||||
@ -157,6 +187,7 @@ export class Engine {
|
||||
t.wake = false;
|
||||
this.store.save(t);
|
||||
this.agents.get(t.id)?.abort();
|
||||
this.stopGit(t);
|
||||
for (const r of this.store.runs(t.id)) {
|
||||
if (["queued", "running"].includes(r.status)) {
|
||||
r.status = "cancelled";
|
||||
@ -212,6 +243,7 @@ export class Engine {
|
||||
t.status = "planning";
|
||||
this.store.save(t);
|
||||
this.agents.get(t.id)?.abort();
|
||||
this.stopGit(t);
|
||||
for (const r of this.store.runs(t.id))
|
||||
if (["running", "queued"].includes(r.status)) {
|
||||
r.status = "cancelled";
|
||||
@ -251,12 +283,21 @@ export class Engine {
|
||||
contextRepo(t: Task) {
|
||||
return join(this.cfg.data, "tasks", t.id, "orchestrator", "context.git");
|
||||
}
|
||||
checkFrozen(t: Task, head: string) {
|
||||
async checkFrozen(t: Task, head: string) {
|
||||
const manifest = this.store.frozen(t.id);
|
||||
if (!manifest) throw new Error("缺少开发前冻结验收清单,禁止交付或合并");
|
||||
const checkVersion = () => {
|
||||
const latest = this.current(t);
|
||||
if (latest.headSha !== t.headSha || latest.baseSha !== t.baseSha || latest.mergedSha !== t.mergedSha)
|
||||
throw new Error("冻结检查期间候选或基线已变化");
|
||||
};
|
||||
checkVersion();
|
||||
const repo = this.contextRepo(t);
|
||||
git(["--git-dir", repo, "fetch", "--no-tags", "origin", head]);
|
||||
assertFrozen(repo, head, manifest);
|
||||
await this.gitTask(t, ["--git-dir", repo, "fetch", "--no-tags", "origin", head]);
|
||||
checkVersion();
|
||||
const entries = await this.gitTask(t, ["--git-dir", repo, "ls-tree", "-r", "-z", head]);
|
||||
checkVersion();
|
||||
assertFrozen(repo, head, manifest, entries);
|
||||
}
|
||||
current(t: Task) {
|
||||
const latest = this.store.task(t.id);
|
||||
@ -265,8 +306,15 @@ export class Engine {
|
||||
return latest;
|
||||
}
|
||||
async dispatch(taskId: string, role: Role, runtime: Runtime, reason: string) {
|
||||
const t = this.store.task(taskId),
|
||||
runs = this.store.runs(t.id);
|
||||
let t = this.store.task(taskId);
|
||||
const runs = this.store.runs(t.id);
|
||||
const snapshot = JSON.stringify([t.headSha, t.baseSha, t.mergedSha, t.corrections, runs]);
|
||||
const unchanged = () => {
|
||||
const fresh = this.current(t);
|
||||
if (snapshot !== JSON.stringify([fresh.headSha, fresh.baseSha, fresh.mergedSha, fresh.corrections, this.store.runs(t.id)]))
|
||||
throw new Error("分派等待期间候选、预算或执行状态已变化");
|
||||
return fresh;
|
||||
};
|
||||
if (terminal(t.status)) throw new Error("任务已停止");
|
||||
if (
|
||||
!["developer", "reviewer", "qa", "integrator"].includes(role) ||
|
||||
@ -285,7 +333,7 @@ export class Engine {
|
||||
throw new Error("开发必须串行");
|
||||
if (role !== "developer" && !t.headSha)
|
||||
throw new Error("必须先完成开发并提交候选");
|
||||
if (t.mergedSha) this.checkFrozen(t, t.mergedSha);
|
||||
if (t.mergedSha) await this.checkFrozen(t, t.mergedSha);
|
||||
if (t.mergedSha && role !== "qa") throw new Error("合入后只允许 QA");
|
||||
if (
|
||||
role !== "developer" &&
|
||||
@ -328,10 +376,12 @@ export class Engine {
|
||||
const body = `## 任务分配:${role}\n\n根任务:${t.issueUrl}\n\n### 分配原因\n${reason}\n\n### 目标与验收\n${t.goal}\n\n${t.acceptance}\n\n需求版本:${t.revision}\n基线 SHA:\`${t.baseSha}\`\n检查 SHA:\`${t.mergedSha ?? t.headSha ?? t.baseSha}\`\n开发分支:\`${branch}\`\n目标分支:\`${t.targetBranch}\`\n\n只在自己的 clone 工作,不读其他角色目录或日志。所有交接通过本 Issue 与远端 Git。不得弱化冻结验收。开发须确保候选包含分配的基线 SHA(必要时合并或变基),然后提交、push、创建 PR;独立 CR/QA 须实际检查固定 SHA,并把完整证据提交到独立证据分支或仓库评论。${t.mergedSha ? "这是合入后的独立 QA。" : ""}\n\n使用当前会话的 worker 桥读取任务、创建 PR、发布中文 Markdown 报告;stdout 不是报告。`;
|
||||
Gitea.prototype.validateBody(body);
|
||||
if (role === "developer") await this.requestRework(t, runs, reason);
|
||||
this.current(t);
|
||||
unchanged();
|
||||
mkdirSync(root, { recursive: true });
|
||||
const issue = await g.issue(`【${role}】${t.title}`, body, runId);
|
||||
this.current(t);
|
||||
const corrections = t.corrections;
|
||||
t = unchanged();
|
||||
t.corrections = corrections;
|
||||
const r: Run = {
|
||||
id: runId,
|
||||
taskId: t.id,
|
||||
@ -388,18 +438,33 @@ export class Engine {
|
||||
failed_run_ids: failed.map((r) => r.id) }, eventId);
|
||||
this.current(t);
|
||||
}
|
||||
startAssigned(t: Task, r: Run) {
|
||||
this.current(t);
|
||||
async startAssigned(t: Task, r: Run) {
|
||||
r = this.store.run(r.id);
|
||||
const assignedTask = this.current(t);
|
||||
if (assignedTask.headSha !== t.headSha || assignedTask.baseSha !== t.baseSha ||
|
||||
assignedTask.mergedSha !== t.mergedSha || r.baseSha !== t.baseSha ||
|
||||
r.headSha !== (t.mergedSha ?? t.headSha))
|
||||
throw new Error("分派候选或基线已变化");
|
||||
t = assignedTask;
|
||||
const { cwd, branch, role, runtime } = r;
|
||||
const root = dirname(cwd);
|
||||
if (r.revision !== t.revision || r.status !== "queued" || r.dispatchPhase !== "unstarted" ||
|
||||
r.pid !== null || r.startedAt !== null || r.sessionId !== null || this.state(r))
|
||||
throw new Error("Cannot prove dispatch has not started");
|
||||
// No await between durable intent and spawn: a crash here must fail closed.
|
||||
// Durable launch intent covers preparation too: a restart must never repeat it.
|
||||
r.dispatchPhase = "launching";
|
||||
this.store.saveRun(r);
|
||||
git(["clone", t.repository, cwd]);
|
||||
git(["checkout", "-b", branch, r.headSha ?? r.baseSha], cwd);
|
||||
await this.gitTask(t, ["clone", t.repository, cwd]);
|
||||
const prepared = this.current(t);
|
||||
if (prepared.headSha !== t.headSha || prepared.baseSha !== t.baseSha ||
|
||||
prepared.mergedSha !== t.mergedSha || this.store.run(r.id).status !== "queued")
|
||||
throw new Error("准备期间执行或候选已变化");
|
||||
await this.gitTask(t, ["checkout", "-b", branch, r.headSha ?? r.baseSha], cwd);
|
||||
const currentTask = this.current(t), currentRun = this.store.run(r.id);
|
||||
if (currentTask.headSha !== t.headSha || currentTask.baseSha !== t.baseSha || currentTask.mergedSha !== t.mergedSha ||
|
||||
currentRun.status !== "queued" || currentRun.dispatchPhase !== "launching")
|
||||
throw new Error("准备期间任务或候选已变化,禁止迟到启动");
|
||||
t = currentTask; r = currentRun;
|
||||
const bridge = join(here, "worker.js");
|
||||
const prompt = `你是 ${role},只负责 ${r.issueUrl}。独立目录 ${cwd}。先执行 node ${bridge} read 读取正式任务与评论;需要时读取仓库规范。具体需求仅从 Gitea 获取,不读其他执行者目录。直接完成授权工作。中文 Markdown 报告写到临时文件,通过 node ${bridge} report 报告.md pass或changes_requested或failed HEAD_SHA BASE_SHA 证据URL... 发布。开发先 commit、push,再执行 node ${bridge} pr 报告.md 创建 PR,再 report。Git 提交与报告使用中文。不得仅 stdout 声称完成。`;
|
||||
writeFileSync(
|
||||
@ -533,7 +598,7 @@ export class Engine {
|
||||
if (r.role === "developer" && report.conclusion === "pass") {
|
||||
if (!t.prNumber) throw new Error("开发必须先创建 PR");
|
||||
const p = await this.g(t).api(`/pulls/${t.prNumber}`);
|
||||
this.checkFrozen(t, report.headSha);
|
||||
await this.checkFrozen(t, report.headSha);
|
||||
if (!(await this.g(t).containsBase(r.baseSha, report.headSha)))
|
||||
throw new Error(
|
||||
"开发候选未包含分配基线,须合并或变基到当前目标基线后重新交付",
|
||||
@ -606,7 +671,7 @@ export class Engine {
|
||||
this.store.event(t.id, "recovery", `运行 ${r.id}:${r.error}。后续由编排模型重新决定,原执行与修正预算不重置。`);
|
||||
return true;
|
||||
}
|
||||
async observe(t: Task) {
|
||||
async observe(t: Task, resultsOnly = false) {
|
||||
const g = this.g(t);
|
||||
await g.flush();
|
||||
for (let r of this.store.runs(t.id)) {
|
||||
@ -720,6 +785,8 @@ export class Engine {
|
||||
this.store.save(t);
|
||||
}
|
||||
}
|
||||
if (resultsOnly) continue;
|
||||
if (r.status === "queued" && this.gitChildren.get(t.id)?.size) continue;
|
||||
if (r.status === "queued") {
|
||||
const assigned = this.store.published(t.id).some((e) => {
|
||||
const m = marker(e.body);
|
||||
@ -731,7 +798,7 @@ export class Engine {
|
||||
});
|
||||
if (assigned && r.dispatchPhase === "unstarted" &&
|
||||
r.pid === null && r.startedAt === null && r.sessionId === null && !this.state(r)) {
|
||||
this.startAssigned(t, r);
|
||||
await this.startAssigned(t, r);
|
||||
continue;
|
||||
}
|
||||
r.status = "recovery_required";
|
||||
@ -740,6 +807,7 @@ export class Engine {
|
||||
t.status = "recovery_required";
|
||||
t.error = r.error;
|
||||
this.store.save(t);
|
||||
this.stopGit(t);
|
||||
}
|
||||
if (r.status === "running") {
|
||||
const s = this.state(r);
|
||||
@ -813,7 +881,7 @@ export class Engine {
|
||||
const p = await g.api(`/pulls/${t.prNumber}`),
|
||||
base = (await g.branch(t.targetBranch)).commit.id;
|
||||
mergeGate(this.current(t), this.store.runs(t.id), p.head.sha, base);
|
||||
this.checkFrozen(t, p.head.sha);
|
||||
await this.checkFrozen(t, p.head.sha);
|
||||
const files = await g.pages(`/pulls/${t.prNumber}/files`);
|
||||
if (
|
||||
files.some(
|
||||
@ -955,6 +1023,7 @@ export class Engine {
|
||||
t.status = p.action === "fail" ? "failed" : "blocked";
|
||||
t.error = p.reason;
|
||||
this.store.save(t);
|
||||
this.stopGit(t);
|
||||
for (const r of this.store.runs(t.id))
|
||||
if (r.status === "running") this.stop(r);
|
||||
} else if (p.action === "wait") {
|
||||
@ -1076,6 +1145,7 @@ export class Engine {
|
||||
}
|
||||
}
|
||||
reconcileStopped(t: Task) {
|
||||
this.stopGit(t);
|
||||
for (const r of this.store.runs(t.id)) {
|
||||
if (!["running", "queued", "recovery_required"].includes(r.status)) continue;
|
||||
const state = this.state(r);
|
||||
@ -1095,8 +1165,21 @@ export class Engine {
|
||||
this.store.saveRun(r);
|
||||
}
|
||||
}
|
||||
observingResults = false;
|
||||
async tick() {
|
||||
if (this.busy) return;
|
||||
if (this.busy) {
|
||||
// Git preparation may occupy the decision loop, but trusted results still converge.
|
||||
if (this.observingResults || ![...this.gitChildren.values()].some((jobs) => jobs.size)) return;
|
||||
this.observingResults = true;
|
||||
try {
|
||||
for (const task of this.store.tasks().filter((t) => !terminal(t.status)))
|
||||
await this.observe(task, true);
|
||||
} catch (error) {
|
||||
for (const taskId of this.gitChildren.keys())
|
||||
this.store.event(taskId, "network", `准备期间结果轮询稍后重试:${redact(String(error))}`);
|
||||
} finally { this.observingResults = false; }
|
||||
return;
|
||||
}
|
||||
this.busy = true;
|
||||
try {
|
||||
for (const repository of new Set(
|
||||
@ -1163,6 +1246,7 @@ export class Engine {
|
||||
t.error = redact(String(e));
|
||||
t.wake = false;
|
||||
this.store.save(t);
|
||||
this.stopGit(t);
|
||||
for (const r of this.store.runs(t.id))
|
||||
if (r.status === "running") this.stop(r);
|
||||
this.store.event(t.id, "failure", t.error);
|
||||
|
||||
@ -5,9 +5,9 @@ export interface FrozenManifest {
|
||||
files: { path: string; blob: string; mode: string }[];
|
||||
digest: string;
|
||||
}
|
||||
function tree(repo: string, sha: string) {
|
||||
function tree(repo: string, sha: string, prepared?: string) {
|
||||
if (!/^[a-f0-9]{40}$/.test(sha)) throw new Error("冻结检查的 SHA 无效");
|
||||
const output = execFileSync(
|
||||
const output = prepared ?? execFileSync(
|
||||
"git",
|
||||
["--git-dir", repo, "ls-tree", "-r", "-z", sha],
|
||||
{ encoding: "utf8", maxBuffer: 16 * 1024 * 1024 },
|
||||
@ -26,8 +26,9 @@ export function captureFrozen(
|
||||
baseSha: string,
|
||||
explicit: string[],
|
||||
description: string,
|
||||
prepared?: string,
|
||||
): FrozenManifest {
|
||||
const entries = tree(repo, baseSha);
|
||||
const entries = tree(repo, baseSha, prepared);
|
||||
for (const path of explicit) {
|
||||
if (
|
||||
path.startsWith("/") ||
|
||||
@ -68,8 +69,9 @@ export function assertFrozen(
|
||||
repo: string,
|
||||
head: string,
|
||||
manifest: FrozenManifest,
|
||||
prepared?: string,
|
||||
) {
|
||||
const actual = new Map(tree(repo, head).map((e) => [e.path, e]));
|
||||
const actual = new Map(tree(repo, head, prepared).map((e) => [e.path, e]));
|
||||
for (const expected of manifest.files) {
|
||||
const file = actual.get(expected.path);
|
||||
if (!file || file.blob !== expected.blob || file.mode !== expected.mode)
|
||||
|
||||
34
apps/server/src/git-job.ts
Normal file
34
apps/server/src/git-job.ts
Normal file
@ -0,0 +1,34 @@
|
||||
import { spawn, execFileSync } from "node:child_process";
|
||||
import { readFileSync, writeFileSync, appendFileSync, renameSync } from "node:fs";
|
||||
import { join } from "node:path";
|
||||
import { redact, secrets } from "./gitea.js";
|
||||
const root = process.argv[2];
|
||||
const spec = JSON.parse(readFileSync(join(root, "spec.json"), "utf8"));
|
||||
for (const value of spec.secrets) secrets.add(value);
|
||||
const state = { pid: process.pid, identity: execFileSync("ps", ["-p", String(process.pid), "-o", "lstart="], { encoding: "utf8" }).trim(), endedAt: null as string | null, error: null as string | null, childPid: null as number | null };
|
||||
const save = () => { writeFileSync(join(root, "state.tmp"), JSON.stringify(state)); renameSync(join(root, "state.tmp"), join(root, "state.json")); };
|
||||
save();
|
||||
const child = spawn("git", spec.args, { cwd: spec.cwd, detached: true, env: { ...process.env, GIT_TERMINAL_PROMPT: "0" }, stdio: ["ignore", "pipe", "pipe"] });
|
||||
state.childPid = child.pid ?? null; save();
|
||||
const signal = (name: NodeJS.Signals) => { if (child.pid) try { process.kill(-child.pid, name); } catch {} };
|
||||
let killTimer: ReturnType<typeof setTimeout> | undefined;
|
||||
const stop = (reason: string) => { state.error ??= reason; save(); signal("SIGTERM"); killTimer ??= setTimeout(() => signal("SIGKILL"), 2500); };
|
||||
process.on("SIGTERM", () => stop("Git 准备已取消"));
|
||||
process.on("SIGINT", () => stop("Git 准备已取消"));
|
||||
const timer = setTimeout(() => stop("Git 准备超过 60 秒"), 60000);
|
||||
let output = "";
|
||||
for (const [name, stream] of [["stdout", child.stdout], ["stderr", child.stderr]] as const) {
|
||||
stream.setEncoding("utf8"); let pending = "";
|
||||
stream.on("data", (chunk: string) => { if (name === "stdout") output += chunk; pending += chunk; let end; while ((end = pending.indexOf("\n")) >= 0) { appendFileSync(join(root, name + ".log"), redact(pending.slice(0, end + 1))); pending = pending.slice(end + 1); } });
|
||||
stream.on("end", () => { if (pending) appendFileSync(join(root, name + ".log"), redact(pending)); });
|
||||
}
|
||||
child.on("error", (error) => { state.error ??= redact(String(error)); });
|
||||
child.on("close", (code) => {
|
||||
clearTimeout(timer);
|
||||
// The Git leader can exit before its descendants; retire its owned group too.
|
||||
if (killTimer) { signal("SIGKILL"); clearTimeout(killTimer); }
|
||||
if (code !== 0) state.error ??= `Git 退出 ${code}`;
|
||||
state.endedAt = new Date().toISOString();
|
||||
writeFileSync(join(root, "result.json"), JSON.stringify({ output: redact(output).trim(), error: state.error }));
|
||||
save(); process.exitCode = state.error ? 1 : 0;
|
||||
});
|
||||
@ -526,3 +526,29 @@ test("SDK dispatch decision labels pre-action correction count without changing
|
||||
store.db.close();
|
||||
}
|
||||
});
|
||||
|
||||
test("准备 await 期间重复旧分派快照不能重复启动,合法取消阻止迟到启动", async () => {
|
||||
const { store, engine, t, r } = setup();
|
||||
Object.assign(r, { status: "queued", dispatchPhase: "unstarted", pid: null, sessionId: null, startedAt: null });
|
||||
store.saveRun(r);
|
||||
engine.state = () => null;
|
||||
engine.g = () => ({ publish: async () => {} }) as any;
|
||||
let release!: () => void;
|
||||
let preparations = 0;
|
||||
engine.gitTask = async () => {
|
||||
preparations++;
|
||||
await new Promise<void>((resolve) => { release = resolve; });
|
||||
return "";
|
||||
};
|
||||
const first = engine.startAssigned(t, { ...r });
|
||||
const stopped = assert.rejects(first, /任务已停止/);
|
||||
await assert.rejects(engine.startAssigned(t, { ...r }), /Cannot prove/);
|
||||
assert.equal(preparations, 1);
|
||||
await engine.cancel(t.id);
|
||||
release();
|
||||
await stopped;
|
||||
assert.equal(store.task(t.id).status, "cancelled");
|
||||
assert.equal(store.run(r.id).pid, null);
|
||||
assert.equal(preparations, 1);
|
||||
store.db.close();
|
||||
});
|
||||
|
||||
97
apps/server/test/slow-git-check.mjs
Normal file
97
apps/server/test/slow-git-check.mjs
Normal file
@ -0,0 +1,97 @@
|
||||
// Actual Engine/Store/Gitea, local Git and harmless CLI processes. Only remote transport
|
||||
// and orchestration choices are injected; no model requests or existing service used.
|
||||
import assert from 'node:assert/strict';
|
||||
import {execFileSync} from 'node:child_process';
|
||||
import {mkdirSync,mkdtempSync,writeFileSync,readFileSync,existsSync,readdirSync} from 'node:fs';
|
||||
import {resolve,join} from 'node:path';
|
||||
import {Engine} from '../dist/engine.js';
|
||||
import {Store,now} from '../dist/store.js';
|
||||
import {Gitea} from '../dist/gitea.js';
|
||||
const root=resolve('.ppanel/git-validation');mkdirSync(root,{recursive:true});
|
||||
const suite=mkdtempSync(join(root,'run-')),bin=join(suite,'bin'),repo=join(suite,'source');mkdirSync(bin);mkdirSync(repo);
|
||||
const realGit=execFileSync('which',['git'],{encoding:'utf8'}).trim(),url='https://example.invalid/o/r';
|
||||
const git=(...args)=>execFileSync(realGit,args,{cwd:repo,encoding:'utf8',stdio:['ignore','pipe','pipe']}).trim();
|
||||
git('init');writeFileSync(join(repo,'fixture.txt'),'无害本地样本\n');git('add','.');git('-c','user.name=QA','-c','user.email=qa@example.invalid','commit','-m','受控样本');const sha=git('rev-parse','HEAD');
|
||||
writeFileSync(join(bin,'git'),`#!${process.execPath}\nconst fs=require('node:fs'),cp=require('node:child_process');let args=process.argv.slice(2);if(args[0]==='credential'){console.log('username=fixture\\npassword=SYNTHETIC_ONLY');process.exit(0);}args=args.map(x=>x===${JSON.stringify(url)}?${JSON.stringify(repo)}:x);const flag=process.env.GIT_TEST_FLAG;async function main(){if(args[0]==='clone'&&fs.existsSync(flag)){fs.writeFileSync(flag+'.started',String(process.pid));await new Promise(r=>setTimeout(r,14000));}const c=cp.spawn(${JSON.stringify(realGit)},args,{stdio:'inherit'});c.on('exit',(code)=>process.exit(code??1));}main();\n`,{mode:0o755});
|
||||
writeFileSync(join(bin,'pi'),`#!${process.execPath}\nconst fs=require('node:fs');fs.writeFileSync(process.env.PPANEL_RUN_ROOT+'/fixture-ready.json',JSON.stringify({pid:process.pid}));process.on('SIGTERM',()=>process.exit(0));setInterval(()=>{},100);\n`,{mode:0o755});
|
||||
process.env.PATH=bin+':'+process.env.PATH;
|
||||
const sleep=ms=>new Promise(r=>setTimeout(r,ms));
|
||||
const until=async(fn,ms=10000)=>{const start=Date.now();while(!fn()){assert.ok(Date.now()-start<ms,'timed out');await sleep(20);}};
|
||||
const live=pid=>{try{process.kill(pid,0);return true;}catch{return false;}};
|
||||
const results=[];
|
||||
const modes=['cancel','revise','head','base','restart','result','replay','lost-assignment'];
|
||||
const selected=process.argv.slice(2);
|
||||
assert.ok(selected.every(mode=>modes.includes(mode)));
|
||||
for(const mode of selected.length?selected:modes){
|
||||
const dir=join(suite,mode);mkdirSync(dir);process.env.GIT_TEST_FLAG=join(dir,'slow');
|
||||
const store=new Store(join(dir,'control.sqlite')),cfg={data:dir,port:0,maxRuns:20,maxCorrections:3,runMs:60000,taskMs:5400000};
|
||||
const engine=new Engine(store,cfg),t={id:'task',title:'慢Git边界',goal:'受控验证',acceptance:'保留要求',status:'reviewing',revision:1,repository:url,targetBranch:'qa',headSha:sha,baseSha:sha,issueNumber:1,issueUrl:url+'/issues/1',corrections:0,modelCalls:0,wake:true,createdAt:now()};store.save(t);
|
||||
const run=(id,role,status)=>({id,taskId:t.id,role,runtime:'pi',status,dispatchPhase:'unstarted',revision:1,cwd:join(dir,id,'repo'),pid:null,sessionId:null,startedAt:null,endedAt:null,headSha:sha,baseSha:sha,issueNumber:role==='reviewer'?2:3,issueUrl:url+'/issues/2',branch:id,token:'SYNTHETIC_ONLY',postMerge:false});
|
||||
const dev=run('dev','developer','completed');dev.result={conclusion:'pass',headSha:sha,baseSha:sha,evidenceLinks:[],body:'受控前置交付'};store.saveRun(dev);
|
||||
const g=Object.create(Gitea.prototype);Object.assign(g,{store,repository:url});let serial=0, loseAssignment=false;const comments=new Map();
|
||||
g.api=async(path,method='GET',body)=>{if(path==='/issues'&&method==='POST')return{number:4,html_url:url+'/issues/4'};if(path.startsWith('/issues?'))return[];const m=path.match(/^\/issues\/(\d+)\/comments/);if(m){const n=Number(m[1]);const rows=comments.get(n)??[];comments.set(n,rows);if(method==='POST'){const c={id:++serial,body:body.body,html_url:url+'/issues/'+n+'#'+serial};rows.push(c);if(loseAssignment){loseAssignment=false;throw new Error("ECONNRESET response lost");}return c;}return path.includes('page=2')?[]:rows;}return{};};engine.g=()=>g;
|
||||
const reviewer=run('reviewer','reviewer','queued');store.saveRun(reviewer);await engine.startAssigned(t,reviewer);await until(()=>existsSync(join(dir,'reviewer','fixture-ready.json')));
|
||||
let pending,interval,secondStore;let detail={};
|
||||
try{
|
||||
if (!['replay','lost-assignment'].includes(mode)) writeFileSync(process.env.GIT_TEST_FLAG,'1');
|
||||
// The real tick owns busy while its controlled decision awaits actual dispatch.
|
||||
engine.decide=async()=>{const fresh=store.task(t.id);fresh.wake=false;store.save(fresh);await engine.dispatch(t.id,'qa','pi','受控慢Git分派');};
|
||||
if(mode==='lost-assignment')loseAssignment=true;
|
||||
pending=engine.tick();
|
||||
if(['replay','lost-assignment'].includes(mode)){
|
||||
await pending;
|
||||
if(mode==='lost-assignment'){
|
||||
const recovered=new Engine(store,cfg);recovered.g=()=>g;await recovered.observe(store.task(t.id));
|
||||
}
|
||||
const qa=store.runs(t.id).find(r=>r.role==='qa');assert.equal(qa.status,'running');
|
||||
await until(()=>existsSync(join(qa.cwd,'..','fixture-ready.json')));
|
||||
const before=readFileSync(join(qa.cwd,'..','state.json'),'utf8');
|
||||
const preparedCount=readdirSync(join(dir,'tasks',t.id,'git')).length;
|
||||
for(let i=0;i<3;i++)await engine.observe(store.task(t.id));
|
||||
assert.equal(readdirSync(join(dir,'tasks',t.id,'git')).length,preparedCount);
|
||||
assert.equal(JSON.parse(readFileSync(join(qa.cwd,'..','state.json'))).pid,JSON.parse(before).pid);
|
||||
assert.equal(store.runs(t.id).filter(r=>r.role==='qa').length,1);
|
||||
results.push({mode,ok:true,preparationJobs:preparedCount});continue;
|
||||
}
|
||||
await until(()=>existsSync(process.env.GIT_TEST_FLAG+'.started'));
|
||||
const sent=performance.now();
|
||||
if(mode==='cancel')await engine.cancel(t.id);
|
||||
if(mode==='revise')await engine.revise(t.id,'合法用户补充要求');
|
||||
if(mode==='head'||mode==='base'){const fresh=store.task(t.id);fresh[mode==='head'?'headSha':'baseSha']='c'.repeat(40);store.save(fresh);}
|
||||
if(mode==='restart'){
|
||||
// Reopen SQLite with a fresh Engine: in-memory ownership is deliberately lost.
|
||||
secondStore=new Store(join(dir,'control.sqlite'));const recovered=new Engine(secondStore,cfg);recovered.g=()=>g;await recovered.observe(secondStore.task(t.id));
|
||||
assert.equal(secondStore.task(t.id).status,'recovery_required');assert.equal(secondStore.runs(t.id).find(r=>r.role==='qa').status,'recovery_required');
|
||||
// observe must retire the verified preparation helper without relaunching.
|
||||
}
|
||||
if(mode==='result'){
|
||||
interval=setInterval(()=>void engine.tick(),5000);
|
||||
await engine.report(engine.authenticate('reviewer','Bearer SYNTHETIC_ONLY'),{conclusion:'pass',headSha:sha,baseSha:sha,body:'可信报告在准备期间到达',evidenceLinks:[url+'/commit/'+sha]});
|
||||
await until(()=>store.cursor('report:reviewer')>0,15000);
|
||||
detail.queueSeconds=(performance.now()-sent)/1000;
|
||||
assert.ok(detail.queueSeconds<15);assert.equal(store.run('reviewer').status,'completed');
|
||||
const qa=store.runs(t.id).find(r=>r.role==='qa');assert.equal(qa.dispatchPhase,'launching');assert.equal(qa.pid,null);
|
||||
assert.ok(store.events(t.id).some(e=>e.kind==='result'));assert.ok(store.published(t.id).some(e=>e.kind==='result'));
|
||||
// A legal report must not cause the queued QA to be classified as unknown.
|
||||
assert.notEqual(store.task(t.id).status,'recovery_required');
|
||||
await engine.cancel(t.id);
|
||||
}
|
||||
await pending;
|
||||
const qa=store.runs(t.id).find(r=>r.role==='qa');assert.equal(qa.pid,null);assert.equal(existsSync(join(qa.cwd,'..','spec.json')),false);
|
||||
if(['cancel','revise','result','restart'].includes(mode)){
|
||||
const gitRoot=join(dir,'tasks',t.id,'git');
|
||||
await until(()=>readdirSync(gitRoot).every(job=>{const p=join(gitRoot,job,'state.json');return !existsSync(p)||!live(JSON.parse(readFileSync(p)).pid);}),10000);
|
||||
for(const job of readdirSync(gitRoot)){const p=join(gitRoot,job,'state.json');if(existsSync(p)){const state=JSON.parse(readFileSync(p));assert.ok(!live(state.pid));if(state.childPid)assert.ok(!live(state.childPid));}}
|
||||
}
|
||||
detail.elapsedSeconds=(performance.now()-sent)/1000;
|
||||
if(mode==='cancel'||mode==='revise')assert.ok(detail.elapsedSeconds<10);
|
||||
results.push({mode,ok:true,...detail});
|
||||
}catch(error){results.push({mode,ok:false,error:String(error),...detail});}
|
||||
finally{
|
||||
clearInterval(interval);engine.stopGit(store.task(t.id));for(const r of store.runs(t.id))engine.stop(r);
|
||||
if(pending)await pending;await sleep(6200);secondStore?.db.close();store.db.close();
|
||||
}
|
||||
console.log(results.at(-1));
|
||||
}
|
||||
writeFileSync(join(suite,'results.json'),JSON.stringify({boundary:'真实Engine/Store/Gitea与本地Git;远端传输及模型决定为明确故障注入',results},null,2));
|
||||
console.log('Evidence:',suite);assert.ok(results.every(r=>r.ok));
|
||||
@ -179,3 +179,37 @@ typecheck/build、28单测通过;新增混合普通文本/pretty JSON在1、3
|
||||
30项测试、typecheck/build通过。新增1/2/4/10层任意字段名编码回归,每层可解析,秘密替换,完整中文/转义/非秘密字段保留,并覆盖非JSON命令及非法转义不会抛错。完整前后日志和安全工件在本clone .ppanel/layout47。
|
||||
|
||||
仅脱敏算法和相关测试/说明改变,门禁、预算、模型、信号、首因/exitError及计数标签未改。未操作任何当前任务或服务;不宣称完整MVP通过,交同一独立CR复核。
|
||||
|
||||
## 慢 Git 准备与取消、结果并发(Issue #6 / 评论 19621)
|
||||
|
||||
固定 f2126058d6aba700a90d9869a7989feeb6b8bcce 的 probe.py/server.mjs 原样运行;逐字节 SHA256 为 7c55bcaa6029f363cae9c9a979dacbb03633a92d5a7dd5d489a6b0ca4a35e518 / 62ee0add23777744adadbb1739cdf2562892551add702976d450ca2d103a5da7。真实 Fastify HTTP、SQLite、supervisor 与本地 Git;远端和 CLI 为明确受控样本,无模型调用,未修改计时起点及门槛。
|
||||
|
||||
| 原样 HTTP 探针 | 取消请求至落库 | 既有进程结束 |
|
||||
| --- | ---: | ---: |
|
||||
| 007bf09 修复前,延迟 14 秒 | 14.124845 秒 | 16.632187 秒 |
|
||||
| 修复后,延迟 14 秒 | 0.035435 秒 | 2.546009 秒 |
|
||||
| 修复后,延迟 0 秒 | 0.031791 秒 | 2.539364 秒 |
|
||||
|
||||
原始请求与采样提交在 apps/server/evidence/slow-git 的 before/slow/zero.json。原探针硬编码 productSha=8d374084,保留原字段但不可当本次版本标签;本次源文件以 source-hashes.json 及包含此记录的提交为准。完整本地运行日志、身份文件和清理结果保留 .ppanel/slow26、.ppanel/issue26/slow-start、.ppanel/git-validation,没有提交运行目录。
|
||||
|
||||
clone、checkout、fetch、ls-tree 移入独立 Git helper,保留原 60 秒上限;记录 helper 身份、Git 进程组、退出原因和脱敏输出。取消/修订先落库,再终止准备,必要时 2.5 秒后 SIGKILL。helper 自身超时独立于 HTTP 进程。launching 在准备前持久化,重开后未知状态仍 recovery_required,终止已确认身份的准备而不重派。仅 check-ref-format 保留本地同步参数检查。
|
||||
|
||||
准备前后检查 revision、head/base、merged SHA 和有效状态;startAssigned 重读 run,拒绝旧快照重复启动。分派远端 await 后重新比较候选、修正预算和 runs 快照,再读取最新任务保存。准备期间可独立轮询可信结果,不启动第二轮模型决定,仍使用原 outbox/published、正文/marker、游标门禁。
|
||||
|
||||
补充检查命令:npm run build --prefix apps/server,然后 node apps/server/test/slow-git-check.mjs;可传单个场景 restart。实际 Engine/Store/Gitea、Git 和 supervisor,仅 Gitea transport、模型决定和 CLI 为明确受控输入。8 项覆盖合法取消、revise、head/base 注入、SQLite 重开、可信 RESULT、三次 assignment 重放、发布响应丢失恢复。结果在 boundaries.json。一次样本清理影响了其中 restart 的既有 reviewer,因此以单独无干扰重跑 restart-isolated.json 为该项证据。首次自写脚本提前关闭 DB 导致 stop 回调报错,已改为等回调后关闭,失败日志保留,不算成功。
|
||||
|
||||
可信 RESULT 经过 authenticate、report、Gitea outbox、published、tick 消费;5 秒生产轮询节奏下,5.012558 秒内 result 事件、report cursor、运行 completed 可见,此时 QA 仍 launching 且没有 runtime PID。这是更强的消费验证,不把游标消费变成 A11 新冻结要求;原 A11 衡量事件入队。取消/修订/重开验证准备 helper 和 Git PID 退出、没有迟到 supervisor spec/PID;正常和丢响应重放均只启动一次 QA。
|
||||
|
||||
31 单测及 build/typecheck 通过。原固定 25 项返工现在 25/25,32 项恢复 32/32。此前 21/4 条件性判断描述旧同步实现,此次新增 await 后已显式防御四项快照变化;四项仍是直接 Store 注入,不据此声称全部存在合法生产写入者。另有合法 cancel/revise/report 实测。
|
||||
|
||||
原样 8dcf3a4 故障脚本 18/20,失败全文 original-a07.txt:两项探针断言所有 spawn 必须启动 supervisor.js,新增 git-job.js 在执行真实 Git 前被探针拒绝。未修改独立断言获取通过;自写真实进程 replay/lost-assignment 补验对应行为,不把原脚本记作 20/20。
|
||||
|
||||
未改模型/限额、已审 supervisor 信号和首因/脱敏、冻结要求、其他角色文件、现有任务或服务;未重跑收费 A02/A03 或无关 600 秒。这是定向开发验证,仍需独立 CR/QA 核查当前提交,不宣称最终 MVP 通过。
|
||||
|
||||
### 续接:固定 9cebe389 独立 HTTP 探针
|
||||
|
||||
收到评论 19626/19627 后,从固定 9cebe389ceaa1664d9131b197bea07c165e23cc7 取出 boundary-probe.py、boundary-server.mjs、check-results.py 原样运行:cancel/revise 延迟 14 秒,result/result-during 延迟 17 秒,result-zero 延迟 0 秒。14 项原断言全部通过,结果在 evidence/slow-git/http/assertions.json;包含原取消探针结果,未改变冻结计时或探针。
|
||||
|
||||
其中 result-during 的 publishedDuringPreparation=true。合法认证 worker HTTP 报告确实在慢准备期间经产品 outbox 发布,独立 Python HTTP 远端记录的实际发布时刻至 SQLite result 事件为 0.027010 秒,至 report cursor 为 4.326513 秒。事件满足 A11 原 15 秒入队要求;游标指标另列,不升级为冻结要求。cancel/revise 也通过真实产品 HTTP 入口,旧 QA 未在请求后启动。真实 Git、Fastify、SQLite、supervisor;只注入远端 API 和无害 CLI/模型决定,没有外部模型请求。服务随机端口、数据均本 clone,未操作现有服务。
|
||||
|
||||
这些原样探针记录 baseline=007bf09,因为运行时尚未 commit;实际编译源内容由本次 source-hashes.json 绑定,不能把旧 HEAD 标签当作未修改基线结果。新增原始 HTTP 请求/采样/远端正文/清理结果随代码提交,供同一 SHA 独立审查。
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user