Repository navigation
feat(web): B09 前端证据工作流(G2 检查点) - #18
Merged
Merged
Conversation
B09 前端证据工作流(G2 检查点批次):
- Web 五页面:dev 登录(硬门控的 /internal/dev-token,仅测试身份模式注册)、
dashboard(项目列表+创建)、项目详情(预签名三步上传 + 证据列表 + 启动审计)、
审计详情(2s 轮询至终态/离页停止 + Finding 列表 + FAILED 可诊断原因)、
Finding 详情(Evidence Viewer:原图 + 归一化 bbox 覆盖层随缩放保持 +
观察/推断分离 + 置信度 + 待人审标识)
- lib/api.ts 类型化客户端(Bearer 测试身份、401 自动登出、幂等键)
- Go 支撑:CORS 来源白名单、/api/v1 挂载(TECH_SPEC §9)、dev-token、
GET /findings/{id}(含证据引用与定位)、ListFindings 内联证据引用
- store 全模型补 json tag(修复 API 返回 Go 字段名的契约破坏)
- B08 定案:证据内容以 base64 data URL 内联(云端模型读不到 loopback
预签名 URL——真实 E2E 实测);契约 schema 描述同步
- store 空列表序列化 [] 而非 null(前端崩溃实测修复)
- worker:ClaimNextJob 租约缺省 3 分钟(lease=0 会产生立即过期的租约,
所有成功结果被守卫静默丢弃——E2E 实测缺陷)
- Playwright E2E 2 项:全流程(登录→创建→上传→审计→打开证据)+
失败可诊断断言;scripts/dev-e2e.ps1 全栈入口;测试/报告产物不入库
验证(本机全栈实跑:PG17 临时集群 + MinIO 二进制 + Go + AI + Web):
- E2E 2/2:真实 StepFun 全流程 38s 通过(10 条规则全落库,无证据项全部
诚实 UNKNOWN);fake 适配器负向路径(失败可诊断、不白屏)通过
- Go 5 包集成 + AI 15 项 + 契约 lint + eval runner 全绿;web lint/type/test/build 绿
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
内容(执行方案 B09)
验证(本机全栈实跑)
边界
依赖
B01–B08(已合入)。T-009 Slice 1 本机可复现——G2 门禁证据齐备。