chore(roadmap): sync roadmap status and acceptance gate

这个提交存在于:
YokiiroBW 2026-07-22 03:09:35 +08:00
父节点 d100da324d
当前提交 f61f44021b
共有 5 个文件被更改,包括 89 次插入 和 2 次删除

查看文件

@ -28,6 +28,13 @@ The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and
## [Unreleased] ## [Unreleased]
### Changed
- Synchronized the 13-item roadmap status with the actual P02 implementation state.
- Documented external prerequisites for HTTPS certificate pinning, signed updates, and dual-server soak testing.
- Fixed duplicate optimistic chat messages when switching sessions repeatedly.
### Added ### Added
- Authoritative architecture, implementation, and repository workflow documents. - Authoritative architecture, implementation, and repository workflow documents.

查看文件

@ -200,3 +200,24 @@ Acceptance: the chat panel can discover model options, stage uploaded files, and
- Keep message identity scoped by slot and session ID so switching sessions cannot mix content. - Keep message identity scoped by slot and session ID so switching sessions cannot mix content.
Acceptance: a connected slot can display remote sessions and switch between them without affecting the other slot. Acceptance: a connected slot can display remote sessions and switch between them without affecting the other slot.
## 2026-07-21: implementation status for the 13-item roadmap
The roadmap items are implemented locally as follows:
1. Startup auto-connect: done in src-tauri/src/networking/commands.rs and src-tauri/src/lib.rs.
2. Credential rotation and JWT: done in src-tauri/src/credentials, src-tauri/src/auth.rs, and CredentialEnrollmentCard.tsx.
3. Server identity protection: done through expected_server_instance_id validation in the Rust clients.
4. Quick chat: done in src-tauri/src/quick_window.rs and the Tauri window controller.
5. Tray and status bubble: done in src-tauri/src/lib.rs and src/features/chat/StatusBubble.tsx.
6. Pet state and assets: done in src/features/pet/DesktopPetView.tsx and src/features/pet/assets.
7. Multi-monitor/game policy: done in src-tauri/src/pet.rs and src-tauri/src/windows.
8. Voice interaction: done as a Web Speech MVP in src/features/chat/ChatPanel.tsx.
9. Proactive messages: done through normalized runtime events and unread persistence.
10. Chat reliability: done with session-scoped history merge and duplicate regression coverage.
11. Diagnostics and log redaction: done in src-tauri/src/diagnostics and src-tauri/src/logging.rs.
12. Release executable and installer: done for unsigned local artifacts under target/release.
13. Final acceptance: local gate is ready; external release acceptance is pending the prerequisites below.
The following are deliberately not marked complete: HTTPS certificate pinning, signed updater delivery, and real dual-server soak. They require external infrastructure or release secrets and must not be faked in local development.

查看文件

@ -335,7 +335,7 @@ Still not claimed complete: automatic startup activation, real Tauri multi-windo
- Normalized persisted in-app pet coordinates on mount and window resize so stale positions cannot remain over the sidebar after an upgrade or window-size change. - Normalized persisted in-app pet coordinates on mount and window resize so stale positions cannot remain over the sidebar after an upgrade or window-size change.
- Final frontend validation after the normalization: targeted Prettier, typecheck, lint, Vitest 6, `git diff --check`, and Vite production build passed. Node 24.14.0 still emits the repository's existing engine warning for the `>=24.17.0` requirement. - Final frontend validation after the normalization: targeted Prettier, typecheck, lint, Vitest 6, `git diff --check`, and Vite production build passed. Node 24.14.0 still emits the repository's existing engine warning for the `>=24.17.0` requirement.
## 2026-07-22: complete frontend UI redesign queue P1-P3 ## 2026-07-21: complete frontend UI redesign queue P1-P3
- Completed P1 core-page work: ProfileManager credential form labels and feedback, StatusBubble semantic status tones, DesktopBehaviorPage grouping, DiagnosticsPage field labels and async feedback. - Completed P1 core-page work: ProfileManager credential form labels and feedback, StatusBubble semantic status tones, DesktopBehaviorPage grouping, DiagnosticsPage field labels and async feedback.
- Completed P2 code splitting: moved DesktopBehaviorPage and DiagnosticsPage to `src/pages/SettingsPages.tsx`; moved DesktopPetView and sprite loading to `src/features/pet/DesktopPetView.tsx`; kept ProfileManager and PetPackImporter lazy-loaded. - Completed P2 code splitting: moved DesktopBehaviorPage and DiagnosticsPage to `src/pages/SettingsPages.tsx`; moved DesktopPetView and sprite loading to `src/features/pet/DesktopPetView.tsx`; kept ProfileManager and PetPackImporter lazy-loaded.
@ -345,3 +345,44 @@ Still not claimed complete: automatic startup activation, real Tauri multi-windo
- Completed P3 polish pass for desktop shell hierarchy, status messaging, profile credentials, diagnostics, desktop pet boundary, empty/error/loading states, and dark/light token usage without adding marketing-style animation. - Completed P3 polish pass for desktop shell hierarchy, status messaging, profile credentials, diagnostics, desktop pet boundary, empty/error/loading states, and dark/light token usage without adding marketing-style animation.
- Validation: targeted Prettier, ESLint, TypeScript, Vitest 6/6, Vite production build, Playwright 5/5, Rust fmt, Clippy with warnings denied, Rust workspace tests (67), and Rust workspace check all passed. - Validation: targeted Prettier, ESLint, TypeScript, Vitest 6/6, Vite production build, Playwright 5/5, Rust fmt, Clippy with warnings denied, Rust workspace tests (67), and Rust workspace check all passed.
- Known non-blocking warnings: Node is `24.14.0` while the package requires `>=24.17.0`; Vite reports the intentional lazy `DesktopPetView` chunk above 500 kB. - Known non-blocking warnings: Node is `24.14.0` while the package requires `>=24.17.0`; Vite reports the intentional lazy `DesktopPetView` chunk above 500 kB.
## 2026-07-21: roadmap completion audit
Baseline source commit: d100da3 (fix chat duplicate history on session switch); current roadmap audit changes are pending commit.
Current branch: feat/p02-dual-connections.
### Completed locally
1. Startup auto-connect: Rust independently attempts configured Companion and Operations slots.
2. Credential lifecycle: Windows Credential Manager enrollment, replacement, clearing, and JWT login are implemented; secrets remain Rust-owned.
3. Server identity: expected server_instance_id binding and mismatch rejection are implemented.
4. JWT login: Dashboard login, JWT expiry detection, 401/403 state mapping, and re-login UI are implemented.
5. Quick chat window: single instance, geometry persistence, clamping, and shared Rust runtime are implemented.
6. Tray and status bubble: main/quick/pet recovery, slot status, unread count, quiet hours, and click routing are implemented.
7. Pet foundation: state-driven renderer, safe manifest/assets, transparent window, and reduced-motion behavior are implemented.
8. Multi-monitor/game strategy: monitor geometry, safe-edge placement, constrained foreground/process inspection, and fallback behavior are implemented.
9. Voice/proactive messages: Web Speech MVP, target slot selection, proactive message mapping, unread state, and quiet hours are implemented.
10. Chat reliability: session-scoped persistence, attachment recovery, event de-duplication, and session-switch duplicate prevention are implemented.
11. Logging/diagnostics: redaction, session recovery marker, read-only diagnostics, and bounded diagnostic output are implemented.
12. Release build: Windows release executable and unsigned NSIS installer build successfully.
13. Acceptance coverage: frontend, Rust, integration, browser, and release checks exist in the current development line.
### External acceptance blockers
- Certificate fingerprint binding requires a real HTTPS endpoint and an explicit first-trust interaction; the current test target is HTTP.
- Code signing and automatic updates require signing certificates, updater keys, and an update endpoint; no secrets or signing material are present locally.
- Long-term dual-server soak requires a second real AstrBot instance with a distinct server_instance_id.
### Next engineering action
Run the full stage gate, refresh the local acceptance checklist, then create the P02 pull request. Do not claim certificate pinning, signed updates, or dual-server soak until the external prerequisites are supplied.
## 2026-07-21: full local stage gate
- Frontend lint, TypeScript, Vitest (9 tests), Vite production build: passed.
- Playwright UI polish suite: 4/4 passed after fixing the 1024px shell grid selector.
- Rust fmt, Clippy with warnings denied, workspace tests (67), and workspace check: passed.
- Tauri release build and unsigned NSIS bundle: passed.
- Full repository Prettier remains blocked by 20 pre-existing unformatted files; no broad reformat was applied.

查看文件

@ -32,3 +32,18 @@ This checklist covers the local Q9 release line only. It does not claim Windows
- Version: `0.1.0-alpha.2` - Version: `0.1.0-alpha.2`
- Executable: `target/release/astrbot-desktop.exe` - Executable: `target/release/astrbot-desktop.exe`
- Unsigned installer: `target/release/bundle/nsis/AstrBot Desktop_0.1.0-alpha.2_x64-setup.exe` - Unsigned installer: `target/release/bundle/nsis/AstrBot Desktop_0.1.0-alpha.2_x64-setup.exe`
## 2026-07-21 verification update
- Frontend lint, typecheck, Vitest (9), Vite build: passed.
- Playwright UI polish suite: 4/4 passed, including 1280px, 1024px, and 680px shell checks.
- Rust fmt, Clippy, workspace tests (67), and workspace check: passed.
- Tauri release executable and unsigned NSIS installer: passed.
- Full Prettier check still reports 20 pre-existing files outside this focused fix; broad formatting was intentionally not mixed into the release increment.
## Explicitly pending external acceptance
- HTTPS certificate pinning requires a real HTTPS endpoint and first-trust confirmation.
- Signed updater delivery requires release certificates, updater keys, and an update endpoint.
- Dual-server soak requires a second real AstrBot instance with a distinct server_instance_id.

查看文件

@ -1638,6 +1638,8 @@ body {
} }
.window-chrome-title { .window-chrome-title {
flex: 1 1 auto;
min-width: 0;
overflow: hidden; overflow: hidden;
color: #9fb9e3; color: #9fb9e3;
font-size: 0.78rem; font-size: 0.78rem;
@ -1655,6 +1657,7 @@ body {
} }
.window-chrome-actions { .window-chrome-actions {
flex: 0 0 auto;
gap: 0.35rem; gap: 0.35rem;
} }
@ -3008,7 +3011,7 @@ button:disabled {
} }
@media (max-width: 1024px) { @media (max-width: 1024px) {
.app-shell { .app-shell-body {
grid-template-columns: 13rem minmax(0, 1fr); grid-template-columns: 13rem minmax(0, 1fr);
} }