Skip to content

Closed GitHub issues leave Backlog, and a closed issue can't be auto-started - #2280

Merged
santoshkumarradha merged 63 commits into
app/v3from
c52/closed-issues
Nov 3, 2026
Merged

santoshkumarradha merged 63 commits into
app/v3from
c52/closed-issues

Conversation

@santoshkumarradha

@santoshkumarradha santoshkumarradha commented Nov 3, 2026 •

Copy link
Copy Markdown
Member

What changes for the person

Issues closed on GitHub used to stay in Backlog, and a start rule could pick one up and spend. Now an untouched Backlog issue closed on GitHub moves to Done (closed) with an Activity line, at no model cost.

  • An issue reopened on GitHub comes back to Backlog if this path finished it. A Done row a person chose never comes back, and a person's action on a row this path finished clears that mark.
  • A row that was touched stays where it is: edited steps, Look closer, any spend, a run, chat, reply, answered question, or a started or queued job.
  • A job that ended with nothing done on it gets no end brief, so a closed issue buys no model call.
  • If an issue number now means a different GitHub issue (a repo name reused, a transfer), the row stays as it is. Pressing Start says: "standing W3: landing seam, judgment role, acting under grant #12 now identifies a different GitHub issue, so it wasn't started. The saved job is unchanged."

How it decides

There is one rule. Lists only nominate a row for checking and never write state. One function does a fresh read of that issue, takes the row lock, and finishes the row only if it is still untouched and the answer is closed. Nothing compares times.

A failed read does nothing: an error, rate limit, 404, 410 or no access never finishes a row. The row backs off and doesn't hold a place, so a healthy row is still read. The check set rebuilds after a restart.

GitHub calls

Measured on a scripted repo with 5,000 closed and 200 open issues: first poll 6 requests, next poll 3, quiet poll 3. At most 40 direct issue reads per repo per poll, oldest nominated first. Closed history is never listed.

Limits

  • A close then reopen inside one read gap can show Done until a later poll. It shows, corrects itself and spends nothing, because a Done row is never started.
  • A reopened issue comes back on the next poll once the open list shows it. With more than 40 reopened at once, the rest wait for following polls. A row whose read failed waits out its backoff.
  • A large set can take several polls to check.
  • A deleted issue stays as it is.
  • This path never stops work. A running job is guarded separately by the spend check.
  • Tested against a scripted GitHub server, not a live repo.

No app wire change.

Validation

  • A seeded random-sequence test runs close, reopen, transfer, repo name reuse, person edit, Look closer and restart over stale and reordered lists. It checks that an open issue never stays Done past its read, a touched row never moves, a person's Done never comes back, and a failed read changes nothing.
  • Named tests cover identity, failed reads, clearing the mark, the read cap and starvation, Start on a different issue, and a worker round trip.
  • internal/factory/..., internal/praf/..., internal/manual, internal/appwire and whole cmd/codeaf pass.

🤖 Generated with Claude Code

santoshkumarradha and others added 30 commits November 2, 2026 22:08
Read closure changes after the cursor and reconcile older local rows with bounded direct checks. Preserve jobs that started or have work, record source closure in Activity, and exclude finished jobs from arrival triage.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The team poll rebuilds its Source each tick. Persist list tags with poll metadata so completing the closure sweep does not turn quiet polls into full list reads.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Prime the next all-state query after changes, so quiet polls reuse the exact representation. Keep sweep progress on errors and leave missing issues untouched while reconciling later rows.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Document the conservative hold rule and expose sweep failures in poll status. Use representation-specific conditional requests for call accounting.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Count identity requests in the scripted large-repository measurement and protect brief generation as existing job work.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Name Run again for a reopened finished issue and document closure reconciliation beside the existing start check.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…rouble, no-work end buys no brief

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…s no brief; missing issue is no trouble

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…e open row can't reopen a close

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
… don't move it; a new process sweeps again

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…es close vs reopen; each process sweeps once

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…nsfer's answer closes nothing

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
santoshkumarradha and others added 26 commits November 3, 2026 02:27
…ominations

Reject replacement identities before Start or automatic spending, preserve pinned rows on merge, and treat nondefault legacy stages as touched. Rotate failed nominations behind waiting rows while retaining exponential backoff. Worker writes are deltas; exercise their floor preservation.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Open listings nominate automatic-close rows ahead of pending checks; the same fresh issue read remains authoritative.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@santoshkumarradha
santoshkumarradha marked this pull request as ready for review November 3, 2026 11:43
@santoshkumarradha
santoshkumarradha merged commit 9035a0a into app/v3 Nov 3, 2026
@santoshkumarradha
santoshkumarradha deleted the c52/closed-issues branch November 3, 2026 11:43
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