Some checks failed
Work Records / validate (push) Has been cancelled
Host LLM_CONNECT_URL discovery uses ClusterIP when DNS is unreachable; mail path fails hard if triage fails. Mark T06 done and workplan finished; update residual docs (OperatingRhythm, cutover runbook, llm-rhythm).
30 lines
969 B
Bash
Executable file
30 lines
969 B
Bash
Executable file
#!/usr/bin/env bash
|
|
# Monday 09:37 Europe/Berlin — deterministic mail-scan then optional triage session.
|
|
set -euo pipefail
|
|
# shellcheck disable=SC1091
|
|
source "$(dirname "$0")/run-common.sh"
|
|
require_repo
|
|
ensure_git_identity
|
|
require_llm_connect
|
|
log "START mail-scan"
|
|
# Deterministic pre-step (no Claude) — uses AppRole + OpenBao mail lane.
|
|
agent-harness mail-scan \
|
|
--target-repo "${BINKY_REPO}" \
|
|
--config "${BINKY_REPO}/integrations/mailbox-binky-company.yml" \
|
|
2>&1 | tee -a "${LOG_DIR}/mail.log"
|
|
scan_rc=${PIPESTATUS[0]}
|
|
log "mail-scan rc=${scan_rc}"
|
|
if [[ "${scan_rc}" -ne 0 ]]; then
|
|
exit "${scan_rc}"
|
|
fi
|
|
# Triage uses llm-connect (OpenRouter), never a host coding agent.
|
|
log "START mail-triage (llm-connect)"
|
|
agent-harness mail-triage \
|
|
--target-repo "${BINKY_REPO}" \
|
|
2>&1 | tee -a "${LOG_DIR}/mail.log"
|
|
triage_rc=${PIPESTATUS[0]}
|
|
log "mail-triage rc=${triage_rc}"
|
|
if [[ "${triage_rc}" -ne 0 ]]; then
|
|
exit "${triage_rc}"
|
|
fi
|
|
log "END mail-intake"
|