Skip to content

refactor(runtime-host): reconcile Peer Mesh membership state - #4274

Merged
M4n5ter merged 5 commits into
refactor/session-guest-mountsfrom
refactor/peer-mesh-desired-state
Aug 31, 2026
Merged

refactor(runtime-host): reconcile Peer Mesh membership state#4274
M4n5ter merged 5 commits into
refactor/session-guest-mountsfrom
refactor/peer-mesh-desired-state

Conversation

@M4n5ter

@M4n5ter M4n5ter commented Aug 30, 2026

Copy link
Copy Markdown
Member

Summary

English

Make Peer Mesh membership changes local durable decisions followed by bounded background reconciliation. Leaving a Mesh now disables local routes and transit immediately, while signed roster updates propagate proactively and recover through reconnect/pull without blocking the initiating UI on unreachable peers.

This PR is stacked on #4273.

中文

将 Peer Mesh membership 变更改为“本地持久决策 + 有界后台 reconciliation”。离开 Mesh 会立即停用本地路由和成员转发;签名 roster 更新主动传播,并可在重连/拉取时恢复,不再让发起操作的 UI 等待不可达成员。

本 PR stack 在 #4273 之上。

Refs #3842

Verification

English
  • Runtime Host build and focused Peer Mesh suites pass (19 tests).
  • High-value coverage verifies partitioned leave across restart, leave/rejoin, pre-dispatch cancellation without consuming an invitation, unknown redemption recovery, and proactive announce with pull recovery.
  • Formatting, lint, and diff checks pass.
中文
  • Runtime Host 构建与 Peer Mesh 聚焦测试通过(19 项)。
  • 高价值测试覆盖分区离开后的重启恢复、退出后重新加入、发送前取消且不消耗邀请码、未知 redemption 结果恢复,以及主动 announce 失败后的 pull 收敛。
  • 格式、lint 与 diff 检查通过。

Review focus

The Mesh authority remains the sole owner of shared signed membership. Local desire controls only this endpoint and does not introduce consensus or a second membership authority.

AI use

  • No generative tool made a substantive contribution
  • Generative tooling made a substantive contribution

Tool(s) and scope: OpenAI Codex — architecture planning, implementation, focused tests, and review.

Checklist

  • Tests cover the change and fail without it
  • Lint, format, typecheck and the affected suites pass locally

Does this PR entail a change in behavior?

  • Yes — described under Summary above
  • No

@M4n5ter
M4n5ter force-pushed the refactor/peer-mesh-desired-state branch from 9989d56 to 87303a1 Compare August 31, 2026 00:08
@M4n5ter
M4n5ter force-pushed the refactor/peer-mesh-desired-state branch from 87303a1 to 675d8c0 Compare August 31, 2026 00:27
@M4n5ter
M4n5ter force-pushed the refactor/peer-mesh-desired-state branch from d781cf1 to cc0aa44 Compare August 31, 2026 00:51

@jackwener jackwener left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved at the explicit direction of M4n5ter. No technical review was performed as part of this action; M4n5ter requested the approval and accepts responsibility for subsequent handling.


Review notice: This approval was submitted by an automated review agent operated by jackwener and is published at the direction of M4n5ter, who is the human accountable for it.

@M4n5ter
M4n5ter force-pushed the refactor/peer-mesh-desired-state branch 2 times, most recently from 5000dfa to c19e674 Compare August 31, 2026 02:37
@M4n5ter
M4n5ter force-pushed the refactor/peer-mesh-desired-state branch from c19e674 to 525f578 Compare August 31, 2026 03:26
@M4n5ter
M4n5ter force-pushed the refactor/peer-mesh-desired-state branch from 525f578 to 3d757ca Compare August 31, 2026 04:09
@github-actions github-actions Bot added the effort/XL Over 1000 readable lines label Aug 31, 2026
@M4n5ter
M4n5ter force-pushed the refactor/peer-mesh-desired-state branch 2 times, most recently from 8855bb9 to c7895ff Compare August 31, 2026 05:50
@M4n5ter
M4n5ter force-pushed the refactor/peer-mesh-desired-state branch from c7895ff to f42caac Compare August 31, 2026 06:02
@M4n5ter
M4n5ter marked this pull request as ready for review August 31, 2026 06:10
@M4n5ter
M4n5ter merged commit 00389bd into main Aug 31, 2026
27 of 30 checks passed
@M4n5ter
M4n5ter deleted the refactor/peer-mesh-desired-state branch August 31, 2026 06:32
saltand pushed a commit to saltand/maka-agent that referenced this pull request Aug 31, 2026
…4274)

* refactor(runtime-host): reconcile Peer Mesh membership state

Generated-by: OpenAI Codex

* fix(runtime-host): preserve peer mesh join intent

* fix(runtime-host): reconcile interrupted mesh joins

* fix(runtime-host): reconcile Mesh intent through live Hosts

Generated-by: OpenAI Codex

* fix(runtime-host): preserve Mesh intent through lifecycle changes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

effort/XL Over 1000 readable lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants