📊 Add production dashboard and completed review history #22

Merged
zhanghongming merged 1 commits from codex/production-dashboard-20260928 into dev 2026-09-30 17:41:42 +08:00
Collaborator

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:

  • Domain aggregation, HTTP authorization, local Mongo projection/persistence regressions, TypeScript and frontend build passed; 251-source synthetic browser flow and stale-response race check passed.
  • Standards/spec review findings were fixed, including multi-part/task barriers, scoped rejection invalidation and replacement-package history.
  • Company cluster runs integrated commit 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.
  • Live readonly verification passed: seven existing isolated test accounts/five roles, admin-only statistics access, unchanged/unconfigured statistics scope, six frame timelines, six video range reads, and actual left/right playback. No business write requests were sent.
  • Live annotation submission/delivery, review decisions and slice restart tests remain unverified under the readonly boundary. The release is not labelled full end-to-end accepted.
  • Full-suite baseline debt remains: the same 79 Go top-level failures and 14 frontend failures against 5f2d796d, with no new failing case/cause identified.
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: - Domain aggregation, HTTP authorization, local Mongo projection/persistence regressions, TypeScript and frontend build passed; 251-source synthetic browser flow and stale-response race check passed. - Standards/spec review findings were fixed, including multi-part/task barriers, scoped rejection invalidation and replacement-package history. - Company cluster runs integrated commit 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. - Live readonly verification passed: seven existing isolated test accounts/five roles, admin-only statistics access, unchanged/unconfigured statistics scope, six frame timelines, six video range reads, and actual left/right playback. No business write requests were sent. - Live annotation submission/delivery, review decisions and slice restart tests remain unverified under the readonly boundary. The release is not labelled full end-to-end accepted. - Full-suite baseline debt remains: the same 79 Go top-level failures and 14 frontend failures against 5f2d796d, with no new failing case/cause identified.
zhanghongming added 1 commit 2026-09-29 08:52:36 +08:00
zhanghongming changed target branch from codex/review-continuation-message-20260928 to dev 2026-09-30 17:41:41 +08:00
zhanghongming merged commit 96361b53bf into dev 2026-09-30 17:41:42 +08:00
Owner

@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 验收。

@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 验收。
Sign in to join this conversation.
No Reviewers
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: longtao.wu/droboticflow#22
No description provided.