- checker_coordinator.sh: add COORDINATOR_SKIP_ROLES env (comma-separated) to drop
roles whose credentials are not provisioned from the registry entirely (never
canaried/run/ALARMed). Fail-safe: empty/unset = run all.
- systemd: sea-haven-checkers.{service,timer} run the coordinator nightly at ~03:30
UTC (90 min after the secrev sweep so they don't contend on $MIRROR_DIR / the
Claude pool). The unit sets COORDINATOR_SKIP_ROLES=aws-posture,confluence-doc
(aws-posture needs IAM Roles Anywhere; confluence-doc needs the confluence-bot
token — both intentionally unprovisioned).
Deployed + enabled on the box (deploy-before-merge): canary 4/4 with the skip,
timer scheduled for 2026-06-23 03:35 UTC.
46 lines
2 KiB
Desktop File
46 lines
2 KiB
Desktop File
# sea-haven-checkers.service — Plane-1 nightly checker coordinator (sh-secrev VM, user adam).
|
|
#
|
|
# Runs security-review/checker_coordinator.sh: the read-only Plane-1 checkers
|
|
# (compliance-drift, dependency-cve, doc-drift, plan-groomer) under ONE shared
|
|
# budget ledger + versioned rotation/coverage, ALARM-only to Slack. Reuses the
|
|
# secrev sweep's substrate ($MIRROR_DIR clones, budget discipline) — no re-clone.
|
|
#
|
|
# Install (on the VM, as root):
|
|
# sudo cp sea-haven-checkers.service /etc/systemd/system/
|
|
# sudo cp sea-haven-checkers.timer /etc/systemd/system/
|
|
# sudo systemctl daemon-reload
|
|
# sudo systemctl enable --now sea-haven-checkers.timer # the timer drives it
|
|
# systemctl list-timers sea-haven-checkers.timer
|
|
#
|
|
# Secrets/config come from the EnvironmentFiles (leading '-' = optional):
|
|
# ~/secrev.env -> CLAUDE_CODE_OAUTH_TOKEN, GH_TOKEN, SLACK_WEBHOOK_URL
|
|
# ~/orchestrator/.env -> OPENAI/etc. (only if a checker shells the cross-model run.py)
|
|
#
|
|
# COORDINATOR_SKIP_ROLES excludes roles whose creds are NOT provisioned:
|
|
# - aws-posture needs IAM Roles Anywhere / step-ca (not provisioned)
|
|
# - confluence-doc needs the confluence-bot Atlassian token (not provisioned)
|
|
# Remove a name here once its credential is provisioned to bring that checker online.
|
|
|
|
[Unit]
|
|
Description=Sea Haven agent-team Plane-1 nightly checker coordinator
|
|
After=network-online.target
|
|
Wants=network-online.target
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
User=adam
|
|
WorkingDirectory=/home/adam/orchestrator/security-review
|
|
EnvironmentFile=-/home/adam/secrev.env
|
|
EnvironmentFile=-/home/adam/orchestrator/.env
|
|
Environment=GH_ORG=Sea-Haven-Industries
|
|
Environment=COORDINATOR_SKIP_ROLES=aws-posture,confluence-doc
|
|
# Tune the shared ceiling without editing the script (uncomment to override):
|
|
# Environment=TOTAL_BUDGET_USD=120
|
|
# Environment=MAX_CYCLE_NIGHTS=4
|
|
ExecStart=/home/adam/orchestrator/security-review/checker_coordinator.sh
|
|
# Bounded so a hung checker cannot run forever; spend is capped by TOTAL_BUDGET_USD.
|
|
TimeoutStartSec=10800
|
|
Nice=10
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|