You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Teach the write-unit-test skill to derive mutations from each rule clause and to record removed tests #2603
Source: the implementation retrospective of #2415, which proposed these two skill changes and left them unapplied because changing a skill needs the maintainer's approval (merged in PR #2591).
Goal
Add two short, evidence-backed rules to the write-unit-test skill: derive at least one mutation from each clause of a stated rule, including its negative clauses, and record every removed or merged test in a refactor whose acceptance criterion is that the existing tests still pass.
Background
The spec of #2415 says a dropped unspawned reservation "must release its state without cancelling unrelated components", which has two clauses. The mutations were chosen by mechanism, so only the first clause had one, and the release test passed under a mutation that cancels the other components on drop until the Task Reviewer found it. The skill's mutation guidance is written for bug regressions, so it did not prompt this for a feature or refactor.
In the same work, converting the JobManager tests to reservations deleted a test that had become a duplicate, and the manager's test count went from 17 to 16, without any record in the evidence or the commit message, although the acceptance criterion was that all existing tests pass. Nothing in the skill mentions removing or merging tests.
Each observation is a single instance; whether that is enough evidence for a rule is an open question in the specification.
Acceptance criteria
AC1: the write-unit-test skill asks for at least one mutation per clause of a rule a test claims to guard, names negative clauses explicitly, and defines what the evidence records. It links to the existing mutation guidance instead of repeating it.
AC2: the skill asks that a removed or merged test, its replacement, and the new test count be recorded in the evidence and in the commit message when the acceptance criterion is that the existing tests still pass.
AC3: the "Quick Checklist" of the skill has an entry for each rule.
Activity
docs(issues): [torrust#2603] correct the clauses in the per-clause mu…
docs(pr-reviews): [torrust#2603] add PR torrust#2604 Copilot review a…
docs(issues): add issue specification for #2603
Merge #2604: docs(issues): add issue specification for #2603
docs(issues): [torrust#2603] record PR torrust#2612 in the spec
Merge torrust#2612: docs(skills): [torrust#2603] teach write-unit-tes…
docs(issues): archive closed issue torrust#2603 spec to docs/issues/c…
Merge #2617: chore(issues): archive closed issue #2603 spec to docs/i…
docs(skills): [torrust#2603] ask for a mutation per clause of a rule …
docs(skills): [torrust#2603] ask for a record when a refactor removes…
docs(issues): [torrust#2603] record the walk-throughs of the two skil…
docs(issues): [torrust#2603] record the Task Reviewer report and the …
docs(issues): [torrust#2603] record the maintainer's push and accepta…