Skip to content

Commit ae20ce9

Browse files
committed
refactor: make evolution pipeline fully robust
- Rewrite evolve.sh: clean pipeline, DAY_COUNT from BIRTH_DATE, fallback journal - Rewrite phases.go: remove duplicate code, single executeTask function - Rewrite phases_communicate.go: bulletproof journal writing (always produces output) - Clean prompts.go: simpler system prompt, remove unused imports - Clean workflow: remove redundant push step, use ITERATE_SKIP_PR - Fix tests: readDayCount returns '0' instead of empty
1 parent 57ff910 commit ae20ce9

6 files changed

Lines changed: 239 additions & 579 deletions

File tree

.github/workflows/evolve.yml

Lines changed: 6 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ on:
88
permissions:
99
contents: write
1010
issues: write
11-
pull-requests: write
1211

1312
jobs:
1413
evolve:
@@ -30,42 +29,27 @@ jobs:
3029
with:
3130
go-version: '1.25'
3231

33-
- name: Setup iteragent path
32+
- name: Setup iteragent
3433
run: |
35-
cd $GITHUB_WORKSPACE
3634
mkdir -p ..
3735
cp -r iteragent-pkg ../iteragent
3836
3937
- name: Configure git
4038
run: |
41-
git config user.name "iterate-evolve[bot]"
42-
git config user.email "iterate-evolve[bot]@users.noreply.github.com"
39+
git config user.name "iterate[bot]"
40+
git config user.email "iterate[bot]@users.noreply.github.com"
4341
44-
- name: Build iterate
45-
run: go build ./cmd/iterate
46-
47-
- name: Run evolution loop
42+
- name: Run evolution
4843
env:
4944
OPENCODE_API_KEY: ${{ secrets.OPENCODE_API_KEY }}
5045
OPENCODE_BASE_URL: https://opencode.ai/zen/go/v1
5146
ITERATE_PROVIDER: opencode
5247
ITERATE_MODEL: kimi-k2.5
5348
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5449
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
55-
ITERATE_SKIP_PR: "true"
5650
run: |
5751
bash scripts/evolution/evolve.sh
5852
59-
- name: Show evolution log
53+
- name: Show log
6054
if: always()
61-
run: cat .iterate/evolution.log 2>/dev/null || echo "(no log file)"
62-
63-
- name: Push changes
64-
run: |
65-
if [[ -n $(git status -s) ]]; then
66-
git add -A
67-
git commit -m "iterate: auto-evolution session $(date -u +'%Y-%m-%d %H:%M:%S')"
68-
fi
69-
git checkout main
70-
git pull --rebase origin main
71-
git push origin main
55+
run: cat .iterate/evolution.log 2>/dev/null || echo "(no log)"

0 commit comments

Comments
 (0)