Compare commits
1 commit
046be451c4
...
e6ac67811a
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e6ac67811a |
2 changed files with 10 additions and 12 deletions
|
|
@ -137,14 +137,15 @@ For each finding from the health assessment, decide and execute an action.
|
||||||
|
|
||||||
**P3 Stale PRs (CI done >20min, no push since):**
|
**P3 Stale PRs (CI done >20min, no push since):**
|
||||||
Do NOT read dev-poll.sh, push branches, attempt merges, or investigate pipeline code.
|
Do NOT read dev-poll.sh, push branches, attempt merges, or investigate pipeline code.
|
||||||
Instead, nudge the dev-agent via tmux injection if a session is alive:
|
Instead, file a vault item for the dev-agent to pick up:
|
||||||
# Find the dev session for this issue
|
Write $OPS_REPO_ROOT/vault/pending/stale-pr-${ISSUE_NUM}.md:
|
||||||
SESSION=$(tmux list-sessions -F '#{session_name}' 2>/dev/null | grep "dev-.*-${ISSUE_NUM}" | head -1)
|
# Stale PR: ${PR_TITLE}
|
||||||
if [ -n "$SESSION" ]; then
|
## What
|
||||||
# Inject a nudge into the dev-agent session
|
CI finished >20min ago but no git push has been made to the PR branch.
|
||||||
tmux send-keys -t "$SESSION" "# [supervisor] PR stale >20min — CI finished, please push or update" Enter
|
## Why
|
||||||
fi
|
P3 — Factory degraded: PRs should be pushed within 20min of CI completion.
|
||||||
If no active tmux session exists, note it in the journal for the next dev-poll cycle.
|
## Unblocks
|
||||||
|
- Factory health: dev-agent will push the branch and continue the workflow
|
||||||
Do NOT file vault items for stale PRs unless they remain stale for >3 consecutive runs.
|
Do NOT file vault items for stale PRs unless they remain stale for >3 consecutive runs.
|
||||||
|
|
||||||
### Cannot auto-fix → file vault item
|
### Cannot auto-fix → file vault item
|
||||||
|
|
@ -251,7 +252,6 @@ knowledge file in the ops repo:
|
||||||
Knowledge files: memory.md, disk.md, ci.md, forge.md, dev-agent.md,
|
Knowledge files: memory.md, disk.md, ci.md, forge.md, dev-agent.md,
|
||||||
review-agent.md, git.md.
|
review-agent.md, git.md.
|
||||||
|
|
||||||
After writing the journal, write the phase signal:
|
After writing the journal, the agent session completes automatically.
|
||||||
echo 'PHASE:done' > "$PHASE_FILE"
|
|
||||||
"""
|
"""
|
||||||
needs = ["report"]
|
needs = ["report"]
|
||||||
|
|
|
||||||
|
|
@ -31,8 +31,6 @@ No action issues — the supervisor runs directly from cron like the planner and
|
||||||
Claude evaluates all metrics and takes actions in a single interactive session
|
Claude evaluates all metrics and takes actions in a single interactive session
|
||||||
- `$OPS_REPO_ROOT/knowledge/*.md` — Domain-specific remediation guides (memory,
|
- `$OPS_REPO_ROOT/knowledge/*.md` — Domain-specific remediation guides (memory,
|
||||||
disk, CI, git, dev-agent, review-agent, forge)
|
disk, CI, git, dev-agent, review-agent, forge)
|
||||||
- `supervisor/supervisor-poll.sh` — Legacy bash orchestrator (superseded by
|
|
||||||
supervisor-run.sh + formula)
|
|
||||||
|
|
||||||
**Alert priorities**: P0 (memory crisis), P1 (disk), P2 (factory stopped/stalled),
|
**Alert priorities**: P0 (memory crisis), P1 (disk), P2 (factory stopped/stalled),
|
||||||
P3 (degraded PRs, circular deps, stale deps), P4 (housekeeping).
|
P3 (degraded PRs, circular deps, stale deps), P4 (housekeeping).
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue