feat(api): validate harbor registry recovery receipts
Some checks failed
CD Pipeline / workflow-shape (push) Successful in 4s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Successful in 40s
CD Pipeline / build-and-deploy (push) Failing after 2m40s
CD Pipeline / post-deploy-checks (push) Has been skipped
Some checks failed
CD Pipeline / workflow-shape (push) Successful in 4s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Successful in 40s
CD Pipeline / build-and-deploy (push) Failing after 2m40s
CD Pipeline / post-deploy-checks (push) Has been skipped
This commit is contained in:
@@ -1,3 +1,23 @@
|
||||
## 2026-06-30 — 20:21 Harbor registry controlled recovery receipt validator
|
||||
|
||||
**照主線修正的問題**:
|
||||
- 新增 `harbor_registry_controlled_recovery_receipt` service 與 `POST /api/v1/agents/harbor-registry-controlled-recovery-receipt`,把 110 local SSH repair、Harbor watchdog `--check` / `--repair-once` 非秘密輸出,以及 public / internal registry `/v2/` verifier 轉成可機讀 receipt。
|
||||
- Receipt validator 不回吐 raw log,只回傳 line / byte count、marker、控制通道 metadata、watchdog readiness、post-apply verifier、active blockers 與 metadata-only KM / RAG / MCP / PlayBook writeback contract。
|
||||
- Harbor preflight 的 target selector、controlled work item、post-apply verifier 已指向 receipt validator endpoint;下一步不再只是命令文字,而是 `harbor_registry_controlled_recovery_receipt_v1` 節點。
|
||||
- Gitea CD controlled-runtime profile 納入 receipt service / test,避免正式 CD 漏跑這個主線驗證。
|
||||
|
||||
**Live readback**:
|
||||
- Production marker 仍是 `7890778b83`,`/api/v1/agents/harbor-registry-controlled-recovery-preflight` 正式環境仍 404,代表 `f429999ac` / receipt validator 尚未 deploy。
|
||||
- Public Gitea latest visible CD 已被後續 main 更新取代:`#4048` canceled;`#4050` waiting,commit `74c54a65 fix(cd): bound non110 pressure threshold`。
|
||||
- Harbor public / internal registry `/v2/` 仍是 502;110 SSH diagnostic 仍是 `wooo publickey_offer_timeout`,控制通道尚未恢復。
|
||||
|
||||
**驗證**:
|
||||
- `py_compile`、`ruff check`、`bash -n`、`git diff --check` 通過。
|
||||
- focused pytest:`44 passed`。
|
||||
- `guard-gitea-runner-pressure.py`:`auto_branch_events_on_110=0`、`generic_runner_labels=0`;`check-gitea-step-env-secrets.js` 通過。
|
||||
|
||||
**邊界**:未讀 secret / token / `.env` / raw sessions / SQLite / auth;未使用 GitHub / `gh` / GitHub API;未 workflow_dispatch;未 SSH runtime 寫入;未執行 Docker / Nginx / K3s / DB / firewall runtime 寫入;未重啟、node drain、provider route 切換或 force push。
|
||||
|
||||
## 2026-06-30 — 20:20 Harbor registry controlled recovery preflight 接入主線
|
||||
|
||||
**照主線修正的問題**:
|
||||
|
||||
Reference in New Issue
Block a user