Repository navigation
runtime: adopt Process Compose and add external fact waits - #159
Merged
Merged
Conversation
Co-authored-by: Codex GPT-5.6-Sol <281847692+a-chatgpt-codex-bot[bot]@users.noreply.github.com>
Co-authored-by: Codex GPT-5.6-Sol <281847692+a-chatgpt-codex-bot[bot]@users.noreply.github.com>
yesme
enabled auto-merge (squash)
September 3, 2026 20:33
Co-authored-by: Codex GPT-5.6-Sol <281847692+a-chatgpt-codex-bot[bot]@users.noreply.github.com>
Co-authored-by: Codex GPT-5.6-Sol <281847692+a-chatgpt-codex-bot[bot]@users.noreply.github.com>
This was referenced Sep 3, 2026
Owner
Author
任务书三 · 对抗核验(Grok)对象:本 PR(运行时与部件)。测试在 #162,不另开文档。 结论:维持。 Process Compose 接管、wait 闭集和五处库的选择都成立。有一处范围脚注:控制面还没进树,所以「模型转述不能满足前置」目前只在工具箱产出通道被堵住,派发拒绝仍写在约束层。
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
定位与重述
这是四轴评审任务书二的 PR 乙,位于 P1 的运行时供应链与第一方机械工具层。它把五个本地服务的进程身份、依赖、就绪、重启和关停交给 Process Compose;把外部事实读取做成
hctl2-tool wait与共享 reader;把 JCS、文件锁、SQLite 一致备份、secret store 和 FTS5 落到现成库。控制面及 provider adapter 尚未进入代码树,本 PR 不提前加入没有调用方的 SDK。主要结果:
start.sh、stop.sh、status.sh删除;hctl2-services只准备产品配置和读取 Process Compose 状态。重复启动、Cinny 依赖恢复、单服务重启/停启均有包级测试。hctl2-facts:提交 CI、PR 合并、引用推进、路径摘要、进程退出五类事实;结果固定为成立、不成立、读不到、超时,输出toolbox_readback事实记录。hctl2-foundation:RFC 8785 实现及官方向量、标准库 OS 文件锁、rusqlite Online Backup、keyring 与独立 FTS5 索引。outbox、租约、代次没有放进这个通用层。当前生效约束集
rusqlite的 bundled SQLite,以固定三平台版本和 FTS5/Online Backup 能力;替代方案另由 复核 SQLite bundled 策略与预编译库替代方案 #158 跟踪。Buck2 Cargo build-script 所需 Python 版本由 为 Buck2 Cargo build-script action 钉定 Python 3.12+ 工具链 #157 跟踪。hctl2-tool wait一次只回答一个闭集事实,带绝对截止时间;控制面未来必须复用同一 reader,不能另写一套事实判断。wait实际调用的gh,其余在 P2 首个 adapter 有调用方时接入。验证:
cargo +1.98.0 fmt --all --checkcargo +1.98.0 metadata --locked --no-deps --format-version 1cargo +1.98.0 clippy --workspace --all-targets -- -D warningscargo +1.98.0 test --workspace./buck2 build root//:clippy --target-platforms root//build/platforms:macos_arm64./buck2 test root//crates/... root//apps/hctl2-tool/... root//build/docs/... --target-platforms root//build/platforms:macos_arm64(16 项全绿)./buck2 test root//packaging/dependencies:package-test --target-platforms root//build/platforms:macos_arm64./buck2 test root//packaging/release:complete-test --target-platforms root//build/platforms:macos_arm64established。业界方案调研
serde_json_canonicalizer,文件锁采用 Rust 标准库,避免引入已进入弃用流程的fd-lock。gh二进制;其他 provider SDK 的结论保留在 供应端客户端研究目录,待 P2 出现实际 adapter 调用方后接入。