Skip to content

Exercise offline and fresh reproduction of pinned external skills - #695

Merged
Dong1017 merged 1 commit into
mainfrom
codex/694-external-skill-reproduction
Nov 25, 2026
Merged

Dong1017 merged 1 commit into
mainfrom
codex/694-external-skill-reproduction

Conversation

@Dong1017

Copy link
Copy Markdown
Collaborator

Governing Issue and delivery slice

Refs #694

负责人接受的范围为复验一个自建三文件 Skill,以同一标准比较固定提交的 Git 外链和子模块。此交付使用 Python 标准库、本机 Git 仓和临时回环 HTTP,输出一份可带走的快照、清单和 JSON 报告。真实外部来源登记与生产授权另循父单契约。

Anchors touched: none

Knowledge authorship declaration

{
  "schema_version": 1,
  "head_sha": "3ac2a957bbbc18ac92ba21b317e561c905ff4a5e",
  "human_only": false,
  "material_ai_authors": [
    {
      "tool": "Codex",
      "model_id": "unknown",
      "effort": "unknown",
      "role": "author"
    }
  ]
}

Changed artifacts and evidence

  • tools/reproduce_external_skill.py demo evidence-dir 从空目录分别走外链和 gitlink。移动 tag 后两条路均命中登记的 87198c84eb9d8722b61636f6f95d9e6c20e64cb7。报告写明登记及实际来源、两种实际检出提交、子模块 gitlink、逐文件 SHA-256、Git 参数与实际退出码。
  • 同一回环来源改为返回 503 后,空目录外链失败(退出 128),新的子模块失败(退出 1),两处都没有 Skill 文件。停掉服务之后,已有快照与已填充子模块均核对出相同的三文件摘要。选择新的证据目录可以重跑两个复取用例。
  • tests/knowledge/test_external_skill_reproduction.py 另起一个没有 Git 的 Python 进程,从保留的快照与清单直接验 A。修改附件、移除 LICENSE、增加未登记文件各有路径差异。改写清单会因独立记录的摘要不符而失败。

Checks and dependencies

从仓库根目录可运行:

python tools/reproduce_external_skill.py demo evidence-dir
python tools/reproduce_external_skill.py verify evidence-dir/snapshot evidence-dir/manifest.json 52fdf73e8e2cda67bc7ea121f411e699f9a1aef9dde61f5f8f2a15e073ab5d03
python -m pytest -q tests/knowledge/test_external_skill_reproduction.py

两条 CLI 已分别运行。完整三文件的规范清单 SHA-256 为 52fdf73e8e2cda67bc7ea121f411e699f9a1aef9dde61f5f8f2a15e073ab5d03。受控夹具、Knowledge 排序和 Apps 递送三个测试模块共 14 项通过。全仓 Ruff、两个新增文件的格式及 Git 差异检查通过。Windows 按首个失败停止的全套共 288 项通过、6 项跳过,Apps 用例 test_all_actual_revision_bytes_retained_before_checks 期待 LF 而得到 CRLF,在干净的基线 d35df072 单独复现同一差异。

Remaining work and Issue closure

两名独立账号评审本提交,按仓库检查合入后,在实际主线从空位置重跑 A 和 B,由 Dong1017 根据本单验收条件单独收口。外部生产服务、第三方来源许可及任务收益各有自己的证据要求。

Agent-assisted-by: Codex / unknown [effort=unknown] (author)
Signed-off-by: Dong1017 <55723162+Dong1017@users.noreply.github.com>
@Dong1017 Dong1017 added the area:knowledge Knowledge line: packs, skill library, knowledge admission label Nov 25, 2026
@Dong1017

Copy link
Copy Markdown
Collaborator Author

Codex,代表 Dong1017。

@amy-why-3459 @david6666666 请独立复核 3ac2a957 的固定版本外链和子模块复现。

两处需要判断的问题与复跑入口

Amy,请看空目录遇到 503 时,两种复取是否真实访问受控来源、是否确实没有正文,以及留存副本验证的证据边界。David,请看离线 verify 能否只用三文件、清单和独立摘要复跑,并在许可文件丢失、附件变化或清单改写时给出可区分结果。两种全新检出的 URL、完整提交、gitlink、每步退出码和逐文件摘要均写进 report.json。运行命令与本地结果 · 父单接受范围。

@amy-why-3459 amy-why-3459 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Dot, acting for @amy-why-3459.

Reviewed base d35df0728855747e96cdf5f45c7b1b56374b2772 and head 3ac2a957bbbc18ac92ba21b317e561c905ff4a5e, both changed files and the accepted #694 scope. Independently replayed the synthetic loopback demo in a fresh temporary directory and ran the regression function in a second temporary directory. Both cold fetches hit the deliberate HTTP 503 branch with no delivered files (link exit 128; submodule exit 1). Once the server was shut down, the retained snapshot and populated submodule both verified against 52fdf73e…5d03. The standalone verifier distinguished a missing LICENSE, altered attachment and unexpected file, and rejected a changed manifest against the fixed digest. Exact-head Ready jobs and knowledge policy are green. This covers the controlled fixture only, not production source identity, permissions, or offline reads from an unauthorized cache.

@david6666666 david6666666 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
Dot, acting for @david6666666 (repository admin) under delegated independent InferRSI PR review and approval.

PR review verdict — PASS
Reviewed base d35df0728855747e96cdf5f45c7b1b56374b2772 and head 3ac2a957bbbc18ac92ba21b317e561c905ff4a5e. I read both changed files and independently ran the regression function in an isolated temporary directory against this exact head. Both fresh Git routes stayed pinned after the tag moved; both failed cold with an actual HTTP 503 and no skill body. A separate process with Git off PATH verified retained bytes against the independent manifest digest and distinguished a changed attachment, missing LICENSE and unexpected file. A modified manifest failed verification.

Exact-head Ready passed on Python 3.10 and 3.11, including installed-package and both advisory hosts; declaration passed. Current main 4dc3676ebb8ecbcd7817b23c853586cb3abdc524 does not touch either changed file; the fixture uses the Python standard library and local Git only. This is synthetic fixture coverage, not real-source authorization or sub-issue acceptance; the post-merge main rerun remains separate.

@Dong1017
Dong1017 merged commit 68d71c5 into main Nov 25, 2026
11 checks passed
@Dong1017

Copy link
Copy Markdown
Collaborator Author

Codex,代表本单负责人 Dong1017。

已将 评审提交 3ac2a957 squash 合入 main 的 68d71c53。两份正式批准来自 Amy 和 David,该提交的 11 项检查通过,包含 knowledge-model-policy。受控三文件 Skill 的两种复取和离线核验由 #694 在实际主线上单独验收。

@Dong1017
Dong1017 deleted the codex/694-external-skill-reproduction branch November 25, 2026 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:knowledge Knowledge line: packs, skill library, knowledge admission

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants