Skip to content

[REQ-223][VERIFY] 修正并重跑 E7 登录态计费探针 - #720

Merged
jinjunnn merged 5 commits into
alphafrom
e7-probe-refresh
Jul 31, 2026
Merged

[REQ-223][VERIFY] 修正并重跑 E7 登录态计费探针#720
jinjunnn merged 5 commits into
alphafrom
e7-probe-refresh

Conversation

@jinjunnn

Copy link
Copy Markdown
Owner

变更

  • 修正 [REQ-223][CODE] 修正 E7 探针四条判据的观测点 —— 三条假红加一条空绿 #651 的四个观测点:P1.2 改为由打包引擎短命 PTY 子进程只输出原始 OPENCODE_CONFIG_CONTENT 的布尔断言;P1.5 按运行时最终规则计算;P1.3 降为匿名 catalog,账户绑定交给 P2.2;P3.8 断言本地工具从平台模型工具集移除。
  • Ledger V1 计费按 reservationId 关联 reservation_created(actionId=tool.web_search) → usage_settled → reservation_settled,继续有界轮询 waitUntil 后台结算。
  • origin/alpha@77b5554e 标准 ship:mac 重钉 /Applications/alpha-code.appapp.asar SHA-256 dded6b38f023e2bbaba3c152032a857f80221d280949c6838374741aea6f42b9,签名深度严格校验通过。
  • 保留第一次真实运行的探针假红记录,并提交修正后同一被测包的最终登录态证据。未修改产品代码。

真实登录态 / 计费证据

生产被测版本:

  • alpha-gateway 8c42c99b-c8d7-4414-b63f-f197e042c36f
  • alpha-cloud 06b278d4-a7e3-4d32-bca4-4520010dbdd8

最终探针 logged-in-20260731T022038Z.json:23 项、0 个必需失败。

  • 打包引擎云 MCP connected,原始配置为 {file:...ALPHA_CLOUD_TOKEN},解析后 URL/令牌与 0600 密钥文件一致。
  • 真模型轮次调用 cloud_cloud_web_search 完成并返回 {query,results};应用令牌直调 MCP tools/call 返回 HTTP 200 / {query,results}
  • 两笔 web-search 各 15 分;余额与 wallet-used 差分均为 30 分;两条 reservation 均出现完整 reserve/usage-settled/reservation-settled 链。
  • 无 bearer 为 401;空 query 与坏 JSON 为 400;有余额账户直调为 200,因此 402 诚实标记为 not-producible。

验证

  • bun probe.ts --self-test:7/7
  • 单文件 TypeScript tsc --noEmit:通过
  • bun build probe.ts --target=bun:通过
  • Prettier:通过
  • 文档相对链接:14/14
  • codesign --verify --deep --strict /Applications/alpha-code.app:通过
  • 最终真实探针:exit 0,23 项,0 个必需失败

Fixes #651
Refs #643
Refs jinjunnn/alpha-platform#131

@jinjunnn

Copy link
Copy Markdown
Owner Author

计费总额补充(已写入 README 并推送 f38ff46c):P2.3 的 30 分只圈定模型真调 + 直接 MCP 真调两条 AC 路径;随后 P3.7 为证明有余额账户返回 200 会再真实调用一次 15 分。因此每次完整登录态相位为 45 分。保留的探针假红运行与最终通过运行共两次,最终只读摘要为 walletUsedFen=90balanceFen=99910(起点 100000),即本次授权取证总计 90 分。

@jinjunnn
jinjunnn marked this pull request as ready for review July 31, 2026 02:34
@jinjunnn
jinjunnn merged commit 43d1f70 into alpha Jul 31, 2026
6 checks passed
@jinjunnn
jinjunnn deleted the e7-probe-refresh branch July 31, 2026 02:36
@jinjunnn

Copy link
Copy Markdown
Owner Author

Merge note: all jobs emitted by current alpha-ci were green. GitHub still reported BLOCKED because branch protection requires the retired context name unit tests (ui-mac), while the workflow now emits the broader successful job unit tests (alpha packages). The owner explicitly authorized this merge; squash merge used admin override only for that stale required-context drift. No failing check was bypassed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[REQ-223][CODE] 修正 E7 探针四条判据的观测点 —— 三条假红加一条空绿

1 participant