Skip to content

fix: include missing round files in frozen provenance - #111

Merged
Algorineko merged 2 commits into
Algorineko:mainfrom
Dandan3455:fix/self-evolve-round-provenance
Oct 15, 2026
Merged

Algorineko merged 2 commits into
Algorineko:mainfrom
Dandan3455:fix/self-evolve-round-provenance

Conversation

@Dandan3455

Copy link
Copy Markdown
Contributor

本 PR 对应 P3 受限自进化数据闭环,补齐 freeze 阶段遗漏的文件血缘。

编排器会读取参数化 seed manifest 和可选 traces,并生成诊断报告及父任务选择结果,但原实现未将这些文件加入冻结清单,因此其文件字节未被纳入哈希和 lineage。

本次将 parametric_manifest、weakness_report、selection 和可选 traces 交给现有 freeze_round,记录路径、字节数和 SHA256,并参与 lineage_sha256。沿用原有结构和哈希算法,保留 synthesis 及坏例输出的现有记录。

本次只记录血缘,不新增自动文件校验,也不改变 gate 的 split 哈希检查。仅扩展现有文件角色映射,manifest 版本保持为 1。

验证:

  • 更新后的 CLI 回归测试在原实现上失败。
  • 覆盖无 synthesis、有 traces 时执行/跳过 synthesis、生成数据及其 manifest、文件哈希和字节数、重复运行 lineage 一致,以及 traces/输入参数化 manifest 的字节变化。
  • synthesis 使用模拟子进程,不运行训练、不下载模型,也不需要 GPU 或付费 API。
  • macOS ARM64 / Python 3.11.17 全套测试:827 passed、7 skipped、650 subtests passed;使用 TMPDIR=/private/tmp 避开既有 macOS 临时路径别名问题,未排除测试。
  • 阻断级 flake8 和 git diff --check 通过,仍需上游 CI 验证。

This PR strengthens the freeze step of the P3 Bounded RSI self-evolving data loop.

The orchestrator reads the parametric seed manifest and optional traces, and writes the weakness report and selection file, but does not include those files in the frozen round manifest. Consequently their bytes are missing from the recorded file hashes and lineage.

Register parametric_manifest, weakness_report, selection, and optional traces with the existing freeze_round mechanism. Each receives the existing path, bytes and SHA256 fields and contributes to lineage_sha256. No new manifest schema or hashing algorithm is introduced. Existing optional synthesis and badcase output entries are preserved.

This records provenance; it does not add automatic verification of these files or change the gate's existing split-hash check. Manifest version remains 1 because the existing role mapping is extended without changing its structure.

Validation:

  • Updated CLI regression tests fail against the original implementation.
  • Tests cover no-synthesis runs, traces with/without synthesis, generated data and sidecar manifests, exact file hashes and sizes, repeatable lineage, and byte changes to traces and the parametric input manifest.
  • Synthesis is mocked; no training, model download, GPU or paid API is used.
  • Full suite on macOS ARM64 / Python 3.11.17: 827 passed, 7 skipped, 650 subtests passed, with TMPDIR=/private/tmp to avoid an existing macOS temporary-path alias issue. No tests excluded.
  • Blocking flake8 checks and git diff --check pass. Upstream CI remains required.

@Dandan3455
Dandan3455 marked this pull request as ready for review October 14, 2026 19:48
@Algorineko
Algorineko merged commit acabd47 into Algorineko:main Oct 15, 2026
3 checks passed
Algorineko added a commit that referenced this pull request Oct 31, 2026
fix: include missing round files in frozen provenance
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants