feat(api): expose onboarding template copy receipt
Some checks failed
CD Pipeline / workflow-shape (push) Successful in 0s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Successful in 21s
CD Pipeline / build-and-deploy (push) Successful in 8m58s
CD Pipeline / post-deploy-checks (push) Has been cancelled

This commit is contained in:
Your Name
2026-06-30 00:26:30 +08:00
parent ff44598b58
commit 6420f4b1eb
8 changed files with 459 additions and 0 deletions

View File

@@ -1,3 +1,13 @@
## 2026-06-30 — 00:16 P0-004 warning-step template copy receipt
**照優先順序完成的實作**
- 接續 production 已讀回 `controlled_template_copy_apply_gate_ready`,推進同一條 P0-004 主線的下一段 controlled applyGitea warning-step source template `docs/operations/templates/awoooi-gitea-onboarding-warning-step.workflow.yaml` 已複製到 `.gitea/workflows/awoooi-onboarding-warning-step.yaml`
- workflow 只宣告 `workflow_dispatch`,不含 `push` / `pull_request` / `pull_request_target`runner label 為 `awoooi-non110-host`,且 `AWOOOI_ONBOARDING_WARNING_STEP_EXECUTION_ENABLED="0"` 讓 job 預設 fail-closed本輪未觸發 workflow。
- 新增 GET `/api/v1/agents/awoooi-gitea-onboarding-warning-step-template-copy-receipt`,由 service 讀 committed template / copied workflow 並檢查 source/destination 一致、no branch auto trigger、no generic runner label、apply gate ready、rollback 與 post-copy verifier。
- `.gitea/workflows/cd.yaml` controlled-runtime profile 已納入 active workflow path、source template path、新 receipt service 與 focused tests避免 template/readback 變更被送到重型 runner path。
**邊界**:未 workflow_dispatch、未改 runner、未操作 host / Docker / K8s / DB / firewall未使用 GitHub / `gh` / GitHub API未讀 secret / token / raw sessions / SQLite / `.env`
## 2026-06-29 — 23:45 P0-006 final retry window readback source closure
**照優先順序完成的實作**