Repository navigation
docs(issues): add issue specification for #2603 - #2604
Merged
josecelano merged 4 commits intoOct 21, 2026
Merged
josecelano merged 4 commits into
josecelano merged 4 commits into
Conversation
…2415 retrospective Draft an issue specification for the two skill proposals that the torrust#2415 implementation retrospective left unapplied: 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. The draft carries the evidence from torrust#2415 (the weak release assertion found by the Task Reviewer and the unrecorded test removal), the proposed skill wording for the maintainer's review, four open questions, and two walk-through verification scenarios on the real torrust#2415 artifacts. No GitHub issue exists yet. Co-authored-by: Copilot <[email protected]>
Issue torrust#2603 asks the `write-unit-test` skill to derive mutations from each clause of a stated rule and to record removed or merged tests in a no-behavior-change refactor. Move the approved draft from `docs/issues/drafts/` to `docs/issues/open/2603-...`, set its number, status, `spec-path`, and spec-only branch, and record the maintainer's decisions on the four open questions and the choice of a spec-only pull request first. Co-authored-by: Copilot <[email protected]>
There was a problem hiding this comment.
🟢 Approval recommended
This spec-only change has only a minor wording correction remaining in its proposed example.
1 open issue
What changed in this PR
Adds the specification for #2603 to improve the write-unit-test skill; no skill or runtime changes are included.
Changes:
- Proposes per-clause mutations and records for removed or merged tests.
- Defines implementation steps, maintainer decisions, and verification scenarios using #2415 artifacts.
| File | Description |
|---|---|
| docs/issues/open/2603-write-unit-test-skill-rule-mutations-and-removed-tests/ISSUE.md | Adds the proposal, supporting evidence, and implementation plan. |
Review effort: Balanced
…tation example The example in the proposed skill text said that breaking "does not cancel others" by cancelling every token also breaks "cancels its own token", but the second is not a clause of the drop rule. State the rule as the torrust#2415 evidence does: making a drop cancel every token breaks both clauses, so an assertion on the released token fails the test and hides that the other clause has no assertion, while cancelling only the other tokens breaks just the second clause and exposes the gap. Found by Copilot review of PR torrust#2604. Co-authored-by: Copilot <[email protected]>
…udit Record Copilot review 5598583227: its one finding (F1), that the per-clause mutation example named a clause the drop rule does not have, is fixed in its own commit, replied to, and resolved. Add the matching progress-log entries to the torrust#2603 spec. Co-authored-by: Copilot <[email protected]>
Member
Author
|
ACK a61c46a |
josecelano
added a commit
to josecelano/torrust-tracker
that referenced
this pull request
Oct 21, 2026
…t per-clause mutations and a record for removed tests d83b32b docs(issues): [torrust#2603] record PR torrust#2612 in the spec (Jose Celano) 62a87a4 docs(issues): [torrust#2603] record the maintainer's push and acceptance-review decisions (Jose Celano) 6647386 docs(issues): [torrust#2603] record the Task Reviewer report and the completion review (Jose Celano) 85dcec0 docs(issues): [torrust#2603] record the walk-throughs of the two skill rules (Jose Celano) 706c5fa docs(skills): [torrust#2603] ask for a record when a refactor removes or merges a test (Jose Celano) 70842cd docs(skills): [torrust#2603] ask for a mutation per clause of a rule a test guards (Jose Celano) Pull request description: Adds two short, evidence-backed rules to the `write-unit-test` skill, as specified in torrust#2603 (merged in PR torrust#2604): derive at least one mutation from each clause of a stated rule, including negative clauses, and record every removed or merged test in a refactor whose acceptance criterion is that the existing tests still pass. Both come from the implementation retrospective of torrust#2415, where the first showed up as a release test that passed under a mutation breaking only one of the rule's two clauses, and the second as a duplicate test deleted during a conversion (manager tests 17 to 16) with no record. Closes torrust#2603 ## Changes - `.github/skills/dev/testing/write-unit-test/SKILL.md`: a new section "Prove a Test Guards Each Clause of a Rule" after the existing "Prove a Regression Test Guards the Bug", which it links to instead of repeating (list the clauses, one mutation per clause that breaks only it, record clause, mutation and failing tests, applied only to rules stated in a specification, ADR or acceptance criterion); a new section "Remove or Merge a Test Only With a Record"; and one Quick Checklist entry for each. The existing section is unchanged (no line of the file is deleted). - Issue-local files in `docs/issues/open/2603-write-unit-test-skill-rule-mutations-and-removed-tests/`: the spec's progress, `manual-verification-evidence.md`, and `agent-review-reports.md`. The maintainer approved the final wording before the skill commits. Two things differ from the wording agreed in the spec, both disclosed in the spec's progress log: each new section cites the torrust#2415 observation in one sentence, and the removed-test rule is its own section instead of a paragraph. The spec's T3 row asked for two checklist entries where its Commit Points and AC3 mean one per rule, so one entry was added for each and the row corrected. ## Validation - M2 (evidence V2): on the real torrust#2415 conversion commit, found by its subject on `develop`, `git` and `grep` show one test removed and `manager.rs` going from 17 to 16 tests, with no mention of the removal in the commit message. The new rule would have flagged it. The independent reviewer re-ran these commands and got the same output. - M1 (evidence V1): applying the per-clause section to the torrust#2415 release rule yields the mutation that the original test missed. It was not blind, because the finding was already known, and the mutation outcomes are cited from the torrust#2415 evidence, not re-run; both limits are stated in the evidence. - The independent Task Reviewer passed the branch with findings (AC1 to AC4 and `linter all` pass); its findings are addressed and the report is in `agent-review-reports.md`. - `linter all` and every pre-commit run exited 0, and the pre-push hook passed on the push. Documentation only: no source or test changes, so no Rust tests apply. As for torrust#2414 and torrust#2415, the maintainer's review and merge of this PR is the acceptance review, and the acceptance criteria are ticked afterwards in the archive PR. The branch is not rebased onto the latest `develop`: its newer commits touch neither the skill nor this folder, and it merges cleanly. ACKs for top commit: josecelano: ACK d83b32b Tree-SHA512: c9b57d4078f738c84c576e2466f0777a1a58cf17b2684d77b223713d03f9ccd80bab939180ba60a703583acb67b8a6e03cd86ede816e93af0b24d9c3900ae7a4
Contributor
|
Post-merge note: this pull request requested a review from this account and was closed without one at its final head. A post-merge review will not be done: It added only the issue specification for #2603 and a review record, with no source, skill, manifest or workflow change. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Adds the specification of #2603 to
docs/issues/open/: teach thewrite-unit-testskill to derive at least one mutation from each clause of a stated rule, including negative clauses, and to record removed or merged tests in a refactor whose acceptance criterion is that the existing tests still pass. Both rules are proposals from the implementation retrospective of #2415 that were left unapplied because changing a skill needs the maintainer's approval.This is a spec-only PR: the only file is
docs/issues/open/2603-write-unit-test-skill-rule-mutations-and-removed-tests/ISSUE.md, and no skill text changes here. It carries the evidence from #2415, the proposed skill wording, the plan, and two walk-through verification scenarios on the real #2415 artifacts. The maintainer approved the draft and decided its four open questions (one observed instance is enough for both rules, a new sibling section in the skill, no reviewer change in this issue, and keep the bound on the per-clause rule); the decisions are recorded in the spec. The skill change follows in a separate PR on the reserved branch2603-write-unit-test-skill-rule-mutations-and-removed-tests.Validation:
linter alland the pre-commit hook passed, and the pre-push hook passed on the push. Documentation only.Related to #2603.