Skip to content

docs(flows): name the tenancy posture where org:members has no organization - #33636

Merged
objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/project-thread-zrtqs0
Nov 15, 2026
Merged

objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/project-thread-zrtqs0

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Leehom · project thread

Fixes #33579

Clause-②: no
Metadata-protocol: none

Signed: domain:skills#1 · os-project-manager · session_01FEkQ5kkneJapg7yoXuPYnx

维护者速读

  • 改了什么:flows.mdx 中「org:members 找不到组织时谁也通知不到」一句改为按租户姿态分别说明:single 下谁也不通知、服务端日志告警、步骤成功;group 下通知写入被拒(ERR_SYSTEM_WRITE_ORGANIZATION_REQUIRED)、步骤失败;isolated 下这种定时流根本不会启用。补一句补救办法:声明流的执行组织。
  • 为什么改:原句只在 single 下成立;group 下作者按文档预期「静默成功」,实际会看到步骤失败。
  • 风险与回滚:纯文档一段文字,不碰任何包、不发布;回滚即还原该段。
  • 先看:content/docs/automation/flows.mdx 第 343–356 行这一段。
  • 两分钟验证:git diff origin/main -- content/docs/automation/flows.mdx,应只见这一段改动,三种姿态各一句。
  • 需要你做的:无,席位落地。

What changes

One paragraph of content/docs/automation/flows.mdx (§ notify recipients). The old sentence said that where a notification has no organization, org:members reaches nobody with a server-log warning. That holds under the single posture only. The paragraph now names the posture:

  • single: org:members reaches nobody, with a server-log warning, and the step succeeds.
  • group: the notification write itself is refused (ERR_SYSTEM_WRITE_ORGANIZATION_REQUIRED) and the step fails.
  • isolated: a schedule flow that declares no organization is never armed.
  • Remedy: declare the flow's acting organization (start-node config.organization), linked to the page's own #the-acting-organization section.

The "any other org: value is no selector and reaches nobody, with a warning" half is kept and is now stated on its own, since it does not depend on the posture.

Each claim, read on main @ 6e28797

Claim Code
The run with no organization is a schedule flow with no declared organization and no record packages/triggers/trigger-schedule/src/schedule-trigger.ts:552 (describeScheduleRunOwnership: a plain schedule flow sweeps no records, so under per-record ownership it carries none); packages/spec/src/automation/schedule-organization.zod.ts:49-54 (posture table)
The notify node passes the run's organization, else the record's, else none packages/services/service-automation/src/builtin/notify-node.ts:1213 (context.tenantId), :1230-1240 (organizationOfRecordAbout)
emit() writes the event row before it resolves the audience packages/services/service-messaging/src/messaging-service.ts:1398 (writeEvent), then :1419 (resolver.resolve with the producer's organizationId)
single: the event row is owned by the sole organization, the audience gets none, nobody is reached, warning logged, step succeeds packages/core/src/security/system-write-organization.ts:115-125 (derived at exactly one organization under single); messaging-service.ts:1419-1425 (resolver gets input.organizationId, 0 recipients warns and returns); packages/services/service-messaging/src/recipient-resolver.ts:232-239 (org:members with no organization warns, 0 recipients); notify-node.ts:1307 (success: true)
group: the write is refused and the step fails system-write-organization.ts:115 (any posture but single is refuse / walled-posture); schedule-organization.zod.ts:103-105 (a record-less undeclared run under group takes the walled-posture refusal at the write); notify-node.ts:1385-1394 (the catch returns success: false, notify failed: ERR_SYSTEM_WRITE_ORGANIZATION_REQUIRED: …)
isolated: such a flow is never armed schedule-trigger.ts:804 (policy.requiresActingOrganization && organization === null releases and throws at bind); schedule-organization.zod.ts:54

Agreement with PR #33577 (the skill twin)

PR #33577 (head 7cc0ff0) teaches in skills/objectstack-automation/SKILL.md: "else nobody (single posture: a schedule flow declaring no organization, no record). Any other org: value reaches nobody too. Each warns in the server log only; the node succeeds." This paragraph says the same for single, and adds group and isolated, which the skill line does not cover. No disagreement. If the server lane ever passes the resolver the organization stamped on the event row (the owned value at messaging-service.ts:1399-1401) instead of the producer's, both texts move together; the card names this.

Tests

Docs wording only: no package is touched, so no package test or typecheck is owed and no ablation applies.

Acceptance notes

None.

Verification

  • dispatch-gates --tier on the real diff: no path-derived mandate (the surface hits none of the declared globs); the tier stays the seat's per-card call.

  • check-governed-merges.mjs --branch HEAD: NOT governed, 0 of 1 path(s) hit the register; 14 changed lines, under the human-merge threshold.

  • skip-changeset: content/docs/** ships in no published package's files[].

  • Derived gates (dispatch-gates --commands), run on head c53ad15 after turbo run build --filter=@objectstack/lint... --filter=@objectstack/client-react... (exit 0): 43 derived, 43 run, all exit 0. dispatch-gates --ran: 43 accounted for, 0 NOT-MEASURED, 0 UNRUN.

43 gates, each with its exit code
node scripts/check-adr-links.mjs :: exit 0
node scripts/check-adr-links.mjs --self-test :: exit 0
node scripts/check-closing-keyword-parity.mjs :: exit 0
node scripts/check-closing-keyword-parity.mjs --self-test :: exit 0
node scripts/check-comment-mask-corpus.mjs :: exit 0
node scripts/check-doc-route-spelling.mjs --advisory :: exit 0
node scripts/check-doc-route-spelling.mjs --self-test :: exit 0
node scripts/check-docs-section-name.mjs :: exit 0
node scripts/check-docs-section-name.mjs --self-test :: exit 0
node scripts/check-section-landing-index.mjs :: exit 0
node scripts/check-section-landing-index.mjs --self-test :: exit 0
node scripts/ci/plan-test-core-shards.mjs --self-test :: exit 0
pnpm --filter @objectstack/lint run check:doc-formula-expressions :: exit 0
pnpm --filter @objectstack/lint run check:doc-security-posture :: exit 0
pnpm --filter @objectstack/spec run check:docs :: exit 0
pnpm --filter @objectstack/spec run check:empty-state :: exit 0
pnpm --filter @objectstack/spec run check:liveness :: exit 0
pnpm --filter @objectstack/spec run check:skill-examples :: exit 0
pnpm --filter @objectstack/spec run check:strictness-ledger :: exit 0
pnpm --filter @objectstack/spec run check:variant-docs :: exit 0
pnpm --filter @objectstack/spec run check:yaml-examples :: exit 0
pnpm check:ci-filter-parity :: exit 0
pnpm check:closed-ceremony-text :: exit 0
pnpm check:corpus-claim-drift :: exit 0
pnpm check:cross-package-test-inputs :: exit 0
pnpm check:doc-anchors :: exit 0
pnpm check:doc-authoring :: exit 0
pnpm check:doc-frontmatter :: exit 0
pnpm check:docs-audit-scope :: exit 0
pnpm check:docs-redirects :: exit 0
pnpm check:docs-single-h1 :: exit 0
pnpm check:docs-spec-enumerations :: exit 0
pnpm check:docs-transcript-drift :: exit 0
pnpm check:driver-memory-census :: exit 0
pnpm check:gitlink-declared :: exit 0
pnpm check:nul-bytes :: exit 0
pnpm check:published-readme-links :: exit 0
pnpm check:react-page-adapter-contract :: exit 0
pnpm check:refd-timer-probe :: exit 0
pnpm check:role-word :: exit 0
pnpm check:skill-identifier-liveness :: exit 0
pnpm check:vendor-version-stamps :: exit 0
pnpm check:watch-hint-literal :: exit 0
  • Every family CI runs beyond the derived list: read off this PR's check-runs.

Generated by Claude Code

…zation

Under single the notify reaches nobody with a server-log warning and the
step succeeds; under group the notification write is refused and the step
fails; under isolated such a schedule flow is never armed. Point at the
acting organization as the remedy.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEkQ5kkneJapg7yoXuPYnx
@objectstack-fleet objectstack-fleet Bot added the skip-changeset PR has no user-facing published change; bypasses the changeset gate label Nov 15, 2026
@github-actions github-actions Bot added size/s documentation Improvements or additions to documentation labels Nov 15, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb

席位核对

Verdict: ACCEPT, seat lands (ungoverned docs) · head c53ad150a31bf70e5c76d1fef025ee03b596ee6f · card #33579 · report 6888559618 · seat review at TIER_DEFAULT (this comment).

  • Shape: draft → main, Fixes #33579. content/docs/automation/flows.mdx only, +10/-4. skip-changeset (no published package). Clause-②: no; Metadata-protocol: none. check-governed-merges --branch: NOT governed; dispatch-gates --tier: no path-derived mandate.
  • Judgment: the org:members sentence now names the posture. Under single it reaches nobody with a server-log warning and the step succeeds; under group the notification's event-row write is refused (ERR_SYSTEM_WRITE_ORGANIZATION_REQUIRED) and the step fails; under isolated such a flow is never armed. The remedy links the page's own ### The acting organization section (anchor present at head). The "any other org: value reaches nobody" half is kept and still true. The postures agree with the at-tier record 6887230505 on PR docs(skills): notify selectors say when org:members reaches nobody and show the computed owner_of: form #33577, which read schedule-trigger.ts, messaging-service.ts emit(), notify-node.ts and schedule-organization.zod.ts for all three; the skill line in docs(skills): notify selectors say when org:members reaches nobody and show the computed owner_of: form #33577 says the same for single and is silent on the others, so the two do not disagree.
  • Gates: 43 derived, 43 exit 0. Check-runs on the head: 52, 30 success, 22 skipped, none failing or pending.
  • Deviation (accepted): the PR body's signature is a prose line rather than the HTML comment the standing lines name; os-dev.md governs.
  • Landing: pr_ready + automerge_enable in the same relay round.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 15, 2026 03:48
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 15, 2026
Merged via the queue into main with commit 78923aa Nov 15, 2026
53 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-zrtqs0 branch November 15, 2026 04:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/s skip-changeset PR has no user-facing published change; bypasses the changeset gate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs(flows): 'org:members reaches nobody' with no organization holds under the single posture only; under group the notify step fails

1 participant