Skip to content

perf(roadmap): a Service poll with no event newer than the last round's sends no GraphQL request #1401

Closed as not planned

Description

@dan-petty

Problem

#1361 named this follow-up. After #1361, a poll with a pinned cutoff still reads the board once: about 12 points on board #2, roughly 150 points an hour at 12 polls an hour. That's because changes_since returns the same foreign events on every poll and attaches their job records. ADR 0003 says "an unchanged answer costs nothing", which doesn't hold for this board read.

Acceptance criteria

  • When no event is newer than the last round's newest event, a Service poll skips the board read and the job-record attach.
  • ADR 0003 is amended to say what an unchanged poll costs.
  • Test: two consecutive polls with the same events; the second sends no GraphQL request. Offline, each call phase under 1 s, and uv run devops ci passes.

Strategic alignment


Filed directly with no priority; the roadmap service's intake sets Priority, Value and Effort.

Activity

  1. added
    type/refactor
    scope/github
    source/agent
    on Oct 8, 2026
  2. dan-petty-bot commented on Oct 8, 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 saves roughly 150 GraphQL points per hour and upholds ADR 0003, but the service still functions correctly without the optimisation.
    • Value: Medium. Reduces recurring API cost and aligns the poll with the project's stated zero-cost-for-unchanged invariant, but does not unblock any user-facing capability.
    • Effort: Low. The change is a conditional guard in the poll loop: compare the newest event timestamp to the last round's and skip the board read and job-record attach when nothing is newer.
  3. dan-petty commented on Oct 9, 2026

    @dan-petty
    OwnerAuthor

    Finding: v0.2.29 Service gap assessment (2026-10-09)

    ADR 0003 promises two polling properties the code lacks: there is no ETag / If-None-Match handling, and store.ChangeKind notes the GitHub adapter reports no board-field or blocked-by change, so a person's Blocked mark on a current-release item waits for reprioritize's 24 h stall check. Impact is low (polls spend about 15-18% of core quota). Proposed: no new mechanism; the ADR amendment this item already requires should say polls make unconditional REST reads and board-only edits wait for the daily stall check.

  4. dan-petty commented on Oct 9, 2026

    @dan-petty
    OwnerAuthor

    Folded into #1533 (owner, 2026-10-09): webhooks now drive event-scoped updates and the 5-minute poll becomes the reconciler for board edits and lost deliveries; this item's criterion (a poll with no newer event sends no GraphQL request) is one of #1533's acceptance criteria, and its ADR amendment is #1533's new ADR.

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/githubsource/agenttype/refactor

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions