Repository navigation
Labels
effort/mediumEffort Mediumpriority/p2-mediumPriority P2: standard worksource/agentFiled by an agenttype/featureType feature: a new functionvalue/highValue High: the delivery of the item matters much
Description
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.
docs/adr/0003-polling-is-how-the-roadmap-sees-changes.md:1has the title "Polling is how the roadmap sees changes; webhooks only cut latency".- ADR 0009 (feat(service): one webhook router verifies each provider its own way, parses a typed payload and delivers each event only to the consumers subscribed to it #1386, closed) delivers each event with its typed payload to the consumers subscribed to it. ADR 0008 says: "feat(service): each subscribed webhook event runs the roadmap update scoped to it at once, and the 5-minute poll reconciles board edits and lost deliveries #1533's ADR records only the scoped updates, since the engine is recorded here."
devops roadmap intake --issue(src/devops_cli/commands/roadmap.py) is the per-issue intake that theissuesrow reuses._fetch_filtered_changes(src/devops_cli/roadmap/run.py:561) reads every change since the oldest last success of the rows with a due rule.- feat(service): each subscribed webhook event runs the roadmap update scoped to it at once, and the 5-minute poll reconciles board edits and lost deliveries #1533 lists this change as its PR 1. After the split, feat(service): each subscribed webhook event runs the roadmap update scoped to it at once, and the 5-minute poll reconciles board edits and lost deliveries #1533 only tracks its child issues, and no pull request closes feat(service): each subscribed webhook event runs the roadmap update scoped to it at once, and the 5-minute poll reconciles board edits and lost deliveries #1533 itself. So this candidate asks for a change that no other issue holds.
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
- Write a new ADR with the next free number in
docs/adr/. It supersedes the webhook clause of ADR 0003, and ADR 0003 points to it. It states the owner rule of 2026-10-09: each consumer declares the events that it subscribes to and the scheduled tasks that it runs. - Add the scoped updates in
src/devops_cli/roadmap/, one for each event in the table of feat(service): each subscribed webhook event runs the roadmap update scoped to it at once, and the 5-minute poll reconciles board edits and lost deliveries #1533:issuesopened, edited or reopened runs intake for that one issue, on the model lane. - Each scoped update reuses the decision code of its job with a narrowed scope, and records what it handled.
- Touch no Service code. Tests run on the in-memory store.
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 cipasses.
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 withuv run pytestand 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: Rungit diff --name-onlyon 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: Runuv run devops ciand 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.
Metadata
Metadata
Assignees
Labels
effort/mediumEffort Mediumpriority/p2-mediumPriority P2: standard worksource/agentFiled by an agenttype/featureType feature: a new functionvalue/highValue High: the delivery of the item matters much
Type
Projects
- StatusShow more project fieldsReady
- StatusShow more project fieldsNew
Activity
dan-petty commentedon Oct 23, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones on the board.
The candidate adds a new feature to handle webhooks with scoped updates.The change improves roadmap performance and event handling.Users benefit from faster and more accurate webhook processing.The change requires new ADR, scoped update logic, and tests.dan-petty commentedon Oct 28, 2026
Status set to Ready at bb46660 (see proposed design in issue body).
chore(main): release 0.14.0 (#2609)