docs(tasks): complete T-211 claim wire bounds

This commit is contained in:
QiuSW
2026-08-05 01:52:49 +08:00
parent f6cd65208d
commit 6145fc4468
2 changed files with 13 additions and 5 deletions
+7 -2
View File
@@ -3,7 +3,7 @@ id: T-211
title: claim wire 输出字段上限闭合
phase: 2
deps: [T-203, T-302, T-303]
status: DOING
status: DONE
created: 2026-08-05
vikunja_task_id: 55
context_ref: cfb238d
@@ -13,6 +13,7 @@ needs_human_review: false
write_paths:
- docs/tasks/T-211.md
- docs/api.md
- docs/current-state.md
- admin/internal/tasks/**
- admin/internal/taskclaim/**
- admin/internal/server/task_claims.go
@@ -22,7 +23,7 @@ write_paths:
- client/tests/remote/**
---
<!-- BEGIN VIKUNJA EXPORT id=55 synced=2026-08-04T17:38:57Z sha256=7417ad9a21dacfee758c764866b37183a8a90e051c04cc5800e8d5c2a1ebf36e -->
<!-- BEGIN VIKUNJA EXPORT id=55 synced=2026-08-04T17:52:41Z sha256=4bdc0bccc833e75d759de4f2270b372484e92e261f979c3b28f501687209b60a -->
## 问题 / 背景
claim 成功响应受 32 KiB 总 body 上限保护,但创建、授权快照、candidate 和重放链路尚未统一约束各自由文本字段,客户端也未冻结同一单字段合法域。异常或历史超长值可能让合法业务事实变成不可传输响应。
@@ -73,6 +74,10 @@ claim 成功响应受 32 KiB 总 body 上限保护,但创建、授权快照、
### 2026-08-04T17:38:44Z · ila
2026-08-05 审阅修复:统一 Go/Python 持久化文本域,客户端使用 Go Unicode White_Space 固定集,两端均拒绝任意位置 U+001C--U+001F,并补 NBSP/C0 回归。候选查询不再用 SQL 相等条件静默过滤:先读取 task 与 authorization 两侧快照并分别验证,单侧畸形立即回滚且不写 EMPTY/attempt;两侧均合法但不一致才按既有语义跳过。最坏合法 JSON 也覆盖 int64 版本编码上界。
### 2026-08-04T17:48:38Z · ila
2026-08-05 completion verification: main-agent review PASS; independent adversarial audit PASS; fixed SHA `f6cd65208db5f35155946a7855773ee56e7a9d65`; client 192 tests PASS; `go test -count=1 ./...` PASS; `go vet ./...` PASS; repository-root `init.ps1` PASS.
<!-- END VIKUNJA EXPORT -->
## 边界