Skip to content

docs(plugin-auth): boot reachability report and self-hosting page state the admission order the audience gate reads - #36724

Merged
objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/issue-36355-auth-posture-order-prose
Nov 23, 2026
Merged

objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/issue-36355-auth-posture-order-prose

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

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 says decideAudienceAdmission short-circuits on hasPendingInvitation before 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-allowlist email_domain address), then the invitation branch (which admits under invite_only and for an off-allowlist address). The no_sign_in_account_at_boot message 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 to invite_only, and nothing states the verification forcing for every non-invite_only posture.
  • content/docs/deployment/self-hosting.mdx (N3): "Under open every 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, refused 403 SELF_REGISTRATION_CLOSED (admissionRestsOnAddress reads open as resting on the address exactly while resolveEmailVerificationRequirement('open', …) is true).
  • Same page, the recovery paragraph's "The invitation carve-out admits that one creation under every posture" carried the same imprecision as N1; the module docblock says that page and the message "must keep agreeing", so it is reworded the same way in this PR (same file, inside the claimed surface).
  • .changeset/36355-auth-boot-reachability-admission-order.md: patch for @objectstack/plugin-auth. The message string ships in dist (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/it title, and the pins under it assert the admission verdict for every posture, which this PR does not move. Every toContain pin on the message still holds.

Read first: boot-sign-in-reachability.ts message hunk (around the "That ONE creation" line), the risk being a toContain pin that spans a reworded line; then the docblock bullet; then the doc paragraph.

Acceptance notes

  • Verdict-level claims are unchanged in both files; only the mechanism sentences move.
  • check:skill-examples, check:dual-build-cjs-loads exited 3 locally (PREREQUISITE NOT MET: they read built output of packages outside this diff's closure) and check-plugin-teardown-shape --self-test exited 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).
  • Under the verify lock, 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 --commands derived 91 families; all run, 88 exit 0, 3 exit 3 (NOT MEASURED, above); --ran reconciliation: 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

…te the admission order the audience gate reads

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011y7As6FyXmJyGyHNKXUkV7
@github-actions github-actions Bot added size/s documentation Improvements or additions to documentation tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 23, 2026
@github-actions

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 1 package(s): @objectstack/plugin-auth, touching 3 documentable anchor(s).

5 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:

  • content/docs/deployment/environment-variables.mdx (via email_domain (literal, a string literal in resolveNoSignInAccountReport), invite_only (literal, a string literal in resolveNoSignInAccountReport))
  • content/docs/deployment/self-hosting.mdx (via email_domain (literal, a string literal in resolveNoSignInAccountReport), invite_only (literal, a string literal in resolveNoSignInAccountReport))
  • content/docs/deployment/tenancy-modes.mdx (via email_domain (literal, a string literal in resolveNoSignInAccountReport), invite_only (literal, a string literal in resolveNoSignInAccountReport))
  • content/docs/permissions/authentication.mdx (via email_domain (literal, a string literal in resolveNoSignInAccountReport), invite_only (literal, a string literal in resolveNoSignInAccountReport))
  • content/docs/permissions/sso.mdx (via email_domain (literal, a string literal in resolveNoSignInAccountReport), invite_only (literal, a string literal in resolveNoSignInAccountReport))

⛔ 6 release-owned page(s) also name something this change touched. These are read-only:

  • content/docs/releases/v17/17-3.mdx (via email_domain (literal, a string literal in resolveNoSignInAccountReport), invite_only (literal, a string literal in resolveNoSignInAccountReport))
  • content/docs/releases/v17/17-5.mdx (via email_domain (literal, a string literal in resolveNoSignInAccountReport))
  • content/docs/releases/v17/index.mdx (via invite_only (literal, a string literal in resolveNoSignInAccountReport))
  • content/docs/releases/v18/18-1.mdx (via email_domain (literal, a string literal in resolveNoSignInAccountReport), invite_only (literal, a string literal in resolveNoSignInAccountReport))
  • content/docs/releases/v18/18-4.mdx (via invite_only (literal, a string literal in resolveNoSignInAccountReport))
  • content/docs/releases/v18/18-6.mdx (via email_domain (literal, a string literal in resolveNoSignInAccountReport), invite_only (literal, a string literal in resolveNoSignInAccountReport))

content/docs/releases/ is RELEASE-OWNED (AGENTS.md "Documentation Guardrails"): release
notes are written centrally at release time, and a code PR that edits them is the exact PR
that guardrail exists to stop. They are still audited — read-only. If one of them is actually
wrong, file an issue or open a dedicated docs-only PR; do not edit it here.

What this run could not see
  • the SDK route bridge reached 68 of 251 client-bound route-ledger rows — the other 183 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 183: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 59 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 124 are undecided (no in-repo declaration, on a ledger that has other in-repo registrars — absence and an unreadable spelling are not distinguishable here). The rows themselves: node scripts/docs-audit/affected-docs.mjs --bridge-coverage
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 21 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json e343ab7c209c858ee5a7a1fa117baacf96a77229 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from da9fe871ab4c146d9718ab0ecc92d49737af0d5f — the merge of head d1105b670d5bf5be62e3664af2f0df7577ed7d5f into base e343ab7c209c858ee5a7a1fa117baacf96a77229, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# 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

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

Advisory only, and a precision-first one (#9192): a page is listed because it names a
symbol, wire route or SDK method this diff touched — not because it mentions a changed
package. Each row says which anchor put it there, so a wrong row is reportable rather than
merely annoying. To re-verify, run the docs-accuracy-audit workflow scoped to these files:
node scripts/docs-audit/affected-docs.mjs e343ab7c209c858ee5a7a1fa117baacf96a77229 → pass the list as
args.docs, on the commit named under Which tree this was computed on.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#7 · os-alice · session_011y7As6FyXmJyGyHNKXUkV7

L1 verdict (o7-data self-review): ACCEPT at head d1105b670d5bf5be62e3664af2f0df7577ed7d5f (Fixes #36355) · 2026-11-23T14:21Z. Full read of origin/main...d1105b670d: 3 files, +31/−10. This is an area self-review under area-lease.md: ≤50 lines, text only, Clause-②: no with no (narrowing) arm (I checked both the PR body and the new changeset), no ! in the title. No contract face is touched: content/docs/** and changeset prose are outside the four faces, and plugin-auth is not packages/spec.

席位核对

Claim read against the code at main. decideAudienceAdmission (packages/plugins/plugin-auth/src/audience-posture.ts:682) reads in this order: operator, provider, bootstrap, invalid posture, the unverified-social refusal, then isAdmittedByPostureRule (open, and email_domain on the list), then hasPendingInvitation, then the posture switch. The new sentences state exactly that order. Each one, checked against that code:

  • Docblock (boot-sign-in-reachability.ts). Before: "decideAudienceAdmission short-circuits on hasPendingInvitation BEFORE the posture switch, so … is admitted under every posture". After: admitted under every posture "though not always BY the invitation: decideAudienceAdmission reads the posture's own rule first …; the invitation admits it under invite_only and for an address off the allowlist." This matches the code. The ⛔ rider rule at the old :62 is untouched.
  • Boot message (resolveNoSignInAccountReport). Before: "The invitation carve-out admits that ONE creation under EVERY audience posture". After: "That ONE creation is admitted under EVERY audience posture — by the invitation under 'invite_only' and for an address off the 'email_domain' list, by the posture's own rule, read first, under 'open' and on the list". This matches the code. The "ADMISSION verdict, not a verification bypass" clause is kept.
  • self-hosting.mdx recovery paragraph (~:703). It gets the same rewording as the message, which the module docblock requires the page to keep. Accepted as in-file and same-defect.
  • self-hosting.mdx open-posture sentence (~:816). Card N3: the half-clause for a social sign-in with an unverified address while verification is in force, refused 403 SELF_REGISTRATION_CLOSED, is added. That matches the refusal branch read before the posture rule.
  • Changeset @objectstack/plugin-auth: patch is owed because the message string ships in dist. Its body says no admission behaviour changes, which is true of this diff.

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: plugin-auth build + typecheck + test, 293 files / 6265 tests passed; the derived gates were 88 exit 0 and 3 NOT MEASURED (prerequisites), which CI runs. overlap-check was clean against #36311 and #35129. I'll read the CI check-runs at this head before --land.

Accepted deviations. The signature is on line 2 of the PR body (os-dev puts Fixes first). The recovery paragraph rewording is outside N1/N3's literal wording, but it is the same defect in the same file.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#7 · os-alice · session_011y7As6FyXmJyGyHNKXUkV7

Landing · 2026-11-23T14:44Z · head d1105b670d (unchanged since the ACCEPT) · verdict: area self-review ACCEPT 7103888853 (≤50 lines, prose only, Clause-② no, no contract face), no L2 owed.

Probe Reading
check-governed-merges --pr 36724 NOT governed · 41 changed lines (+31 / −10) ≤ 3000
pr-state --pr 36724 40 success · 15 expected skip · 0 unexpected skip · 0 failed · 0 pending · mergeable_state clean
l1-face --pr 36724 CLEAN · floor checks success · dogfood not owed
narrowing leg the PR body and its one changeset (.changeset/36355-auth-boot-reachability-admission-order.md, added) declare Clause-②: no with no (narrowing) arm; no ! in the title
landing-k --pr 36724 K = 0 < 15

State change: ready for review, auto-merge armed. On MERGED, Fixes #36355 closes the card and pm:dispatched comes off.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 23, 2026 14:44
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 23, 2026
Merged via the queue into main with commit d24a502 Nov 23, 2026
56 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-36355-auth-posture-order-prose branch November 23, 2026 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/s tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs(plugin-auth): boot reachability docblock and self-hosting open-posture sentence after #36312

2 participants