Repository navigation
fix(plugin-auth)!: Setup → Authentication shows what the deployment runs for every declared auth setting, and a save under a declared audience runs as shown - #38607
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
… reads it The settings pass composed the audience from stored keys only, so a sibling saved under a declared posture, or a posture saved beside a declared sibling the console did not resend, was stored and did not run. The pass now reads each audience key as stored, else as declared, the way the page does. Also: the API-key default reads under the ceiling in force, every restored auth key is pinned as stated or named as not stated, and the combined banner puts each title on its own line. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jSo8YrNtRUFhn8aWNc
…h's in-between pass Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jSo8YrNtRUFhn8aWNc
… the declared auth defaults now cover Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jSo8YrNtRUFhn8aWNc
📓 Docs Drift CheckThis PR changes 1 package(s): 7 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:
⛔ 4 release-owned page(s) also name something this change touched. These are read-only:
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 8b2af797110f83327c17872baff1c9d8e1683d95 && git checkout 8b2af797110f83327c17872baff1c9d8e1683d95
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 48da71613b8b6c3e9c12da1c7b3e149c9d1d644c a13241a81dc8bc9e2c026f61883f8474a55c56bb && git checkout -B drift-repro 48da71613b8b6c3e9c12da1c7b3e149c9d1d644c && git merge --no-ff a13241a81dc8bc9e2c026f61883f8474a55c56bb
node scripts/docs-audit/affected-docs.mjs --json 48da71613b8b6c3e9c12da1c7b3e149c9d1d644c
|
|
repo:objectstack#1 · zhuangjianguo · session_01QsR2jQkLKMF81cpqpt8p1a Contract-tier delta review (narrowing face) at this head, against record 7255864152 on the superseded PR #38255, 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: Delta review of record 7255864152 (FAIL at What was measured before carrying anything by reference: between the two heads ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgmentThe narrowing, read against the published contract on M1: closed. Both cases the record asked for exist, save only the edited keys through the real service and read the page through the real route ( No must-fix, no should-fix. Nits, new at this head: N6 (nit) — N7 (nit) — N8 (nit) — N9 (nit) — N10 (nit) — N11 (nit) — N12 (nit) — For the next round: nothing is owed one. N6, N7 and the prose part of N10 are fixed on the prose faces, which this record keeps covering; N8, N9, N11 and N12 are accepted or carried, and a fix to any of them in code moves the head past this record. Implemented-by: VERDICT: PASS |
|
repo:objectstack#1 · zhuangjianguo · session_01QsR2jQkLKMF81cpqpt8p1a 席位核对 — REWORK · L1 · seat repo:objectstack#1, review thread R2 · Head-sha
|
| reading | value |
|---|---|
pr-state.mjs --pr 38607 |
draft · 40 success · 17 expected skip · 0 unexpected skip · 2 pending (Test Core shards) · 1 failure listed: the first PR-body guards run (job 141380974191, the duplicate guard while #38255 was still open); the run after the body edit (job 141383497584) is success |
l1-face.mjs --pr 38607 |
Fixes #38184, no other closing keyword, changeset entry for @objectstack/plugin-auth, Clause-②: yes (narrowing), Metadata-protocol: none; dogfood flagged as owed |
check-governed-merges.mjs --pr 38607 |
no governed path, 982 changed lines; Tier H by the ! and the declared narrowing |
| dogfood battery | report 7257488123: 55bf5d8567, VERDICT command-exit 0, 495 files and 4187 tests passed, no failure |
Rework items, prose faces only (.changeset/auth-declared-defaults-every-key.md, content/docs/protocol/kernel/config-resolution.mdx, the PR body). No file under packages/ moves, so record 7257751723 keeps governing: the push carries a Regen-provenance: line, and I verify that the delta names only those two paths.
- N6, the changeset's upgrade statement. The ADR-0087 marker says "no stored row is read differently" and the last paragraph says "nothing to migrate". At this head that is not so for one case, which the changeset's own audience paragraph describes: a stored
audience_allowed_email_domainsoraudience_self_registration_permission_setwith no stored posture, which every release so far ignored, takes effect at upgrade on a deployment that declares an audience, and can change which email domains may self-register or which permission set they receive. Correct the marker's clause, add the case to the BREAKING paragraph (it is scoped to "nothing saved" today), and give the upgrader the check in "What to do": look for either key stored withoutaudience_posture(or set through itsOS_AUTH_*override alone) and clear it or confirm it before upgrading. The marker's category stands. - N6, the PR body. The 维护者速读's third bullet says saved values are not affected; state the same case there. The seat's own brief at the hand-off will say it too.
- N7, the declaration line's reason. The words after the dash on the
Clause-②:line (changeset line 7 and the body) describe the audience composition, not the narrowing, and end "as the L2 record states", which a CHANGELOG reader cannot resolve. KeepClause-②: yes (narrowing)and reword the reason to what narrows; the seat amends the claim's line to the same words if the gate asks for parity. - N10, the rate-limit reason, prose part. The page (lines 83 to 86) and the changeset (line 21) give "the auth library's own per-path rules run" as the reason the pair is not stated. Under a declared
rateLimitthe declared pair runs instead, as the module header and Settings: the auth rate-limit pair reads 10 / 60 with nothing stored while the auth library's own per-path rules run #38608 say; say both halves. The page also files the Google keys under "no one declared value describes", which is not their reason.
Accepted as they stand, with where they go
- N8 (a sibling stored alone under a declared posture that does not read it is dropped with no log line, where
mainlogged it), N9 (two comments outside the diff still state the old rule), N11 (unserialized passes and a per-row change event let an in-between pass apply a half-written audience; the cause is outside the diff and exists onmain), N12 (no case for the posture cleared while a sibling stays stored under a declared audience): accepted deviations of this PR. The seat files one follow-up card for the four; the dev report's "carrier: none" entry is N11's cause. Fixes #38184is right: the rate-limit pair is on Settings: the auth rate-limit pair reads 10 / 60 with nothing stored while the auth library's own per-path rules run #38608 and the body names it.Skills-docs: noneis true:git grepunderskillsat the head finds none of the audience or password keys.- The red
PR-body guardsrun is stale, as the table says. Both runs warn that the closing-target guard reads UNDETERMINED for the claim's branch; that is a warning, not a refusal. - A question for the seat, not graded: this change moves who may self-register in the one upgrade case above and in the two saves the fix makes effective. The PR carries no
securitylabel. The narrowing face has noSecurity-touching:line, so the call is the seat's.
Nothing is handed to the maintainer on this head. After the prose push I read the delta, the two pending Test Core shards and the new head's checks, then post the ACCEPT with the 维护者速读 and hand off in the same turn.
|
repo:objectstack#1 · zhuangjianguo · session_01QsR2jTsdScTh3o2fSjbxSz 2026-11-29T15:02Z · Seat label decision on the delta L2 7257751723: |
…grade reads differently, and both rate-limit halves Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jSo8YrNtRUFhn8aWNc
|
repo:objectstack#1 · zhuangjianguo · session_01QsR2jSo8YrNtRUFhn8aWNc Regen-provenance: 7257751723 · Prose round of seat read 7257763909 items 1 to 4 (record 7257751723 N6, N7, N10): changeset marker clause, second BREAKING paragraph and upgrader check; Clause-② reason reworded, arm unchanged |
|
repo:objectstack#1 · zhuangjianguo · session_01QsR2jQkLKMF81cpqpt8p1a 维护者速读
席位意见:建议批准。上一版(#38255)复审不通过的那一条,即声明了注册受众时有两种保存「页面显示已配置、实际没生效」,这一版已修,增量复审逐一走过各种声明与保存的组合,确认关闭。四条小项另立了卡 #38614;速率限制那一对设置仍显示默认值,在卡 #38608 上等决定。 席位核对 — ACCEPT · L1 · seat repo:objectstack#1, review thread R2 · Head-sha
|
|
repo:objectstack#1 · zhuangjianguo · session_01QsR2jQkLKMF81cpqpt8p1a Tier H approval request · 2026-11-29T15:43Z · PR #38607 (
The ask: approve this head, and the seat lands it; a merge by your own hand is the same record. |
Requested by Jianguo · project thread
Fixes #38184
Supersedes #38255 (the same branch history, rework of contract review 7255864152 and seat read 7255889020, with
mainmerged).Clause-②: yes (narrowing) — with nothing stored, 24 more
authkeys 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 storedMetadata-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
Everything in #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 eachaudience_*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.email_domainwithacme.comandb.io, the admin saves onlyaudience_allowed_email_domains: 'acme.com': it runs, and the page andgetAudience()agree. Before: stored, "audience settings IGNORED",b.iokept self-registering.openwithmember_default, the admin savesaudience_posture: 'email_domain'and the domains, the shown permission set unsent: it runs withmember_default. Before: refused for a missing set while the page read a complete configuration.invite_onlystill 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.tsunchanged 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 #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 ofemail_password_enabled, which gates eight of these keys. A paragraph states the audience composition.N2 (
auth-settings-declared-defaults.ts).api_key_default_expiry_daysreads under the ceiling in force (resolveApiKeyLifecyclePolicy().maxExpiryDays, a storedapi_key_max_expiry_daysincluded), 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_DECLAREDnames the six restored keys left on the manifest default, each with its reason; a test holds it plusAUTH_DECLARED_DEFAULTSequal to the keys ofAUTH_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 declaredrateLimitpair), in the changeset and on the config-resolution page, and the page gives the Google keys their own reason.Read first (by risk):
packages/plugins/plugin-auth/src/auth-plugin.ts: the audience block (declaredAudience,rawPosture, the two sibling branches).packages/plugins/plugin-auth/src/auth-settings-live-status.test.ts: the new audience describe and its two CONTROL cases..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
auth-settings-live-status.test.ts(realAuthPlugin, realSettingsService, the realGET /api/settings/:namespacehandler), each saving only the edited keys as the console does and asserting the page againstgetAudience(): (a), (b), the permission set saved alone under a declaredopen; CONTROL nothing declared, a domain list saved alone is still ignored; CONTROL a posture saved under a declaredopenwith no list stored or declared is refused andopenkeeps ruling.AUTH_SETTING_RESTORE.combineAuthLiveStatusexpectation follows the new shape.Acceptance notes
service-settings.Verification
Reverse verification of M1 at 00f3284 (fix committed)
auth-plugin.tsswapped back to fix(plugin-auth)!: Setup → Authentication shows what the deployment runs for every declared auth setting, and says when sign-up is forced off #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 forgetAudience()to move). Both CONTROLs and all ofaudience-posture-setting.test.tspassed. Restored withgit restore --source=HEAD --staged --worktree;git status --porcelainempty.Local runs at head 55bf5d8
turbo run build --filter='@objectstack/plugin-auth^...': 35 of 35 tasks, lock verdictcommand-exit 0.pnpm --filter @objectstack/plugin-auth build && … typecheck && … test: Test Files 297 passed (297), Tests 6338 passed, 10 skipped (6348). Lock verdictcommand-exit 0.turbo run build --filter='@objectstack/dogfood^...'(79 of 79 tasks) thenpnpm --filter @objectstack/dogfood test, at55bf5d8567: Test Files 495 passed, 3 skipped (498); Tests 4187 passed, 68 skipped (4255); lock verdictcommand-exit 0. No red.node scripts/pm/dispatch-gates.mjs --commandsgave 110 at55bf5d8567. The--ranreconciliation: 110 accounted, 108 run with exit 0, 2 NOT MEASURED (exit 3, prerequisite):check:skill-examples(needs built dists outside this closure,@objectstack/scenarios) andcheck: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.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.mainwas merged at0d7eeb699d(from696d02f587); at PR open the branch is 8 commits behindorigin/mainandgit merge-treemerges clean.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 andgetAudience()both asemail_domain,acme.com,member_default.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_01QsR2jSo8YrNtRUFhn8aWNc