Merge pull request 'fix: bug: architect-run.sh exits silently — runs git from baked /home/agent/disinto which is not a git repo (#569)' (#610) from fix/issue-569-1 into main
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
This commit is contained in:
commit
1499eb04df
5 changed files with 17 additions and 4 deletions
|
|
@ -78,6 +78,9 @@ memory_guard 2000
|
|||
log "--- Architect 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
|
||||
|
||||
# ── Resolve agent identity for .profile repo ────────────────────────────
|
||||
|
|
|
|||
|
|
@ -67,6 +67,12 @@ memory_guard 2000
|
|||
|
||||
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 ────────────────────────────
|
||||
# Check for new commits since last run
|
||||
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}"
|
||||
|
||||
# ── Resolve forge remote for git operations ─────────────────────────────
|
||||
resolve_forge_remote
|
||||
|
||||
# ── Resolve agent identity for .profile repo ────────────────────────────
|
||||
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}"
|
||||
|
||||
# ── 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 agent identity for .profile repo ────────────────────────────
|
||||
|
|
|
|||
|
|
@ -63,6 +63,9 @@ memory_guard 2000
|
|||
log "--- Predictor 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
|
||||
|
||||
# ── Resolve agent identity for .profile repo ────────────────────────────
|
||||
|
|
|
|||
|
|
@ -85,7 +85,8 @@ memory_guard 2000
|
|||
log "--- Supervisor run start ---"
|
||||
|
||||
# ── 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) ────────────────
|
||||
cleanup_stale_crashed_worktrees 24
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue