Skip to content

docs(skills): notify selectors say when org:members reaches nobody and show the computed owner_of: form - #33577

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

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

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

Requested by Leehom · project thread

Fixes #32961

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

Clause-②: no
Metadata-protocol: none

维护者速读

  • 改了什么:objectstack-automation 技能 § notify 的两条受众选择器各补一句:org:members 在 single 形态下既无运行组织、也无通知所指记录时谁也收不到(例:开始节点未声明 organization、无记录的 schedule 流程),只在服务器日志告警,节点照样成功;owner_of:OBJECT:ID 给出流程真正要写的形式,用表达式拼出 id(source: "'owner_of:crm_case:' + record.case_id")。
  • 为什么改:PR docs(skills): objectstack-automation teaches the notify audience selectors, org:members included #32841 的契约复审留下两条 should-fix(S1、S2);照旧技能写出的通知会静默送达零人,或要 AI 自己推导 owner_of: 的可用写法。flows.mdx 早已写明前一条。
  • 风险与回滚:纯技能文字,不动 schema 与运行时;token 6857 到 6859(上限 6861,未抬上限),新增由同文件四处复述删减付账;回滚即还原本 PR。
  • 先看:skills/objectstack-automation/SKILL.md 第 132–133 行(两条选择器);再看第 108 行与 Assignment rules、Who may START 两处删去的 ADR 旁注。
  • 两分钟验证:node scripts/check-skills-token-ratchet.mjs,预期 exit 0、objectstack-automation/SKILL.md is 6859 tokens (ceiling 6861; headroom 2)。
  • 需要你做的:受管面 Tier H(skills/**):请批准或合并。

What changes

  • skills/objectstack-automation/SKILL.md § notify, the org:members line (card Part 1, review S1). It now ends "else nobody (single posture: a schedule flow declaring no organization, no record)", says any other org: value reaches nobody too, and says where the warning goes and what the node does: "Each warns in the server log only; the node succeeds." This also answers review nit N1 ("with a warning" did not say where).
  • The owner_of:OBJECT:ID line (card Part 2, review S2). It now shows the computed form once: source: "'owner_of:crm_case:' + record.case_id".
  • Paid in the same file (headroom was 4 tokens; the card carries no maintainer words ordering a raise, so no ceiling moved):
    • § notify lead: "NotifyConfigSchema is strictObject —" before "an undeclared key is a named parse error", which says the same thing in the words an author acts on.
    • Three ADR asides that teach nothing an author writes: "(ADR-0066 D4)" on Who may START a flow, "(ADR-0142 D5)" in Assignment rules, "(ADR-0150 D3)" on A packaged rule's queue. The section headings and anchors are unchanged ("(ADR-0041 Tier 1)" in the Inbound webhook heading stays, so no anchor moves).
    • Silently-wrong item 3: "Data-lifecycle side effects (read/write other records) are an L2 hook (objectstack-data)." Its homes: the same item's bold lead ("A flow function is a PURE compute step — it does NOT read/write the database") with "a later declarative node persists it", and the skill's own description ("Do not use for data lifecycle hooks at the object layer (see objectstack-data)"). Eval case 5 (the script case) expects pure compute and a following update_record, both still taught.
    • Two re-wraps (the § notify lead and the Who may START callout) only re-flow lines the cuts shortened; they are not counted as payment.
  • .changeset/32961-notify-org-members-nobody-owner-of-form.md: '@objectstack/skills': patch, both declaration lines.

Why

Part 1 re-measured on origin/main 03dc626, not taken from the card:

  • A schedule run can carry no organization. packages/triggers/trigger-schedule/src/schedule-trigger.ts:803 reads the binding's organization; :886 spreads tenantId only when it is not null (the ruling-G single posture, comment :868-885).
  • The notify node passes the run's organization, else the record's. packages/services/service-automation/src/builtin/notify-node.ts:1213 (context.tenantId), :1230-1239 (organizationOfRecordAbout: the click-through record, else the trigger record). No record and no tenantId leaves it undefined.
  • The resolver reads the producer's organization. packages/services/service-messaging/src/messaging-service.ts:1419-1420 passes input.organizationId, not the organization the engine stamps on the event row (:1400-1402).
  • No organization: a server-log warning and nobody. packages/services/service-messaging/src/recipient-resolver.ts:233-239 warns "this emit names no organization; 0 recipients" and returns []; any other org: value warns at :173-175.
  • The node still succeeds. notify-node.ts:1307 returns success: true with delivered: 0; deliveryFailureWarning (:99-103) adds a step warning only for a failed delivery, so the run history shows none.
  • Docs agree. content/docs/automation/flows.mdx:346-349: "where there is none, org:members reaches nobody … each with a warning in the server log".

Part 2: the owner_of: string is a recipient "written or evaluated" (the line above the list), so an envelope that evaluates to 'owner_of:crm_case:ID' reaches that record's owner; the review record 6836991260 read the same path.

Acceptance notes

  • Round 2 (head 7cc0ff03, review record 6887230505 should-fix): the case is named as the single posture. Under group the sys_notification write in emit() is refused (ERR_SYSTEM_WRITE_ORGANIZATION_REQUIRED) before the audience is resolved and the node returns success: false (notify-node.ts:1385-1394); under isolated an undeclared schedule flow never binds. The remedy is named by spelling the start-node key organization (SCHEDULE_ORGANIZATION_KEY, packages/spec/src/automation/schedule-organization.zod.ts:159), +20 bytes inside the headroom. Nit not taken (no budget): the { dialect: 'cel' } wrapper on the owner_of: example; item 1 and the notify fence already show the envelope.
  • Part 1 is taught, not changed (order ruling). One reading for the owning lane, not filed here: in the single posture the engine stamps the sole organization on the sys_notification row (messaging-service.ts:1400-1402), yet the resolver is handed the producer's (:1419-1420, comment "The organization is the producer's, as role: has always read it"), so org:members reaches nobody where the deployment's one organization is known. The comment states this as intended, so it is reported to the seat as an observation, not as a defect.
  • Review nit N2 not taken: the fence comment "An envelope must yield USER ids" still sits above the selector list; the list's "written or evaluated" is the more specific line, and the fence is an os:check block (left untouched).
  • No eval changed: skills/objectstack-automation/evals/*.json hold no assertion on these two lines or on the cut phrases (git grep of each cut phrase over skills, packages, scripts, content, .claude: no test, script or eval pins one).

Verification

Round 1 head d9a512bb; round 2 head 7cc0ff03 reran the same 46 derived families plus check:skill-refs and check:skill-examples with the same result (45 exit 0, check:dual-build-cjs-loads exit 3 NOT MEASURED; record 32961-gates-ran-r2.txt). Base origin/main 03dc626 (origin/main later moved to a9da547 with no commit touching skills/objectstack-automation or the ratchet script).

Line and token budget (skills/**)
  • skills/objectstack-automation/SKILL.md: 467 to 463 lines, 27447 to 27455 bytes; token ratchet 6857 to 6859 (ceiling 6861, headroom 2). The first wording with only the strictObject clause and the ADR asides cut measured 14 tokens over; the item 3 pointer cut paid the rest.
  • Whole package, all skills/*/SKILL.md: 4597 to 4593 lines, about 59056 to 59053 tokens (ceil(bytes/4) per file).
  • node scripts/pm/check-skill-line-ratchet.mjs: exit 0. node scripts/check-skills-token-ratchet.mjs: exit 0.
Derived gates

node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack derived 46 families for the two paths. Each was run on head d9a512bb with its exit code captured before any pipe, after building @objectstack/lint..., @objectstack/client-react... and @objectstack/formula under the verify lock (VERDICT command-exit 0, 356s):

  • 45 exit 0, among them check-skills-token-ratchet (scan and --self-test), check-empty-changeset (scan and --self-test), check-changeset-no-major, check-adr-0087-registration, @objectstack/lint check:doc-formula-expressions, @objectstack/spec check:skill-docs, check:doc-authoring, check:nul-bytes, check:pm-governed-merges, check:published-files, check:role-word, check:skill-compatibility, check:skill-frame-sync, check:skill-identifier-liveness, check:skill-links, check:dts-closure, check:lean-entry-closure, check:sourcemap-no-sources-content.
  • NOT MEASURED, exit 3 PREREQUISITE NOT MET: check:dual-build-cjs-loads (reads every package's dist/; no package source is touched; CI builds and runs it).
  • Outside the derivation, run because the order names them or the file holds os:check blocks: @objectstack/spec check:skill-refs exit 0 ("9 generated files in sync"), @objectstack/spec check:skill-examples exit 0 ("345 prose examples type-check").
  • --ran reconciliation: "46 derived famil(ies) accounted for — 45 run, 1 NOT-MEASURED (1 DERIVED from a recorded exit 3)".
  • CI families are read from this PR's check-runs, not re-run here.
Tier and governed readings
  • dispatch-gates --tier: MANDATORY contract-review tier, skills/** under clause ① (the published catalog); no one-line exit for this surface. This thread ran at the claim's default model; the seat's at-tier contract review is the owed record.
  • node scripts/pm/check-governed-merges.mjs --branch claude/project-thread-j1oabg: GOVERNED, a human merge is the review record (Tier H). 1 of 2 paths hits the register (skills/**); the changeset is not on it. Size +21 / -15, under the 3000 threshold.

🤖 Generated with Claude Code

https://claude.ai/code/session_01FEkQ5m6cFuoP5TBSv16TZ4

…d show the computed owner_of: form

Paid in the same file: a strictObject restatement, three ADR asides and
the side-effects pointer the skill description already carries.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEkQ5m6cFuoP5TBSv16TZ4
@github-actions github-actions Bot added size/s 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 Nov 15, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: d9a512bb7d54cd5bb1f2eaa21a56e973bd594a28
Local-runs: none
Scope: skills/objectstack-automation/SKILL.md + none

PR #33577, card #32961. Read: the card body and its three comments (unblock, claim, os-dev-report), the PR body, the two-file diff of the head against its parent 03dc62673e2, and the head's check-runs. The cited code was read in the head's tree; main has no later commit on the skill file, recipient-resolver.ts, messaging-service.ts, notify-node.ts, schedule-trigger.ts or flows.mdx. The changeset is the lane seat's ACCEPT at TIER_DEFAULT.

Check-runs at the time of writing: every completed run is success or skipped, among them Check Changeset, Governed Surface Queue Guard, Check PR Size, PR-body guards, Lint · docs & code guards, Lint · repo & tooling gates, Lint · CI, release & engine gates, Lint · PM dispatch-gates, Lint · ESLint, Type Check · workspace, Type Check · source gates, Type Check · debt ledger, Build Core. Still in progress, so NOT yet a verdict: Test Core (1/8), Test Core (2/8), Type Check · consumer gates. The seat reads those three before it adopts this record; a prose-only diff gives them nothing to fail on, but they are not answered here.

① Derived judgments

  • Accept-set: unchanged. No schema, validator, gate or runtime file is in the diff. Right.
  • Public surface: the published skill text of @objectstack/skills changes in one file, 11 lines added and 15 removed. Right.
  • Token ceiling: not moved (6861); the file goes 6857 to 6854 by the PR's account, and the ratchet's check-run family is green. Right.
  • No anchor moves: the three removed ADR asides sit in a callout lead, a paragraph and a bold lead, not in a heading. Right.
  • No eval pins a cut phrase or the two changed lines: eval 22 (org:members) asserts only notify and recipients: 'org:members'. Right.

② Semver level

.changeset/32961-notify-org-members-nobody-owner-of-form.md declares '@objectstack/skills': patch: a prose correction to a published skill, no behaviour published. Right level. Clause-②: no and Metadata-protocol: none on the PR body and the changeset agree with a diff that narrows and widens nothing.

③ Boundary flags

  • Tier deviation (the thread ran at the claim's default model): answered by this record.
  • Signature as a prose line, no assignees, model-free co-author pair, check:skill-examples and check:skill-refs run outside the derivation: process choices with no effect on the contract; none escalated.
  • open_questions: empty.
  • The dev's observation (single posture: the resolver is handed the producer's organization at messaging-service.ts 1419 to 1421, not the one the engine stamps on the event row at 1400 to 1402). It matters to what the skill now teaches, in one way only: the new clause is true under single BECAUSE of that read. A schedule flow declaring no organization emits with none, the engine stamps the sole organization on sys_notification, and resolveOrganizationMembers still sees none and returns nobody. The code comment states the read as intended, so it is no defect of this PR. If the server lane ever hands the resolver the stamped organization, this skill line and flows.mdx 346 to 349 become false together and must move in the same change. Carrier: the seat's, as the dev reported it.

④ Design judgment

skills/objectstack-automation/SKILL.md, judged against the card's two parts and the code.

Holds:

  • org:members with no organization reaches nobody and warns in the server log: recipient-resolver.ts resolveOrganizationMembers warns and returns an empty list; the notify node passes context.tenantId, else organizationOfRecordAbout (the click-through record, else the trigger record).
  • Any other org: value reaches nobody with a server-log warning: resolveOne, the ORGANIZATION_AUDIENCE_PREFIX branch.
  • "Server log only": the step warning (deliveryFailureWarning) fires only when a delivery failed, so a zero-recipient emit leaves none on the run; the run shows selected with acted: 0.
  • schedule-trigger.ts omits tenantId when the binding declares no organization, reachable only where the posture does not require one.
  • The envelope source: "'owner_of:crm_case:' + record.case_id" is what the engine evaluates: CEL + over two texts concatenates (cel-engine.ts), the evaluated string is a recipient, mailedAddressOf treats owner_of: as a selector so the address screen does not refuse it, and the resolver splits on the first two colons. The fence directly above shows the envelope shape the source: sits in.
  • The cuts: the strictObject clause restated the sentence kept beside it; the three ADR asides carried no rule; the removed pointer "side effects are an L2 hook (objectstack-data)" keeps its homes in the same file (the item's own "PURE compute step, does NOT read/write the database" lead with "a later declarative node persists it", and the description's "Do not use for data lifecycle hooks at the object layer (see objectstack-data)"). No rule left the skill.

Findings:

  1. should-fix — "else nobody (a schedule flow declaring no organization, no record) ... the node succeeds" is true under the single posture only, and the line names no posture. Under group an undeclared schedule flow is a legal armed shape (schedule-trigger.ts, the comment above resolveBindingOrganization: "refused at its first tenant-scoped write"), and emit() writes the sys_notification event BEFORE it resolves the audience (messaging-service.ts 1397 to 1421). That write is refused with ERR_SYSTEM_WRITE_ORGANIZATION_REQUIRED under a walled posture, and the notify node's catch returns success: false, notify failed: ERR_SYSTEM_WRITE_ORGANIZATION_REQUIRED: ... (notify-node.ts 1385 to 1394). So for the skill's own example, in a group deployment the step FAILS; it does not reach nobody and succeed. Under isolated the flow never binds. The PR's changeset says "(the single-organization posture)"; the skill line dropped that qualifier. An author in a group deployment is taught a silent success where the run fails. Fix on the prose face: name the posture in the parenthesis (for example "in a single-organization deployment, a schedule flow declaring no organization, no record"), inside the 7 tokens of headroom or paid by a further cut. flows.mdx 346 to 349 carries the same unqualified sentence on main; it is outside this diff, a follow-up for the docs lane.

  2. nit — the line says when org:members reaches nobody and not what the author does about it. The remedy (the schedule flow's declared acting organization, schedule-organization.zod.ts, listed in the skill's references/_index.md) is not named in SKILL.md. The card asked for the clause only; a follow-up card if the seat wants it.

  3. nit — source: "..." is shown without its { dialect: 'cel', ... } wrapper. The fence above shows the wrapper, so the reader is not misled. Accepted deviation at this token budget.

One should-fix and two nits, no must-fix. The should-fix earns a delta review of its fix.

Implemented-by: claude/project-thread-j1oabg
Reviewed-by: session_01FEkQ5pjSPT7ui2EUcunaVb

VERDICT: PASS

Adopted by the seat 2026-11-15T01:21Z · isolated sub-agent at CONTRACT_REVIEW_TIER (served model verified by the seat) · Ruling-ref: Leehom card cmsg_01TenzsRopZj4jMbvjX8uz1XFhuiZmTH8VFgMmHRmpiGAb, option A, tapped 2026-11-14T15:37Z

…dy case

Under group the notification write is refused and the node fails, so the
clause holds under single only; the start-node organization key is named.

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

Copy link
Copy Markdown
Contributor Author

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

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 7cc0ff0373ce1f08b5762835dac3fb5aade3b1b5
Local-runs: none
Scope: skills/objectstack-automation/SKILL.md + none

PR #33577, card #32961. AT-TIER DELTA review of the fix to finding 1 (should-fix) of record 6887230505, which holds head d9a512bb7d5. Read: the card body and its three comments, the PR body, record 6887230505, the delta d9a512bb7d5..7cc0ff0373c (two files, one line each: the skill's org:members line and the changeset's body sentence), and the head's check-runs. The cited code was read in the head's tree: recipient-resolver.ts, messaging-service.ts, notify-node.ts, schedule-trigger.ts, schedule-organization.zod.ts, flows.mdx. Everything outside the delta stands on record 6887230505 and was not re-judged. The changeset is the lane seat's ACCEPT at TIER_DEFAULT; its new sentence was read against the code because this run's order asks for it.

Check-runs on this head at the time of writing: every completed run is success or skipped, among them both Check Changeset runs, Governed Surface Queue Guard, Check PR Size, both PR-body guards runs, Lint · PM dispatch-gates, Lint · scoped · tooling self-tests, Lint · scoped · slot lookup & corpus, Lint · scoped · query-options erasure, Build Core, Test UI, Dogfood Regression Gate, Live E2E UI. Still in progress, so NOT yet a verdict: Lint · docs & code guards, Lint · repo & tooling gates, Lint · CI, release & engine gates, Lint · ESLint, Type Check · workspace, Type Check · source gates, Type Check · debt ledger, Type Check · consumer gates, Test Core (1/8), Test Core (2/8). The seat reads those ten before it adopts this record; the token ratchet's family is among them and is not answered here.

① Derived judgments

  • Accept-set: unchanged. The delta holds no schema, validator, gate or runtime file. Right.
  • Public surface: one line of the published skill text of @objectstack/skills is reworded; no heading, anchor, fence or os:check block moves. Right.
  • Token ceiling: not moved (scripts/check-skills-token-ratchet.mjs row stays 6861). By the script's own documented audit formula, read off the two blobs with a byte count and no script run: 27455 bytes less the 20-byte version line is 6859 tokens at this head, 27435 less 20 is 6854 at d9a512bb7d5. 6859 of 6861, headroom 2, as the order states. Right.
  • No eval pins the changed line: unchanged from record 6887230505 (eval 22 asserts only notify and recipients: 'org:members'). Right.

② Semver level

'@objectstack/skills': patch, unchanged by the delta: a prose correction to a published skill. Right level. Clause-②: no and Metadata-protocol: none stand on the changeset and the PR body; the delta narrows and widens nothing.

The changeset's new sentence, against the code: "under the single posture, a schedule flow that declares no start-node organization and has no record hits it (under group the notification write itself is refused and the node fails)". Holds. emit() writes the sys_notification event (messaging-service.ts, step 2, writeEvent) BEFORE it resolves the audience (step 3); with no organization from the producer the insert takes the engine's system-write rule, the sole organization under single and ERR_SYSTEM_WRITE_ORGANIZATION_REQUIRED under a wall; the only catch around that write converges a dedup race and otherwise rethrows; the notify node's catch returns success: false with notify failed: ERR_SYSTEM_WRITE_ORGANIZATION_REQUIRED: ... (notify-node.ts 1385 to 1394, and the comment at 1207 to 1212 says the same). The sentence is silent on isolated, where the flow never binds; nothing false is said.

③ Boundary flags

  • The should-fix of record 6887230505: answered by this delta, judged in ④.
  • Nit 2 of that record (remedy not named): partly answered as a side effect, since the line now spells the key organization an author would declare. No further action owed.
  • Nit 3 of that record (source: shown without its dialect wrapper): left as an accepted deviation, by the order.
  • open_questions: empty, as before.
  • The dev's observation (single posture: the resolver is handed the producer's organization, messaging-service.ts 1419 to 1421, not the one stamped on the event row at 1400 to 1402): unchanged in standing. The reworded line now names the one posture in which that read is what makes the clause true, so the coupling is tighter, not looser: if the server lane ever hands the resolver the stamped organization, this line and flows.mdx 346 to 349 become false together. Carrier: the seat's.

④ Design judgment

skills/objectstack-automation/SKILL.md line 133, the one line the delta touches: "else nobody (single posture: a schedule flow declaring no organization, no record)."

Against the three postures (table in schedule-organization.zod.ts, bind logic in schedule-trigger.ts):

  • single, scheduled work on: the key is not required, so the undeclared flow binds; the tick context OMITS tenantId when resolveBindingOrganization returns null (schedule-trigger.ts 886); the notify node reads context.tenantId, then organizationOfRecordAbout (click-through record, else trigger record), finds neither, and emits with no organization; the event row is stamped with the sole organization and written; the resolver is still handed the producer's (absent) organization, resolveOrganizationMembers warns in the server log and returns nobody; emit() returns zero deliveries; the node returns success: true with no step warning (deliveryFailureWarning fires on a failed delivery only). The line is true here, in every word.
  • group: the same flow binds (the key is optional), and its notify step FAILS at the event write. The line no longer claims this case: the qualifier excludes it. The should-fix is fixed.
  • isolated: policy.requiresActingOrganization refuses the bind, so the case cannot arise. Excluded by the qualifier, correctly.

The key spelling: SCHEDULE_ORGANIZATION_KEY = 'organization' (schedule-organization.zod.ts 159), declared on the START node config beside schedule; resolveBindingOrganization reads the lifted binding.organization, else binding.config.organization. organization in code font is the real key a schedule flow declares. Holds. A declared key under single puts tenantId on the run, and org:members then reaches that organization's members, so "declaring no organization" is the exact condition.

The closing sentence "Each warns in the server log only; the node succeeds" still reads over the two reaches-nobody cases the line states; with the posture named, it no longer covers a case where the node fails.

No regression elsewhere: the delta touches no other line of the file.

Findings:

  1. nit — single posture is a term SKILL.md does not define; this line is its only use in the skill, and the definition sits in schedule-organization.zod.ts, which references/_index.md lists. An author who does not know the term reads a narrower claim, never a wrong one. No effect on correctness. Accepted deviation at 2 tokens of headroom, or a follow-up card.

  2. nit — the PR body still describes head d9a512bb (the old parenthesis quoted under "What changes", 6857 to 6854, headroom 7). The tree is what was judged; the body is a prose face and can be brought to this head (6859, headroom 2, the single qualifier) without moving it.

  3. nit, carried — source: "..." without its dialect wrapper: accepted deviation, as ordered.

Carried, outside this diff: content/docs/automation/flows.mdx 346 to 349 still says "where there is none, org:members reaches nobody" with no posture; under group the step fails. A follow-up for the docs lane, as record 6887230505 said. The changeset's "matching content/docs/automation/flows.mdx" is true of the clause and now more exact than the page.

The should-fix is fixed; three nits, no must-fix, no should-fix. Nits alone end the round.

Implemented-by: claude/project-thread-j1oabg
Reviewed-by: session_01FEkQ5pjSPT7ui2EUcunaVb

VERDICT: PASS

Adopted by the seat 2026-11-15T01:51Z · isolated sub-agent at CONTRACT_REVIEW_TIER (served model verified by the seat) · Ruling-ref: Leehom card cmsg_01TenzsRopZj4jMbvjX8uz1XFhuiZmTH8VFgMmHRmpiGAb, option A, tapped 2026-11-14T15:37Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

维护者速读

  • 改了什么:skills/objectstack-automation/SKILL.md 的 notify 一节补两句:在 single 部署形态下,一个没声明 organization、也没有记录的 schedule flow 用 org:members 时谁也收不到,只在服务端日志里告警,节点仍算成功;owner_of: 收件人通常要用表达式拼出来,给出 'owner_of:crm_case:' + record.case_id 这种写法。字数在原上限内(6859/6861),未抬上限。@objectstack/skills patch changeset。
  • 为什么改:卡 skills(objectstack-automation): notify selectors — say org:members can reach nobody, and show the computed owner_of: form #32961,PR docs(skills): objectstack-automation teaches the notify audience selectors, org:members included #32841 复审留下的两条应修(作者照技能写会写出静默无人收到的通知,或自己摸索 owner_of: 的可用写法)。
  • 风险与回滚:只改技能文字,不改任何行为。回滚即还原本 PR。
  • 先看:SKILL.md 第 133 行附近 org:members 与 owner_of: 两条。
  • 两分钟验证:git diff origin/main...HEAD --stat,预期 2 个文件。
  • 需要你做的:受管面 Tier H(skills/**)。达档(CONTRACT_REVIEW_TIER,席位已核对实际模型)复审 PASS 6887230505(含 1 条应修)与增量复审 PASS 评论 6887559521(Head-sha 7cc0ff0373ce1f08b5762835dac3fb5aade3b1b5)已在案,请批准或直接合并。
  • 席位意见:可以合。应修(这句只在 single 形态成立;group 下事件写入被拒、节点失败)已改为写明形态,三种形态都对照代码核过。

席位核对

Verdict: ACCEPT, held for the maintainer · head 7cc0ff0373ce1f08b5762835dac3fb5aade3b1b5 · card #32961 · report 6887138410 · at-tier contract review 6887230505 (PASS with one should-fix on d9a512bb) and at-tier delta 6887559521 (PASS on this head, CONTRACT_REVIEW_TIER, served model verified by the seat; Ruling-ref for the in-seat review: Leehom card cmsg_01TenzsRopZj4jMbvjX8uz1XFhuiZmTH8VFgMmHRmpiGAb option A).

  • Shape: draft → main, Fixes #32961. skills/objectstack-automation/SKILL.md and one changeset (@objectstack/skills patch). GOVERNED, Tier H (skills/**). Clause-②: no; Metadata-protocol: none.
  • Should-fix closure: the org:members parenthesis names the single posture and spells the start-node key organization (the remedy); checked against schedule-trigger.ts, messaging-service.ts emit(), notify-node.ts and schedule-organization.zod.ts for all three postures. The changeset sentence matches.
  • Gates: 46 derived, 45 exit 0, 1 NOT MEASURED locally (check:dual-build-cjs-loads); token ratchet 6859 of 6861, no ceiling moved. Check-runs on the head all concluded, none failing.
  • Accepted deviations (nits): single posture is not defined in SKILL.md (its definition is in schedule-organization.zod.ts, listed in references/_index.md); source: "..." is shown without its { dialect: 'cel' } wrapper (token budget).
  • Follow-up: content/docs/automation/flows.mdx states the same clause with no posture; carded as docs(flows): 'org:members reaches nobody' with no organization holds under the single posture only; under group the notify step fails #33579.
  • Landing: Tier H. The seat does not flip this PR ready or enqueue it. It needs the maintainer's merge, or an authorised APPROVED review after which the seat lands it.

@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 15, 2026
@os-zhuang
os-zhuang marked this pull request as ready for review November 15, 2026 02:50
@os-zhuang
os-zhuang enabled auto-merge November 15, 2026 02:51
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 15, 2026
Merged via the queue into main with commit 0f6439d Nov 15, 2026
54 checks passed
@os-zhuang
os-zhuang deleted the claude/project-thread-j1oabg branch November 15, 2026 04:44
scbdzhwl pushed a commit to scbdzhwl/objectstack-analysis that referenced this pull request Nov 16, 2026
…zation (objectstack-ai#33636)

<!-- claude-projects-attribution: {"github_login":"os-project-manager"}
-->
_Requested by **Leehom** · [project
thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1XKmnz7y9Jpv9J9Z1a6URaKH)_

Fixes objectstack-ai#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 objectstack-ai#33577 (the skill twin)

PR objectstack-ai#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.

<details><summary>43 gates, each with its exit code</summary>

```text
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
```

</details>

- Every family CI runs beyond the derived list: read off this PR's
check-runs.

---
_Generated by [Claude
Code](https://claude.ai/code/session_01FEkQ5kkneJapg7yoXuPYnx)_

Co-authored-by: Claude <noreply@anthropic.com>
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 pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue size/s 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.

skills(objectstack-automation): notify selectors — say org:members can reach nobody, and show the computed owner_of: form

3 participants