Ashira Pitchayapakayakul commited on
Commit
55d97bf
Β·
1 Parent(s): a8f4e74

feat(round11-anchor-devchain): full dev-chain on anchor + axentx target verified

Browse files

User: 'dev chain agent ΰΈ—ΰΈ΅ΰΉˆΰΈ—ΰΈ³ΰΉ‚ΰΈ›ΰΈ£ΰΉ€ΰΈˆΰΉ‡ΰΈ„ΰΈ‚ΰΈ­ΰΈ‡ axentx ΰΈ•ΰΉ‰ΰΈ­ΰΈ‡ΰΉ€ΰΈ£ΰΈ΄ΰΉˆΰΈ‘ΰΈ—ΰΈ³ΰΉ„ΰΈ”ΰΉ‰ΰΉΰΈ₯ΰΉ‰ΰΈ§ΰΈ™ΰΈ°'

Audit results:
- HF Space already runs dev-chain (M%2 dev-loop, M%20 auto-orchestrate,
M%30 research-apply, M%360 research-loop). All target axentx repos:
Costinel / vanguard / arkship / surrogate / workio / hermes-toolbelt
(round-robin via auto-orchestrate-loop.sh, line 30+).
- BUT anchor's bin/anchor/cron-loop.sh only had Round 5+7+8 entries.
Round 1-4 dev-chain entries were missing β†’ anchor would have heavy ARM
+ 24GB sitting idle on dev work.

Added to anchor cron-loop:
- M%2: surrogate-dev-loop.sh (continuous local dev, every 2min)
- M%3: push-training-to-hf.sh (training-pairs push to Hub)
- M%5: work-queue-producer.sh (Redis priority queue)
- M%15: surrogate-self-ingest.sh (FTS index)
- M%20: auto-orchestrate-loop.sh (full SA→arch→qa-tdd→dev→qa-verify→reviewer)
- M%30: research-apply / synthetic-data / rag-vector-builder
- M%60: dataset-enrich
- M%90: kaggle-trainer (free 30hr/wk on T4)
- M%360: lightning-trainer (free 4hr H200 quota)
- M%360: surrogate-research-loop (discover competitor features)
- daily: refresh-cve-feed, scrape-sre-postmortems, expand-role-keywords

PLUS: spawn auto-orchestrate-continuous as boot daemon on anchor (24GB
ARM has plenty of headroom; HF Space cpu-basic disabled this on LOW_MEM).
4 parallel dev-chain workers loop forever:
pick TODO from random axentx repo β†’ orchestrate β†’ commit+push if APPROVE.

Net: when anchor capacity arrives, axentx dev pipeline gets 3-4Γ— boost
(HF Space single-instance via cron + anchor 4 continuous workers parallel).

Files changed (1) hide show
  1. bin/anchor/cron-loop.sh +32 -0
bin/anchor/cron-loop.sh CHANGED
@@ -65,10 +65,42 @@ if ! pgrep -f "continuous-discoverer.sh" >/dev/null; then
65
  echo "[$(date '+%H:%M:%S')] continuous-discoverer started (anchor, never exits)" >> "$LOG"
66
  fi
67
 
 
 
 
 
 
 
 
 
 
68
  # ── Cron loop ──────────────────────────────────────────────────────────
69
  while true; do
70
  M=$(($(date +%s) / 60))
71
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
72
  # ── Round 5 (sustainability loops) ─────────────────────────────────
73
  [[ $((M % 360)) -eq 90 ]] && bash "${REPO}/bin/v2/self-improve-loop.sh" >>"$LOG" 2>&1 &
74
  [[ $((M % 30)) -eq 22 ]] && python3 "${REPO}/bin/v2/tool-trace-collector.py" >>"$LOG" 2>&1 &
 
65
  echo "[$(date '+%H:%M:%S')] continuous-discoverer started (anchor, never exits)" >> "$LOG"
66
  fi
67
 
68
+ # auto-orchestrate-continuous β€” 4 parallel dev-chain workers on axentx repos.
69
+ # (Disabled on HF Space cpu-basic LOW_MEM; anchor 24GB ARM runs it just fine.)
70
+ if [[ -x "${REPO}/bin/auto-orchestrate-continuous.sh" ]] \
71
+ && ! pgrep -f "auto-orchestrate-continuous" >/dev/null; then
72
+ nohup bash "${REPO}/bin/auto-orchestrate-continuous.sh" \
73
+ > "/data/logs/auto-orchestrate-continuous.log" 2>&1 &
74
+ echo "[$(date '+%H:%M:%S')] auto-orchestrate-continuous started (4 dev-chain workers on axentx)" >> "$LOG"
75
+ fi
76
+
77
  # ── Cron loop ──────────────────────────────────────────────────────────
78
  while true; do
79
  M=$(($(date +%s) / 60))
80
 
81
+ # ── Dev-chain on axentx projects (Round 1-4 originals + always-on) ─
82
+ # Continuous workers (above) handle most; cron entries are belt-and-suspenders.
83
+ [[ $((M % 2)) -eq 0 ]] && bash "${REPO}/bin/surrogate-dev-loop.sh" 1 >>"$LOG" 2>&1 &
84
+ [[ $((M % 5)) -eq 0 ]] && bash "${REPO}/bin/work-queue-producer.sh" >>"$LOG" 2>&1 &
85
+ [[ $((M % 3)) -eq 0 ]] && bash "${REPO}/bin/push-training-to-hf.sh" >>"$LOG" 2>&1 &
86
+ [[ $((M % 20)) -eq 0 ]] && {
87
+ if ! pgrep -f "auto-orchestrate-continuous" >/dev/null; then
88
+ bash "${REPO}/bin/auto-orchestrate-loop.sh" >>"$LOG" 2>&1 &
89
+ fi
90
+ }
91
+ [[ $((M % 30)) -eq 15 ]] && bash "${REPO}/bin/surrogate-research-apply.sh" >>"$LOG" 2>&1 &
92
+ [[ $((M % 360)) -eq 30 ]] && bash "${REPO}/bin/surrogate-research-loop.sh" >>"$LOG" 2>&1 &
93
+ [[ $((M % 60)) -eq 5 ]] && bash "${REPO}/bin/dataset-enrich.sh" >>"$LOG" 2>&1 &
94
+ [[ $((M % 15)) -eq 0 ]] && bash "${REPO}/bin/surrogate-self-ingest.sh" >>"$LOG" 2>&1 &
95
+ [[ $((M % 30)) -eq 12 ]] && bash "${REPO}/bin/rag-vector-builder.sh" >>"$LOG" 2>&1 &
96
+ [[ $((M % 30)) -eq 7 ]] && bash "${REPO}/bin/synthetic-data-from-rework.sh" >>"$LOG" 2>&1 &
97
+ [[ $((M % 1440)) -eq 240 ]] && bash "${REPO}/bin/refresh-cve-feed.sh" >>"$LOG" 2>&1 &
98
+ [[ $((M % 1440)) -eq 300 ]] && bash "${REPO}/bin/scrape-sre-postmortems.sh" >>"$LOG" 2>&1 &
99
+ [[ $((M % 1440)) -eq 360 ]] && python3 "${REPO}/bin/expand-role-keywords.py" >>"$LOG" 2>&1 &
100
+ # Anchor-only: heavy training submitters (Lightning H200 / Kaggle T4)
101
+ [[ $((M % 90)) -eq 5 ]] && bash "${REPO}/bin/kaggle-trainer.sh" >>"$LOG" 2>&1 &
102
+ [[ $((M % 360)) -eq 45 ]] && bash "${REPO}/bin/lightning-trainer.sh" >>"$LOG" 2>&1 &
103
+
104
  # ── Round 5 (sustainability loops) ─────────────────────────────────
105
  [[ $((M % 360)) -eq 90 ]] && bash "${REPO}/bin/v2/self-improve-loop.sh" >>"$LOG" 2>&1 &
106
  [[ $((M % 30)) -eq 22 ]] && python3 "${REPO}/bin/v2/tool-trace-collector.py" >>"$LOG" 2>&1 &