Skip to content

chore(release): comment on the tracker only when a release needs a human (#724) - #867

Merged
bpalermo merged 1 commit into
mainfrom
chore/724-escalate-only
Sep 20, 2026
Merged

bpalermo merged 1 commit into
mainfrom
chore/724-escalate-only

Conversation

@bpalermo

Copy link
Copy Markdown
Owner

Closes #724.

Why

proxy-release comments on the rolling tracking issue on every run. #727 removed the hand-off that was built for, so since then every comment has ended with "Nothing to do here" — and has been correct 13 times out of 13, which is every pin PR the flow has ever produced:

chore/proxy-image-bump-* PRs, all time 13
merged 13
needed a human 0

A thread whose every entry says there is nothing to do buries the rare entry that does not, and it sits in the open-issue list competing with work that is actually blocked.

What changes

The tracker becomes an escalation thread. A single new step writes to it, only when the run genuinely needs somebody:

On the happy path nothing is written — the run summary is the whole record. Silence now carries information: an empty thread means every release since went through untouched.

Two traps this had to avoid

  1. Closing the issue would not have worked. The resolve step created the issue when it was missing, so the next release would simply have opened a new one. It now only finds an already-open issue; the escalation step creates one on demand.
  2. The title had to change with the semantics (proxy release needs a human). The old title belonged to the rolling log — reusing it would have reopened the very thread being retired.

Verification

The expiry classifier is table-tested against all five renderings the token step can emit:

EXPIRY rendering escalates
expiry not reported by the API (no expiration set…) no
expires in 200 days (`2027-04-08`) no
**expires in 12 day(s)** … rotate … yes
rotate the release environment secret … (expired) yes
expiry unparseable (`garbage`) yes

Note the healthy case renders days and the warning case day(s) — that is what the match turns on.

Also: YAML parses, and bash -n is clean on every run block in the file.

One correction to what I claimed on the issue: I said the 30-day warning "cannot fire". That was wrong — the logic is sound, and it distinguishes "no expiration set" from "could not read it" explicitly. The token simply has no expiry date configured, so there is nothing to warn about.

🤖 Generated with Claude Code

https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr

…man (#724)

`proxy-release` commented on the rolling tracking issue on every run. Since
#727 removed the hand-off it was built for, every one of those comments has
ended with "Nothing to do here" -- and has been right 13 times out of 13,
which is every pin PR the flow has ever produced. A thread whose every entry
says there is nothing to do buries the rare entry that does not, and sits in
the open-issue list competing with work that is genuinely blocked.

The tracker is now an ESCALATION thread. One new step writes to it, and only
when the run actually needs somebody:

  - auto-merge could not be armed;
  - a superseded chore/proxy-image-bump-* PR was left open;
  - RELEASE_PAT is expiring (<30d), expired, rejected or unparseable;
  - the run fell back to the #703 manual hand-off.

On the happy path nothing is written and the run summary is the whole record,
so an empty thread now means every release since went through untouched.

Two things this had to get right:

  - The resolve step CREATED the issue when missing, so closing it merely
    respawned it on the next release. It now only finds an already-open one;
    the escalation step creates it on demand.
  - The title changes with the semantics ("proxy release needs a human"). The
    old title belonged to the rolling log, and reusing it would have reopened
    the very thread being retired.

The expiry classifier is table-tested against all five renderings the token
step can emit: "no expiration set" and ">30 days" stay silent, while
"day(s)" (<30), "rotate" (expired) and "unparseable" escalate. Note the
healthy case renders "days" and the warning case "day(s)", which is what the
match turns on.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
@bpalermo
bpalermo merged commit 141d5c1 into main Sep 20, 2026
22 checks passed
@bpalermo
bpalermo deleted the chore/724-escalate-only branch September 20, 2026 18:00
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.

proxy releases pending chart pin

1 participant