Repository navigation
docs(cluster, connectors): lane 2 also converges connector definitions on every replica - #28050
Conversation
…s on every replica cluster.mdx section 6.2: the lane 2 row and subsection now state that the peer's replay into its onMetadataMutation listeners re-arms flows and queues the automation plugin's soft connector reconcile for a connector mutation that is not a draft, from the replica's own re-read, and that a direct active save re-materialises the writing replica. connectors.mdx: the runtime-reload row names a publish, a direct active save or a delete on any replica. Claude-Session: https://claude.ai/code/session_01QSeKYmTYfaPbLQD4BJfomW Co-authored-by: Claude <noreply@anthropic.com>
…r user Claude-Session: https://claude.ai/code/session_01QSeKYmTYfaPbLQD4BJfomW Co-authored-by: Claude <noreply@anthropic.com>
…ne2-connector-docs
…ed, not synchronous The originNode loopback-suppression bullet said the connector reconcile had already run synchronously at the door. On lane 2 the writer's reconcile is queued on its reconcile queue by the local half of the same signal, and the save does not wait for it. On lane 4 the credential door queues one job that writes the row, publishes, then runs the reconcile, and answers only after that reconcile finishes. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QSeKYmTYfaPbLQD4BJfomW
|
domain:devx#2 · os-justin · session_01QSeKYmTYfaPbLQD4BJfomW 席位核对 — ACCEPT · domain:devx#2 · head
|
domain:devx#2 · os-justin · session_01QSeKYmTYfaPbLQD4BJfomW
Fixes #28030
Clause-②: no
Metadata-protocol: none
维护者速读
cluster.mdx§6.2 的 lane 2 表格行与「Lane 2」小节补写:同一次metadata.mutated回放还会让自动化服务在每个副本上重新物化连接器(非草稿的connector变更),直接的 active 保存也会让写入副本自己生效;connectors.mdx故障表的 runtime reload 行补全触发路径(发布、直接 active 保存、删除,任一副本);§6.2 家族规则「originNode回环抑制」一条改正:连接器 reconcile 在写入副本上是排队执行的,不是在门处同步跑完。.mdx文件、不发布任何包;回滚即还原本 PR。content/docs/kernel/cluster.mdx(Lane 2 小节新增的两段,逐句对照packages/services/service-automation/src/plugin.ts的subscribeFlowMutations与queueConnectorMutationReconcile);content/docs/automation/connectors.mdx第 458 行。pnpm check:doc-authoring && pnpm check:doc-anchors,预期两者均 exit 0;或打开文档站 /docs/kernel/cluster 的 6.2 节,看到 lane 2 小节新增「The same replay converges…」一段。What changes
Docs only. Every sentence is written from the code on
mainafter PR #28028 (cc5586da8c).content/docs/kernel/cluster.mdx§6.2, lanes table, lane 2 row, "Converges" column: after ObjectQL's OBJECT registry, the same replay also converges the automation service's armed flows and its materialized connectors (aconnectormutation that is not a draft), each from the replica's own re-read.content/docs/kernel/cluster.mdx§6.2, "Lane 2 —metadata.mutated" subsection: two new paragraphs.applyRemoteMetadataMutationreplays the event into its localonMetadataMutationlisteners after the write-through, and never re-publishes it.AutomationServicePlugin's listener re-arms aflow. For aconnectormutation that is not a draft (active or deleted), it queues the soft reconcile thatmetadata:reloadedruns. That reconcile re-reads the declaration throughgetMetaItemsForExecution(the registry with thesys_metadataoverlay rows over it). One signal and no second channel; lane 4 stays the credential channel. A draft is dropped twice: the publisher does not publish it, and the listener returns onstate === 'draft'.PUT /api/v1/meta/connector/:name) raises nometadata:reloaded, so the local half of the same signal is what re-materializes it. A publish raises both signals, and the second reconcile is a no-op on unchanged signatures. Mutation-queued reconciles coalesce, and a failure is logged atwarn.content/docs/kernel/cluster.mdx§6.2, family bullet "originNodeloopback suppression" (file-surface extension the seat authorised at review): it said the connector reconcile "already ran, synchronously, at the door". It now says the write-through and the pool rebuild run synchronously at the door, and a connector reconcile is queued on the writer's reconcile queue. On lane 2 the local half of the same signal queues it (emitMetadataMutationnotifies local listeners before it publishes), and the save does not wait for it. On lane 4 the credential door queues one job that writes the row, publishes, then runs the reconcile, and answers only after that reconcile finishes.content/docs/automation/connectors.mdx:458, the failure-modes row "A bad entry arrives via runtime reload": its trigger list now names a Studio publish, a direct active save, or a delete, on any replica (linking §6.2), or a dev reload.Tests
Prose only, so there is no package test. The docs gate families are under Verification.
Acceptance notes
connector-definition-cluster.test.tsasserts "the flow save still arms the flow on both replicas". Without the flow clause, the edited row would list the listener's connector half as if it were the whole of it. Same row, same subsection, same claimed file surface.mainat merge time;mainwas merged at5aee206543, andorigin/mainhad not moved when the final gates ran.Verification
Derived-family readings are at head
16f6a55a5f, after the merge ofmain5aee206543. The follow-up commite3ce3a96ccchanges only the loopback bullet, and its readings are listed separately below.Derived docs gate families
node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstackderived 43 commands over the 2 changed paths. All 43 were run, with each exit code captured before any pipe.--ranreconciliation (exit 0):✓ dispatch-gates --ran: 43 derived famil(ies) accounted for — 43 run, 0 NOT-MEASURED (a DERIVED zero — all 43 recorded an exit code and none of them is 3).pnpm check:doc-authoringexit 0,pnpm check:doc-anchorsexit 0 (the new#62-the-cluster-invalidation-familylink),pnpm check:nul-bytesexit 0.16f6a55a5f. On an earlier pass, before any build,check:doc-formula-expressions,check:doc-security-posture,check:docs-transcript-driftandcheck:skill-examplesrefused with exit 3 (prerequisite not met, nothing measured), andcheck:docsexited 1 becausegen:schemaoutput was missing. After@objectstack/lint...and@objectstack/client-react...were built underos-verify-lock.sh(VERDICT command-exit 0both), every family measured and passed.Follow-up commit e3ce3a9 (loopback bullet)
pnpm check:doc-authoringexit 0.pnpm check:doc-anchorsexit 0:832 internal #fragment link(s) across 478 source file(s) all resolve to a real heading.pnpm check:nul-bytesexit 0.Generated by Claude Code