[SEN] 实现设备、媒体与本地推理状态的运维中心 #74
Closed
opened 2026-08-14 10:29:14 +08:00 by ila
·
6 comments
No Branch/Tag Specified
dev
feat/183-bell-contact-schedule
docs/171-coordination-e2e-wiki
feature/155-coordination-e2e
docs/168-sync-coordination-wiki
feature/154-coordination-deployment
docs/152-153-connectors
feature/153-event-evidence-connector
feature/152-brain-control
docs/151-machine-identity-acceptance
task/151-machine-identity
docs/150-contract-acceptance
docs/148-149-contract-acceptance
feature/149-runtime-status-contract
feature/150-event-evidence-contract
feature/148-source-config-contract
docs/8-mvp-acceptance
feature/145-sense-e2e-isolation-cleanup
feature/134-bell-independent-e2e
feature/142-bell-ui-shell-startup
feature/140-bell-minimal-admin-menu
feature/138-bell-production-captcha
feature/133-bell-alert-lifecycle
feature/132-bell-rule-alert
feature/131-bell-event-receipt
feature/16-brain-local-events
feature/15-brain-rules
feature/14-brain-vision
feature/13-brain-decode
feature/11-brain-input
main
feat/sense-79-ops-alerts
feat/sense-78-outbox
feat/77-sense-media-shards
feat/76-sense-edge-node-status
feat/75-sense-quota-capacity
feature/74-sense-operations
feature/73-sense-local-events
feature/72-sense-bulk-provisioning
feature/113-record-parallel-acceptance
feature/113-sync-parallel-implementation-docs
feature/71-sense-e2e-regression
feature/62-bell-goadmin-skeleton
feature/10-brain-python-cuda-skeleton
feature/108-sync-devharness
feature/90-sense-root-launcher
feature/106-supervisor-sense
fix/101-sense-layout-shell
feature/104-sense-login-30-days
docs/99-acceptance
feature/99-sense-app-config
feature/70-sense-windows-delivery
fix/95-sense-media-path-constraint
feature/97-sense-password-login
docs/92-acceptance
fix/92-sense-capabilities-jsonb
docs/69-acceptance
feature/69-sense-area
feature/68-sense-liveview
feature/67-sense-mediamtx-reconcile
feature/66-sense-onvif-admission
feature/65-sense-device-credential
feature/64-sense-auth-rbac-audit
feature/61-sense-goadmin-source-baseline
docs/acceptance-batch-20260814
coordination/58-finalize-branch-governance
explore
agent/codex/56-sense-device-edit-payload
agent/codex/54-sense-liveview-on-demand
agent/codex/51-sense-auto-liveview
agent/codex/50-sense-split-camera-credentials
agent/codex/48-sense-onvif-digest
agent/codex/46-sense-env-loader
agent/codex/44-sense-empty-navigation
agent/codex/42-sense-password-length-only
agent/codex/40-sense-password-min-6
agent/codex/37-sense-windows-package
agent/codex/36-bell-docs
agent/codex/9-bell-mvp
agent/codex/21-sense-mvp
agent/codex/28-current-prototypes
agent/codex/5-goadmin-baseline
agent/codex/3-go-admin-ui-reuse
agent/codex/1-collaboration-rules
No results found.
Milestone
No items
No Milestone
Projects
Clear projects
No projects
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: ila/yovision#74
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
状态
已完成
基本信息
原始需求与追溯
explore只用于需求、行为与测试对照,不复制自研基础框架。目标
集中展示设备、媒体以及可选本地推理的期望态与实际态、未收敛差异、退避、重试、认证失败、时间漂移和孤儿安全闸。
范围
实现运维概览、问题队列、状态详情、受控重试和审计;Brain 不在线时以适配器 unavailable 状态展示,不调用 Brain 数据库。
非目标
不实现跨项目控制契约;不自动删除孤儿资源;不把设备运维异常发送到 Bell 业务 Alert。
GoAdmin 复用要求
复用 #61/#64 建立的 GoAdmin/go-admin-ui 认证、RBAC、审计、Router、Store、Axios、Layout、表格、表单、分页、Dialog、Tag 和权限按钮;实施前读取相关冻结 go-admin-doc 并在评论记录采用方式。业务专用组件必须说明复用缺口并保持整体风格。
写路径
Sense/server/app/sense/operations/**Sense/server/app/admin/router/sense_operations.goSense/server/app/admin/router/sense_operations_test.goSense/server/cmd/migrate/migration/version/*operations*Sense/ui/src/views/sense/operations/**Sense/ui/src/api/sense/operations*Sense/ui/tests/unit/sense/operations*.spec.js禁止写入:
Brain/**、Bell/**、contracts/**、根级构建/部署、docs/**、wiki-docs.json。需要共享路径时停止并转协调工单。文档影响
更新对应 Sense Wiki 业务规则、配置、运行、排错和验收页面;本地镜像由单一协调工单同步。
验收标准
验证方式
风险与回退
错误重试或孤儿处置可能中断视频。默认只读诊断,写操作必须显式权限与安全闸;回退操作记录而非删除资源。
协同需求摘要
本工单只实现 Sense 内部端口和夹具。涉及 Sense→Brain、Brain→Sense、Sense/Brain→Bell 的正式 schema、机器身份、部署或 E2E 时另建协调工单。
设计门禁:运维中心原型 v0.1 待审核
D:\OPC\yovision-visualizations\issue-74\sense-operations-center.htmlD:\OPC\yovision-visualizations\issue-74\sense-operations-center-standalone.html正式实施门禁:需同时满足(1)用户确认本原型版本;(2)前置工单 #73 完成功能验收。当前不创建实现分支、不修改生产代码。
原型 v0.1 审核通过(2026-08-28)
用户明确回复:
#74 原型 v0.1通过审核。开始实施(2026-08-28)
devSense/server/app/sense/operations/**、Sense/server/app/admin/router/sense_operations*.go、Sense/server/cmd/migrate/migration/version/*operations*、Sense/ui/src/views/sense/operations/**、Sense/ui/src/api/sense/operations*、对应前端测试。原正文不存在的Sense/server/database/migrations/与泛化Sense/tests/operations/被替换,不改变功能范围。docs/intro/advanced/router.md、api.md、service.md;沿用 Router 注册、JWT、Casbin、PermissionAction、API/Service 分层和 GoAdmin 响应封装BasicLayout、Element Plus Card/Alert/Form/Table/Pagination/Dialog/Tag/MessageBox、Axios 与权限按钮;不新增公共组件,因为现有通用组件足够docs/**。流程记录:PR #118 创建后发现描述中的自动关闭关键词可能导致用户验收前关闭工单。Gitea MCP 不支持编辑 PR,本次仅对 PR 描述更新回退 Gitea API,将其改为
Refs #74;凭据仍只从项目安全环境读取,未写入仓库、工单或输出。API 首次写入受 PowerShell 编码影响出现中文问号,随后使用 UTF-8 字节重写并通过 MCP 在线回读确认。实现完成,待用户验收(2026-08-28)
最终差异
真实验证
go test ./...、go test -race ./app/sense/operations、go vet ./...、go build ./...:通过。python dev_scripts/harness.py check --strict:通过;仓库 48 项 unittest:通过;git diff --cached --check:通过。未验证
TestOperationsMigrationOnPostgres已实现但本轮明确 skip;不能声称真实 PostgreSQL 迁移通过。Git
184f101a86cb52f61a2bb0feb21c055d01ab7a4bdev:debf662138fb48b8bda440482fcfaab823986b42dev;工单保持 OPEN / 待验收。文档影响
已在线更新并回读:
d9b861c2681a0fb9d3db41396c6080c90442a5cbe4a2f95f67f448ca2feba0ffae4f9145ef3969ddaa2262eef7802204afd5f95af973af047ab5627b01e3a6d7f823fe5fd71292435ffefe46f923985d按工单约束未直接修改共享 docs/**。
python dev_scripts/harness.py sync --check已真实执行,但本地脚本凭据返回 401,匿名回退随后超时;Gitea MCP 在线回读四页均成功。核心镜像需由具备有效同步凭据的单一协调工单处理。用户验收通过(2026-08-28)
#72、#74 验收通过184f101a86cb52f61a2bb0feb21c055d01ab7a4bdev:debf662138fb48b8bda440482fcfaab823986b42