📊 Add production dashboard and completed review history #22
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "codex/production-dashboard-20260928"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This adds production reporting to the platform-admin dashboard and a read-only history view for completed quality reviews. Administrators can see source counts and current stages across projects, suppliers and project/supplier combinations; period output counts a source only after all required parts and tasks complete.
Production scope is an explicit administrator-managed allowlist. Unconfigured scope is shown clearly, internal projects are not implicitly included, and deployment does not initialize customer settings. Reporting preserves event-time supplier ownership, historical evidence, retries, returns and replacement-package lineage. Existing dashboard sections remain below the new overview.
This PR is stacked on #20 to avoid resubmitting its supplier-access changes. #21 remains a separate returned-task ownership fix; the deployed integrated candidate includes it. Merge the prerequisite PRs first and retarget this PR to dev when appropriate.
Validation:
36eb8540, immutable image digest 5864f152bdaef1169bc677f1e4c227591e457f9589137f230cf17dcb2dd8093b. Image-only API/processor update; previous manifests and image digest backed up. Worker, workflow/configuration and customer records were not changed.5f2d796d, with no new failing case/cause identified.@zhanghongming 过去 8 天自合并 PR 回溯审查(2026-10-08)。实际增量:63ac6e78 → 96361b53。确认 1 项 P2,当前 dev
bd253016仍可复现。Standards
未发现额外的已确认规范问题。已检查管理员白名单/CAS、组织隔离、历史读取权限及归属、重试与替换包的处理。
Spec
[P2] 没有生成交付包的兄弟任务未进入整源验收/交付完成条件,期间产出被提前计数。
internal/productionstats/milestones.go:148-151只把全部任务加入 submitted/quality 条件;:175-185的 acceptance/delivered 依赖来自已存在的包,遗漏还在标注、尚无包的同源任务。与本 PR“period output counts a source only after all required parts and tasks complete”不符。合成复现:同一 Capture/run 有两个必需任务,一个包已验收并导出,另一任务仍在标注且没有包。当前阶段正确显示 annotation,但期间 totals 得到 acceptance=1、delivered=1;预期两者均为 0,直到剩余任务完成。本合并与当前 dev 运行同一用例均失败,milestones.go 至今未变。
建议:从完整生产任务/工作流清单建立下游必需单元,显式处理不适用或豁免阶段;包事件仅作为完成证据,不能同时决定所有必需单元。补充“一个已交付、一个未出包”和多 part 版本的回归。
验证:原有聚合包与统计权限/历史 API 定向测试通过;lint:web、diff --check 通过;新增用例在合并和当前版本均复现错误。较宽测试选择器触发的旧 AIDraft/streaming 失败已对照窗口前基线,不列为新增问题。未执行 Mongo/浏览器/Fanyu 验收。