Skip to content

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

Closed as not planned

Description

@dan-petty

Follow-up split from #1515 (refine runs every hour), from its review on 2026-10-09.

Problem

Proposed remedy

  • 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.

Activity

  1. added
    type/bug
    source/agent
    scope/roadmap
    on Oct 9, 2026
  2. 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
  3. dan-petty-bot commented on Oct 9, 2026

    @dan-petty-bot
    Collaborator

    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.
  4. dan-petty commented on Oct 10, 2026

    @dan-petty
    OwnerAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    scope/roadmapsource/agenttype/bug

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions