You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(roadmap): refine records an item whose model call failed or whose body would exceed the size limit, so it waits for a body change instead of being retried every poll #1526
scope/roadmapThe roadmap jobs: intake, refine, stage, implement and the Service that runs themsource/agentFiled by an agenttype/bugType bug: the code does not do what it must
Follow-up split from #1515 (refine runs every hour), from its review on 2026-10-09.
Problem
With feat(roadmap): refine runs every hour and readies the new items of every planned release, nearest first, before that release starts #1515, refine runs every hour and walks every planned release and the backlog's P0/P1 items. An item whose model call fails (gateway error, unusable answer) or whose refined body would exceed GitHub's 65,536-character body limit records nothing, so the next run selects it again: a failed round leaves refine due at every 300 s poll, and a size-guard skip repeats every hourly run, each spending the item's model calls again, and the item keeps a place in the --limit batch ahead of items refine could ready.
When refine skips an item for a failed model call or for the size guard, record it in the item's job record with the body hash it saw, as it records a finished refinement, so select_candidates treats it as unchanged until the body changes. A model-call failure is retried once on the next run (one transient failure), then waits for a body change.
Acceptance criteria
An item whose refined body would exceed 65,536 characters is selected once, then skipped as unchanged until its body changes.
An item whose model call fails twice in a row is skipped as unchanged until its body changes; one failure followed by a success refines it.
Both are tested on the in-memory store with a fake model client; changelog.d/<issue>.md under ### Fixed.
changed the title [-]fix(roadmap): refine records an item whose model call failed or whose body would exceed the size limit, so it waits for a body change instead of being retried every hour[/-][+]fix(roadmap): refine records an item whose model call failed or whose body would exceed the size limit, so it waits for a body change instead of being retried every poll[/+]on Oct 9, 2026
Intake placed this item to the backlog: at intake only a critical fix goes into a release; a release start pulls Ready items in, P0 features first.
Priority: P2-Medium. It wastes model calls every 300 s poll and every hourly run and blocks other items in the --limit batch, but the system still functions and no data is lost.
Value: Medium. It prevents unnecessary model-call spend and unblocks other items from being refined, but the core refine feature still works for items that succeed.
Effort: Low. The fix is to record a skip with the body hash in the job record (mirroring the existing finished-refinement record) and adjust select_candidates to treat it as unchanged, a targeted change with clear acceptance criteria.
Folded into #1539, which covers the same functions and tests: refine records an item whose model call failed or whose new body would exceed the size limit, so it waits for a body change instead of being retried every poll. #1539 also makes a settled item cost no body read and caches intake's embeddings.
scope/roadmapThe roadmap jobs: intake, refine, stage, implement and the Service that runs themsource/agentFiled by an agenttype/bugType bug: the code does not do what it must
Activity
[-]fix(roadmap): refine records an item whose model call failed or whose body would exceed the size limit, so it waits for a body change instead of being retried every hour[/-][+]fix(roadmap): refine records an item whose model call failed or whose body would exceed the size limit, so it waits for a body change instead of being retried every poll[/+]dan-petty-bot commentedon Oct 9, 2026
Intake placed this item to the backlog: at intake only a critical fix goes into a release; a release start pulls Ready items in, P0 features first.
It wastes model calls every 300 s poll and every hourly run and blocks other items in the --limit batch, but the system still functions and no data is lost.It prevents unnecessary model-call spend and unblocks other items from being refined, but the core refine feature still works for items that succeed.The fix is to record a skip with the body hash in the job record (mirroring the existing finished-refinement record) and adjust select_candidates to treat it as unchanged, a targeted change with clear acceptance criteria.dan-petty commentedon Oct 10, 2026
Folded into #1539, which covers the same functions and tests: refine records an item whose model call failed or whose new body would exceed the size limit, so it waits for a body change instead of being retried every poll. #1539 also makes a settled item cost no body read and caches intake's embeddings.