Skip to content

[NO-JIRA] monitoring-deployments: one pass, then end the turn - #1063

Merged
johnnymo87 merged 3 commits into
mainfrom
monitoring-deployments-no-loop
Dec 1, 2026
Merged

johnnymo87 merged 3 commits into
mainfrom
monitoring-deployments-no-loop

Conversation

@johnnymo87

Copy link
Copy Markdown
Owner

Description

  • monitoring-deployments no longer tells agents to re-invoke monitor-rollout.py in a loop. lgtm-shepherd's rollout sweep already runs that script every 4-6 minutes for configured repos and wakes the author session on an outcome, so the skill now says: one pass, then end the turn.
  • Exit 3 ("still rolling") now asks who is watching? Watched repo: end the turn; the rollout wake (or interim wake, for PROD that ships at a scheduled build) brings you back. Unwatched (not in the config, a "no rollout is being watched" merge notice, or a target the wake left out): the one allowed wait, capped at 15 passes per merge, then at most two timed wakes (agent-wait add --at on cloudbox, so it survives the nightly worktree prune), then the human.
  • monitor-rollout.py's exit-3 output and docstring no longer say "Re-invoke." The sweep judges by exit code; the new line is neutral because lgtm --rollout-check forwards the stdout tail to another agent. New test, flake gate 34 -> 36.
  • One sentence in shepherding-pull-requests' "After merge" pointing at the same rule.
  • Pressure-tested per writing-skills: with the old skill, agents looped without bound in 3/3 scenarios. With the new one: 0 extra passes on watched repos and within the cap on unwatched ones, across 5 scenarios.
  • Takes effect after a home-manager switch.

Not in this PR: the two shepherding-pull-requests edits that depend on lgtm-0q1b.54 (re-run blind spot) and lgtm-0q1b.55 (required checks on lgtm/eng-agent-platform). Neither had landed when this was opened.

References

… for unwatched rollouts

lgtm-shepherd's rollout sweep already runs monitor-rollout.py every 4-6
minutes for configured repos and wakes the author session on an outcome,
so the skill no longer tells agents to re-invoke the script in a loop.
Exit 3 now asks who is watching: watched -> end the turn; unwatched ->
at most 15 passes per merge, then at most two scheduled wakes, then the
human. The script's exit-3 text no longer says "Re-invoke." (lgtm reads
only the exit code). Pressure-tested before and after.

lgtm-0q1b.53
…apped wakes

Adversarial review fixes: the watcher sends an interim wake for merges
whose PROD ships at a scheduled build and watches past 30h for them; a
wake covers only its listed targets; off-cloudbox authors are woken too
(decide 'unwatched' by the merge notice, not by an unreadable config);
the capped wait schedules with agent-wait --at on cloudbox (survives the
nightly worktree prune) and carries its count; the script's exit-3 line
is neutral because lgtm --rollout-check forwards it to another agent.

lgtm-0q1b.53
@johnnymo87
johnnymo87 enabled auto-merge (squash) December 1, 2026 21:17
@johnnymo87
johnnymo87 merged commit f21b24d into main Dec 1, 2026
2 checks passed
@johnnymo87
johnnymo87 deleted the monitoring-deployments-no-loop branch December 1, 2026 21:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant