Skip to content

feat(roadmap): a scoped update intakes one issue from what its webhook delivery carries and records what it handled, and an ADR makes webhooks drive scoped updates #2009

Description

@dan-petty

Friction

  • ADR 0003 makes polling the source of truth and a webhook only a hint. An opened issue therefore waits for, and pays for, a whole round of every due job of the repository.
  • No roadmap code can run the update of one event alone: intake of one issue, from what the delivery carries, with a record that stops the next poll from redoing it.

Evidence

Checked at main a752a14.

Existing tool considered

  • The router of ADR 0009 already parses each event into a typed payload. Intake already decides one issue with --issue. The scoped update reuses both and writes no second set of job rules.

Proposed remedy

Acceptance criteria

  • A new ADR records the decision and supersedes the webhook clause of ADR 0003. ADR 0003 points to it.
  • For each event in the table, a test on the in-memory store shows that the scoped update, given only what the delivery of that event carries, touches only that item.
  • Test first: a reconciling poll after a scoped update does not redo it, and it does not skip an older change that the update did not handle (one delivered and one dropped event, then a poll).
  • No file under src/devops_cli/server/ changes.
  • Tests run offline. uv run devops ci passes.

Source: #1533

Proposed design

Problem statement

ADR 0003 makes polling the source of truth for roadmap changes. An opened issue waits for a full round of every due job before it is processed. No roadmap code runs the update of one event alone. This issue adds scoped updates that handle one issue from its webhook delivery and record what they handled. It also writes an ADR that makes webhooks drive scoped updates.

Acceptance criteria

  • Criterion 1: A new ADR records the decision and supersedes the webhook clause of ADR 0003. ADR 0003 points to the new ADR.
    Verification: Read the new ADR file in docs/adr/ and confirm it states the supersedes relationship. Read docs/adr/0003-polling-is-how-the-roadmap-sees-changes.md and confirm it links to the new ADR.
  • Criterion 2: For each event (opened, edited, reopened), a test on the in-memory store shows the scoped update touches only that item.
    Verification: Run the new tests with uv run pytest and confirm each test passes and asserts that only the named issue is modified.
  • Criterion 3: A reconciling poll after a scoped update does not redo the handled item and does not skip an older unhandled change.
    Verification: Run the test that delivers one event and drops another, then polls. Confirm the poll processes the dropped event and does not reprocess the delivered one.
  • Criterion 4: No file under src/devops_cli/server/ changes.
    Verification: Run git diff --name-only on the pull request branch and confirm no path starts with src/devops_cli/server/.
  • Criterion 5: Tests run offline and the CI gate passes.
    Verification: Run uv run devops ci and confirm it exits 0.

Key questions

  • What is the next free ADR number in docs/adr/?: 0015. The directory tree shows ADRs 0001 through 0014. [sources: docs/adr/0014-required-checks-gate-the-merge-and-the-pre-push-hook-runs-the-fast-static-checks.md]
  • Which issue events trigger the scoped update, and on which lane do they run?: Issues opened, edited, or reopened. Each runs intake for that one issue on the model lane. [sources: src/devops_cli/commands/roadmap.py, docs/adr/0009-one-webhook-router-delivers-each-event-to-the-consumers-subscribed-to-it.md]
  • What does the scoped update reuse for its decision logic?: The intake decision code invoked with the --issue flag, narrowed to the one issue the delivery carries. [sources: src/devops_cli/commands/roadmap.py, src/devops_cli/roadmap/intake.py]
  • What does the scoped update record so the next poll does not redo it?: A record of the issue it handled, written so that _fetch_filtered_changes in run.py skips it on the next poll. [sources: src/devops_cli/roadmap/run.py:557]

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Activity

  1. added
    source/agent
    type/feature
    on Oct 23, 2026
  2. dan-petty commented on Oct 23, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones on the board.

    • Type: type/feature. The candidate adds a new feature to handle webhooks with scoped updates.
    • Priority: P2-Medium. The change improves roadmap performance and event handling.
    • Value: High. Users benefit from faster and more accurate webhook processing.
    • Effort: Medium. The change requires new ADR, scoped update logic, and tests.
  3. dan-petty commented on Oct 28, 2026

    @dan-petty
    OwnerAuthor

    Status set to Ready at bb46660 (see proposed design in issue body).

  4. added
    priority/p2-medium
    status/ready
    effort/medium
    value/high
    on Oct 28, 2026
  5. added a commit that references this issue on Oct 29, 2026
  6. removed
    status/ready
    on Oct 30, 2026
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

    effort/mediumpriority/p2-mediumsource/agenttype/featurevalue/high

    Type

    No type

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions