Skip to content

fix(deps): take the fixed releases for seven advisories, refresh undici, nodemailer and the MCP SDK - #39089

Merged
objectstack-fleet[bot] merged 20 commits into
mainfrom
claude/issue-39068-deps-refresh
Dec 2, 2026
Merged

objectstack-fleet[bot] merged 20 commits into
mainfrom
claude/issue-39068-deps-refresh

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Requested by bob · project thread

Fixes #39068
Clause-②: no
Metadata-protocol: none

维护者速读

  • 用户无感:七个已公开安全通告对应的依赖都换成已修复版本,pnpm audit 清零,主分支每日依赖扫描应恢复绿色;认证库 better-auth 升到 1.7.29,邮件、MCP 和网络请求库升到最新补丁版。
  • 认证行为:上游改动已逐项适配,对外错误码不变;保住的保证包括锁定账号与开启二次验证的账号不能只凭链接改邮箱(后者按裁决 7343971547 返回 401)。
  • 出错会怎样:表现为认证相关流程失败,可直接撤回本次合并。
  • 要你做什么:审核并批准合并。

What changes

pnpm audit at origin/main 7814822 listed 7 advisories. On this branch it reports No known vulnerabilities found.

Package Before After How
fast-xml-parser (GHSA-7cfw-w2rf-f3jc) 5.12.0 5.12.1 driver-odata ^5.12.1. plugin-auth's exact pin moves to 5.12.1, which is still the one copy @better-auth/sso resolves.
glob (GHSA-qxr8-q827-836c) 14.0.3 14.0.7 metadata and @object-ui/cli ^14.0.6
ws (GHSA-37g9-w4hg-h9qr) 8.22.0 8.23.1 override ws@>=8.0.0 <9.0.0 to ^8.23.0 (pulled by @libsql/isomorphic-ws and happy-dom)
cross-spawn (GHSA-ghv9-86vm-4v8m) 7.0.6 7.1.2 override cross-spawn@>=7.0.0 <8.0.0 to ^7.1.0. The card called this dev-only, but @modelcontextprotocol/sdk and @ai-sdk/mcp also pull it, as well as eslint.
minimatch (3 GHSAs) 11.0.3 11.0.9 override minimatch@>=11.0.0 <12.0.0 to ^11.0.8
undici (refresh) 8.12.3 8.14.0 the existing 8.x override target moves to ^8.14.0
nodemailer (refresh) 10.2.1 10.6.2 plugin-email ^10.6.2
@modelcontextprotocol/sdk (refresh) 1.32.1 1.32.2 mcp, connector-mcp and example-showcase ^1.32.2
better-auth and @better-auth/* (refresh) 1.7.12 1.7.29 plugin-auth and @object-ui/auth, exact; the @better-auth/scim patch is regenerated for 1.7.29

The overrides go in pnpm-workspace.yaml and not in the root package.json. pnpm 10 reads overrides only from the workspace file, and the root pnpm.overrides block is ignored without a warning, as that file's header says. Each selector is bounded at the major boundary, following the block's selector-shape rule, and a dated note records the batch. The undici 7.x copy (7.30.1) stays: @objectstack/core declares ^7.30.1 and @ai-sdk/provider-utils pulls it. It is not flagged, and the card does not name it.

better-auth 1.7.29: plugin-auth adaptation (rulings 7340456975, 7343971547)

The changeset lists every client-visible change and every kept guarantee. In short:

  • Texted sign-in and reset codes are read under the vendor's renamed identifiers, so a password reset by texted code completes and codes texted before a credential change are ended (vendor-phone-code-identifiers.ts).
  • A blank invitation role or an empty role-list entry is still refused 400 ROLE_NOT_FOUND; the remove-member owner guard trims roles the way the vendor now does.
  • A locked account's address-change link is still refused, and the address does not move (change-email-link-lockout.ts).
  • An address-change link for an account with an enrolled second factor is refused 401 UNAUTHENTICATED, and the address does not move, unless the caller is signed in as that same account (change-email-link-second-factor.ts). A caller signed in as another account gets the same refusal. When enrollment cannot be read, including on a standalone manager with no data engine (read through the auth library's own account store), the link is refused.
  • Invitation listing follows better-auth 1.7.29: only a role that may create invitations may list an organization's invitations; an ordinary or external member gets 403 YOU_ARE_NOT_ALLOWED_TO_LIST_INVITATIONS, and get-full-organization shows them none. A member's own received invitations stay on list-user-invitations. Maintainer ruling recorded on deps: refresh five packages with available fixes (ws, fast-xml-parser, glob, cross-spawn, minimatch) #39068.
  • A blank invitation role is refused 400 ROLE_NOT_FOUND for bearer callers too (invite-role-not-found-code.ts now reads the caller through resolveActor).
  • Pins for upstream semantic changes (change-email verification rule, oauth code reuse after a ban, native plain-http redirect refusal) assert the new behaviour; no test was deleted and no wire error code changed.

It supersedes the open bumps #39029, #39028 and #38822 and answers #38840; the seat closes those after this lands.

Verification

  • pnpm --filter @objectstack/plugin-auth (vitest): 298 files, 6350 passed, 10 skipped. Typecheck exit 0.
  • Runtime auth/session/oauth set: 17 files, 196 passed.
  • Ablation: removing the second-factor refusal call turns exactly its 2 pins red; admitting any signed-in caller turns the 2 other-account pins red; dropping the no-engine enrollment read turns its 1 pin red.
  • At eaa7cf1: full @objectstack/plugin-auth suite 298 of 298 files passed (in thirds), typecheck exit 0, auth gate families exit 0.
  • At 551ad8e: the whole dogfood suite run locally in batches, 504 files, 0 failed (the merge-queue dogfood red at e75528a is fixed).
  • driver-odata, driver-turso, plugin-email, mcp, connector-mcp, @object-ui/cli, metadata: test and typecheck green.
  • dispatch-gates --commands: 93 derived, 90 run green, 3 NOT MEASURED locally (left to CI). check:vendor-version-stamps green after 2992d19.
  • pnpm audit: No known vulnerabilities found.

🤖 Generated with Claude Code

https://claude.ai/code/session_012dn2AfG9txpigxdt2zFADB

…etter-auth, undici, nodemailer and the MCP SDK

Raises the declared floors for fast-xml-parser, glob, nodemailer and
@modelcontextprotocol/sdk, floors the transitive ws, cross-spawn and
minimatch 11.x lines in pnpm-workspace.yaml's overrides, lifts the
better-auth family target 1.7.12 -> 1.7.29 (all eleven) and undici's 8.x
target to ^8.14.0. The temporary @better-auth/scim patch is regenerated
for 1.7.29, which still lacks the name recompose.

Claude-Session: https://claude.ai/code/session_012dn2AfG9txpigxdt2zFADB
Co-authored-by: Claude <noreply@anthropic.com>
The 1.7.29 lift reds 48 plugin-auth tests (session revocation,
verification and organization-role behaviour changed upstream), so it
moves to its own reviewed edit; the advisory fixes and the undici,
nodemailer and MCP SDK refresh stay.

Claude-Session: https://claude.ai/code/session_012dn2AfG9txpigxdt2zFADB
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/s dependencies Pull requests that update a dependency file 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 Dec 2, 2026
@github-actions

github-actions Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 7 package(s): @objectstack/connector-mcp, @objectstack/driver-odata, @objectstack/mcp, @objectstack/metadata, @objectstack/plugin-auth, @objectstack/plugin-email, @objectstack/runtime, touching 29 documentable anchor(s). ⚠️ 17 changed file(s) yielded no anchor (packages/connectors/connector-mcp/package.json, packages/drivers/driver-odata/package.json, packages/mcp/package.json, …), so the pages documenting them are NOT COVERED by this run — this is not a clean bill of health for those files.

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

  • content/docs/kernel/runtime-services/audit-service.mdx (via locked_until (literal, a string literal in refuseChangeEmailLinkForLockedAccount))
  • content/docs/permissions/sso.mdx (via oidcProvider (literal, a string literal in AUTH_ROUTE_LEDGER))
  • content/docs/permissions/system-context.mdx (via resolveActor (symbol, a method of interface ChangeEmailLinkSecondFactorHost))
  • content/docs/protocol/objectui/actions.mdx (via oidcProvider (literal, a string literal in AUTH_ROUTE_LEDGER))
What this run could not see
  • 17 changed file(s) yielded no anchor (packages/connectors/connector-mcp/package.json, packages/drivers/driver-odata/package.json, packages/mcp/package.json, …) — pages documenting those are invisible to this run
  • 1 anchor(s) matched too much of the corpus to be a work list: sys_user (literal, 60 pages)
  • 1 name(s) were too generic to anchor anything (single lowercase words)
  • the SDK route bridge reached 71 of 255 client-bound route-ledger rows — the other 184 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 184: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 60 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 — 61 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 a294369cbc7032b85818b4e79ab999af9e7be230 → packageMentionDocs.

Which tree this was computed on

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

node scripts/docs-audit/affected-docs.mjs --json a294369cbc7032b85818b4e79ab999af9e7be230

⚠️ 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 a294369cbc7032b85818b4e79ab999af9e7be230 → pass the list as
args.docs, on the commit named under Which tree this was computed on.

Reverts the hold-back: the maintainer chose to land the better-auth
1.7.29 lift together with the plugin-auth adaptation in this PR.

Claude-Session: https://claude.ai/code/session_012dn2AfG9txpigxdt2zFADB
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/m and removed size/s labels Dec 2, 2026
…e owner guard and keep the blank invitation role refused

Claude-Session: https://claude.ai/code/session_012dn2AfG9txpigxdt2zFADB
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added the tests label Dec 2, 2026
…number identifiers

Claude-Session: https://claude.ai/code/session_012dn2AfG9txpigxdt2zFADB
Co-authored-by: Claude <noreply@anthropic.com>
…nd follow better-auth 1.7.29's change-email semantics

Claude-Session: https://claude.ai/code/session_012dn2AfG9txpigxdt2zFADB
Co-authored-by: Claude <noreply@anthropic.com>
… better-auth 1.7.29 requires

Claude-Session: https://claude.ai/code/session_012dn2AfG9txpigxdt2zFADB
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/l and removed size/m labels Dec 2, 2026
…n the edited tests

Claude-Session: https://claude.ai/code/session_012dn2AfG9txpigxdt2zFADB
Co-authored-by: Claude <noreply@anthropic.com>
…eps on the auth doors

Claude-Session: https://claude.ai/code/session_012dn2AfG9txpigxdt2zFADB
Co-authored-by: Claude <noreply@anthropic.com>
…nd-factor account

better-auth 1.7.29 no longer signs anyone in from a change-email link, so
the two-factor sign-in challenge no longer answers it. Per the ruling, an
enrolled account's link opened with no session is refused in the before
hook with the existing 401 UNAUTHENTICATED and the address does not move.
Signed-in callers and accounts without a second factor keep the vendor's
link behaviour.

Claude-Session: https://claude.ai/code/session_012dn2AfG9txpigxdt2zFADB
Co-authored-by: Claude <noreply@anthropic.com>
…installed release

check:vendor-version-stamps turned red when the pin moved to 1.7.29: fifteen
comments stated a 1.7.12 reading in the present tense. Each is scoped with
"then-installed", which re-measures nothing and changes no claim.

Claude-Session: https://claude.ai/code/session_012dn2AfG9txpigxdt2zFADB
Co-authored-by: Claude <noreply@anthropic.com>
…t's own session

L1 review: the second-factor gate admitted any session, and returned when no
data engine was present. It now admits only a caller signed in as the account
the token is bound to; a caller signed in as another account gets the same
401 UNAUTHENTICATED. An absent engine refuses, the same as a failed read.

Claude-Session: https://claude.ai/code/session_012dn2AfG9txpigxdt2zFADB
Co-authored-by: Claude <noreply@anthropic.com>
…rking

Refusing when no data engine is present broke the supported AuthManager on
the vendor's own adapter (credential-change-ends-prior-access, 'the clock
and the sign-in readings need no data engine'): a plain account's link got
401. The absent-engine branch is restored pending a decision; the identity
check stays.

Claude-Session: https://claude.ai/code/session_012dn2AfG9txpigxdt2zFADB
Co-authored-by: Claude <noreply@anthropic.com>
…apter when no engine

Ruling A: a manager with no data engine reads the bound account's
twoFactorEnabled through internalAdapter.findUserById. An enrolled account's
link with no same-account session is refused 401 UNAUTHENTICATED, as is a
read that throws or finds no account. The engine-less plain account keeps
the vendor's link behaviour.

Claude-Session: https://claude.ai/code/session_012dn2AfG9txpigxdt2zFADB
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-bob · os-bob · session_012dn2AfG9txpigxdt2zFADB

维护者速读

ACCEPT — L1 at head e75528a6bbbdf4e83bf169f671cee7616cec6a23.

席位核对

  • Shape: dependency overrides in pnpm-workspace.yaml, the better-auth 1.7.29 adaptation in @objectstack/plugin-auth, regenerated scim patch, changesets. Not governed (check-governed-merges --pr: tier none). Clause-②: no, Metadata-protocol: none.
  • Premise measured: pnpm audit 0 advisories on the branch (7 on main before).
  • L1 rework read in the diff: the change-email second-factor gate admits only a session of the token's own account; with no data engine it reads enrollment through the auth library's account store; a read that fails or finds no account refuses. Maintainer rulings recorded on deps: refresh five packages with available fixes (ws, fast-xml-parser, glob, cross-spawn, minimatch) #39068.
  • Gates/check-runs at this head: 64 success, 13 expected skips, 0 failed. Dev's local runs: plugin-auth 298/298 files, typecheck 0, auth gate families 0.
  • Accepted deviations: none.
  • Out of scope: stale remote branch claude/issue-39068-deps-refresh-wip left for the maintainer to delete (branch deletes are refused to the seat).
  • Landing: K = 2 (< 15). After merge the seat closes the superseded dependency cards.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review December 2, 2026 14:54
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Dec 2, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Dec 2, 2026
@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

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

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

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

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

  • Dogfood Regression Gate (2/3) — 失败步骤: Boot example apps and exercise real user flows

    @objectstack/dogfood:test:  FAIL   isolated  test/external-member-directory.dogfood.test.ts > [#25233] an external organization member reads its own identity rows and its explicit grants only
      ↳ 失败原因: @objectstack/dogfood:test: Error: assertArmed(): this fixture is DISARMED: 1 of 6 control(s) it measures are not engaged on the booted stack, so its assertions would pass without testing anything.
    

↳ 失败原因 是判读的关键:超时(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,按失败测试文件聚合):

历史信号:

  • 本 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)

The merge-group dogfood run showed invitation-blank-role-refusal red: a
bearer caller's "member," got 200. The before-hook door read the session
with a bare getSessionFromCtx, which runs ahead of bearer()'s conversion
and misses every bearer caller; better-auth 1.7.29 then normalizes the
list to "member". The door now resolves the caller through the
hook-order-independent resolveActor; a bearer pin covers the lane.

Claude-Session: https://claude.ai/code/session_012dn2AfG9txpigxdt2zFADB
Co-authored-by: Claude <noreply@anthropic.com>
…on-listing rule

Ruling A: better-auth 1.7.29 lets only a role holding invitation:create list
an organization's invitations. The armed control measures the invitation
half as the owner; stage 2 expects an external's list-invitations to be
refused 403 YOU_ARE_NOT_ALLOWED_TO_LIST_INVITATIONS and get-full-organization
to answer it no invitations; a new pin keeps its own received invitations on
list-user-invitations. The changeset states the narrowing.

Claude-Session: https://claude.ai/code/session_012dn2AfG9txpigxdt2zFADB
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-bob · os-bob · session_012dn2AfG9txpigxdt2zFADB

维护者速读

  • 结论:合并队列退回的原因已修好,重新开启自动合并。
  • 用户能看到的变化:普通成员和外部成员不再能看到组织的待处理邀请列表(认证库新规则,维护者已裁定接受);本人收到的邀请照常可见。
  • 出错会怎样:单个 PR,可直接撤回。
  • 要你做什么:无。合并已由维护者在项目线程的决策卡上批准(2026-12-02 14:52 UTC)。

ACCEPT (delta) — L1 at head 551ad8ef1b73f7125987c023af98a491e29e0163, delta from e75528a6.

席位核对

  • Queue red at e75528a (run 46908102996, Dogfood Regression Gate 2/3): two causes, both read in the diff.
  • Changeset states the narrowing in rule form.
  • Check-runs at this head: 63 success, 11 expected skips, 0 failed. Dev's local runs: whole dogfood suite in batches, 504 files, 0 failed; plugin-auth 298/298 at eaa7cf1 (no plugin-auth source change since except the reviewed module, covered by its pin).
  • Out of scope: the app-shell Invitations page shows the refusal as a page error for members; the seat files a ui follow-up card.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file 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

Development

Successfully merging this pull request may close these issues.

deps: refresh five packages with available fixes (ws, fast-xml-parser, glob, cross-spawn, minimatch)

2 participants