fix: bug: architect-run.sh exits silently — runs git from baked /home/agent/disinto which is not a git repo (#569)
This commit is contained in:
parent
05954191ae
commit
c7168b58e5
5 changed files with 17 additions and 4 deletions
|
|
@ -78,6 +78,9 @@ memory_guard 2000
|
||||||
log "--- Architect run start ---"
|
log "--- Architect run start ---"
|
||||||
|
|
||||||
# ── Resolve forge remote for git operations ─────────────────────────────
|
# ── Resolve forge remote for git operations ─────────────────────────────
|
||||||
|
# Run git operations from the project checkout, not the baked code dir
|
||||||
|
cd "$PROJECT_REPO_ROOT"
|
||||||
|
|
||||||
resolve_forge_remote
|
resolve_forge_remote
|
||||||
|
|
||||||
# ── Resolve agent identity for .profile repo ────────────────────────────
|
# ── Resolve agent identity for .profile repo ────────────────────────────
|
||||||
|
|
|
||||||
|
|
@ -67,6 +67,12 @@ memory_guard 2000
|
||||||
|
|
||||||
log "--- Gardener run start ---"
|
log "--- Gardener run start ---"
|
||||||
|
|
||||||
|
# ── Resolve forge remote for git operations ─────────────────────────────
|
||||||
|
# Run git operations from the project checkout, not the baked code dir
|
||||||
|
cd "$PROJECT_REPO_ROOT"
|
||||||
|
|
||||||
|
resolve_forge_remote
|
||||||
|
|
||||||
# ── Precondition checks: skip if nothing to do ────────────────────────────
|
# ── Precondition checks: skip if nothing to do ────────────────────────────
|
||||||
# Check for new commits since last run
|
# Check for new commits since last run
|
||||||
CURRENT_SHA=$(git -C "$FACTORY_ROOT" rev-parse HEAD 2>/dev/null || echo "")
|
CURRENT_SHA=$(git -C "$FACTORY_ROOT" rev-parse HEAD 2>/dev/null || echo "")
|
||||||
|
|
@ -85,9 +91,6 @@ fi
|
||||||
|
|
||||||
log "current sha: ${CURRENT_SHA:0:8}..., backlog issues: ${backlog_count}, tech-debt issues: ${tech_debt_count}"
|
log "current sha: ${CURRENT_SHA:0:8}..., backlog issues: ${backlog_count}, tech-debt issues: ${tech_debt_count}"
|
||||||
|
|
||||||
# ── Resolve forge remote for git operations ─────────────────────────────
|
|
||||||
resolve_forge_remote
|
|
||||||
|
|
||||||
# ── Resolve agent identity for .profile repo ────────────────────────────
|
# ── Resolve agent identity for .profile repo ────────────────────────────
|
||||||
resolve_agent_identity || true
|
resolve_agent_identity || true
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -89,6 +89,9 @@ fi
|
||||||
log "sha=${CURRENT_SHA:0:8} ops=${CURRENT_OPS_SHA:0:8} unreviewed=${unreviewed_count} vision=${vision_open}"
|
log "sha=${CURRENT_SHA:0:8} ops=${CURRENT_OPS_SHA:0:8} unreviewed=${unreviewed_count} vision=${vision_open}"
|
||||||
|
|
||||||
# ── Resolve forge remote for git operations ─────────────────────────────
|
# ── Resolve forge remote for git operations ─────────────────────────────
|
||||||
|
# Run git operations from the project checkout, not the baked code dir
|
||||||
|
cd "$PROJECT_REPO_ROOT"
|
||||||
|
|
||||||
resolve_forge_remote
|
resolve_forge_remote
|
||||||
|
|
||||||
# ── Resolve agent identity for .profile repo ────────────────────────────
|
# ── Resolve agent identity for .profile repo ────────────────────────────
|
||||||
|
|
|
||||||
|
|
@ -63,6 +63,9 @@ memory_guard 2000
|
||||||
log "--- Predictor run start ---"
|
log "--- Predictor run start ---"
|
||||||
|
|
||||||
# ── Resolve forge remote for git operations ─────────────────────────────
|
# ── Resolve forge remote for git operations ─────────────────────────────
|
||||||
|
# Run git operations from the project checkout, not the baked code dir
|
||||||
|
cd "$PROJECT_REPO_ROOT"
|
||||||
|
|
||||||
resolve_forge_remote
|
resolve_forge_remote
|
||||||
|
|
||||||
# ── Resolve agent identity for .profile repo ────────────────────────────
|
# ── Resolve agent identity for .profile repo ────────────────────────────
|
||||||
|
|
|
||||||
|
|
@ -85,7 +85,8 @@ memory_guard 2000
|
||||||
log "--- Supervisor run start ---"
|
log "--- Supervisor run start ---"
|
||||||
|
|
||||||
# ── Resolve forge remote for git operations ─────────────────────────────
|
# ── Resolve forge remote for git operations ─────────────────────────────
|
||||||
resolve_forge_remote
|
# Run git operations from the project checkout, not the baked code dir
|
||||||
|
cd "$PROJECT_REPO_ROOT"
|
||||||
|
|
||||||
# ── Housekeeping: clean up stale crashed worktrees (>24h) ────────────────
|
# ── Housekeeping: clean up stale crashed worktrees (>24h) ────────────────
|
||||||
cleanup_stale_crashed_worktrees 24
|
cleanup_stale_crashed_worktrees 24
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue