refactor: rename factory/ → supervisor/, factory-poll → supervisor-poll

The supervisor agent was confusingly named "factory" (same as the
project). Rename directory, script, log, lock, status, and escalation
files. Update all references across scripts and docs.

FACTORY_ROOT env var unchanged (refers to project root, not agent).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
johba 2026-03-15 18:06:25 +01:00
parent 8d73c2f8f9
commit 77cb4c4643
15 changed files with 68 additions and 68 deletions

View file

@ -1106,9 +1106,9 @@ while [ "$REVIEW_ROUND" -lt "$MAX_REVIEW_ROUNDS" ]; do
CI_FIX_COUNT=$(( ${CI_FIX_COUNT:-0} + 1 ))
if [ "$CI_FIX_COUNT" -gt 2 ]; then
log "CI failure not recoverable after ${CI_FIX_COUNT} fix attempts"
# Escalate to supervisor — write marker for factory-poll.sh to pick up
# Escalate to supervisor — write marker for supervisor-poll.sh to pick up
echo "{\"issue\":${ISSUE},\"pr\":${PR_NUMBER},\"reason\":\"ci_exhausted\",\"step\":\"${FAILED_STEP:-unknown}\",\"attempts\":${CI_FIX_COUNT},\"ts\":\"$(date -u +%Y-%m-%dT%H:%M:%SZ)\"}" \
>> "${FACTORY_ROOT}/factory/escalations.jsonl"
>> "${FACTORY_ROOT}/supervisor/escalations.jsonl"
log "escalated to supervisor via escalations.jsonl"
break
fi