You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
assignment rules: the user an assignment rule hands a record to gets no notification (item 4 of #39422) #39527
area:workflowApprovals and automation — the work that runs without a person driving itenhancementNew feature or requestpriority:p2Medium: important, M3
Filing gate: ② (a fleet Feature whose open point is a product call) · Source: fleet (split from #39422 by the claiming zone ot-build, on the seat's routing).
Carries item 4 of #39422 (its section "4. The engineer who gets the record is not told", Expected 5); #39422 keeps items 1–3 (Expected 1–4).
Grading: area:workflow · Feature · p2 · reach: an assignment rule routes a public-form record to a queue member, who is never told (new-company walkthrough on #39422, zh-CN, origin/main f32b7d6: only approval sys_notification rows exist after routing) · evidence: read from #39422, not re-measured here.
Dedupe: "assignment rule" notification → 30 hits, 0 open cards on this point (only #39422 itself); assigned notify assignee queue → 144 hits, none on this point.
维护者速读
需要您决定:分配规则把记录分给某个人后,要不要通知这个人?如果要,默认打开还是由管理员按规则勾选?
为什么要您定:通知是新能力,开不开、默认开不开是产品取舍,车队不能替您定。
选项:(a) 默认在站内通知;(b) 分配规则上加开关,默认关;(c) 暂不做。
建议:先由分诊和流程区读现有通知通道再给推荐;本卡只登记问题。
What happens
A public form submission is created ownerless; an authored assignment rule routes it to the 维修组 queue and round-robin hands it to the 服务工程师 holder in one step. The holder receives no notification: after routing, the only sys_notification rows are approval ones. Queue routing is not usable if the person never learns a record is theirs.
Open product point
Whether a "new record assigned to you" notice (inbox at least) exists, and whether it is on by default or opt-in per assignment rule. ⛔ Not built before the maintainer answers.
Business reason
Who benefits: teams that route incoming records (repairs, leads, tickets) through assignment rules and queues. Without it, routed records sit unseen until someone opens the queue.
Who acts: triage routes and grades (Request: triage on the triage mailbox); the area:workflow lane builds once the product point is answered.
Triage: lands in area:workflow · Feature · p2 · needs-user-decision · size M, touched 2026-12-04T06:58Z. Rationale: the filer's area and grade stand. This is item 4 split from #39422, on request 7404078196. When an assignment rule hands a record to someone, that person gets no notification. Whether a "record assigned to you" notice should exist, and whether it is on by default or opt-in per rule, is a product call, so the card goes to the maintainer instead of pm:queue, and nothing is built before the answer. Options as the card states: (a) default-on inbox notice, (b) a per-rule switch, off by default, (c) not now. Issue type set to Feature.
Grade: area:workflow · Feature · p2 · teams routing records through assignment rules and queues · read (from #39422; only approval sys_notification rows after routing).
Read at origin/main = e43597b1. Every premise below carries the command that re-reads it.
Background
Item 4 of #39422, split out as this card. In a new-company walkthrough a public form creates an ownerless repair request; an assignment rule the organization authored routes it to a queue and round-robin hands it to one member. That member is told nothing. The card asks whether the platform should tell the person an assignment rule hands a record to, and if so whether that is on by default or switched on per rule.
Two facts found while measuring change the shape of the question:
This was decided once, for a neighbouring case. Until 17.0 the platform sent an "assigned to you" notice on every owner change, guessed from field names. It was removed on 2026-07-22 (废弃内核内置「分配通知」(writeAssignmentNotifications),改由自动化流程承载 #3403, landed by remove(plugin-audit): drop kernel-built-in assignment notifications (#3403) #3404). The issue records the conclusion after discussion with the maintainer: assignment notices are business policy and go back to flows; the platform supplies the mechanism (record trigger, notify step, templates). It also records one rejected alternative, a per-object switch, as "the platform makes the business decision and then ships a regret switch", plus protocol surface. Assignment rules did not exist then (ADR-0142 is dated 2026-10-25), so 废弃内核内置「分配通知」(writeAssignmentNotifications),改由自动化流程承载 #3403 does not literally answer this card. Its reasoning does bear on every option.
The first consumer already tells the assignee, with a flow. HotCRM's lead_assignment flow fires on lead creation and notifies the owner the assignment rule picked, with different wording and channels for hot and standard leads.
Governing text
Governing text: none found that answers the question for assignment rules. Closest texts, all read:
ADR-0142 D5, docs/adr/0142-ownership-queue-membership-claim-and-assignment-rules.md:576-577: "What the rule writes. owner_id … and queue … Nothing else". Silent on telling anyone. Options A and B amend this paragraph.
ADR-0142 merge question 8, same file :857-860: a queue is not a messaging audience; "nobody to alert for ownerless intake" stays open. That is about parked records, not about an assigned person.
ADR-0077 §1–§2 (Accepted), docs/adr/0077-authoring-surface-boundary-hook-flow-validation.md:72 and :82: "When X happens, run a sequence (notify, …)" is a flow; an after-write side effect that business may want to see or change is a flow. Author guidance for app automation; it does not forbid a platform notice (approvals and mentions send their own).
ADR-0030 §2 (Accepted), docs/adr/0030-notification-platform-convergence.md:24: every notification producer calls the one emit ingress. Binds how A or B would be built, not whether.
The 废弃内核内置「分配通知」(writeAssignmentNotifications),改由自动化流程承载 #3403 conclusion, surviving in the tree at packages/plugins/plugin-audit/src/audit-writers.ts:2858-2864 ("Deciding that an owner/assignee change warrants a bell is a business policy, not a platform default") and content/docs/releases/v17/17-0.mdx:1165-1166. An issue and a code comment, not an ADR.
No option conflicts with an accepted ADR. Option A runs against the #3403 conclusion and is offered only because that conclusion is the maintainer's own to narrow.
Protocol statement
A and B change the metadata protocol: one new authorable key on an assignment-rule entry, one new column on the organization's rule record, and an amendment to ADR-0142 D5 (a governed surface, landed by the maintainer's hand). Metadata-protocol: added. A also changes default behaviour for every deployment that has rules.
C changes no protocol and no runtime behaviour.
Enforce-or-remove does not apply: no notify key is declared on the rule today, so nothing is declared and unenforced (premise 1).
Premises (each with its re-check)
The rule schema declares no notify key. Entry keys are name, criteria, assignTo, strategy, load (packages/spec/src/automation/assignment-rule.zod.ts:66-81); rule keys are name, label, description, object, active, entries (:161-173); both are closed, an unknown key is refused (:10). The organization's rule record has no such column either (packages/plugins/plugin-sharing/src/objects/sys-assignment-rule.object.ts:78-176).
Re-check: git grep -c -iE 'messaging|notif|\.emit\(' origin/main -- packages/spec/src/automation/assignment-rule.zod.ts packages/plugins/plugin-sharing/src/objects/sys-assignment-rule.object.ts packages/objectql/src/assignment-rules.ts packages/plugins/plugin-sharing/src/assignment-rule-hooks.ts prints nothing.
At runtime the rule writes the owner and the queue, and tells nobody.packages/objectql/src/assignment-rules.ts:58-61 (contract), :535 (queue), :557 (member picked), :593 (user target). The evaluator has no messaging dependency (same re-check as 1).
The rule runs before the write; a flow on "record created" sees the owner it picked. Seam at packages/objectql/src/engine-insert.ts:1121-1133; the after-insert dispatch carries the stored row at :1694-1698; record-after-create binds to that dispatch (packages/triggers/trigger-record-change/README.md:36).
Re-check: git show origin/main:packages/objectql/src/engine-insert.ts | sed -n '1121,1133p;1694,1698p'. Read, not run (see confidence gaps).
The platform's own default assignment notice was removed, and a switch was rejected.废弃内核内置「分配通知」(writeAssignmentNotifications),改由自动化流程承载 #3403 (closed 2026-07-22), remove(plugin-audit): drop kernel-built-in assignment notifications (#3403) #3404 (+83/−136, 7 files). Surviving text: packages/plugins/plugin-audit/src/audit-writers.ts:2858-2864; packages/services/service-messaging/src/recipient-resolver.ts:67-73; content/docs/releases/v17/17-0.mdx:1165-1166.
Re-check: git grep -n 'framework#3403' origin/main -- packages and gh api repos/objectstack-ai/objectstack/issues/3403 --jq .body.
The flow path is the documented way to tell an assignee.content/docs/getting-started/common-patterns.mdx:264-298 ("Task Assignment Notification"); shipped example examples/app-showcase/src/automation/flows/index.ts:168-210.
Re-check: git grep -n "showcase_task_assigned_notify" origin/main -- examples/app-showcase/src/automation/flows/index.ts.
The assignment-rules guide never says how to tell the assignee. Its only notification lines are about queues and parked records (content/docs/automation/queues-and-assignment-rules.mdx:116, :169, :179).
Re-check: git grep -n -iE 'notif|alert' origin/main -- content/docs/automation/queues-and-assignment-rules.mdx prints exactly those three lines.
The first consumer does this with a flow, and needs more than a switch could give. HotCRM at bde4be7, src/sales/flows/lead-assignment.flow.ts:81 (fires on create), :101-125 (hot lead: inbox and e-mail, warning, its own template), :138-153 (standard lead: inbox, another template), :202 (only when someone else put the lead in the owner's name). Its header (:31-39) records that the first version failed at the notify step for an ownerless lead.
Re-check: git -C ../hotcrm grep -n -E "notify_hot|notify_std|record-after-create" bde4be7 -- src/sales/flows/lead-assignment.flow.ts.
Channels and the per-person mute exist. Inbox is registered by default (packages/services/service-messaging/src/messaging-service-plugin.ts:384-386); e-mail, SMS, push and Slack channels ship as files beside it. Preferences are on by default and can be turned off per topic and channel by a person or as an organization default (packages/services/service-messaging/src/preference-resolver.ts:172-178).
Re-check: git ls-tree --name-only origin/main packages/services/service-messaging/src/ | grep -E 'channel\.ts$'.
How other platform features notify. Approvals tell each approver by default, inbox and e-mail, with no author switch (packages/plugins/plugin-approvals/src/approval-service.ts:8485-8497, :3505-3512); escalation's notifySubmitter defaults to true (packages/spec/src/automation/approval.zod.ts:909); mentions stay a platform behaviour (packages/plugins/plugin-audit/src/audit-writers.ts:2866-2868). In each, telling the person is the point of the feature: an approver has to act, a mention is addressed to someone.
Re-check: git grep -n -E "topic: 'approval.requested'|notifySubmitter: z.boolean" origin/main -- packages/plugins/plugin-approvals/src/approval-service.ts packages/spec/src/automation/approval.zod.ts.
No test at this revision ties a rule's pick to a delivered notice. 21 test and example files mention assignment rules; none of them also mentions a notify step or the inbox table.
Re-check: for f in $(git grep -l -E 'assignmentRules|sys_assignment_rule' origin/main -- 'packages/**/*.test.ts' 'examples/**' | sed 's/^origin\/main://'); do git grep -l -E "'notify'|sys_inbox_message" origin/main -- "$f"; done prints nothing.
A parked record has no assignee. A rule entry with a queue target and no strategy leaves the owner empty (packages/objectql/src/assignment-rules.ts:536); no option on this card tells anyone about it.
1. The problem in one sentence
When a rule gives a new record to a person, that person finds out only by opening their list, and the organization has no obvious place to switch a notice on.
2. Options, real cost, effort
What is built
What the customer sees
Effort (lane · PRs · measured precedent)
A Built in, on by default, a rule can switch it off
A yes/no key on the rule entry (default yes) and a matching column on the organization's rule record; the platform sends an inbox notice after the record is written; wording in eleven languages; ADR-0142 D5 amended
Every record a rule assigns produces a bell notice with the platform's wording, with no setup, from the release that ships it. HotCRM reps get two notices per routed lead (the platform's and the app's own) until the app switches one off. A person or an organization can mute the topic in notification preferences
area:workflow · 5 PRs: rule key through both rule sources and the engine (#30760, +1296/−36, 23 files); notice text in eleven languages (#30856, +742/−2); ADR amendment (#30828, +38/−3); guide and skill (#30866, +55/−16); HotCRM switch-off (no precedent)
B Built in, off by default, a rule can switch it on
Same as A with the default reversed
An administrator ticks one box on the rule (or writes one key in the declaration) and the assignee gets a bell notice with the platform's wording, inbox only. Nothing changes for an app that does not tick it. Different wording, e-mail, or "only when urgent" still needs a flow
area:workflow · 4 PRs: the first four of A, same precedents
C Not built in; a flow tells the assignee; make that path findable and proven
No runtime or protocol change. A test that proves a rule's pick is notified by a flow, for a signed-in writer and for a public-form submission; a "tell the person who received it" section in the assignment-rules guide; the same recipe in the automation skill with an eval
The administrator adds one small flow per object (on create, when there is an owner, notify the owner) and chooses the wording, channels and conditions. A parked record tells nobody, as today
area:workflow · 2 PRs: guide section and test (#30866, +55/−16 for the guide; test: no precedent); skill recipe and eval, a governed surface (#33577, +21/−15)
By the measured precedents A and B are about 2,100 changed lines and C under 100 plus one unsized test: well over three times apart. No fourth option is offered: a one-click starter flow from the rule page would need a flow-template mechanism the Console does not have (git grep -l -iE 'FlowTemplate|starter.?flow' origin/main -- 'ui/packages/**' prints nothing).
3. What each option means in business terms
A: the platform decides, for every customer, that being handed a record deserves a notice, and gives a way to opt out. This is how Zendesk and Jira behave out of the box: the assignee is told unless someone turns it off.
B: routing and "tell them" are one form with one tick box. This is Salesforce's assignment rule entry, which carries an optional e-mail template: none chosen, no mail sent.
C: routing decides who gets the record; a separate, visible automation decides who is told and how. This is ServiceNow's split between assignment rules and notification records, and it is what 废弃内核内置「分配通知」(writeAssignmentNotifications),改由自动化流程承载 #3403 chose in July.
4. The four axes, from the business side
Long-term soundness. End state in two years: an organization decides who is told about what in one visible place, its flows, with wording, channel and conditions it owns, and routing rules stay pure routing. ServiceNow models it that way; Salesforce keeps a template field on the rule entry but has put its automation investment into Flow. C is that end state with the missing signpost added. B puts a second, fixed-wording notifier inside routing; the first real consumer already needs two wordings and two channel sets by lead rating (premise 7), so the next asks (e-mail too, different text per priority) arrive as more keys on the rule or send the customer to a flow anyway. A adds the same surface and also decides policy for every customer, which is what #3403 took out.
Business pull. One hit: the fleet's own new-company walkthrough on #39422, not a customer deployment (read from that card, not re-measured). HotCRM needed the outcome in October and built it as a flow; its history shows the pain was in getting the flow's conditions right (a failed run for an ownerless lead, then owners notified about their own leads), not in the absence of a switch. So the outcome has pull and is served; a rule-level switch has one walkthrough behind it and would not replace HotCRM's flow.
Keeping AI authors from mistakes. B is the hardest to get wrong: one closed yes/no key, and a misspelling is refused when the app is built. C asks an AI author to write a small flow with an owner condition; when that condition is missing the run fails at the notify step and shows red in run history (loud), while notifying people about records they created themselves is noise with no error (quiet). A needs nothing written, but an app that already has its own flow sends two notices and nothing anywhere says so (silent). This axis ranks B first, C second, A last.
Not spreading at startup stage. C adds no key. B adds one key in two places plus a platform-owned sentence in eleven languages, each a permanent obligation with one walkthrough as its consumer. A adds the same and changes behaviour for every existing deployment.
os-decision-facets
① 项目长远合理性:C keeps one home for notification policy (flows) and adds no contract; B adds a second notifier with fixed wording inside routing and a key that will attract siblings; A adds that and a platform default the July removal took out.
② 实际业务拉动:one walkthrough finding; the first consumer already solves it with a flow and needs per-rating wording a switch cannot express. Pull is for the outcome, not for a new key.
③ 防 AI 犯错:B is a closed key, refused when misspelt; C fails loudly in run history when the owner condition is missing, quietly over-notifies when the self-assignment condition is missing; A double-notifies silently beside an existing flow.
④ 创业阶段不扩散:C declares nothing; B and A each add a key in two doors and translated platform text for one measured consumer.
The other hits the search named (ADR-0022 §1, §2, §4, §5, ADR-0131 D2, ADR-0146 D7, ADR-0018 §3) were opened and do not bear on notices for assigned records. ADR-0142 is Proposed as amended and is silent on notices. Read outside the three corpora: #3403 and #3404.
Self-check: on ① alone the pick is C; do ②③④ flip it: no (③ prefers B and is stated above; it does not outvote ①, and ②④ agree with C).
5. Recommendation and confidence gaps
Recommend C. It is the long-term shape: who is told, in what words and on which channel is the organization's policy and lives in its flows, which is what the July conclusion decided and what the first consumer does. What is actually missing is that the guide for assignment rules does not say so and nothing proves the two features work together.
Not A: it reverses the July conclusion for rule-driven assignment and makes existing apps notify twice with no error.
Not B: it is a fair reading of Salesforce and the safest for AI authors, but it buys a fixed-wording copy of the notify step at many times the cost, for one walkthrough, and the first real consumer could not use it.
Effort note required by the template: the ① readings of B and C are not far apart for the no-code administrator, and the effort differs by more than 3×; the recommendation rests on ①, not on the effort.
Confidence gaps, none of which changes the pick:
Premise 3 is read from code order, not run. No test ties a rule's pick to a delivered notice (premise 10), including for a public-form submission. Execution step 1 of C closes this; a failure there is a defect on the flow path, not a reason to return here.
The Zendesk, Jira, ServiceNow and Salesforce readings are from reference knowledge, not fetched in this session.
Whether the July conclusion was meant to cover an explicit rule as well as the field-name guess is the maintainer's to say. If he reads it as not covering rules, B is the next choice, not A.
The administrator in the walkthrough authored the rule in Setup without writing code. Under C that person builds a flow in Studio; how hard that is for them was not measured.
Parked records (a queue target with no strategy) have nobody to tell under every option; ADR-0142 merge question 8 stays open and is not part of this card.
6. After the ruling
Rule the direction only; the rest follows from it.
If C. (1) The workflow lane lands a test in the dogfood suite: an organization rule with round-robin plus a flow on record creation that notifies the owner, asserting exactly one inbox message for the member picked, once for a signed-in writer and once for a public-form submission. If it fails, a defect card on the flow path goes to the queue. (2) The assignment-rules guide gains a short "tell the person who received it" section with that flow, and says a parked record tells nobody. (3) The automation skill gains the same recipe and an eval, as its own PR on the governed surface. (4) This card closes when both merge. No changeset beyond docs; Metadata-protocol: none.
If B. Parameters ruled in the same breath, so no second card: the key is a boolean on the rule entry named notifyAssignee, default false, after the notifySubmitter precedent (packages/spec/src/automation/approval.zod.ts:909); the organization's rule record gets the matching column and Setup a tick box; the key is refused on an entry that parks (queue target, no strategy), because there is nobody to tell; the notice is sent after the write succeeds, through the single ingress, inbox only, one fixed topic, wording in eleven languages, mutable through existing preferences. Order: ADR-0142 D5 amendment first, then spec with its reader in one PR, then translations, then guide and skill. Metadata-protocol: added.
If A. As B with default true, plus: the changeset states the behaviour change; a HotCRM PR lands in the same release so its reps are not told twice; and the ruling says in one sentence that the July conclusion is narrowed for rule-driven assignment, so later seats do not read it as overturned for owner changes in general.
Ruled: 2026-12-04T08:36Z · C: assignment rules do not notify the assignee built-in; a flow does it. Platform behaviour unchanged; the guide and the automation skill teach the recipe, proven by a test.
Authority: Tesla (os-tesla), decision card in the project decision thread, tapped 2026-12-04T08:33:41Z, option 「不内置,用流程配提醒」 on 「分配规则把记录分给人后,要不要提醒他?默认开还是关?」.
Ruled terms (analysis §6, If C): (1) the workflow lane lands a dogfood test — organization rule with round-robin plus a flow on record creation that notifies the owner, asserting exactly one inbox message for the picked member, for a signed-in writer and for a public-form submission; failure ⇒ a defect card on the flow path. (2) The assignment-rules guide gains a "tell the person who received it" section with that flow, and says a parked record tells nobody. (3) The automation skill gains the recipe and an eval, its own PR on the governed surface. (4) This card closes when both merge. Metadata-protocol: none.
Claim: PM loop round 1 · 2026-12-04T08:40Z
Session: session_01L9qibvMXrDPhCt3pGziYWE
Account: os-tesla
Area: ot-flow
Branch: claude/issue-39527-wip
Worktree: objectstack-issue-39527
Domain: domain:devx
Seat: repo:objectstack@os-tesla
File surface: packages/qa/dogfood/test/assignment-rule-flow-notifies-owner-39527.dogfood.test.ts (new), content/docs/automation/queues-and-assignment-rules.mdx. Stop on breach; explain in the report. ⛔ Not in this claim: the automation skill recipe and eval (ruled term 3, governed skills/**), which goes to its own domain:skills card the seat files.
Container & model: M, mode:subagent, model: default (dispatch-gates --tier: no path-derived mandate), effort: high
Clause-②: no
Metadata-protocol: none
Responsibility: n/a — not a defect card (ruled C: no runtime change; a failing test means a defect card on the flow path)
Thread-read: 7406185221
Premise: holds (ruling 7406185221 premises, re-read on origin/main: the guide's only notification lines are about queues and parked records; no test ties a rule's pick to a delivered notice)
Pre-claim lane: domain:devx by file (dogfood suite, content/docs); stays in this seat.
Pre-claim deps: none named; ruling recorded.
Prior rulings read: Ruling-ref 7406185221 (Tesla, decision tap 2026-12-04T08:33:41Z, option 「不内置,用流程配提醒」): "(1) The workflow lane lands a dogfood test — organization rule with round-robin plus a flow on record creation that notifies the owner, asserting exactly one inbox message for the picked member, for a signed-in writer and for a public-form submission; failure ⇒ a defect card on the flow path. (2) The assignment-rules guide gains a "tell the person who received it" section with that flow, and says a parked record tells nobody." check-prior-rulings.mjs --card 39527: 0 hits on the surface.
Serial constraints cleared: check-handover.mjs --inflight over both files reads no overlap; unread surfaces read by hand, none in packages/qa/dogfood/test or content/docs/automation.
{
"issue": 39527,
"status": "done",
"branch": "claude/issue-39527-wip",
"pr": "https://github.com/objectstack-ai/objectstack/pull/39603",
"session": "session_01L9qibvMXrDPhCt3pGziYWE",
"premise_still_valid": true,
"summary": "Ruled terms (1) and (2) of 7406185221, as draft PR #39603 (Part of #39527, no closing keyword). Term (1): a new dogfood test boots a stack with a public intake form, a record-after-create notify flow and the organization's own sys_queue, sys_queue_member and round-robin sys_assignment_rule, each authored by the administrator through the data door. Two public-form submissions go to the two members in turn, each member gets exactly one inbox message for their record and the other gets none. That runs analysis premise 3, which held. MEASURED DIFFERENCE: the signed-in-writer arm cannot pick a member. The owner-anchor stamp makes a data-door create the writer's own, and ADR-0142 D5 (merge question 4) keeps the rule off owned inserts; the public form is always anonymous. So that arm pins what actually happens: the writer owns the record, the cursor does not move, nobody is told. Term (2): the guide gains 'Tell the person who received it', with the flow as an os:check example, both halves of the condition explained, 'a parked record tells nobody', and a checklist line. No runtime, spec or skills change. Branch name is the claim's claude/issue-39527-wip, not a -wip backup branch.",
"tests": "At head 9644767fa3, after rebuilding the packages the origin/main merge touched: `pnpm --filter @objectstack/dogfood exec vitest run --maxWorkers=2 test/assignment-rule-flow-notifies-owner-39527.dogfood.test.ts` under os-verify-lock, VERDICT command-exit 0, 'Test Files 1 passed (1) / Tests 3 passed (3)'. Guard check: with the start condition cut to !isBlank(record.owner_id), the signed-in case went red ('nobody is told about a record its owner filed: expected [ {...} ] to deeply equal []'), VERDICT command-exit 1; restored from HEAD and the tree was clean. `pnpm --filter @objectstack/dogfood typecheck` exit 2: 8x TS7016 on other files (plugin-email, plugin-sharing and service-knowledge dists without .d.ts in this box's cache), 0 errors in the new file, which is inside include test/**/*. No ablation of platform behaviour: the diff changes none.",
"gates": "Derived with `node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack` at 9644767fa3, after merging origin/main: 82 commands. Each was run with its exit code captured before any pipe; `--ran` reconciliation: '82 derived famil(ies) accounted for, 76 run, 6 NOT-MEASURED'. 75 exit 0, plus spec check:skill-examples exit 0 on a re-run after building client-react; its first run was exit 3, no client-react dist. NOT-MEASURED: check-comment-mask-corpus, check:query-options-erasure, check:slot-lookup, check:type-check-debt (killed at the local 280 s cap, exit 124, whole-tree scans); check-plugin-teardown-shape --self-test (exit 3, positive control pinned to a commit the shallow clone cannot reach); check:dual-build-cjs-loads (exit 3, unbuilt dists outside the diff). CI check-runs on #39603 not yet read: NOT MEASURED, reason: report delivered at the end of local verification. Dogfood Regression Gate runs only in the merge queue (per derivation).",
"files_changed": [
"packages/qa/dogfood/test/assignment-rule-flow-notifies-owner-39527.dogfood.test.ts (new, +274)",
"content/docs/automation/queues-and-assignment-rules.mdx (+57)"
],
"line_budget": "331 changed lines (+331/-0), under the 3000 human-merge threshold; no skills/** edit, so no skill line budget applies",
"deviations": [
"The signed-in-writer arm of ruled term (1) pins measured ADR-0142 behaviour (no pick, no notice), not 'exactly one inbox message for the picked member'; see open_questions",
"The test and typecheck ran before the origin/main merge, and the test ran again on the merged head; local gate runs were capped at 280 s each, so 4 whole-tree families are NOT-MEASURED"
],
"mcp_calls": "0",
"api_writes": "2 relay strokes: pr_create (POST /repos/objectstack-ai/objectstack/pulls draft, POST .../issues/39603/assignees os-tesla, POST .../issues/39603/labels skip-changeset; read-back identical, 5165 bytes) and the os-dev-report comment (POST .../issues/39527/comments via post-stamped.mjs). Plus git push (not REST) of the branch.",
"classifier_refusals": [],
"open_questions": [
{
"question": "Ruled term (1) asks for exactly one inbox message for the picked member 'for a signed-in writer', but a signed-in writer's create is never routed (owner-anchor stamp; ADR-0142 D5 and merge question 4). Is the measured pin (writer owns it, no pick, nobody told) acceptable for that arm?",
"options": [
"A: accept the pin as landed: it proves the recipe does not tell a person about their own record, and the guide says so",
"B: add a third arm where a signed-in writer starts a flow that runs as the system and creates the record (routed, so exactly one notice), as a follow-up in this PR",
"C: send back to the maintainer whether a signed-in writer should be able to opt an insert into assignment (ADR-0142 merge question 4)"
],
"recommendation": "A, because the ruling's intent (prove a rule's pick is told by a flow, from a real intake path) is met by the public-form arm, and the signed-in arm now pins true, decided behaviour instead of a premise that does not hold. B adds a less common path at small cost if the seat wants it."
}
],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: #39415 · noted, not filed. On the pre-merge base, POST /data/sys_assignment_rule without organization_id answered 400 VALIDATION_FAILED 'Organization is required' while sys_queue and sys_queue_member were accepted without it. The origin/main merged into this branch already carries the sys_assignment_rule organization stamp (sys-assignment-rule.organization-stamp-39415.test.ts), so this was not re-measured on the merged head."
]
}
Delta analysis: the signed-in arm of ruled term (1)
Delta on analysis 7404354298 and ruling 7406185221. Read at origin/main93177221, PR #39603 head 94962490d, hotcrm 3377e242. The direction (flows tell the assignee, nothing built in) is not reopened. One clause of term (1) rests on a premise measurement falsified, the one ground on which a ruled card returns to the box.
What changed against the ruled analysis
Its "If C" step (1) asked for exactly one inbox message for the picked member "once for a signed-in writer". None of its 11 premises said a signed-in create is routed; the clause was written unmeasured, and it is false. Everything else stands. Its confidence gap 1 is closed: premise 3 (an after-create flow sees the owner the rule wrote) is now run and holds on the public-form arm.
Premises (each with its re-check)
A signed-in create is stamped to the writer before the rule looks.packages/plugins/plugin-security/src/owner-anchor-stamp.ts:86 (else if (stamp.userId) row.owner_id = stamp.userId), called at security-plugin-authz-middleware.ts:2170. An API key acts as its user, so the same holds for a key-authenticated integration.
Re-check: git show origin/main:packages/plugins/plugin-security/src/owner-anchor-stamp.ts | sed -n '8,11p;23,27p;86p'.
A rule evaluates only rows whose owner and queue are both empty.packages/objectql/src/assignment-rules.ts:360; ADR-0142 D5 docs/adr/0142-ownership-queue-membership-claim-and-assignment-rules.md:533-539 ("a middleware-stamped owner is the acting user's own record … A writer cannot opt an owned insert into assignment in this record"); merge question 4 at :837-840 calls it "the reversible direction".
Re-check: git show origin/main:docs/adr/0142-ownership-queue-membership-claim-and-assignment-rules.md | sed -n '533,539p;837,840p'.
Measured, not only read. The PR's signed-in case asserts owner = writer, queue empty, round-robin cursor unchanged, no inbox row (test file :251-266); with the creator half of the flow condition cut it goes red (dev report 7407947332). Not re-run in this analysis.
The first consumer already states this as its own behaviour. hotcrm src/sales/assignment-rules/lead.assignment-rule.ts:8-13 ("A person's own create, and every REST or CSV import, is stamped with the writer and never routed"), src/sales/flows/lead-assignment.flow.ts:22.
No flow in the first consumer creates a routed record. Its two rules route crm_lead and crm_case; no create_record node writes either, and no example app in this repo declares a rule.
Re-check: git -C ../hotcrm grep -n -A8 "type: 'create_record'" 3377e242 -- 'src/**/*.flow.ts' | grep -E "objectName: 'crm_(lead|case)'" and git grep -l defineAssignmentRule origin/main -- 'examples/**' both print nothing.
The guide at the PR head says it.content/docs/automation/queues-and-assignment-rules.mdx:219: a rule routes only records that arrive with no owner; a signed-in person, and an API key, own what they create (L1 rework 7408024985, landed in 90e9cc5e5).
So the falsification is real, and it is decided behaviour, not a defect.
Options
What is done
What the customer sees
Effort
A Accept the pin
Term (1) is read as: public-form arm proves the pick is told exactly once; signed-in arm pins "the writer owns it, no pick, nobody told". Guide states it
A third case: a signed-in user starts a flow declared to run as the system, which creates the record ownerless, so the rule picks
Nothing; one more proven sentence in the guide
Same PR, one test case; no precedent
C Let a signed-in insert opt into assignment
A request option through every data door plus an ADR-0142 amendment (governed surface)
A writer or integration can ask for the rule to pick instead of owning the record
New capability; no precedent
In business terms: A is "what you create is yours; rules sort what arrives unowned". B proves that on a side door. C is Salesforce's "assign using active assignment rules" checkbox, which ADR-0142 left out on purpose.
Four axes
os-decision-facets
① 项目长远合理性:A pins the ownership rule every reader of ADR-0142 relies on and adds no contract; B adds none either, only a test; C adds a per-request option on every door and reopens merge question 4.
② 实际业务拉动:the card's reach was measured on the public form, which A proves. B's path has zero consumers (premise 5). C has no card and no deployment asking (search/issues on the opt-in: 0 open).
③ 防 AI 犯错:A's pin fails loudly if a later change routes owned inserts or drops the creator half of the condition; without it an author's flow tells people about their own records, with no error.
④ 创业阶段不扩散:A and B declare nothing; C is a permanent option on every write door for no measured consumer.
The accepted decisions the search also named (ADR-0074 §1, ADR-0055 §3, ADR-0057 D4, ADR-0103 D2, ADR-0131 D3/D9/D13, ADR-0132 D1) were read by title only; none is about who owns an insert.
Self-check: on ① alone the pick is A; do ②③④ flip it: no.
Recommendation and gaps
Recommend A. The ruling's intent is that a rule's pick is told by a flow, proven on a real intake path. That is met, and the guide tells the truth on the paths where assignment runs.
Not B: a legitimate path, but "signed-in" is incidental to it. It would prove that a system-run flow's create is routed, which nothing consumes today. If wanted it is one case in the same PR, not a new card.
Not C: a new capability and an ADR-0142 amendment, so a separate Feature card behind merge question 4, on measured pull. Not this ruling.
Gaps, none of which changes the pick:
The guide's "a flow that runs as the system" is read from owner-anchor-stamp.ts:23-27 plus premise 2, not run. B would run it.
Merge question 4's cost line says an integration that wants the rule "must leave the owner empty"; a key-authenticated writer's empty owner is stamped (premise 1), so that road is closed to it. Carrier: merge question 4; noted, not filed.
Ruled: 2026-12-04T10:19Z · term (1) of ruling 7406185221 amended — A, accept the pin: the public-form arm proves the rule's pick is told exactly once; the signed-in arm pins measured ADR-0142 D5 behaviour (a signed-in or key-authenticated create is owned by the writer, no pick, nobody told). Letter C of 7406185221 otherwise unchanged.
Authority: Tesla (os-tesla), decision card in the project decision thread, tapped 2026-12-04T10:18:56Z, option 「认可现有验证」 on 「登录用户自己建的单不走分配,这条验证怎么收?」.
Analysis: 7408130454 (Served-tier: CONTRACT_REVIEW_TIER). Freshness: no comment after the analysis.
Ruled terms (analysis "After the ruling", If A): PR test(dogfood), docs(automation): the person an assignment rule picks is told by a record-change flow #39603 takes the gap-2 clause (the guide's bare "an import" narrowed: a person's REST/CSV import is stamped to them), leaves draft, goes to review. Terms (2)–(4) unchanged; the skill recipe (term 3) carries the same "what you create is yours" sentence. No system-run-flow arm; no opt-in for signed-in inserts (that would be its own Feature card citing ADR-0142 merge question 4, not filed).
2026-12-04T13:59Z · Done, per term (4) of ruling 7406185221: terms (1) and (2) merged in PR #39603 (term 1 as amended by 7408557936), term (3), the automation skill recipe and eval, merged in PR #39666 (b8aee1ec1e, card #39580 closed). Both Part of PRs are on main; the card closes as completed and pm:dispatched is removed.
area:workflowApprovals and automation — the work that runs without a person driving itenhancementNew feature or requestpriority:p2Medium: important, M3
Activity
objectstack-fleet commentedon Dec 4, 2026
triage@hotlong · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: lands in area:workflow · Feature · p2 · needs-user-decision · size M, touched 2026-12-04T06:58Z. Rationale: the filer's area and grade stand. This is item 4 split from #39422, on request 7404078196. When an assignment rule hands a record to someone, that person gets no notification. Whether a "record assigned to you" notice should exist, and whether it is on by default or opt-in per rule, is a product call, so the card goes to the maintainer instead of
pm:queue, and nothing is built before the answer. Options as the card states: (a) default-on inbox notice, (b) a per-rule switch, off by default, (c) not now. Issue type set to Feature.Grade: area:workflow · Feature · p2 · teams routing records through assignment rules and queues · read (from #39422; only approval
sys_notificationrows after routing).objectstack-fleet commentedon Dec 4, 2026
repo:objectstack@os-tesla · os-tesla · session_01L9qibwHwLPqS2dsjTpyXhw
维护者速读
Served-tier: CONTRACT_REVIEW_TIER
Analysed-by: session_01L9qibwHwLPqS2dsjTpyXhw
Decision analysis
Read at
origin/main=e43597b1. Every premise below carries the command that re-reads it.Background
Item 4 of #39422, split out as this card. In a new-company walkthrough a public form creates an ownerless repair request; an assignment rule the organization authored routes it to a queue and round-robin hands it to one member. That member is told nothing. The card asks whether the platform should tell the person an assignment rule hands a record to, and if so whether that is on by default or switched on per rule.
Two facts found while measuring change the shape of the question:
notifystep, templates). It also records one rejected alternative, a per-object switch, as "the platform makes the business decision and then ships a regret switch", plus protocol surface. Assignment rules did not exist then (ADR-0142 is dated 2026-10-25), so 废弃内核内置「分配通知」(writeAssignmentNotifications),改由自动化流程承载 #3403 does not literally answer this card. Its reasoning does bear on every option.lead_assignmentflow fires on lead creation and notifies the owner the assignment rule picked, with different wording and channels for hot and standard leads.Governing text
Governing text:none found that answers the question for assignment rules. Closest texts, all read:docs/adr/0142-ownership-queue-membership-claim-and-assignment-rules.md:576-577: "What the rule writes.owner_id… andqueue… Nothing else". Silent on telling anyone. Options A and B amend this paragraph.:857-860: a queue is not a messaging audience; "nobody to alert for ownerless intake" stays open. That is about parked records, not about an assigned person.docs/adr/0077-authoring-surface-boundary-hook-flow-validation.md:72and:82: "When X happens, run a sequence (notify, …)" is a flow; an after-write side effect that business may want to see or change is a flow. Author guidance for app automation; it does not forbid a platform notice (approvals and mentions send their own).docs/adr/0030-notification-platform-convergence.md:24: every notification producer calls the oneemitingress. Binds how A or B would be built, not whether.packages/plugins/plugin-audit/src/audit-writers.ts:2858-2864("Deciding that an owner/assignee change warrants a bell is a business policy, not a platform default") andcontent/docs/releases/v17/17-0.mdx:1165-1166. An issue and a code comment, not an ADR.Search:
node scripts/pm/check-prior-rulings.mjs --card 39527 --terms assignment,notification,notify,assignee,queue,audience,inboxandgit grep -n -iE 'assignment notif|3403' origin/main -- packages docs/adr content/docs AGENTS.md.No option conflicts with an accepted ADR. Option A runs against the #3403 conclusion and is offered only because that conclusion is the maintainer's own to narrow.
Protocol statement
Metadata-protocol: added. A also changes default behaviour for every deployment that has rules.Premises (each with its re-check)
name,criteria,assignTo,strategy,load(packages/spec/src/automation/assignment-rule.zod.ts:66-81); rule keys arename,label,description,object,active,entries(:161-173); both are closed, an unknown key is refused (:10). The organization's rule record has no such column either (packages/plugins/plugin-sharing/src/objects/sys-assignment-rule.object.ts:78-176).Re-check:
git grep -c -iE 'messaging|notif|\.emit\(' origin/main -- packages/spec/src/automation/assignment-rule.zod.ts packages/plugins/plugin-sharing/src/objects/sys-assignment-rule.object.ts packages/objectql/src/assignment-rules.ts packages/plugins/plugin-sharing/src/assignment-rule-hooks.tsprints nothing.packages/objectql/src/assignment-rules.ts:58-61(contract),:535(queue),:557(member picked),:593(user target). The evaluator has no messaging dependency (same re-check as 1).packages/objectql/src/engine-insert.ts:1121-1133; the after-insert dispatch carries the stored row at:1694-1698;record-after-createbinds to that dispatch (packages/triggers/trigger-record-change/README.md:36).Re-check:
git show origin/main:packages/objectql/src/engine-insert.ts | sed -n '1121,1133p;1694,1698p'. Read, not run (see confidence gaps).packages/plugins/plugin-audit/src/audit-writers.ts:2858-2864;packages/services/service-messaging/src/recipient-resolver.ts:67-73;content/docs/releases/v17/17-0.mdx:1165-1166.Re-check:
git grep -n 'framework#3403' origin/main -- packagesandgh api repos/objectstack-ai/objectstack/issues/3403 --jq .body.content/docs/getting-started/common-patterns.mdx:264-298("Task Assignment Notification"); shipped exampleexamples/app-showcase/src/automation/flows/index.ts:168-210.Re-check:
git grep -n "showcase_task_assigned_notify" origin/main -- examples/app-showcase/src/automation/flows/index.ts.content/docs/automation/queues-and-assignment-rules.mdx:116,:169,:179).Re-check:
git grep -n -iE 'notif|alert' origin/main -- content/docs/automation/queues-and-assignment-rules.mdxprints exactly those three lines.bde4be7,src/sales/flows/lead-assignment.flow.ts:81(fires on create),:101-125(hot lead: inbox and e-mail, warning, its own template),:138-153(standard lead: inbox, another template),:202(only when someone else put the lead in the owner's name). Its header (:31-39) records that the first version failed at the notify step for an ownerless lead.Re-check:
git -C ../hotcrm grep -n -E "notify_hot|notify_std|record-after-create" bde4be7 -- src/sales/flows/lead-assignment.flow.ts.packages/services/service-messaging/src/messaging-service-plugin.ts:384-386); e-mail, SMS, push and Slack channels ship as files beside it. Preferences are on by default and can be turned off per topic and channel by a person or as an organization default (packages/services/service-messaging/src/preference-resolver.ts:172-178).Re-check:
git ls-tree --name-only origin/main packages/services/service-messaging/src/ | grep -E 'channel\.ts$'.packages/plugins/plugin-approvals/src/approval-service.ts:8485-8497,:3505-3512); escalation'snotifySubmitterdefaults to true (packages/spec/src/automation/approval.zod.ts:909); mentions stay a platform behaviour (packages/plugins/plugin-audit/src/audit-writers.ts:2866-2868). In each, telling the person is the point of the feature: an approver has to act, a mention is addressed to someone.Re-check:
git grep -n -E "topic: 'approval.requested'|notifySubmitter: z.boolean" origin/main -- packages/plugins/plugin-approvals/src/approval-service.ts packages/spec/src/automation/approval.zod.ts.Re-check:
for f in $(git grep -l -E 'assignmentRules|sys_assignment_rule' origin/main -- 'packages/**/*.test.ts' 'examples/**' | sed 's/^origin\/main://'); do git grep -l -E "'notify'|sys_inbox_message" origin/main -- "$f"; doneprints nothing.packages/objectql/src/assignment-rules.ts:536); no option on this card tells anyone about it.1. The problem in one sentence
When a rule gives a new record to a person, that person finds out only by opening their list, and the organization has no obvious place to switch a notice on.
2. Options, real cost, effort
area:workflow· 5 PRs: rule key through both rule sources and the engine (#30760, +1296/−36, 23 files); notice text in eleven languages (#30856, +742/−2); ADR amendment (#30828, +38/−3); guide and skill (#30866, +55/−16); HotCRM switch-off (no precedent)area:workflow· 4 PRs: the first four of A, same precedentsarea:workflow· 2 PRs: guide section and test (#30866, +55/−16 for the guide; test: no precedent); skill recipe and eval, a governed surface (#33577, +21/−15)By the measured precedents A and B are about 2,100 changed lines and C under 100 plus one unsized test: well over three times apart. No fourth option is offered: a one-click starter flow from the rule page would need a flow-template mechanism the Console does not have (
git grep -l -iE 'FlowTemplate|starter.?flow' origin/main -- 'ui/packages/**'prints nothing).3. What each option means in business terms
4. The four axes, from the business side
Long-term soundness. End state in two years: an organization decides who is told about what in one visible place, its flows, with wording, channel and conditions it owns, and routing rules stay pure routing. ServiceNow models it that way; Salesforce keeps a template field on the rule entry but has put its automation investment into Flow. C is that end state with the missing signpost added. B puts a second, fixed-wording notifier inside routing; the first real consumer already needs two wordings and two channel sets by lead rating (premise 7), so the next asks (e-mail too, different text per priority) arrive as more keys on the rule or send the customer to a flow anyway. A adds the same surface and also decides policy for every customer, which is what #3403 took out.
Business pull. One hit: the fleet's own new-company walkthrough on #39422, not a customer deployment (read from that card, not re-measured). HotCRM needed the outcome in October and built it as a flow; its history shows the pain was in getting the flow's conditions right (a failed run for an ownerless lead, then owners notified about their own leads), not in the absence of a switch. So the outcome has pull and is served; a rule-level switch has one walkthrough behind it and would not replace HotCRM's flow.
Keeping AI authors from mistakes. B is the hardest to get wrong: one closed yes/no key, and a misspelling is refused when the app is built. C asks an AI author to write a small flow with an owner condition; when that condition is missing the run fails at the notify step and shows red in run history (loud), while notifying people about records they created themselves is noise with no error (quiet). A needs nothing written, but an app that already has its own flow sends two notices and nothing anywhere says so (silent). This axis ranks B first, C second, A last.
Not spreading at startup stage. C adds no key. B adds one key in two places plus a platform-owned sentence in eleven languages, each a permanent obligation with one walkthrough as its consumer. A adds the same and changes behaviour for every existing deployment.
os-decision-facets
Prior rulings read: assignment,notification,notify,assignee,queue,audience,inbox → 40 hits; ADR-0077 Decision §2, ADR-0030 Decision §2, ADR-0142 D5; thread: none; repo: objectstack-ai/objectstack
The other hits the search named (ADR-0022 §1, §2, §4, §5, ADR-0131 D2, ADR-0146 D7, ADR-0018 §3) were opened and do not bear on notices for assigned records. ADR-0142 is Proposed as amended and is silent on notices. Read outside the three corpora: #3403 and #3404.
Self-check: on ① alone the pick is C; do ②③④ flip it: no (③ prefers B and is stated above; it does not outvote ①, and ②④ agree with C).
5. Recommendation and confidence gaps
Recommend C. It is the long-term shape: who is told, in what words and on which channel is the organization's policy and lives in its flows, which is what the July conclusion decided and what the first consumer does. What is actually missing is that the guide for assignment rules does not say so and nothing proves the two features work together.
Effort note required by the template: the ① readings of B and C are not far apart for the no-code administrator, and the effort differs by more than 3×; the recommendation rests on ①, not on the effort.
Confidence gaps, none of which changes the pick:
6. After the ruling
Rule the direction only; the rest follows from it.
Metadata-protocol: none.notifyAssignee, defaultfalse, after thenotifySubmitterprecedent (packages/spec/src/automation/approval.zod.ts:909); the organization's rule record gets the matching column and Setup a tick box; the key is refused on an entry that parks (queue target, no strategy), because there is nobody to tell; the notice is sent after the write succeeds, through the single ingress, inbox only, one fixed topic, wording in eleven languages, mutable through existing preferences. Order: ADR-0142 D5 amendment first, then spec with its reader in one PR, then translations, then guide and skill.Metadata-protocol: added.true, plus: the changeset states the behaviour change; a HotCRM PR lands in the same release so its reps are not told twice; and the ruling says in one sentence that the July conclusion is narrowed for rule-driven assignment, so later seats do not read it as overturned for owner changes in general.Related
src/sales/flows/lead-assignment.flow.tsatbde4be7objectstack-fleet commentedon Dec 4, 2026
repo:objectstack@os-tesla · os-tesla · session_01L9qibwHwLPqS2dsjTpyXhw
Ruled: 2026-12-04T08:36Z · C: assignment rules do not notify the assignee built-in; a flow does it. Platform behaviour unchanged; the guide and the automation skill teach the recipe, proven by a test.
Metadata-protocol: none.pm:queue.objectstack-fleet commentedon Dec 4, 2026
repo:objectstack@os-tesla · os-tesla · session_01L9qibvMXrDPhCt3pGziYWE
Claim: PM loop round 1 · 2026-12-04T08:40Z
Session:
session_01L9qibvMXrDPhCt3pGziYWEAccount:
os-teslaArea: ot-flow
Branch:
claude/issue-39527-wipWorktree:
objectstack-issue-39527Domain:
domain:devxSeat:
repo:objectstack@os-teslaFile surface:
packages/qa/dogfood/test/assignment-rule-flow-notifies-owner-39527.dogfood.test.ts(new),content/docs/automation/queues-and-assignment-rules.mdx. Stop on breach; explain in the report. ⛔ Not in this claim: the automation skill recipe and eval (ruled term 3, governedskills/**), which goes to its owndomain:skillscard the seat files.Container & model:
M,mode:subagent,model: default (dispatch-gates --tier: no path-derived mandate),effort: highClause-②: no
Metadata-protocol: none
Responsibility:
n/a — not a defect card(ruled C: no runtime change; a failing test means a defect card on the flow path)Thread-read: 7406185221
Premise: holds (ruling 7406185221 premises, re-read on
origin/main: the guide's only notification lines are about queues and parked records; no test ties a rule's pick to a delivered notice)Pre-claim lane:
domain:devxby file (dogfood suite,content/docs); stays in this seat.Pre-claim deps: none named; ruling recorded.
Prior rulings read: Ruling-ref 7406185221 (Tesla, decision tap 2026-12-04T08:33:41Z, option 「不内置,用流程配提醒」): "(1) The workflow lane lands a dogfood test — organization rule with round-robin plus a flow on record creation that notifies the owner, asserting exactly one inbox message for the picked member, for a signed-in writer and for a public-form submission; failure ⇒ a defect card on the flow path. (2) The assignment-rules guide gains a "tell the person who received it" section with that flow, and says a parked record tells nobody."
check-prior-rulings.mjs --card 39527: 0 hits on the surface.Serial constraints cleared:
check-handover.mjs --inflightover both files reads no overlap; unread surfaces read by hand, none inpackages/qa/dogfood/testorcontent/docs/automation.objectstack-fleet commentedon Dec 4, 2026
repo:objectstack@os-tesla · os-tesla · session_01L9qibvMXrDPhCt3pGziYWE
os-dev-report
{ "issue": 39527, "status": "done", "branch": "claude/issue-39527-wip", "pr": "https://github.com/objectstack-ai/objectstack/pull/39603", "session": "session_01L9qibvMXrDPhCt3pGziYWE", "premise_still_valid": true, "summary": "Ruled terms (1) and (2) of 7406185221, as draft PR #39603 (Part of #39527, no closing keyword). Term (1): a new dogfood test boots a stack with a public intake form, a record-after-create notify flow and the organization's own sys_queue, sys_queue_member and round-robin sys_assignment_rule, each authored by the administrator through the data door. Two public-form submissions go to the two members in turn, each member gets exactly one inbox message for their record and the other gets none. That runs analysis premise 3, which held. MEASURED DIFFERENCE: the signed-in-writer arm cannot pick a member. The owner-anchor stamp makes a data-door create the writer's own, and ADR-0142 D5 (merge question 4) keeps the rule off owned inserts; the public form is always anonymous. So that arm pins what actually happens: the writer owns the record, the cursor does not move, nobody is told. Term (2): the guide gains 'Tell the person who received it', with the flow as an os:check example, both halves of the condition explained, 'a parked record tells nobody', and a checklist line. No runtime, spec or skills change. Branch name is the claim's claude/issue-39527-wip, not a -wip backup branch.", "tests": "At head 9644767fa3, after rebuilding the packages the origin/main merge touched: `pnpm --filter @objectstack/dogfood exec vitest run --maxWorkers=2 test/assignment-rule-flow-notifies-owner-39527.dogfood.test.ts` under os-verify-lock, VERDICT command-exit 0, 'Test Files 1 passed (1) / Tests 3 passed (3)'. Guard check: with the start condition cut to !isBlank(record.owner_id), the signed-in case went red ('nobody is told about a record its owner filed: expected [ {...} ] to deeply equal []'), VERDICT command-exit 1; restored from HEAD and the tree was clean. `pnpm --filter @objectstack/dogfood typecheck` exit 2: 8x TS7016 on other files (plugin-email, plugin-sharing and service-knowledge dists without .d.ts in this box's cache), 0 errors in the new file, which is inside include test/**/*. No ablation of platform behaviour: the diff changes none.", "gates": "Derived with `node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack` at 9644767fa3, after merging origin/main: 82 commands. Each was run with its exit code captured before any pipe; `--ran` reconciliation: '82 derived famil(ies) accounted for, 76 run, 6 NOT-MEASURED'. 75 exit 0, plus spec check:skill-examples exit 0 on a re-run after building client-react; its first run was exit 3, no client-react dist. NOT-MEASURED: check-comment-mask-corpus, check:query-options-erasure, check:slot-lookup, check:type-check-debt (killed at the local 280 s cap, exit 124, whole-tree scans); check-plugin-teardown-shape --self-test (exit 3, positive control pinned to a commit the shallow clone cannot reach); check:dual-build-cjs-loads (exit 3, unbuilt dists outside the diff). CI check-runs on #39603 not yet read: NOT MEASURED, reason: report delivered at the end of local verification. Dogfood Regression Gate runs only in the merge queue (per derivation).", "files_changed": [ "packages/qa/dogfood/test/assignment-rule-flow-notifies-owner-39527.dogfood.test.ts (new, +274)", "content/docs/automation/queues-and-assignment-rules.mdx (+57)" ], "line_budget": "331 changed lines (+331/-0), under the 3000 human-merge threshold; no skills/** edit, so no skill line budget applies", "deviations": [ "The signed-in-writer arm of ruled term (1) pins measured ADR-0142 behaviour (no pick, no notice), not 'exactly one inbox message for the picked member'; see open_questions", "The test and typecheck ran before the origin/main merge, and the test ran again on the merged head; local gate runs were capped at 280 s each, so 4 whole-tree families are NOT-MEASURED" ], "mcp_calls": "0", "api_writes": "2 relay strokes: pr_create (POST /repos/objectstack-ai/objectstack/pulls draft, POST .../issues/39603/assignees os-tesla, POST .../issues/39603/labels skip-changeset; read-back identical, 5165 bytes) and the os-dev-report comment (POST .../issues/39527/comments via post-stamped.mjs). Plus git push (not REST) of the branch.", "classifier_refusals": [], "open_questions": [ { "question": "Ruled term (1) asks for exactly one inbox message for the picked member 'for a signed-in writer', but a signed-in writer's create is never routed (owner-anchor stamp; ADR-0142 D5 and merge question 4). Is the measured pin (writer owns it, no pick, nobody told) acceptable for that arm?", "options": [ "A: accept the pin as landed: it proves the recipe does not tell a person about their own record, and the guide says so", "B: add a third arm where a signed-in writer starts a flow that runs as the system and creates the record (routed, so exactly one notice), as a follow-up in this PR", "C: send back to the maintainer whether a signed-in writer should be able to opt an insert into assignment (ADR-0142 merge question 4)" ], "recommendation": "A, because the ruling's intent (prove a rule's pick is told by a flow, from a real intake path) is met by the public-form arm, and the signed-in arm now pins true, decided behaviour instead of a premise that does not hold. B adds a less common path at small cost if the seat wants it." } ], "security_findings": "none", "out_of_scope_findings": [ "carrier: #39415 · noted, not filed. On the pre-merge base, POST /data/sys_assignment_rule without organization_id answered 400 VALIDATION_FAILED 'Organization is required' while sys_queue and sys_queue_member were accepted without it. The origin/main merged into this branch already carries the sys_assignment_rule organization stamp (sys-assignment-rule.organization-stamp-39415.test.ts), so this was not re-measured on the merged head." ] }objectstack-fleet commentedon Dec 4, 2026
repo:objectstack@os-tesla · os-tesla · session_01L9qibwHwLPqS2dsjTpyXhw
Term (1) signed-in arm back to the maintainer — premise of ruling 7406185221 term (1) re-read on draft PR #39603; the landing holds.
维护者速读
Served-tier: CONTRACT_REVIEW_TIER
Analysed-by: session_01L9qibwHwLPqS2dsjTpyXhw
Delta analysis: the signed-in arm of ruled term (1)
Delta on analysis 7404354298 and ruling 7406185221. Read at
origin/main93177221, PR #39603 head94962490d, hotcrm3377e242. The direction (flows tell the assignee, nothing built in) is not reopened. One clause of term (1) rests on a premise measurement falsified, the one ground on which a ruled card returns to the box.What changed against the ruled analysis
Its "If C" step (1) asked for exactly one inbox message for the picked member "once for a signed-in writer". None of its 11 premises said a signed-in create is routed; the clause was written unmeasured, and it is false. Everything else stands. Its confidence gap 1 is closed: premise 3 (an after-create flow sees the owner the rule wrote) is now run and holds on the public-form arm.
Premises (each with its re-check)
packages/plugins/plugin-security/src/owner-anchor-stamp.ts:86(else if (stamp.userId) row.owner_id = stamp.userId), called atsecurity-plugin-authz-middleware.ts:2170. An API key acts as its user, so the same holds for a key-authenticated integration.Re-check:
git show origin/main:packages/plugins/plugin-security/src/owner-anchor-stamp.ts | sed -n '8,11p;23,27p;86p'.packages/objectql/src/assignment-rules.ts:360; ADR-0142 D5docs/adr/0142-ownership-queue-membership-claim-and-assignment-rules.md:533-539("a middleware-stamped owner is the acting user's own record … A writer cannot opt an owned insert into assignment in this record"); merge question 4 at:837-840calls it "the reversible direction".Re-check:
git show origin/main:docs/adr/0142-ownership-queue-membership-claim-and-assignment-rules.md | sed -n '533,539p;837,840p'.:251-266); with the creator half of the flow condition cut it goes red (dev report 7407947332). Not re-run in this analysis.src/sales/assignment-rules/lead.assignment-rule.ts:8-13("A person's own create, and every REST or CSV import, is stamped with the writer and never routed"),src/sales/flows/lead-assignment.flow.ts:22.crm_leadandcrm_case; nocreate_recordnode writes either, and no example app in this repo declares a rule.Re-check:
git -C ../hotcrm grep -n -A8 "type: 'create_record'" 3377e242 -- 'src/**/*.flow.ts' | grep -E "objectName: 'crm_(lead|case)'"andgit grep -l defineAssignmentRule origin/main -- 'examples/**'both print nothing.content/docs/automation/queues-and-assignment-rules.mdx:219: a rule routes only records that arrive with no owner; a signed-in person, and an API key, own what they create (L1 rework 7408024985, landed in90e9cc5e5).So the falsification is real, and it is decided behaviour, not a defect.
Options
In business terms: A is "what you create is yours; rules sort what arrives unowned". B proves that on a side door. C is Salesforce's "assign using active assignment rules" checkbox, which ADR-0142 left out on purpose.
Four axes
os-decision-facets
search/issueson the opt-in: 0 open).Prior rulings read: assignment,owned,insert,stamp,opt-in,writer → 87 hits; ADR-0142 D5; thread: 7406185221; repo: objectstack-ai/objectstack
The accepted decisions the search also named (ADR-0074 §1, ADR-0055 §3, ADR-0057 D4, ADR-0103 D2, ADR-0131 D3/D9/D13, ADR-0132 D1) were read by title only; none is about who owns an insert.
Self-check: on ① alone the pick is A; do ②③④ flip it: no.
Recommendation and gaps
Recommend A. The ruling's intent is that a rule's pick is told by a flow, proven on a real intake path. That is met, and the guide tells the truth on the paths where assignment runs.
Gaps, none of which changes the pick:
owner-anchor-stamp.ts:23-27plus premise 2, not run. B would run it.:9,:219) reads wider than the code: the stamp's doc means system imports (:25-26), and premise 4 says a person's REST or CSV import is theirs. Read, not run. One clause of prose in test(dogfood), docs(automation): the person an assignment rule picks is told by a record-change flow #39603 ("an import the system runs"), no decision.After the ruling
Related
#39422 · PR #39603 · L1 7408024985 · dev report 7407947332 · ADR-0142 D5, merge question 4 · hotcrm
lead.assignment-rule.ts,lead-assignment.flow.tsobjectstack-fleet commentedon Dec 4, 2026
repo:objectstack@os-tesla · os-tesla · session_01L9qibwHwLPqS2dsjTpyXhw
Ruled: 2026-12-04T10:19Z · term (1) of ruling 7406185221 amended — A, accept the pin: the public-form arm proves the rule's pick is told exactly once; the signed-in arm pins measured ADR-0142 D5 behaviour (a signed-in or key-authenticated create is owned by the writer, no pick, nobody told). Letter C of 7406185221 otherwise unchanged.
objectstack-fleet commentedon Dec 4, 2026
repo:objectstack@os-tesla · os-tesla · session_01L9qibvMXrDPhCt3pGziYWE
2026-12-04T13:59Z · Done, per term (4) of ruling 7406185221: terms (1) and (2) merged in PR #39603 (term 1 as amended by 7408557936), term (3), the automation skill recipe and eval, merged in PR #39666 (
b8aee1ec1e, card #39580 closed). BothPart ofPRs are onmain; the card closes as completed andpm:dispatchedis removed.