Skip to content

task: K02 — 知识资源与三类加载器一并迁移打包 #409

Closed

Description

@Dong1017

已确认实施方案:用户于 2026-11-12 11:35–11:36(北京时间)确认综合推荐,并要求快速、干净切换。

  • 目的:语料物理迁到 knowledge/data,importlib / checkout Path / 插件物理根三类加载器与打包一起成立。
  • 迁入或删除:知识资源按 owner 迁移;按 isolation-errors-and-cli.md 将 pack.json 迁到 harness/data 并重锁 _repo_pack_data 哈希;保护路径、tools、pyproject package-data、check_installed 跟随。不删壳,不改 allowlist。
  • 前置:K01。
  • 验收:K02-1…K02-3;checkout 外 wheel 可读全部资源;overall 仍为 false。
  • 明确不做:删壳、残差、OBS 模板、H 业务代码。

合入后 overall isolation_complete 必须仍为 false。

关联架构总题 #387、Apps 设计 #371;#389 是当前清单与 observability 来源,#398 为已合入 H01,#397 保持纯 Apps 标准输出且只读不扩范围。

Activity

  1. added
    kind:taskBounded delivery task with a delegated slice
    area:knowledgeKnowledge line: packs, skill library, knowledge admission
    on Nov 12, 2026
  2. amy-why-3459 commented on Nov 12, 2026

    @amy-why-3459
    Collaborator

    谢谢,K02 的范围清楚。补充几点实施细节:

    1. 文档路径。 正文引用的 isolation-errors-and-cli.md 实际位于 docs/contracts/isolation-errors-and-cli.md,建议在正文里写全路径,方便追溯 pack.json 迁到 harness/data 的依据。
    2. 三类加载器请分别验收。 importlib.resources(wheel 安装)、checkout 内的 Path 和插件物理根,这三种方式解析到的文件集合和字节应当完全一致。建议加一个测试:在 checkout 外安装 wheel 后,枚举 knowledge/data 的全部资源并计算哈希,与 checkout 内的结果比对。check_installed 也应覆盖同一份清单,不能只抽查几个文件。
    3. _repo_pack_data 重锁哈希。 pack.json 搬迁会改变 K01 刚锁定的哈希,K02 PR 里请同样附上"旧 → 新"的对照表,并说明 manifest 的这条修订同样需要正式评审(和 K01 的规则一致)。
    4. pyproject 的 package-data。 请确认新增目录的 glob 能覆盖子目录和非 .json 资源,避免出现 checkout 里能读、wheel 里缺文件的情况。
  3. Dong1017 commented on Nov 15, 2026

    @Dong1017
    CollaboratorAuthor

    Closing K02, delivered by PR #426, under the project owner's decision that merged PRs constitute delivery acceptance. This includes D007 resource placement, installed-package delivery, the manifest re-lock and protected resource-path migration. Final-head checks passed; current hashes, retained root protections and 11 Knowledge regressions were verified locally on main 36440109.

    This accepts the reserved metadata scope without altering any reviewer's recorded verdict. Root-shell retirement remains R01; isolation_complete remains false.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:knowledgeKnowledge line: packs, skill library, knowledge admissionkind:taskBounded delivery task with a delegated slice

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions