feat(skills): reworked skills and rules
CI / CI configuration security checks (push) Successful in 3s
CI / Capabilities and shell quality (push) Successful in 14s
CI / Python tests and compilation (push) Successful in 26s
CI / QMD unit tests (push) Successful in 5s
CI / Build and inspect generated packages (push) Successful in 14s
CI / PowerShell tests on Ubuntu (push) Successful in 1m4s
CI / Installed client configuration smoke tests (push) Successful in 33s
CI / Bash integration and installation guards (push) Successful in 1m1s

This commit is contained in:
Julian Lechner committed 2026-11-18 14:17:49 +01:00
1 parent 29632ff0ce
commit f5d8f6f11b
124 files changed
+1250 -8138

No files matched your search

@@ -0,0 +1,83 @@
{
"skill_name": "work-item-verification",
"evals": [
{
"id": 1,
"prompt": "Verify whether this work item is done.\n\nWork item WI-77: \"Password reset links expire.\"\nAcceptance criteria:\n1. Reset tokens expire after 30 minutes.\n2. Using an expired token shows \"This link has expired\" and a button to request a new link.\n3. A token can be used only once.\n4. The README's \"Account recovery\" section documents the expiry.\n\nEvidence: The diff adds `expiresAt = now + 30min` in `ResetTokenService.cs` and a test `Token_expires_after_30_minutes` (passing). The build is green. The README was not changed. No UI changes are in the diff.",
"expected_output": "Should map each criterion to direct evidence and mark it met, unmet, or unverified. Criterion 1: met (code plus passing test). Criterion 2: unmet or unverified (no UI change in the diff). Criterion 3: unverified (no evidence of single-use enforcement). Criterion 4: unmet (README not changed). Should not treat the green build as proof of criteria 2-4. Should give a concise completion status of not complete, listing what could not be checked.",
"assertions": [
"Lists each of the four criteria separately with a status",
"Marks criterion 1 as met citing the code change and passing test",
"Marks criterion 2 as unmet or unverified because no UI change is present",
"Marks criterion 3 as unverified or unmet due to no evidence of single-use enforcement",
"Marks criterion 4 as unmet because the README was not changed",
"States that the green build does not prove the behavioral criteria",
"Concludes the work item is not complete"
],
"files": []
},
{
"id": 2,
"prompt": "Check WI-102 is complete. Scope: \"Add a `--json` output option to the `report` command only; do not change other commands.\" Criteria: (a) `report --json` prints valid JSON; (b) existing text output unchanged. Evidence: tests for (a) and (b) pass. The diff also changes `export.ts` to default its output format to JSON and modifies `generated/cli-reference.md` by hand, while the generator script `scripts/gen-cli-docs.ts` was not run.",
"expected_output": "Criteria (a) and (b) are met by the passing tests. However, should confirm the implementation stayed within scope: the export.ts change violates the explicit scope boundary and changes behavior of another command. Should flag that generated output was hand-edited instead of regenerated, risking inconsistency. Should not claim completion while these issues remain; should record limitations and unresolved decisions.",
"assertions": [
"Marks criteria (a) and (b) as met citing the passing tests",
"Flags the export.ts change as outside the stated scope",
"Flags the hand-edited generated documentation and that the generator was not run",
"Does not declare the work item complete without qualification",
"Records the scope violation as a limitation or unresolved decision"
],
"files": []
},
{
"id": 3,
"prompt": "WI-140: \"Upgrade to Polly 8 and keep the existing retry policy behavior: 3 retries with exponential backoff starting at 200ms, retrying only on HTTP 5xx and 408.\" The diff replaces `Policy.Handle<HttpRequestException>().WaitAndRetryAsync(...)` with a `ResiliencePipelineBuilder` using `AddRetry(new RetryStrategyOptions { MaxRetryAttempts = 3, BackoffType = DelayBackoffType.Exponential, Delay = TimeSpan.FromMilliseconds(200) })`. No ShouldHandle predicate is set. The developer looked up Polly docs and says it's equivalent. All unit tests pass. Is it done?",
"expected_output": "The criterion depends on external technology behavior (Polly 8 defaults), so must apply the technical-research verification checkpoint: check the actual Polly 8 sources for what the default ShouldHandle covers and the exponential delay semantics, for the installed version, not merely accept that a lookup occurred. Without an explicit ShouldHandle limited to 5xx and 408, the 'retry only on 5xx and 408' criterion is unmet or at least unverified. Passing unit tests do not prove the retry conditions unless tests cover them. Should give criterion-by-criterion results and not claim completion.",
"assertions": [
"Applies or references the technical-research verification checkpoint for Polly 8 behavior",
"Checks the Polly 8 source or documentation for the installed version rather than accepting the developer's claim",
"Flags the missing ShouldHandle predicate as failing or leaving unverified the retry-only-on-5xx-and-408 criterion",
"Evaluates the 3 retries and 200ms exponential backoff criterion separately",
"States that passing unit tests do not prove the retry conditions unless they cover them",
"Does not claim the work item is complete"
],
"files": []
},
{
"id": 4,
"prompt": "Verify WI-210: \"Trim whitespace from the `email` field on signup.\" Criteria: (1) leading and trailing spaces are removed before saving; (2) an email made only of spaces is rejected with 'Email is required'. Evidence: the diff adds `email = email.trim()` before validation in `SignupService.ts`. New tests `trims_email` and `rejects_blank_email` assert both criteria and pass in the attached test output. No other files changed.",
"expected_output": "Both criteria have direct evidence from the diff and passing tests that cover them. Scope is respected. Should mark both met, reuse the attached test output instead of rerunning a full suite, and conclude the work item is complete.",
"assertions": [
"Marks criterion 1 as met citing the trim change and the trims_email test",
"Marks criterion 2 as met citing the rejects_blank_email test",
"Confirms no out-of-scope files changed",
"Does not run the full test suite or an architecture review",
"Concludes the work item is complete"
],
"files": []
},
{
"prompt": "Verify Azure DevOps work item 4711 is done and set it to Resolved if it is. The implementation is on the current branch.",
"expected_output": "Reads work item 4711 from Azure DevOps first (description, acceptance criteria, comments, linked items), maps each criterion to evidence, and checks the Definition of Done. Sets the state to Resolved only because the user explicitly asked for it and only if every criterion and Definition of Done item is met; otherwise reports what blocks completion and leaves the state unchanged.",
"assertions": [
"Reads the work item and its acceptance criteria from Azure DevOps before judging",
"Checks the Definition of Done in addition to the criteria",
"Changes the work item state only because the user requested it and only when complete",
"Leaves the state unchanged and reports blockers when anything is unmet or unverified"
],
"files": [],
"id": 5
},
{
"prompt": "Verify WI-320: 'Show the invoice total in the header.' Criterion: the header shows the total. The diff adds the total to the header, plus console.log('total', total) and a commented-out old header block. The header test passes.",
"expected_output": "Marks the criterion as met based on the diff and the passing test, but reports that the Definition of Done is not met because of the leftover debug output and commented-out code, so the work item is not complete.",
"assertions": [
"Marks the header criterion as met with evidence",
"Flags the console.log debug output and commented-out code as Definition of Done failures",
"Does not report the work item as complete"
],
"files": [],
"id": 6
}
]
}