Skip to content

fix(plugin-auth)!: the settings save keeps a way to sign in under the local sign-in path off, and a blocked client lands on the sign-in page from the direct sign-in door - #33781

Merged
objectstack-fleet[bot] merged 7 commits into
mainfrom
claude/project-thread-bjn7ou
Nov 15, 2026
Merged

objectstack-fleet[bot] merged 7 commits into
mainfrom
claude/project-thread-bjn7ou

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Steedos · project thread

Fixes #33358

Clause-②: yes (narrowing) — narrowed: with direct sign-in on and its local sign-in path off, an auth settings save (PUT /api/settings/auth) that turns Google off, or clears a Google client credential no environment variable backs, while Google is the last way in the sign-in page offers answers 400 SETTINGS_VALIDATION (copy googleLocalOff) and saves nothing, where it saved, even with email and password or phone sign-in on; and a GET /api/v1/auth/sign-in/direct from a client the IP allow-list refuses answers 302 to /login?error=IP_NOT_ALLOWED, where it answered the 403 IP_NOT_ALLOWED JSON body. Widened: under off with nothing else in force (no Google, no identity provider row, no social or OIDC provider with credentials, no host sign-in handoff), a save of email_password_enabled: false answers 200 and saves, where it answered 400 SETTINGS_VALIDATION, because the sign-in page offers no email and password there either way; module exports (not on the package entry) DIRECT_SIGN_IN_NETWORK_REFUSED, isDirectSignInDoorNavigation and directSignInNetworkRefusal; the copy key googleLocalOff in all 11 locales; the @object-ui/i18n key auth.login.errors.networkNotAllowed in all 11 packs (no key renamed or removed); markSignOutRoundTrip takes the sign-in page path it records.
Metadata-protocol: none
Skills-docs: none — no skill under skills/** teaches direct sign-in, the auth settings save, the IP allow-list or the sign-out note; content/docs/permissions/sso.mdx gains the rules in this change.

维护者速读

  • 改了什么:直接登录把本地登录路径设为 off 后,保存认证设置时不再把邮箱/密码当作还能登录的方式,删掉最后一个 Google 会被拒绝并给出专门的提示;被 IP 白名单拦下的浏览器打开直接登录入口时,跳回登录页并说明"不允许从你的网络登录",不再看到原始的 403 JSON;从身份提供方注销的标记只在提供方把浏览器送回登录页那一次生效。
  • 为什么改:自托管系统开了 OS_AUTH_DIRECT_SIGN_IN_LOCAL_PATH=off 时,管理员关掉最后一个 Google 登录仍能保存成功,随后所有人(包括管理员)都进不了系统;被 IP 白名单拦下的人看到一段看不懂的 JSON;提供方不回跳时,下一次打开深链接会丢掉 ?redirect=。
  • 风险与回滚:BREAKING(声明 Clause-② narrowing):直接登录且本地登录路径为 off 时,把 Google 作为最后一种登录方式关掉的设置保存从 200 变为 400;被 IP 白名单拦下的浏览器 GET 直接登录入口从 403 JSON 变为 302 跳回 /login?error=IP_NOT_ALLOWED。hidden 和直接登录关闭时行为不变;IP 白名单没有放宽,被拦的客户端仍然无法发起登录,POST 和带尾斜杠的路径仍是 403。回滚即撤回本 PR。
  • 先看:packages/plugins/plugin-auth/src/sign-in-method-floor.ts 的 signInMethodFloorPredicate;auth-plugin.ts 中 IP 白名单中间件新增的一段;ui/packages/auth/src/signOutRoundTrip.ts 的 readSignOutRoundTrip。
  • 两分钟验证:cd packages/plugins/plugin-auth && pnpm exec vitest run src/sign-in-method-floor.test.ts src/direct-sign-in.test.ts,预期全部通过,其中新加的 off 场景用例与 IP 白名单用例都在列。
  • 需要你做的:无,席位落地。

What changes

Item 1, the settings-save half (N7). signInMethodFloorPredicate now judges by what the sign-in page offers, through the same pageOffersLocalSignIn the provider delete and the boot report use since #33623. Under directSignIn.localSignIn: 'off':

  • the google_* change that removes the last way in (Google off, or a client credential cleared that no env variable backs) is refused 400 SETTINGS_VALIDATION at its key with email and password ON, in a new googleLocalOff copy in all eleven languages of the existing table (the email-off copy's remedy, keep email and password on, does nothing there); turning email and password on in the same save does not help;
  • the email_password_enabled key itself is never refused under off, because the page draws it neither way, so the save removes nothing the page offers. With nothing else in force this widens an answer: email_password_enabled: false was 400 on main and is now 200 (declared under Widened). Recovery after such a save needs OS_AUTH_EMAIL_PASSWORD_ENABLED=true as well as OS_AUTH_DIRECT_SIGN_IN_LOCAL_PATH=hidden, then a restart;
  • phone sign-in counts only as the page offers it (asThePageOffers: true), as on the other two doors.

Under hidden, or with direct sign-in off, every answer is as on main (the localOffered leg is true there).

Copy nit folded in: enterpriseSsoUnverified (the 503 on a provider delete whose provider list could not be read) said "with email and password off"; it now says the sign-in page offers no email and password, which is true under both reasons the check runs. All eleven languages.

content/docs/permissions/sso.mdx no longer says the settings save is still open, and names the three checks and the exits that still count.

Item 2 (N8), the direct sign-in door under the IP allow-list. The allow-list middleware in auth-plugin.ts (one hunk, disjoint from #33268's) still refuses, audits and logs exactly as before. For a GET of the mounted door only, its answer is now 302 to the Console's /login?error=IP_NOT_ALLOWED with the page's ?redirect= carried (directSignInNetworkRefusal in direct-sign-in.ts, reusing carriedRedirect / keptReturnPath), instead of the raw 403 JSON. No exemption: the request never reaches the door, nothing is started, no provider is read, and every other auth request from that client (/get-session, /sign-in/social, a POST to the door path, the door path with a trailing slash) is still 403 IP_NOT_ALLOWED. With direct sign-in off the path is not mounted and the answer is the 403 as before. The page holds on any error already; ssoCallbackRefusal.ts gains IP_NOT_ALLOWED with the new @object-ui/i18n key auth.login.errors.networkNotAllowed in all eleven packs (zh-Hant generated by gen:zh-hant), so the page says the system does not allow sign-in from this network instead of the generic "link expired" sentence. The route ledger note for GET /api/v1/auth/sign-in/direct says so.

Item 3, review nit N6. Pins for the exits under off: another provider row, a social provider and an OIDC provider with credentials, a host sign-in handoff, on the provider delete, the boot report and the settings save.

Item 5 (N13). The provider-logout note in sessionStorage now holds the time AND the return path (createAuthClient.signOut passes resolveSpaRoute('/login'), the sign-out's own callbackURL), and readSignOutRoundTrip honours it only on a load of that path within the window. AuthProvider still drops the note on every mount, so a tab whose provider never sent it back drops it unread on the next load of any other page: LoginRedirect then keeps the deep link's ?redirect=. LoginRedirect itself is unchanged. A note in the old bare-number shape reads as no note.

Why

An administrator of a self-hosted system with OS_AUTH_DIRECT_SIGN_IN_LOCAL_PATH=off could save Google off while it was the last way in, and the page then said "No sign-in method is available" to everyone. A blocked client following the direct sign-in redirect saw a raw JSON body. A provider that never returned the browser made the next deep link in the tab land on the home page.

Verification

Final head e25b4e31. Round 3 (delta review 6894048463) added e25b4e31, a changeset-prose-only commit declaring the email-off save under off as widened; the changeset gates (no-major, empty-changeset, adr-0087 registration, issue citations, closed-ceremony text, changeset gate self-tests) re-ran exit 0 there. Before that, the review round (review-a FAIL 6893256448) added commit 7c6c999c on top of 10180db4: the changeset re-declared as narrowing, the no-Google email-key pins, the trailing-slash case and the docs sentence. Touched suites, ablations, delta gates and the dogfood battery ran on 7c6c999c after rebuilding the closure; the full suites and the 110-family gate run are from f76f5856 / 10180db4 (round 1), and no source file changed since, only tests, docs and the changeset.

Tests
  • Round 2 at 7c6c999c: sign-in-method-floor.test.ts + direct-sign-in.test.ts: 2 files, 168 passed.
  • Round 1: pnpm --filter @objectstack/plugin-auth test under the verify lock: Test Files 277 passed (277), Tests 5481 passed, 10 skipped. After the merge of main (spec check:generated all 14 up to date): 5 touched files, 210 tests passed.
  • Round 1 ui under the lock: packages/i18n/, apps/console/src/pages/auth/, apps/console/src/components/__tests__, product-neutral-renderer.ratchet: 137 files, 2259 passed, 13 skipped. packages/auth sign-out tests: 2 files, 22 passed. pnpm --dir ui exec vitest run scripts/: 171 files passed, 2 skipped.
  • Type checks (round 1): @objectstack/plugin-auth typecheck; turbo type-check for @object-ui/auth, @object-ui/i18n (6 tasks) and @object-ui/console (75 tasks), all successful.
Ablations (each through scripts/ablation-replace.mjs: anchor 1 to 0 on disk, red, restored, git diff HEAD empty)

Round 2, at 7c6c999c:

  • if (!localOffered && key === 'email_password_enabled') return undefined; → if (false) …: 2 red, both the new pins where nothing else is in force (the composed under the local sign-in path off, the email and password key is never refused, even with no other way in configured, and the off judge's no-Google case). With Google still in force the old pins stayed green, which was the review's point.
  • method.toUpperCase() === 'GET' && → true && in isDirectSignInDoorNavigation: 1 red, the POST to the door answers 302 instead of 403.
  • the path equality → path.startsWith(basePath): 1 red, /api/v1/auth/get-session answers 302 instead of 403.
  • the path equality → equality after stripping a trailing slash: 1 red, GET /api/v1/auth/sign-in/direct/ answers 302 instead of 403 (the new trailing-slash case).
  • this.directSignInDoorMounted && → true && in the allow-list middleware: 1 red, the CONTROL with direct sign-in off answers 302 instead of the 403 body.

Round 1, at f76f5856:

  • localOffered forced true: 2 floor tests red (the composed off save and the off judge).
  • off copy replaced by the email-off copy: the same 2 red.
  • phone counted on the save under off (asThePageOffers: false): 1 red (the off judge).
  • the allow-list landing branch disabled: 1 red (the blocked navigation case).
  • the carried redirect dropped from the landing: 1 red.
  • the IP_NOT_ALLOWED map entry renamed in ssoCallbackRefusal.ts: 1 red (the page sentence pin).
  • the return-path comparison in readSignOutRoundTrip forced true: 3 red.
Gates
  • Round 2 at 7c6c999c: the 48 families of the round-1 list that read the changeset, docs, ADR registration, citations, comments, error codes, the auth mount ledger or skills examples, re-run: 48 exit 0 (check:skill-examples after building @objectstack/client-react, its declared prereq).
  • Round 1: dispatch-gates --commands derived 110 families; 109 exit 0; check:dual-build-cjs-loads exit 3 (needs every package built) NOT MEASURED locally and left to CI. pnpm lint exit 0.
  • Dogfood battery (owed by ! and the narrowing arm): PASS at 7c6c999c: pnpm --filter @objectstack/dogfood test under the verify lock, Test Files 467 passed, 3 skipped (470); Tests 3958 passed, 42 skipped (4000); VERDICT command-exit 0 (held 33m41s, shared box).

Acceptance notes

  • What to do after an email-off save under off: setting the local path back to hidden is not enough; set OS_AUTH_EMAIL_PASSWORD_ENABLED=true as well, then restart. sso.mdx's recovery sentence already says so.
  • Declared Clause-②: yes (narrowing) per claim amendment 6893265267: two answers move (the settings save under off from 200 to 400, the blocked door GET from 403 to 302), so the title carries ! and the changeset a BREAKING paragraph, an Unchanged paragraph, What to do, and the adr-0087: not-required (no-migration-prescription) marker (no schema key, value or metadata type moves, nothing stored to rewrite). The bump stays patch, as fix(plugin-auth)!: under local sign-in off, the last identity provider is the last way in; the direct sign-in door keeps ?redirect= #33623 did.
  • content/docs/permissions/sso.mdx gains the 302 sentence in the direct sign-in "No loops" list. content/docs/permissions/authentication.mdx (the allow-list field row) is outside the claim surface and untouched; the sso.mdx sentence links to it.
  • AuthProvider.tsx keeps its comment that the first mount after the round trip starts raised; that is still true of the return load, so it is untouched.

🤖 Generated with Claude Code

https://claude.ai/code/session_01QsR2jSSVaNcDs8HPSoGV6V

…what the page offers under the local sign-in path off

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QsR2jSSVaNcDs8HPSoGV6V
…gn-in door lands on the sign-in page with the refusal code

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QsR2jSSVaNcDs8HPSoGV6V
…-in door, and the sign-out note is read only on the provider's return

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

github-actions Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 1 package(s): @objectstack/plugin-auth, touching 19 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 directSignIn (literal, a string literal in AUTH_ROUTE_LEDGER))
  • content/docs/kernel/contracts/auth-service.mdx (via IP_NOT_ALLOWED (literal, a string literal in DIRECT_SIGN_IN_NETWORK_REFUSED))
  • content/docs/kernel/runtime-services/audit-service.mdx (via IP_NOT_ALLOWED (literal, a string literal in DIRECT_SIGN_IN_NETWORK_REFUSED))
  • content/docs/permissions/authentication.mdx (via IP_NOT_ALLOWED (literal, a string literal in DIRECT_SIGN_IN_NETWORK_REFUSED), callbackURL (literal, a string literal in directSignInNetworkRefusal))
  • content/docs/permissions/sso.mdx (via IP_NOT_ALLOWED (literal, a string literal in DIRECT_SIGN_IN_NETWORK_REFUSED), callbackURL (literal, a string literal in directSignInNetworkRefusal), directSignIn (literal, a string literal in AUTH_ROUTE_LEDGER), /api/v1/auth/sign-in/direct (route, a path literal in AUTH_ROUTE_LEDGER))

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

  • content/docs/releases/v17/17-5.mdx (via callbackURL (literal, a string literal in directSignInNetworkRefusal))
  • content/docs/releases/v18/18-4.mdx (via IP_NOT_ALLOWED (literal, a string literal in DIRECT_SIGN_IN_NETWORK_REFUSED))

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 65 of 247 client-bound route-ledger rows — the other 182 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 182: 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; 123 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 — 22 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 6ec7b93c28ddbd80483fcb4e878ca2bea6a316db → packageMentionDocs.

Which tree this was computed on

This run read content/docs from a7c464d4054d2437e7f2b4005d913e9d3000236a — the merge of head e25b4e31a6be0e0cc5aca0fcae4a0779a678dd84 into base 6ec7b93c28ddbd80483fcb4e878ca2bea6a316db, 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 a7c464d4054d2437e7f2b4005d913e9d3000236a && git checkout a7c464d4054d2437e7f2b4005d913e9d3000236a
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 6ec7b93c28ddbd80483fcb4e878ca2bea6a316db e25b4e31a6be0e0cc5aca0fcae4a0779a678dd84 && git checkout -B drift-repro 6ec7b93c28ddbd80483fcb4e878ca2bea6a316db && git merge --no-ff e25b4e31a6be0e0cc5aca0fcae4a0779a678dd84

node scripts/docs-audit/affected-docs.mjs --json 6ec7b93c28ddbd80483fcb4e878ca2bea6a316db

⚠️ 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 6ec7b93c28ddbd80483fcb4e878ca2bea6a316db → 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

domain:server#5 · zhuangjianguo · session_01QsR2jVPGBoi3MCGoKbW1Hv

Request: review · PR #33781 · S1/A1 · Fixes #33358 · head 10180db · 2026-11-15T10:42Z

Reviewer: review-a of seat domain:server#5. Dev report 6893119344 on #33358. Clause-② yes (widening): a new @object-ui/i18n key, so the review needs a full contract-review record. Please check item 2 as an access boundary: the blocked client gets a 302 to /login, nothing reaches the door, and every other blocked request is still answered 403. One hunk of auth-plugin.ts sits beside server#6's Tier H #33268; whichever lands second resolves the conflict.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:server#5 · zhuangjianguo · session_01QsR2jTjrNnh6b2BkCXFugM
Review claim (review-a, S1) · head 10180db · 2026-11-15T10:43Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:server#5 · zhuangjianguo · session_01QsR2jTjrNnh6b2BkCXFugM

Review — FAIL

Head-sha: 10180db4984626bb606c06c25ad39a857a60ca96
Reviewer: review-a (areas S1 + S3) · read 2026-11-15T10:53Z · diff read against the merge's main parent b76df9a6 (matches the PR files list: 24 files, +546/−72)
Implemented-by: session_01QsR2jVPGBoi3MCGoKbW1Hv (area S1 dispatch) · Reviewed-by: session_01QsR2jTjrNnh6b2BkCXFugM, with one isolated read-only sub-agent for the diff, findings re-checked here

What holds

Must-fix

  1. The Clause-② arm is wrong: this PR narrows. Under localSignIn: 'off', a settings save that turns Google off (or clears an unbacked Google credential) while email and password is on was accepted on main. It now answers 400 SETTINGS_VALIDATION (googleLocalOff). That removes an accepted request, the same kind of change fix(plugin-auth)!: under local sign-in off, the last identity provider is the last way in; the direct sign-in door keeps ?redirect= #33623 made to the provider delete and declared as Clause-②: yes (narrowing) with !, BREAKING, the ADR-0087 disposition and the dogfood battery. Re-declare this PR the same way, in the PR body and the changeset: narrowed (the save refusal above, and the blocked door GET now answering 302 to /login?error=IP_NOT_ALLOWED where it answered 403 JSON); widened (the new i18n key, the floor copy key, the module exports). Then add the Skills-docs: line the narrowing arm requires, ! in the title, the BREAKING note, the ADR-0087 disposition and a dogfood battery run at the new head.
    The declared narrowing moves this PR's review face to CONTRACT_REVIEW_TIER (scope: the whole diff outside the prose faces). The full contract-review record will be written at the corrected head at that tier, not at TIER_DEFAULT.

Should-fix (fold into the same round)

  1. The "email_password_enabled is never refused under off" pins (sign-in-method-floor.test.ts ~485 and ~943) keep Google in force, so they stay green with that guard deleted. Add the case where nothing else is in force, and ablate the guard.
  2. These boundary pins have no ablation evidence: the method/path check in isDirectSignInDoorNavigation (POST, other paths and a trailing slash still answer 403), and the directSignInDoorMounted gate (direct sign-in off still answers 403). Ablate each and report the red.
  3. Docs: neither sso.mdx nor the allowed_ip_ranges section of authentication.mdx says that a blocked browser GET of the door now lands on /login?error=IP_NOT_ALLOWED. Add one sentence.

Nits (no re-review needed)

  1. The floor refusal pins assert the code but not the 400. This follows the file's existing pattern, and envelope conformance covers the mapping.
  2. Any GET of the door path gets the 302, whatever its Accept header. This is harmless because the door was already 302-only for allowed clients.

Gates: not judged. At review time 25 check-runs were in progress, 32 success, 9 skipped, none red.

Next: a new head with items 1–4. I review the delta, and the contract-review record is written at that head.

…orce, door path check, docs 302

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QsR2jSSVaNcDs8HPSoGV6V
@objectstack-fleet objectstack-fleet Bot changed the title fix(plugin-auth): the settings save keeps a way to sign in under the local sign-in path off, and a blocked client lands on the sign-in page from the direct sign-in door fix(plugin-auth)!: the settings save keeps a way to sign in under the local sign-in path off, and a blocked client lands on the sign-in page from the direct sign-in door Nov 15, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:server#5 · zhuangjianguo · session_01QsR2jTjrNnh6b2BkCXFugM
Review claim (review-a, S1, delta) · head 7c6c999 · 2026-11-15T11:57Z
Contract-review-claim: session_01QsR2jTjrNnh6b2BkCXFugM · head 7c6c999 · 2026-11-15T11:57Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:server#5 · zhuangjianguo · session_01QsR2jTjrNnh6b2BkCXFugM

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 7c6c999ce249c9cc9604082fddc10366db8a3528
Local-runs: none
Scope: packages/plugins/plugin-auth/src/auth-plugin.ts, packages/plugins/plugin-auth/src/auth-route-ledger.ts, packages/plugins/plugin-auth/src/direct-sign-in.test.ts, packages/plugins/plugin-auth/src/direct-sign-in.ts, packages/plugins/plugin-auth/src/sign-in-method-floor.test.ts, packages/plugins/plugin-auth/src/sign-in-method-floor.ts, ui/apps/console/src/pages/auth/__tests__/LoginPage.direct-sign-in.test.tsx, ui/apps/console/src/pages/auth/ssoCallbackRefusal.ts, ui/packages/auth/src/__tests__/signOutRoundTrip-33183.test.tsx, ui/packages/auth/src/createAuthClient.ts, ui/packages/auth/src/signOutRoundTrip.ts, ui/packages/i18n/src/locales/ar.ts, ui/packages/i18n/src/locales/de.ts, ui/packages/i18n/src/locales/en.ts, ui/packages/i18n/src/locales/es.ts, ui/packages/i18n/src/locales/fr.ts, ui/packages/i18n/src/locales/ja.ts, ui/packages/i18n/src/locales/ko.ts, ui/packages/i18n/src/locales/pt-BR.ts, ui/packages/i18n/src/locales/ru.ts, ui/packages/i18n/src/locales/zh-Hans.ts, ui/packages/i18n/src/locales/zh-Hant.ts + read, not reviewed: packages/spec/src/api/auth-endpoints.zod.ts, packages/spec/src/kernel/public-auth-features.ts, packages/spec/src/api/error-code-ledger.zod.ts, packages/plugins/plugin-auth/src/auth-manager.ts, packages/plugins/plugin-auth/src/sso-sign-out-of-idp.ts, ui/packages/auth/src/LoginForm.tsx, ui/packages/auth/src/AuthProvider.tsx, ui/apps/console/src/pages/auth/LoginPage.tsx, ui/apps/console/src/pages/auth/directSignIn.ts, ui/apps/console/src/App.tsx, docs/adr/0069-enterprise-authentication-hardening.md, content/docs/permissions/authentication.mdx

Read: card #33358 with its ten comments, PR #33781's body, file list and five comments, and the net diff against the merge's main parent b76df9a6 (24 files, +585/−72; the file list equals the API's). The cited code and the published spec were read on origin/main. Nothing was built or run.

Check-runs on this head: 72, of which 61 success and 11 skipped, none failed, none still running when this was written (12:02Z). A second Check Changeset run was in progress at my first read (started 11:56Z) and completed success at 11:58Z.

① Derived judgments

No must-fix.

Each answer the diff moves, against main:

  • Settings save under off, Google last: 200 → 400. Declared, right. signInMethodFloorPredicate (sign-in-method-floor.ts:703-728) now sets emailPasswordAfter false whenever pageOffersLocalSignIn is false, and counts phone only as the page offers it. I walked every return under off: a Google change is refused only when Google was in force, no other social or OIDC provider with credentials, no identity provider row and no host handoff stands, and Google is gone after the save. Under hidden, or with direct sign-in off, localOffered is true and every line reads as on main.
  • Blocked GET of the door: 403 JSON → 302. Declared, right. See ④.
  • Settings save under off, the email and password key: 400 → 200. Not declared. This is S1 below.
  • Additive surface, declared, right: the module exports DIRECT_SIGN_IN_NETWORK_REFUSED, isDirectSignInDoorNavigation, directSignInNetworkRefusal (not on the package entry); googleLocalOff, a required field of SignInFloorCopy, present in all 11 locales; auth.login.errors.networkNotAllowed in all 11 packs. No new error code: IP_NOT_ALLOWED is already in error-code-ledger.zod.ts:660.
  • markSignOutRoundTrip(returnPath, now): a changed signature, right. signOutRoundTrip.ts is not exported from the @object-ui/auth entry, and its one caller is in the diff.
  • The sign-out note: right. The note's path is resolveSpaRoute('/login'), the same value the sign-out sends as callbackURL, which the server turns into the provider's return address (sso-sign-out-of-idp.ts:371-375). The Console's router basename comes from the same base element (App.tsx:133), so the path loaded on return is the path recorded. AuthProvider still clears the note on every mount, so a deep link drops it unread. A note in the old bare-number shape parses to a number, has no path, and reads as no note.

S1 (should-fix) — one moved answer is undeclared, and the changeset calls it unchanged

  • On main, under off, saving email_password_enabled: false with nothing else in force (no Google, no other provider, no identity provider row, no handoff, no phone) is refused 400 SETTINGS_VALIDATION with the emailPassword copy. The predicate on main reaches its last line for that key.
  • At this head the new guard at sign-in-method-floor.ts:711 returns before any check, so the same save answers 200. The pin under the local sign-in path off, the email and password key is never refused, even with no other way in configured asserts exactly that.
  • A second, smaller move: the batch that turns email and password and the last Google off together under off is still refused, but now at the Google key only, where main reported both keys.
  • The changeset's Unchanged: paragraph (line 18) lists "the email_password_enabled switch, which is never refused under off". That is true of the head and false as a statement about what changed. The Widened: list on the Clause-②: line, in the changeset and the PR body, does not name it.
  • The behaviour itself is defensible, and I do not ask for it to change. In that state the page already offers nothing, the boot report already says so at error, and without the guard every save that carries the key would be refused there, including one that turns it on. But the save does turn off a server door that still answers (POST /sign-in/email is unchanged by off, as the spec says), so recovery then needs OS_AUTH_EMAIL_PASSWORD_ENABLED=true as well as the local path. An operator should read that in the release note.
  • Fix, on the prose faces only: name this move under Widened: in the changeset and the PR body, take the sentence out of Unchanged:, and say in "What to do" that recovery after it needs both settings. No source line needs to move.

② Semver level

  • Clause-②: yes (narrowing) is the right arm, and the title carries !. Two answers narrow, as declared.
  • patch on @objectstack/plugin-auth, @object-ui/console, @object-ui/i18n and @object-ui/auth matches what the diff publishes and follows fix(plugin-auth)!: under local sign-in off, the last identity provider is the last way in; the direct sign-in door keeps ?redirect= #33623. Check Changeset is green on this head.
  • The changeset has one adr-0087: not-required (no-migration-prescription) marker. That is right: no stored key, accepted value or metadata type moves. Metadata-protocol: none holds.
  • The BREAKING paragraph names both narrowed answers, who is affected and what to do. The one gap in the changeset's account is S1.

③ Boundary flags

  • The dev report's open_questions is empty. Its two out-of-scope notes need no ruling: a HEAD to the door from a blocked client still answers 403 (true, isDirectSignInDoorNavigation matches GET only), and a note written by the previous release reads as no note (true, see ①).
  • Claim amendment 6893265267 asked for the full arm text, a Skills-docs: line, !, BREAKING, the ADR-0087 disposition and a dogfood battery at the head. All are present, and Dogfood Regression Gate is green on this head.
  • The diff touches no packages/spec file, no generated file and no release-owned page. auth-plugin.ts is touched in the import block and the allow-list middleware only.
  • All four items the card still held after fix(plugin-auth)!: under local sign-in off, the last identity provider is the last way in; the direct sign-in door keeps ?redirect= #33623 (the settings-save half of item 1, item 2, item 5 and nit N6) are in this diff, so Fixes #33358 is right.

④ Design judgment

The settings save makes the floor's own refusal real. It takes no declared capability away.

  • The spec on main declares localSignIn: 'off' as "the sign-in form offers no local way in" (auth-endpoints.zod.ts:295). The page implements it: LoginForm.tsx:349-354 hides email and password and both phone ways under off. The floor's declared job is to keep a way in on that page, and since fix(plugin-auth)!: under local sign-in off, the last identity provider is the last way in; the direct sign-in door keeps ?redirect= #33623 the provider delete and the boot report already judge by pageOffersLocalSignIn. This diff brings the third door to the same predicate, as release note 6889573269 asked.
  • The capability an administrator loses is saving the page into "No sign-in method is available". Nothing the spec declares is narrowed at a consumer.
  • Tried to break it. localSignIn is not a settings key, so one save cannot flip it under the predicate. A batch that turns email and password on beside Google off is still refused, because localOffered gates the email leg. An identity provider store that cannot be read counts as no row, so the save refuses, as on main. The copy's last remedy (local path back to hidden with email and password on) is true: the environment variable wins over the option in resolveDirectSignIn.

The blocked door keeps the allow-list's refusal whole and changes only its shape for one navigation.

  • ADR-0069 D5 decides "a gate ahead of the better-auth handler, refusing with IP_NOT_ALLOWED". The middleware still explains and audits first, and returns without calling next(), so the door never runs: no provider read, no vendor state, no cookie (pinned with getSetCookie() empty). The landing carries the same code.
  • The exception is as narrow as it can be: GET, the exact mounted path, and only while directSignInDoorMounted is true. The flag is read per request, so a door that was never mounted keeps the 403. POST, a trailing slash, every other auth path and direct sign-in off are pinned at 403 with the code.
  • No open redirect. The origin comes from getConsoleUrl, never from the request. callbackURL must appear once and pass keptReturnPath, and the redirect inside it passes the same rule again in carriedRedirect; the query is built with URLSearchParams. A foreign value lands on the bare page (pinned).
  • No loop. A URL with error is a hold in decideDirectSignIn, so the page does not navigate again; the retry button starts only on a click, which is useful after the person joins the VPN. /config stays exempt, so the page can draw.
  • Nothing new is disclosed: a blocked client could already learn that direct sign-in is on from the exempt /config.

Nits (none blocks).

  • N1. The spec says of localSignIn "It changes no server door: password sign-in answers the same either way" (auth-endpoints.zod.ts:295-299, public-auth-features.ts:399-405). The sign-in doors are indeed unchanged, but two other doors now answer by it: the provider delete since fix(plugin-auth)!: under local sign-in off, the last identity provider is the last way in; the direct sign-in door keeps ?redirect= #33623 and the settings save here. The sentence should say "no sign-in door". It is a packages/spec edit, so it belongs on a follow-up card, not in this PR.
  • N2. content/docs/permissions/authentication.mdx:652 still says a refused request answers 403 IP_NOT_ALLOWED with no mention of the door's landing. sso.mdx now carries the sentence and links there. One clause in the field row would close it; the page is outside the claim's surface, so a follow-up.
  • N3. googleLocalOff offers "set up another sign-in method before or in this save". Under off the auth settings form holds no other method that counts (email and password does not, and Google is the one being removed), so "or in this save" tells the reader nothing there. The other remedies in the sentence are true.
  • N4. ssoCallbackRefusal.ts says the network sentence names "the administrator, not a retry", while the page still draws the retry button under it. Both are fine; the comment could say the button stays.

S1 is open on this head. It earns a delta review of its fix before this PR lands.

Implemented-by: claude/project-thread-bjn7ou
Reviewed-by: session_01QsR2jTjrNnh6b2BkCXFugM

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:server#5 · zhuangjianguo · session_01QsR2jTjrNnh6b2BkCXFugM

Review — FAIL (delta; one prose-only should-fix open)

Head-sha: 7c6c999ce249c9cc9604082fddc10366db8a3528
Reviewer: review-a (areas S1 + S3) · read 2026-11-15T12:05Z · delta over 10180db4 (one commit, 7c6c999: tests, docs and the changeset only)
Implemented-by: session_01QsR2jVPGBoi3MCGoKbW1Hv · Reviewed-by: session_01QsR2jTjrNnh6b2BkCXFugM

Items of 6893256448, all closed at this head

  1. Clause-② is re-declared yes (narrowing) in the fix(plugin-auth)!: under local sign-in off, the last identity provider is the last way in; the direct sign-in door keeps ?redirect= #33623 form, with ! in the title, BREAKING, the adr-0087: not-required marker, Skills-docs: none and the dogfood battery (Dogfood Regression Gate green on this head). Closed.
  2. A nothing-else-in-force pin was added for the email key under off, with a control under hidden. The ablation in the area's report turns exactly those pins red. Closed.
  3. A trailing-slash case was added. The method check, the path equality and directSignInDoorMounted are each ablated red. Closed.
  4. sso.mdx gained the blocked-door 302 sentence. Checked against direct-sign-in.ts and auth-plugin.ts at this head: true. ("a browser GET" is any GET, accepted as nit 6 of the first round.) Closed.

Contract review (CONTRACT_REVIEW_TIER, narrowing face): record 6894038792 on this head, VERDICT: PASS, rendered by an isolated at-tier sub-agent from the --brief-template brief (below) and adopted by this seat. Before adopting it I checked three things: the Scope: line covers every path outside the prose faces (the narrowing floor), the independence pair is present, and the record judges the tree rather than the PR body. It records no must-fix and one should-fix:

Open (should-fix, prose faces only, no source line moves)

  • S1. Under off, saving email_password_enabled: false with nothing else in force answered 400 on main and answers 200 at this head (sign-in-method-floor.ts guard, pinned by the new test). The behaviour is accepted. But the changeset's Unchanged: paragraph calls it unchanged, and the Widened: list in the changeset and the PR body omits it. Fix: name it under Widened:, drop it from Unchanged:, and say under "What to do" that recovery after such a save needs OS_AUTH_EMAIL_PASSWORD_ENABLED=true as well as the local path. A head that moves only those lines gets a delta record, and then this PR may land.

Nits, follow-ups, not this PR: N1 the spec sentence "It changes no server door" for localSignIn (auth-endpoints.zod.ts, public-auth-features.ts) should say "no sign-in door", a packages/spec follow-up card. N2 authentication.mdx allow-list row: one clause on the door's landing. N3 and N4 are copy and comment wording; see the record.

Gates: at 12:02Z, 72 check-runs on this head: 61 success, 11 skipped, none failed.

Brief given to the at-tier reviewer

Brief: — PR #33781 @ 7c6c999ce249c9cc9604082fddc10366db8a3528 (card #33358)

You review at CONTRACT_REVIEW_TIER. Render ONE ## Contract review record on this head — its shape is
node scripts/pm/record-recognisers.mjs --template --face narrowing — with a PASS or FAIL verdict, and post it as ONE comment
on the PR or its card.

Inputs — these and nothing else:
· card #33358: its body and EVERY comment (rulings and earlier records included)
· PR #33781: its body, its file list, and the net diff against main at 7c6c999ce249c9cc9604082fddc10366db8a3528
· the check-runs on 7c6c999ce249c9cc9604082fddc10366db8a3528: their conclusions ARE the gate verdicts
⛔ Not the dispatch order, ⛔ not the dispatching seat's own conclusions — this brief is adversarial by design.

Scope — the narrowing is declared of the whole PR, never of a path: the floor is EVERY path of the diff outside the
prose faces (packages/plugins/plugin-auth/src/auth-plugin.ts, packages/plugins/plugin-auth/src/auth-route-ledger.ts, packages/plugins/plugin-auth/src/direct-sign-in.test.ts, packages/plugins/plugin-auth/src/direct-sign-in.ts, packages/plugins/plugin-auth/src/sign-in-method-floor.test.ts, packages/plugins/plugin-auth/src/sign-in-method-floor.ts, ui/apps/console/src/pages/auth/tests/LoginPage.direct-sign-in.test.tsx, ui/apps/console/src/pages/auth/ssoCallbackRefusal.ts, ui/packages/auth/src/tests/signOutRoundTrip-33183.test.tsx, ui/packages/auth/src/createAuthClient.ts, ui/packages/auth/src/signOutRoundTrip.ts, ui/packages/i18n/src/locales/ar.ts, ui/packages/i18n/src/locales/de.ts, ui/packages/i18n/src/locales/en.ts, ui/packages/i18n/src/locales/es.ts, ui/packages/i18n/src/locales/fr.ts, ui/packages/i18n/src/locales/ja.ts, ui/packages/i18n/src/locales/ko.ts, ui/packages/i18n/src/locales/pt-BR.ts, ui/packages/i18n/src/locales/ru.ts, ui/packages/i18n/src/locales/zh-Hans.ts, ui/packages/i18n/src/locales/zh-Hant.ts), plus every file those hunks make a claim about, read in the cited code.
Widen it freely, ⛔ never below that floor; the record's Scope: line lists both. No path is the lane seat's remainder.
④ judges the narrowing itself over that floor: lockfiles, generated output, changesets and prose elsewhere in
the PR are not reviewed; the published spec and the cited code are READ to judge it, never reviewed.

⛔ READ-ONLY. No worktree, no checkout, no build, no test run, no gate re-run, no ablation: the check-runs
on the head already answered every derived gate family, and a local run costs more than it returns.
If ONE probe is unavoidable, the record's Local-runs: line says probe — REASON; otherwise none.
Scratch space is /tmp/claude-0/-home-claude/f1fa01f1-5666-52a4-ae87-dc84f7793236/scratchpad/pr-33781/ alone; nothing there you did not write this round is read.

Judge, in the record's own sections:
① Derived judgments — every accept-set and public-surface change the diff implies, each named right or wrong.
② Semver level — the changeset (or skip-changeset) matches what the diff publishes, and the Clause-②: line.
③ Boundary flags — every dev flag and every open_questions entry answered, or escalated.
④ Design judgment — the narrowing itself, read against the published spec on main: does it take a
declared capability away at the consumer, or make the spec's own refusal real? A capability declared
and not delivered is an implementation gap, implemented or retired, ⛔ never narrowed at the consumer.
Read the spec and the cited code in the live tree, and try to break the design.
Grade each finding must-fix, should-fix or nit — a nit has no effect on correctness or the contract.
A must-fix is a FAIL; a must-fix or should-fix earns a delta review of its fix; nits alone end the round.
A nit is fixed only on the prose faces, or left as an accepted deviation or a follow-up card: a fix
anywhere else moves the head, and this record no longer covers it.
⛔ Judge the tree, never the PR body's account of it.
Sign Implemented-by: with the dev's branch and Reviewed-by: with your session id — the value is the FIRST
thing after each colon.

…se in force as widened

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QsR2jSSVaNcDs8HPSoGV6V
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:server#5 · zhuangjianguo · session_01QsR2jTjrNnh6b2BkCXFugM
Contract-review-claim: session_01QsR2jTjrNnh6b2BkCXFugM · head e25b4e3 · 2026-11-15T12:09Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:server#5 · zhuangjianguo · session_01QsR2jTjrNnh6b2BkCXFugM

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: e25b4e31a6be0e0cc5aca0fcae4a0779a678dd84
Local-runs: none
Scope: packages/plugins/plugin-auth/src/auth-plugin.ts, packages/plugins/plugin-auth/src/auth-route-ledger.ts, packages/plugins/plugin-auth/src/direct-sign-in.test.ts, packages/plugins/plugin-auth/src/direct-sign-in.ts, packages/plugins/plugin-auth/src/sign-in-method-floor.test.ts, packages/plugins/plugin-auth/src/sign-in-method-floor.ts, ui/apps/console/src/pages/auth/__tests__/LoginPage.direct-sign-in.test.tsx, ui/apps/console/src/pages/auth/ssoCallbackRefusal.ts, ui/packages/auth/src/__tests__/signOutRoundTrip-33183.test.tsx, ui/packages/auth/src/createAuthClient.ts, ui/packages/auth/src/signOutRoundTrip.ts, ui/packages/i18n/src/locales/ar.ts, ui/packages/i18n/src/locales/de.ts, ui/packages/i18n/src/locales/en.ts, ui/packages/i18n/src/locales/es.ts, ui/packages/i18n/src/locales/fr.ts, ui/packages/i18n/src/locales/ja.ts, ui/packages/i18n/src/locales/ko.ts, ui/packages/i18n/src/locales/pt-BR.ts, ui/packages/i18n/src/locales/ru.ts, ui/packages/i18n/src/locales/zh-Hans.ts, ui/packages/i18n/src/locales/zh-Hant.ts + read, not reviewed: packages/spec/src/api/auth-endpoints.zod.ts, packages/spec/src/kernel/public-auth-features.ts, packages/spec/src/api/error-code-ledger.zod.ts, packages/plugins/plugin-auth/src/auth-manager.ts, packages/plugins/plugin-auth/src/sso-sign-out-of-idp.ts, ui/packages/auth/src/LoginForm.tsx, ui/packages/auth/src/AuthProvider.tsx, ui/apps/console/src/pages/auth/LoginPage.tsx, ui/apps/console/src/pages/auth/directSignIn.ts, ui/apps/console/src/App.tsx, docs/adr/0069-enterprise-authentication-hardening.md, content/docs/permissions/authentication.mdx

This is the delta review of 7c6c999c...e25b4e31 against my record 6894038792 at 7c6c999c. The delta is one commit, e25b4e31, touching one file, .changeset/33358-sign-in-floor-local-off-and-blocked-door.md (+3/−3). The PR body was rewritten and read again. Nothing was built or run.

Check-runs on this head at 12:10Z: 68, of which 14 success, 11 skipped and 43 still in progress, none failed. The in-progress runs include Test Core 1-8, Test UI 1-16, Build Core, Build Docs, the type-check and lint lanes, Live E2E UI and Check Changeset. They are not judged green here.

① Derived judgments

S1 (should-fix): closed.

Each sentence was checked against the tree at e25b4e31:

  • Named under Widened:, in both places. The changeset's Clause-②: line (line 10) and the PR body's now open the list with: under off with nothing else in force, a save of email_password_enabled: false answers 200 and saves, where it answered 400 SETTINGS_VALIDATION. That is what the guard at sign-in-method-floor.ts:711 does, and what the pin "never refused, even with no other way in configured" asserts.
  • Gone from Unchanged:. The paragraph now lists only hidden, direct sign-in off and the IP allow-list. Each of those is unchanged in the tree.
  • "What to do" states the recovery. It says that after email and password was switched off under off, the local path back to hidden is not enough, and OS_AUTH_EMAIL_PASSWORD_ENABLED=true is needed as well, then a restart. That matches the boot report's own recovery text in resolveNoSignInMethodReport and sso.mdx.
  • The PR body's "What changes" bullet for the key says the same three things.

No source, test or locale file moved. git diff --stat 7c6c999c e25b4e31 lists the changeset alone. Every other judgment in ① of 6894038792 carries over unchanged.

No new should-fix.

② Semver level

Unchanged from 6894038792, and the one gap named there is closed. The bump lines, the title, the adr-0087: not-required (no-migration-prescription) marker, Metadata-protocol: none and the BREAKING paragraph are byte-identical. Clause-②: yes (narrowing) is still the right arm: the new entry is a widening beside two narrowed answers.

③ Boundary flags

Unchanged from 6894038792. The delta touches no packages/spec file, no generated file and no release-owned page.

④ Design judgment

Unchanged from 6894038792, since no reviewed line moved. Nits N1 to N4 there still stand, and none blocks.

Nits (none blocks).

  • N5. The new Widened: entry lists what "nothing else in force" means without phone sign-in. With phone sign-in on, main already answered that save 200 (it counted phone under off), so "where it answered 400" holds only with phone off too. Adding "no phone sign-in" to the list would make it exact.
  • N6. The smaller move named in 6894038792 is not in the changeset: the batch that turns email and password and the last Google off together under off is still refused, but at the Google key only, where main reported both keys. The save's answer is the same 400.

Implemented-by: claude/project-thread-bjn7ou
Reviewed-by: session_01QsR2jTjrNnh6b2BkCXFugM

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:server#5 · zhuangjianguo · session_01QsR2jTjrNnh6b2BkCXFugM

Review — PASS

Head-sha: e25b4e31a6be0e0cc5aca0fcae4a0779a678dd84
Reviewer: review-a (areas S1 + S3) · read 2026-11-15T12:12Z · prose delta over 7c6c999c (one commit; only the changeset, +3/−3; the PR body rewritten)
Implemented-by: session_01QsR2jVPGBoi3MCGoKbW1Hv · Reviewed-by: session_01QsR2jTjrNnh6b2BkCXFugM

  • S1 of 6894048463 is closed. The email-off save under off with nothing else in force (400 → 200) is named under Widened: on the Clause-②: line of the changeset and of the PR body. It is gone from Unchanged:. "What to do" now gives the OS_AUTH_EMAIL_PASSWORD_ENABLED=true plus restart recovery. Each sentence was checked against the tree at this head.
  • No source, test or locale file moved, so the code review of 6893256448 and 6894048463 carries over.
  • Contract review at CONTRACT_REVIEW_TIER on this head: delta record 6894124120, VERDICT: PASS, by the same at-tier reviewer as 6894038792, adopted by this seat. It records no must-fix and no should-fix, only nits. N5: the Widened: entry's "nothing else in force" should also say phone off. N6: the email-plus-Google batch is now reported at the Google key only. N1–N4 still stand as follow-ups; N1 (the spec sentence for localSignIn) needs its own card.

Gates not judged: at 12:10Z, 43 of 68 check-runs were still in progress, 14 success, 11 skipped, none failed. Landing needs every check green on this head. This PR is ! / Clause-② narrowing: check whether check-governed-merges.mjs names it governed before arming.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:server#5 · zhuangjianguo · session_01QsR2jVPGBoi3MCGoKbW1Hv

席位核对 · ACCEPT · Head-sha: e25b4e3 · 2026-11-15T12:57Z

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 15, 2026 12:58
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 15, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 15, 2026
@github-actions

Copy link
Copy Markdown
Contributor

⛔ merge queue 构建失败 — 先分诊,再决定要不要重排

队列构建 43716571017 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集),
所以失败的测试可能在本 PR 没碰过的包里 —— 那不是重排能修的。每次盲目重排都会让排在后面的所有 PR 重建一轮。

分类:failure —— 按下面的日志分诊。

失败的 job(日志抽取,best effort):

  • Test Core (2/8) — 失败步骤: Run this shard's tests

    @objectstack/spec:test:      ✓ inverts the card's measured control: the three bogus keys now FAIL parse instead of adding zero warnings  326ms
      ↳ 失败原因: (这条 FAIL 之后 12 行内没有可识别的原因行 —— 点进 job 看)
    @objectstack/spec:test:repo:  FAIL   repo  scripts/build-schemas-check-mode.git-topology.test.ts > build-schemas.ts — --update-base moves the anchor forward or not at all (#5370) > refuses while a mer
      ↳ 失败原因: @objectstack/spec:test:repo: Error: Hook timed out in 10000ms.
    

↳ 失败原因 是判读的关键:超时(Test timed out in … / Hook timed out in …)多半是负载/时序,不是本 PR 的回归;
断言(AssertionError: …)才指向真实的行为改变。两者的 FAIL 行长得一模一样,只有这一行能区分。

⚠️ 断言这一侧有一类例外,判据是断言在测什么,不是它是不是 AssertionError。 断言的对象是产品行为(一个值、一个形状、一次拒收)⇒ 照上面读:真实的行为改变,去查,⛔ 不要重排掉;
断言的对象是这次实验自身的有效性前提(跑完的耗时、负载下的先后、任何只在时间预算内才成立的条件)⇒ 它跟超时是同一类,同样对负载敏感,重排一次是合法的判别手段。
识别是机械的:断言的消息或它比较的值本身点名了一段时长、一个时间戳、一个耗时计数。实测过的一对 —— AssertionError: SecurityPlugin.init() ran: expected false to be true 测的是产品行为(真回归);
AssertionError: this run took over a second, so second-precision stamps could have differed too: expected 1006 to be less than 1000 测的是实验前提:它守护的那条不变式当时是绿的,同一个 head 原样重排一次即成功。
穿着 AssertionError 外衣的时间测量,仍然是时间测量。(⛔ 这只改「怎么读一次红」,不改「哪些测试可以重排」——后者由别处管。)

跨 PR 相同签名(24h,按失败测试文件聚合):

  • scripts/build-schemas-check-mode.git-topology.test.ts — 24h 窗口内只有本 PR 撞到过,暂不汇总(再有一个不同 PR 撞到就会自动开汇总 issue)。
  • ⚠️ 24h 评论账本没读完(超过 5 页仍未读到窗口尽头),所以上面的「不同 PR 数」是下界,不是全量。

历史信号:

  • 本 PR 过去 24h 无队列失败记录(首次)。
  • 过去 24h 队列共有 4 个失败构建(不含本次)。

分诊清单:

  1. 失败测试在本 PR 改动的包里 → 真回归,修 PR。
  2. 失败测试与本 PR 无关 → 看上面的「跨 PR 相同签名」;已有汇总 issue ⇒ flaky/环境问题实锤,去那张 issue 上谈,修好前重排只会再烧一轮全队列。
  3. 两者都不是 → 可能与同组 PR 语义冲突;等前面的 PR 落地或失败出队后再重排一次即可,不要连续重排。

Generated by Claude Code · merge-queue-triage workflow (#4859)

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:server#5 · zhuangjianguo · session_01QsR2jVPGBoi3MCGoKbW1Hv

Re-arm · 2026-11-15T13:21Z · head e25b4e3 unchanged; ACCEPT 6894669076 stands

The PR was removed from the merge queue at 2026-11-15T13:14Z. Queue duty (review-a) classed it as a FLAKE. The one red test was in merge_group run 43716571017, Test Core (2/8): packages/spec/scripts/build-schemas-check-mode.git-topology.test.ts:104, where the beforeEach hook timed out at 10 s while seeding git commits on a slow runner. This PR touches nothing in packages/spec. It is re-armed as is. If the same test fails again, it counts as a cross-PR signature and goes to the seat.

@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 15, 2026
Merged via the queue into main with commit 3372da0 Nov 15, 2026
73 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-bjn7ou branch November 15, 2026 13:55
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/l tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

1 participant