[OPS] 建立三项目独立且可选集成的根级部署编排 #154
Closed
opened 2026-08-29 21:04:55 +08:00 by ila
·
4 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#154
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.
状态
已完成(用户于 2026-08-31 验收通过;PR #167 已合入
dev)基本信息
目标
提供可选的根级部署和 start/stop/status 编排,使 Sense、Brain、Bell 保持独立配置、数据库、身份、版本与发布,同时能按冻结契约组成闭环。
范围
非目标
不执行生产发布、安装未知系统服务、共享数据库/卷、修改产品业务代码、承诺 16 路性能或替代各产品独立交付脚本。
精确 write_paths
deploy/coordination/**scripts/runtime/coordination/**禁止写入:
Sense/**、Brain/**、Bell/**、contracts/**、其他根级文件和docs/**。验收标准
验证
隔离临时环境部署 smoke、独立与组合启动、任一端停止、端口/目录/数据库隔离、秘密扫描、失败退出码和清理检查。
风险与回退
错误编排可能串用数据库或身份。启动前做隔离断言;回退停止根级编排并恢复各产品独立入口,不删除数据或修改共享事实。
设计与文档影响
非 UI 任务;完成后必须更新 Deployment-and-Operations、Architecture、Local-Development-and-Verification 和 Troubleshooting Wiki。
开始实施(2026-08-31):#151、#152、#153 均已验收并合入
dev。单一 coordination agent 从dev@eb4e1a9ea1d671b942502c2d886d563527569111建立feature/154-coordination-deployment;严格只写deploy/coordination/**与scripts/runtime/coordination/**。方案使用声明式清单组合既有产品入口,外部 env/密钥注入、隔离断言、归属 PID、单端/组合 start-stop-status 和失败诊断;不修改产品代码、契约、docs 或生产系统。实施完成,等待人工验收(2026-08-31)
最终差异
start/stop/statusPowerShell 与 BAT 入口;启动顺序 Bell → Sense → Brain,停止顺序反向。验证证据
pwsh.exe -NoLogo -NoProfile -File deploy/coordination/tests/coordination-smoke.ps1:通过。覆盖 Sense/Brain/Bell 分别启动、健康检查和停止,Brain+Bell 组合启动,停止单端不影响另一端,单端失败隔离,端口占用、重复端口、重复数据库身份拒绝,PID 归属保护、清单漂移诊断、失败退出码与状态清理。python dev_scripts/harness.py check --strict:通过。python -m unittest discover -s tests -v:48 项通过。git diff --check:通过;凭据/私钥/已知测试密码模式扫描无命中。Git / PR
e2f7183ecf5e408d31c45cfa076236e4d274db7b504dd1afeature/154-coordination-deployment→dev)未验证与文档影响
未执行生产发布,未使用真实三端发布包、生产 PostgreSQL、客户 PKI 或客户环境 connector;本次以仓库外临时隔离假包验证编排行为。真实契约闭环与故障恢复属于后续 #155。
本工单会改变长期部署、架构、验证和排错事实。按工作流,待用户验收后再更新 Gitea Wiki 的 Deployment-and-Operations、Architecture、Local-Development-and-Verification、Troubleshooting,并同步核心镜像;当前未直接修改
docs/**。用户于 2026-08-31 明确“#154 验收通过”。
dev,合并提交:4a2c4aa638fd121ff67070dcf69c308e25437b84。f71d21296bc4、Architecture77af1bb5a71d、Local Verification7e5ec44eb0af、Troubleshooting0d4a70626b4a。docs/**,镜像同步由独立文档工单 #168 承接;提交27d465c、PR #169,当前待验收。#168 已于 2026-08-31 验收,PR #169 已合入
dev(55b12df)。#154 的四个长期 Wiki 页面及核心镜像现已全部完成闭环。