You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maka.apache.org by "M4n5ter (via GitHub)" <gi...@apache.org> on 2026/08/28 01:02:29 UTC

[PR] feat(runtime-host): migrate managed lifecycle ownership [maka]

M4n5ter opened a new pull request, #4049:
URL: https://github.com/apache/maka/pull/4049

   <details open>
   <summary><strong>English</strong></summary>
   
   ## Summary
   
   Deliver the managed Runtime Host lifecycle transaction slice: migrate legacy supervised deployments into the canonical authority, separate supervisor and reconciliation-trigger drivers, and make lifecycle/provider changes crash-recoverable without admitting two lifecycle owners.
   
   The first commit establishes the transaction fence in `runtime-host-deployment.json`: transition and blocked states fail closed at the existing launch authority, and exact commit/rollback require the same State Root owner. The durable journal and provider actions will recover through this boundary rather than becoming another lifecycle authority.
   
   Refs #3984
   
   ## Delivery
   
   - [x] Canonical transition/blocked authority states
   - [x] State Root-owner-bound begin, commit, rollback, and repair fence
   - [ ] Durable lifecycle journal and startup recovery
   - [ ] Separate supervisor and reconciliation-trigger drivers
   - [ ] `runtime-host-service.json` schema 1/2 migration
   - [ ] Supervised ↔ on-demand and provider A ↔ B transactions
   - [ ] systemd and LaunchAgent migration/regression coverage
   - [ ] Generic Desktop deployment binding migration
   - [ ] Transactional uninstall and repair while preserving State Root data
   - [ ] Crash injection across every committed transaction phase
   
   ## Verification
   
   - `npm run format:check`
   - `npm run lint`
   - `npm run build`
   - `npm run typecheck`
   - `npm --workspace @maka/runtime-host test` — 1,317 tests; 1,308 passed, 9 skipped, 0 failed
   
   ## AI use
   
   - [ ] No generative tool made a substantive contribution
   - [x] Generative tooling made a substantive contribution
   
   Tool(s) and scope: OpenAI Codex contributed implementation, tests, review, and this description under human direction.
   
   ## Checklist
   
   - [x] The current increment is covered and fails closed
   - [ ] The complete PR 2 product and recovery paths are implemented
   - [ ] Final lint, format, typecheck, build, knip, inventory, and affected suites pass
   
   Does this PR entail a change in behavior?
   
   - [x] Yes — described above
   - [ ] No
   
   </details>
   
   <details>
   <summary><strong>中文</strong></summary>
   
   ## 摘要
   
   交付 managed Runtime Host lifecycle transaction 垂直切片:将旧 supervised deployment 迁入 canonical authority,拆分 supervisor 与 reconciliation-trigger driver,并让 lifecycle/provider 变更能够崩溃恢复且不会放行两个 lifecycle owner。
   
   首个 commit 在 `runtime-host-deployment.json` 中建立 transaction fence:transition 与 blocked 状态会在既有 launch authority 处 fail closed,精确 commit/rollback 必须持有同一个 State Root owner。后续 durable journal 与 provider action 通过该边界恢复,不会成为第二个 lifecycle authority。
   
   关联 #3984
   
   ## 交付范围
   
   - ✅ Canonical transition/blocked authority 状态
   - ✅ 绑定 State Root owner 的 begin、commit、rollback 与 repair fence
   - ⬜ Durable lifecycle journal 与 startup recovery
   - ⬜ 拆分 supervisor 与 reconciliation-trigger driver
   - ⬜ `runtime-host-service.json` schema 1/2 迁移
   - ⬜ supervised ↔ on-demand 与 provider A ↔ B transaction
   - ⬜ systemd 与 LaunchAgent 迁移/回归覆盖
   - ⬜ 通用 Desktop deployment binding 迁移
   - ⬜ 保留 State Root 数据的 transactional uninstall 与 repair
   - ⬜ 覆盖每个已提交 transaction phase 的 crash injection
   
   ## 验证
   
   - `npm run format:check`
   - `npm run lint`
   - `npm run build`
   - `npm run typecheck`
   - `npm --workspace @maka/runtime-host test` — 1,317 项;1,308 通过,9 跳过,0 失败
   
   ## AI 使用情况
   
   已选择:生成式工具作出了实质贡献。
   
   工具及范围:OpenAI Codex 在人工指导下参与了实现、测试、审查和本描述编写。
   
   ## 检查清单
   
   - ✅ 当前增量已有覆盖并且 fail closed
   - ⬜ 完成 PR2 全部产品与恢复路径
   - ⬜ 最终 lint、format、typecheck、build、knip、inventory 与受影响测试通过
   
   本 PR 是否包含行为变化?
   
   - 是 — 已在上方说明
   
   </details>
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org


Re: [PR] feat(runtime-host): establish canonical managed lifecycle transactions [maka]

Posted by "M4n5ter (via GitHub)" <gi...@apache.org>.
M4n5ter merged PR #4049:
URL: https://github.com/apache/maka/pull/4049


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org