Repository navigation
docs(flows): name the tenancy posture where org:members has no organization - #33636
Merged
Merged
Conversation
…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
Contributor
Author
|
domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb 席位核对Verdict: ACCEPT, seat lands (ungoverned docs) · head
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:membersreaches nobody with a server-log warning. That holds under thesingleposture only. The paragraph now names the posture:single:org:membersreaches 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: ascheduleflow that declares noorganizationis never armed.config.organization), linked to the page's own#the-acting-organizationsection.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@ 6e28797scheduleflow with no declaredorganizationand no recordpackages/triggers/trigger-schedule/src/schedule-trigger.ts:552(describeScheduleRunOwnership: a plainscheduleflow sweeps no records, so under per-record ownership it carries none);packages/spec/src/automation/schedule-organization.zod.ts:49-54(posture table)packages/services/service-automation/src/builtin/notify-node.ts:1213(context.tenantId),:1230-1240(organizationOfRecordAbout)emit()writes the event row before it resolves the audiencepackages/services/service-messaging/src/messaging-service.ts:1398(writeEvent), then:1419(resolver.resolvewith the producer'sorganizationId)single: the event row is owned by the sole organization, the audience gets none, nobody is reached, warning logged, step succeedspackages/core/src/security/system-write-organization.ts:115-125(derivedat exactly one organization undersingle);messaging-service.ts:1419-1425(resolver getsinput.organizationId, 0 recipients warns and returns);packages/services/service-messaging/src/recipient-resolver.ts:232-239(org:memberswith no organization warns, 0 recipients);notify-node.ts:1307(success: true)group: the write is refused and the step failssystem-write-organization.ts:115(any posture butsingleisrefuse/walled-posture);schedule-organization.zod.ts:103-105(a record-less undeclared run undergrouptakes thewalled-posturerefusal at the write);notify-node.ts:1385-1394(the catch returnssuccess: false,notify failed: ERR_SYSTEM_WRITE_ORGANIZATION_REQUIRED: …)isolated: such a flow is never armedschedule-trigger.ts:804(policy.requiresActingOrganization && organization === nullreleases and throws at bind);schedule-organization.zod.ts:54Agreement with PR #33577 (the skill twin)
PR #33577 (head 7cc0ff0) teaches in
skills/objectstack-automation/SKILL.md: "else nobody (singleposture: ascheduleflow declaring noorganization, no record). Any otherorg:value reaches nobody too. Each warns in the server log only; the node succeeds." This paragraph says the same forsingle, and addsgroupandisolated, which the skill line does not cover. No disagreement. If the server lane ever passes the resolver the organization stamped on the event row (theownedvalue atmessaging-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 --tieron 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'sfiles[].Derived gates (
dispatch-gates --commands), run on head c53ad15 afterturbo 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
Generated by Claude Code