Repository navigation
fix(plugin-auth)!: Setup → Authentication shows what the deployment runs for every declared auth setting, and says when sign-up is forced off - #38255
Conversation
… every key it states; sign-up forced off is stated Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Q4EjjQkY5yXZrN9BEA3rEK
…nfig, and the forced-off sign-up statement Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Q4EjjQkY5yXZrN9BEA3rEK
… key Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Q4EjjQkY5yXZrN9BEA3rEK
Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Q4EjjQkY5yXZrN9BEA3rEK
📓 Docs Drift CheckThis PR changes 1 package(s): 1 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:
What this run could not see
Coarse fallback — 21 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin d0d958d26fdc2b8b2e4f7bddcd049c7dad7f07ea && git checkout d0d958d26fdc2b8b2e4f7bddcd049c7dad7f07ea
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin e42520c67bcef027552f8db83655ff9b54d32cef 53c02901f87dc30eae502ae2649f1a5250de41e1 && git checkout -B drift-repro e42520c67bcef027552f8db83655ff9b54d32cef && git merge --no-ff 53c02901f87dc30eae502ae2649f1a5250de41e1
node scripts/docs-audit/affected-docs.mjs --json e42520c67bcef027552f8db83655ff9b54d32cef
|
|
repo:objectstack#1 · zhuangjianguo · session_01QsR2jQkLKMF81cpqpt8p1a Contract-tier review (narrowing face, full) at this head by an isolated sub-agent of seat 1's L1 thread; the record follows on this PR. |
|
repo:objectstack#1 · zhuangjianguo · session_01QsR2jQkLKMF81cpqpt8p1a Contract reviewServed-tier: Inputs read: card #38184 (body and its five comments: triage, claim 7236932200, seat note, waiting note, takeover claim 7255601880), PR #38255 (body, file list of five paths, the one docs-drift comment), the net diff ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgmentThe narrowing, read against the published contract on M1 (must-fix) —
N1 (nit) — N2 (nit) — N3 (nit) — N4 (nit) — N5 (nit) — For the delta round: M1 is the only finding that owes one. A fix that touches the apply pass ( Implemented-by: VERDICT: FAIL |
|
repo:objectstack#1 · zhuangjianguo · session_01QsR2jQkLKMF81cpqpt8p1a 席位核对 — REWORK · seat 1 first read after takeover · Head-sha
|
| reading | value |
|---|---|
pr-state.mjs --pr 38255 |
draft · 37 success · 16 expected skip · 0 unexpected skip · 0 failed · 0 pending |
l1-face.mjs --pr 38255 |
shape, first line, changeset, declarations, Skills-docs: and floor checks ok; 1 flag: dogfood owed |
check-governed-merges.mjs --pr 38255 |
NOT governed by path, 5 files |
distance to main |
171 first-parent commits past the merge base 23fa3619 (origin/main at 696d02f587) |
Rework items.
- M1 of record 7255864152 (must-fix).
auth-settings-declared-defaults.ts:157-160states the audience trio key by key, while the apply pass composes the audience from explicit keys only and the manager replaces it whole (auth-plugin.ts:3094-3127,auth-manager.ts:2494-2496, both rules pinned inaudience-posture-setting.test.ts). Under a declared audience the page now leads into two saves that are stored and do not run: (a) a shortened domain list under a declaredemail_domain, (b) a switch toemail_domainunder a declaredopenwith the pre-filled permission set unsent. The fix is the dev's choice among the three the record names; it keeps the two pinned rules or changes them on purpose, and adds a case for (a) and one for (b) that saves only the edited keys, as the console does, and asserts that what the page reads is whatgetAudience()answers or that the save was refused. A fix that touches the apply pass widens the delta review to it. - Dogfood battery, owed and absent. The title carries
!and the body declaresClause-②: yes (narrowing), so the full battery pinned to the head is owed underdogfood_batteryin a dev report on Settings: other auth keys still show the manifest default, not the deployment declaration, when nothing is stored #38184. The PR body says the reading goes to a dev report comment on the card; the card has five comments and none is a dev report. A greenDogfood Regression Gatecheck-run on the PR does not stand in for it. Run it at the fix head and report it there, every red fixed or reported. - Merge
mainfirst. The branch is 171 first-parent commits behind, past the limit of 15. Mergemainthrough the regen driver before the fix round's gates are read, so the battery and the delta review read the tree that would land. Fixes #38184and the rate-limit pair. The card names the rate limits among the keys to fix; the PR leaves the pair unstated, on a reason the contract review accepts (no single number is true on this seam). Merging as written closes the card with the page still reading 10 / 60 where something else runs. Either the first line becomesPart of #38184, with no closing keyword beside the card number, or the residue goes to a follow-up card the seat files and the body names. The seat decides which and writes the body line; the dev does not edit the body.- Changeset prose (N1).
.changeset/auth-declared-defaults-every-key.md:7names four gates and omits one arm of the narrowing: a declaration outside its specifier's bounds (a sub-daysession.expiresIn,minPasswordLengthunder 6) is judged on a clear beside another key, or on a save ofemail_password_enabled, which gates eight of the newly stated keys. The changeset ships as the CHANGELOG, so the sentence must carry it. The full sentence-by-sentence read of the changeset is owed again at the fix head. - A published sentence this change makes false (N3).
content/docs/protocol/kernel/config-resolution.mdx:78-82onmainsays the auth plugin statesemail_password_enabled,signup_enabledandrequire_email_verificationthis way. After this PR it states 27. The page is outside the claim's file surface, so this needs a claim amendment from the seat before the dev touches it; the seat posts that amendment with the rework order. - Claim line. Claim 7236932200 declared
Clause-②: no; the PR'syes (narrowing)is the right value (record 7255864152 ②). The takeover claim copied the old line, so the seat amends it to match.
Not blocking, the dev's choice at the fix head. N2 (api_key_default_expiry_days clamps by the declared ceiling, same disagreement as on the base), N4 (no pin holds AUTH_DECLARED_DEFAULTS plus the five exclusions equal to the keys of AUTH_SETTING_RESTORE; it can ride the M1 fix) and N5 (ASCII full stop after each bold title in the CJK banners). Each is fixed in the round, or named in the dev report as accepted with its reason.
What held, so the round does not redo it. The other 22 formulas mirror the running readers; source stays default, so the organizations gate and the MFA migration are unaffected; the sign-up statement and the combined banner are right; patch with the BREAKING banner, the ADR-0087 marker not-required (no-migration-prescription) and Metadata-protocol: none are the right carriers; the diff stays inside packages/plugins/plugin-auth and its one changeset.
Landing: none. The PR stays a draft. It is Tier H once it passes (! and the narrowing arm): contract-tier delta review of the fix, then the maintainer's approval.
…uns for every declared auth setting, and a save under a declared audience runs as shown (objectstack-ai#38607) <!-- claude-projects-attribution: {"github_login":"zhuangjianguo"} --> _Requested by **Jianguo** · [project thread](https://claude.ai/code/project/chan_018ETKaNwMZCNRYD7D8Q9Ubb?thread=cmsg_018ETKaNwMZCNRYD7D8Q9UbbLndHNCt6SZsGLQHhe4WX61)_ Fixes objectstack-ai#38184 Supersedes objectstack-ai#38255 (the same branch history, rework of contract review 7255864152 and seat read 7255889020, with `main` merged). Clause-②: yes (narrowing) — with nothing stored, 24 more `auth` keys answer the deployment's declaration where they answered the manifest default, so a published response changes for an existing reader, and a save of a key a declaration now shows or bounds can be refused where it was stored Metadata-protocol: none Skills-docs: none — no skill under `skills/**` teaches the auth settings page, these keys or the settings cascade's bottom rung. ## 维护者速读 - 管理员在 设置 → 认证 里、没保存过值时,密码规则、多因素、会话时长、锁定、IP 白名单、成员策略、注册受众等设置显示部署实际在跑的值;在部署已声明的注册受众下只改其中一项(如删掉一个允许的邮箱域名)现在会真正生效,不再“存了却不起作用”;被部署强制关闭注册却保存为开时,页面顶部会给出警告。 - 接着上一轮只修了三个开关的工作,把同一问题在其余认证设置上一次补齐(托管云环境统一登录工作的一部分)。 - 出错时管理员会在没保存值的情况下看到与实际不符的设置值,或某些原本隐藏的设置在保存时被校验拒绝。已保存的值基本不受影响,只有一种情况例外:部署声明了注册受众,而库里存着允许的邮箱域名或自助注册权限集、却没存受众类型,这个值以前一直被忽略,升级后会开始生效,可能改变哪些邮箱能自助注册、注册后拿到哪个权限集;升级前应查一下并清掉或确认。可直接撤回本改动。 - 请审批并合并这个 PR。 ## What changes Everything in objectstack-ai#38255 stands (its body is the record of the 24-key measurement and the sign-up statement); this PR adds the rework round on top, at head `55bf5d8567`. **M1: the audience trio applies as the page reads it (`auth-plugin.ts`, the audience block of the settings pass).** The page reads each `audience_*` key as stored, else as the deployment declares it, and the console posts only the keys an admin edited. The pass composed the audience from stored keys only, and the manager replaces the audience whole, so under a declared audience two saves were stored and did not run. Now, once any of the three is stored, the pass composes the patch from the three as the page reads them: the posture as stored, else the declared posture (`resolveAudience`, the reader the declared default uses); the domain list and the permission set, where that posture reads them, as stored, else as declared. - (a) Declared `email_domain` with `acme.com` and `b.io`, the admin saves only `audience_allowed_email_domains: 'acme.com'`: it runs, and the page and `getAudience()` agree. Before: stored, "audience settings IGNORED", `b.io` kept self-registering. - (b) Declared `open` with `member_default`, the admin saves `audience_posture: 'email_domain'` and the domains, the shown permission set unsent: it runs with `member_default`. Before: refused for a missing set while the page read a complete configuration. - The two pinned rules are kept where they still apply, and changed on purpose where a declaration now answers: switching back to `invite_only` still sends the posture alone; a sibling stored where the deployment declares NO audience is still IGNORED with no posture to read it under (`audience-posture-setting.test.ts` unchanged and green); a required sibling neither stored nor declared is still not guessed, and the merged-result validation refuses (pinned as a CONTROL here). **N1 (changeset).** The declaration line's reason now states what narrows (N7 of record 7257751723); the arm is the claim's `yes (narrowing)`. The narrowing sentence of objectstack-ai#38255 moves into the changeset body as "What narrows", and gains the arm the review found missing: a declared value outside its specifier's bounds is answered as declared and is judged on a clear of that key beside another key, or on a save of `email_password_enabled`, which gates eight of these keys. A paragraph states the audience composition. **N2 (`auth-settings-declared-defaults.ts`).** `api_key_default_expiry_days` reads under the ceiling in force (`resolveApiKeyLifecyclePolicy().maxExpiryDays`, a stored `api_key_max_expiry_days` included), as the signing door clamps it, where it clamped by the declared ceiling. **N3 (`content/docs/protocol/kernel/config-resolution.mdx`).** The sentence naming three auth keys now says the plugin states every key its runtime takes from the deployment's configuration, and names the keys left on the manifest default. No count is written. **N4.** `AUTH_KEYS_NOT_DECLARED` names the six restored keys left on the manifest default, each with its reason; a test holds it plus `AUTH_DECLARED_DEFAULTS` equal to the keys of `AUTH_SETTING_RESTORE`, disjoint. **N5 (`auth-settings-live-status.ts`).** The combined banner puts each bold title on a line of its own, so no stop is written after it in any language. **Prose round (record 7257751723 N6, N7, N10; no file under `packages/` moved).** The changeset's ADR-0087 marker, a second BREAKING paragraph and "What to do" now name the one stored case read differently: a domain list or permission set stored with no stored posture, ignored by every earlier release, takes effect at upgrade under a declared audience; the upgrader is told how to find it. The rate-limit reason gives both halves (the library's per-path rules, or a declared `rateLimit` pair), in the changeset and on the config-resolution page, and the page gives the Google keys their own reason. **Read first (by risk):** 1. `packages/plugins/plugin-auth/src/auth-plugin.ts`: the audience block (`declaredAudience`, `rawPosture`, the two sibling branches). 2. `packages/plugins/plugin-auth/src/auth-settings-live-status.test.ts`: the new audience describe and its two CONTROL cases. 3. `.changeset/auth-declared-defaults-every-key.md`: the sentence read of the shipped text. ## Why Contract review 7255864152 (FAIL, M1): under a declared audience the page led into two saves that were stored and did not run, on the self-registration wall, in the direction that leaves it more open than the page says. Seat read 7255889020 listed seven rework items; items 1, 2, 3, 5, 6 are done here, item 7 by the claim amendment, and item 4 is the seat's (below). ## Tests - New, in `auth-settings-live-status.test.ts` (real `AuthPlugin`, real `SettingsService`, the real `GET /api/settings/:namespace` handler), each saving only the edited keys as the console does and asserting the page against `getAudience()`: (a), (b), the permission set saved alone under a declared `open`; CONTROL nothing declared, a domain list saved alone is still ignored; CONTROL a posture saved under a declared `open` with no list stored or declared is refused and `open` keeps ruling. - N2: declared default 30, stored ceiling 10: the running default and the page both read 10. - N4: the stated / not-stated partition of `AUTH_SETTING_RESTORE`. - N5: the `combineAuthLiveStatus` expectation follows the new shape. ## Acceptance notes - **Item 4, the rate-limit pair.** The seat filed the residue as follow-up card objectstack-ai#38608 (options there: a live-status statement, state nothing on the seam, or a ruling that accepts it). This PR leaves the pair reading its manifest default; that card carries it. - Case (b) waits out one in-between pass: the batch's rows land one by one, and a pass that runs with the posture stored and the list not yet is refused, then the next applies. The case asserts no further refusal once both are stored. This is the settings service's per-row write order, unchanged here and outside the claim's surface. - No change to `service-settings`. ## Verification <details><summary>Reverse verification of M1 at 00f3284 (fix committed)</summary> - The audience block of `auth-plugin.ts` swapped back to objectstack-ai#38255's (the rest of the file at HEAD), both test files run: 3 failed, 48 passed. Failing: (a), (b), and the permission set saved alone (each times out waiting for `getAudience()` to move). Both CONTROLs and all of `audience-posture-setting.test.ts` passed. Restored with `git restore --source=HEAD --staged --worktree`; `git status --porcelain` empty. </details> <details><summary>Local runs at head 55bf5d8</summary> - Closure `turbo run build --filter='@objectstack/plugin-auth^...'`: 35 of 35 tasks, lock verdict `command-exit 0`. - `pnpm --filter @objectstack/plugin-auth build && … typecheck && … test`: Test Files 297 passed (297), Tests 6338 passed, 10 skipped (6348). Lock verdict `command-exit 0`. - Dogfood battery, closure `turbo run build --filter='@objectstack/dogfood^...'` (79 of 79 tasks) then `pnpm --filter @objectstack/dogfood test`, at `55bf5d8567`: Test Files 495 passed, 3 skipped (498); Tests 4187 passed, 68 skipped (4255); lock verdict `command-exit 0`. No red. - Derived gate families: `node scripts/pm/dispatch-gates.mjs --commands` gave 110 at `55bf5d8567`. The `--ran` reconciliation: 110 accounted, 108 run with exit 0, 2 NOT MEASURED (exit 3, prerequisite): `check:skill-examples` (needs built dists outside this closure, `@objectstack/scenarios`) and `check:dual-build-cjs-loads` (reads every package's built output). CI runs both. Families CI runs are read from this PR's check-runs, not re-run here. - PR-body gates on this body: `check-changeset-no-major --base origin/main`, `check-adr-0087-registration --base origin/main`, `check-closing-keyword-parity`, `check-partof-closing-keyword`, all exit 0. - `main` was merged at `0d7eeb699d` (from `696d02f587`); at PR open the branch is 8 commits behind `origin/main` and `git merge-tree` merges clean. </details> Two-minute check: `pnpm --filter @objectstack/plugin-auth exec vitest run --maxWorkers=2 src/auth-settings-live-status.test.ts`. Expect every case to pass; case (a) reads the page and `getAudience()` both as `email_domain`, `acme.com`, `member_default`. ## Human Minimum - [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic. - [x] 2. Every name I added uses the casing for its kind. - [ ] 3. No formatter ran; `pnpm lint` passes. (No formatter ran; `pnpm lint` is the CI-owned repo scan, not run locally.) - [x] 4. One issue, one branch off an up-to-date `main`, one pull request. - [x] 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset. - [x] 6. `packages/spec` touched: its generated artifacts are regenerated and committed. (not touched) - [x] 7. No hand edits to `content/docs/references/`, `packages/*/CHANGELOG.md` or `content/docs/releases/`. - [x] 8. Title, body and comments are in English. - [x] The *Before Submitting* list in CONTRIBUTING.md is done. --- _Generated by [Claude Code](https://claude.ai/code/session_01QsR2jSo8YrNtRUFhn8aWNc)_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01QsR2jSo8YrNtRUFhn8aWNc <!-- signed: repo:objectstack#1 · zhuangjianguo · session_01QsR2jSo8YrNtRUFhn8aWNc --> --------- Co-authored-by: Claude <noreply@anthropic.com>
Fixes #38184
Clause-②: yes (narrowing) — narrowed: with nothing stored,
SettingsService.get('auth', …)andGET /api/settings/authanswer 24 moreauthkeys with the deployment's declaration (stillsource: 'default') where they answered the manifest default:password_min_length,password_max_length,membership_policy,password_reject_breached,password_require_complexity,password_min_classes,password_history_count,password_expiry_days,mfa_required,mfa_grace_period_days,api_key_default_expiry_days,api_key_max_expiry_days,api_key_inactivity_days,session_expiry_days,session_refresh_days,session_idle_timeout_minutes,session_absolute_max_hours,max_concurrent_sessions_per_user,allowed_ip_ranges,lockout_threshold,lockout_duration_minutes,audience_posture,audience_allowed_email_domains,audience_self_registration_permission_set; so a published response's value changes for an existing reader on any deployment whose own configuration differs from the manifest default for one of them. Four keys gate another key's visibility, so with nothing stored a declaration now shows a key that was hidden, and a save that touches it or its gate is judged for its options and bounds where it was not:lockout_duration_minutesunder a declaredlockoutThresholdabove 0 (for examplelockout_duration_minutes: 5000is now refused400 SETTINGS_VALIDATIONwhere it was stored),mfa_grace_period_daysunder a declaredmfaRequirementother thanoff,password_min_classesunder a declaredpasswordRequireComplexity: true, andaudience_allowed_email_domains/audience_self_registration_permission_setunder a declaredaudience.postureofemail_domainoropen. A save that sets one of these keys to its manifest default where the declaration differs now asks the key's write predicates. Widened: a save that sets one of these keys to the declaration with nothing stored is no change and asks no predicate. The Setup → Authentication live-status banner adds awarningforsignup_enabledstored on where the deployment forces sign-up off (SSO-only, cloud-managed,OS_DISABLE_SIGNUP), in all 11 languages; where both that and the cloud-managed email-and-password hold apply, one banner carries both statements.Metadata-protocol: none
Skills-docs: none — no skill under
skills/**teaches the auth settings page, these keys or the settings cascade's bottom rung.维护者速读
What changes
Measured first, on base
23fa3619(after the declared-default seam landed). A realAuthPluginover the realSettingsService, booted twice per key: once declaring nothing, once declaring a value other than the manifest default. Declaring nothing, every key inAUTH_SETTING_RESTOREresolved what runs, except the rate-limit pair andgoogle_enabled(below). Declaring a value, every key resolved the manifest default while the running config took the declaration.password_min_length/password_max_lengthminPasswordLength: 12/maxPasswordLength: 64membership_policyinvite-onlyautoinvite-onlypassword_reject_breached,password_require_complexitytruefalsetruepassword_min_classes,password_history_count,password_expiry_daysmfa_required,mfa_grace_period_daysadministrators, 3off, 7administrators, 3api_key_default_expiry_days,api_key_max_expiry_days,api_key_inactivity_dayssession_expiry_days,session_refresh_daysexpiresIn30 d,updateAge2 dsession_idle_timeout_minutes,session_absolute_max_hours,max_concurrent_sessions_per_userallowed_ip_rangeslockout_threshold,lockout_duration_minutesaudience_posture,audience_allowed_email_domains,audience_self_registration_permission_setemail_domain, two domains,member_defaultinvite_only, nothing, nothingrate_limit_max/rate_limit_window_secondsrateLimit5 / 120google_enabled,google_client_id,google_client_secretsocialProvidersThe declarations (
auth-settings-declared-defaults.ts).AUTH_DECLARED_DEFAULTSgrows from 3 keys to 27. Each formula reads the declaration captured ininit()(synchronous, reads no setting) through the reader the running config uses:resolveAudience,resolveMfaGracePeriodDays,resolveApiKeyLifecyclePolicy's window reading and ceiling,getDeploymentAccessFloor's?? 0, the lockout and complexity bodies' defaults and clamps, the session block's seconds as days, andbuildPluginList's env-then-declared reading for breached passwords. With nothing declared each formula answers the manifest default (or nothing, for a key with no default), so a deployment that declares none of these reads as before.Type and options against the specifier (#38180 review N1/N2): each answer takes the key's shape. Session lifetimes are days. The IP list and the domain list are one entry per line, the textarea's own reading. A select (
membership_policy,mfa_required) answers only one of its options, so an off-vocabulary declaration answers nothing and the manifest default stands. The audience posture goes throughresolveAudience, which already reads an off-vocabulary posture asinvite_only. Every numeric answer is a number, so theOS_*coercion type is unchanged for every key.Not declared, with the reason in the module header. The rate-limit pair: with nothing stored, sign-in, sign-up and password reset run on the auth library's per-path rules (and its production-only switch); a declared
rateLimitis a global pair, not the per-endpoint cap the setting writes. No one number states what runs, so this stays an open question for the seat.api_key_policy_started_atis recorded into the store at first boot.google_enabledis an intent toggle whose runtime default is the manifest's on. The Google credentials: a declared credential outranks a saved one, so it is not what a clear returns to, and a secret is never served as a default.Sign-up forced off over a value saved on (
auth-settings-live-status.ts).describeSignUpLiveStatussays whensignup_enabledreads on (stored) and the deployment forces sign-up off whatever is saved (AuthManager.resolveDisableSignUp(false): SSO-only, cloud-managed,OS_DISABLE_SIGNUP). The switch is shown while email and password is not off. The statement is awarning, written in all 11 languages of the copy table. The provider inbindAuthSettingsasks both statements.combineAuthLiveStatusfolds them into the one banner the settings service takes: the first title, each statement's body in order. With nothing stored, the switch already reads the forced off through the declared default and nothing is stated.Read first (by risk):
packages/plugins/plugin-auth/src/auth-settings-declared-defaults.ts: the 24 new formulas against the readers they mirror.packages/plugins/plugin-auth/src/auth-plugin.ts: the live-status provider hunk.packages/plugins/plugin-auth/src/auth-settings-live-status.test.ts: theEXPECTEDtable and therunning()reader.Why
With nothing saved, Setup → Authentication showed the manifest default for every auth key while the running system enforced the deployment's own declaration. The same defect was fixed for three switches in #38180. The page also showed self-registration on, with nothing saying otherwise, where an SSO-only or cloud-managed runtime forces it off.
Tests
All in
auth-settings-live-status.test.ts, the file that already holds this harness. The boot and page helpers move to module scope, and two describes are added. They use the realAuthPlugin, the realSettingsServiceand the realGET /api/settings/:namespacehandler.getand the page route answer{ value, source: 'default' }. No banner.AUTH_SETTING_RESTOREkey reads its manifest default.membershipPolicyleaves the manifest default.lockout_threshold).lockoutThreshold: 5,lockout_duration_minutes: 5000is refusedSETTINGS_VALIDATIONat that field. CONTROL, nothing declared: the key is hidden and the same save is stored.warningis stated (en, zh-CN). CONTROL, self-hosted: saved on over a declared off is applied and nothing is stated. Cloud-managed: a row stored on is stated. With email and password held off as well, one banner carries both statements.describeSignUpLiveStatus(states, and the four cases that state nothing) andcombineAuthLiveStatus(none, one, two). The existing copy-table test checks every locale for the two new sentences.Acceptance notes
Clause-②: yes (narrowing)is declared here and in the changeset. The claim's line readClause-②: no. The claim also says a key whose change reaches an existing reader is declared per AGENTS.md, and the resolved values of 24 keys change for an existing reader, so the narrowing is declared.lockoutDurationMinutes: 2000declared, then a save oflockout_threshold.service-settings: the seam from fix(plugin-auth)!: Setup → Authentication's switches show what the deployment runs when nothing is saved #38180 holds every key unchanged.Verification
Measurement and reverse verification on base 23fa361
git restore --source(unstaged), then restored withgit restore --source=HEAD --staged --worktree(git status --porcelainempty after):auth-settings-declared-defaults.tsfrom base: 3 failed, 21 passed. The declared case fails atpassword_min_length: expected value 12, received 8. The clear case fails atexpected value 5, received 0(the running config restores 5). The visibility case fails because the save resolved instead of rejecting. Every CONTROL passed.auth-plugin.tsfrom base: 2 failed, 22 passed. The SSO-only and cloud-managed sign-up cases fail withexpected undefined to match object(no banner). The unit cases passed.Local runs at head 53c0290
pnpm --filter '@objectstack/plugin-auth^...' build, thenpnpm --filter @objectstack/plugin-auth build, thenpnpm --filter @objectstack/plugin-auth typecheck && pnpm --filter @objectstack/plugin-auth test(tsc, the examples project,check:test-typecheck): Test Files 297 passed (297), Tests 6331 passed, 10 skipped (6341). Lock verdictcommand-exit 0.node scripts/pm/dispatch-gates.mjs --commandsgave 77. The--ranreconciliation with exit codes: 77 accounted, 74 run with exit 0, 3 NOT MEASURED (exit 3, prerequisite).node scripts/check-plugin-teardown-shape.mjs --self-testneeds an unshallowed clone.pnpm check:dual-build-cjs-loadsreads built output of packages outside this closure.pnpm check:type-check-debt's re-measure got no turn on the shared verify lock (queue-timeout, held by another seat's dogfood run). CI runs all three. Families CI runs are read from this PR's check-runs, not re-run here.!). It is queued on the verify lock at this head, and its reading goes to the dev report comment on the card.Two-minute check:
pnpm --filter @objectstack/plugin-auth exec vitest run --maxWorkers=2 src/auth-settings-live-status.test.ts. Expect 24 passed; the first new case readslockout_thresholdas{ value: 5, source: 'default' }on a deployment that declareslockoutThreshold: 5.Human Minimum
packages/specholds no runtime logic.pnpm lintpasses. (No formatter ran;pnpm lintis the CI-owned repo scan, not run locally.)main, one pull request.packages/spectouched: its generated artifacts are regenerated and committed. (not touched)content/docs/references/,packages/*/CHANGELOG.mdorcontent/docs/releases/.Generated by Claude Code
🤖 Generated with Claude Code
https://claude.ai/code/session_01Q4EjjQkY5yXZrN9BEA3rEK