Repository navigation
Description
Tracking issue
This issue tracks the two pull requests of the section "Delivery" and the poll-watermark item of the section "Scope".
- PR 1, 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: 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.
- PR 2, no child issue: the roadmap consumer hands the typed payload of each subscribed event to its scoped update. Intake judged a separate PR 2 issue a duplicate of 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 on 2026-10-23 (fix(roadmap): intake judges a split part a duplicate of the issue that its --source names, so the part gets no issue #1985), so PR 2 stays in this issue. 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 is closed, so PR 2 waits only for 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.
- The poll-watermark item, no issue: intake judged it a duplicate of perf(roadmap): a Service poll with no event newer than the last round's sends no GraphQL request #1401, which is closed as not planned, on 2026-10-18 and again on 2026-10-23 (fix(roadmap): intake judges a split part a duplicate of the issue that its --source names, so the part gets no issue #1985). Until it has its own issue, its criterion stays here, as the section "Scope" says.
The pull request of PR 2 closes this issue. It merges after #2009 closes, so this issue closes after its child issue. If the poll-watermark item has no issue by then, the pull request of PR 2 also meets its criterion.
Refreshed plan (2026-10-17, unblocking review)
This section supersedes any text below that conflicts with it.
Decisions
- Decision D1 (owner, 2026-10-17): "chore(service): the roadmap service stays at 0 replicas, and its development is blocked, while its machine account is suspended #1562 holds the roadmap Service's deployment only; Service code is built, tested offline and merged at 0 replicas (replicas: 0, its test, and the no-scale/no-restart/no-secret-push rules stay)." So once the block-scope docs item writes D1 into AGENTS.md, the 2026-10-11 block on chore(service): the roadmap service stays at 0 replicas, and its development is blocked, while its machine account is suspended #1562 no longer stops this item being built; only the live check waits for the Service to run again.
- Decision D3 (owner, 2026-10-17): "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 and 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 build on today's in-process lanes, with schedules left to feat(k8s): the argo workflows controller runs in its own namespace under argo cd and deploy-stack, and a --version workflow measures start-up and api-server load for the go/no-go on moving the roadmap jobs onto it #1535's CronWorkflows; feat(k8s): the argo workflows controller runs in its own namespace under argo cd and deploy-stack, and a --version workflow measures start-up and api-server load for the go/no-go on moving the roadmap jobs onto it #1535 step 3 later swaps the delivery seam." This replaces the 2026-10-09 comment's "each scoped update in this item's table runs as a Workflow": scoped updates run on the lane workers fix(roadmap): the service runs close and reprioritize in their own lane, so a slow model-bound intake or refine round never holds up a release #1532 added, and the 5-minute reconciling poll stays in the Service until feat(k8s): the argo workflows controller runs in its own namespace under argo cd and deploy-stack, and a --version workflow measures start-up and api-server load for the go/no-go on moving the roadmap jobs onto it #1535's CronWorkflows take over schedules.
- perf(roadmap): a Service poll with no event newer than the last round's sends no GraphQL request #1401's criterion leaves this item for the poll-watermark item, because it needs neither 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 nor the Service, and the same reads run in a person's
devops roadmap run. - The new ADR takes the next free number in
docs/adr/at merge time, because 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 also adds an ADR. It states the owner's 2026-10-09 rule that each consumer declares the events it subscribes to and the scheduled tasks it runs, and it names Argo Workflows as the planned engine, pending feat(k8s): the argo workflows controller runs in its own namespace under argo cd and deploy-stack, and a --version workflow measures start-up and api-server load for the go/no-go on moving the roadmap jobs onto it #1535 step 1's go/no-go, which has not run yet.
Scope
- perf(roadmap): a Service poll with no event newer than the last round's sends no GraphQL request #1401's criterion moves to the poll-watermark item,
perf(roadmap): a poll with nothing newer than the changes its last round judged sends no graphql request(drafted in this review, not yet filed). It moves only once a person files that item carrying all three of perf(roadmap): a Service poll with no event newer than the last round's sends no GraphQL request #1401's criteria, none weakened; until then the body's criterion stays here as written. The three criteria:- When nothing is newer than the last round's newest judged change, the poll skips the board read and the job-record attach, whether or not an interval-due row runs. That row reads only what its own run needs.
- ADR 0003 says what an unchanged poll costs.
- Test: two consecutive polls over the same events. The second sends no GraphQL request, offline, with each call phase under 1 s.
- Everything else stays here: the new ADR, a scoped update for each event in the table, the record that stops the poll redoing one, and the Service dispatch.
Delivery
- PR 1 (M) closes 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: the new ADR, ADR 0003 pointing to it, and the scoped updates in
src/devops_cli/roadmap/. Each reuses its job's decision code with a narrowed scope and records what it handled. Tests run on the in-memory store. It touches no Service code, so it does not wait on 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. - PR 2 (M), "Fixes 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", after 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: the Service hands each subscribed event's typed payload from 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's router to its scoped update, on the lane the table names, with a test for each subscribed event that its delivery runs the scoped update and queues no full round. An event it does not subscribe to, or cannot scope, keeps today's whole-round hint.
Acceptance criteria
- The body's criterion "A poll with no change since the last round sends no GraphQL request (perf(roadmap): a Service poll with no event newer than the last round's sends no GraphQL request #1401's criterion)" leaves this item once the poll-watermark item is filed with all three of perf(roadmap): a Service poll with no event newer than the last round's sends no GraphQL request #1401's criteria, as set out above. Until then it stands here.
- PR 1, test first: a reconciling poll after a scoped update does not redo it, and it does not skip an older change the update did not handle (one delivered and one dropped event, then a poll). So neither this item's record nor the poll-watermark item's mark can hide a lost delivery.
- Pending a person: once the Service runs again after chore(service): the roadmap service stays at 0 replicas, and its development is blocked, while its machine account is suspended #1562's revert, a real delivery of each subscribed event runs its scoped update and no full round.
- The body's other criteria stand. PR 1 meets the ADR criterion and the scope half of the per-event criterion: for each event in the table, a test on the in-memory store shows that the scoped update, given only what that event's delivery carries, touches only that item. PR 2 meets the rest of the per-event criterion (the delivery alone runs the scoped update and makes no full round, tested through the Service for each subscribed event) and the lost-delivery and docs criteria.
Current references (main 3dd7fa6)
src/devops_cli/server/routes/webhooks.py:231-237: an accepted delivery passes only the repository, source, event and action toenqueue_trigger, and no payload goes any further.src/devops_cli/server/service.py:45-53(TriggerBatchholds counts and timestamps, no payload),:130(RepoWorker, one per lane since fix(roadmap): the service runs close and reprioritize in their own lane, so a slow model-bound intake or refine round never holds up a release #1532),:360-368(_poll),:370-376(enqueue_trigger, which queues the trigger on every lane of the repository).src/devops_cli/roadmap/run.py:657-702(the release and model lane rows; feat(release): release-please makes every release from main #1952 renamed the release lane tostatus) and:949-953(a quiet poll returns before it reads changes).src/devops_cli/roadmap/github_store.py:1965-1972(_with_job_records, the board read perf(roadmap): a Service poll with no event newer than the last round's sends no GraphQL request #1401 targets) andtests/test_roadmap_run.py:1678-1701(a round over 50 foreign changes still sends one board-budget and one board-items query).src/devops_cli/commands/roadmap.py:326-332:devops roadmap intake --issue, the per-issue intake that theissuesrow reuses.docs/adr/0003-polling-is-how-the-roadmap-sees-changes.md:1(the title still says "webhooks only cut latency"),k8s/README.md:372(each accepted delivery starts a round),k8s/devops/roadmap-service/deployment.yaml:12(replicas: 0),AGENTS.md:147-151(the chore(service): the roadmap service stays at 0 replicas, and its development is blocked, while its machine account is suspended #1562 block that D1 narrows).
Dependencies and order
- 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 (open, v0.2.38,
status/blockedon chore(service): the roadmap service stays at 0 replicas, and its development is blocked, while its machine account is suspended #1562 until D1 is written into AGENTS.md): PR 2 waits on it, and the native blocked-by link already exists. This item'sstatus/blockednow points at 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 and comes off when 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 merges. PR 1 does not wait for that. - The block-scope docs item (drafted in this review, not yet filed) writes D1 into
AGENTS.md:147-151andk8s/README.md:363. PR 1 starts after it lands. - fix(roadmap): the service runs close and reprioritize in their own lane, so a slow model-bound intake or refine round never holds up a release #1532: closed as completed in v0.2.33.
- feat(k8s): the argo workflows controller runs in its own namespace under argo cd and deploy-stack, and a --version workflow measures start-up and api-server load for the go/no-go on moving the roadmap jobs onto it #1535 (open, P0, v0.2.38): not a blocker. Decision D4 (owner, 2026-10-17) re-scopes it to step 1 now, and "steps 2-6 are filed after its go/no-go". Its step 3 moves the dispatch to Workflow submits.
- feat(roadmap): intake runs in its own triage lane on a fast devops-triage model, so a new p0 or p1 item gets its priority within one poll #1534 (open, no milestone, waits on feat(roadmap): reprioritize places every open p0 and p1 item in an open release, from the backlog and at a release start #882, which is open in v0.2.37): if it lands first, the
issuesopened/edited/reopened row runs on its triage lane rather than the model lane. - The poll-watermark item: neither item waits on the other, and whichever lands second keeps the other's tests green.
- chore(service): the roadmap service stays at 0 replicas, and its development is blocked, while its machine account is suspended #1562: closed as completed, but the account is still suspended. Only the person-run live check waits on it.
- Priority under the owner's blocker rule: none is forced now, because no filed item waits on this one. It becomes P0 if a P0 item, such as feat(k8s): the argo workflows controller runs in its own namespace under argo cd and deploy-stack, and a --version workflow measures start-up and api-server load for the go/no-go on moving the roadmap jobs onto it #1535's step 3, or two P1 items are filed to wait on it.
Requested by the owner, 2026-10-09: "ideally the webhook events would fire immediately and perform updates limited to the scope of the webhook event."
Problem
Checked at release/v0.2.33.
- ADR 0003 makes polling the source of truth and a webhook only a hint: any accepted delivery queues a full round of every due job for the repository (
server/routes/webhooks.py->ServiceManager.enqueue_trigger->RepoWorker), and no payload reaches a job (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). So an opened issue waits for, and pays for, a whole round. - On 2026-10-09 the Service spent 1,100-1,400 GraphQL points an hour, about 25% of the account's budget, almost all of it in rounds that found nothing new (8 repositories polled every 5 minutes, 12-16 points each). The real limit was the background model, not GitHub.
- ADR 0003's reasons for polling still hold: GitHub sends no webhook when a board owned by a personal account changes (Status, Priority, Value, Effort), and it never retries a failed delivery.
Decision (owner, 2026-10-09)
- Webhooks drive event-scoped updates; polling reconciles. A new ADR supersedes ADR 0003's "webhooks only cut latency": each subscribed event runs, at once, the update scoped to it; the poll stays as the reconciler for board edits and lost deliveries.
- The poll stays at every 5 minutes (
service.poll_interval_seconds: 300). - perf(roadmap): a Service poll with no event newer than the last round's sends no GraphQL request #1401 folds in: a poll with no event newer than the last round's sends no GraphQL request, so keeping the 5-minute reconciler costs little.
- Built after 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 (the router delivers each event's typed payload to its consumers) and fix(roadmap): the service runs close and reprioritize in their own lane, so a slow model-bound intake or refine round never holds up a release #1532 (the status lane, then called the release lane, never waits for the model lane).
Proposed design
| Event | Scoped update, at once | Lane |
|---|---|---|
issues opened / edited / reopened |
intake that one issue | model |
| board edits, a lost delivery | the 5-minute reconciling poll, as today | both |
- Each scoped update reuses the job's own decision code with a narrowed scope (one issue); nothing duplicates a job's rules.
- A scoped update records what it handled, so the reconciling poll does not redo it.
- An event the Service does not subscribe to, or one it cannot scope, falls back to today's hint.
Acceptance criteria
- A new ADR records the decision and supersedes ADR 0003's webhook clause; ADR 0003 points to it.
- For each event in the table, a test on the in-memory store shows the scoped update runs from the delivery alone, touches only that item, and makes no full round.
- A lost delivery is still handled by the next reconciling poll (test: drop the delivery, run the poll).
- A poll with no change since the last round sends no GraphQL request (perf(roadmap): a Service poll with no event newer than the last round's sends no GraphQL request #1401's criterion).
- AGENTS.md's roadmap-service section and k8s/README.md's webhook step describe the event-driven flow.
Proposed design
Problem statement
The Service treats every webhook delivery as a hint to run a full round of all due jobs. No payload reaches any job. This wastes GraphQL budget and delays issue processing. The fix makes each subscribed webhook event run its scoped update at once. The 5-minute poll reconciles board edits and lost deliveries.
Acceptance criteria
- Criterion 1: A new ADR records the decision and supersedes ADR 0003's webhook clause. ADR 0003 points to the new ADR.
Verification: A new file exists indocs/adr/.docs/adr/0003-polling-is-how-the-roadmap-sees-changes.mdcontains a link to it. - Criterion 2: For each subscribed event, a test on the in-memory store shows the scoped update runs from the delivery alone, touches only that item, and makes no full round.
Verification: Runuv run pytest tests/test_roadmap_run.py -k scopedand observe all tests pass. - Criterion 3: A lost delivery is still handled by the next reconciling poll.
Verification: A test drops the delivery, runs the poll, and observes the change is processed. - Criterion 4: A poll with no change since the last round sends no GraphQL request.
Verification: Two consecutive polls over the same events. The second sends no GraphQL request, offline, with each call phase under 1 s. - Criterion 5: A reconciling poll after a scoped update does not redo it and does not skip an older change the update did not handle.
Verification: A test delivers one event and drops another, then runs the poll. Both changes are handled. - Criterion 6: AGENTS.md's roadmap-service section and k8s/README.md's webhook step describe the event-driven flow.
Verification: ReadAGENTS.mdandk8s/README.md. Both describe the event-driven flow. - Criterion 7: Once the Service runs again, a real delivery of each subscribed event runs its scoped update and no full round.
Verification: A person sends a real webhook delivery for each subscribed event and observes the scoped update runs with no full round.
Key questions
- What does the new ADR state?: Each consumer declares the events it subscribes to and the scheduled tasks it runs. An event runs the update scoped to it at once. A consumer's scheduled reconciliation keeps its picture consistent where events are missing or lost. Argo Workflows is the planned engine, pending feat(k8s): the argo workflows controller runs in its own namespace under argo cd and deploy-stack, and a --version workflow measures start-up and api-server load for the go/no-go on moving the roadmap jobs onto it #1535 step 1's go/no-go. (proposed) [sources: docs/adr/0003-polling-is-how-the-roadmap-sees-changes.md, docs/adr/0009-one-webhook-router-delivers-each-event-to-the-consumers-subscribed-to-it.md]
- Which events are subscribed and what scoped update runs on which lane?:
issuesopened, edited, and reopened run intake of that one issue on the model lane. [sources: src/devops_cli/roadmap/run.py:657-702] - What happens to an event the Service does not subscribe to or cannot scope?: It falls back to today's whole-round hint via
enqueue_trigger. (proposed) [sources: src/devops_cli/server/routes/webhooks.py:231-237, src/devops_cli/server/service.py:370-376] - Does the poll stay at every 5 minutes?: Yes. The interval is
service.poll_interval_seconds: 300. (proposed) [sources: src/devops_cli/server/service.py:360-368] - Does the poll-watermark criterion stay in this issue?: Yes, until the poll-watermark item is filed with all three of perf(roadmap): a Service poll with no event newer than the last round's sends no GraphQL request #1401's criteria. Until then the criterion stands here. (proposed) [sources: tests/test_roadmap_run.py:1678-1701]
- What is the dependency order for the two PRs?: PR 1 (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) first. PR 2 after 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 closes. 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 is closed, so PR 2 waits only for 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. [sources: docs/adr/0009-one-webhook-router-delivers-each-event-to-the-consumers-subscribed-to-it.md]
- Does the chore(service): the roadmap service stays at 0 replicas, and its development is blocked, while its machine account is suspended #1562 account suspension block building this item?: No. D1 states Service code is built, tested offline, and merged at 0 replicas. Only the live check waits for the Service to run again. (proposed) [sources: k8s/devops/roadmap-service/deployment.yaml:12]
Fit
Needs splitting into 2 items:
- PR 1 (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): New ADR, ADR 0003 pointer, and scoped updates in
src/devops_cli/roadmap/with in-memory store tests. - PR 2: Service dispatch of typed payload to scoped update per subscribed event, with Service-level tests and docs updates in AGENTS.md and k8s/README.md.
Suspected block
The live check (real delivery of each subscribed event) waits on the GitHub machine account being reinstated (#1562 suspension).
Dependencies
Sub-issues
Collapse Sub-issuesSub-issues
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsNew
- StatusShow more project fieldsNew
Activity
dan-petty commentedon Oct 9, 2026
Owner direction (2026-10-09): events and schedules, for every consumer
"The service is ultimately going to need to manage both event driven triggers and scheduled tasks in order to integrate well with external services and maintain a consistent picture of state."
So this item's new ADR states the general rule, not only the roadmap case:
dan-petty commentedon Oct 9, 2026
The owner chose Argo Workflows as the Service's engine on 2026-10-09 (#1535). With it, each scoped update in this item's table runs as a Workflow on the lane mutex the table names, and the 5-minute reconciling poll becomes a CronWorkflow. The new ADR this item adds should record the engine alongside the event rule.
dan-petty-bot commentedon Oct 10, 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.
Owner-requested architectural change that cuts ~25% of the account's GraphQL budget and improves responsiveness, but it is a planned feature, not a blocking defect.Eliminates 1,100–1,400 wasted GraphQL points per hour and delivers sub-minute updates for issue, PR, and release events to all roadmap users.Requires a new ADR, scoped job execution for five event types, reconciliation bookkeeping, fallback logic, tests on an in-memory store, and updates to AGENTS.md, k8s/README.md, and RELEASE_CYCLE.md.dan-petty commentedon Oct 11, 2026
Blocked by #1562: the roadmap Service's machine account is suspended, and the Service is held at 0 replicas. This item develops the Service or can only be checked on it, so it waits until the account is reinstated or the jobs act as a GitHub App.
Generated by Claude Code
dan-petty commentedon Oct 18, 2026
Amendment (2026-10-18): folded by intake into closed #1401, recorded here on the item it splits from
devops roadmap intakejudged the candidate below a duplicate of #1401 and filed nothing. #1401 is closed, so the candidate would vanish there; it says it is a split from this item, so it is recorded here instead. That fold into a closed item is the defect #1671 describes. Candidate title: "perf(roadmap): a poll with nothing newer than the changes its last round judged sends no graphql request".Friction
status/blockedon chore(service): the roadmap service stays at 0 replicas, and its development is blocked, while its machine account is suspended #1562 and also waits on 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, the typed webhook router. The perf(roadmap): a Service poll with no event newer than the last round's sends no GraphQL request #1401 criterion needs neither, so it waits for no reason.devops roadmap run --confirm.Evidence
Checked at main 3dd7fa6.
_oldest_cutoff,src/devops_cli/roadmap/run.py:753-761, used by_fetch_filtered_changesat:803-807)._reprioritize_due,run.py:386-389). A change to any other item doesn't make it due, so its last success, and the cutoff with it, can stay up to a day old.changes_sinceattach job records, which reads the board over GraphQL (_with_job_records,src/devops_cli/roadmap/github_store.py:1965-1971).service_job,run.py:1017-1027). So every 5-minute poll repeats the same board read.test_a_round_judging_50_foreign_label_changes_reads_the_board_once(tests/test_roadmap_run.py:1678-1702) shows a round that runs no job and still sends one board-budget and one board-items GraphQL query.devops roadmap runcalls the samerun_due_jobs(src/devops_cli/commands/roadmap.py:577).Remedy
schedule.jsonstamps, the time of the newest change it has judged.budget/borrowed.Acceptance criteria
gh: two consecutive polls over the same 50 foreign label changes. The second sends no GraphQL request (extendstests/test_roadmap_run.py:1678-1702).run_due_jobsasdevops roadmap runcalls it.changelog.d/<issue>.mdfragment exists, anduv run devops cipasses.Related
fix(roadmap): intake judges a split part a duplicate of the issue tha…
dan-petty commentedon Oct 26, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones on the board.
This item implements core roadmap functionality that affects how changes are processed and delivered.The change enables more efficient processing of webhook events and improves the roadmap service's responsiveness.The implementation requires multiple components including ADR creation, scoped update logic, and Service dispatching.a scoped update intakes one issue from what its webhook delivery carries and records what it handledas the change that both ask for.The candidate and item #2009 both ask for the same change of a scoped update that handles one issue from a webhook delivery and records what it handled.A person closes one of the two if that is so.dan-petty commentedon Oct 27, 2026
The proposal at cc34caa needs splitting into 2 items. A person splits the item into the items below, or replies in a comment or edits the body to keep one item, and the next refine round looks at the item again.
src/devops_cli/roadmap/with in-memory store tests.feat(roadmap): a webhook event runs intake of its one issue (#2607)
feat(service): each subscribed webhook event runs its scoped update
feat(service): each subscribed webhook event runs its scoped update
chore(main): release 0.23.0 (#2802)