Skip to content

feat(github): decay progress-comment edit cadence as the comment ages#758

Draft
aparajon wants to merge 1 commit into
armand/progress-comment-dedupefrom
armand/progress-comment-decay
Draft

feat(github): decay progress-comment edit cadence as the comment ages#758
aparajon wants to merge 1 commit into
armand/progress-comment-dedupefrom
armand/progress-comment-decay

Conversation

@aparajon

@aparajon aparajon commented Jul 18, 2026

Copy link
Copy Markdown
Collaborator

Why this matters

An actively copying apply edits its PR progress comment every 5 seconds — ~720 writes per hour, per apply, for as long as the copy runs. Nobody watches a PR comment continuously for a day, and a single week-long schema change can, by itself, keep the installation near GitHub's secondary content-creation limit. The CLI is the high-resolution progress surface; the PR comment needs to stay current, not real-time.

What it does

Spaces progress-comment edits further apart as the live progress comment ages:

comment age edit interval
< 10 minutes 5s
< 1 hour 30s
< 2 hours 1m
< 4 hours 2m
< 6 hours 5m
older 10m
  • The clock is anchored to the live progress comment, not the apply: a rotation (resume after a stop, volume change) posts a fresh comment because someone just acted on the apply, so the fresh comment starts back at the fastest cadence. A recovered drive also restarts fast.
  • State transitions bypass the cadence entirely — a slowdown never delays "Waiting for Cutover" or a terminal state reaching the PR.
  • The comment states its own cadence: the "Last updated" footer renders · updates every ~2m for the current rung, so a reader watching a long apply sees the widening gap as designed behavior rather than a stall. The note re-renders once at each rung transition, keeping the advertised cadence truthful.

Stacked on #757.

🤖 Generated with Claude Code

@aparajon
aparajon force-pushed the armand/progress-comment-decay branch 2 times, most recently from 8e1ab8f to 0710f5b Compare July 18, 2026 23:14
A progress comment edits every 5s for its entire life, so a week-long
row copy makes hundreds of GitHub writes per hour against the
installation's shared budget long after anyone is watching the PR. The
edit interval now grows with the age of the live progress comment
(seconds-fresh -> minutes-old applies edit a few times per hour), while
state changes always publish immediately and the CLI remains the
high-resolution progress surface. Rotations (resume, volume change)
post a fresh comment and restart at the fastest cadence, since a
rotation means someone just acted on the apply.

The comment also states its own cadence: the "Last updated" footer
renders the current edit interval ("updates every ~2m") so a reader
watching a long apply sees the widening gap between updates as designed
behavior rather than a stall.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@aparajon
aparajon force-pushed the armand/progress-comment-dedupe branch from 76f5734 to 290a5dd Compare July 19, 2026 00:04
@aparajon
aparajon force-pushed the armand/progress-comment-decay branch from 0710f5b to 389522a Compare July 19, 2026 00:04
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