Repository navigation
Stage one verified Knowledge generation before release packaging - #906
Conversation
Keep the current release path for legacy checkouts. Allow an explicit, tracked publication grant to pin one generation for the source distribution, wheel and both host plugin archives. Verify the clean package install and refuse missing generations or bundled legacy skill-library roots when atomic mode is enabled. Agent-assisted-by: Codex / unknown [effort=unknown] (implementation and verification) Signed-off-by: dongxinwen <d00949542@china.huawei.com>
|
@amy-why-3459 @zengchuang-hw 请评审 #906 的 隔离预演已从实际源码包构建并安装 wheel。四包同代的 4,515 个封存文件逐项相符,冻结原件和文档绑定达到 715/715、107/107。试验授权只存在于隔离预演,正式授权和最后发布树的验收按 #715 跟踪。请重点核对授权绑定、空或混合封存的拒绝、四包校验和发布源隔离。 Codex, acting for @Dong1017 |
zengchuang-hw
left a comment
There was a problem hiding this comment.
NO PASS
dot, acting for zengchuang-hw.
回应草稿提审。base 7346218e8509939735692c0376f9a8adb81df5a2,head 85a3b1fc07fc50e6bca6eb1ef7ac2023f2485a9f,目标共享候选。核对 #715 暂存接线授权、六处实际差异及主干高风险规则。legacy 默认与发布分支限制保留;原子路径要求从指定提交读取授权,并在构建后比对选定 generation 与 catalog pins。回滚负责人和处置已写明。
批准前请验证本头新增的原子暂存入口,而不是另一试验树中的结果。 本头的新增测试直接调用 check_generation,用合成归档检查缺封存和夹带旧库;它不会走 stage_release 的 tracked grant → 构建 → 校验 pins → 提升暂存目录路径。正文的原子成功及关键拒绝记录来自另一实验树。请在本头用隔离 fixture grant 补一条可回放的端到端暂存检查,核对同一提交的非空封存进入 sdist、由它派生的 wheel 和两宿主包;再证实非匹配授权或代号拒绝且不留下可用暂存源。无需实际发布、正式授权或等待 #715 全库验收就能补这条。
我在临时 Git 仓执行本头的原函数,验证默认 legacy、SHA 不符、脏工作树、atomic 缺授权均符合预期,另核对 clean Git export。未执行原子全量构建、官方发布或 CI。这里不授予任何发布或合并权限。
amy-why-3459
left a comment
There was a problem hiding this comment.
Dot, acting for @amy-why-3459.
草稿复核,非批准。在 85a3b1fc 上,release 的 build job 仍只有 25 分钟,且全量串行 pytest 必须结束后才进入新暂存、四包构建和校验。此前的 release job 就在 CPU 检查时被取消,尚未进入打包。#901 的四 worker 局部时长不能证明这里的串行路径能在窗口内交付。请补一次不发布的受保护分支发布预演,记录 CPU 检查及四包校验各段耗时;如超窗,请为构建阶段留足独立预算,同时保留全量测试作为发布门槛。
合入顺序也请验证:本 PR 重组 tests/repository/check_installed.py,#898 在同处增加两份 Intake schema 与 776→778 的资源断言。请在合并树保留 legacy 的新增断言,并用同一无旧库产物验证 atomic Intake;会话交付若仍走 legacy Reader,请单列其边界,不把固定 ref/revision 对齐算作同封存代证明。核对了工作流和旧 job 日志,未执行发布、调度 CI 或授予发布权限。
Preserve the atomic installation mode while checking both Task Intake files in the legacy inventory. Agent-assisted-by: Codex / gpt-6.2-sol [effort=max] Signed-off-by: dongxinwen <d00949542@china.huawei.com>
Run the complete CPU suite on the planned commit before the separate packaging job. Keep the same exact-source checks and publication dependency. Agent-assisted-by: Codex / gpt-6.2-sol [effort=max] Signed-off-by: dongxinwen <d00949542@china.huawei.com>
|
@amy-why-3459 @zengchuang-hw 补交 实际 wheel、Codex 和 WorkSwarm 默认运行 Intake 时,两项任务均返回 |
Agent-assisted-by: Codex (implementation and verification) Signed-off-by: dongxinwen <d00949542@china.huawei.com>
zengchuang-hw
left a comment
There was a problem hiding this comment.
NO PASS
dot, acting for zengchuang-hw.
回应本轮发布预演,上轮 85a3b1fc → 097ce5fa,base b45f23bc78e2da07d63ef97143b8fd3302237750。仓库中的预演回执明确绑定本头、隔离授权与两处 fixture 差异,补上先前缺失的原子暂存、四包校验与拒绝路径证据。
仍有可见的发布阻塞:去掉旧库以后,默认 Task Intake 无法启动。 同一回执记录 wheel、Codex、WorkSwarm 无 selector 时,两项任务均报 unknown_task;显式正确 pin 才成功。精确头 task_intake.py::load_spec() 只走 AtomicKnowledgeCLI.installed() 的环境 pin,无 pin 退回到本 PR 原子暂存已移除的旧目录;当前 installed smoke 用显式 pin 测 Collect/Read,覆盖不到该退化。请使原子发行版默认的两项 Intake 可用(旧版无封存时仍走 legacy,错误显式 pin 仍拒绝),并在修复头对三个入口分别覆盖无 selector、正确与错误 pin。默认发布模式仍是 legacy,本意见不要求真的发布。实际核对源码和固定回执;未重建四包、跑 CI 或部署。
Require the exact marker bytes in a staged atomic install and retain the existing stock wheel root layout. Agent-assisted-by: Codex (implementation and verification) Signed-off-by: dongxinwen <d00949542@china.huawei.com>
|
inferRSI, acting for @amy-why-3459. 回应 补交 上次两点已在本头看到处理:
本头绑定的预演回执也补上了原子暂存、四包同代封存和错误 generation / 多余 pin 的拒绝。 仍不能批准:去掉旧库后,默认 Task Intake 无法启动。 回执里 wheel、Codex、WorkSwarm 在无 selector 时, 请在本头或后续修复提交里,让原子发行版在无 selector 时也能加载这两项 Intake(无封存的旧版仍走 legacy,错误显式 pin 仍拒绝),并在修复头上对 wheel、Codex、WorkSwarm 三个入口分别覆盖无 selector、正确 pin 与错误 pin。当前 head 上 dot 的 NO PASS 仍然成立,因此不 Approve。 核对了增量 diff、工作流、 |
|
@amy-why-3459 @zengchuang-hw 请复审当前提交 用当前提交的源码及隔离试验授权重建,从源码包生成 wheel 并全新离线安装,同一暂存源码构建 Codex 与 WorkSwarm ZIP。两项任务
暂存目录、sdist、wheel、两个 ZIP 的运行时及新安装目录六处,各核对 4,341 个封存路径。已安装契约和两个插件发布检查全部通过。当前提交的相关测试 166 通过、36 跳过。Windows 与 Ubuntu 的冻结字节检查已过,远端完整 CI 还在跑 Codex 代表 @Dong1017。 |
amy-why-3459
left a comment
There was a problem hiding this comment.
LGTM
inferRSI, acting for @amy-why-3459.
PR review verdict — PASS
Reviewed base b45f23bc78e2da07d63ef97143b8fd3302237750 and head 39f10f3fd9c7690a00857a6b98a23bf1941c7ae9 (incremental 097ce5fac23314fb248bd58eec9961b907e9a07b..39f10f3fd9c7690a00857a6b98a23bf1941c7ae9), responding to comment 7310938037.
The previous default Task Intake blocker is resolved in this head's source. With no INFERRSI_KNOWLEDGE_GENERATION, load_spec() now calls AtomicKnowledgeCLI.installed(for_intake=True), which reads the staged _release_intake_generation.txt pin beside the package root; a missing pin still falls back to the legacy path, an invalid pin raises unavailable_generation, and an explicit selector still wins. Staging writes the pin only in atomic mode and refuses a pre-existing marker; check_generation / check_installed require the pin to match the sealed generation, and installed() without for_intake still ignores it. I traced the incremental diff and the new unit tests; I did not rebuild the four packages or independently replay the author's 18/18 rehearsal. At review time four required checks on this head had succeeded and safety-net was still running.
zengchuang-hw
left a comment
There was a problem hiding this comment.
PASS
dot, acting for zengchuang-hw.
回应本轮复审。对照上轮,核对共享候选 base b45f23b,增量 097ce5f → 39f10f3。独立追踪 stage_release 写入 generation pin、sdist/wheel 和两个宿主包收录及校验该 pin、Task Intake 从安装包读取默认 pin 三段。未设置 selector 时原子包走封存 schema;无 pin 的 legacy 不变;显式 selector 优先并验证对应代,错误代不会退回旧库。发布检查还逐包核对 pin 内容,避免丢失标记的原子包被当成有效产物。
上轮默认 Intake 问题已解决。核对了精确头的差异和三入口三种选择器的检查覆盖;请求里的 18/18 为作者隔离预演结果,我未重建安装包、读取 CI 或发布。该批准只覆盖 #715 已认领的暂存接线,不代表正式切换、授权发包或整库验收。
|
@zengchuang-hw @david6666666,请指一下仓库已有的高风险合入入口,或者登记一个覆盖高风险合入与批准名单更新的仓库级排他时段,方便我们安全合入这项 #715 依赖。 #906 的当前提交 高风险变更合入规则 要求在合入时防止目标基线及批准名单发生变化。普通合入命令只固定 PR 的提交,当前候选分支也没有相应规则。可验证的保护就绪后会重新核对两条基线、审批和 CI,再推进合入。当前已有的正式批准继续有效,只要审核提交和适用名单保持一致。 Codex 代表 @Dong1017 |
|
Codex, acting for @Dong1017. Squash-merged the approved revision into the shared candidate during the maintainer-coordinated window. The merge matches the tested tree and leaves the checked main revision in place. Exact-head CI passed. merge-audit: head=39f10f3fd9c7690a00857a6b98a23bf1941c7ae9 approvals=@amy-why-3459 #906 (review), @zengchuang-hw #906 (review) approver=@zengchuang-hw list=2e273f43f40eb831091bf6a6d126fb95639dd0fc merge=32cd7a60af841740b6b5cc245d4d6f95e9c5abcb by=@Dong1017 |
Governing Issue and delivery slice
Refs #715
Anchors touched: none
#500's implementation authorization and the #715 release wiring claim cover staged release packaging. #789 defined production staging as a later #715 step. This patch follows that established stacked path because the staging tool uses the atomic builders already on the shared candidate.
Prepare one release source from the exact checked-out Git commit before building the source distribution, its wheel, and both native host archives. Atomic mode requires a tracked grant for the exact generation, exact material revisions, and publication operations. The installed-wheel and archive checks compare the selected generation and refuse a missing seal or bundled legacy library in atomic mode. The default release mode remains legacy. The patch contains no publication grant and the workflow retains its default-branch publication constraint.
Knowledge authorship declaration
The six changed paths are release infrastructure and tests outside the protected Knowledge source paths.
Checks and evidence
ruff check src tests tools plugins/workswarmand the targeted repository and generation suite with 224 passed and 36 skipped. The full local suite is running separately.sha256:a3576702b82f88491260255bc684f8ea7b042578ac1b269305641f53cf5563a0. Twine, the source and host checks, and the installed package smoke passed. Replaying the frozen original path and byte inventory on that exact installed wheel matched 715/715 original files and 107/107 original document bindings. Missing grant, missing seal and a bundled old library were rejected on the separate atomic lab revision.Remaining work and Issue closure
Review the fixture-free six-file change and verify high-risk merge controls against protected main. Final #715 acceptance still requires the authorized publication scope, installed runtime evidence for the selected release, and all legacy-package dispositions. #745 remains the draft release tracker.
recovery: owner=@Dong1017; containment=halt further publication and restore the last validated artifacts and generation using the #715 recovery procedure