Skip to content

fix(plugin-email): a host's own mail transport reads as in use on GET /api/settings/mail - #34731

Merged
os-zhuang merged 2 commits into
mainfrom
claude/project-thread-w0c5i8
Nov 17, 2026
Merged

os-zhuang merged 2 commits into
mainfrom
claude/project-thread-w0c5i8

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

Requested by Steve · project thread

Fixes #32799

Clause-②: yes (widening) — the served live entry of GET /api/settings/:namespace now also admits { value: null, source: 'environment' }; every entry served before is served unchanged
Metadata-protocol: none

维护者速读

  • 改了什么: 宿主交给 plugin-email 的自带投递方式(选项表叫不出名字,比如托管平台代发通道),现在在 GET /api/settings/mail 上报为 live.provider = { value: null, source: 'environment' },即「在用、来自运行环境、选项表叫不出名」。spec 只改 live 的说明文字(形状不变),service-settings 判定放行 environment + null 这一种组合。
  • 为什么改: 按裁决 C(6942903820)。托管环境邮件一直在发,但设置清单读不到,邮件行显示未完成。
  • 风险与回滚: 低。只多放行一种组合;settings + null、无选项表的键照旧丢弃;内置 smtp/resend/postmark 读数不变。回滚即 revert 本 PR。控制台 isMailDelivering 目前把 environment + null 读成未完成,要等 ui 跟进卡 console: isMailDelivering reads source 'environment' with a null value as not delivering, so the hosted setup checklist still does not tick after #32799 #34749 才会打勾。
  • 先看: packages/services/service-settings/src/settings-service.ts(judgeLiveValue 新增一行)、packages/plugins/plugin-email/src/live-transport-status.ts(新增一个分支)、packages/spec/src/system/settings-manifest.zod.ts(live 说明)。
  • 两分钟验证: pnpm --filter @objectstack/plugin-email exec vitest run src/live-transport-status.pin.test.ts,预期 21 个通过,其中「environment: the host's own transport …」一条读到 { value: null, source: 'environment' }。
  • 需要你做的: 待契约复审(L2)通过后,由席位请你批准这个 spec 面 PR。

What changes

  • @objectstack/spec — SettingsNamespacePayloadSchema.live: the docblock and the value/source describes now say a non-null value is one of the key's options, and value is null under 'none' (nothing in use) or 'environment' (in use, supplied by the boot environment or host, named by no option). In-use is read from source, never from value === null; 'settings' always names an option. Shape unchanged. Generated content/docs/references/system/settings-manifest.mdx regenerated.
  • @objectstack/service-settings — judgeLiveValue serves { value: null, source: 'environment' }. settings + null and any entry on a key with no option table stay dropped. SettingsLiveValue / SettingsLiveStatus.values docs follow.
  • @objectstack/plugin-email — describeLiveMailTransport states { value: null, source: 'environment' } for an environment-origin transport no provider option names (a plain IEmailTransport the host hands over). Stock transports read as before; a transport swapped in through setTransport is still not stated; a settings origin with no option is still not stated.
  • Root changeset .changeset/32799-host-mail-transport-live-environment.md (patch × 3).

Tests

  • packages/plugins/plugin-email/src/live-transport-status.pin.test.ts — changed existing test: "states nothing for a transport no option names, or one this plugin did not install" split in two. The host's-own-transport half now asserts { value: null, source: 'environment' } through the served door (real SettingsService + mail manifest, body parsed by SettingsNamespacePayloadSchema), as ruling C requires. The swapped-transport half keeps "not stated", plus a host-own transport swapped through setTransport. New unit pin: a no-option transport is stated only under environment (not settings, not without an origin).
  • packages/services/service-settings/src/settings-routes.live-status.pin.test.ts — new: environment + null served on the mail page with no warn; new drop row: a key with no option table as environment + null. The existing settings + null drop row is relabelled ("no value under source "settings"").
  • packages/spec/src/system/settings-manifest.test.ts — the payload parses environment + null.

Acceptance notes

Verification

At head 9e70d11b5a453c4a787655c649a0284c4f29f896 (merge base origin/main dc66d330); full report: card comment 6944198803.

  • Package suites under os-verify-lock: @objectstack/service-settings 76 files / 1516 passed; @objectstack/plugin-email 54 / 1025 passed; @objectstack/spec src/system 73 / 2577 passed.
  • Typecheck: spec, service-settings, plugin-email exit 0.
  • dispatch-gates --commands derives 117; --ran: 117 run, 0 NOT-MEASURED, 0 UNRUN.
Ablations (scripts/ablation-replace.mjs; each restored blob == HEAD, git diff HEAD empty)
  • Judge line if (source === 'environment' && value === null) … removed: service-settings pin 1 failed / 23 passed. The plugin-email pins resolve the service-settings dist built before the mutation, so no dist leg was taken there.
  • plugin-email branch else if (!option && origin === 'environment') … removed: plugin-email pin 2 failed / 19 passed (the unit pin and the served-door pin).
Gate re-runs

The first pass ran beside a locked build on a shared box. Four commands were non-zero and each passed when re-run: check-plugin-teardown-shape --self-test exited 3 until the pinned commit was fetched; spec check:generated and spec typecheck hit a tsc out-of-memory and passed alone; check:skill-examples and check:dual-build-cjs-loads exited 3 (no built dist) and passed after a turbo build of ./packages/**.

CI at this head: 68 check-runs, 58 success, 10 skipped, 0 failed.

… /api/settings/mail

A transport the host hands to plugin-email that no `provider` option names
(a plain IEmailTransport, such as a hosted platform's mail channel) left
`live.provider` unstated, so the first-run checklist could not read mail as
set up while it was delivered. It is now stated as
`{ value: null, source: 'environment' }`.

- spec: `SettingsNamespacePayloadSchema.live` documents that `value` is null
  under 'none' or 'environment' (in use, named by no option); in-use is read
  from `source`. Shape unchanged.
- service-settings: the live-value judge serves environment + null; settings
  + null and keys with no option table stay dropped.
- plugin-email: describeLiveMailTransport states environment + null for an
  environment-origin transport no option names.

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

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 3 package(s): @objectstack/plugin-email, @objectstack/service-settings, @objectstack/spec, touching 7 documentable anchor(s).

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

  • content/docs/data-modeling/drivers.mdx (via SettingsService (symbol, a top-level class))
  • content/docs/kernel/cluster.mdx (via SettingsService (symbol, a top-level class))
  • content/docs/protocol/kernel/config-resolution.mdx (via SettingsService (symbol, a top-level class))
  • content/docs/protocol/kernel/index.mdx (via SettingsService (symbol, a top-level class))
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 — 176 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 dc66d3308271f3055308c5c982ebc8d53195065f → packageMentionDocs.

Which tree this was computed on

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

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

⚠️ 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 dc66d3308271f3055308c5c982ebc8d53195065f → 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#2 · os-steve · session_01ADHkmRfW5u1LRmhWwaYHRp

Final head for review: 9e70d11b5a453c4a787655c649a0284c4f29f896. CI at this head is green: 72 check-runs, 60 success, 12 skipped, 0 failed. Card thread's os-dev-report is 6944198803 on #32799 (117 derived gate families, all run, 0 NOT-MEASURED; record objectstack-seat2/32799-gates-ran.txt). It touches packages/spec/src (Clause-②: yes (widening)), so it goes to L1 and to contract review, and the PR stays draft for the Tier H hand-off.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

l2-review#4 · os-steve · session_01ADHkmP44onN8RMzsPMqjRq

Contract-review-claim: session_01ADHkmP44onN8RMzsPMqjRq · head 9e70d11 · 2026-11-17T09:38Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-steve · session_01ADHkmTPcB6fZEwhd2hNQwC

席位核对

L1 verdict: ACCEPT · PR #34731 · card #32799 (Fixes) · first review · L1-c2 of seat repo:objectstack#2 · read 2026-11-17T09:41Z

Head-sha: 9e70d11b5a453c4a787655c649a0284c4f29f896 (the head of final-head comment 6944281272)

Read from GitHub and the diff at this head (merge base dc66d330), not from the report. 9 files, +110/−25.

Shape and ruling

  • The PR is a draft against main and opens with Fixes #32799, which is right because ruling C (6942903820) is implemented in full.
  • The ui half belongs to a separate card, by the ruling's own text ("另立 ui 卡改 isMailDelivering", seat analysis 6931556929).
  • The changeset is patch on the three touched published packages and carries Clause-②: yes (widening) and Metadata-protocol: none. With no Metadata-protocol kind and no narrowing, no Skills-docs: line is owed. git grep of skills/ also finds no page on live.provider or /api/settings/mail.

Code

  • judgeLiveValue adds exactly one admitted combination, source === 'environment' && value === null. It sits after the 'none' arm and before the option-table check. settings + null still drops ("not one of its options"). A key with no option table still drops earlier. No free text can ride the new arm, since value is null.
  • describeLiveMailTransport adds one branch, else if (!option && origin === 'environment'). A stock transport still states its option. A settings origin with no option, and no origin, still state nothing.
  • Spec. SettingsNamespacePayloadSchema.live changes only its docblock and the two .describe() strings. The zod shape (string().nullable(), the three-value enum) is unchanged, so every payload served before still parses. The generated settings-manifest.mdx rows equal the new describes byte for byte.

Pins. The changed existing test is split exactly as the body says.

  • The host's own transport now asserts live = { provider: { value: null, source: 'environment' } } through the served door, with the banner unchanged.
  • The swapped-transport half keeps "not stated", plus a host transport swapped through setTransport.
  • A new unit pin covers environment only, not settings, and not with no origin.
  • service-settings pins the served environment + null with no warn, and drops it on a key with no option table.
  • The spec test parses environment + null.
  • The ablations (judge line 1/24 red, plugin branch 2/21 red) are lane-reported, and I did not re-run them.

Prose. I checked the changeset sentence by sentence against the diff. "settings with a null value is still dropped, and so is any entry on a key with no option table" and "A transport swapped in through EmailService.setTransport is still not stated" both match the code and pins. "A reader that took value === null to mean 'nothing is in use' should read source instead" is the widening's one reader-facing duty.

Consumer read (not a REWORK item; the ruling assigns it). Two in-repo readers still hold the old meaning:

  • ui/apps/console/src/pages/settings/types.ts documents "null exactly when source is 'none'".
  • firstRunChecklistLogic.ts isMailDelivering reads environment + null as not delivering.

On the managed profile the mail row stays hidden while not delivering, so nothing new shows there. On a self-hosted deployment with a host transport class, the row reads "not set up" until the ui card lands. Before this PR, such a deployment fell back to isMailConfigured(values). The row is optional (OPTIONAL_ROWS), so it holds nothing open. The body says the seat files the ui card. Its number belongs in the body before landing.

Gates: 76 check-runs on this head, all completed: 62 success, 14 skipped, 0 failed. That includes the re-runs of Check Changeset and PR-body guards after the 09:37Z body edit. The lane reports: package suites green (service-settings 1516, plugin-email 1025, spec src/system 2577), typecheck 0, and dispatch-gates --ran 117 run, 0 NOT MEASURED.

L2 owed: yes. It touches packages/spec/src (the .describe() text is shipped bytes) and declares Clause-②: yes, so CONTRACT_REVIEW_TIER is owed over the spec hit plus the code that implements it, through this account's review seat. The lane reports it sent.

Landing tier: NOT governed, +110/−25 = 135 lines. It touches packages/spec/src, so under the seat's 03:21Z order it lands Tier H via the seat and stays draft.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

l2-review#4 · os-steve · session_01ADHkmP44onN8RMzsPMqjRq

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 9e70d11b5a453c4a787655c649a0284c4f29f896
Local-runs: none
Scope: packages/spec/src/system/settings-manifest.zod.ts + packages/services/service-settings/src/settings-service.ts, packages/services/service-settings/src/settings-service.types.ts, packages/plugins/plugin-email/src/live-transport-status.ts

Inputs read: card #32799 body and all 14 comments (ruling 6942903820 = C, seat analysis 6931556929, cloud confirm 6918167282, dev report 6944198803); PR #34731 body and its 9-file net diff against merge base dc66d330; the check-runs on the head. Check-runs: 76 listed, no failure, no cancellation; every derived family (Lint and Repo Gates, TypeScript Type Check, Type Check UI, Test Core, Test UI, Build Core, Build Docs, Spec property liveness, Governed Surface Queue Guard, PR-body guards) concluded success, the rest skipped by design. Check Changeset concluded success twice on this head; a third run of it, started after a PR-body edit, was still in progress when read and is reported as pending, not as a verdict.

① Derived judgments

  • Zod shape of SettingsNamespacePayloadSchema.live: unchanged. The diff moves only the docblock and the two .describe() strings; value stays z.string().nullable() (re-flowed over three lines, same chain), source stays z.enum(['settings', 'environment', 'none']), the record and .optional() are untouched. The schema's accept set is identical before and after: { value: null, source: 'environment' } already parsed on main (the new spec test only pins that). Right.
  • Served set of GET /api/settings/:namespace (judgeLiveValue): grows by exactly one combination, value === null with source === 'environment', on a key the namespace declares and that has an option table. Read line by line at head: the key check and the no-option-table check still run first (so openai_model with environment and null is still dropped, pinned); the source must be in the closed set; none is judged before the new line and is unchanged; the new line is a strict source === 'environment' && value === null; everything else falls to the unchanged typeof value !== 'string' || table.judge(value) !== null drop. So settings with null is still dropped (pinned), undefined is still dropped, an empty string is judged against the option table exactly as before, and a null carries no text, so the no-credential rule holds. Nothing accepted before is refused now; nothing beyond the one combination is newly accepted. Right.
  • describeLiveMailTransport (plugin-email): emits the combination only when isConfigured() is true (live transport is not a LogTransport), no stock class names the transport (providerOptionOf is undefined), and the origin is environment. In email-plugin.ts (read, not in the diff) the origin is environment only for the transport installed at init and only while service.options.transport is still that same object; a swap through setTransport yields no origin and stays not stated (pinned both for a stock and a host transport). With no live delivery the function returns none before reaching the branch, so a false "in use" cannot be emitted from a log transport. Stock transports read as before (the first arm is untouched). Right.
  • Describes, docblock and service-settings jsdoc against ruling C: the ruling admits one reading, "in use, provided by the environment" as environment with an empty provider, with in-use read from source (seat analysis 6931556929, option C). The value describe, the source describe ("its own boot environment or host"), the live docblock, SettingsLiveValue and SettingsLiveStatus.values all state that and nothing wider; each says settings always names an option. Right.
  • content/docs/references/system/settings-manifest.mdx: the two regenerated cells are the two describe strings verbatim; the live row itself is unchanged, as its describe is. Consistent (generated output, checked for agreement only).
  • Public type surface: LiveMailProviderValue and SettingsLiveValue keep their types; only prose moves. Right.

② Semver level

Clause-②: yes (widening) — correct, and the same line stands on the PR body and in the changeset body. The schema's accept set does not move; what widens is the set the settings route serves (one more live entry) and with it the meaning a reader of value: null must handle. Nothing is taken away, so (narrowing) does not apply. Metadata-protocol: none is correct: live is a served runtime statement, not something a metadata author writes. By AGENTS.md Post-Task Checklist 3, kind none takes patch and a non-protocol widening ships patch: @objectstack/spec patch (published describes change), @objectstack/service-settings patch, @objectstack/plugin-email patch all match what the diff publishes. The changeset body carries the reader's prescription (read source, never value === null). Check Changeset success on this head (latest re-run pending, see above).

③ Boundary flags

  • Dev open_questions (6944198803): "Contract review owed" — answered by this record.
  • Dev deviation, forced test change (the plugin-email pin split in two, the host-own half now asserting the new entry): required by ruling C; the not-stated half is kept and extended. Accepted.
  • Dev deviation, (widening) arm added to the claim's bare Clause-②: yes: same declaration, arm judged correct in ②. Accepted.
  • Dev out-of-scope finding (console isMailDelivering reads environment with null as not done; ui/apps/console/src/pages/settings/types.ts still says "null exactly when source is none"): the ui half is outside this claim by the ruling's own execution line ("另立 ui 卡"); the PR body names the follow-up as console: isMailDelivering reads source 'environment' with a null value as not delivering, so the hosted setup checklist still does not tick after #32799 #34749 (named there, not read here — outside this brief's inputs). Consumer read on main, see ④.
  • SQL push-down: not applicable. The diff adds no query, no id materialisation and no in-app join; it is one in-memory branch in a judge and one in a describer.

④ Design judgment

packages/spec/src/system/settings-manifest.zod.ts — holds against ruling C and against its first consumer. The text says exactly what the judge serves and what plugin-email emits; the "non-null value is always one of the key's options, never a credential" sentence stays true because the null arm bypasses the option table only for null. The settings-always-names-an-option sentence is a served-door guarantee (the judge), not a parse-time one, the same standing the existing "no value under none" rule has; the ruling asked for an unchanged shape, so no refinement is owed.

settings-service.ts / settings-service.types.ts — agree with the contract sentence by sentence (see ①). Tried: null under settings, null under none with a value, undefined, empty string, a key without an option table, a key outside the namespace, a source outside the set; each lands where it did on main.

live-transport-status.ts — agrees. Tried: log transport (reads none), stock transport from boot (option with environment), host transport then a settings save (stock with settings), host transport then a failed save (keepPreviousTransport keeps an environment origin, and the host transport is in fact still delivering, so the statement is true), host transport swapped by another caller (not stated). The cloud case of 6918167282 (a plain IEmailTransport as the constructor default) is the pinned served-door test.

Consumers of live on main: only the console, ui/apps/console/src/pages/settings/firstRunChecklistLogic.ts (isMailDelivering, aiProviderState) and FirstRunChecklist.tsx. Neither crashes: the type was already string | null and both guard with typeof value === 'string'; Type Check UI and Test UI are green on the head. Effect of this PR alone on the mail row: before, the absent statement fell back to isMailConfigured(values); now the stated entry reads not done. On a hosted environment both read not delivering and the managed profile keeps the row hidden, so nothing visible changes until the ui card lands; the checklist does not tick yet, which the PR body states.

No must-fix, no should-fix.

  • N1 (nit) — one edge moves the wrong way until the ui follow-up: a deployment on a host-own transport whose saved mail values satisfy isMailConfigured but could not be built (the previous transport is kept) read done through the fallback and now reads not done. Optional row, rare state, closed by the ui follow-up the PR names. Left as a follow-up; no change on this head.
  • N2 (nit) — aiProviderState maps environment with null to { done: false, source: 'none' }, which contradicts the new "read in-use from source" rule. No runtime emits that entry for ai today, so nothing is misread now. The ui follow-up should cover aiProviderState and the types.ts doc as well as isMailDelivering. Left as a follow-up; no change on this head.

Implemented-by: claude/project-thread-w0c5i8
Reviewed-by: session_01ADHkmP44onN8RMzsPMqjRq

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-steve · session_01ADHkmQ2SN4K183oqAvUajA

Seat record · 2026-11-17T09:45Z · Head-sha: 9e70d11

维护者速读

  • 改了什么:宿主自己交给 plugin-email 的投递方式(选项表里没有名字,比如托管平台代发通道),现在在 GET /api/settings/mail 上报为「在用、来自运行环境、选项表叫不出名」({ value: null, source: 'environment' })。spec 只改 live 的说明文字,形状不变;service-settings 只多放行这一种组合。
  • 为什么改:执行你对 plugin-email: GET /api/settings/mail serves no live.provider, so the hosted platform mail channel cannot read as configured (#32643 item 1, cloud#4386) #32799 的裁决 C(6942903820)。托管环境的邮件一直在发,但设置读不到,首次设置清单的邮件行显示未完成。
  • 风险与回滚:低。只多放行一种组合;settings + null 和没有选项表的键照旧丢弃;内置 smtp/resend/postmark 读数不变。控制台要等 ui 跟进卡 console: isMailDelivering reads source 'environment' with a null value as not delivering, so the hosted setup checklist still does not tick after #32799 #34749 才会把这一行打勾(在那之前「已保存但没建成」的少见状态会从「已完成」变「未完成」)。回滚即撤回本 PR。
  • 先看:packages/services/service-settings/src/settings-service.ts(judgeLiveValue 新增一行)、packages/plugins/plugin-email/src/live-transport-status.ts(新增一个分支)、packages/spec/src/system/settings-manifest.zod.ts(live 说明)。
  • 两分钟验证:pnpm --filter @objectstack/plugin-email exec vitest run src/live-transport-status.pin.test.ts,预期 21 个通过,其中 environment 那条读到 { value: null, source: 'environment' }。
  • 需要你做的:用 os-zhuang 审读并批准(spec 面,按 Tier H 交人)。契约复审 PASS 6944385903,钉在 Head-sha 9e70d11b5a453c4a787655c649a0284c4f29f896。批准在案后由席位翻 ready,经合并队列落地。

席位意见:同意合并。改动严格落在裁决 C 的一种组合上,放宽而不收窄;控制台半边已立 #34749,复审的两个 nit 已补进该卡。

席位核对

  1. 形态:9 个文件,+110/−25,Fixes #32799;Clause-②: yes (widening),Metadata-protocol: none;根 .changeset/ 三包 patch。spec 面 ⇒ 按 Tier H 交人。
  2. 前提实测:复审在 head 逐行读 judgeLiveValue:键检查与无选项表检查先跑,新行只放 environment && null,其余照旧丢弃;schema 接受集前后一致。
  3. 门禁 check-runs:head 9e70d11b 上 76 条,62 绿、14 跳、0 红;区报 dispatch-gates --ran 117 条全跑、0 未测。
  4. 接受的偏差:L1-c2 ACCEPT 6944374652;契约复审 PASS 6944385903,无 must-fix/should-fix;dev 拆分一条既有测试为裁决所需,已接受。
  5. 范围外去向:控制台 isMailDelivering、types.ts 说明与 aiProviderState 归 console: isMailDelivering reads source 'environment' with a null value as not delivering, so the hosted setup checklist still does not tick after #32799 #34749(p2,domain:ui,Blocked-by plugin-email: GET /api/settings/mail serves no live.provider, so the hosted platform mail channel cannot read as configured (#32643 item 1, cloud#4386) #32799);N1、N2 已补卡上。Skills-docs: 不欠(协议种类 none)。
  6. 落地条款:os-zhuang 授权批准在案后,席位翻 ready,经合并队列落地;合并即关 plugin-email: GET /api/settings/mail serves no live.provider, so the hosted platform mail channel cannot read as configured (#32643 item 1, cloud#4386) #32799,console: isMailDelivering reads source 'environment' with a null value as not delivering, so the hosted setup checklist still does not tick after #32799 #34749 随之解锁。

@objectstack-fleet objectstack-fleet Bot added the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 17, 2026
@os-zhuang
os-zhuang marked this pull request as ready for review November 17, 2026 10:22
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 17, 2026
@github-actions

Copy link
Copy Markdown
Contributor

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

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

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

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

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

    @objectstack/runtime:test:  FAIL   local  src/domains/meta-disabled-holder-artifact-door.test.ts > [#34040 item 4] the bare doc doors beside two enabled holders of one doc name, 'alpha registered firs
      ↳ 失败原因: @objectstack/runtime:test: AssertionError: {"type":"doc","name":"shared_doc","code":{"name":"shared_doc","label":"alpha doc","content":"# alpha","_packageId":"com.qa.alpha","_packageVersion":"1.0.0","
    @objectstack/runtime:test:  FAIL   local  src/domains/meta-disabled-holder-artifact-door.test.ts > [#34040 item 4] the bare doc doors beside two enabled holders of one doc name, 'beta registered first
      ↳ 失败原因: @objectstack/runtime:test: AssertionError: {"type":"doc","name":"shared_doc","code":{"name":"shared_doc","label":"beta doc","content":"# beta","_packageId":"com.qa.beta","_packageVersion":"1.0.0","_pr
    

↳ 失败原因 是判读的关键:超时(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 队列共有 18 个失败构建(不含本次)。

分诊清单:

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

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

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 protocol:system size/m 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.

plugin-email: GET /api/settings/mail serves no live.provider, so the hosted platform mail channel cannot read as configured (#32643 item 1, cloud#4386)

3 participants