Compare commits

...

1 Commits

Author SHA1 Message Date
pptg
d4de5f6db5 测试:记录 Issue 108 固定候选独立 QA 证据 2026-09-12 08:21:47 +08:00
24 changed files with 787 additions and 0 deletions

View File

@ -0,0 +1,257 @@
# Issue #108 独立 QA 报告
结论:`pass`(仅本轮候选 QA,不代表已集成或最终交付)。需求版本 `1`,检查 SHA `fbd37c56a7cd1e69201679f9ea3275204423dd90`,基线 SHA `411cea6bd5a55848791051f4c47da325626ecb76`。
任务:[Issue #108](https://gitea.d-robotics.cc/peng01.guo/ppanel/issues/108),根任务:[Issue #102](https://gitea.d-robotics.cc/peng01.guo/ppanel/issues/102),候选:[PR #104](https://gitea.d-robotics.cc/peng01.guo/ppanel/pulls/104)。正式任务及评论通过指定 `worker.js read` 获取。独立 clone 与独立本地服务 `127.0.0.1:18608`,未使用开发者端口 `18503`、临时目录或自测结论。业务代码未修改。
## 完整契约对照
| 项 | 结果与实际证据 |
| --- | --- |
| 1 产品编排与追溯 | 本角色由控制面分派 Issue #108,依指定工具读取并回报;开发和 PR 来自 Gitea。全流程最终集成尚待控制面推进,本 QA 不替代编排或集成。 |
| 2 虚拟筹码 | 源码及真实页面为虚拟筹码,初始每人 1000,未见充值、提现或支付接口。 |
| 3 建桌、邀请、多模型 | Chrome 管理员建桌成功;同页玩家 1 → 2 邀请切换恢复“接受邀请”,HTTP 席位先为 `[true,false,false]`;另外三份邀请分别在独立 Chrome 页加入,HTTP 为 `[true,true,true]`。真实三玩家、两模型由固定证据复核。 |
| 4 鉴权、私有观察、非法动作 | 独立服务运行 `api-check.mjs`,鉴权 `403`、非当前玩家 `400` 且状态不变、并发重复动作 `[200,400]`、自己的牌可见他人隐藏,河牌弃牌结束赢家底牌仍隐藏;规则非法下注及版本拒绝测试通过。 |
| 5 规则与守恒 | 11 项规则/持久化测试通过,含短盲全下、all-in、边池、轮次、牌型和河牌弃牌。另写独立测试验证 3 筹码两赢家的真正奇数分配、3 个按钮位置及连续多手 4965 个中间状态守恒/非法动作原子拒绝。 |
| 6 公网与观测 | Chrome 实际打开公网并选择新桌 `52e49afe-dd88-4d89-9cfa-e7b750c9e1e1`。座位、筹码、底池、公共牌、行动者、时间线、历史均可见;新桌停于第四手,三条已完成历史各 `3000`。本地运行桌观察底牌保密。HTML/JS/CSS 下载逐字相同。 |
| 7 三手真实对局 | 从固定 Git 证据重新统计三位玩家 `0/1/2`、`deepseek-v4-flash` 与 `glm-5.3`、24 次成功响应、23 次应用、1 次未应用、1 次错误、23 个状态均守恒,历史 `[3000,3000,3000]`。七个指定运行文件与 `a0737d41f02a8b38bc8c3f72fccfdf23e6d6d4bc` 逐字一致。第四手未完成不计。本轮新模型调用 `0`。 |
| 8 控制、历史及凭据 | Chrome 点击开始、暂停、恢复、停止,HTTP `running` 分别核对;独立页面展开已完成历史,实际显示牌面、结算、筹码与动作。公网未授权模型与私有观察均 `403`,页面无邀请凭据,控制按钮禁用;跟踪文本凭据模式扫描未发现实值。 |
| 9 独立验证与交付 | 本 QA 绑定上述 SHA 与版本;独立证据发布到 Git,报告通过 worker 发布。CR、集成和合入后 QA 属于其他角色,不能用本报告替代。README 已提供安装、启动、邀请、模型配置、持久化和临时隧道生命周期说明。 |
## Git 边界与复用
相对 `c721a1ccb75119f575e06933b78c430e5db571c2` 仅 `projects/agent-poker/README.md` 不同;相对基线全部 74 个变化文件均位于 `projects/agent-poker`。31 个冻结文件使用 `git hash-object` 与任务清单 blob 逐项对照,`git ls-files -s` 对照 mode,全部相同,完整输出如下。前端直接导入共享 `Button`、`PageWorkspace`、`theme.css`、`page-layout.css`、`workbench.css`,共享源码及许可不在变更范围;`style.css` 为导入及扫描声明。
[真实对局固定证据](https://gitea.d-robotics.cc/peng01.guo/ppanel/src/commit/044810adf30631167aae0b89793917d91bfed93c/evidence/issue-35-a073)为历史真实模型记录。本轮重新检查事件玩家、合法动作、输出、原始记录摘要、应用标记、结算和筹码,不读取其他角色私有观察。历史调用耗时 `621850ms`、用量 `109853 tokens`、并发 `1`;没有新增模型费用。旧 `470`/`a3` 证据没有被计为当前规则三手。
保留根 Issue #38、#72 的失败/`blocked`、原预算、原开发非 `pass`、修正轮次耗尽、短盲全下和河牌弃牌隐私缺陷、邀请 UI 修复及 CR #78/#98、QA 历史;本轮不复活、不重置。未操作源站 `4399`、PID `2303`、隧道 `70644` 或 PPanel 控制面。远端目标分支采样仍为基线,详见 `remote.log`。
## 浏览器观察及限制
使用真实 Chrome 扩展连接执行,未用脚本或 fixture 冒称浏览器验证;本地 HTTP 测试动作仅为功能验证,不算真实模型对局。截图 `observer.png`、`history.png`、`public.png` 均已打开人工检查。公网原本默认选择旧桌,本轮明确选择新桌后保存截图,避免混淆旧证据。
非阻断交互现状:打开邀请后,邀请目标正确,但观测区默认显示首张牌桌,需要侧栏切换;这不影响实际加入目标与鉴权。暂停与停止均表现为“已暂停”,与当前接口行为一致。历史展开显示原始完整 JSON,字段与动作完整可读。
未验证:未来持续可用性、物理断电、其他角色 CR/最终合并和合入后 SHA。本轮不对这些未来阶段宣布通过。临时公网依赖本机和隧道存活。文本模式扫描不能数学证明任意形式密钥不存在;本轮发布文件均经检查,私有管理凭据、邀请 URL、服务状态及模型配置不提交。
## 实际命令与原始输出
所有命令在独立 repo 执行,临时文件位于当前角色 `tmp`,设置 `TMPDIR/TMP/TEMP`。完整正式任务保存在该私有目录 `task.json`。
```sh
export TMPDIR="$PWD/../tmp" TMP="$PWD/../tmp" TEMP="$PWD/../tmp"
npm ci --prefix projects/agent-poker
npm run build --prefix projects/agent-poker
npm test --prefix projects/agent-poker
POKER_DATA="$PWD/../tmp/service" POKER_PORT=18608 node projects/agent-poker/server.mjs
POKER_DATA="$PWD/../tmp/service" POKER_URL=http://127.0.0.1:18608 node projects/agent-poker/api-check.mjs
node ../tmp/independent.mjs
python3 ../tmp/verify.py
git diff --name-status c721a1ccb75119f575e06933b78c430e5db571c2 HEAD
git ls-remote origin refs/heads/deliveries/agent-poker-final refs/heads/ppanel/f1aae97e-9494-432a-8575-27d80fcf1041/r1-5
```
公网取证使用 Python `urllib.request.build_opener(urllib.request.ProxyHandler({}))` 直连,每个请求超时 `20` 秒;响应字节用 `hashlib.sha256`,与本地 `dist` 字节比较。以下保存实际结果。
### `install.log`
```text
npm warn deprecated node-domexception@1.0.0: Use your platform's native DOMException instead
added 152 packages, and audited 153 packages in 3s
21 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
npm warn allow-scripts 4 packages have install scripts not yet covered by allowScripts:
npm warn allow-scripts @google/genai@1.52.0 (preinstall: echo 'preinstall: no-op')
npm warn allow-scripts esbuild@0.28.1 (postinstall: node install.js)
npm warn allow-scripts fsevents@2.3.3 (install: (install scripts present))
npm warn allow-scripts protobufjs@7.6.6 (postinstall: node scripts/postinstall)
npm warn allow-scripts
npm warn allow-scripts Run `npm approve-scripts --allow-scripts-pending` to review, or `npm approve-scripts <pkg>` to allow.
```
### `build.log`
```text
> build
> vite build
vite v8.2.2 building client environment for production...
transforming...
✓ 2018 modules transformed.
rendering chunks...
computing gzip size...
dist/index.html 0.33 kB │ gzip: 0.26 kB
dist/assets/index-CU526T7U.css 91.05 kB │ gzip: 18.12 kB
dist/assets/index-BO_t9cEz.js 288.26 kB │ gzip: 92.79 kB
✓ built in 404ms
```
### `test.log`
```text
> test
> node --test test.mjs persistence.test.mjs
✔ 快照替换完整且私有;替换前进程被杀仍保留旧历史 (51.446667ms)
✔ 牌型、轮子顺子及踢脚比较 (0.617958ms)
✔ 边池与平分奇数筹码 (1.491917ms)
✔ 轮次、隐私、重复动作与非法输入均不变更状态 (1.345834ms)
✔ 短 all-in 不重新开放加注;全下自动摊牌守恒 (0.557208ms)
✔ 连续 50 手合法行动筹码守恒 (7.612084ms)
✔ 短大盲全下且小盲已覆盖时直接摊牌,不再允许弃牌 (0.472083ms)
✔ 唯一可行动者只需跟齐实际全下额,不能向无人响应的边池加注 (0.190416ms)
✔ 多人短大盲保留名义大盲;其他玩家弃牌后按实际投注自动摊牌 (0.138375ms)
✔ 河牌弃牌获胜后公开和其他玩家投影隐藏赢家底牌,重载仍隐藏 (0.330208ms)
✔ 真实多人摊牌仍公开未弃牌者底牌 (0.203125ms)
ℹ tests 11
ℹ suites 0
ℹ pass 11
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 83.6295
```
### `api.log`
```text
HTTP 鉴权、隐私、非当前玩家、并发重复动作与河牌弃牌获胜隐私检查通过
```
### `independent.log`
```text
独立奇数筹码:3 筹码底池、2 位平分赢家、3 个按钮位置 PASS
独立连续多手及中间状态守恒 PASS,检查状态数 4965
```
### `verify.log`
```text
100644 2baa132e00c37c61f089e63f705db0f687f29eba acceptance/control-plane/README.md PASS
100644 c34ac840b243af299c3946393f256906a4048069 acceptance/control-plane/REPORT-079d0aa.md PASS
100644 75237b10a2ab14716f2f60c97440f0ccf37d3295 acceptance/control-plane/REPORT-6da1c76.md PASS
100644 26d3e0e744b3875835bbb8224f522f3b62f70ca7 acceptance/control-plane/REPORT.md PASS
100644 116f9c284d943d90fb56db37cd8320cb05fe1056 acceptance/FROZEN.sha256 PASS
100644 3196d46453a9f33f842ddf59e911a5ab3f7d9b65 acceptance/FROZEN.v2.sha256 PASS
100644 ef364891e31b6662d28168492963bb882eaf3ac1 acceptance/README.md PASS
100644 eb809bc3537ad134c86cb80225aaeb5d0483f188 acceptance/tasklist/ACCEPTANCE.md PASS
100644 4f995b0a3aedec7fbd569946700295472b1cd2d8 acceptance/tasklist/test_tasklist_browser.py PASS
100644 cf1c34e9a8717ccc735cc8fd77f22dbfbdd7810e acceptance/tasklist/test_tasklist.py PASS
100644 caaa39b4848f937f86140ece7bc049eb5eb86e03 acceptance/tasks/task-01-filter-total.md PASS
100644 6cde3e6a16687b21a96110849bcb4494ac9d6f89 acceptance/tasks/task-02-pagination.md PASS
100644 83b96d39bee04a66305eb217abbb42e86a138650 acceptance/tasks/task-03-rework-candidate.md PASS
100644 ef23d64339d0f60e76fbdd20a153677bff722a49 apps/server/test/api.test.ts PASS
100644 05c6278eea3e1b9b0909de958db335e316313410 apps/server/test/core.test.ts PASS
100644 548ffbd959f6556b48695dd216d9bf50a0490a95 apps/server/test/engine.test.ts PASS
100644 d9549b5a74ce351d06c903623db6c20c343c91c3 apps/server/test/frozen.test.ts PASS
100644 f887e99e2cdfc95f615dab5ec6e176f1addad2dc apps/server/test/workspace.test.ts PASS
100644 60f430f9b20515a7afe7c413250d5ea6d916f7de apps/web/e2e/issue-marker.spec.ts PASS
100644 0056324a1803211e1bde493e5d51f48389ec5f5a apps/web/e2e/stub-server.mjs PASS
100644 43577e8ca28b5abaa8824855eeadb4842b2f12cb apps/web/e2e/workbench.spec.ts PASS
100644 a54959377221c075497e58e22607472836102808 apps/web/src/features/markdown.test.tsx PASS
100644 c773629a8ea02d3b2a1318bf4f3e5e61ffcdd7d9 apps/web/src/features/workbench/issue-marker.test.ts PASS
100644 0b23f440b39119a1e76b2f5e9f41caad85cc5a96 apps/web/src/features/workbench/protocol.test.ts PASS
100644 f487b413820f900b301be7cfd9b25a7b80a80c0f apps/web/src/features/workbench/router.test.tsx PASS
100644 fc7093204663256a7ec432587c1caf17a4d55f20 apps/web/src/features/workbench/workbench.test.tsx PASS
100644 16e69bbd4b406118a53398202a71a323dac2063a apps/web/src/lib/api.test.ts PASS
100644 b04e26f4718274ce95000f879cb77cb8ab740e78 apps/web/src/lib/status-labels.test.ts PASS
100644 9f27d7959991ee18a96093c8f2784e734f7e332f docs/specs/2026-09-12-connectivity-verification.md PASS
100644 fbf3dc357153794fce0b6608d6c93ff7b88344f3 docs/specs/2026-09-12-mvp-plan-and-acceptance.md PASS
100644 91eb2e1a9ad90d577c54be69897a96e0b868cc64 evidence/issue-25-a05/test.log PASS
projects/agent-poker/server.mjs byte-equal a073 PASS
projects/agent-poker/game.mjs byte-equal a073 PASS
projects/agent-poker/persistence.mjs byte-equal a073 PASS
projects/agent-poker/models.mjs byte-equal a073 PASS
projects/agent-poker/package.json byte-equal a073 PASS
projects/agent-poker/package-lock.json byte-equal a073 PASS
projects/agent-poker/real-check.mjs byte-equal a073 PASS
真实固定证据 PASS: responses=24 applied=23 unapplied=1 errors=1 states=23 hands=3 currentHand=4 newCalls=0
```
### `public.json`
```text
[
{
"path": "/",
"status": 200,
"sha256": "44d05fc4255104e453f592a25b4fbeda8948ba86886caae4267e7d6852d5041b",
"byteEqual": true
},
{
"path": "/assets/index-BO_t9cEz.js",
"status": 200,
"sha256": "85e2f085961e7ecefd05c84890ab933a78d81a0a97c3f399849f3661969b42ad",
"byteEqual": true
},
{
"path": "/assets/index-CU526T7U.css",
"status": 200,
"sha256": "8a1d3de5a24abd65b2873a9e0cb04859b977adc46e68db1a4516743cdd58665c",
"byteEqual": true
},
{
"path": "/api/models",
"status": 403,
"sha256": "9a05b7731db5086eb3ae2565d33126186b1cc1a0facf9ea0e6f82512f710b3d7",
"body": "{\"error\":\"需要管理凭据\"}"
},
{
"path": "/api/tables/52e49afe-dd88-4d89-9cfa-e7b750c9e1e1/observation",
"status": 403,
"sha256": "bbe5fb52e2ce7a1c3ee0c952a712ccbc29c90eb0a6c9e81b779fbcd1f446f377",
"body": "{\"error\":\"邀请凭据无效\"}"
}
]
```
### `browser-http.log`
```text
同页切换第二份邀请前:[True, False, False]
独立三邀请加入与开始:{'seats': [True, True, True], 'running': True}
暂停 HTTP running=false
停止 HTTP running=false
```
### `real-independent.json`
```text
{
"modelResponses": 24,
"applied": 23,
"unapplied": 1,
"errors": 1,
"stateCount": 23,
"historyTotals": [
3000,
3000,
3000
],
"currentHand": 4,
"newModelCalls": 0
}
```
### `remote.log`
```text
411cea6bd5a55848791051f4c47da325626ecb76 refs/heads/deliveries/agent-poker-final
```

View File

@ -0,0 +1 @@
HTTP 鉴权、隐私、非当前玩家、并发重复动作与河牌弃牌获胜隐私检查通过

View File

@ -0,0 +1,4 @@
同页切换第二份邀请前:[True, False, False]
独立三邀请加入与开始:{'seats': [True, True, True], 'running': True}
暂停 HTTP running=false
停止 HTTP running=false

View File

@ -0,0 +1,14 @@
> build
> vite build
vite v8.2.2 building client environment for production...
transforming...
✓ 2018 modules transformed.
rendering chunks...
computing gzip size...
dist/index.html 0.33 kB │ gzip: 0.26 kB
dist/assets/index-CU526T7U.css 91.05 kB │ gzip: 18.12 kB
dist/assets/index-BO_t9cEz.js 288.26 kB │ gzip: 92.79 kB
✓ built in 404ms

View File

@ -0,0 +1,31 @@
100644 2baa132e00c37c61f089e63f705db0f687f29eba acceptance/control-plane/README.md PASS
100644 c34ac840b243af299c3946393f256906a4048069 acceptance/control-plane/REPORT-079d0aa.md PASS
100644 75237b10a2ab14716f2f60c97440f0ccf37d3295 acceptance/control-plane/REPORT-6da1c76.md PASS
100644 26d3e0e744b3875835bbb8224f522f3b62f70ca7 acceptance/control-plane/REPORT.md PASS
100644 116f9c284d943d90fb56db37cd8320cb05fe1056 acceptance/FROZEN.sha256 PASS
100644 3196d46453a9f33f842ddf59e911a5ab3f7d9b65 acceptance/FROZEN.v2.sha256 PASS
100644 ef364891e31b6662d28168492963bb882eaf3ac1 acceptance/README.md PASS
100644 eb809bc3537ad134c86cb80225aaeb5d0483f188 acceptance/tasklist/ACCEPTANCE.md PASS
100644 4f995b0a3aedec7fbd569946700295472b1cd2d8 acceptance/tasklist/test_tasklist_browser.py PASS
100644 cf1c34e9a8717ccc735cc8fd77f22dbfbdd7810e acceptance/tasklist/test_tasklist.py PASS
100644 caaa39b4848f937f86140ece7bc049eb5eb86e03 acceptance/tasks/task-01-filter-total.md PASS
100644 6cde3e6a16687b21a96110849bcb4494ac9d6f89 acceptance/tasks/task-02-pagination.md PASS
100644 83b96d39bee04a66305eb217abbb42e86a138650 acceptance/tasks/task-03-rework-candidate.md PASS
100644 ef23d64339d0f60e76fbdd20a153677bff722a49 apps/server/test/api.test.ts PASS
100644 05c6278eea3e1b9b0909de958db335e316313410 apps/server/test/core.test.ts PASS
100644 548ffbd959f6556b48695dd216d9bf50a0490a95 apps/server/test/engine.test.ts PASS
100644 d9549b5a74ce351d06c903623db6c20c343c91c3 apps/server/test/frozen.test.ts PASS
100644 f887e99e2cdfc95f615dab5ec6e176f1addad2dc apps/server/test/workspace.test.ts PASS
100644 60f430f9b20515a7afe7c413250d5ea6d916f7de apps/web/e2e/issue-marker.spec.ts PASS
100644 0056324a1803211e1bde493e5d51f48389ec5f5a apps/web/e2e/stub-server.mjs PASS
100644 43577e8ca28b5abaa8824855eeadb4842b2f12cb apps/web/e2e/workbench.spec.ts PASS
100644 a54959377221c075497e58e22607472836102808 apps/web/src/features/markdown.test.tsx PASS
100644 c773629a8ea02d3b2a1318bf4f3e5e61ffcdd7d9 apps/web/src/features/workbench/issue-marker.test.ts PASS
100644 0b23f440b39119a1e76b2f5e9f41caad85cc5a96 apps/web/src/features/workbench/protocol.test.ts PASS
100644 f487b413820f900b301be7cfd9b25a7b80a80c0f apps/web/src/features/workbench/router.test.tsx PASS
100644 fc7093204663256a7ec432587c1caf17a4d55f20 apps/web/src/features/workbench/workbench.test.tsx PASS
100644 16e69bbd4b406118a53398202a71a323dac2063a apps/web/src/lib/api.test.ts PASS
100644 b04e26f4718274ce95000f879cb77cb8ab740e78 apps/web/src/lib/status-labels.test.ts PASS
100644 9f27d7959991ee18a96093c8f2784e734f7e332f docs/specs/2026-09-12-connectivity-verification.md PASS
100644 fbf3dc357153794fce0b6608d6c93ff7b88344f3 docs/specs/2026-09-12-mvp-plan-and-acceptance.md PASS
100644 91eb2e1a9ad90d577c54be69897a96e0b868cc64 evidence/issue-25-a05/test.log PASS

View File

@ -0,0 +1,52 @@
- complementary "Agent 扑克":
- heading "Agent 扑克" [level=2]
- button "收起Agent 扑克侧栏":
- paragraph: 虚拟筹码 · 无真钱交易
- button "牌桌 8cb117fa · 第 1 手"
- button "牌桌 c1a36e0a · 第 0 手"
- button "牌桌 08a76926 · 第 1 手"
- text: 管理凭据
- textbox "管理凭据"
- button "建立牌桌"
- paragraph: 管理凭据由本机服务管理员提供,不存入浏览器。
- banner:
- heading "在线观测" [level=1]
- button "开始三手" [disabled]
- button "暂停" [disabled]
- button "停止" [disabled]
- main:
- alert
- heading "第 1 手 · complete · 已暂停" [level=2]
- paragraph
- paragraph: 公共牌:3h 8d Qd 3d Qs
- paragraph: 底池 0 · 当前行动者 —
- article:
- heading "测试甲" [level=2]
- paragraph: 筹码 1040 · 本轮投入 0
- paragraph: 底牌保密
- paragraph: 已接受邀请 · 外部 API 玩家
- article:
- heading "测试乙" [level=2]
- paragraph: 筹码 980 · 本轮投入 0
- paragraph: 已弃牌
- paragraph: 已接受邀请 · 外部 API 玩家
- article:
- heading "测试丙" [level=2]
- paragraph: 筹码 980 · 本轮投入 0
- paragraph: 已弃牌
- paragraph: 已接受邀请 · 外部 API 玩家
- heading "动作时间线" [level=2]
- paragraph: 2026-09-12T00:17:24.315Z · 测试甲 · call · 20
- paragraph: 2026-09-12T00:17:24.334Z · 测试乙 · call · 20
- paragraph: 2026-09-12T00:17:24.349Z · 测试丙 · check · 20
- paragraph: 2026-09-12T00:17:24.363Z · 测试乙 · check · 0
- paragraph: 2026-09-12T00:17:24.374Z · 测试丙 · check · 0
- paragraph: 2026-09-12T00:17:24.386Z · 测试甲 · check · 0
- paragraph: 2026-09-12T00:17:24.400Z · 测试乙 · check · 0
- paragraph: 2026-09-12T00:17:24.414Z · 测试丙 · check · 0
- paragraph: 2026-09-12T00:17:24.429Z · 测试甲 · check · 0
- paragraph: 2026-09-12T00:17:24.441Z · 测试乙 · fold · 0
- paragraph: 2026-09-12T00:17:24.452Z · 测试丙 · fold · 0
- heading "已完成手牌" [level=2]
- generic "第 1 手 · 筹码核对 3000 · 3h 8d Qd 3d Qs" [active]
- generic: "{ \"hand\": 1, \"board\": [ \"3h\", \"8d\", \"Qd\", \"3d\", \"Qs\" ], \"awards\": [ 60, 0, 0 ], \"pots\": [ { \"amount\": 60, \"winners\": [ 0 ] } ], \"stacks\": [ 1040, 980, 980 ], \"total\": 3000, \"actions\": [ { \"hand\": 1, \"version\": 1, \"player\": 0, \"action\": \"call\", \"amount\": 20, \"time\": \"2026-09-12T00:17:24.315Z\" }, { \"hand\": 1, \"version\": 2, \"player\": 1, \"action\": \"call\", \"amount\": 20, \"time\": \"2026-09-12T00:17:24.334Z\" }, { \"hand\": 1, \"version\": 3, \"player\": 2, \"action\": \"check\", \"amount\": 20, \"time\": \"2026-09-12T00:17:24.349Z\" }, { \"hand\": 1, \"version\": 4, \"player\": 1, \"action\": \"check\", \"amount\": 0, \"time\": \"2026-09-12T00:17:24.363Z\" }, { \"hand\": 1, \"version\": 5, \"player\": 2, \"action\": \"check\", \"amount\": 0, \"time\": \"2026-09-12T00:17:24.374Z\" }, { \"hand\": 1, \"version\": 6, \"player\": 0, \"action\": \"check\", \"amount\": 0, \"time\": \"2026-09-12T00:17:24.386Z\" }, { \"hand\": 1, \"version\": 7, \"player\": 1, \"action\": \"check\", \"amount\": 0, \"time\": \"2026-09-12T00:17:24.400Z\" }, { \"hand\": 1, \"version\": 8, \"player\": 2, \"action\": \"check\", \"amount\": 0, \"time\": \"2026-09-12T00:17:24.414Z\" }, { \"hand\": 1, \"version\": 9, \"player\": 0, \"action\": \"check\", \"amount\": 0, \"time\": \"2026-09-12T00:17:24.429Z\" }, { \"hand\": 1, \"version\": 10, \"player\": 1, \"action\": \"fold\", \"amount\": 0, \"time\": \"2026-09-12T00:17:24.441Z\" }, { \"hand\": 1, \"version\": 11, \"player\": 2, \"action\": \"fold\", \"amount\": 0, \"time\": \"2026-09-12T00:17:24.452Z\" } ] }"

Binary file not shown.

After

Width:  |  Height:  |  Size: 97 KiB

View File

@ -0,0 +1,7 @@
projects/agent-poker/server.mjs byte-equal a073 PASS
projects/agent-poker/game.mjs byte-equal a073 PASS
projects/agent-poker/persistence.mjs byte-equal a073 PASS
projects/agent-poker/models.mjs byte-equal a073 PASS
projects/agent-poker/package.json byte-equal a073 PASS
projects/agent-poker/package-lock.json byte-equal a073 PASS
projects/agent-poker/real-check.mjs byte-equal a073 PASS

View File

@ -0,0 +1,2 @@
独立奇数筹码:3 筹码底池、2 位平分赢家、3 个按钮位置 PASS
独立连续多手及中间状态守恒 PASS,检查状态数 4965

View File

@ -0,0 +1,26 @@
import assert from 'node:assert/strict';
import {pathToFileURL} from 'node:url';
const {Game,settle,rank}=await import(pathToFileURL(process.cwd()+'/projects/agent-poker/game.mjs'));
const board=['Ts','Js','Qs','Ks','As'];
for(const [button,expected] of [[0,[1,2,0]],[1,[2,1,0]],[2,[2,1,0]]]) assert.deepEqual(settle([{total:1,cards:['2h','3h']},{total:1,cards:['4h','5h']},{total:1,cards:['6h','7h'],folded:true}],board,button).awards,expected);
console.log('独立奇数筹码:3 筹码底池、2 位平分赢家、3 个按钮位置 PASS');
let states=0;
for(let seed=0;seed<20;seed++){
const g=new Game(['甲','乙','丙']);
for(let h=0;h<30 && g.players.filter(p=>p.stack>0).length>=2;h++){
g.start(); let steps=0;
while(g.stage!=='complete'){
assert.equal(g.players.reduce((n,p)=>n+p.stack,0)+g.view().pot,3000);states++;
assert(g.players.every(p=>Number.isSafeInteger(p.stack)&&p.stack>=0));
const l=g.legal(g.actor), before=JSON.stringify(g);
assert.throws(()=>g.act((g.actor+1)%3,'call',0,g.version));assert.equal(JSON.stringify(g),before);
assert.throws(()=>g.act(g.actor,'raise',-1,g.version));assert.equal(JSON.stringify(g),before);
let a=l.actions.includes('check')?'check':'call';
if(seed%4===0 && l.actions.includes('all-in'))a='all-in';
if(seed%4===1 && steps===1)a='fold';
g.act(g.actor,a,0,g.version);assert(++steps<100);
}
assert.equal(g.history.at(-1).total,3000);assert.equal(g.players.reduce((n,p)=>n+p.stack,0),3000);
}
}
console.log('独立连续多手及中间状态守恒 PASS,检查状态数 '+states);

View File

@ -0,0 +1,15 @@
npm warn deprecated node-domexception@1.0.0: Use your platform's native DOMException instead
added 152 packages, and audited 153 packages in 3s
21 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
npm warn allow-scripts 4 packages have install scripts not yet covered by allowScripts:
npm warn allow-scripts @google/genai@1.52.0 (preinstall: echo 'preinstall: no-op')
npm warn allow-scripts esbuild@0.28.1 (postinstall: node install.js)
npm warn allow-scripts fsevents@2.3.3 (install: (install scripts present))
npm warn allow-scripts protobufjs@7.6.6 (postinstall: node scripts/postinstall)
npm warn allow-scripts
npm warn allow-scripts Run `npm approve-scripts --allow-scripts-pending` to review, or `npm approve-scripts <pkg>` to allow.

Binary file not shown.

After

Width:  |  Height:  |  Size: 85 KiB

View File

@ -0,0 +1,39 @@
- complementary "Agent 扑克":
- heading "Agent 扑克" [level=2]
- button "收起Agent 扑克侧栏":
- paragraph: 虚拟筹码 · 无真钱交易
- button "牌桌 8cb117fa · 第 1 手"
- button "牌桌 c1a36e0a · 第 0 手"
- button "牌桌 08a76926 · 第 1 手" [active]
- text: 管理凭据
- textbox "管理凭据"
- button "建立牌桌"
- paragraph: 管理凭据由本机服务管理员提供,不存入浏览器。
- banner:
- heading "在线观测" [level=1]
- button "开始三手" [disabled]
- button "暂停" [disabled]
- button "停止" [disabled]
- main:
- alert
- heading "第 1 手 · preflop · 已暂停" [level=2]
- paragraph
- paragraph: 公共牌:尚未发出
- paragraph: 底池 30 · 当前行动者 Agent A
- article:
- heading "Agent A · 行动中" [level=2]
- paragraph: 筹码 1000 · 本轮投入 0
- paragraph: 底牌保密
- paragraph: 已接受邀请 · 外部 API 玩家
- article:
- heading "Agent B" [level=2]
- paragraph: 筹码 990 · 本轮投入 10
- paragraph: 底牌保密
- paragraph: 已接受邀请 · 外部 API 玩家
- article:
- heading "Agent C" [level=2]
- paragraph: 筹码 980 · 本轮投入 20
- paragraph: 底牌保密
- paragraph: 已接受邀请 · 外部 API 玩家
- heading "动作时间线" [level=2]
- heading "已完成手牌" [level=2]

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

View File

@ -0,0 +1,41 @@
- complementary "Agent 扑克":
- heading "Agent 扑克" [level=2]
- button "收起Agent 扑克侧栏":
- paragraph: 虚拟筹码 · 无真钱交易
- button "牌桌 70adbf3c · 第 4 手"
- button "牌桌 52e49afe · 第 4 手" [active]
- text: 管理凭据
- textbox "管理凭据"
- button "建立牌桌"
- paragraph: 管理凭据由本机服务管理员提供,不存入浏览器。
- banner:
- heading "在线观测" [level=1]
- button "开始三手" [disabled]
- button "暂停" [disabled]
- button "停止" [disabled]
- main:
- alert
- heading "第 4 手 · preflop · 已暂停" [level=2]
- paragraph
- paragraph: 公共牌:尚未发出
- paragraph: 底池 30 · 当前行动者 真实乙
- article:
- heading "真实甲" [level=2]
- paragraph: 筹码 1640 · 本轮投入 20
- paragraph: 底牌保密
- paragraph: 已接受邀请 · deepseek-v4-flash-openai
- article:
- heading "真实乙 · 行动中" [level=2]
- paragraph: 筹码 1330 · 本轮投入 10
- paragraph: 底牌保密
- paragraph: 已接受邀请 · deepseek-v4-flash-openai
- article:
- heading "真实丙" [level=2]
- paragraph: 筹码 0 · 本轮投入 0
- paragraph: 已弃牌
- paragraph: 已接受邀请 · deepseek-v4-flash-openai
- heading "动作时间线" [level=2]
- heading "已完成手牌" [level=2]
- generic "第 1 手 · 筹码核对 3000 · 6s 7c Qd 5c 3d"
- generic "第 2 手 · 筹码核对 3000 · 6h Th 2h Ts 3c"
- generic "第 3 手 · 筹码核对 3000 · 3s 3d 9d Kd As"

View File

@ -0,0 +1,32 @@
[
{
"path": "/",
"status": 200,
"sha256": "44d05fc4255104e453f592a25b4fbeda8948ba86886caae4267e7d6852d5041b",
"byteEqual": true
},
{
"path": "/assets/index-BO_t9cEz.js",
"status": 200,
"sha256": "85e2f085961e7ecefd05c84890ab933a78d81a0a97c3f399849f3661969b42ad",
"byteEqual": true
},
{
"path": "/assets/index-CU526T7U.css",
"status": 200,
"sha256": "8a1d3de5a24abd65b2873a9e0cb04859b977adc46e68db1a4516743cdd58665c",
"byteEqual": true
},
{
"path": "/api/models",
"status": 403,
"sha256": "9a05b7731db5086eb3ae2565d33126186b1cc1a0facf9ea0e6f82512f710b3d7",
"body": "{\"error\":\"需要管理凭据\"}"
},
{
"path": "/api/tables/52e49afe-dd88-4d89-9cfa-e7b750c9e1e1/observation",
"status": 403,
"sha256": "bbe5fb52e2ce7a1c3ee0c952a712ccbc29c90eb0a6c9e81b779fbcd1f446f377",
"body": "{\"error\":\"邀请凭据无效\"}"
}
]

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

View File

@ -0,0 +1,14 @@
{
"modelResponses": 24,
"applied": 23,
"unapplied": 1,
"errors": 1,
"stateCount": 23,
"historyTotals": [
3000,
3000,
3000
],
"currentHand": 4,
"newModelCalls": 0
}

View File

@ -0,0 +1 @@
411cea6bd5a55848791051f4c47da325626ecb76 refs/heads/deliveries/agent-poker-final

View File

@ -0,0 +1 @@
[]

View File

@ -0,0 +1,171 @@
{
"run": {
"id": "d2504278-269d-43b1-82aa-1ba32545b48a",
"role": "qa",
"revision": 1,
"baseSha": "411cea6bd5a55848791051f4c47da325626ecb76",
"headSha": "fbd37c56a7cd1e69201679f9ea3275204423dd90",
"branch": "ppanel/f1aae97e-9494-432a-8575-27d80fcf1041/r1-5"
},
"frozenAcceptance": {
"baseSha": "411cea6bd5a55848791051f4c47da325626ecb76",
"files": [
{
"path": "acceptance/control-plane/README.md",
"blob": "2baa132e00c37c61f089e63f705db0f687f29eba",
"mode": "100644"
},
{
"path": "acceptance/control-plane/REPORT-079d0aa.md",
"blob": "c34ac840b243af299c3946393f256906a4048069",
"mode": "100644"
},
{
"path": "acceptance/control-plane/REPORT-6da1c76.md",
"blob": "75237b10a2ab14716f2f60c97440f0ccf37d3295",
"mode": "100644"
},
{
"path": "acceptance/control-plane/REPORT.md",
"blob": "26d3e0e744b3875835bbb8224f522f3b62f70ca7",
"mode": "100644"
},
{
"path": "acceptance/FROZEN.sha256",
"blob": "116f9c284d943d90fb56db37cd8320cb05fe1056",
"mode": "100644"
},
{
"path": "acceptance/FROZEN.v2.sha256",
"blob": "3196d46453a9f33f842ddf59e911a5ab3f7d9b65",
"mode": "100644"
},
{
"path": "acceptance/README.md",
"blob": "ef364891e31b6662d28168492963bb882eaf3ac1",
"mode": "100644"
},
{
"path": "acceptance/tasklist/ACCEPTANCE.md",
"blob": "eb809bc3537ad134c86cb80225aaeb5d0483f188",
"mode": "100644"
},
{
"path": "acceptance/tasklist/test_tasklist_browser.py",
"blob": "4f995b0a3aedec7fbd569946700295472b1cd2d8",
"mode": "100644"
},
{
"path": "acceptance/tasklist/test_tasklist.py",
"blob": "cf1c34e9a8717ccc735cc8fd77f22dbfbdd7810e",
"mode": "100644"
},
{
"path": "acceptance/tasks/task-01-filter-total.md",
"blob": "caaa39b4848f937f86140ece7bc049eb5eb86e03",
"mode": "100644"
},
{
"path": "acceptance/tasks/task-02-pagination.md",
"blob": "6cde3e6a16687b21a96110849bcb4494ac9d6f89",
"mode": "100644"
},
{
"path": "acceptance/tasks/task-03-rework-candidate.md",
"blob": "83b96d39bee04a66305eb217abbb42e86a138650",
"mode": "100644"
},
{
"path": "apps/server/test/api.test.ts",
"blob": "ef23d64339d0f60e76fbdd20a153677bff722a49",
"mode": "100644"
},
{
"path": "apps/server/test/core.test.ts",
"blob": "05c6278eea3e1b9b0909de958db335e316313410",
"mode": "100644"
},
{
"path": "apps/server/test/engine.test.ts",
"blob": "548ffbd959f6556b48695dd216d9bf50a0490a95",
"mode": "100644"
},
{
"path": "apps/server/test/frozen.test.ts",
"blob": "d9549b5a74ce351d06c903623db6c20c343c91c3",
"mode": "100644"
},
{
"path": "apps/server/test/workspace.test.ts",
"blob": "f887e99e2cdfc95f615dab5ec6e176f1addad2dc",
"mode": "100644"
},
{
"path": "apps/web/e2e/issue-marker.spec.ts",
"blob": "60f430f9b20515a7afe7c413250d5ea6d916f7de",
"mode": "100644"
},
{
"path": "apps/web/e2e/stub-server.mjs",
"blob": "0056324a1803211e1bde493e5d51f48389ec5f5a",
"mode": "100644"
},
{
"path": "apps/web/e2e/workbench.spec.ts",
"blob": "43577e8ca28b5abaa8824855eeadb4842b2f12cb",
"mode": "100644"
},
{
"path": "apps/web/src/features/markdown.test.tsx",
"blob": "a54959377221c075497e58e22607472836102808",
"mode": "100644"
},
{
"path": "apps/web/src/features/workbench/issue-marker.test.ts",
"blob": "c773629a8ea02d3b2a1318bf4f3e5e61ffcdd7d9",
"mode": "100644"
},
{
"path": "apps/web/src/features/workbench/protocol.test.ts",
"blob": "0b23f440b39119a1e76b2f5e9f41caad85cc5a96",
"mode": "100644"
},
{
"path": "apps/web/src/features/workbench/router.test.tsx",
"blob": "f487b413820f900b301be7cfd9b25a7b80a80c0f",
"mode": "100644"
},
{
"path": "apps/web/src/features/workbench/workbench.test.tsx",
"blob": "fc7093204663256a7ec432587c1caf17a4d55f20",
"mode": "100644"
},
{
"path": "apps/web/src/lib/api.test.ts",
"blob": "16e69bbd4b406118a53398202a71a323dac2063a",
"mode": "100644"
},
{
"path": "apps/web/src/lib/status-labels.test.ts",
"blob": "b04e26f4718274ce95000f879cb77cb8ab740e78",
"mode": "100644"
},
{
"path": "docs/specs/2026-09-12-connectivity-verification.md",
"blob": "9f27d7959991ee18a96093c8f2784e734f7e332f",
"mode": "100644"
},
{
"path": "docs/specs/2026-09-12-mvp-plan-and-acceptance.md",
"blob": "fbf3dc357153794fce0b6608d6c93ff7b88344f3",
"mode": "100644"
},
{
"path": "evidence/issue-25-a05/test.log",
"blob": "91eb2e1a9ad90d577c54be69897a96e0b868cc64",
"mode": "100644"
}
],
"digest": "5039de0473a141bda8f978cad51b531ca619f017eb43b5151850b9069fa0bcdf"
}
}

View File

@ -0,0 +1,23 @@
> test
> node --test test.mjs persistence.test.mjs
✔ 快照替换完整且私有;替换前进程被杀仍保留旧历史 (51.446667ms)
✔ 牌型、轮子顺子及踢脚比较 (0.617958ms)
✔ 边池与平分奇数筹码 (1.491917ms)
✔ 轮次、隐私、重复动作与非法输入均不变更状态 (1.345834ms)
✔ 短 all-in 不重新开放加注;全下自动摊牌守恒 (0.557208ms)
✔ 连续 50 手合法行动筹码守恒 (7.612084ms)
✔ 短大盲全下且小盲已覆盖时直接摊牌,不再允许弃牌 (0.472083ms)
✔ 唯一可行动者只需跟齐实际全下额,不能向无人响应的边池加注 (0.190416ms)
✔ 多人短大盲保留名义大盲;其他玩家弃牌后按实际投注自动摊牌 (0.138375ms)
✔ 河牌弃牌获胜后公开和其他玩家投影隐藏赢家底牌,重载仍隐藏 (0.330208ms)
✔ 真实多人摊牌仍公开未弃牌者底牌 (0.203125ms)
ℹ tests 11
ℹ suites 0
ℹ pass 11
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 83.6295

View File

@ -0,0 +1,39 @@
100644 2baa132e00c37c61f089e63f705db0f687f29eba acceptance/control-plane/README.md PASS
100644 c34ac840b243af299c3946393f256906a4048069 acceptance/control-plane/REPORT-079d0aa.md PASS
100644 75237b10a2ab14716f2f60c97440f0ccf37d3295 acceptance/control-plane/REPORT-6da1c76.md PASS
100644 26d3e0e744b3875835bbb8224f522f3b62f70ca7 acceptance/control-plane/REPORT.md PASS
100644 116f9c284d943d90fb56db37cd8320cb05fe1056 acceptance/FROZEN.sha256 PASS
100644 3196d46453a9f33f842ddf59e911a5ab3f7d9b65 acceptance/FROZEN.v2.sha256 PASS
100644 ef364891e31b6662d28168492963bb882eaf3ac1 acceptance/README.md PASS
100644 eb809bc3537ad134c86cb80225aaeb5d0483f188 acceptance/tasklist/ACCEPTANCE.md PASS
100644 4f995b0a3aedec7fbd569946700295472b1cd2d8 acceptance/tasklist/test_tasklist_browser.py PASS
100644 cf1c34e9a8717ccc735cc8fd77f22dbfbdd7810e acceptance/tasklist/test_tasklist.py PASS
100644 caaa39b4848f937f86140ece7bc049eb5eb86e03 acceptance/tasks/task-01-filter-total.md PASS
100644 6cde3e6a16687b21a96110849bcb4494ac9d6f89 acceptance/tasks/task-02-pagination.md PASS
100644 83b96d39bee04a66305eb217abbb42e86a138650 acceptance/tasks/task-03-rework-candidate.md PASS
100644 ef23d64339d0f60e76fbdd20a153677bff722a49 apps/server/test/api.test.ts PASS
100644 05c6278eea3e1b9b0909de958db335e316313410 apps/server/test/core.test.ts PASS
100644 548ffbd959f6556b48695dd216d9bf50a0490a95 apps/server/test/engine.test.ts PASS
100644 d9549b5a74ce351d06c903623db6c20c343c91c3 apps/server/test/frozen.test.ts PASS
100644 f887e99e2cdfc95f615dab5ec6e176f1addad2dc apps/server/test/workspace.test.ts PASS
100644 60f430f9b20515a7afe7c413250d5ea6d916f7de apps/web/e2e/issue-marker.spec.ts PASS
100644 0056324a1803211e1bde493e5d51f48389ec5f5a apps/web/e2e/stub-server.mjs PASS
100644 43577e8ca28b5abaa8824855eeadb4842b2f12cb apps/web/e2e/workbench.spec.ts PASS
100644 a54959377221c075497e58e22607472836102808 apps/web/src/features/markdown.test.tsx PASS
100644 c773629a8ea02d3b2a1318bf4f3e5e61ffcdd7d9 apps/web/src/features/workbench/issue-marker.test.ts PASS
100644 0b23f440b39119a1e76b2f5e9f41caad85cc5a96 apps/web/src/features/workbench/protocol.test.ts PASS
100644 f487b413820f900b301be7cfd9b25a7b80a80c0f apps/web/src/features/workbench/router.test.tsx PASS
100644 fc7093204663256a7ec432587c1caf17a4d55f20 apps/web/src/features/workbench/workbench.test.tsx PASS
100644 16e69bbd4b406118a53398202a71a323dac2063a apps/web/src/lib/api.test.ts PASS
100644 b04e26f4718274ce95000f879cb77cb8ab740e78 apps/web/src/lib/status-labels.test.ts PASS
100644 9f27d7959991ee18a96093c8f2784e734f7e332f docs/specs/2026-09-12-connectivity-verification.md PASS
100644 fbf3dc357153794fce0b6608d6c93ff7b88344f3 docs/specs/2026-09-12-mvp-plan-and-acceptance.md PASS
100644 91eb2e1a9ad90d577c54be69897a96e0b868cc64 evidence/issue-25-a05/test.log PASS
projects/agent-poker/server.mjs byte-equal a073 PASS
projects/agent-poker/game.mjs byte-equal a073 PASS
projects/agent-poker/persistence.mjs byte-equal a073 PASS
projects/agent-poker/models.mjs byte-equal a073 PASS
projects/agent-poker/package.json byte-equal a073 PASS
projects/agent-poker/package-lock.json byte-equal a073 PASS
projects/agent-poker/real-check.mjs byte-equal a073 PASS
真实固定证据 PASS: responses=24 applied=23 unapplied=1 errors=1 states=23 hands=3 currentHand=4 newCalls=0

View File

@ -0,0 +1,17 @@
import json,subprocess,pathlib,hashlib,urllib.request,urllib.error
p=pathlib.Path(__file__).resolve().parent
task=json.loads((p/'task.json').read_text())
for f in task['frozenAcceptance']['files']:
b=subprocess.check_output(['git','hash-object',f['path']],text=True).strip();mode=subprocess.check_output(['git','ls-files','-s','--',f['path']],text=True).split()[0]
assert (b,mode)==(f['blob'],f['mode']);print(mode,b,f['path'],'PASS')
for f in ['server.mjs','game.mjs','persistence.mjs','models.mjs','package.json','package-lock.json','real-check.mjs']:
path='projects/agent-poker/'+f;assert subprocess.check_output(['git','show','a0737d41f02a8b38bc8c3f72fccfdf23e6d6d4bc:'+path])==pathlib.Path(path).read_bytes(); print(path,'byte-equal a073 PASS')
x=json.loads(subprocess.check_output(['git','show','044810adf30631167aae0b89793917d91bfed93c:evidence/issue-35-a073/real-evidence.json']))
m=[e for e in x['events'] if e['kind']=='model'];s=[e for e in x['events'] if e['kind']=='state'];errors=[e for e in x['events'] if e['kind']=='error']
assert len(m)==24 and sum(e['applied'] for e in m)==23 and len(errors)==1
assert {e['model'] for e in m}=={'deepseek-v4-flash','glm-5.3'};assert {e['player'] for e in m}=={0,1,2}
for e in m:
assert e['observation']['actor']==e['player'];assert e['action']['action'] in e['observation']['legal']['actions'];assert e['output'] and e['rawLineSha256'] and e['privateObservationSha256']
for e in s:assert sum(a['stack'] for a in e['state']['players'])+e['state']['pot']==3000
assert [h['total'] for h in x['publicTable']['history']]==[3000]*3;assert x['publicTable']['hand']==4
print('真实固定证据 PASS: responses=24 applied=23 unapplied=1 errors=1 states=23 hands=3 currentHand=4 newCalls=0')