You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Determine session type (broad vs deep) from directory name
151
+
_SESSION_DIR=$(dirname "$LATEST_STATE")
152
+
_SESSION_NAME=$(basename "$_SESSION_DIR")
153
+
_SESSION_TYPE="broad"
154
+
if [[ "$_SESSION_NAME"== deep-* ]];then
155
+
_SESSION_TYPE="deep"
156
+
fi
157
+
110
158
if [[ "$BAKEOFF_SUMMARY"== CONVERGED* ]];then
111
159
BAKEOFF_CONVERGENCE_LINE="$BAKEOFF_SUMMARY"
112
-
BAKEOFF_SUFFIX=$'\n\n---\nBakeoff convergence: '"$BAKEOFF_SUMMARY"$'\nLatest bakeoff session is CONVERGED — no critical/high issues. Running another bakeoff on the same cohort would be redundant. Consider: selecting a new cohort, mining existing artifacts, or moving to other work items.'
160
+
if [[ "$_SESSION_TYPE"=="broad" ]];then
161
+
BAKEOFF_SUFFIX=$'\n\n---\nBakeoff convergence: '"$BAKEOFF_SUMMARY"$'\nLatest BROAD bakeoff session is CONVERGED — no critical/high issues.\nNext steps:\n - Select a new cohort: ./scripts/bakeoff cohort --count 5\n - Mine existing artifacts: ./scripts/bakeoff issues --format json\n - Run LLM assessment: ./scripts/bakeoff-reflect\n - Or move to other work items (tracker ready)'
162
+
else
163
+
BAKEOFF_SUFFIX=$'\n\n---\nBakeoff convergence: '"$BAKEOFF_SUMMARY"$'\nLatest DEEP bakeoff session is CONVERGED — all repos GOOD.\nNext steps:\n - Select a new cohort: ./scripts/bakeoff-features cohort --count 4\n - Compare sessions: ./scripts/bakeoff-features compare <A> <B>\n - Run LLM assessment: ./scripts/bakeoff-features-reflect\n - Or move to other work items (tracker ready)'
164
+
fi
113
165
elif [[ "$BAKEOFF_SUMMARY"== NEEDS_WORK* ]];then
114
166
BAKEOFF_CONVERGENCE_LINE="$BAKEOFF_SUMMARY"
115
-
BAKEOFF_SUFFIX=$'\n\n---\nBakeoff convergence: '"$BAKEOFF_SUMMARY"$'\nLatest bakeoff session has outstanding issues. Consider investigating these before starting new work.'
STALE_PR_SECTION=$(printf '\n\n## STALE PULL REQUESTS\nThe following open PRs are older than 6 hours. Consider: merge (if CI green),\nrebase + re-push (if out of date), fix (if CI failed), or close (if superseded).\n\n%s\n'"$stale_prs")
337
+
fi
338
+
}
339
+
_stale_pr_audit
340
+
fi
341
+
342
+
# Append stale-PR section to the active guidance file (whichever was generated)
**Important:** Before running, update `last_pr` and `notes` in the script with actual values. The `notes` field is critical — it gets injected into the cooldown prompt so the next cycle knows what to implement. Write specific, actionable implementation tasks, not vague observations.
0 commit comments