From f61f44021bd100c4f87253b7a93de767184eec9b Mon Sep 17 00:00:00 2001 From: YokiiroBW Date: Wed, 22 Jul 2026 03:09:35 +0800 Subject: [PATCH] chore(roadmap): sync roadmap status and acceptance gate --- CHANGELOG.md | 7 ++++++ docs/implementation-queue.md | 21 ++++++++++++++++++ docs/progress.md | 43 +++++++++++++++++++++++++++++++++++- docs/q9-local-acceptance.md | 15 +++++++++++++ src/styles.css | 5 ++++- 5 files changed, 89 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4099318..7035013 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -28,6 +28,13 @@ The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and ## [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 - Authoritative architecture, implementation, and repository workflow documents. diff --git a/docs/implementation-queue.md b/docs/implementation-queue.md index d94259a..1e433c0 100644 --- a/docs/implementation-queue.md +++ b/docs/implementation-queue.md @@ -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. 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. diff --git a/docs/progress.md b/docs/progress.md index fb4d404..401d43d 100644 --- a/docs/progress.md +++ b/docs/progress.md @@ -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. - 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 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. - 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. + + +## 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. diff --git a/docs/q9-local-acceptance.md b/docs/q9-local-acceptance.md index 9b13d72..f28c0a7 100644 --- a/docs/q9-local-acceptance.md +++ b/docs/q9-local-acceptance.md @@ -32,3 +32,18 @@ This checklist covers the local Q9 release line only. It does not claim Windows - Version: `0.1.0-alpha.2` - Executable: `target/release/astrbot-desktop.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. diff --git a/src/styles.css b/src/styles.css index 3ba9d28..072d8fe 100644 --- a/src/styles.css +++ b/src/styles.css @@ -1638,6 +1638,8 @@ body { } .window-chrome-title { + flex: 1 1 auto; + min-width: 0; overflow: hidden; color: #9fb9e3; font-size: 0.78rem; @@ -1655,6 +1657,7 @@ body { } .window-chrome-actions { + flex: 0 0 auto; gap: 0.35rem; } @@ -3008,7 +3011,7 @@ button:disabled { } @media (max-width: 1024px) { - .app-shell { + .app-shell-body { grid-template-columns: 13rem minmax(0, 1fr); }