AstrBot-Desktop/docs/progress.md
YokiiroBW 6a1eeabea8
一些检测仍在等待运行
ci / Portable quality checks (push) Waiting to run
ci / Windows Tauri build (push) Waiting to run
docs(p01): record foundation progress and profile boundary
2026-07-18 22:21:04 +08:00

5.6 KiB

Development Progress

Current phase

P01 foundation is active on feat/p01-foundation; unambiguous foundation work is implemented, while Profile CRUD is paused on a documented stage-boundary conflict.

Completed

  • Read AGENTS.md and all authoritative architecture, implementation, and Forgejo workflow documents.
  • Verified the Windows, Git, Node.js, package-manager, WebView2, Rust, Tauri, and MSVC environment.
  • Initialized a local Git repository on main.
  • Configured origin as ssh://git@localhost:18086/YokiiroBW/AstrBot-Desktop.git.
  • Verified through authenticated Forgejo API and HTTP Git that the remote repository existed, was empty, used main, and granted push permission before the baseline push.
  • Reauthenticated through Git Credential Manager and non-forced pushed the main baseline to Forgejo at 0d12b94.
  • Created and switched to feat/p00-bootstrap from the pushed main baseline.
  • Built the Tauri 2 + React + TypeScript + Rust skeleton with tray, single-instance, CSP, and minimal core:default capability.
  • Implemented independent companion/operations REST and SSE clients and passed the corrected 30-minute soak.
  • Implemented and tested Windows Credential Manager, UI Automation, selected-window capture, Event Log, process, port, foreground-window, authorized log-tail, configuration parsing, and redaction Spikes.
  • Implemented and tested composite-key SQLite isolation and recoverable local file transactions with source preservation.
  • Added provisional protocol types, ten JSON Schemas, TypeScript exports, drift checks, and two loopback-only Mock Gateway instances.
  • Added frontend, Playwright, Rust, integration, Windows-provider, soak, and Forgejo CI entry points.
  • Built the Windows release executable and SHA-256-recorded NSIS installer.
  • Added dependency, Spike, progress, changelog, and pending-decision records.
  • Verified Forgejo PR #1 merged into main as b3420e4.
  • Fast-forwarded local main and created feat/p01-foundation from the merged baseline.
  • Added persistent SQLite startup initialization with WAL, busy timeout, transactional user_version migration, idempotent reopen, and future-version rejection.
  • Added strict Zod validation for the Rust bootstrap IPC payload and exposed the active database schema version.
  • Added a redacting tracing writer that sanitizes structured fields and rendered message content before output.
  • Verified a real Tauri development start created the application database in the Windows app-data directory.
  • Built the P01 Windows release executable and NSIS installer.
  • Committed the implementation, test, and CI increments with Conventional Commit subjects.

In progress

  • Recording the Profile CRUD stage conflict and preparing the verified P01 foundation increment for remote review.

Remaining

  • Resolve whether Profile CRUD belongs in P01 (architecture document) or P02/Batch 2 (implementation task document) before changing its database schema or public IPC.
  • After resolution, complete the selected stage scope and open a PR without automatically merging main.
  • Run the Forgejo workflow when a compatible runner is available.
  • Execute a real UNC transaction only after an authorized disposable fixture is supplied.
  • Add the combined end-to-end test that keeps configured streams active while the real Tauri window is hidden to tray.

Blockers

  • Configured Forgejo SSH localhost:18086 refuses connections.
  • LAN SSH 192.168.31.210:18086 responds but rejects the available public key.
  • HTTP Git push is operational after Git Credential Manager reauthentication and is no longer a blocker.
  • Profile CRUD stage ownership conflicts between the architecture and implementation task documents; implementation is paused because it affects database structure and public IPC.
  • Forgejo runner labels/jobs could not be verified; the jobs API endpoint returned 404.

Test status

  • npm run check:frontend: passed; 2 Vitest tests and production Vite build.
  • pnpm test:e2e: passed; 1 Chromium smoke test.
  • Rust fmt/check/Clippy with warnings denied: passed.
  • cargo test --workspace: 44 passed, 2 explicit manual tests ignored.
  • Controlled Windows UIA/PrintWindow smoke: 1 passed.
  • Corrected dual-SSE soak: 1800.02 seconds, 1800 companion events, 1801 operations events, passed.
  • Protocol Schema drift check: passed.
  • P01 Tauri development startup and application-data SQLite creation: passed.
  • P01 release executable and NSIS installer: passed after repairing the missing official libsqlite3-sys binding cache; installer SHA-256 B8858CBE2F4673FAF40799C1243BCAB0748D194FA3AD67FBD33DDCF26CF27189.
  • pnpm 11.9.0 frozen lockfile-only validation: passed using a local temporary store to avoid the pnpm UNC project-registry limitation.
  • Forgejo CI and a real UNC transaction were not executed and are not claimed successful.

Current branch

feat/p01-foundation

Recent commits

  • 5e6e8d5 docs(project): add architecture and implementation specifications
  • 0d12b94 chore(repo): initialize repository and ignore rules
  • 01607c6 feat(p00): add Tauri desktop spike foundation
  • 69b432b test(p00): add frontend browser rust and windows checks
  • d4af979 ci(forgejo): add portable and windows quality workflows
  • 72a16cb docs(p00): record Forgejo branch publication
  • b3420e4 Merge pull request 'feat(p00): bootstrap Tauri desktop and validate high-risk spikes' (#1)
  • ed74342 feat(foundation): add persistent bootstrap safeguards
  • 353a439 docs(p00): record spike results and unresolved boundaries

Next step

Obtain an explicit decision for PD-0008 before implementing Profile CRUD. Continue other P01 work only if it does not change the disputed profile database or public IPC boundary.