完善 SouWen HFS 在线预览、部署事务与验收文档 - #269
Merged
Merged
Conversation
This was referenced Jul 29, 2026
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.
结果
本 PR 将 SouWen 的 canonical HFS Preview 收口为可操作、可验收且失败后 fail closed 的部署面:Panel 的 Search/LLM Search 请求与 Server contract 一致,完整功能有固定 deep link 与角色说明,部署事务在 settings mutation 后失败时暂停 Space 等待人工恢复,不再尝试用未知旧 Secret 值自动回滚。
本 PR 包含并扩展 #268 的 HFS registry 调整;#268 可在本 PR 合并后关闭。
主要变更
single策略;保留 loading/error/empty、深色模式、窄屏和键盘焦点行为。docs/live-preview.md,列出 Login、Search、LLM Search、Fetch、Providers、Runtime、Settings、Swagger、OpenAPI 和 probes 的直达入口、角色与验收顺序。settings_mutation_started=true后的失败才触发 containment,写前失败不会暂停健康 Space。preview/primary/source、本地 env 与 raw YAML 事实源;正式公开 HFS 基线仍为 v2.0,generic sync 继续在读本地值和联网前 fail closed。v2.0.0rc4tag/Release 不移动、不覆盖。影响与边界
BlueSkyXN/SouWencanonical Space;不创建、移动或删除任何 Space/Bucket,不影响其他项目。deployment + publish=false + deploy_hfs=true执行 factory rebuild 与 live acceptance。验证
PYTHONPATH=src pytest tests/ -q --tb=short:2744 passed,2 skipped。cd panel && npm test && npm run build:local && npm run check:artifact:7 files / 48 tests PASS,single-file artifact readback PASS。ruff check src tests scripts:PASS;ruff format --check src tests scripts:908 files formatted。sdk-contract与server-contractprofiles:PASS。git diff --check:PASS。actionlint -shellcheck= -pyflakes=:workflow YAML/expression lint PASS;默认外部 integrations 在本机 actionlint v1.7.7 出现 CPU loop,交由远端 CI 复核。Review focus
.github/workflows/deploy-hf-space.yml中 preflight、mutation marker、first write 与 containment 条件顺序。scripts/hf_space_smoke.py的 authenticated/edge-only/anonymous auth 矩阵与 redaction parity。hfs-dev.toml的 draft/public-baseline、registry-only 和 local fact-source 边界。