select-opt dry-run: foothold verified_reuse first, build-config default w/ fallback, GPU enum map (45/45)

This commit is contained in:
Victor Cao
2026-10-16 22:00:52 +08:00
parent bed3bc11ca
commit 68f24e6794
7 changed files with 193 additions and 56 deletions

View File

@@ -45,5 +45,7 @@
- `POST /api/adapt/task/build-config`,query 为 `gpuType` / `framework` / `taskType`,空 body;成功 JSON `code=0`,`data` 为 YAML。
- UI 无「自动配置」标签;选择框架触发 effect 填入 configParams。模型地址不进入该请求。
- 抓包观察 Authorization(值未记录);容器默认 Xc-Token 社区实践,可显式切换 Authorization,尚无 token 鉴权实证。
- 默认 dry-run 离线 sample;CONFIG_PARAMS_SOURCE=build-config 或 ALLOW_BUILD_CONFIG=1 且 token 可解析时调用 API,失败不可静默回退。
- 默认 dry-run:`resolve_token()` 成功时优先 build-config;失败回退 sample,逐条报告 configParams_source、GAP 和 fallback reason。无 token → sample。CONFIG_PARAMS_SOURCE=sample 强制离线;=build-config 强制 API 路径(dry-run with_meta 仍可回退)。make build-config-dry 保持失败非零退出。
- API gpuType 仅映射壁砺/壁砺166M/Biren_166m 与曦望/曦望 S2/Sunrise_pt-200-x1;未知卡不请求 API,报告 GAP: gpu enum unmapped。
- 选策优化后仍为 experience_order,perf_order=unset;order_source=experience;无正式性能表。Section A 仅按 foothold 文本将 verified_reuse 提前,其余 A 保持文件序,再接 B。API foothold evidence: GAP (not wired)。
- **live 前必须有 token + API 调用实证**;sample 单独不是 production-ready。队列 ≥95 继续禁 live,本轮无 live。

View File

@@ -1,13 +1,14 @@
# Tag 文案草稿(仍默认 dry-run)— 未授权勿 push
# Tag 文案草稿(仍默认 dry-run)
- 建议 Tag 名(待 Victor 确认):`v0.2.0-phase2-dryrun` 或 `v0.2.0-submit-ready-dryrun`
- 相对 Phase1 `v0.1.0-phase1@0d0f3b6`:pending A 池 + 经验序排序、只读 task/page 探针、task/add 客户端仍双重闸门默认关、configParams sample 仅 dry-run
- **不含**:live 开闸、真实自动配置、开闸环境变量默认开启
- 推 Tag 条件:仅当 Victor **明确**说「先上线 dry-run 客户端」;产品当前:**先别 push Tag**
- 队列满 / configParams 缺口期间:**不开闸**
- 建议 Tag:`v0.2.0-phase2-dryrun`
- 基线:控制台当前 `v0.1.0-phase1` @ `0d0f3b6`
- 相对 Phase1:pending **Section A** + 经验序;只读 `task/page` 探针;`build-config` 客户端(默认离线 sample,opt-in 才调 API);`task/add` 双重闸门默认关
- **不含**:live 开闸、默认真实提交
- 推送:仅 Victor 本人;Agent 不代 push
- 队列≥95 / 无书面批准:**不开闸**
推送检查清单(人工):
1. `make test` 绿
2. ALLOW_LIVE_SUBMIT 默认非 1;LIVE_CONFIRM 未设
3. 控制台重建后日志仍为 dry-run / Phase2 格式
检查清单:
1. `make test` 42/42
2. `ALLOW_LIVE_SUBMIT` 默认非 1
3. 重建后 `/health` 200;`/status` token/strategy 布尔
4. 不代注册、不代 live