--- name: work-item-verification description: Use when checking whether completed work satisfies a work item, ticket, or review request; map each acceptance criterion and the Definition of Done to evidence and give a clear completion verdict. --- # Work Item Verification Decide whether a completed change is done. Act as a verifier: inspect existing evidence and run only cheap checks that settle a specific criterion, never a full suite or a new architecture review. For a code review of the change itself, use `review-pull-request`. ## 1. Collect the criteria - If the work item lives in Azure DevOps or another tracker, read it first through the connected tools: description, acceptance criteria, comments, and linked items. - Note the objective, scope boundaries, acceptance criteria, and material constraints. - If no acceptance criteria exist, derive them from the request and label each one as derived. If the request is too vague to derive them, use `work-item-definition` first. ## 2. Map each criterion to evidence - Use direct evidence: changed files, observable behavior, command output, test results, or a user-confirmed outcome. - Reuse adequate existing evidence before running a check, and run only checks that answer the criterion. - A successful build is not proof of behavioral criteria. - For criteria that rely on external technology behavior, apply the verification checkpoint in `technical-research`: compare the actual sources and versions with the implementation, not merely whether a lookup happened. ## 3. Check the Definition of Done Apply `rules-definition-of-done` on top of the criteria: - No unrelated changes. - No temporary code, debug output, commented-out code, or unintended TODOs. A `shortcut:` comment that documents a known limit is intended. - Directly affected documentation and comments updated. - Generated output and consumers consistent with the change. ## 4. Decide | Status | Meaning | | --- | --- | | met | Direct evidence shows the criterion holds. | | unmet | Evidence shows the criterion does not hold. | | unverified | No adequate evidence, or the check could not run; say why. | The work item is **complete** only when every required criterion is met and every Definition of Done item passes. Otherwise it is **not complete**, and the report names what blocks it. Never report an unrun check as passed. ## 5. Report ```text Work item: Verdict: complete | not complete | Criterion | Status | Evidence | | --- | --- | --- | | | met / unmet / unverified | | Definition of Done: passed | failed () Not run: () Open decisions: ``` ## Writing back Do not change the work item's state, fields, or comments unless the user asks for that specific action. Any write follows the remote-system rules (`rules-microsoft`), and a state change such as Resolved happens only when the verdict is complete.