feat(auth): add formal password authentication foundation (M0A.5a)#83
Open
wangjk9527 wants to merge 1 commit into
Open
feat(auth): add formal password authentication foundation (M0A.5a)#83wangjk9527 wants to merge 1 commit into
wangjk9527 wants to merge 1 commit into
Conversation
wangjk9527
force-pushed
the
feat/m0a5a-formal-auth-foundation
branch
2 times, most recently
from
July 23, 2026 16:09
76a7f47 to
0989386
Compare
iancaoo
requested changes
Jul 24, 2026
iancaoo
left a comment
Contributor
There was a problem hiding this comment.
一处硬语法错误:scripts/verify-token-usage-display.mjs 第 6 行把新的 import 插进了既有 import { ... } from ".../live-run-state.ts" 块内部,node --check 直接报 SyntaxError: Unexpected reserved word,该脚本无法加载/运行。其余改动整体 OK。
实现 password 模式会话/CSRF/注册策略,并修复 HITL 事件桥、cookie Path 与缺失注册策略静默 open 等确定性缺陷。脚本侧统一正式认证客户端,并为 FORMAL_HTTP_AUTH_TARGETS 增加 node --check 语法门禁。
wangjk9527
force-pushed
the
feat/m0a5a-formal-auth-foundation
branch
from
July 24, 2026 02:51
0989386 to
a91e8d7
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Lands the M0A.5a formal authentication foundation: a reusable password-auth contract and shared test client for API and automated tests, while retaining the existing development auth entry point.
GET /api/v1/auth/statusexpiresAtCSRF_INVALID)createAuthenticatedTestClient(); core HTTP smoke/seed paths migrate to password mode with dynamicuserId/workspaceIdscripts/**/*.mjs; CIcore-smoke-testsruns password-modetest:auth-foundationask_user/submit_planbypass ActionRouter; emitTOOL_CALL_ENDbefore synthesizedRUN_FINISHEDsointeraction.requestedcan completeOut of scope: M0A.5b (TUI login, #84) and native one-click deployment (#82).
Design / plan
docs/superpowers/specs/2026-07-23-formal-auth-and-tui-login-design.mddocs/superpowers/plans/2026-07-23-m0a5a-formal-auth-foundation.mddocs/superpowers/specs/2026-07-22-native-one-click-deployment-design.mdTest plan
npm run test:auth-foundationnpm run smoke:authnpm run smoke:config-apinpm run smoke:copilotkit-runnpm run smoke:server-datasources(skipped when no external DB)npm run typechecknpm run test:webnpm --workspace @datafoundry/tui testCore Smoke TestsgreenNotes
devauth mode is retained; new tests do not depend on it.registrationModeuntil M0A.5c.