feat(agent): expose harbor receipt input contract
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 33s
CD Pipeline / build-and-deploy (push) Failing after 2m36s
CD Pipeline / post-deploy-checks (push) Has been skipped

This commit is contained in:
Your Name
2026-06-30 23:14:13 +08:00
parent b726289142
commit a7b79b7b20
5 changed files with 172 additions and 1 deletions

View File

@@ -50902,3 +50902,21 @@ production browser smoke:
**下一步**
- 跑 focused suite / guards 後 commit / pushruntime 仍卡 Harbor / 110 時P0 下一步仍是恢復 `awoooi-host` controlled lane 或在 110 local console / root shell 依 phase 執行 check-mode / bounded repair再提交 queue + registry + deploy marker receipt。
## 2026-06-30 — 23:12 AI Loop executor Harbor receipt input contract
**完成內容**
- `agent-log-controlled-writeback-executor-readback``current_blocker_execution_queue` 新增 `harbor_recovery_receipt_endpoint` 與 6 個 `harbor_recovery_receipt_inputs`,把下一步 receipt 需要的 `gitea_actions_queue_readback``ssh_local_repair_output``watchdog_check_output``watchdog_repair_output``public_registry_v2_http_status``internal_registry_v2_http_status` 明確列給 AI Agent。
- 每個 receipt input 固定 `metadata_only=true``raw_output_allowed=false``secret_value_allowed=false`,避免把 queue / SSH / watchdog / verifier 回讀變成 raw log 或 secret 收集。
- `awoooi-priority-work-order-readback` 同步投影 receipt endpoint、input ids、input count 與 redaction policy讓主工作順序、AI Loop executor、Harbor receipt validator 對齊同一批 receipt 節點。
**本地驗證結果**
- `DATABASE_URL=postgresql+asyncpg://test:test@localhost:5432/test PYTHONPATH=apps/api python3.11 -m pytest apps/api/tests/test_ai_agent_log_controlled_writeback_executor_readback_api.py apps/api/tests/test_awoooi_priority_work_order_readback_api.py apps/api/tests/test_harbor_registry_controlled_recovery_receipt.py -q``16 passed`
- `ruff check``py_compile`:通過。
**live truth**
- 23:10 live queueCD `#4111` Running / `b72628914 feat(agent): add harbor queue receipt readback`classifier `harbor_registry_public_route_unavailable_pending_retry`Harbor repair `#4112` Waitingno matching label `awoooi-host`Harbor retry skip reason `not_110_host`
- registry / Harbor health 仍 502本輪仍未做 runtime write、workflow dispatch、host restart、Docker / K3s / Nginx reload、secret / runner token 讀取。
**下一步**
- commit / push若 live runtime 仍卡,下一個主線動作仍是 110 local console / root shell 依 receipt input contract 提交 non-secret queue + SSH + watchdog + registry verifier receipt或恢復 `awoooi-host` controlled lane 後讓 `harbor-110-local-repair` 接手。