Repository navigation
Description
Split from #4415.
Problem: The code change cannot prove the live GitHub App delivery until the owner adds issue_comment to the App events after the merge and the release. Why deferred: The proof waits on the owner step and a live item. Acceptance criteria: After the merge, the release and the owner step, a trusted reply on a live item makes the due job run as the App. A comment gives the result line. The handler writes no due mark.
Proposed design
Problem statement
The trusted issue_comment reply path has no proof in the service test suite. The live proof that the due job runs as the App waits on the owner's App event subscription, a release and a live item. This item adds the offline proof and defers the live proof to a new issue.
Acceptance criteria
Requirement: Trusted reply delivery
The service test suite SHALL prove that the router delivers an issue_comment event from a trusted person to the roadmap consumer.
Scenario: A member replies on an item
- WHEN
uv run pytest tests/server/test_server_service.py -k issue_comment_trustedruns - THEN the test passes and asserts one delivery to the roadmap consumer, not the outcome
no_subscriber.
Requirement: Untrusted reply starts no round
The service test suite MUST prove that a reply from a bot, from the Service account, or from a sender without write access starts no roadmap round.
Scenario: An untrusted sender replies on an item
- WHEN
uv run pytest tests/server/test_server_service.py -k issue_comment_untrustedruns - THEN the test passes and asserts no roadmap round for a bot, for the Service account and for a sender without write access.
Requirement: Pull request comment is no reply
The service test suite MUST prove that a comment on a pull request starts no roadmap round.
Scenario: A member comments on a pull request
- WHEN
uv run pytest tests/server/test_server_service.py -k issue_comment_pull_requestruns - THEN the test passes and asserts no roadmap round.
Requirement: No due mark for a trusted reply
The service test suite MUST prove that the issue_comment handler writes no due mark.
Scenario: A trusted reply arrives
- WHEN
uv run pytest tests/server/test_server_service.py -k issue_comment_no_due_markruns - THEN the test passes and asserts that the fake roadmap store holds no due mark.
Existing Tool Considered
No alternatives check has run. pytest is open and maintained, and the repository already uses it. pytest covers the need: the change adds test cases to tests/server/test_server_service.py. No new tool or library is needed. The cost is the test code alone. The existing fixtures and fakes hold it to a few dozen lines.
Key questions
- Which events does the roadmap consumer take today?: The roadmap consumer takes the events in
CONST_ROADMAP_WEBHOOK_EVENTS.issue_commentis not in that set today, so the router answersno_subscriberand starts no round. [sources: src/devops_cli/config/constants.py, tests/server/test_server_service.py, docs/CLUSTER.md:44] - Which rule makes an
issue_commentreply trusted?: The sender has write access: associationOWNER,MEMBERorCOLLABORATOR. The sender is no bot. The sender is not the account of the Service. The comment is not on a pull request. [sources: src/devops_cli/roadmap/trust.py, docs/CLUSTER.md:44] - Does a trusted reply write a due mark?: No. ADR 0017 makes each subscribed webhook event run its update at once, so the handler writes no due mark. The due mark is for a sweep that exists, not for a subscribed event. (best practice) [sources: docs/adr/0017-each-subscribed-webhook-event-runs-the-update-scoped-to-it.md, CONTEXT.md]
- Chosen: Run the scoped round at once. ADR 0017 makes each subscribed event run its update at once, so no due mark is needed.
- Rejected: Write a due mark for the next sweep. The delivery already makes the round due, and a due mark adds a second copy of that decision.
- Where does the offline test live?: In
tests/server/test_server_service.py, which already holds the webhook tests of the Service. (best practice) [sources: tests/server/test_server_service.py]- Chosen: Extend
tests/server/test_server_service.py. The file already holds the webhook tests of the Service, so one fixture set serves the new cases. - Rejected: Add a new test module. A second module splits the tests of one router and doubles the fixture setup.
- Chosen: Extend
- Which code must land before the test can assert delivery?: The handler that subscribes the roadmap consumer to
issue_commentmust land first. The router today answersissue_commentwithno_subscriber. feat(roadmap): handle trusted issue_comment webhook replies #4415 delivers that handler. [sources: docs/CLUSTER.md:44, CHANGELOG.md:4579, src/devops_cli/config/constants.py] - Why does the live App proof go to a new issue?: It waits on the owner step that adds
issue_commentto the App events, on the release of the handler, and on a live item. No offline test can show the App identity. (best practice) [sources: docs/adr/0009-one-webhook-router-delivers-each-event-to-the-consumers-subscribed-to-it.md:41, docs/adr/0015-roadmap-jobs-act-as-a-github-app-on-the-personal-account.md]- Chosen: Defer the live proof to a new issue. The proof waits on a person step and a live item, so it cannot pass in this pull request.
- Rejected: Keep the live proof as a criterion of this item. A test cannot show the App identity offline, so the criterion would never pass in CI.
Fit
Fits in one pull request.
Suspected block
None.
Activity
devops-cli-service commentedon Nov 20, 2026
Both concern trusted issue_comment webhook replies; #4415 implements the handler, the candidate proves the live App delivery after merge and owner step.devops-cli-service commentedon Nov 22, 2026
Next step: the open items close, or a person replies in a comment or edits the body. See Dependencies in the section Proposed design of the body.
devops-cli-service commentedon Nov 24, 2026
Next step: the alternatives check records a verdict. See the section Proposed design of the body.