Files
wx-win-agent/docs/validation/raw/README.md
T

27 lines
2.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# P4 原始验收记录
这些文件不是摘要:它们是由可重放脚本或现场命令直接生成的脱敏记录。
- `cursor-http-transcript.sh/.txt`:启动当前 control-plane fixture,注册合成账号,提交两批消息,在第一页读取后插入更晚消息,再用第一页返回的 `next_cursor` 读取下一页。第二页只包含游标边界之后的旧消息,证明 `(source_time, message_id)` keyset 分页不会被插入的新消息推移。
- `p4-live-operations.jsonl`:由可重放 harness 直接 stdout 生成的 Windows 交互 Session 1 原始 JSONL,包含部署 SHA、durable queue 断线/恢复、Tray 进程重启、授权撤销前的真实待发队列、撤销后的队列清理与撤销观察窗口、Web Bearer revoke/403/有效 batch 拒绝/重新注册恢复,以及 control-plane stop/restart 前后 SQLite integrity/counts。只保留 PID、Session、HTTP 状态、文件 SHA 和计数。
- `p4-live-commands.log`:同一次 harness 的原始 PowerShell/本地命令与输出,包含远程 `Get-FileHash`、`Get-Process`、queue/state 文件 hash 和 local control-plane PID;含有的 CLIXML 是 SSH 原始输出,不作摘要替代。
- `capacity-metrics.txt`:Go capacity test 的 `t.Log` 原始输出,包含磁盘/WAL/page、busy timeout、连接、锁等待、积压和 P95/P99。
## 复核方式
```bash
# 复核游标 HTTP 记录(需要 Go、curl、jq、python3)
(cd control-plane && go build -o /tmp/wxagent-control-plane-cursor ./cmd/wxagent-control-plane)
CONTROL_PLANE_BIN=/tmp/wxagent-control-plane-cursor \
docs/validation/raw/cursor-http-transcript.sh
# 核对现场记录的 JSONL 格式和跨事件不变量
jq -c . docs/validation/raw/p4-live-operations.jsonl
docs/validation/raw/verify-p4-live-operations.sh
# 复核容量原始指标
rg 'capacity_metrics=' docs/validation/raw/capacity-metrics.txt
```
现场记录对应实现提交 `e8a8b2f` 的 control-plane/Tray 构建;Windows Tray 的远程部署 SHA 在同一次 harness 运行中核验。`EnableDataSync=false` 是项目安全边界要求的默认值;现场只对明确授权、白名单账号临时开启,验收后已恢复关闭。