Repository navigation
Description
Problem or Motivation
In src/devops_cli/roadmap/implement/implement_run.py, the implement job runs checks and marks the delivery pull request ready for review via self._ready(pull). However, it does not execute devops pr evidence <pull>.
AGENTS.md Rule 4 & 6 and CONTRIBUTING.md line 154 establish that every PR should carry the standardized quality gate evidence comment generated by devops pr evidence <number> (listing the head commit, status of all remote CI checks, links, and skipped runs). When the service creates a PR, it leaves behind only an internal bot step summary without the official review evidence table, requiring humans to manually run devops pr evidence.
Proposed Solution & Architectural Design
In src/devops_cli/roadmap/implement/implement_run.py:
- In
_checks(pull)or immediately before_ready(pull)inexecute(), invokeevidence_pull(self.repo, pull)(or rundevops pr evidence <pull>). - Ensure that when checks settle cleanly, the single check-results comment is created or updated before the PR transitions out of draft.
Target Subsystem
SDLC, Git & PR Governance
Existing Tool Considered
devops pr evidence (src/devops_cli/commands/pr.py:evidence_cmd and evidence_pull). Reusing this existing command within implement_run.py requires approximately 200 lines of glue code and tests.
Standards Compliance
- I confirm this proposal aligns with AGENTS.md engineering principles (cyclomatic complexity <= 10, nesting <= 5, zero bare exceptions, tests that cover the changed lines).
- I am willing to submit a pull request implementing this feature with accompanying tests.
Proposed design
Problem statement
The implement job marks a delivery pull request ready for review without posting the quality gate evidence comment. People must run devops pr evidence by hand. This change makes the job publish the evidence before it marks the pull request ready.
Acceptance criteria
Requirement: Evidence before ready
The implement job SHALL publish the delivery pull request evidence after checks pass and before marking it ready.
Scenario: Checks pass and evidence posts
- WHEN the delivery pull request checks settle with a ready result
- THEN the job publishes the evidence and then marks the pull request ready
Requirement: Evidence failure stops the item
The implement job MUST stop the item before marking the pull request ready when evidence publication fails.
Scenario: Evidence publication fails
- WHEN the evidence publisher raises a GitHub operation error
- THEN the job stops the item, leaves the pull request in draft, and sets the item Blocked
Requirement: One evidence comment
The implement job SHALL use the existing evidence publisher, which keeps one comment per head commit.
Scenario: The evidence comment already exists
- WHEN the pull request already has an evidence comment from the same login
- THEN the publisher updates that comment and posts no second comment
Existing Tool Considered
No alternatives check has run. The existing devops pr evidence command calls publish_pr_evidence. That function writes the head commit and check status as one updatable comment. It lacks only a call from the implement job. The job can call the function directly, so no new evidence code is needed.
Key questions
- Should the implement job reuse the existing evidence publisher or build its own evidence comment?: Reuse
publish_pr_evidencefromdevops_cli.github.pr_evidence. Thedevops pr evidencecommand already calls it. The job needs no second evidence renderer. (best practice) [sources: src/devops_cli/commands/pr.py, src/devops_cli/roadmap/implement/implement_run.py]- Chosen: Reuse publish_pr_evidence. It already builds the head commit and check table as one updatable comment.
- Rejected: Build a second evidence renderer. It duplicates the existing command and adds maintenance cost.
- Rejected: Run devops pr evidence as a subprocess. It adds a shell call and command parsing where an in-process function exists.
- Where in the implement run should the job publish the evidence?: In
_ItemRun._ready, afterdraft_readinessreturnsREADYand beforemark_ready. This point uses the final head commit and the settled checks. (best practice) [sources: src/devops_cli/roadmap/implement/implement_run.py]- Rejected: In
_checksafter the watch. The repair loop can push a new head after the watch, so evidence can become stale. - Rejected: In
executebefore_ready. It separates the evidence from the readiness decision and repeats the final head read. - Chosen: In
_readybeforemark_ready. It is the single transition point and it already reads the final pull status.
- Rejected: In
- What should the job do when publishing the evidence fails?: Stop the item before
mark_readywith aGitHubOperationErrorreason. The pull request stays a draft and the item becomes Blocked. (best practice) [sources: AGENTS.md, CONTRIBUTING.md, src/devops_cli/roadmap/implement/implement_run.py]- Rejected: Log and continue. It marks the pull request ready without the required evidence comment.
- Chosen: Stop before ready. It keeps the evidence as a condition of the ready transition and lets a retry post it.
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Alternatives check of 2026-11-18: none.
Tool: none found.
Reason: Web searches found only generic PR-comment upserters, which render no head-commit or CI-check evidence and cannot be called from the Python implement job; the needed publisher already exists inside the project's own repository.
Lacks:
- No head-commit and CI-check status table
- No links or skipped-run rendering
- Not callable from the Python implement job
- No gate on marking the pull request ready
Activity
dan-petty commentedon Nov 8, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
featprefix of the title gives the type.(roadmap)scope of the title gives the scope.Project standards mandate the evidence comment, but delivery is not blocked without it.Removes a manual step and enforces a project standard on every delivery PR.The body estimates roughly 200 lines of glue code and tests.devops reviewon the diff before marking PR ready #3049, which asks for a different change.Both hook into the before-ready seam in implement_run.py, but #3049 runs devops review while the candidate runs devops pr evidence.devops-cli-service commentedon Nov 9, 2026
Status set to Ready at 719cd43 (see proposed design in issue body).
devops-cli-service commentedon Nov 10, 2026
Alternatives check: in-use
Reason: Web searches for an open tool that renders a quality-gate evidence comment (head commit plus remote check statuses) returned only unrelated MDN pages, and the need is project-specific. The repository's own
devops pr evidencecommand and itspublish_pr_evidencefunction already produce that single updatable comment, so the whole need is covered by a tool the issue already names; only the call from the implement job beforemark_readyis missing.The item already names this tool.
Tool: dan-petty/devops-cli (https://github.com/dan-petty/devops-cli)
Covers:
devops pr evidence <pull>(evidence_cmdin src/devops_cli/commands/pr.py) and as the in-processpublish_pr_evidencein devops_cli.github.pr_evidenceLacks:
_ItemRun._ready/execute) never calls the publisher, so delivery PRs still leave draft with only the bot step summaryGitHubOperationErrorfrom the publisher does not stop the item beforemark_readyand does not leave the PR in draftTools considered:
Searches run:
Sources:
Checked on 2026-11-10. A person decides what this means for the item. The check changes no label and closes no issue.
dan-petty commentedon Nov 11, 2026
Scope from the iteration lane plan (2026-11-11)
This issue is child 13 of #4667. The scope adds one line to the evidence comment: the gate lane, the Workflow, the patch-id, the base and the checks. Without it, the pull request does not show that the change passed the gate before the push.
Acceptance added: a test shows the gate line for the lanes
cluster,in-pod,localandunavailable.Depends on: #4698.
22 remaining items
docs(openspec): plan #4129 Post delivery PR evidence before ready
docs(openspec): plan #4129 Publish the delivery evidence before ready
feat(roadmap): Publish the evidence of the head commit that the calle…
feat(roadmap): Publish the delivery evidence before the ready mark (#…
wip: 1 of 2 tasks of group 3, Name the evidence step in the workflow …
feat(roadmap): Name the evidence step in the workflow documents (#4129)
docs(openspec): archive the change (#4129)
devops-cli-service commentedon Nov 19, 2026
Pull request #6426 is ready for review. The checks passed.
Spend: 133 model requests, 11641591 input tokens, 103542 output tokens.
devops-cli-service commentedon Nov 20, 2026
Released in v0.182.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.182.0
devops-cli-service commentedon Nov 20, 2026
Live since 2026-11-20 00:02 UTC