Files
order-notification-automation/docs/superpowers/plans/2026-10-16-bpm-credentials-progress.md
T

3.3 KiB

SDD ledger — plan: docs/superpowers/plans/2026-10-16-bpm-credentials.md

Authorization: user explicitly said '可以的,账号也需要托管。' after first real login deployment. Ruling: extend encrypted vault to host BPM account/password; previous no-password-persistence stance is superseded by this explicit request. Password never returned/logged or captured implicitly from remote typing. Ruling (superseded): initial fill-only restriction replaced by explicit user requirement for automatic custody and no repeated login. Cookie-first ensure, verified SSO auto-submit, challenge-only manual intervention; business processing remains later scope. Ruling: current designated non-Git workspace is implementation destination; no worktree/commits.

Interface/task Check Outcome
1 ↔ 2 account GET/POST, clear and fill verbs/shapes exact shared contract above
1 ↔ 3 no secret metadata/audit, restart/disable lifecycle explicit tests and review
Task 1 reuse vault no plaintext credential storage consistent
Task 2 write-only password form, stale-page guards consistent
Task 3 production user enters credentials no need agent account access

Existing deployed first-step baseline: 54/54 tests, actual service PID42884 ports18765/18766, no preview listener, one real admin and BPM主连接 preserved; pending actual user login.

Parent implementation: dashboard-sessions.cjs persists hashed workbench tokens for 30 sliding days and revocation across restarts; RED missing module/restart401 -> GREEN2/2. bpm-custodian.cjs startup and 5-minute sequential ensure, no overlap, interactive/disabled skip, stop waits; RED absent -> GREEN2/2. Runtime lifecycle integrated. Backend/UI independent tasks implement credential encryption, safe metadata, exact forms, automatic reuse/cooldown, interface password clearing and navigation lifecycle. Full regression/review/deployment pending.

Final: all three implementation tasks and independent review complete. Full final suite 76/76 PASS; syntax38/38 PASS; backend focused27/27 PASS. Review P2 partial portal state loss reproduced and fixed; repeated ensure/restart now retains portal without repeated password submission. Whole UI+server+real local browser integration covers account save after manual login, positive cookie reuse, no secret metadata/password DOM return. Actual production restarted once after all checks: PID23632 ports18765/18766, required=false/preview=false, stderr empty. Original user and connection kept; no real managed credential entered by agent, actual BPM authenticated renewal/30 elapsed days not claimed. User only needs initial account entry in product; no repeated permission/login prompts introduced.

Latest user ruling: only new BPM, no legacy maintenance. Removed legacy auth origin/form/probe/navigation/UI/check and partial results. Portal positive identity alone is connected. Added transactional connection metadata migration preserving owner/identity/lastConnectedAt and stripping old fields. RED portal-only/detail rejection/old-origin regressions -> GREEN; final complete suite79/79, syntax39/39, independent delta review29/29 approved. Production PID18800 ports18765/18766 healthy, stderr empty, one existing user and one connection retained, no legacy fields. Cookie custody/automatic checks/30-day workbench sessions retained. No real credentials or business mutations.