You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Setup › Authentication shows "email and password" on when the deployment declared it off #38029
Filing gate: ① a product defect, found by the os-dev on #34174 (report 7224276022, out-of-scope finding, class a) while fixing PR #38028.
Facts (main 4af32b99, measured at SettingsService.get; the HTTP route itself was not exercised)
On a deployment that declares emailAndPassword.enabled: false and stores nothing, auth.email_password_enabled answers { value: true, source: 'default' } (the manifest default), while getPublicConfig().emailPassword.enabled answers false.
So Setup → Settings → Authentication shows the toggle on for a sign-in method that is off. This holds on self-hosted deployments too, not only cloud-managed ones.
plugin-auth registers no live-status provider for the auth namespace, so nothing reconciles the shown value with the running one.
Expected
The settings page shows the running value of email-and-password sign-in (the deployment's declaration when nothing is stored), or marks the toggle as host-declared.
Seam: spec:auth.email_password_enabled (setting default) → renderer: settings page toggle
Dedupe words: email_password_enabled default shown on declared off, auth settings toggle misstates running value, settings live value emailAndPassword declaration
Triage: lands in area:cloud · domain:server · Bug · p2 · pm:queue · size S; rationale: on a deployment that declares email-and-password sign-in off and stores nothing, Setup › Authentication shows the toggle on (the setting answers the manifest default true, while the public config answers false). An administrator reads a wrong state for a security-relevant switch. Measured at SettingsService.get, and it affects self-hosted deployments too. The sign-in itself stays off, so p2, beside #34174 (p2). Recorded 2026-11-27T18:12Z.
Picked by card-pick.mjs --order area:cloud --seat repo:objectstack#6 (00:12Z read, rank 5, order 1). It waited behind this seat's #38028 on plugin-auth, which merged at 01:00Z. Ranks 1–4 skipped as in claim 7230739921 (#37831 pending a live repro; #35237, #37868, #38024 outside this seat's area:cloud intake). The maintainer in this seat's project, verbatim: 「继续处理 area:cloud p1 p2」.
Claim: PM loop round 11
Session: session_01Q4EjjQkY5yXZrN9BEA3rEK
Account: hotlong
Branch: claude/issue-38029-auth-setting-live-value
Worktree: objectstack-issue-38029
Domain: domain:server
Seat: repo:objectstack#6
File surface: packages/plugins/plugin-auth/** (a live-status provider or equivalent for the auth namespace's email_password_enabled), its tests, the settings service seam only if the provider contract needs it, one changeset
Container & model: S, mode:subagent, model: default, effort: high
Clause-②: no
Metadata-protocol: none
Responsibility: n/a — auth settings shown value vs running value
Thread-read: none
Premise: holds on main per the card; the dev re-measures on latest main (after #38028) at SettingsService.get and through the HTTP settings route before changing anything
Serial constraints cleared: #38028 (same plugin) merged 01:00Z; no other open PR of this seat names plugin-auth.
Scope this dispatch: the whole card. Fixes #38029.
{
"issue": 38029,
"status": "done",
"branch": "claude/issue-38029-auth-setting-live-value",
"pr": "https://github.com/objectstack-ai/objectstack/pull/38094",
"session": "session_01Q4EjjQkY5yXZrN9BEA3rEK",
"premise_still_valid": true,
"summary": "Premise reproduced on main 815e882b (after #38028): AuthPlugin with emailAndPassword.enabled false and nothing stored runs email and password off (getPublicConfig().emailPassword.enabled false) while SettingsService.get AND the real GET /api/settings/:namespace route answer auth.email_password_enabled {value:true, source:'default'}, and the page carried no statement. Fix in plugin-auth only: a live-status provider for the auth namespace (registerLiveStatus, the plugin-email pattern) compares the switch (SettingsService.get with the page context) with the running value after any in-flight settings pass, and when they disagree heads the page with the live_status info_banner: declared-off-nothing-stored (info), cloud-managed hold via #38028's emailPasswordHeldOffByHost predicate (info with nothing stored, warning over a stored on not applied), or any other disagreement (warning); 11 locales; nothing stated while they agree. Resolved values and saves unchanged, a stored value still wins where applied. The switch itself is not changed: the served live field admits only option-bearing string values (spec SettingsNamespacePayloadSchema.live) and re-pointing source default at the declaration changes a published shape, so both are left for a decision (open_questions).",
"tests": "New src/auth-settings-live-status.test.ts (real AuthPlugin + real SettingsService + real settings GET route), 7 cases: declared off/nothing stored shows the banner (en, zh-CN) with values still {true, default}; CONTROL declared on no banner; stored on over declared off and stored off over declared on (host handoff keeps a way in) no banner; managed hold info then warning; 3 unit cases. At ee523615: vitest run src/auth-settings-live-status.test.ts Test Files 1 passed, Tests 7 passed, lock VERDICT command-exit 0. Reverse verification: fix committed, auth-plugin.ts restored from base 815e882b via git restore --source (unstaged): Tests 2 failed | 5 passed, both failures at the banner assertion ('expected undefined to match object') after the premise assertions passed; restored with git restore --source=HEAD, git status --porcelain empty. At 022ffdfd (adds only the changeset): pnpm --filter @objectstack/plugin-auth build, typecheck (tsc, examples project, check:test-typecheck OK), test: Test Files 296 passed (296), Tests 6305 passed | 10 skipped (6315), VERDICT command-exit 0.",
"gates": "Local at 022ffdfd: node scripts/pm/dispatch-gates.mjs --repo objectstack-ai/objectstack --commands derived 77 (change set 4 paths vs merge base 815e882be); ran all with exit codes captured before any pipe; --ran: 77 derived, 74 run exit 0, 3 NOT-MEASURED (exit 3 prerequisite), 0 UNRUN. NOT MEASURED: node scripts/check-plugin-teardown-shape.mjs --self-test (pinned fixture needs unshallowed clone), pnpm check:dual-build-cjs-loads (reads dists outside the built closure), pnpm check:type-check-debt (closure build queue-timeout on the shared verify lock behind a sibling's dogfood run). CI check-runs on #38094: not read at report time (just opened), in_progress. test:repo not run locally (diff touches no repo-project test).",
"dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm (claim's Clause-②: no copied)",
"mcp_calls": "0",
"api_writes": "2 — fleet-write relay pr_create (POST /repos/objectstack-ai/objectstack/pulls + POST /issues/38094/assignees); this os-dev-report comment via post-stamped.mjs (POST /issues/38029/comments). git push not counted.",
"open_questions": [
{
"question": "Should the Authentication switch itself show the running value (declaration when nothing is stored) instead of only a banner marking it?",
"options": [
"A keep the banner (this PR): no contract change; the switch and keys gated on email_password_enabled !== false still read on under a declared off",
"B settings-service seam for a runtime-declared default (e.g. a provider per key consulted where the manifest default is read in the cascade, validatePatch and env coercion): value resolves false with source default; changes what source default means on the published ResolvedSettingValue, also fixes #38028's no-change save of true; medium, touches service-settings + plugin-auth",
"C widen the served live field (spec SettingsNamespacePayloadSchema.live) to admit booleans for toggles and teach the console to render live over values: spec + ui change, Metadata-protocol none but a published-shape widening; larger"
],
"recommendation": "A now, B as a follow-up card if the maintainer wants the switch itself corrected: B reaches every auth key whose declaration differs from the manifest default (signup_enabled, require_email_verification) and closes the managed no-change save, without a spec shape change, but redefines source default and needs a ruling."
}
],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: none · noted, not filed: the same shown-vs-declared gap exists for other auth keys whose deployment declaration differs from the manifest default (signup_enabled, require_email_verification); inferred from bindAuthSettings ('Manifest defaults are UI defaults'), not measured through a public door; recorded in PR Acceptance notes"
]
}
Activity
objectstack-fleet commentedon Nov 27, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: lands in area:cloud · domain:server · Bug · p2 · pm:queue · size S; rationale: on a deployment that declares email-and-password sign-in off and stores nothing, Setup › Authentication shows the toggle on (the setting answers the manifest default
true, while the public config answersfalse). An administrator reads a wrong state for a security-relevant switch. Measured atSettingsService.get, and it affects self-hosted deployments too. The sign-in itself stays off, so p2, beside #34174 (p2). Recorded 2026-11-27T18:12Z.objectstack-fleet commentedon Nov 28, 2026
repo:objectstack#6 · hotlong · session_01Q4EjjQkY5yXZrN9BEA3rEK
Picked by
card-pick.mjs --order area:cloud --seat repo:objectstack#6(00:12Z read, rank 5, order 1). It waited behind this seat's #38028 onplugin-auth, which merged at 01:00Z. Ranks 1–4 skipped as in claim 7230739921 (#37831 pending a live repro; #35237, #37868, #38024 outside this seat'sarea:cloudintake). The maintainer in this seat's project, verbatim: 「继续处理 area:cloud p1 p2」.Claim: PM loop round 11
Session:
session_01Q4EjjQkY5yXZrN9BEA3rEKAccount:
hotlongBranch:
claude/issue-38029-auth-setting-live-valueWorktree:
objectstack-issue-38029Domain:
domain:serverSeat:
repo:objectstack#6File surface:
packages/plugins/plugin-auth/**(a live-status provider or equivalent for theauthnamespace'semail_password_enabled), its tests, the settings service seam only if the provider contract needs it, one changesetContainer & model:
S,mode:subagent,model: default,effort: highClause-②: no
Metadata-protocol: none
Responsibility:
n/a — auth settings shown value vs running valueThread-read: none
Premise: holds on main per the card; the dev re-measures on latest main (after #38028) at
SettingsService.getand through the HTTP settings route before changing anythingSerial constraints cleared: #38028 (same plugin) merged 01:00Z; no other open PR of this seat names
plugin-auth.Scope this dispatch: the whole card.
Fixes #38029.objectstack-fleet commentedon Nov 28, 2026
repo:objectstack#6 · hotlong · session_01Q4EjjQkY5yXZrN9BEA3rEK
os-dev-report
{ "issue": 38029, "status": "done", "branch": "claude/issue-38029-auth-setting-live-value", "pr": "https://github.com/objectstack-ai/objectstack/pull/38094", "session": "session_01Q4EjjQkY5yXZrN9BEA3rEK", "premise_still_valid": true, "summary": "Premise reproduced on main 815e882b (after #38028): AuthPlugin with emailAndPassword.enabled false and nothing stored runs email and password off (getPublicConfig().emailPassword.enabled false) while SettingsService.get AND the real GET /api/settings/:namespace route answer auth.email_password_enabled {value:true, source:'default'}, and the page carried no statement. Fix in plugin-auth only: a live-status provider for the auth namespace (registerLiveStatus, the plugin-email pattern) compares the switch (SettingsService.get with the page context) with the running value after any in-flight settings pass, and when they disagree heads the page with the live_status info_banner: declared-off-nothing-stored (info), cloud-managed hold via #38028's emailPasswordHeldOffByHost predicate (info with nothing stored, warning over a stored on not applied), or any other disagreement (warning); 11 locales; nothing stated while they agree. Resolved values and saves unchanged, a stored value still wins where applied. The switch itself is not changed: the served live field admits only option-bearing string values (spec SettingsNamespacePayloadSchema.live) and re-pointing source default at the declaration changes a published shape, so both are left for a decision (open_questions).", "tests": "New src/auth-settings-live-status.test.ts (real AuthPlugin + real SettingsService + real settings GET route), 7 cases: declared off/nothing stored shows the banner (en, zh-CN) with values still {true, default}; CONTROL declared on no banner; stored on over declared off and stored off over declared on (host handoff keeps a way in) no banner; managed hold info then warning; 3 unit cases. At ee523615: vitest run src/auth-settings-live-status.test.ts Test Files 1 passed, Tests 7 passed, lock VERDICT command-exit 0. Reverse verification: fix committed, auth-plugin.ts restored from base 815e882b via git restore --source (unstaged): Tests 2 failed | 5 passed, both failures at the banner assertion ('expected undefined to match object') after the premise assertions passed; restored with git restore --source=HEAD, git status --porcelain empty. At 022ffdfd (adds only the changeset): pnpm --filter @objectstack/plugin-auth build, typecheck (tsc, examples project, check:test-typecheck OK), test: Test Files 296 passed (296), Tests 6305 passed | 10 skipped (6315), VERDICT command-exit 0.", "gates": "Local at 022ffdfd: node scripts/pm/dispatch-gates.mjs --repo objectstack-ai/objectstack --commands derived 77 (change set 4 paths vs merge base 815e882be); ran all with exit codes captured before any pipe; --ran: 77 derived, 74 run exit 0, 3 NOT-MEASURED (exit 3 prerequisite), 0 UNRUN. NOT MEASURED: node scripts/check-plugin-teardown-shape.mjs --self-test (pinned fixture needs unshallowed clone), pnpm check:dual-build-cjs-loads (reads dists outside the built closure), pnpm check:type-check-debt (closure build queue-timeout on the shared verify lock behind a sibling's dogfood run). CI check-runs on #38094: not read at report time (just opened), in_progress. test:repo not run locally (diff touches no repo-project test).", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm (claim's Clause-②: no copied)", "mcp_calls": "0", "api_writes": "2 — fleet-write relay pr_create (POST /repos/objectstack-ai/objectstack/pulls + POST /issues/38094/assignees); this os-dev-report comment via post-stamped.mjs (POST /issues/38029/comments). git push not counted.", "open_questions": [ { "question": "Should the Authentication switch itself show the running value (declaration when nothing is stored) instead of only a banner marking it?", "options": [ "A keep the banner (this PR): no contract change; the switch and keys gated on email_password_enabled !== false still read on under a declared off", "B settings-service seam for a runtime-declared default (e.g. a provider per key consulted where the manifest default is read in the cascade, validatePatch and env coercion): value resolves false with source default; changes what source default means on the published ResolvedSettingValue, also fixes #38028's no-change save of true; medium, touches service-settings + plugin-auth", "C widen the served live field (spec SettingsNamespacePayloadSchema.live) to admit booleans for toggles and teach the console to render live over values: spec + ui change, Metadata-protocol none but a published-shape widening; larger" ], "recommendation": "A now, B as a follow-up card if the maintainer wants the switch itself corrected: B reaches every auth key whose declaration differs from the manifest default (signup_enabled, require_email_verification) and closes the managed no-change save, without a spec shape change, but redefines source default and needs a ruling." } ], "security_findings": "none", "out_of_scope_findings": [ "carrier: none · noted, not filed: the same shown-vs-declared gap exists for other auth keys whose deployment declaration differs from the manifest default (signup_enabled, require_email_verification); inferred from bindAuthSettings ('Manifest defaults are UI defaults'), not measured through a public door; recorded in PR Acceptance notes" ] }objectstack-fleet commentedon Nov 28, 2026
repo:objectstack#6 · hotlong · session_01Q4EjjQkY5yXZrN9BEA3rEK
Landed by #38094. Follow-up: #38098 (the switch itself showing the running value).