Skip to content

完成本地上传容量与恢复运维工具 - #208

Draft
zj1123581321 wants to merge 8 commits into
mainfrom
card/vta-upload-F-261009
Draft

zj1123581321 wants to merge 8 commits into
mainfrom
card/vta-upload-F-261009

Conversation

@zj1123581321

@zj1123581321 zj1123581321 commented Oct 9, 2026 •

Copy link
Copy Markdown
Collaborator

范围

  • F 卡 local-upload/M6 非生产工具、恢复回归和有界容量探针。
  • F-R1 补丁仅修正 scripts/ops/local_upload_check.py 的 Git 查询退出码映射:0→safe-lineage、1→incompatible、其余→已有 unknown;没有新增状态/catch/fallback/retry。
  • CLI 继续 fail-closed;生产容量、恢复域、ingress/image 未证时输出 UPLOAD_ENABLE_BLOCKED,不启用/部署/恢复数据。

F-R1 红绿证据

  • 固定 H0 de3ff7b6671418ae7746649ef2167d5778c790ef 的独立新 scratch:真实单提交 Git fixture 的 rev-parse HEAD 产生 source SHA;minimum SHA 对象不存在,实际 merge-base --is-ancestor 返回 128,H0 helper 误报 incompatible;测试以业务断言 expected unknown / actual incompatible 红,不是导入错误。
  • H1 窄测:uv run --frozen pytest -q tests/unit/test_upload_ops.py tests/integration/test_upload_restore.py(12 passed)。真实 rc=128 helper 返回 unknown;现有真实 A safe-lineage 与 pre-A incompatible 对照保留。
  • H1 全量:PYTEST_ADDOPTS=-rs make test exit 0;3821 passed、3 skipped、0 failed。唯一 skip 为 tests/unit/test_capswriter_samples_total_contract.py:61 的真实 preflight fixture unavailable。
  • 偏差披露:一次为报告采集 raw Git argv/rc 的独立 Python fixture 命令漏写 cd,短暂在实现工作树运行;只操作 /tmp 临时Git仓,未读写live config/data或 tracked源文件,随后已在全新 H1 scratch 重复并取得相同结果。实现树已有忽略态 .venv/data/.pytest_cache 时间戳早于此次续派,来源未证,已采样但保留。

其他本地证据

  • clean-tree容量实验 SHA d33808abad7ebbc21981da659e556810c8e7216b:20s PCM/48kHz,1,920,044 bytes;2/2 raw HTTP receipts、两接收者;loopback URL download 与上传重叠,temp/data-tree峰值 3,840,088/4,572,561 bytes。ASR只达loopback rejector,真实ASR与生产容量仍unknown。
  • 实际 A guard-only 子进程消费 producer SQLite+正文,保护 active long share/旧别名;撤销前 snapshot恢复后外部gate=false时fresh Resolver拒读。

未完成的生产门槛

真实生产磁盘/反代/ASR容量、独立恢复域/撤销来源、部署image/source绑定、systemd/ingress验证和部署授权都未执行;VTA_UPLOADS_ENABLED 保持 off。M4/M5、完整生产证明不变。PR保持draft;CI/独立审查/ready/合并由lead托管。

zj1123581321 and others added 8 commits October 9, 2026 09:13
Agent-Executor: codex-pi
Agent-Model: gpt-6-luna
Agent-Effort: xhigh
Dispatch-Id: dlg-20261009-010337-a85c01
Task-Id: VideoTranscriptAPI-20261009-10
Agent-Executor: pi-lead
Agent-Session: pi-lead-1791429303659-4145181
Agent-Executor: codex-pi
Agent-Model: gpt-6-luna
Agent-Effort: xhigh
Dispatch-Id: dlg-20261009-013605-110782
Task-Id: VideoTranscriptAPI-20261009-11
Agent-Executor: codex-pi
Agent-Model: gpt-6-luna
Agent-Effort: xhigh
Dispatch-Id: dlg-20261009-013605-110782
Task-Id: VideoTranscriptAPI-20261009-11
Agent-Executor: codex-pi
Agent-Model: gpt-6-luna
Agent-Effort: xhigh
Dispatch-Id: dlg-20261009-013605-110782
Task-Id: VideoTranscriptAPI-20261009-11
Agent-Executor: codex-pi
Agent-Model: gpt-6-luna
Agent-Effort: xhigh
Dispatch-Id: dlg-20261009-013605-110782
Task-Id: VideoTranscriptAPI-20261009-11
Agent-Executor: codex-pi
Agent-Model: gpt-6-luna
Agent-Effort: xhigh
Dispatch-Id: dlg-20261009-033345-cf92e1
Task-Id: VideoTranscriptAPI-20261009-11
Agent-Executor: codex-pi
Agent-Model: gpt-6-luna
Agent-Effort: xhigh
Dispatch-Id: dlg-20261009-033345-cf92e1
Task-Id: VideoTranscriptAPI-20261009-11

This branch has not been deployed

No deployments
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.

1 participant