Files
Nexus/docs/audit/2026-06-13-watch-beijing-remove-browser.md
T
2026-07-08 22:31:31 +08:00

70 lines
3.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 审计 — 监测历史北京时间 + 下线远程浏览器
**Changelog**:
- `docs/changelog/2026-06-13-watch-history-beijing-time.md`
- `docs/changelog/2026-06-12-remove-remote-browser.md`
## 审计范围
| 文件 | 变更 | 状态 |
|------|------|------|
| `frontend/src/utils/datetime.ts` | `formatChartAxisBeijing` | ☑ |
| `frontend/src/components/watch/WatchProbeRecordsTable.vue` | 北京时间列 | ☑ |
| `frontend/src/components/watch/WatchSparkline.vue` | tooltip 北京时间 | ☑ |
| `frontend/src/components/watch/WatchTrendChart.vue` | 轴/tooltip 北京时间 | ☑ |
| `frontend/src/pages/WatchMetricsPage.vue` | 「北京时间」标签 | ☑ |
| `frontend/src/App.vue` | 移除 GlobalBrowserPanel | ☑ |
| `frontend/src/router/index.ts` | 移除 `/browser` 路由 | ☑ |
| `frontend/src/pages/ServersPage.vue` | 站点 `window.open` | ☑ |
| `frontend/src/pages/AuditPage.vue` | 移除未用 import | ☑ |
| `frontend/src/components/GlobalBrowserPanel.vue` | 删除 | ☑ |
| `frontend/src/composables/useGlobalBrowser.ts` | 删除 | ☑ |
| `frontend/src/composables/useRemoteBrowserSession.ts` | 删除 | ☑ |
| `frontend/src/pages/BrowserPage.vue` | 删除 | ☑ |
| `server/main.py` | 注销 browser 路由 | ☑ |
| `server/api/browser.py` | 删除 | ☑ |
| `server/api/browser_session.py` | 删除 | ☑ |
| `server/infrastructure/browser/` | 删除 | ☑ |
| `__init__.py` | browser 包删除 | ☑ |
| `server/utils/browser_ui_state.py` | 删除 | ☑ |
| `server/utils/browser_url_safe.py` | 删除 | ☑ |
| `browser-worker/` | 删除 | ☑ |
| `Dockerfile` | browser-worker 删除 | ☑ |
| `browser-worker/main.py` | 删除 | ☑ |
| `browser-worker/browser_url_safe.py` | 删除 | ☑ |
| `browser-worker/browser_stealth.py` | 删除 | ☑ |
| `browser-worker/config.py` | 删除 | ☑ |
| `browser-worker/docker-compose.yml` | 删除 | ☑ |
| `browser-worker/docker-entrypoint.sh` | 删除 | ☑ |
| `browser-worker/requirements.txt` | 删除 | ☑ |
| `browser-worker/session_manager.py` | 删除 | ☑ |
| `server/infrastructure/browser/__init__.py` | 删除 | ☑ |
| `server/infrastructure/browser/session_registry.py` | 删除 | ☑ |
| `server/infrastructure/browser/worker_client.py` | 删除 | ☑ |
| `tests/test_browser_ui_state.py` | 删除 | ☑ |
| `tests/test_browser_url_safe.py` | 删除 | ☑ |
| `tests/chain/test_agent_dashboard_flow.py` | Redis pipeline mock | ☑ |
## Step 3 规则扫描
| H | 规则 | 结论 |
|---|------|------|
| H1 | 北京时间仅前端展示,不改 API 时区 | SAFE |
| H2 | 浏览器下线后无孤立 `/api/browser` 注册 | SAFE |
| H3 | `browserUrl.ts` 保留供站点外链 | SAFE |
| H4 | 无新密钥/明文 | SAFE |
## Closure
| H | 判定 | 依据 |
|---|------|------|
| H1H4 | SAFE | L2b 26/26chain 9/9vite build OK |
## DoD
- [x] `bash scripts/local_verify.sh`
- [x] `pytest tests/chain -q`
- [x] `cd frontend && npx vite build`
- [x] changelog + audit
- [ ] 生产 `/health` + `#/watch-metrics` 北京时间终验