Repository navigation
docs(plugin-auth): boot reachability report and self-hosting page state the admission order the audience gate reads - #36724
Conversation
…te the admission order the audience gate reads Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011y7As6FyXmJyGyHNKXUkV7
📓 Docs Drift CheckThis PR changes 1 package(s): 5 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:
⛔ 6 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 da9fe871ab4c146d9718ab0ecc92d49737af0d5f && git checkout da9fe871ab4c146d9718ab0ecc92d49737af0d5f
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin e343ab7c209c858ee5a7a1fa117baacf96a77229 d1105b670d5bf5be62e3664af2f0df7577ed7d5f && git checkout -B drift-repro e343ab7c209c858ee5a7a1fa117baacf96a77229 && git merge --no-ff d1105b670d5bf5be62e3664af2f0df7577ed7d5f
node scripts/docs-audit/affected-docs.mjs --json e343ab7c209c858ee5a7a1fa117baacf96a77229
|
|
repo:objectstack#7 · os-alice · session_011y7As6FyXmJyGyHNKXUkV7 L1 verdict (o7-data self-review): ACCEPT at head 席位核对Claim read against the code at main.
Gates. No test pins the reworded text verbatim (dev: the phrase appears only in a describe title). The dev's local run at this head: Accepted deviations. The signature is on line 2 of the PR body (os-dev puts |
|
repo:objectstack#7 · os-alice · session_011y7As6FyXmJyGyHNKXUkV7 Landing · 2026-11-23T14:44Z · head
State change: ready for review, auto-merge armed. On MERGED, |
Fixes #36355
repo:objectstack#7 · os-alice · session_011y7As6FyXmJyGyHNKXUkV7
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
Prose only, no logic, no condition, no test change.
packages/plugins/plugin-auth/src/boot-sign-in-reachability.ts(N1): the module docblock no longer saysdecideAudienceAdmissionshort-circuits onhasPendingInvitationbefore the posture switch. It now states the order the function has at main: the posture's own rule is read first (isAdmittedByPostureRule:open, and an on-allowlistemail_domainaddress), then the invitation branch (which admits underinvite_onlyand for an off-allowlist address). Theno_sign_in_account_at_bootmessage gets the same correction: the verdict-level claim "that ONE creation is admitted under EVERY audience posture" is kept (its pin stays green), and the mechanism now says which branch admits it under which posture. The line-62 rider rule is untouched: the no-mail-transport rider stays scoped toinvite_only, and nothing states the verification forcing for every non-invite_onlyposture.content/docs/deployment/self-hosting.mdx(N3): "Underopenevery address is admitted by the posture, invitation or not" gains the half-clause the fix(plugin-auth)!: an invited sign-up the audience posture admits receives the declared self-registration set, and is refused when that set cannot be resolved #36312 changeset states: except a social-provider sign-in whose address the provider did not verify while email verification is in force, refused403 SELF_REGISTRATION_CLOSED(admissionRestsOnAddressreadsopenas resting on the address exactly whileresolveEmailVerificationRequirement('open', …)is true)..changeset/36355-auth-boot-reachability-admission-order.md:patchfor@objectstack/plugin-auth. The message string ships indist(files: ["dist", "README.md", "CHANGELOG.md"]).Tests
No test changes. No test pins the reworded sentence verbatim: the "under EVERY audience posture" text appears only in a
describe/ittitle, and the pins under it assert the admission verdict for every posture, which this PR does not move. EverytoContainpin on the message still holds.Read first:
boot-sign-in-reachability.tsmessage hunk (around the "That ONE creation" line), the risk being atoContainpin that spans a reworded line; then the docblock bullet; then the doc paragraph.Acceptance notes
check:skill-examples,check:dual-build-cjs-loadsexited 3 locally (PREREQUISITE NOT MET: they read built output of packages outside this diff's closure) andcheck-plugin-teardown-shape --self-testexited 3 on a shallow checkout. NOT MEASURED locally; CI runs them on a full build.Verification
Two-minute check:
pnpm --filter @objectstack/plugin-auth exec vitest run src/boot-sign-in-reachability.test.ts— expect 51 passed.Local readings at d1105b6
pnpm --filter @objectstack/plugin-auth exec vitest run --maxWorkers=2 src/boot-sign-in-reachability.test.ts: Test Files 1 passed (1), Tests 51 passed (51).pnpm --filter @objectstack/plugin-auth build && … typecheck && … test: VERDICT command-exit 0; Test Files 293 passed (293), Tests 6265 passed, 10 skipped (6275).dispatch-gates --commandsderived 91 families; all run, 88 exit 0, 3 exit 3 (NOT MEASURED, above);--ranreconciliation: 91 accounted, 88 run, 3 NOT-MEASURED.check-nul-bytes: OK.overlap-check: VERDICT clean exit 0 (main, fix(auth)!: a boot outside development mode retires what the development seed issued #36311, chore: version packages #35129 merge cleanly).🤖 Generated with Claude Code
https://claude.ai/code/session_011y7As6FyXmJyGyHNKXUkV7