fix(hfs): 将正式 wrapper 发布绑定 canonical private Space 与 main - #15
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
结果与原因
现有流程只对 candidate 检查 private,可由 production manifest 选择非 canonical Space,也未在正式上传前证明 wrapper checkout 仍是 current main。本 PR 收紧 wrapper provenance,但保留独立 upstream libreFS pin。
变更
BlueSkyXN/libreFS-HFS,并要求 candidate 与 production 都已是 private。origin/main,要求GITHUB_REF=refs/heads/main,且 wrapperHEAD == GITHUB_SHA == origin/main。LIBREFS_COMMIT继续只作为独立 upstream source pin,不与 wrapper SHA 绑定。LIBREFS_COMMIT == GITHUB_SHA绑定;同步部署文档。影响与边界
Production 只收紧 wrapper main provenance;candidate manifest 和 upstream
LIBREFS_COMMIT语义保持不变。此 PR 未触发 workflow、未写 Hugging Face、未部署、未 restart,也未修改 Space Variables 或持久数据。验证
bash -n scripts/validate-contract.sh scripts/smoke-s3-curl.shscripts/validate-contract.shactionlint .github/workflows/deploy-hf-space.ymlgit diff --checkorigin/main上缺少 strict formal gates 的旧 workflow。以上均在本 PR head 上通过;contract suite 中两个预期失败 fixture 仍按设计验证额外文件与 checksum tamper 会被拒绝。
Review focus
请重点核对 wrapper main 绑定与
LIBREFS_COMMITupstream pin 的独立性,以及所有新增 gate 均位于首次 HF upload 前。