From a9e2c3fa256725cb7e896c27a71f2a4e5a3dffcb Mon Sep 17 00:00:00 2001 From: weichen Date: Sun, 18 Oct 2026 10:58:55 +0000 Subject: [PATCH] Record regulation citation frontend results in the task card Why: Task card is the PR description. Evidence: vitest, knip, tsc and vite build passed in the composed layout (SELF); CI pending. Impact: Card only. Refs: Agent-System-Dev PR #614 Co-authored-by: Cursor --- .task/feature-regulations-kb-citations.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.task/feature-regulations-kb-citations.md b/.task/feature-regulations-kb-citations.md index 7d91a0c..032f9a3 100644 --- a/.task/feature-regulations-kb-citations.md +++ b/.task/feature-regulations-kb-citations.md @@ -24,17 +24,18 @@ | 单元 ID | 预期范围 | 角色 | 候选顺序 | attempt | CLI/模型 | 终态 | transport | fallback | 源码外收据路径 | |---|---|---|---|---|---|---|---|---|---| -| frontend-u7-regulation-citations | src/、test/ | implementation | cursor→antigravity→pi | 待运行 | — | — | — | 否 | /tmp/regkb-u7fe-receipt.json | +| frontend-u7-regulation-citations | src/、test/ | implementation | cursor→antigravity→pi | 1(35d799203497) | cursor / not-observable(新进程,fresh_session=true) | success | 6a3f244(apply 快进,run 4cf12d61) | 否 | /tmp/regkb-u7fe-receipt.json | ## 同步记录 | 节点 | sync_base_sha | tested_head_sha | checked_at | 结果 | |---|---|---|---|---| | 启动 | 0459567 | 0459567 | 2026-10-18 | 一致 | -| 验收前 | 待填 | 待填 | 待填 | 待填 | +| 验收前 | 0459567(origin/main) | 6a3f244 | 2026-10-18 | 一致,无需同步 | ## 结果与验证(完成后填写) -- 结果:NOT_RUN -- 验证:NOT_RUN -- 影响与剩余项:NOT_RUN +- 结果:新增 `src/regCitations.ts`(契约类型、`[cit-…]` 标记解析与编号、状态/过期/省略原因文案、样式档、审计树请求参数)与 `src/components/RegCitation.tsx`(编号标记、引用卡片、引用清单,折叠用 @ui Collapsible,正文与片段仅作文本渲染);审计工作区新增“法规核验”树(证据批→引用)与批/引用详情(状态、原因、腿状态、封存、引用元数据、受披露约束的片段);驾驶舱阅读器正文渲染引用标记与引用清单。只有 verified 且未过期显示为有效依据,其余状态与无效引用使用明确的未核验/无效样式。样式只用令牌(`src/reg-citations.css`)。 +- 验证:host 在临时 Dev 组合布局(modules/ui c918747)重跑 `bash /tmp/regkb-fe-verify.sh all`(SELF):vitest 37 文件 345 用例通过(含 design-guard 与新增 reg-citations 测试),knip 未用导出 50 ≤ 51,`tsc -b` 与 `vite build` 通过,日志 /tmp/regkb-u7fe-verify.log;`git diff --check` 通过。权威结论以 PR HEAD CI 与 Dev 组合 `make test` 为准。 +- Review:host 独立审阅实施 diff(未复用实施会话):未使用 dangerouslySetInnerHTML 与 `
`,外链仅 http(s),字段名与 RDM U6 JSON 一致;无阻塞项。 +- 影响与剩余项:数据由 RDM U7(`rdm.inspect.tree kind=regs`、`rdm.inspect.object`、`rdm.cockpit.node` citations)提供;RDM 未提供时界面为空态,不影响既有标签页。Dev 组合 pin 在 U8 推进。