Skip to content

ICODE v2.47.0

Latest

Choose a tag to compare

@github-actions github-actions released this 01 Dec 12:08

ICODE v2.47.0 — 工作区冻结修复与账本恢复命令

小版本。修复 High 级缺陷:工作区中任一普通工单的账本无法被当前读取器认证时,stage 发现会把“读不懂一个工单”放大成“整个工作区不可信”,导致 create / create-next 永久冻结;同时把恢复路径产品化为只读 repair 与默认 dry-run 的 quarantine。

  • 工作区不再因单个普通工单不可读而冻结:阶段历史发现逐个工单扫描,账本内容认证失败(版本错配、缺定义、摘要不符、hash/镜像不一致)只在该工单自身带阶段证据时 fail-closed:metadata 的 stage_program/stage_binding,或账本原始字节中的 stage_control 事件。无阶段证据的普通工单记录 diagnostic 后继续;create / create-next 成功并输出 warnings,指明被跳过的工单与建议动作。预算、超时、符号链接、重复读取等资源与路径类失败仍立即终止。
  • 错误分层:新增只读 classify_control_failure,区分 definition_store_unsupported(定义就在 .ico_storage 且摘要自洽,需要升级控制面)、definition_missing(引用定义缺失)与 definition_tampered(侧文件摘要不符),并给出不同的 recovery.action。
  • 可执行恢复:新增 repair --dir(只读诊断,幂等)与 quarantine --dir [--apply](默认 dry-run;移入同级 .quarantine/ 并把索引标记为 stale_reason=quarantined,已隔离时幂等)。原 recovery_action="repair_control_ledger" 改为真实命令 repair;索引号分配器保留历史 vNext 编号,避免隔离最高编号后下一次 create-next 复号触发 out_dir_ownership。
  • tolerate 逃逸通道:内容失败白名单改为前缀匹配,覆盖 reject() 追加 ; candidate storage: … 后的真实失败签名。
  • 文档与护栏:references/control_plane.md、references/serial_evidence_stages.md 同步新语义;新增 tests/test_stage_workspace_isolation.py(16 用例),保留 tools/diagnose_definition_skew.py 与 6 用例的 side-store 契约测试;fast profile 的 references/control_plane.md / references/serial_evidence_stages.md 源哈希钉已按 sha256_utf8_lf 重算。

验证边界

在 Windows Python 3.11 实跑:核心控制面/阶段发现套件 154 passed、1 skipped、60 subtests;控制面索引/批处理/linter/候选存储 217 passed;review return 41 passed;UI catalog/overview/delivery 37 passed;execution_profiles 140 passed、2 skipped。shell 契约 birth-optimization 11 PASS、control-plane regression 26 PASS。并以现场真实 121 事件侧库账本复核:新读取器可完整读取;模拟 v2.44 读取器(不传 definition_store)时 create 成功并给出 definition_store_unsupported WARN;同账本加阶段标记后 fail-closed 且不建单。仓库内 GBK 终端解码与 WindowsApps python3 假 stub 相关用例在 HEAD 上即可复现,与本次改动无关;发布资产由 tag 触发的 release.yml 在 Ubuntu-22.04 上按 build_release_assets.py + SHA256SUMS 重建校验。

English summary

Minor release fixing a High-severity workspace freeze: an ordinary ticket whose ledger the current reader cannot authenticate no longer makes stage discovery treat the whole workspace as unproven. Discovery now records a diagnostic and continues unless the ticket itself carries stage evidence (stage_program/stage_binding or a stage_control event). create / create-next therefore succeed with warnings instead of failing permanently. The recovery path is productized as read-only repair and dry-run-by-default quarantine, with failure classification (definition_store_unsupported, definition_missing, definition_tampered), real executable recovery actions, prefix-matched unproven signatures, and refreshed fast-profile source pins.