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/25 02:59:28 UTC
[PR] feat(runtime-host): schedule managed update reconciliation [maka]
M4n5ter opened a new pull request, #3747:
URL: https://github.com/apache/maka/pull/3747
<details open>
<summary>English</summary>
## Summary
- install a periodic systemd user timer for Linux and a periodic LaunchAgent for macOS as derived resources of each Maka-managed Runtime Host deployment
- invoke the stable managed `operator` launcher and reuse #3720's bounded `reconcile-update` command without moving policy or update authority into the platform adapters
- make install, repair, replacement, verification, and uninstall converge idempotently; an unchanged scheduler is left running so a scheduled macOS update cannot terminate itself
- keep `manual` as the default effective policy: periodic reconciliation returns `disabled` before package discovery or network access
Refs #3228
## Dependency
- [ ] Depends on #3720; this branch is stacked directly on its current head
## Verification
- `npm --workspace maka-agent test` — 452 passed
- `npm run format:check`
- `npm run lint`
- `npm run typecheck` for all built dependencies and CLI; Desktop typecheck passed after building `@maka/ui` and `@maka/computer-use`
- `npm run check:asf-headers`
## AI use
Select exactly one:
- [ ] No generative tool made a substantive contribution
- [x] Generative tooling made a substantive contribution
Tool(s) and scope: OpenAI Codex designed, implemented, and tested the change under maintainer direction. Human review is still required before this Draft becomes ready.
## Checklist
- [x] Tests cover the change and fail without it
- [x] Lint, format, typecheck and the affected suites pass locally
Does this PR entail a change in behavior?
- [x] Yes — described under Summary above
- [ ] No
</details>
<details>
<summary>简体中文</summary>
## 摘要
- 将 Linux 的 systemd user timer 与 macOS 的周期 LaunchAgent 作为 Maka 受管 Runtime Host deployment 的派生资源安装
- 调用稳定的 managed `operator` launcher,复用 #3720 的有界 `reconcile-update` 命令,不把 policy 或更新 authority 移入平台 adapter
- 让 install、repair、replacement、verification 与 uninstall 幂等收敛;定义未变化时不触碰 scheduler,避免 macOS 的定时更新终止自身
- 保持 `manual` 为默认有效策略:周期 reconciliation 会在 package discovery 与网络访问前返回 `disabled`
关联 #3228
## 依赖
- [ ] 依赖 #3720;当前分支直接 stack 在其最新 head 上
## 验证
- `npm --workspace maka-agent test` — 452 项通过
- `npm run format:check`
- `npm run lint`
- `npm run typecheck`:已构建依赖与 CLI 通过;构建 `@maka/ui` 和 `@maka/computer-use` 后 Desktop typecheck 通过
- `npm run check:asf-headers`
## AI 使用
OpenAI Codex 在维护者指导下设计、实现并测试了本次变更;Draft 转为 Ready 前仍需要人工审查。
## Checklist
- 测试覆盖新增行为,并能在缺少实现时失败
- lint、format、typecheck 与受影响测试均已在本地通过
- 本 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): schedule managed update reconciliation [maka]
Posted by "Astro-Han (via GitHub)" <gi...@apache.org>.
Astro-Han merged PR #3747:
URL: https://github.com/apache/maka/pull/3747
--
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): schedule managed update reconciliation [maka]
Posted by "M4n5ter (via GitHub)" <gi...@apache.org>.
M4n5ter commented on PR #3747:
URL: https://github.com/apache/maka/pull/3747#issuecomment-5406662892
<details open>
<summary>English</summary>
Confirmed and fixed in `4d044ceb7`.
Static deployment verification remains independent of process state. Runtime readiness now explicitly requires the configured scheduler to be active/loaded, so an active exact-version Host with an inactive scheduler enters the existing `repaired` replacement path instead of returning `already_current`.
The systemd and LaunchAgent tests now verify all three boundaries: a stopped scheduler still passes static deployment validation, fails readiness validation, and becomes ready after replacement. The complete CLI suite passes (453 tests).
</details>
<details>
<summary>简体中文</summary>
该问题已确认,并在 `4d044ceb7` 中修复。
静态部署验证仍与进程运行状态解耦;运行态 readiness 现在明确要求已配置的 scheduler 处于 active/loaded 状态。因此,当精确版本的 Host 正在运行但 scheduler 未运行时,会进入既有 `repaired` replacement 路径,而不会错误返回 `already_current`。
systemd 与 LaunchAgent 测试现已覆盖三个边界:scheduler 停止时仍可通过静态部署验证、不能通过 readiness 验证,并在 replacement 后恢复 ready。完整 CLI 套件 453 项测试全部通过。
</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