Skip to content

docs(cluster, connectors): lane 2 also converges connector definitions on every replica - #28050

Merged
objectstack-fleet[bot] merged 4 commits into
mainfrom
claude/issue-28030-lane2-connector-docs
Oct 30, 2026
Merged

objectstack-fleet[bot] merged 4 commits into
mainfrom
claude/issue-28030-lane2-connector-docs

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

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 在写入副本上是排队执行的,不是在门处同步跑完。
  • 为什么改:PR fix(service-automation): converge a connector definition change on every replica #28028 合入后运行时已经这样工作,这两处文档仍写着 lane 2 只收敛 ObjectQL 对象注册表、reload 只来自 Studio 发布或 dev 重载,读文档的 AI 会得出错误结论。
  • 风险与回滚:纯文档,两个 .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 main after 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 (a connector mutation 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.
    • On a peer, applyRemoteMetadataMutation replays the event into its local onMetadataMutation listeners after the write-through, and never re-publishes it. AutomationServicePlugin's listener re-arms a flow. For a connector mutation that is not a draft (active or deleted), it queues the soft reconcile that metadata:reloaded runs. That reconcile re-reads the declaration through getMetaItemsForExecution (the registry with the sys_metadata overlay 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 on state === 'draft'.
    • On the writer, a direct active save (PUT /api/v1/meta/connector/:name) raises no metadata: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 at warn.
  • content/docs/kernel/cluster.mdx §6.2, family bullet "originNode loopback 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 (emitMetadataMutation notifies 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

Verification

Derived-family readings are at head 16f6a55a5f, after the merge of main 5aee206543. The follow-up commit e3ce3a96cc changes 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/objectstack derived 43 commands over the 2 changed paths. All 43 were run, with each exit code captured before any pipe. --ran reconciliation (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-authoring exit 0, pnpm check:doc-anchors exit 0 (the new #62-the-cluster-invalidation-family link), pnpm check:nul-bytes exit 0.
  • All 43 exited 0 on the final run at 16f6a55a5f. On an earlier pass, before any build, check:doc-formula-expressions, check:doc-security-posture, check:docs-transcript-drift and check:skill-examples refused with exit 3 (prerequisite not met, nothing measured), and check:docs exited 1 because gen:schema output was missing. After @objectstack/lint... and @objectstack/client-react... were built under os-verify-lock.sh (VERDICT command-exit 0 both), every family measured and passed.
Follow-up commit e3ce3a9 (loopback bullet)
  • pnpm check:doc-authoring exit 0.
  • pnpm check:doc-anchors exit 0: 832 internal #fragment link(s) across 478 source file(s) all resolve to a real heading.
  • pnpm check:nul-bytes exit 0.

Generated by Claude Code

…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>
@objectstack-fleet objectstack-fleet Bot added the skip-changeset PR has no user-facing published change; bypasses the changeset gate label Oct 30, 2026
@github-actions github-actions Bot added size/s documentation Improvements or additions to documentation labels Oct 30, 2026
…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
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:devx#2 · os-justin · session_01QSeKYmTYfaPbLQD4BJfomW

席位核对 — ACCEPT · domain:devx#2 · head e3ce3a96cc · 2026-10-30T11:06Z

维护者速读

  • 改了什么:cluster.mdx §6.2 一共改三处。lane 2 表格行和「Lane 2」小节写明:同一次 metadata.mutated 回放也会让每个副本按自己读到的结果,重新物化自动化服务的连接器(只管非草稿的 connector 变更);直接的 active 保存,也由同一信号的本地一半让写入副本自己生效。家族规则「originNode 回环抑制」一条改正为:写入副本上的连接器 reconcile 是排队执行的,不是在门处同步跑完。另外,connectors.mdx 故障表的 runtime reload 行补全了触发路径:发布、直接 active 保存、删除,任一副本都算。
  • 为什么改:fix(service-automation): converge a connector definition change on every replica #28028 合入以后,运行时已经是这样工作的,文档还写着 lane 2 只收敛 ObjectQL 对象注册表。
  • 风险与回滚:只改两个 .mdx 文件(+35/−5),不发布任何包。回滚 = 还原本 PR。
  • 先看:Lane 2 小节新加的两段,以及回环抑制那一条。
  • 两分钟验证:读 packages/services/service-automation/src/plugin.ts 的 subscribeFlowMutations 和 queueConnectorMutationReconcile:listener 先丢掉 state === 'draft',connector 类型的变更进 onReconcileQueue,执行时不等待。
  • 需要你做的:无。席位落地。

席位意见:合入。每句都对照过已合并的 #28028 代码。回环抑制那一条是 dev 在报告里点出的漂移:本 PR 让 lane 2 的说法变了,那一句随之失准。同一文件、同一主题,复核时席位授权扩面,在本 PR 一并修掉,不另开卡。

Shape: draft → main, Fixes #28030. 2 files, +35/−5. Labels documentation, size/s, skip-changeset. Non-governed; the seat lands it. Report 6520767155, claim 6519999838. The first dev was lost to a container restart after its push; a resumed dev opened the PR from 16f6a55a5f without rewriting.

Sentences checked against the code (at origin/main containing #28028's merge cc5586da8c):

  • Trigger kinds and drafts: subscribeFlowMutations returns on !evt || evt.state === 'draft'. A connector mutation then calls queueConnectorMutationReconcile, flow keeps its path, and every other type is ignored. The publisher (protocol-mutation-fan-out.ts) also drops drafts, pinned by "a DRAFT save publishes nothing".
  • Peer re-read: the queued reconcileDeclaredConnectors(ctx, { fatal: false }) reads getMetaItemsForExecution({ type: 'connector' }) on the replica's own protocol view. No new channel: fix(service-automation): converge a connector definition change on every replica #28028 touches only plugin.ts and its test.
  • Writer: queueConnectorMutationReconcile runs onReconcileQueue(...) with void, so the save does not wait. It is coalesced by connectorMutationReconcilePending, and a failure is logged at warn.
  • Lane 4 door: one onReconcileQueue job runs store.set, then publishCredentialMutation, then await reconcileDeclaredConnectors(...), and the door awaits that job. The bullet says exactly this.

Gates: on head e3ce3a96cc, 48 check-runs: 30 success, 18 skipped, 0 failure; mergeable_state: clean. check-expected-skips --pr 28050: OK, all 18 skips are in main's roster (exit 0). check-governed-merges --pr 28050: NOT governed, 40 changed lines. Dev's union: 43 derived, 43 run, all exit 0 at 16f6a55a5f; doc-authoring, doc-anchors and nul-bytes exit 0 at e3ce3a96cc. The red TypeScript Type Check on 16f6a55a5f was typecheck-consumers cancelled by the follow-up push (cancelled 10:47:44Z, new run started 10:47:41Z), not a type error.

Out of scope: the dev's one finding (the loopback bullet) was folded into this PR at review as an authorised surface extension; nothing is left over. Skills-docs: n/a (Metadata-protocol: none).

Landing: non-governed, 40 changed lines. In this act the seat readies the PR and arms auto-merge. On merge, Fixes #28030 closes the card. The seat verifies the merged diff and posts the landing note.


Generated by Claude Code

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review October 30, 2026 11:07
@objectstack-fleet
objectstack-fleet Bot enabled auto-merge October 30, 2026 11:07
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Oct 30, 2026
Merged via the queue into main with commit 4bb5eea Oct 30, 2026
49 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-28030-lane2-connector-docs branch October 30, 2026 11:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Projects

None yet

1 participant