Repository navigation
Description
Problem
devops roadmap onboard -R dan-petty/devtools --plan reports row 7 as wrong (url, events), but the hook of that repository works: a ping of hook 714050412 got 200, and the Service log shows "Webhook delivery handled" for dan-petty/devtools on 2026-11-19. The hook sends the event list ["*"] (GitHub: every event). src/devops_cli/roadmap/onboard.py:307 tests events <= set(hook.events), so {"issues"} <= {"*"} is false, and the row calls a hook that sends every event wrong.
Expected
- A hook with the events
["*"]counts as a hook that sends each event ofCONST_ROADMAP_WEBHOOK_EVENTS(test first: the row ispresentfor an active JSON hook with the Service URL and["*"]). - The step text of the row still names the events that the Service needs.
Alternatives check of 2026-11-19: none.
Tool: none found.
Reason: Searches found only GitHub's webhook documentation and generic Python webhook frameworks that receive or verify payloads; none provides a predicate that a hook's event list covers the required events, with * as every event, so the fix belongs in the project's own code.
Lacks:
- No library checks a hook's event list against required events
- No library treats
*as every event in a subset comparison - Generic frameworks receive webhooks, they do not inspect stored hook settings
Proposed design
Problem statement
Change the webhook row so that a hook with the event list ["*"] counts as present. The onboard command now reports that working hook as wrong (url, events), because the subset test at src/devops_cli/roadmap/onboard.py:307 does not know the wildcard. The step text keeps the names of the events that the Service needs.
Acceptance criteria
Requirement: Wildcard hook is present
The webhook row SHALL report present for an active JSON hook with the Service webhook URL and an event list that holds *.
Scenario: Wildcard hook matches the Service
- WHEN the fake GitHub API returns one active hook with content type
json, the Service webhook URL and events["*"], and the test runsdevops roadmap onboard --repo example/roadmap --plan - THEN the test in
tests/roadmap/test_roadmap_onboard.pyasserts exit code 0 and the line7. The repository webhook posts the roadmap events to the Service: present
Requirement: Hook without the wildcard needs each event
The webhook row SHALL report wrong and name events when an active JSON hook has the Service URL, no *, and not each event of CONST_ROADMAP_WEBHOOK_EVENTS.
Scenario: Hook omits a required event
- WHEN the hook has the Service URL and the events
["pull_request", "release"], whileCONST_ROADMAP_WEBHOOK_EVENTSisfrozenset({"issues"}) - THEN the test in
tests/roadmap/test_roadmap_onboard.pyasserts that row 7 iswrongand that the output holdsWrong: events.
Requirement: Wildcard does not excuse the URL
The webhook row SHALL report wrong and name url when an active JSON hook with * in its events has a URL other than the Service webhook URL.
Scenario: Wildcard hook with another URL
- WHEN the hook is active, its content type is
json, its events are["*"]and its URL ishttps://other.example.com/hook - THEN the test in
tests/roadmap/test_roadmap_onboard.pyasserts that row 7 iswrongand that the output holdsurl
Requirement: Step text names the required events
The webhook step text SHALL name each event of CONST_ROADMAP_WEBHOOK_EVENTS.
Scenario: Missing hook step text
- WHEN the fake GitHub API returns no hook, so row 7 is
missing - THEN the test in
tests/roadmap/test_roadmap_onboard.pyasserts that the step text holds each event name ofCONST_ROADMAP_WEBHOOK_EVENTS
Existing Tool Considered
The alternatives check of 2026-11-19 in the issue body gives the verdict none and names no tool. The check found only the GitHub webhook documentation and generic Python webhook frameworks. The issue body lists what such a tool lacks: no library checks a hook's event list against required events, none treats * as every event, and the frameworks receive webhooks but do not read stored hook settings. The change keeps the project's own predicate at src/devops_cli/roadmap/onboard.py:307. Cost to build, keep and fix that code: one condition (about 40 tokens), one regression test (about 400 tokens) and about 10 minutes of elapsed time. It adds no dependency to update.
Key questions
- Which events does the Service need now?:
CONST_ROADMAP_WEBHOOK_EVENTSisfrozenset({"issues"}), and the document test asserts that value. [sources: src/devops_cli/config/constants.py:3910, tests/roadmap/test_roadmap_onboard.py:540] - How does the webhook row treat a hook that sends
["*"]?: Treat*as covering each event ofCONST_ROADMAP_WEBHOOK_EVENTS. The condition atsrc/devops_cli/roadmap/onboard.py:307adds"*" in hook.eventsas an alternative to the subset test. (best practice) [sources: src/devops_cli/roadmap/onboard.py:307]- Rejected: Literal subset check. It rejects
*and reports a working hook aswrong (url, events). - Chosen: Accept
*as every event. GitHub defines*as every event, and the predicate stays one condition. - Rejected: Expand
*into the required events before the comparison. It adds a normalization step for the same result and hides the event list that GitHub stores.
- Rejected: Literal subset check. It rejects
- Does the step text change when the hook sends
*?: No. The step text keeps each event ofCONST_ROADMAP_WEBHOOK_EVENTS, because a person reads it to set up the hook and GitHub shows each event name. (best practice) [sources: docs/CLUSTER.md, tests/roadmap/test_roadmap_onboard.py, openspec/specs/roadmap-onboard/spec.md]- Chosen: Keep the event names in the step text. The document and the row must name the same events, and a test asserts it.
- Rejected: Replace the event names with
*. It hides which events the Service takes and breaks the document test.
- Where do the fix and its regression test go?: Change the predicate of the webhook row in
src/devops_cli/roadmap/onboard.pyand add the regression test intests/roadmap/test_roadmap_onboard.py. (best practice) [sources: src/devops_cli/roadmap/onboard.py:307, tests/roadmap/test_roadmap_onboard.py]- Chosen: Change the predicate in place. The defect is one condition of the function that decides the row.
- Rejected: Add a normalization helper. It adds code and tests for no behavior that the predicate needs.
- Rejected: Expand
*in the caller. It moves the rule away from the field comparison and makes a second code path.
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Activity
dan-petty commentedon Nov 19, 2026
Both concern the onboard webhook row; #3772 adds the row, the candidate fixes its event-subset comparison.devops-cli-service commentedon Nov 19, 2026
Next step: the alternatives check records a verdict. See the section Proposed design of the body.
devops-cli-service commentedon Nov 19, 2026
The result in the alternatives block of the issue body changed. Before this check: no check. A person decides what the new result means for the item.
Searches (2)
Searches run:
Sources:
devops-cli-service commentedon Nov 19, 2026
Next step: the stage job writes the plan of the item. See the section Proposed design of the body.
dan-petty commentedon Nov 21, 2026
More evidence, 2026-11-21: the new service repository
dan-petty/infrahas a hook with"events": ["*"]. A ping to it returned200 OKfrom the Service, and the hook ofdan-petty/danielpetty.com(also["*"]) has last response200. Row 7 ofdevops roadmap onboardstill reportswrong (Wrong: url, events.)for both. Theeventspart is this item (onboard.py:307and:328,{"issues"} <= {"*"}is false). Theurlpart came from a placeholderservice.webhook_urlin the local config, not from the code.dan-petty commentedon Nov 23, 2026
Newer code in #6806 (#6773, commit 0197537) replaces devops roadmap onboard with devops repos onboard. src/devops_cli/roadmap/onboard.py and its tests are deleted. The new implementation in src/devops_cli/github/onboard/service_rows.py already accepts wildcard hooks (_ALL_EVENTS in hook.events or set(CONST_ROADMAP_WEBHOOK_EVENTS) <= set(hook.events)), and openspec/specs/repos-onboard/spec.md row 12 verifies this behavior. Returning item because newer code already resolved it.
dan-petty commentedon Nov 24, 2026
Newer code and issues replaced this command. Commit 0197537 (#6806, closing #6773) replaced
devops roadmap onboardwithdevops repos onboard. Insrc/devops_cli/github/onboard/service_rows.py, function_sends_eventsat line 180 accepts_ALL_EVENTS("*") inhook.events. The teststests/github/onboard/test_onboard_rows.pyandtests/commands/test_repos_onboard.pyverify that a hook with"events": ["*"]evaluates as present.