4.0 KiB
SDD ledger — plan: docs/superpowers/plans/2026-10-16-bpm-login.md
User authorization: first real BPM login step approved; admin creation confirmed by user.
Ruling: use designated non-Git workspace and document progress here — no repository exists, so commits/worktree helper do not apply. Ruling: keep dev-only preview fixture for existing regression tests, stop its service and remove product/demo entry plus root preview launcher — preserve all user data. Ruling: verify old portal login separately but do not open old orders automatically — individual detail permission belongs to the later collection task.
| Pair/task | Interface/content check | Outcome |
|---|---|---|
| 1 ↔ 2 | manager signatures + principal session identity | exact shared contract above |
| 2 ↔ 3 | route verbs, JSON and JPEG | exact shared contract above |
| 1 ↔ 4 | constructor stateDir + shutdown | local protected storage and graceful close |
| 3 ↔ 4 | static asset /bpm.js | integrator verifies route registration |
| Task 1 | browser auth fixtures test isolation and restart | consistent |
| Task 2 | metadata not trusted from request; role + transport tests | consistent |
| Task 3 | frame stream disposal and ordered input | consistent |
| Task 4 | deployment preserves administrator/data | consistent |
Preview service PID 3284 verified project scripts/preview.cjs and stopped; demo tab closed. Existing formal tab confirms admin signed in.
Ruling: include exact HTTPS sso.skyworthdigital.com — dedicated new browser observed bpmn redirect to company SSO with username/password controls; required for already-authorized primary portal login. No wildcard hosts. Ruling: private in-process CDP request guard may enforce all redirect hops; no CDP endpoint exposed — Playwright routes alone miss redirected browser requests.
Task 2: complete — HTTP/store/role/transport/restart focused checks 16/16 passed. Cross-layer review dispatched. Task 4 integration: real formal-dashboard-to-isolated-BPM-fixture test passed under production CSP; exercised typed login, JPEG display, save, close, reload, restored check. Runtime restart/admin preservation test passed in Task 2 focused run. TDD runtime red: main export absent; implemented isolated startup/stop and manager wiring.
Task 1: complete initial implementation — 9/9 focused checks; actual new dedicated browser reached SSO username/password and legacy username/password/captcha fields with JPEG output, no credentials entered. Review fixes under execution. Task 3: complete initial implementation — 9/9 UI/navigation checks. Final review found pending-open unload cleanup skipped close; implementer reproduced real unload and is fixing synchronous keepalive cleanup. Task 2 review: API approved after partial task fix — initial partial creates none, previously connected partial creates a check task, repeated partial/login_required dedup, wording does not assert network failure means expired. Focused re-review10/10 passed. Ruling: partial after previous connected warrants owner attention, title 'BPM 连接需要检查' rather than an expiry claim — correct prior brief to match plan's attention requirement and avoid false statuses. Task 1 review: parent whole UI integration exposed immediate save racing login reload; reviewer reproduced both read-only verification navigations interrupted by login navigation. Implementer added CDP lifecycle settling and bounded interrupted-navigation retry, no replay of login submissions.
Final first-step regression: 54/54 passed, 0 skipped/failures; all changed JS syntax checks passed. Independent API/UI and browser/vault/runtime reviewers approved after fixes. Formal service restarted as verified PID42884, 18765 localhost + 18766 shared dashboard, no18776 listener. Production bootstrap required=false; existing one admin and BPM主连接 preserved. Formal browser tab reloaded to normal login screen; user asked to self-login/check/save. User instead added account托管 requirement, continued under docs/superpowers/plans/2026-10-16-bpm-credentials.md.